1 2020-02-21 Tom Tromey <tom@tromey.com>
3 * Makefile.in (mostlyclean): New target.
5 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7 * target.h (struct process_stratum_target): Remove.
8 (class process_target): Rename to ...
9 (class process_stratum_target): ... this.
10 * linux-low.h (class linux_process_target): Derive from
11 'process_stratum_target'.
12 * linux-low.cc (linux_target_ops): Remove.
13 (initialize_low): Set the_target to the singleton instance of
15 * lynx-low.h (class lynx_process_target): Derive from
16 'process_stratum_target'.
17 * lynx-low.cc (lynx_target_ops): Remove.
18 (initialize_low): Set the_target to the singleton instance of
20 * nto-low.h (class nto_process_target): Derive from
21 'process_stratum_target'.
22 * nto-low.cc (nto_target_ops): Remove.
23 (initialize_low): Set the_target to the singleton instance of
25 * win32-low.h (class win32_process_target): Derive from
26 'process_stratum_target'.
27 * win32-low.cc (win32_target_ops): Remove.
28 (initialize_low): Set the_target to the singleton instance of
31 Replace 'the_target->pt' with 'the_target' in the uses below.
33 * hostio.cc (hostio_error)
38 * linux-aarch32-low.cc (arm_breakpoint_at)
39 * linux-aarch64-low.cc (aarch64_breakpoint_at)
40 * linux-arm-low.cc (arm_sigreturn_next_pc)
42 (arm_get_syscall_trapinfo)
43 * linux-cris-low.cc (cris_breakpoint_at)
44 * linux-crisv32-low.cc (cris_breakpoint_at)
45 * linux-low.cc (handle_extended_wait)
48 (linux_process_target::breakpoint_kind_from_pc)
50 * linux-m32r-low.cc (m32r_breakpoint_at)
51 * linux-mips-low.cc (mips_breakpoint_at)
52 * linux-nios2-low.cc (nios2_breakpoint_at)
53 * linux-ppc-low.cc (ppc_breakpoint_at)
54 * linux-s390-low.cc (s390_get_hwcap)
55 * linux-sh-low.cc (sh_breakpoint_at)
56 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
57 (sparc_store_gregset_from_stack)
59 * linux-tic6x-low.cc (tic6x_breakpoint_at)
60 * linux-tile-low.cc (tile_breakpoint_at)
61 * linux-x86-low.cc (x86_breakpoint_at)
62 * linux-xtensa-low.cc (xtensa_breakpoint_at)
63 * mem-break.cc (bp_size)
65 (insert_memory_breakpoint)
66 (set_raw_breakpoint_at)
67 (delete_raw_breakpoint)
69 (uninsert_raw_breakpoint)
70 (reinsert_raw_breakpoint)
71 (validate_inserted_breakpoint)
72 * regcache.cc (regcache_read_pc)
74 * remote-utils.cc (putpkt_binary_1)
77 (prepare_resume_reply)
78 * server.cc (handle_general_set)
81 (handle_qxfer_exec_file)
82 (handle_qxfer_libraries_svr4)
84 (handle_qxfer_siginfo)
89 (queue_stop_reply_callback)
91 * target.cc (prepare_to_access_memory)
92 (done_accessing_memory)
93 (read_inferior_memory)
95 (target_stop_and_wait)
97 (target_mourn_inferior)
98 (target_continue_no_signal)
100 (target_supports_multi_process)
103 (target_create_inferior)
104 (target_post_create_inferior)
106 (target_supports_fork_events)
107 (target_supports_vfork_events)
108 (target_supports_exec_events)
109 (target_handle_new_gdb_connection)
112 (fetch_inferior_registers)
113 (store_inferior_registers)
115 (target_supports_non_stop)
117 (target_process_qsupported)
118 (target_supports_catch_syscall)
119 (target_get_ipa_tdesc_idx)
120 (target_supports_tracepoints)
121 (target_supports_fast_tracepoints)
122 (target_get_min_fast_tracepoint_insn_len)
123 (target_thread_stopped)
126 (target_stabilize_threads)
127 (target_install_fast_tracepoint_jump_pad)
129 (target_supports_disable_randomization)
130 (target_supports_agent)
131 (target_enable_btrace)
132 (target_disable_btrace)
134 (target_read_btrace_conf)
135 (target_supports_range_stepping)
136 (target_supports_stopped_by_sw_breakpoint)
137 (target_stopped_by_sw_breakpoint)
138 (target_supports_stopped_by_hw_breakpoint)
139 (target_supports_hardware_single_step)
140 (target_stopped_by_hw_breakpoint)
141 (target_breakpoint_kind_from_pc)
142 (target_breakpoint_kind_from_current_state)
143 (target_supports_software_single_step)
144 (target_core_of_thread)
146 (target_thread_handle)
147 * win32-low.cc (do_initial_child_stuff)
149 Rename target op default definitions listed below.
151 * target.cc (process_target::post_create_inferior): Rename as ...
152 (process_stratum_target::post_create_inferior): ... this.
153 (process_target::prepare_to_access_memory): Rename as ...
154 (process_stratum_target::prepare_to_access_memory): ... this.
155 (process_target::done_accessing_memory): Rename as ...
156 (process_stratum_target::done_accessing_memory): ... this.
157 (process_target::look_up_symbols): Rename as ...
158 (process_stratum_target::look_up_symbols): ... this.
159 (process_target::supports_read_auxv): Rename as ...
160 (process_stratum_target::supports_read_auxv): ... this.
161 (process_target::read_auxv): Rename as ...
162 (process_stratum_target::read_auxv): ... this.
163 (process_target::supports_z_point_type): Rename as ...
164 (process_stratum_target::supports_z_point_type): ... this.
165 (process_target::insert_point): Rename as ...
166 (process_stratum_target::insert_point): ... this.
167 (process_target::remove_point): Rename as ...
168 (process_stratum_target::remove_point): ... this.
169 (process_target::stopped_by_sw_breakpoint): Rename as ...
170 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
171 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
172 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
173 (process_target::stopped_by_hw_breakpoint): Rename as ...
174 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
175 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
176 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
177 (process_target::supports_hardware_single_step): Rename as ...
178 (process_stratum_target::supports_hardware_single_step): ... this.
179 (process_target::stopped_by_watchpoint): Rename as ...
180 (process_stratum_target::stopped_by_watchpoint): ... this.
181 (process_target::stopped_data_address): Rename as ...
182 (process_stratum_target::stopped_data_address): ... this.
183 (process_target::supports_read_offsets): Rename as ...
184 (process_stratum_target::supports_read_offsets): ... this.
185 (process_target::read_offsets): Rename as ...
186 (process_stratum_target::read_offsets): ... this.
187 (process_target::supports_get_tls_address): Rename as ...
188 (process_stratum_target::supports_get_tls_address): ... this.
189 (process_target::get_tls_address): Rename as ...
190 (process_stratum_target::get_tls_address): ... this.
191 (process_target::hostio_last_error): Rename as ...
192 (process_stratum_target::hostio_last_error): ... this.
193 (process_target::supports_qxfer_osdata): Rename as ...
194 (process_stratum_target::supports_qxfer_osdata): ... this.
195 (process_target::qxfer_osdata): Rename as ...
196 (process_stratum_target::qxfer_osdata): ... this.
197 (process_target::supports_qxfer_siginfo): Rename as ...
198 (process_stratum_target::supports_qxfer_siginfo): ... this.
199 (process_target::qxfer_siginfo): Rename as ...
200 (process_stratum_target::qxfer_siginfo): ... this.
201 (process_target::supports_non_stop): Rename as ...
202 (process_stratum_target::supports_non_stop): ... this.
203 (process_target::async): Rename as ...
204 (process_stratum_target::async): ... this.
205 (process_target::start_non_stop): Rename as ...
206 (process_stratum_target::start_non_stop): ... this.
207 (process_target::supports_multi_process): Rename as ...
208 (process_stratum_target::supports_multi_process): ... this.
209 (process_target::supports_fork_events): Rename as ...
210 (process_stratum_target::supports_fork_events): ... this.
211 (process_target::supports_vfork_events): Rename as ...
212 (process_stratum_target::supports_vfork_events): ... this.
213 (process_target::supports_exec_events): Rename as ...
214 (process_stratum_target::supports_exec_events): ... this.
215 (process_target::handle_new_gdb_connection): Rename as ...
216 (process_stratum_target::handle_new_gdb_connection): ... this.
217 (process_target::handle_monitor_command): Rename as ...
218 (process_stratum_target::handle_monitor_command): ... this.
219 (process_target::core_of_thread): Rename as ...
220 (process_stratum_target::core_of_thread): ... this.
221 (process_target::supports_read_loadmap): Rename as ...
222 (process_stratum_target::supports_read_loadmap): ... this.
223 (process_target::read_loadmap): Rename as ...
224 (process_stratum_target::read_loadmap): ... this.
225 (process_target::process_qsupported): Rename as ...
226 (process_stratum_target::process_qsupported): ... this.
227 (process_target::supports_tracepoints): Rename as ...
228 (process_stratum_target::supports_tracepoints): ... this.
229 (process_target::read_pc): Rename as ...
230 (process_stratum_target::read_pc): ... this.
231 (process_target::write_pc): Rename as ...
232 (process_stratum_target::write_pc): ... this.
233 (process_target::supports_thread_stopped): Rename as ...
234 (process_stratum_target::supports_thread_stopped): ... this.
235 (process_target::thread_stopped): Rename as ...
236 (process_stratum_target::thread_stopped): ... this.
237 (process_target::supports_get_tib_address): Rename as ...
238 (process_stratum_target::supports_get_tib_address): ... this.
239 (process_target::get_tib_address): Rename as ...
240 (process_stratum_target::get_tib_address): ... this.
241 (process_target::pause_all): Rename as ...
242 (process_stratum_target::pause_all): ... this.
243 (process_target::unpause_all): Rename as ...
244 (process_stratum_target::unpause_all): ... this.
245 (process_target::stabilize_threads): Rename as ...
246 (process_stratum_target::stabilize_threads): ... this.
247 (process_target::supports_fast_tracepoints): Rename as ...
248 (process_stratum_target::supports_fast_tracepoints): ... this.
249 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
250 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
251 (process_target::emit_ops): Rename as ...
252 (process_stratum_target::emit_ops): ... this.
253 (process_target::supports_disable_randomization): Rename as ...
254 (process_stratum_target::supports_disable_randomization): ... this.
255 (process_target::supports_qxfer_libraries_svr4): Rename as ...
256 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
257 (process_target::qxfer_libraries_svr4): Rename as ...
258 (process_stratum_target::qxfer_libraries_svr4): ... this.
259 (process_target::supports_agent): Rename as ...
260 (process_stratum_target::supports_agent): ... this.
261 (process_target::enable_btrace): Rename as ...
262 (process_stratum_target::enable_btrace): ... this.
263 (process_target::disable_btrace): Rename as ...
264 (process_stratum_target::disable_btrace): ... this.
265 (process_target::read_btrace): Rename as ...
266 (process_stratum_target::read_btrace): ... this.
267 (process_target::read_btrace_conf): Rename as ...
268 (process_stratum_target::read_btrace_conf): ... this.
269 (process_target::supports_range_stepping): Rename as ...
270 (process_stratum_target::supports_range_stepping): ... this.
271 (process_target::supports_pid_to_exec_file): Rename as ...
272 (process_stratum_target::supports_pid_to_exec_file): ... this.
273 (process_target::pid_to_exec_file): Rename as ...
274 (process_stratum_target::pid_to_exec_file): ... this.
275 (process_target::supports_multifs): Rename as ...
276 (process_stratum_target::supports_multifs): ... this.
277 (process_target::multifs_open): Rename as ...
278 (process_stratum_target::multifs_open): ... this.
279 (process_target::multifs_unlink): Rename as ...
280 (process_stratum_target::multifs_unlink): ... this.
281 (process_target::multifs_readlink): Rename as ...
282 (process_stratum_target::multifs_readlink): ... this.
283 (process_target::breakpoint_kind_from_pc): Rename as ...
284 (process_stratum_target::breakpoint_kind_from_pc): ... this.
285 (process_target::breakpoint_kind_from_current_state): Rename as ...
286 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
287 (process_target::thread_name): Rename as ...
288 (process_stratum_target::thread_name): ... this.
289 (process_target::thread_handle): Rename as ...
290 (process_stratum_target::thread_handle): ... this.
291 (process_target::supports_software_single_step): Rename as ...
292 (process_stratum_target::supports_software_single_step): ... this.
293 (process_target::supports_catch_syscall): Rename as ...
294 (process_stratum_target::supports_catch_syscall): ... this.
295 (process_target::get_ipa_tdesc_idx): Rename as ...
296 (process_stratum_target::get_ipa_tdesc_idx): ... this.
298 2020-02-20 Pedro Alves <palves@redhat.com>
300 * target.cc (set_target_ops): Simply copy the given target pointer
301 instead of creating a copy of the pointed object.
303 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
305 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
308 * target.h (struct process_stratum_target): Remove the target op.
309 (class process_target): Add the target op.
310 (target_get_ipa_tdesc_idx): Update the macro.
311 * target.cc (process_target::get_ipa_tdesc_idx): Define.
313 Update the derived classes and callers below.
315 * linux-low.cc (linux_target_ops): Update.
316 (linux_get_ipa_tdesc_idx): Turn into ...
317 (linux_process_target::get_ipa_tdesc_idx): ... this.
318 * linux-low.h (class linux_process_target): Update.
319 * lynx-low.cc (lynx_target_ops): Update.
320 * nto-low.cc (nto_target_ops): Update.
321 * win32-low.cc (win32_target_ops): Update.
323 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
325 Turn process_stratum_target's supports_catch_syscall op into a
326 method of process_target.
328 * target.h (struct process_stratum_target): Remove the target op.
329 (class process_target): Add the target op.
330 (target_supports_catch_syscall): Update the macro.
331 * target.cc (process_target::supports_catch_syscall): Define.
333 Update the derived classes and callers below.
335 * linux-low.cc (linux_target_ops): Update.
336 (linux_supports_catch_syscall): Turn into ...
337 (linux_process_target::supports_catch_syscall): ... this.
338 * linux-low.h (class linux_process_target): Update.
339 * lynx-low.cc (lynx_target_ops): Update.
340 * nto-low.cc (nto_target_ops): Update.
341 * win32-low.cc (win32_target_ops): Update.
343 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
345 Turn process_stratum_target's supports_software_single_step op
346 into a method of process_target.
348 * target.h (struct process_stratum_target): Remove the target op.
349 (class process_target): Add the target op.
350 (target_supports_software_single_step): Update the macro.
351 * target.cc (process_target::supports_software_single_step): Define.
353 Update the derived classes and callers below.
355 * linux-low.cc (linux_target_ops): Update.
356 (linux_supports_software_single_step): Turn into ...
357 (linux_process_target::supports_software_single_step): ... this.
358 * linux-low.h (class linux_process_target): Update.
359 * lynx-low.cc (lynx_target_ops): Update.
360 * nto-low.cc (nto_target_ops): Update.
361 * win32-low.cc (win32_target_ops): Update.
363 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
365 Turn process_stratum_target's thread_name and thread_handle ops
366 into methods of process_target.
368 * target.h (struct process_stratum_target): Remove the target ops.
369 (class process_target): Add the target ops.
370 (target_thread_name): Update the macro.
371 (target_thread_handle): Update the macro.
372 * target.cc (process_target::thread_name): Define.
373 (process_target::thread_handle): Define.
375 Update the derived classes and callers below.
377 * linux-low.cc (linux_target_ops): Update.
378 (linux_process_target::thread_name): Define.
379 (linux_process_target::thread_handle): Define.
380 * linux-low.h (class linux_process_target): Update.
381 * lynx-low.cc (lynx_target_ops): Update.
382 * nto-low.cc (nto_target_ops): Update.
383 * win32-low.cc (win32_target_ops): Update.
385 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
387 Turn process_stratum_target's breakpoint_kind_from_pc,
388 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
389 ops into methods of process_target.
391 * target.h (struct process_stratum_target): Remove the target op.
392 (class process_target): Add the target op.
393 (target_breakpoint_kind_from_pc): Update the macro.
394 (target_breakpoint_kind_from_current_state): Update the macro.
395 (default_breakpoint_kind_from_pc): Remove declaration.
396 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
397 (process_target::breakpoint_kind_from_pc): ... this.
398 (process_target::breakpoint_kind_from_current_state): Define.
400 Update the derived classes and callers below.
402 * mem-break.cc (bp_size): Update.
404 * linux-low.cc (linux_target_ops): Update.
405 (linux_wait_1): Update.
406 (linux_breakpoint_kind_from_pc): Turn into ...
407 (linux_process_target::breakpoint_kind_from_pc): ... this.
408 (linux_sw_breakpoint_from_kind): Turn into ...
409 (linux_process_target::sw_breakpoint_from_kind): ... this.
410 (linux_breakpoint_kind_from_current_state): Turn into ...
411 (linux_process_target::breakpoint_kind_from_current_state): ... this.
412 * linux-low.h (class linux_process_target): Update.
413 * lynx-low.cc (lynx_target_ops): Update.
414 (lynx_process_target::sw_breakpoint_from_kind): Define.
415 * lynx-low.h (class lynx_process_target): Update.
416 * nto-low.cc (nto_target_ops): Update.
417 (nto_sw_breakpoint_from_kind): Turn into ...
418 (nto_process_target::sw_breakpoint_from_kind): ... this.
419 * nto-low.h (class nto_process_target): Update.
420 * win32-low.cc (win32_target_ops): Update.
421 (win32_sw_breakpoint_from_kind): Turn into ...
422 (win32_process_target::sw_breakpoint_from_kind): ... this.
423 * win32-low.h (class win32_process_target): Update.
425 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
427 Turn process_stratum_target's multifs_open, multifs_readlink,
428 multifs_unlink ops into methods of process_target.
430 * target.h (struct process_stratum_target): Remove the target ops.
431 (class process_target): Add the target ops. Also add
433 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
435 (process_target::supports_multifs): Define.
436 (process_target::multifs_open): Define.
437 (process_target::multifs_readlink): Define.
438 (process_target::multifs_unlink): Define.
440 Update the derived classes and callers below.
442 * hostio.cc (handle_setfs): Update.
443 (handle_open): Update.
444 (handle_unlink): Update.
445 (handle_readlink): Update.
446 * linux-low.cc (linux_target_ops): Update.
447 (linux_process_target::supports_multifs): Define.
448 (linux_process_target::multifs_open): Define.
449 (linux_process_target::multifs_readlink): Define.
450 (linux_process_target::multifs_unlink): Define.
451 * linux-low.h (class linux_process_target): Update.
452 * lynx-low.cc (lynx_target_ops): Update.
453 * nto-low.cc (nto_target_ops): Update.
454 * win32-low.cc (win32_target_ops): Update.
456 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
458 Turn process_stratum_target's pid_to_exec_file op into a method
461 * target.h (struct process_stratum_target): Remove the target op.
462 (class process_target): Add the target op. Also add
463 'supports_pid_to_exec_file'.
464 * target.cc (process_target::pid_to_exec_file): Define.
465 (process_target::supports_pid_to_exec_file): Define.
467 Update the derived classes and callers below.
469 * server.cc (handle_qxfer_exec_file): Update.
470 (handle_query): Update.
471 * linux-low.cc (linux_target_ops): Update.
472 (linux_process_target::supports_pid_to_exec_file): Define.
473 (linux_process_target::pid_to_exec_file): Define.
474 * linux-low.h (class linux_process_target): Update.
475 * lynx-low.cc (lynx_target_ops): Update.
476 * nto-low.cc (nto_target_ops): Update.
477 * win32-low.cc (win32_target_ops): Update.
479 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
481 Turn process_stratum_target's supports_range_stepping op into a
482 method of process_target.
484 * target.h (struct process_stratum_target): Remove the target op.
485 (class process_target): Add the target op.
486 (target_supports_range_stepping): Update the macro.
487 * target.cc (process_target::supports_range_stepping): Define.
489 Update the derived classes and callers below.
491 * linux-low.cc (linux_target_ops): Update.
492 (linux_supports_range_stepping): Turn into ...
493 (linux_process_target::supports_range_stepping): ... this.
494 * linux-low.h (class linux_process_target): Update.
495 * lynx-low.cc (lynx_target_ops): Update.
496 * nto-low.cc (nto_target_ops): Update.
497 * win32-low.cc (win32_target_ops): Update.
499 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
501 Turn process_stratum_target's btrace-related ops (enable_btrace,
502 disable_btrace, read_btrace, read_btrace_conf) into methods of
505 * target.h (struct process_stratum_target): Remove the target ops.
506 (class process_target): Add the target ops.
507 (target_enable_btrace): Update.
508 (target_disable_btrace): Update.
509 (target_read_btrace): Update.
510 (target_read_btrace_conf): Update.
511 * target.cc (process_target::enable_btrace): Define.
512 (process_target::disable_btrace): Define.
513 (process_target::read_btrace): Define.
514 (process_target::read_btrace_conf): Define.
516 Update the derived classes and callers below.
518 * linux-low.cc (linux_target_ops): Update.
519 (linux_process_target:enable_btrace): Define as a wrapper around
521 (linux_low_disable_btrace): Turn into ...
522 (linux_process_target::disable_btrace): ... this.
523 (linux_low_read_btrace): Turn into ...
524 (linux_process_target::read_btrace): ... this.
525 (linux_low_btrace_conf): Turn into ...
526 (linux_process_target::read_btrace_conf): ... this.
527 * linux-low.h (class linux_process_target): Update.
528 * lynx-low.cc (lynx_target_ops): Update.
529 * nto-low.cc (nto_target_ops): Update.
530 * win32-low.cc (win32_target_ops): Update.
532 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
534 Turn process_stratum_target's supports_agent op into a method of
537 * target.h (struct process_stratum_target): Remove the target op.
538 (class process_target): Add the target op.
539 (target_supports_agent): Update the macro.
540 * target.cc (process_target::supports_agent): Define.
542 Update the derived classes and callers below.
544 * linux-low.cc (linux_target_ops): Update.
545 (linux_supports_agent): Turn into ...
546 (linux_process_target::supports_agent): ... this.
547 * linux-low.h (class linux_process_target): Update.
548 * lynx-low.cc (lynx_target_ops): Update.
549 * nto-low.cc (nto_target_ops): Update.
550 * win32-low.cc (win32_target_ops): Update.
552 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
554 Turn process_stratum_target's qxfer_libraries_svr4 op into a
555 method of process_target.
557 * target.h (struct process_stratum_target): Remove the target op.
558 (class process_target): Add the target op. Also add
559 'supports_qxfer_libraries_svr4'.
560 * target.cc (process_target::qxfer_libraries_svr4): Define.
561 (process_target::supports_qxfer_libraries_svr4): Define.
563 Update the derived classes and callers below.
565 * server.cc (handle_qxfer_libraries_svr4): Update.
566 (handle_query): Update.
567 * linux-low.cc (linux_target_ops): Update.
568 (linux_process_target::supports_qxfer_libraries_svr4): Define.
569 (linux_qxfer_libraries_svr4): Turn into ...
570 (linux_process_target::qxfer_libraries_svr4): ... this.
571 * linux-low.h (class linux_process_target): Update.
572 * lynx-low.cc (lynx_target_ops): Update.
573 * nto-low.cc (nto_target_ops): Update.
574 * win32-low.cc (win32_target_ops): Update.
576 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
578 Turn process_stratum_target's supports_disable_randomization op
579 into a method of process_target.
581 * target.h (struct process_stratum_target): Remove the target op.
582 (class process_target): Add the target op.
583 (target_supports_disable_randomization): Update the macro.
584 * target.cc (process_target::supports_disable_randomization): Define.
586 Update the derived classes and callers below.
588 * linux-low.cc (linux_target_ops): Update.
589 (linux_supports_disable_randomization): Turn into ...
590 (linux_process_target::supports_disable_randomization): ... this.
591 * linux-low.h (class linux_process_target): Update.
592 * lynx-low.cc (lynx_target_ops): Update.
593 * nto-low.cc (nto_target_ops): Update.
594 * win32-low.cc (win32_target_ops): Update.
596 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
598 Turn process_stratum_target's emit_ops op into a method of
601 * target.h (struct process_stratum_target): Remove the target op.
602 (class process_target): Add the target op.
603 (target_emit_ops): Update the macro.
604 * target.cc (process_target::emit_ops): Define.
606 Update the derived classes and callers below.
608 * linux-low.cc (linux_target_ops): Update.
609 (linux_emit_ops): Turn into ...
610 (linux_process_target::emit_ops): ... this.
611 * linux-low.h (class linux_process_target): Update.
612 * lynx-low.cc (lynx_target_ops): Update.
613 * nto-low.cc (nto_target_ops): Update.
614 * win32-low.cc (win32_target_ops): Update.
616 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
618 Turn process_stratum_target's install_fast_tracepoint_jump_pad
619 and get_min_fast_tracepoint_insn_len ops into methods of
622 * target.h (struct process_stratum_target): Remove the target ops.
623 (class process_target): Add the target ops. Also add
624 'supports_fast_tracepoints'.
625 (target_supports_fast_tracepoints): Update the macro.
626 (target_get_min_fast_tracepoint_insn_len): Update the macro.
627 (install_fast_tracepoint_jump_pad): Update and rename the macro
629 (target_install_fast_tracepoint_jump_pad): ... this.
630 * target.cc (process_target::supports_fast_tracepoints): Define.
631 (process_target::install_fast_tracepoint_jump_pad): Define.
632 (process_target::get_min_fast_tracepoint_insn_len): Define.
634 Update the derived classes and callers below.
636 * tracepoint.cc (install_fast_tracepoint): Update.
637 * linux-low.cc (linux_target_ops): Update.
638 (linux_process_target::supports_fast_tracepoints): Define.
639 (linux_install_fast_tracepoint_jump_pad): Turn into ...
640 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
641 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
642 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
643 * linux-low.h (class linux_process_target): Update.
644 * lynx-low.cc (lynx_target_ops): Update.
645 * nto-low.cc (nto_target_ops): Update.
646 * win32-low.cc (win32_target_ops): Update.
648 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
650 Turn process_stratum_target's stabilize_threads op into a
651 method of process_target.
653 * target.h (struct process_stratum_target): Remove the target op.
654 (class process_target): Add the target op.
655 (target_stabilize_threads): Update the macro.
656 * target.cc (process_target::stabilize_threads): Define.
658 Update the derived classes and callers below.
660 * server.cc (handle_status): Update.
661 * tracepoint.cc (cmd_qtdp): Update.
662 (cmd_qtstart): Update.
663 * linux-low.cc (linux_target_ops): Update.
664 (linux_stabilize_threads): Turn into ...
665 (linux_process_target::stabilize_threads): ... this.
666 (linux_wait_1): Update.
667 * linux-low.h (class linux_process_target): Update.
668 * lynx-low.cc (lynx_target_ops): Update.
669 * nto-low.cc (nto_target_ops): Update.
670 * win32-low.cc (win32_target_ops): Update.
672 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
674 Turn process_stratum_target's pause_all and unpause_all ops
675 into methods of process_target.
677 * target.h (struct process_stratum_target): Remove the target ops.
678 (class process_target): Add the target ops.
679 (pause_all): Update the macro and rename to...
680 (target_pause_all): ... this.
681 (unpause_all): Update the macro and rename to...
682 (target_unpause_all): ... this.
683 * target.cc (process_target::pause_all): Define.
684 (process_target::unpause_all): Define.
686 Update the derived classes and callers below.
688 * server.cc (handle_status): Update.
689 * tracepoint.cc (clear_installed_tracepoints): Update.
691 (cmd_qtstart): Update.
692 (stop_tracing): Update.
693 (cmd_qtstatus): Update.
694 (upload_fast_traceframes): Update.
695 (run_inferior_command): Update.
696 * linux-low.cc (linux_target_ops): Update.
697 (linux_pause_all): Turn into ...
698 (linux_process_target::pause_all): ... this.
699 (linux_unpause_all): Turn into ...
700 (linux_process_target::unpause_all): ... this.
701 (linux_process_target::prepare_to_access_memory): Update.
702 (linux_process_target::done_accessing_memory): Update.
703 * linux-low.h (class linux_process_target): Update.
704 * lynx-low.cc (lynx_target_ops): Update.
705 * nto-low.cc (nto_target_ops): Update.
706 * win32-low.cc (win32_target_ops): Update.
708 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
710 Turn process_stratum_target's get_tib_address op into a method of
713 * target.h (struct process_stratum_target): Remove the target op.
714 (class process_target): Add the target op. Also add
715 'supports_get_tib_address'.
716 * target.cc (process_target::get_tib_address): Define.
717 (process_target::supports_get_tib_address): Define.
719 Update the derived classes and callers below.
721 * server.cc (handle_query): Update.
722 * linux-low.cc (win32_target_ops): Update.
723 * lynx-low.cc (lynx_target_ops): Update.
724 * nto-low.cc (nto_target_ops): Update.
725 * win32-low.cc (win32_target_ops): Update.
726 (win32_process_target::supports_get_tib_address): Define.
727 (win32_get_tib_address): Turn into ...
728 (win32_process_target::get_tib_address): ... this.
729 * win32-low.h (class win32_process_target): Update.
731 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
733 Turn process_stratum_target's thread_stopped op into a method of
736 * target.h (struct process_stratum_target): Remove the target op.
737 (class process_target): Add the target op. Also add
738 'supports_thread_stopped'.
739 (target_thread_stopped): Update the macro.
740 * target.cc (process_target::thread_stopped): Define.
741 (process_target::supports_thread_stopped): Define.
742 (prepare_to_access_memory): Update.
744 Update the derived classes and callers below.
746 * server.cc (queue_stop_reply_callback): Update.
747 * linux-low.cc (linux_target_ops): Update.
748 (linux_process_target::supports_thread_stopped): Define.
749 (linux_thread_stopped): Turn into ...
750 (linux_process_target::thread_stopped): ... this.
751 * linux-low.h (class linux_process_target): Update.
752 * lynx-low.cc (lynx_target_ops): Update.
753 * nto-low.cc (nto_target_ops): Update.
754 * win32-low.cc (win32_target_ops): Update.
756 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
758 Turn process_stratum_target's read_pc and write_pc ops into
759 methods of process_target.
761 * target.h (struct process_stratum_target): Remove the target ops.
762 (class process_target): Add the target ops.
763 * target.cc (process_target::read_pc): Define.
764 (process_target::write_pc): Define.
766 Update the derived classes and callers below.
768 * regcache.cc (regcache_read_pc): Update.
769 (regcache_write_pc): Update.
770 * linux-low.cc (linux_target_ops): Update.
771 (linux_read_pc): Turn into ...
772 (linux_process_target::read_pc): ... this.
773 (linux_write_pc): Turn into ...
774 (linux_process_target::write_pc): ... this.
775 * linux-low.h (class linux_process_target): Update.
776 * lynx-low.cc (lynx_target_ops): Update.
777 * nto-low.cc (nto_target_ops): Update.
778 * win32-low.cc (win32_target_ops): Update.
780 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
782 Turn process_stratum_target's supports_tracepoints op into a
783 method of process_target.
785 * target.h (struct process_stratum_target): Remove the target op.
786 (class process_target): Add the target op.
787 (target_supports_tracepoints): Update the macro.
788 * target.cc (process_target::supports_tracepoints): Define.
790 Update the derived classes and callers below.
792 * linux-low.cc (linux_target_ops): Update.
793 (linux_supports_tracepoints): Turn into ...
794 (linux_process_target::supports_tracepoints): ... this.
795 * linux-low.h (class linux_process_target): Update.
796 * lynx-low.cc (lynx_target_ops): Update.
797 * nto-low.cc (nto_target_ops): Update.
798 * win32-low.cc (win32_target_ops): Update.
800 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
802 Turn process_stratum_target's process_qsupported op into a method
805 * target.h (struct process_stratum_target): Remove the target op.
806 (class process_target): Add the target op.
807 (target_process_qsupported): Update the macro.
808 * target.cc (process_target::process_qsupported): Define.
810 Update the derived classes and callers below.
812 * linux-low.cc (linux_target_ops): Update.
813 (linux_process_qsupported): Turn into ...
814 (linux_process_target::process_qsupported): ... this.
815 * linux-low.h (class linux_process_target): Update.
816 * lynx-low.cc (lynx_target_ops): Update.
817 * nto-low.cc (nto_target_ops): Update.
818 * win32-low.cc (win32_target_ops): Update.
820 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
822 Turn process_stratum_target's read_loadmap op into a method of
825 * target.h (struct process_stratum_target): Remove the target op.
826 (class process_target): Add the target op. Also add
827 'supports_read_loadmap'.
828 * target.cc (process_target::read_loadmap): Define.
829 (process_target::supports_read_loadmap): Define.
831 Update the derived classes and callers below.
833 * server.cc (handle_qxfer_fdpic): Update.
834 (handle_query): Update.
835 * linux-low.cc (linux_target_ops): Update.
836 (linux_process_target::supports_read_loadmap): Define.
837 (linux_read_loadmap): Turn into ...
838 (linux_process_target::read_loadmap): ... this.
839 * linux-low.h (class linux_process_target): Update.
840 * lynx-low.cc (lynx_target_ops): Update.
841 * nto-low.cc (nto_target_ops): Update.
842 * win32-low.cc (win32_target_ops): Update.
844 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
846 Turn process_stratum_target's core_of_thread op into a method of
849 * target.h (struct process_stratum_target): Remove the target op.
850 (class process_target): Add the target op.
851 (target_core_of_thread): Update the macro.
852 * target.cc (process_target::core_of_thread): Define.
854 Update the derived classes and callers below.
856 * linux-low.cc (linux_target_ops): Update.
857 (linux_process_target::core_of_thread): Define.
858 * linux-low.h (class linux_process_target): Update.
859 * lynx-low.cc (lynx_target_ops): Update.
860 * nto-low.cc (nto_target_ops): Update.
861 * win32-low.cc (win32_target_ops): Update.
863 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
865 Turn process_stratum_target's handle_monitor_command op into a
866 method of process_target.
868 * target.h (struct process_stratum_target): Remove the target op.
869 (class process_target): Add the target op.
870 (target_handle_monitor_command): Update the macro.
871 * target.cc (process_target::handle_monitor_command): Define.
873 Update the derived classes and callers below.
875 * server.cc (handle_query): Update.
876 * linux-low.cc (linux_target_ops): Update.
877 (linux_process_target::handle_monitor_command): Define.
878 * linux-low.h (class linux_process_target): Update.
879 * lynx-low.cc (lynx_target_ops): Update.
880 * nto-low.cc (nto_target_ops): Update.
881 * win32-low.cc (win32_target_ops): Update.
883 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
885 Turn process_stratum_target's handle_new_gdb_connection op into a
886 method of process_target.
888 * target.h (struct process_stratum_target): Remove the target op.
889 (class process_target): Add the target op.
890 (target_handle_new_gdb_connection): Update the macro.
891 * target.cc (process_target::handle_new_gdb_connection): Define.
893 Update the derived classes and callers below.
895 * linux-low.cc (linux_target_ops): Update.
896 (linux_handle_new_gdb_connection): Turn into ...
897 (linux_process_target::handle_new_gdb_connection): ... this.
898 * linux-low.h (class linux_process_target): Update.
899 * lynx-low.cc (lynx_target_ops): Update.
900 * nto-low.cc (nto_target_ops): Update.
901 * win32-low.cc (win32_target_ops): Update.
903 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
905 Turn process_stratum_target's supports_fork_events,
906 supports_vfork_events, and supports_exec_events ops into methods
909 * target.h (struct process_stratum_target): Remove the target ops.
910 (class process_target): Add the target ops.
911 (target_supports_fork_events): Update the macro.
912 (target_supports_vfork_events): Update the macro.
913 (target_supports_exec_events): Update the macro.
914 * target.cc (process_target::supports_fork_events): Define.
915 (process_target::supports_vfork_events): Define.
916 (process_target::supports_exec_events): Define.
918 Update the derived classes and callers below.
920 * linux-low.cc (linux_target_ops): Update.
921 (linux_supports_fork_events): Turn into ...
922 (linux_process_target::supports_fork_events): ... this.
923 (linux_supports_vfork_events): Turn into ...
924 (linux_process_target::supports_vfork_events): ... this.
925 (linux_supports_exec_events): Turn into ...
926 (linux_process_target::supports_exec_events): ... this.
927 * linux-low.h (class linux_process_target): Update.
928 * lynx-low.cc (lynx_target_ops): Update.
929 * nto-low.cc (nto_target_ops): Update.
930 * win32-low.cc (win32_target_ops): Update.
932 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
934 Turn process_stratum_target's supports_multi_process op into a
935 method of process_target.
937 * target.h (struct process_stratum_target): Remove the target op.
938 (class process_target): Add the target op.
939 * target.cc (process_target::supports_multi_process): Define.
940 (target_supports_multi_process): Update.
942 Update the derived classes and callers below.
944 * linux-low.cc (linux_target_ops): Update.
945 (linux_supports_multi_process): Turn into ...
946 (linux_process_target::supports_multi_process): ... this.
947 * linux-low.h (class linux_process_target): Update.
948 * lynx-low.cc (lynx_target_ops): Update.
949 * nto-low.cc (nto_target_ops): Update.
950 * win32-low.cc (win32_target_ops): Update.
952 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
954 Turn process_stratum_target's supports_non_stop, async, and
955 start_non_stop ops into methods of process_target.
957 * target.h (struct process_stratum_target): Remove the target ops.
958 (class process_target): Add the target ops.
959 (target_supports_non_stop): Update the macro.
960 (target_async): Update the macro.
961 (start_non_stop): Remove declaration.
962 * target.cc (process_target::supports_non_stop): Define.
963 (process_target::async): Define.
964 (process_target::start_non_stop): Define.
965 (start_non_stop): Remove.
967 Update the derived classes and callers below.
969 * server.cc (handle_qxfer_siginfo): Update.
970 (handle_query): Update.
971 * linux-low.cc (linux_target_ops): Update.
972 (linux_supports_non_stop): Turn into ...
973 (linux_process_target::supports_non_stop): ... this.
974 (linux_async): Turn into ...
975 (linux_process_target::async): ... this.
976 (linux_start_non_stop): Turn into ...
977 (linux_process_target::start_non_stop): ... this.
978 * linux-low.h (class linux_process_target): Update.
979 * lynx-low.cc (lynx_target_ops): Update.
980 * nto-low.cc (nto_target_ops): Update.
981 (nto_supports_non_stop): Remove; rely on the default behavior
983 * win32-low.cc (win32_target_ops): Update.
985 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
987 Turn process_stratum_target's qxfer_siginfo op into a method of
990 * target.h (struct process_stratum_target): Remove the target op.
991 (class process_target): Add the target op. Also add
992 'supports_qxfer_siginfo'.
993 * target.cc (process_target::qxfer_siginfo): Define.
994 (process_target::supports_qxfer_siginfo): Define.
996 Update the derived classes and callers below.
998 * server.cc (handle_qxfer_siginfo): Update.
999 (handle_query): Update.
1000 * linux-low.cc (linux_target_ops): Update.
1001 (linux_process_target::supports_qxfer_siginfo): Define.
1002 (linux_xfer_siginfo): Turn into ...
1003 (linux_process_target::qxfer_siginfo): ... this.
1004 * linux-low.h (class linux_process_target): Update.
1005 * lynx-low.cc (lynx_target_ops): Update.
1006 * nto-low.cc (nto_target_ops): Update.
1007 * win32-low.cc (win32_target_ops): Update.
1009 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1011 Turn process_stratum_target's qxfer_osdata op into a method of
1014 * target.h (struct process_stratum_target): Remove the target op.
1015 (class process_target): Add the target op. Also add
1016 'supports_qxfer_osdata'.
1017 * target.cc (process_target::qxfer_osdata): Define.
1018 (process_target::supports_qxfer_osdata): Define.
1020 Update the derived classes and callers below.
1022 * server.cc (handle_qxfer_osdata): Update.
1023 (handle_query): Update.
1024 * linux-low.cc (linux_target_ops): Update.
1025 (linux_process_target::supports_qxfer_osdata): Define.
1026 (linux_qxfer_osdata): Turn into ...
1027 (linux_process_target::qxfer_osdata): ... this.
1028 * linux-low.h (class linux_process_target): Update.
1029 * lynx-low.cc (lynx_target_ops): Update.
1030 * nto-low.cc (nto_target_ops): Update.
1031 * win32-low.cc (win32_target_ops): Update.
1033 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1035 Turn process_stratum_target's hostio_last_error op into a
1036 method of process_target.
1038 * target.h (struct process_stratum_target): Remove the target op.
1039 (class process_target): Add the target op.
1040 * target.cc: Add "hostio.h" to includes.
1041 (process_target::hostio_last_error): Define.
1043 Update the derived classes and callers below.
1045 * hostio.cc (hostio_error): Update.
1046 * linux-low.cc: Remove "hostio.h" from includes.
1047 (linux_target_ops): Update.
1048 * lynx-low.cc (lynx_target_ops): Update.
1049 * nto-low.cc (nto_target_ops): Update.
1050 * win32-low.h (class win32_process_target): Update.
1051 * win32-low.cc (win32_target_ops): Update.
1052 (wince_hostio_last_error): Turn into ...
1053 (win32_process_target::hostio_last_error): ... this.
1055 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1057 Turn process_stratum_target's get_tls_address op into a method of
1060 * target.h (struct process_stratum_target): Remove the target op.
1061 (class process_target): Add the target op. Also add
1062 'supports_get_tls_address'.
1063 * target.cc (process_target::get_tls_address): Define.
1064 (process_target::supports_get_tls_address): Define.
1066 Update the derived classes and callers below.
1068 * server.cc (handle_query): Update.
1069 * linux-low.cc (linux_target_ops): Update.
1070 (linux_process_target::supports_get_tls_address): Define.
1071 (linux_process_target::get_tls_address): Define.
1072 * linux-low.h (class linux_process_target): Update.
1073 * lynx-low.cc (lynx_target_ops): Update.
1074 * nto-low.cc (nto_target_ops): Update.
1075 * win32-low.cc (win32_target_ops): Update.
1077 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1079 Turn process_stratum_target's read_offsets op into a method of
1082 * target.h (struct process_stratum_target): Remove the target op.
1083 (class process_target): Add the target op. Also add
1084 'supports_read_offsets'.
1085 * target.cc (process_target::read_offsets): Define.
1086 (process_target::supports_read_offsets): Define.
1088 Update the derived classes and callers below.
1090 * server.cc (handle_query): Update.
1091 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1092 (linux_target_ops): Update.
1093 (linux_process_target::supports_read_offsets): Define.
1094 (linux_read_offsets): Turn into ...
1095 (linux_process_target::read_offsets): ... this.
1096 * linux-low.h (class linux_process_target): Update.
1097 * lynx-low.cc (lynx_target_ops): Update.
1098 * nto-low.cc (nto_target_ops): Update.
1099 * win32-low.cc (win32_target_ops): Update.
1101 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1103 Turn process_stratum_target's stopped_by_watchpoint and
1104 stopped_data_address ops into methods of process_target.
1106 * target.h (struct process_stratum_target): Remove the target ops.
1107 (class process_target): Add the target ops.
1108 * target.cc (process_target::stopped_by_watchpoint): Define.
1109 (process_target::stopped_data_address): Define.
1111 Update the derived classes and callers below.
1113 * remote-utils.cc (prepare_resume_reply): Update.
1114 * linux-low.cc (linux_target_ops): Update.
1115 (linux_stopped_by_watchpoint): Turn into ...
1116 (linux_process_target::stopped_by_watchpoint): ... this.
1117 (linux_stopped_data_address): Turn into ...
1118 (linux_process_target::stopped_data_address): ... this.
1119 * linux-low.h (class linux_process_target): Update.
1120 * lynx-low.cc (lynx_target_ops): Update.
1121 * nto-low.cc (nto_target_ops): Update.
1122 (nto_stopped_by_watchpoint): Turn into ...
1123 (nto_process_target::stopped_by_watchpoint): ... this.
1124 (nto_stopped_data_address): Turn into ...
1125 (nto_process_target::stopped_data_address): ... this.
1126 * nto-low.h (class nto_process_target): Update.
1127 * win32-low.cc (win32_target_ops): Update.
1128 (win32_stopped_by_watchpoint): Turn into ...
1129 (win32_process_target::stopped_by_watchpoint): ... this.
1130 (win32_stopped_data_address): Turn into ...
1131 (win32_process_target::stopped_data_address): ... this.
1132 * win32-low.h (class win32_process_target): Update.
1134 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1136 Turn process_stratum_target's supports_hardware_single_step op into
1137 a method of process_target.
1139 * target.h (struct process_stratum_target): Remove the target op.
1140 (class process_target): Add the target op.
1141 (target_supports_hardware_single_step): Update the macro.
1142 (target_can_do_hardware_single_step): Remove declaration.
1143 * target.cc (process_target::supports_hardware_single_step): Define.
1144 (target_can_do_hardware_single_step): Remove.
1146 Update the derived classes and callers below.
1148 * linux-low.h (class linux_process_target): Update.
1149 * linux-low.cc (linux_target_ops): Update.
1150 (linux_supports_hardware_single_step): Turn into ...
1151 (linux_process_target::supports_hardware_single_step): ... this.
1152 * lynx-low.h (class lynx_process_target): Update.
1153 * lynx-low.cc (lynx_target_ops): Update.
1154 (lynx_process_target::supports_hardware_single_step): Define.
1155 * nto-low.h (class nto_process_target): Update.
1156 * nto-low.cc (nto_target_ops): Update.
1157 (nto_process_target::supports_hardware_single_step): Define.
1158 * win32-low.h (class win32_process_target): Update.
1159 * win32-low.cc (win32_target_ops): Update.
1160 (win32_process_target::supports_hardware_single_step): Define.
1162 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1164 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1165 ops into methods of process_target.
1167 * target.h (struct process_stratum_target): Remove the target ops.
1168 (class process_target): Add the target ops.
1169 (target_stopped_by_hw_breakpoint): Update the macro.
1170 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1171 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1172 (process_target::supports_stopped_by_hw_breakpoint): Define.
1174 Update the derived classes and callers below.
1176 * linux-low.cc (linux_target_ops): Update.
1177 (linux_stopped_by_hw_breakpoint): Turn into ...
1178 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1179 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1180 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1181 * linux-low.h (class linux_process_target): Update.
1182 * lynx-low.cc (lynx_target_ops): Update.
1183 * nto-low.cc (nto_target_ops): Update.
1184 * win32-low.cc (win32_target_ops): Update.
1186 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1188 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1189 ops into methods of process_target.
1191 * target.h (struct process_stratum_target): Remove the target ops.
1192 (class process_target): Add the target ops.
1193 (target_stopped_by_sw_breakpoint): Update the macro.
1194 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1195 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1196 (process_target::supports_stopped_by_sw_breakpoint): Define.
1198 Update the derived classes and callers below.
1200 * linux-low.cc (linux_target_ops): Update.
1201 (linux_stopped_by_sw_breakpoint): Turn into ...
1202 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1203 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1204 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1205 * linux-low.h (class linux_process_target): Update.
1206 * lynx-low.cc (lynx_target_ops): Update.
1207 * nto-low.cc (nto_target_ops): Update.
1208 * win32-low.cc (win32_target_ops): Update.
1210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1212 Turn process_stratum_target's insert_point and remove_point ops
1213 into methods of process_target.
1215 * target.h (struct process_stratum_target): Remove the target ops.
1216 (class process_target): Add the target ops.
1217 * target.cc (process_target::insert_point): Define.
1218 (process_target::remove_point): Define.
1220 Update the derived classes and callers below.
1222 * mem-break.cc (set_raw_breakpoint_at): Update.
1223 (delete_raw_breakpoint): Update.
1224 (uninsert_raw_breakpoint): Update.
1225 (reinsert_raw_breakpoint): Update.
1226 * linux-low.cc (linux_target_ops): Update.
1227 (linux_insert_point): Turn into ...
1228 (linux_process_target::insert_point): ... this.
1229 (linux_remove_point): Turn into ...
1230 (linux_process_target::remove_point): ... this.
1231 * linux-low.h (class linux_process_target): Update.
1232 * lynx-low.cc (lynx_target_ops): Update.
1233 * nto-low.cc (nto_target_ops): Update.
1234 (nto_insert_point): Turn into ...
1235 (nto_process_target::insert_point): ... this.
1236 (nto_remove_point): Turn into ...
1237 (nto_process_target::remove_point): ... this.
1238 * nto-low.h (class nto_process_target): Update.
1239 * win32-low.cc (win32_target_ops): Update.
1240 (win32_insert_point): Turn into ...
1241 (win32_process_target::insert_point): ... this.
1242 (win32_remove_point): Turn into ...
1243 (win32_process_target::remove_point): ... this.
1244 * win32-low.h (class win32_process_target): Update.
1246 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1248 Turn process_stratum_target's supports_z_point_type op into a
1249 method of process_target.
1251 * target.h (struct process_stratum_target): Remove the target op.
1252 (class process_target): Add the target op.
1253 * target.cc (process_target::supports_z_point_type): Define.
1255 Update the derived classes and callers below.
1257 * mem-break.cc (z_type_supported): Update.
1258 * linux-low.cc (linux_target_ops): Update.
1259 (linux_supports_z_point_type): Turn into ...
1260 (linux_process_target::supports_z_point_type): ... this.
1261 * linux-low.h (class linux_process_target): Update.
1262 * lynx-low.cc (lynx_target_ops): Update.
1263 * nto-low.cc (nto_target_ops): Update.
1264 (nto_supports_z_point_type): Turn into ...
1265 (nto_process_target::supports_z_point_type): ... this.
1266 * nto-low.h (class nto_process_target): Update.
1267 * win32-low.cc (win32_target_ops): Update.
1268 (win32_supports_z_point_type): Turn into ...
1269 (win32_process_target::supports_z_point_type): ... this.
1270 * win32-low.h (class win32_process_target): Update.
1272 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1274 Turn process_stratum_target's read_auxv op into a method of
1277 * target.h (class process_stratum_target): Remove the target op.
1278 (struct process_target): Add the target op. Also add
1279 'supports_read_auxv'.
1280 * target.cc (process_target::read_auxv): Define.
1281 (process_target::supports_read_auxv): Define.
1283 Update the derived classes and callers below.
1285 * server.cc (handle_qxfer_auxv): Update.
1286 (handle_query): Update.
1287 * linux-low.cc (linux_target_ops): Update.
1288 (linux_process_target::supports_read_auxv): Define.
1289 (linux_read_auxv): Turn into ...
1290 (linux_process_target::read_auxv): ... this.
1291 * linux-low.h (class linux_process_target): Update.
1292 * lynx-low.cc (lynx_target_ops): Update.
1293 * nto-low.cc (nto_target_ops): Update.
1294 (nto_process_target::supports_read_auxv): Define.
1295 (nto_read_auxv): Turn into ...
1296 (nto_process_target::read_auxv): ... this.
1297 * nto-low.h (class nto_process_target): Update.
1298 * win32-low.cc (win32_target_ops): Update.
1300 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1302 Turn process_stratum_target's request_interrupt op into a method of
1305 * target.h (struct process_stratum_target): Remove the target op.
1306 (class process_target): Add the target op.
1308 Update the derived classes and callers below.
1310 * remote-utils.cc (putpkt_binary_1): Update.
1311 (input_interrupt): Update.
1313 * server.cc (handle_v_requests): Update.
1314 * linux-low.cc (linux_target_ops): Update.
1315 (linux_request_interrupt): Turn into ...
1316 (linux_process_target::request_interrupt): ... this.
1317 * linux-low.h (class linux_process_target): Update.
1318 * lynx-low.cc (lynx_target_ops): Update.
1319 (lynx_request_interrupt): Turn into ...
1320 (lynx_process_target::request_interrupt): ... this.
1321 * lynx-low.h (class lynx_process_target): Update.
1322 * nto-low.cc (nto_target_ops): Update.
1323 (nto_request_interrupt): Turn into ...
1324 (nto_process_target::request_interrupt): ... this.
1325 * nto-low.h (class nto_process_target): Update.
1326 * win32-low.cc (win32_target_ops): Update.
1327 (win32_request_interrupt): Turn into ...
1328 (win32_process_target::request_interrupt): ... this.
1329 * win32-low.h (class win32_process_target): Update.
1331 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1333 Turn process_stratum_target's look_up_symbols op into a method of
1336 * target.h (struct process_stratum_target): Remove the target op.
1337 (class process_target): Add the target op.
1338 * target.cc (process_target::look_up_symbols): Define.
1340 Update the derived classes and callers below.
1342 * server.cc (handle_query): Update.
1343 * linux-low.cc (linux_target_ops): Update.
1344 (linux_look_up_symbols): Turn into ...
1345 (linux_process_target::look_up_symbols): ... this.
1346 * linux-low.h (class linux_process_target): Update.
1347 * lynx-low.cc (lynx_target_ops): Update.
1348 * nto-low.cc (nto_target_ops): Update.
1349 * win32-low.cc (win32_target_ops): Update.
1351 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1353 Turn process_stratum_target's read_memory and write_memory
1354 ops into methods of process_target.
1356 * target.h (struct process_stratum_target): Remove the target ops.
1357 (class process_target): Add the target ops.
1359 Update the derived classes and callers below.
1361 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1362 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1363 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1364 (arm_get_syscall_trapinfo): Update.
1365 * linux-cris-low.cc (cris_breakpoint_at): Update.
1366 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1367 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1368 * linux-mips-low.cc (mips_breakpoint_at): Update.
1369 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1370 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1371 * linux-sh-low.cc (sh_breakpoint_at): Update.
1372 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1373 (sparc_store_gregset_from_stack): Update.
1374 (sparc_breakpoint_at): Update.
1375 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1376 * linux-tile-low.cc (tile_breakpoint_at): Update.
1377 * linux-x86-low.cc (x86_breakpoint_at): Update.
1378 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1379 * mem-brea.cc (insert_memory_breakpoint): Update.
1380 (validate_inserted_breakpoint): Update.
1381 * target.cc (read_inferior_memory): Update.
1382 (target_write_memory): Update.
1383 * linux-low.cc (linux_target_ops): Update.
1384 (linux_read_memory): Make a wrapper around the read_memory target
1386 (linux_process_target::read_memory): Rename from linux_read_memory.
1387 (linux_write_memory): Turn into ...
1388 (linux_process_target::write_memory): ... this.
1389 * linux-low.h (class linux_process_target): Update.
1390 * lynx-low.cc (lynx_target_ops): Update.
1391 (lynx_read_memory): Turn into ...
1392 (lynx_process_target::read_memory): ... this.
1393 (lynx_write_memory): Turn into ...
1394 (lynx_process_target::write_memory): ... this.
1395 * lynx-low.h (class lynx_process_target): Update.
1396 * nto-low.cc (nto_target_ops): Update.
1397 (nto_read_memory): Turn into ...
1398 (nto_process_target::read_memory): ... this.
1399 (nto_write_memory): Turn into ...
1400 (nto_process_target::write_memory): ... this.
1401 * nto-low.h (class nto_process_target): Update.
1402 * win32-low.cc (win32_target_ops): Update.
1403 (win32_read_inferior_memory): Turn into ...
1404 (win32_process_target::read_memory): ... this.
1405 (win32_write_inferior_memory): Turn into ...
1406 (win32_process_target::write_memory): ... this.
1407 * win32-low.h (class win32_process_target): Update.
1409 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1411 Turn process_stratum_target's prepare_to_access_memory and
1412 done_accessing_memory ops into methods of process_target.
1414 * target.h (struct process_stratum_target): Remove the target ops.
1415 (class process_target): Add the target ops.
1416 * target.cc (process_target::prepare_to_access_memory): Define.
1417 (process_target::done_accessing_memory): Define.
1418 (prepare_to_access_memory): Update.
1419 (done_accessing_memory): Update.
1421 Update the derived classes and callers below.
1423 * linux-low.cc (linux_target_ops): Update.
1424 (linux_prepare_to_access_memory): Turn into ...
1425 (linux_process_target::prepare_to_access_memory): ... this.
1426 (linux_done_accessing_memory): Turn into ...
1427 (linux_process_target::done_accessing_memory): ... this.
1428 * linux-low.h (class linux_process_target): Update.
1429 * lynx-low.cc (lynx_target_ops): Update.
1430 * nto-low.cc (nto_target_ops): Update.
1431 * win32-low.cc (win32_target_ops): Update.
1433 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1435 Turn process_stratum_target's fetch_registers and store_registers
1436 ops into methods of process_target.
1438 * target.h (struct process_stratum_target): Remove the target ops.
1439 (class process_target): Add the target ops.
1440 (fetch_inferior_registers): Update the macro.
1441 (store_inferior_registers): Update the macro.
1443 Update the derived classes and callers below.
1445 * linux-low.cc (linux_target_ops): Update.
1446 (linux_fetch_registers): Turn into ...
1447 (linux_process_target::fetch_registers): ... this.
1448 (linux_store_registers): Turn into ...
1449 (linux_process_target::store_registers): ... this.
1450 * linux-low.h (class linux_process_target): Update.
1451 * lynx-low.cc (lynx_target_ops): Update.
1452 (lynx_fetch_registers): Turn into ...
1453 (lynx_process_target::fetch_registers): ... this.
1454 (lynx_store_registers): Turn into ...
1455 (lynx_process_target::store_registers): ... this.
1456 * lynx-low.h (class lynx_process_target): Update.
1457 * nto-low.cc (nto_target_ops): Update.
1458 (nto_fetch_registers): Turn into ...
1459 (nto_process_target::fetch_registers): ... this.
1460 (nto_store_registers): Turn into ...
1461 (nto_process_target::store_registers): ... this.
1462 * nto-low.h (class nto_process_target): Update.
1463 * win32-low.cc (win32_target_ops): Update.
1464 (win32_fetch_inferior_registers): Turn into ...
1465 (win32_process_target::fetch_registers): ... this.
1466 (win32_store_inferior_registers): Turn into ...
1467 (win32_process_target::store_registers): ... this.
1468 * win32-low.h (class win32_process_target): Update.
1470 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1472 Turn process_stratum_target's wait op into a method of
1475 * target.h (struct process_stratum_target): Remove the target op.
1476 (class process_target): Add the target op.
1478 Update the derived classes and callers below.
1480 * target.cc (target_wait): Update.
1481 * linux-low.cc (linux_target_ops): Update.
1482 (linux_wait): Turn into ...
1483 (linux_process_target::wait): ... this.
1484 * linux-low.h (class linux_process_target): Update.
1485 * lynx-low.cc (lynx_target_ops): Update.
1486 (lynx_wait): Turn into ...
1487 (lynx_process_target::wait): ... this.
1488 * lynx-low.h (class lynx_process_target): Update.
1489 * nto-low.cc (nto_target_ops): Update.
1490 (nto_wait): Turn into ...
1491 (nto_process_target::wait): ... this.
1492 * nto-low.h (class nto_process_target): Update.
1493 * win32-low.cc (win32_target_ops): Update.
1494 (win32_wait): Turn into ...
1495 (win32_process_target::wait): ... this.
1496 (do_initial_child_stuff): Update.
1497 * win32-low.h (class win32_process_target): Update.
1499 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1501 Turn process_stratum_target's resume op into a method of
1504 * target.h (struct process_stratum_target): Remove the target op.
1505 (class process_target): Add the target op.
1507 Update the derived classes and callers below.
1509 * server.cc (resume): Update.
1510 * target.cc (target_stop_and_wait): Update.
1511 (target_continue_no_signal): Update.
1512 (target_continue): Update.
1513 * linux-low.cc (linux_target_ops): Update.
1514 (linux_resume): Turn into ...
1515 (linux_process_target::resume): ... this.
1516 * linux-low.h (class linux_process_target): Update.
1517 * lynx-low.cc (lynx_target_ops): Update.
1518 (lynx_resume): Turn into ...
1519 (lynx_process_target::resume): ... this.
1520 * lynx-low.h (class lynx_process_target): Update.
1521 * nto-low.cc (nto_target_ops): Update.
1522 (nto_resume): Turn into ...
1523 (nto_process_target::resume): ... this.
1524 * nto-low.h (class nto_process_target): Update.
1525 * win32-low.cc (win32_target_ops): Update.
1526 (win32_resume): Turn into ...
1527 (win32_process_target::resume): ... this.
1528 (win32_process_target::detach): Update.
1529 (do_initial_child_stuff): Update.
1530 * win32-low.h (class win32_process_target): Update.
1532 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1534 Turn process_stratum_target's thread_alive op into a method of
1537 * target.h (struct process_stratum_target): Remove the target op.
1538 (class process_target): Add the target op.
1539 (mythread_alive): Update the macro.
1541 Update the derived classes and callers below.
1543 * linux-low.cc (linux_target_ops): Update.
1544 (linux_thread_alive): Turn into ...
1545 (linux_process_target::thread_alive): ... this.
1546 (wait_for_sigstop): Update.
1547 * linux-low.h (class linux_process_target): Update.
1548 * lynx-low.cc (lynx_target_ops): Update.
1549 (lynx_thread_alive): Turn into ...
1550 (lynx_process_target::thread_alive): ... this.
1551 * lynx-low.h (class lynx_process_target): Update.
1552 * nto-low.cc (nto_target_ops): Update.
1553 (nto_thread_alive): Turn into ...
1554 (nto_process_target::thread_alive): ... this.
1555 * nto-low.h (class nto_process_target): Update.
1556 * win32-low.cc (win32_target_ops): Update.
1557 (win32_thread_alive): Turn into ...
1558 (win32_process_target::thread_alive): ... this.
1559 * win32-low.h (class win32_process_target): Update.
1561 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1563 Turn process_stratum_target's join op into a method of
1566 * target.h (struct process_stratum_target): Remove the target op.
1567 (class process_target): Add the target op.
1568 (join_inferior): Update the macro.
1570 Update the derived classes and callers below.
1572 * linux-low.cc (linux_target_ops): Update.
1573 (linux_join): Turn into ...
1574 (linux_process_target::join): ... this.
1575 * linux-low.h (class linux_process_target): Update.
1576 * lynx-low.cc (lynx_target_ops): Update.
1577 (lynx_join): Turn into ...
1578 (lynx_process_target::join): ... this.
1579 * lynx-low.h (class lynx_process_target): Update.
1580 * nto-low.cc (nto_target_ops): Update.
1581 (nto_process_target::join): Define.
1582 * nto-low.h (class nto_process_target): Update.
1583 * win32-low.cc (win32_target_ops): Update.
1584 (win32_join): Turn into ...
1585 (win32_process_target::join): ... this.
1586 * win32-low.h (class win32_process_target): Update.
1588 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1590 Turn process_stratum_target's mourn op into a method of
1593 * target.h (struct process_stratum_target): Remove the target op.
1594 (class process_target): Add the target op.
1596 Update the derived classes and callers below.
1598 * target.cc (target_mourn_inferior): Update.
1599 * linux-low.cc (linux_target_ops): Update.
1600 (linux_mourn): Turn into ...
1601 (linux_process_target::mourn): ... this.
1602 (handle_extended_wait): Update.
1603 (linux_process_target::kill): Update.
1604 (linux_process_target::detach): Update.
1605 * linux-low.h (class linux_process_target): Update.
1606 * lynx-low.cc (lynx_target_ops): Update.
1607 (lynx_mourn): Turn into ...
1608 (lynx_process_target::mourn): ... this.
1609 * lynx-low.h (class lynx_process_target): Update.
1610 * nto-low.cc (nto_target_ops): Update.
1611 (nto_mourn): Turn into ...
1612 (nto_process_target::mourn): ... this.
1613 * nto-low.h (class nto_process_target): Update.
1614 * win32-low.cc (win32_target_ops): Update.
1615 (win32_mourn): Turn into ...
1616 (win32_process_target::mourn): ... this.
1617 * win32-low.h (class win32_process_target): Update.
1619 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1621 Turn process_stratum_target's detach op into a method of
1624 * target.h (struct process_stratum_target): Remove the target op.
1625 (class process_target): Add the target op.
1626 (detach_inferior): Update the macro.
1628 Update the derived classes and callers below.
1630 * linux-low.cc (linux_target_ops): Update.
1631 (linux_detach): Turn into ...
1632 (linux_process_target::detach): ... this.
1633 * linux-low.h (class linux_process_target): Update.
1634 * lynx-low.cc (lynx_target_ops): Update.
1635 (lynx_detach): Turn into ...
1636 (lynx_process_target::detach): ... this.
1637 * lynx-low.h (class lynx_process_target): Update.
1638 * nto-low.cc (nto_target_ops): Update.
1639 (nto_detach): Turn into ...
1640 (nto_process_target::detach): ... this.
1641 * nto-low.h (class nto_process_target): Update.
1642 * win32-low.cc (win32_target_ops): Update.
1643 (win32_detach): Turn into ...
1644 (win32_process_target::detach): ... this.
1645 * win32-low.h (class win32_process_target): Update.
1647 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1649 Turn process_stratum_target's kill op into a method of
1652 * target.h (struct process_stratum_target): Remove the target op.
1653 (class process_target): Add the target op.
1655 Update the derived classes and callers below.
1657 * target.cc (kill_inferior): Update.
1658 * linux-low.cc (linux_target_ops): Update.
1659 (linux_kill): Turn into ...
1660 (linux_process_target::kill): ... this.
1661 * linux-low.h (class linux_process_target): Update.
1662 * lynx-low.cc (lynx_target_ops): Update.
1663 (lynx_kill): Turn into ...
1664 (lynx_process_target::kill): ... this.
1665 * lynx-low.h (class lynx_process_target): Update.
1666 * nto-low.cc (nto_target_ops): Update.
1667 (nto_kill): Turn into ...
1668 (nto_process_target::kill): ... this.
1669 * nto-low.h (class nto_process_target): Update.
1670 * win32-low.cc (win32_target_ops): Update.
1671 (win32_kill): Turn into ...
1672 (win32_process_target::kill): ... this.
1673 * win32-low.h (class win32_process_target): Update.
1675 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1677 Turn process_stratum_target's attach op into a method of
1680 * target.h (struct process_stratum_target): Remove the target op.
1681 (class process_target): Add the target op.
1682 (myattach): Update the macro.
1684 Update the derived classes and callers below.
1686 * linux-low.cc (linux_target_ops): Update.
1687 (linux_attach): Turn into ...
1688 (linux_process_target::attach): ... this.
1689 * linux-low.h (class linux_process_target): Update.
1690 * lynx-low.cc (lynx_target_ops): Update.
1691 (lynx_attach): Turn into ...
1692 (lynx_process_target::attach): ... this.
1693 * lynx-low.h (class lynx_process_target): Update.
1694 * nto-low.cc (nto_target_ops): Update.
1695 (nto_attach): Turn into ...
1696 (nto_process_target::attach): ... this.
1697 * nto-low.h (class nto_process_target): Update.
1698 * win32-low.cc (win32_target_ops): Update.
1699 (win32_attach): Turn into ...
1700 (win32_process_target::attach): ... this.
1701 * win32-low.h (class win32_process_target): Update.
1703 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1705 Turn process_stratum_target's post_create_inferior op into a method
1708 * target.h (struct process_stratum_target): Remove the target op.
1709 (class process_target): Add the target op.
1710 (target_post_create_inferior): Update the macro.
1711 * target.cc (process_target::post_create_inferior): Define.
1713 Update the derived classes and callers below.
1715 * linux-low.cc (linux_target_ops): Update.
1716 (linux_post_create_inferior): Turn into ...
1717 (linux_process_target::post_create_inferior): ... this.
1718 * linux-low.h (class linux_process_target): Update.
1719 * lynx-low.cc (lynx_target_ops): Update.
1720 * nto-low.cc (nto_target_ops): Update.
1721 * win32-low.cc (win32_target_ops): Update.
1723 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1725 Turn process_stratum_target's create_inferior op into a method of
1728 * target.h (struct process_stratum_target): Remove the target op.
1729 (class process_target): Add the target op.
1730 (create_inferior): Rename the macro to ...
1731 (target_create_inferior): ... this.
1733 Update the derived classes and callers below.
1735 * server.cc (handle_v_run): Update.
1736 (captured_main): Update.
1737 (process_serial_event): Update.
1738 * linux-low.cc (linux_target_ops): Update.
1739 (linux_create_inferior): Turn into ...
1740 (linux_process_target::create_inferior): ... this.
1741 * linux-low.h (class linux_process_target): Update.
1742 * lynx-low.cc (lynx_target_ops): Update.
1743 (lynx_create_inferior): Turn into ...
1744 (lynx_process_target::create_inferior): ... this.
1745 * lynx-low.h (class lynx_process_target): Update.
1746 * nto-low.cc (nto_target_ops): Update.
1747 (nto_create_inferior): Turn into ...
1748 (nto_process_target::create_inferior): ... this.
1749 * nto-low.h (class nto_process_target): Update.
1750 * win32-low.cc (win32_target_ops): Update.
1751 (win32_create_inferior): Turn into ...
1752 (win32_process_target::create_inferior): ... this.
1753 * win32-low.h (class win32_process_target): Update.
1755 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1757 * target.h (class process_target): New class definition.
1758 (struct process_stratum_target) <pt>: New field with type
1760 * linux-low.h (class linux_process_target): Define as a derived
1761 class of 'process_target'.
1762 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1764 * lynx-low.h (class lynx_process_target): Define as a derived
1765 class of 'process_target'.
1766 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1768 * nto-low.h (class nto_process_target): Define as a derived
1769 class of 'process_target'.
1770 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1772 * win32-low.h (class win32_process_target): Define as a derived
1773 class of 'process_target'.
1774 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1777 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1779 * configure: Regenerate.
1781 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
1782 Andrew Burgess <andrew.burgess@embecosm.com>
1784 * linux-riscv-low.cc: New file.
1785 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1786 and nat/riscv-linux-tdesc.c.
1787 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1788 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1791 2020-02-14 Tom Tromey <tom@tromey.com>
1793 * acinclude.m4: Don't include acx_configure_dir.m4.
1794 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1795 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1796 (all, install-only, uninstall, clean-info, clean)
1797 (maintainer-clean): Don't recurse.
1798 (subdir_do, all-lib): Remove.
1799 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1801 (generated_files): Update.
1802 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1803 * configure: Rebuild.
1804 * configure.ac: Don't configure gnulib or libiberty.
1807 2020-02-14 Eli Zaretskii <eliz@gnu.org>
1809 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1810 preparing the command line for CreateProcess.
1811 (win32_create_inferior): Reflect the program name in debugging
1812 output that shows the process and its command line.
1814 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1816 * Makefile.in: Rename source files from .c to .cc.
1817 * %.c: Rename to %.cc.
1818 * configure.ac: Rename server.c to server.cc.
1819 * configure: Re-generate.
1821 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1823 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1825 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
1827 * win32-low.c (win32_create_inferior): Set signal_pid.
1829 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
1830 Pedro Alves <palves@redhat.com>
1832 Skip building gdbserver in a cross-configuration.
1833 * configure.srv: Set $gdbserver_host depending on whether $target
1834 is $host. Use $gdbserver_host instead of $host.
1836 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1838 * configure: Re-generate.
1840 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1842 * configure: Re-generate.
1844 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1846 * acinclude.m4: Update warning.m4 path.
1848 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
1850 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1851 (handle_exception): Set siginfo_er.
1852 (win32_xfer_siginfo): New function.
1854 2020-02-07 Tom Tromey <tom@tromey.com>
1855 Pedro Alves <palves@redhat.com>
1857 * README: Update build documentation.
1858 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1860 * configure.ac: Update paths.
1861 * configure: Rebuild.
1862 * acinclude.m4: Update paths.
1863 * Makefile.in: Update include paths.
1864 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1865 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1866 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1867 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1868 (%-generated.c): Update paths.
1869 * Move entire directory from ../gdb/gdbserver.
1871 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
1873 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1875 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1877 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1878 assignment instead of srv_linux_obj.
1880 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
1882 * server.c (handle_qxfer_libraries): Write segment-address with
1885 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
1887 * Makefile.in (install-strip): New target.
1888 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1889 * aclocal.m4: Regenerate.
1890 * configure: Regenerate.
1891 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1893 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1895 * Makefile.in (SFILES): Adjust paths to point to real files.
1896 (OBS): Move waitstatus.o to target/waitstatus.o.
1897 (TAGS): Transform paths appropriately.
1899 (nat/%.o): ... this pattern rule.
1901 (target/%.o): ... this pattern rule.
1902 * configure.srv: Adjust paths throughout to include nat/ prefix
1903 with the revant files.
1904 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1905 * configure: Regenerate.
1907 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1909 * Makefile.in (TAGS): Remove config files from the recipe.
1911 2020-01-14 Tom Tromey <tom@tromey.com>
1913 * configure: Rebuild.
1914 * configure.ac: Remove any checks that were added to common.m4.
1915 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1918 2020-01-14 Tom Tromey <tom@tromey.com>
1920 * server.h: Include config.h.
1921 * gdbreplay.c: Include config.h.
1922 * configure: Rebuild.
1923 * configure.ac: Don't source common.host.
1924 * acinclude.m4: Update path.
1925 * Makefile.in (INCSUPPORT): New variable.
1926 (INCLUDE_CFLAGS): Add INCSUPPORT.
1927 (SFILES): Update paths.
1928 (version-generated.c): Update path to create-version.sh.
1929 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1931 2020-01-14 Tom Tromey <tom@tromey.com>
1933 * configure.ac (LIBS): Use WIN32APILIBS.
1934 (USE_WIN32API): Don't define.
1935 * configure: Rebuild.
1937 2020-01-14 Tom Tromey <tom@tromey.com>
1939 * configure: Rebuild.
1941 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1943 * Makefile.in (%-generated.c): Remove rule for files from
1946 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1948 * configure: Re-generate.
1950 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1952 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1954 * tracepoint.c (stop_tracing, flush_trace_buffer,
1955 about_to_request_buffer_space, get_trace_state_variable_value,
1956 set_trace_state_variable_value, gdb_collect): Add declaration.
1958 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1960 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1961 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1962 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1963 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1964 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1967 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1969 * inferiors.c: Include gdbsupport/common-inferior.h.
1971 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1973 * hostio-errno.c: Include hostio.h.
1975 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1977 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1980 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1982 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1983 * linux-arm-tdesc.h: Include arch/arm.h.
1985 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1987 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1989 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1991 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1992 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1994 2020-01-10 Pedro Alves <palves@redhat.com>
1996 * fork-child.c (post_fork_inferior): Pass target down to
1998 * inferiors.c (switch_to_thread): Add process_stratum_target
2000 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2001 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2002 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2003 * remote-utils.c (prepare_resume_reply): Pass the target to
2005 * target.c (the_target): Now a process_stratum_target.
2006 (done_accessing_memory): Pass the target to switch_to_thread.
2007 (set_target_ops): Ajust to use process_stratum_target.
2008 * target.h (struct target_ops): Rename to ...
2009 (struct process_stratum_target): ... this.
2010 (the_target, set_target_ops): Adjust.
2011 (prepare_to_access_memory): Adjust comment.
2012 * win32-low.c (child_xfer_memory): Adjust to use
2013 process_stratum_target.
2014 (win32_target_ops): Now a process_stratum_target.
2016 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2017 Pedro Alves <palves@redhat.com>
2019 * win32-low.c (get_child_debug_event): Extract the fatal exception
2020 from the exit status and convert to the equivalent Posix signal
2022 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2023 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2025 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2027 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2029 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2031 * server.c (gdbserver_version): Change copyright year to 2020.
2032 * gdbreplay.c (gdbreplay_version): Likewise.
2034 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2036 * configure: Regenerate.
2037 * configure.ac: Quote variable arguments of test.
2039 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2041 * Makefile.in: Fix build with GNU Make 3.81
2043 2019-12-16 Tom Tromey <tromey@adacore.com>
2045 * server.c (get_exec_file): Constify result.
2047 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2049 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2050 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2051 * config.in: Regenerate.
2052 * configure: Regenerate.
2053 * configure.ac: Don't check for strerror.
2054 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2055 Call safe_strerror instead of strerror.
2056 * server.h (strerror): Remove this now-unnecessary declaration.
2057 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2059 (gdb_agent_helper_thread): Likewise.
2060 * utils.c (perror_with_name): Likewise.
2062 2019-11-26 Tom Tromey <tom@tromey.com>
2064 * configure, config.in: Rebuild.
2066 2019-11-26 Tom Tromey <tom@tromey.com>
2068 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2069 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2071 * configure, config.in: Rebuild.
2073 2019-11-26 Tom Tromey <tom@tromey.com>
2075 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2076 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2077 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2078 * acinclude.m4: Include ax_pthread.m4.
2079 * config.in, configure: Rebuild.
2081 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2083 * debug.c (debug_set_output): Call safe_strerror instead of
2085 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2086 (linux_kill_one_lwp): Likewise.
2087 (linux_detach_one_lwp): Likewise.
2088 (linux_wait_for_event_filtered): Likewise.
2089 (store_register): Likewise.
2090 * lynx-low.c (lynx_attach): Likewise.
2091 * mem-break.c (insert_memory_breakpoint): Likewise.
2092 (remove_memory_breakpoint): Likewise.
2093 (delete_fast_tracepoint_jump): Likewise.
2094 (set_fast_tracepoint_jump): Likewise.
2095 (uninsert_fast_tracepoint_jumps_at): Likewise.
2096 (reinsert_fast_tracepoint_jumps_at): Likewise.
2097 * nto-low.c (nto_xfer_memory): Likewise.
2098 (nto_resume): Likewise.
2100 2019-11-20 Luis Machado <luis.machado@linaro.org>
2102 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2103 instead of register count.
2104 * tdesc.c (tdesc_contains_feature): New function.
2105 * tdesc.h (tdesc_contains_feature): New prototype.
2107 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2109 * Makefile.in: Add safe-strerror.c.
2110 * configure: Regenerate.
2111 * configure.ac: Don't source common.host.
2113 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2115 * config.in: Regenerate.
2116 * configure: Regenerate.
2118 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2120 * ax.c (ax_printf): Handle size_t_arg.
2122 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2124 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2125 * mi/mi-main.c (output_cores): Likewise.
2126 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2127 (linux_xfer_osdata_modules): Likewise.
2128 * remote.c (register_remote_support_xml): Likewise.
2129 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2130 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2132 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2134 * configure: Regenerate.
2135 * configure.ac: Remove check for strerror_r.
2137 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2139 * config.in: Regenerate.
2140 * configure: Regenerate.
2141 * configure.ac: Also check for strerror_r.
2143 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2145 * ax.h (debug_agent): Remove duplicate declaration.
2147 2019-10-26 Tom de Vries <tdevries@suse.de>
2149 * linux-aarch64-low.c: Fix typos in comments.
2150 * linux-arm-low.c: Same.
2151 * linux-low.c: Same.
2152 * linux-ppc-low.c: Same.
2153 * proc-service.c: Same.
2156 * tracepoint.c: Same.
2157 * win32-low.c: Same.
2159 2019-10-25 Tom Tromey <tromey@adacore.com>
2161 * utils.c (xstrdup): Remove.
2163 2019-10-23 Tom Tromey <tom@tromey.com>
2165 * configure, config.in: Rebuild.
2167 2019-10-23 Tom Tromey <tom@tromey.com>
2169 * configure: Rebuild.
2170 * acinclude.m4: Use m4_include, not sinclude.
2172 2019-10-17 Tom Tromey <tromey@adacore.com>
2174 * configure: Rebuild.
2175 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2176 in AC_CONFIG_FILES invocation.
2177 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2180 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2182 * server.c: Include xml-builtin.h.
2183 (get_xml_features): Don't declare xml_builtins here.
2185 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2187 * Makefile.in: Remove references to vec-ipa.o.
2189 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2191 * Makefile.in: Remove references to vec.c.
2193 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2195 * server.c (server_waiting): Change to bool.
2196 (extended_protocol): Likewise.
2197 (response_needed): Likewise.
2198 (exit_requested): Likewise.
2199 (run_once): Likewise.
2200 (report_no_resumed): Likewise.
2201 (non_stop): Likewise.
2202 (disable_packet_vCont): Likewise.
2203 (disable_packet_Tthread): Likewise.
2204 (disable_packet_qC): Likewise.
2205 (disable_packet_qfThreadInfo): Likewise.
2206 (handle_general_set): Update.
2207 (handle_detach): Update.
2208 (handle_monitor_command): Update.
2209 (handle_query): Update.
2210 (captured_main): Update.
2211 (process_serial_event): Update.
2212 * server.h (server_waiting): Change to bool.
2213 (disable_packet_vCont): Likewise.
2214 (disable_packet_Tthread): Likewise.
2215 (disable_packet_qC): Likewise.
2216 (disable_packet_qfThreadInfo): Likewise.
2217 (run_once): Likewise.
2218 (non_stop): Likewise.
2219 * target.c (target_stop_and_wait): Update.
2221 2019-10-02 Tom Tromey <tromey@adacore.com>
2223 * Makefile.in (SFILES): Add common-inferior.c.
2224 (OBS): Add common-inferior.o.
2225 * server.c (startup_with_shell): Don't define.
2227 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2229 * linux-low.c (linux_low_read_btrace): Update for change to
2232 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2234 * debug.c (debug_threads): Remove comment in favor of the header.
2235 * debug.h (using_threads): Add declaration.
2236 (debug_threads): Add comment.
2237 * linux-aarch64-low.c: Include debug.h and remove declaration of
2239 * nto-low.c: Likewise.
2240 * remote-utils.c: Likewise.
2241 * thread-db.c: Likewise.
2243 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2245 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2246 and powerpc-cell64l-ipa.o.
2247 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2248 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2249 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2252 * spu-low.c: Remove file.
2254 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2255 (parse_spufs_run): Remove.
2256 (ppc_get_pc): Remove Cell/B.E. support.
2257 (ppc_set_pc): Likewise.
2258 (ppc_breakpoint_at): Likewise.
2259 (ppc_arch_setup): Likewise.
2260 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2261 tdesc_powerpc_cell32l.
2262 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2263 or init_registers_powerpc_cell32l.
2264 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2265 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2266 or init_registers_powerpc_cell32l.
2267 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2268 (init_registers_powerpc_cell32l): Remove prototype.
2269 (init_registers_powerpc_cell64l): Likewise.
2271 * target.h (struct target_ops): Remove qxfer_spu member.
2272 * server.c (handle_qxfer_spu): Remove.
2273 (qxfer_packets): Remove entry for "spu".
2274 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2275 * linux-low.c (SPUFS_MAGIC): Remove.
2276 (spu_enumerate_spu_ids): Remove.
2277 (linux_qxfer_spu): Remove.
2278 (linux_target_ops): Remove qxfer_spu member.
2279 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2280 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2281 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2283 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2285 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2286 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2287 * config.in: Regenerate.
2288 * configure: Regenerate.
2290 2019-08-15 Tom Tromey <tromey@adacore.com>
2292 * target.c (target_write_memory): Use gdb::byte_vector.
2294 2019-08-15 Tom Tromey <tromey@adacore.com>
2296 * tracepoint.c (write_inferior_data_pointer)
2297 (write_inferior_integer, write_inferior_int8)
2298 (write_inferior_uinteger, m_tracepoint_action_download)
2299 (r_tracepoint_action_download, x_tracepoint_action_download)
2300 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2301 (download_agent_expr, download_tracepoint_1)
2302 (download_trace_state_variables, upload_fast_traceframes): Update.
2303 * server.c (gdb_write_memory): Update.
2304 * remote-utils.c (relocate_instruction): Update.
2305 * proc-service.c (ps_pdwrite): Update.
2306 * mem-break.c (remove_memory_breakpoint)
2307 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2308 (uninsert_fast_tracepoint_jumps_at)
2309 (reinsert_fast_tracepoint_jumps_at): Update.
2310 * linux-x86-low.c (append_insns)
2311 (i386_install_fast_tracepoint_jump_pad)
2312 (amd64_write_goto_address, i386_write_goto_address): Update.
2313 * linux-s390-low.c (append_insns, s390_write_goto_address):
2315 * linux-ppc-low.c (ppc_relocate_instruction)
2316 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2317 (ppc_write_goto_address): Update.
2318 * linux-aarch64-low.c (append_insns): Update.
2319 * target.h (struct target_ops): Update.
2320 (write_inferior_memory): Don't declare.
2321 * target.c (target_write_memory): Rename from
2322 write_inferior_memory. Remove old target_write_memory.
2324 2019-08-15 Tom Tromey <tromey@adacore.com>
2326 * target.c (write_inferior_memory): Use std::vector.
2328 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2331 * configure.ac: Drop enable-libmcheck support.
2332 * configure, config.in: Rebuild.
2333 * acinclude.m4: Don't include it.
2335 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2337 * configure.srv: Remove Arm xml files.
2339 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2341 * configure.srv: Add new files. Remove xml generated files.
2342 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2344 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2345 * linux-aarch32-tdesc.c: New file.
2346 * linux-aarch32-tdesc.h: New file.
2347 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2348 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2349 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2350 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2351 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2352 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2353 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2354 (arm_read_description): Call arm_linux_read_description.
2355 (initialize_low_arch): Don't init registers.
2356 * linux-arm-tdesc.c: New file.
2357 * linux-arm-tdesc.h: New file.
2359 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2361 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2362 Move counter inside for.
2363 (arm_read_description): Check ptrace earlier.
2364 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2366 2019-07-09 Tom Tromey <tom@tromey.com>
2368 * configure: Rebuild.
2369 * configure.ac: Change common to gdbsupport.
2370 * acinclude.m4: Change common to gdbsupport.
2371 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2372 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2373 common to gdbsupport.
2374 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2375 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2376 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2377 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2378 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2379 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2380 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2381 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2382 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2383 common to gdbsupport.
2385 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2387 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2389 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2391 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2393 * configure.srv: Remove legacy xml.
2394 * linux-aarch64-low.c (initialize_low_arch): Remove
2395 initialize_low_tdesc call.
2396 * linux-aarch64-tdesc-selftest.c: Remove file.
2397 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2398 * linux-x86-low.c (initialize_low_arch): Remove
2399 initialize_low_tdesc call.
2400 * linux-x86-tdesc-selftest.c: Remove file.
2401 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2403 2019-06-20 Tom de Vries <tdevries@suse.de>
2405 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2406 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2408 2019-06-19 Tom de Vries <tdevries@suse.de>
2410 * debug.h (debug_write): Change return type to ssize_t.
2411 * debug.c (debug_write): Same.
2413 2019-06-14 Tom Tromey <tom@tromey.com>
2415 * configure.ac: Use new path to gnulib.
2416 * configure: Rebuild.
2417 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2420 2019-06-11 Tom Tromey <tom@tromey.com>
2422 * Makefile.in (SFILES): Add alloc.c.
2424 (IPA_OBJS): Add alloc-ipa.o.
2425 (alloc-ipa.o): New target.
2426 (%.o: ../%.c): New pattern rule.
2428 2019-06-10 Tom Tromey <tromey@adacore.com>
2430 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2431 end warning with a newline.
2432 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2434 * thread-db.c (attach_thread): Don't end warning with a newline.
2435 (thread_db_notice_clone): Likewise.
2436 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2438 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2439 end warning with a newline.
2441 2019-06-04 Pedro Alves <palves@redhat.com>
2443 * server.c (captured_main): Use make_unique_xstrdup.
2445 2019-06-02 Tom Tromey <tom@tromey.com>
2447 * gdbreplay.c (fromhex): Remove.
2448 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2450 2019-05-29 Tom Tromey <tromey@adacore.com>
2452 * configure: Rebuild.
2454 2019-05-06 Kevin Buettner <kevinb@redhat.com>
2456 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2457 sign extension code on 32-bit builds.
2459 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2462 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2464 2019-04-19 Tom Tromey <tom@tromey.com>
2466 * server.c (struct vstop_notif): Derive from notif_event.
2468 (queue_stop_reply): Update.
2469 (remove_all_on_match_ptid): Change type. Rewrite.
2470 (discard_queued_stop_replies): Rewrite.
2471 (in_queued_stop_replies_ptid): Change type.
2472 (in_queued_stop_replies): Rewrite.
2473 (notif_stop): Update.
2474 (queue_stop_reply_callback): Update.
2475 (captured_main): Don't call initialize_notif.
2476 (push_stop_notification): Update.
2477 * notif.c (notif_write_event, handle_notif_ack)
2478 (notif_event_enque, notif_push): Update.
2479 (notif_event_xfree, initialize_notif): Remove.
2480 * notif.h (struct notif_event): Include <list>, not
2482 (struct notif_server) <queue>: Now a std::list.
2483 (notif_event_p): Remove typedef.
2484 (initialize_notif): Don't declare.
2485 (struct notif_event): Add virtual destructor.
2487 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2489 * ax.c (ax_vdebug): Call debug_printf.
2490 * debug.c (debug_write): New function.
2491 * debug.h (debug_write): New declaration.
2492 * linux-low.c (sigchld_handler): Call debug_write.
2494 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2496 * debug.c (debug_set_output): New function.
2497 (debug_vprintf): Send output to debug_file.
2498 (debug_flush): Likewise.
2499 * debug.h (debug_set_output): New declaration.
2500 * server.c (handle_monitor_command): Add debug-file option.
2501 (captured_main): Likewise.
2503 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2505 * debug.c (remote_debug): Add definition.
2506 * debug.h (remote_debug): Add declaration.
2507 * hostio.c (remote_debug): Remove declaration.
2508 * remote-utils.c (struct ui_file): Likewise.
2509 (remote_debug): Likewise.
2510 * remote-utils.h (remote_debug): Likewise,
2511 * server.c (remote_debug): Remove definition.
2513 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2515 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2516 when using a 64-bit gdbserver.
2518 2019-04-09 Tom Tromey <tromey@adacore.com>
2520 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2522 2019-04-08 Tom Tromey <tom@tromey.com>
2524 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2526 (linux_resume_one_lwp): Likewise.
2528 2019-04-08 Tom Tromey <tom@tromey.com>
2530 * gdbreplay.c: Update.
2531 * linux-low.c: Update.
2534 2019-04-08 Tom Tromey <tom@tromey.com>
2536 * server.c: Use C++ exception handling.
2537 * linux-low.c: Use C++ exception handling.
2538 * gdbreplay.c: Use C++ exception handling.
2540 2019-04-08 Tom Tromey <tom@tromey.com>
2542 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2543 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2544 (captured_main, main): Update.
2545 * gdbreplay.c (main): Update.
2547 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2549 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2550 value in argument pointer, return 1 if the entry is found and 0
2551 otherwise. Move comment.
2552 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2553 * linux-low.h (linux_get_auxv): Declare.
2554 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2556 2019-04-05 Tom Tromey <tromey@adacore.com>
2558 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2561 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2563 * linux-low.c (AT_HWCAP2): Add define if not already included.
2565 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2567 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2568 (aarch64_arch_setup): Call linux_get_hwcap.
2569 * linux-arm-low.c (arm_get_hwcap): Remove function.
2570 (arm_read_description): Call linux_get_hwcap.
2571 * linux-low.c (linux_get_auxv): New function.
2572 (linux_get_hwcap): Likewise.
2573 (linux_get_hwcap2): Likewise.
2574 * linux-low.h (linux_get_hwcap): New declaration.
2575 (linux_get_hwcap2): Likewise.
2576 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2577 (ppc_arch_setup): Call linux_get_hwcap.
2578 * linux-s390-low.c (s390_get_hwcap): Remove function.
2579 (s390_arch_setup): Call linux_get_hwcap.
2581 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2582 Jiong Wang <jiong.wang@arm.com>
2584 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2585 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2587 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2589 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2590 Jiong Wang <jiong.wang@arm.com>
2592 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2593 (aarch64_get_hwcap): New function.
2594 (aarch64_arch_setup): Read APIA hwcap.
2596 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2597 Jiong Wang <jiong.wang@arm.com>
2599 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2600 (initialize_low_tracepoint): Likewise.
2601 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2602 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2603 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2604 (aarch64_linux_read_description): Likewise.
2605 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2607 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2609 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2610 i386_create_target_description for 'segments' parameter.
2611 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2612 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2613 * win32-i386-low.c (i386_arch_setup): Likewise.
2615 2019-03-12 Tom Tromey <tromey@adacore.com>
2617 * linux-low.c (iterate_over_lwps): Update.
2619 2019-03-06 Tom Tromey <tom@tromey.com>
2621 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2622 (captured_main): Use SCOPE_EXIT.
2624 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2626 * configure.srv: Use '$enable_unittest' instead of '$development'
2627 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2630 2019-02-27 Tom Tromey <tromey@adacore.com>
2632 * gdbreplay.c (logchar): Handle \r\n.
2634 2019-02-07 Alan Hayward <alan.hayward@arm.com>
2636 * linux-low.c (linux_attach): Add process before lwp.
2637 * server.c (attach_inferior): Check if already attached.
2639 2019-02-07 Tom Tromey <tom@tromey.com>
2641 * x86-tdesc.h: Rename include guard.
2642 * x86-low.h: Add include guard.
2643 * wincecompat.h: Rename include guard.
2644 * win32-low.h: Add include guard.
2645 * utils.h: Rename include guard.
2646 * tracepoint.h: Rename include guard.
2647 * tdesc.h: Rename include guard.
2648 * target.h: Rename include guard.
2649 * server.h: Rename include guard.
2650 * remote-utils.h: Rename include guard.
2651 * regcache.h: Rename include guard.
2652 * nto-low.h: Rename include guard.
2653 * notif.h: Add include guard.
2654 * mem-break.h: Rename include guard.
2655 * lynx-low.h: Add include guard.
2656 * linux-x86-tdesc.h: Add include guard.
2657 * linux-s390-tdesc.h: Add include guard.
2658 * linux-ppc-tdesc-init.h: Add include guard.
2659 * linux-low.h: Add include guard.
2660 * linux-aarch64-tdesc.h: Add include guard.
2661 * linux-aarch32-low.h: Add include guard.
2662 * inferiors.h: Rename include guard.
2663 * i387-fp.h: Rename include guard.
2664 * hostio.h: Rename include guard.
2665 * gdbthread.h: Rename include guard.
2666 * gdb_proc_service.h: Rename include guard.
2667 * event-loop.h: Rename include guard.
2668 * dll.h: Rename include guard.
2669 * debug.h: Rename include guard.
2670 * ax.h: Rename include guard.
2672 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2675 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2676 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2678 2019-01-25 Tom Tromey <tom@tromey.com>
2680 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2682 2019-01-25 Tom Tromey <tom@tromey.com>
2684 * win32-low.c: Fix common/ includes.
2685 * win32-i386-low.c: Fix common/ includes.
2686 * tracepoint.c: Fix common/ includes.
2687 * thread-db.c: Fix common/ includes.
2688 * target.h: Fix common/ includes.
2689 * symbol.c: Fix common/ includes.
2690 * spu-low.c: Fix common/ includes.
2691 * server.h: Fix common/ includes.
2692 * server.c: Fix common/ includes.
2693 * remote-utils.c: Fix common/ includes.
2694 * regcache.h: Fix common/ includes.
2695 * regcache.c: Fix common/ includes.
2696 * nto-x86-low.c: Fix common/ includes.
2697 * notif.h: Fix common/ includes.
2698 * mem-break.h: Fix common/ includes.
2699 * lynx-low.c: Fix common/ includes.
2700 * lynx-i386-low.c: Fix common/ includes.
2701 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2702 * linux-x86-low.c: Fix common/ includes.
2703 * linux-low.c: Fix common/ includes.
2704 * inferiors.h: Fix common/ includes.
2705 * i387-fp.c: Fix common/ includes.
2706 * hostio.c: Fix common/ includes.
2707 * hostio-errno.c: Fix common/ includes.
2708 * gdbthread.h: Fix common/ includes.
2709 * gdbreplay.c: Fix common/ includes.
2710 * fork-child.c: Fix common/ includes.
2711 * event-loop.c: Fix common/ includes.
2713 (enum gdb_agent_op): Fix common/ includes.
2715 2019-01-21 Tom Tromey <tom@tromey.com>
2717 * tracepoint.c: Fix includes.
2718 * remote-utils.c: Fix includes.
2719 * linux-x86-low.c: Fix includes.
2721 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2723 * gdbreplay.c (gdbreplay_version): Update copyright year in
2725 * server.c (gdbserver_version): Likewise.
2727 2018-12-05 Alan Hayward <alan.hayward@arm.com>
2729 * linux-low.c (add_lwp): Switch ordering.
2731 2018-11-29 Tom Tromey <tom@tromey.com>
2733 * win32-low.c (win32_join): Take pid, not process.
2734 * target.h (struct target_ops) <join>: Change argument type.
2735 (join_inferior): Change argument name.
2736 * spu-low.c (spu_join): Take pid, not process.
2737 * server.c (handle_detach): Preserve pid before destroying
2739 * lynx-low.c (lynx_join): Take pid, not process.
2740 * linux-low.c (linux_join): Take pid, not process.
2742 2018-11-23 Alan Hayward <alan.hayward@arm.com>
2744 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2745 (aarch64_cannot_fetch_register): Likewise.
2746 (struct linux_target_ops): Update references.
2748 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2750 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2752 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2754 * configure.srv (ipa_ppc_linux_regobj): Add
2755 powerpc-isa207-htm-vsx32l-ipa.o and
2756 powerpc-isa207-htm-vsx64l-ipa.o.
2757 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2758 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2759 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2760 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2761 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2762 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2763 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2764 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2765 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2766 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2767 (init_registers_powerpc_isa207_htm_vsx32l)
2768 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2769 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2770 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2771 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2772 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2773 (ppc_store_tm_ctarregset): New functions.
2774 (ppc_regsets): Add entries for HTM regsets.
2775 (ppc_arch_setup): Set htm in features struct when needed. Set
2776 sizes for the HTM regsets.
2777 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2778 (initialize_low_arch): Call
2779 init_registers_powerpc_isa207_htm_vsx32l and
2780 init_registers_powerpc_isa207_htm_vsx64l.
2781 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2782 PPC_TDESC_ISA207_HTM_VSX.
2783 (initialize_low_tracepoint): Call
2784 init_registers_powerpc_isa207_htm_vsx32l and
2785 init_registers_powerpc_isa207_htm_vsx64l.
2787 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2789 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2790 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2791 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2792 (ppc_store_pmuregset): New functions.
2793 (ppc_regsets): Add entries for ebb and pmu regsets.
2794 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2795 pmu regsets are available. Set sizes for these regsets.
2797 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2799 * configure.srv (ipa_ppc_linux_regobj): Add
2800 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2801 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2802 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2803 rs6000/powerpc-isa207-vsx32l.xml, and
2804 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2805 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2806 <PPC_TDESC_ISA207_VSX>: New enum value.
2807 (init_registers_powerpc_isa207_vsx32l): Declare.
2808 (init_registers_powerpc_isa207_vsx64l): Declare.
2809 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2810 (ppc_store_tarregset): New function.
2811 (ppc_regsets): Add entry for the TAR regset.
2812 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2813 size for the TAR regsets.
2814 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2815 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2816 and init_registers_powerpc_isa207_vsx64l.
2817 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2818 (initialize_low_tracepoint): Call
2819 init_registers_powerpc_isa207_vsx32l and
2820 init_registers_powerpc_isa207_vsx64l.
2822 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2823 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2825 * configure.srv (ipa_ppc_linux_regobj): Add
2826 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2827 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2828 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2829 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2830 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2831 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2832 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2833 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2834 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2835 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2836 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2837 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2838 (ppc_hwcap): Add comment.
2839 (ppc_hwcap2): New global.
2840 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2841 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2842 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2843 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2844 when needed. Set sizes for the the DSCR and PPR regsets.
2845 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2846 (initialize_low_arch): Call
2847 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2848 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2849 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2850 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2851 (initialize_low_tracepoint): Call
2852 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2853 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2855 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2857 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2859 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2860 Simon Marchi <simark@simark.ca>
2862 * acinclude.m4: Include "../selftest.m4".
2863 * configure: Regenerate.
2864 * configure.ac: Use "GDB_AC_SELFTEST".
2865 * configure.srv: Use "$enable_unittests" instead of
2866 "$development" when checking whether unit tests have been
2868 * server.c (captured_main): Update message informing that
2869 selftests have been disabled.
2871 2018-10-04 Tom Tromey <tom@tromey.com>
2873 * configure: Rebuild.
2875 2018-10-04 Tom Tromey <tom@tromey.com>
2877 * server.c (handle_status): Rename inner "thread".
2878 (process_serial_event): Declare "res" in 'm' case.
2879 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2880 (iterate_over_lwps): Rename inner "thread".
2881 (linux_qxfer_libraries_svr4): Rename inner "len".
2882 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2884 2018-10-01 Gary Benson <gbenson@redhat.com>
2886 * gdb_proc_service.h: Moved common code to
2887 common/gdb_proc_service.h.
2889 2018-10-01 Gary Benson <gbenson@redhat.com>
2891 * gdb_proc_service.h: Synchronize comments and whitespace with
2892 GDB's version of this file.
2894 2018-09-25 Tom Tromey <tom@tromey.com>
2896 * configure: Rebuild.
2897 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2899 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2901 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2902 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2903 ($(IPA_LIB)): Sort IPA_OBJS.
2905 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2907 * Makefile.in: Remove references to $(ADD_DEPS).
2909 2018-09-16 Tom Tromey <tom@tromey.com>
2911 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2913 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2916 2018-09-05 Tom Tromey <tom@tromey.com>
2918 * configure: Rebuild.
2920 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2923 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2925 2018-08-27 Tom Tromey <tom@tromey.com>
2928 * configure: Rebuild.
2930 2018-08-27 Tom Tromey <tom@tromey.com>
2932 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2933 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2934 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2935 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2936 (s390x_emit_stack_adjust): Add casts to unsigned char.
2938 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2942 * server.h (struct client_state) <disable_randomization>:
2945 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2947 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2949 (mips_supply_ptrace_register): Likewise.
2951 2018-07-22 Tom Tromey <tom@tromey.com>
2953 * configure: Rebuild.
2955 2018-07-22 Tom Tromey <tom@tromey.com>
2957 * win32-low.c (win32_create_inferior): Remove unused variables.
2958 * gdbreplay.c (remote_open): Remove unused variable.
2959 * remote-utils.c (remote_prepare): Remove unused variable.
2960 * x86-tdesc.h (X86_TDESC_H): Define.
2961 (amd64_expedite_regs): Define conditionally.
2962 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2963 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2964 * remote-utils.c (readchar): Remove unused variable.
2966 2018-07-13 Pedro Alves <palves@redhat.com>
2968 * linux-low.c (linux_kill): Change parameter to process_info
2969 pointer instead of pid. Adjust.
2970 * lynx-low.c (lynx_kill): Likewise.
2971 * nto-low.c (nto_kill): Likewise.
2972 * spu-low.c (spu_kill): Likewise.
2973 * win32-low.c (win32_kill): Likewise.
2974 * server.c (handle_v_kill, kill_inferior_callback)
2975 (detach_or_kill_for_exit): Adjust.
2976 * target.c (kill_inferior): Change parameter to process_info
2977 pointer instead of pid. Adjust.
2978 * target.h (struct target_ops) <kill>: Change parameter to
2979 process_info pointer instead of pid. Adjust all implementations
2981 (kill_inferior): Likewise.
2983 2018-07-13 Pedro Alves <palves@redhat.com>
2985 * linux-low.c (linux_detach, linux_join): Change parameter to
2986 process_info pointer instead of pid. Adjust.
2987 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2988 * nto-low.c (nto_detach): Likewise.
2989 * spu-low.c (spu_detach, spu_join): Likewise.
2990 * win32-low.c (win32_detach, win32_join): Likewise.
2991 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2992 * target.h (struct target_ops) <detach, join>: Change parameter to
2993 process_info pointer instead of pid. Adjust all implementations
2995 (detach_inferior, join_inferior): Rename 'pid' parameter to
2998 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2999 Jan Kratochvil <jan.kratochvil@redhat.com>
3000 Paul Fertser <fercerpav@gmail.com>
3001 Tsutomu Seki <sekiriki@gmail.com>
3003 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3004 (OBS): Add 'common/netstuff.o'.
3005 (GDBREPLAY_OBS): Likewise.
3006 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3007 (remote_open): Implement support for IPv6
3009 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3011 (handle_accept_event): Accept connections from IPv6 sources.
3012 (remote_prepare): Handle IPv6-style hostnames; implement
3013 support for IPv6 connections.
3014 (remote_open): Implement support for printing connections from
3017 2018-07-11 Pedro Alves <palves@redhat.com>
3020 * mem-break.c (any_persistent_commands): Add process_info
3021 parameter and use it instead of relying on the current process.
3022 Change return type to bool.
3023 * mem-break.h (any_persistent_commands): Add process_info
3024 parameter and change return type to bool.
3025 * server.c (handle_detach): Remove require_running_or_return call.
3026 Look up the process_info for the process we're about to detach.
3027 If not found, return back error to GDB. Adjust
3028 any_persistent_commands call to pass down a process pointer.
3030 2018-07-11 Pedro Alves <palves@redhat.com>
3032 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3033 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3034 instead of collect_register_by_name.
3035 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3036 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3038 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3039 Pedro Alves <palves@redhat.com>
3041 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3043 2018-07-03 Tom Tromey <tom@tromey.com>
3045 * linux-low.c: Update.
3046 * lynx-low.c: Update.
3047 * mem-break.c: Update.
3048 * nto-low.c: Update.
3049 * remote-utils.c: Update.
3051 * spu-low.c: Update.
3053 * win32-low.c: Update.
3055 2018-07-03 Tom Tromey <tom@tromey.com>
3059 2018-07-03 Tom Tromey <tom@tromey.com>
3061 * linux-low.c: Update.
3063 2018-07-03 Tom Tromey <tom@tromey.com>
3067 2018-07-03 Tom Tromey <tom@tromey.com>
3069 * linux-low.c: Update.
3070 * linux-mips-low.c: Update.
3071 * lynx-low.c: Update.
3072 * nto-low.c: Update.
3073 * remote-utils.c: Update.
3075 * spu-low.c: Update.
3077 * thread-db.c: Update.
3079 2018-07-03 Tom Tromey <tom@tromey.com>
3081 * linux-low.c: Update.
3082 * linux-mips-low.c: Update.
3083 * lynx-low.c: Update.
3084 * mem-break.c: Update.
3085 * nto-low.c: Update.
3086 * remote-utils.c: Update.
3088 * spu-low.c: Update.
3090 * tracepoint.c: Update.
3092 2018-07-03 Tom Tromey <tom@tromey.com>
3094 * linux-low.c: Update.
3095 * linux-ppc-low.c: Update.
3096 * linux-x86-low.c: Update.
3097 * proc-service.c: Update.
3099 * spu-low.c: Update.
3100 * thread-db.c: Update.
3101 * win32-low.c: Update.
3103 2018-07-03 Tom Tromey <tom@tromey.com>
3105 * linux-low.c: Update.
3106 * lynx-low.c: Update.
3107 * nto-low.c: Update.
3108 * remote-utils.c: Update.
3109 * spu-low.c: Update.
3110 * thread-db.c: Update.
3111 * win32-low.c: Update.
3113 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3115 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3116 parameter in call to 'amd64_create_target_description'.
3118 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3120 * x86-tdesc.h: Remove executable permission flag.
3122 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3124 * configure.ac: Remove AC_PREREQ, add missing quoting.
3125 * configure: Re-generate.
3126 * config.in: Re-generate.
3127 * aclocal.m4: Re-generate.
3129 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3131 * tracepoint.h (current_traceframe): Remove declaration.
3133 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3135 * linux-aarch64-low.c (is_sve_tdesc): New function.
3136 (aarch64_sve_regs_copy_to_regcache): Likewise.
3137 (aarch64_sve_regs_copy_from_regcache): Likewise.
3138 (aarch64_regs_info): Add SVE checks.
3139 (initialize_low_arch): Initialize SVE.
3141 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3143 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3145 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3147 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3148 (initialize_low_tracepoint): Likewise
3149 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3150 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3152 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3154 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3156 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3158 * server.h (PBUFSIZ): Increase size
3160 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3162 * regcache.c (regcache::raw_compare): New function.
3163 * regcache.h (regcache::raw_compare): New declaration.
3165 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3167 * regcache.c (new_register_cache): Use new.
3168 (free_register_cache): Use delete.
3169 (register_data): Use const.
3170 (supply_register): Move body inside regcache.
3171 (regcache::raw_supply): New override function.
3172 (collect_register): Move body inside regcache.
3173 (regcache::raw_collect): New override function.
3174 (regcache::get_register_status): New override function.
3175 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3177 2018-06-09 Tom Tromey <tom@tromey.com>
3179 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3181 (event_queue): Use std::queue.
3182 (gdb_event_xfree): Remove.
3183 (initialize_event_loop, process_event, wait_for_event): Update.
3185 2018-06-08 Stan Cox <scox@redhat.com>
3187 * win32-low.c (win32_create_inferior): last_ptid and last_status
3188 moved to client_state.
3190 2018-06-08 Pedro Alves <palves@redhat.com>
3192 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3193 common/common-exceptions.o, common/common-utils.o,
3194 common/errors.o, common/print-utils.o and utils.o.
3195 * gdbreplay.c: Include "common-defs.h" instead of the two
3196 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3197 string.h or alloca.h.
3198 (perror_with_name): Delete.
3199 (remote_open): Use xstrdup instead of strdup.
3200 (main): Rename to ...
3201 (captured_main): ... this.
3204 2018-06-08 Tom Tromey <tom@tromey.com>
3206 * linux-low.c (linux_low_read_btrace): Update.
3208 2018-06-04 Stan Cox <scox@redhat.com>
3210 * server.h (struct client_state): New.
3211 * server.c (cont_thread, general_thread, multi_process)
3212 (report_fork_events, report_vfork_events, report_exec_events)
3213 (report_thread_events, swbreak_feature, hwbreak_feature)
3214 (vCont_supported, disable_randomization, pass_signals)
3215 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3216 Moved to client_state.
3217 * remote-utils.c (remote_debug, noack_mode)
3218 (transport_is_reliable): Moved to client_state.
3219 * tracepoint.c (current_traceframe): Moved to client_state.
3222 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3223 linux-low.c, remote-utils.h, target.c: Use client_state.
3225 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3227 * configure.srv: Add new c/h file.
3229 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3231 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3234 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3236 * gdb.arch/mips-fpregset-core.exp: New test.
3237 * gdb.arch/mips-fpregset-core.c: New test source.
3239 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3242 * hostio.c (require_int): Do not report overflow for integers
3243 between 0xfffffff and 0x7fffffff.
3245 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3247 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3248 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3249 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3251 (the_low_target): Wire them.
3253 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3255 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3256 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3257 mode. Call collect_register_by_name with vscr using
3258 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3259 (ppc_store_vrregset): Add and set vscr_offset variable as in
3260 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3263 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3265 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3266 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3267 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3269 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3271 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3272 (ppc_store_vsxregset): Likewise.
3273 (ppc_fill_vrregset): Likewise.
3274 (ppc_store_vrregset): Likewise.
3275 (ppc_fill_evrregset): Likewise.
3276 (ppc_store_evrregset): Likewise.
3277 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3278 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3281 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3283 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3284 wordsize of the inferior. Call ppc_linux_target_wordsize.
3286 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3288 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3289 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3290 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3291 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3292 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3293 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3294 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3295 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3296 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3297 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3298 (tdesc_powerpc_e500l): Remove.
3299 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3300 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3301 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3302 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3304 (ppc_arch_setup): Remove target description matching code. Fill a
3305 ppc_linux_features struct and call ppc_linux_match_description
3308 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3310 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3311 width of the requested register exceeds the width of the
3313 (mips_cannot_store_register): Likewise.
3315 2018-05-21 Maciej W. Rozycki <macro@mips.com>
3317 * linux-mips-low.c (mips_fetch_register): New function. Update
3319 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3320 (the_low_target): Wire `mips_fetch_register'.
3322 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3324 * lynx-i386-low.c (LYNXOS_178): New macro.
3325 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3326 the layout on LynxOS-178.
3327 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3328 handle floating point registers that are not supported by
3331 2018-05-10 Tom Tromey <tom@tromey.com>
3333 * configure: Rebuild.
3335 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3338 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3339 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3340 Use it to set the expedite_regs field in the given tdesc.
3341 * x86-tdesc.h: New file.
3342 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3343 Adjust following the addition of the new expedite_regs parameter
3344 to init_target_desc.
3345 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3346 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3347 (i386_linux_read_description, amd64_linux_read_description):
3348 Adjust following the addition of the new expedite_regs parameter
3349 to init_target_desc.
3350 * lynx-i386-low.c: #include "x86-tdesc.h".
3351 (lynx_i386_arch_setup): Adjust following the addition of the new
3352 expedite_regs parameter to init_target_desc.
3353 * nto-x86-low.c: #include "x86-tdesc.h".
3354 (nto_x86_arch_setup): Adjust following the addition of the new
3355 expedite_regs parameter to init_target_desc.
3356 * win32-i386-low.c: #include "x86-tdesc.h".
3357 (i386_arch_setup): Adjust following the addition of the new
3358 expedite_regs parameter to init_target_desc.
3360 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3363 * win32-low.c (win32_create_inferior): Add call to my_wait
3364 setting last_status global.
3366 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3369 * win32-low.c (create_process): Only call gdb_tilde_expand if
3370 inferior_cwd is not NULL.
3372 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3374 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3375 registers to the cache if their values have changed.
3376 (i387_xsave_to_cache): Provide default values for x87 control
3377 registers when these features are available, but disabled.
3378 * regcache.c (supply_register_by_name_zeroed): New function.
3379 * regcache.h (supply_register_by_name_zeroed): Declare new
3382 2018-05-07 Tom Tromey <tom@tromey.com>
3384 * configure: Rebuild.
3386 2018-05-04 Tom Tromey <tom@tromey.com>
3388 * configure: Rebuild.
3390 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3391 Pedro Alves <palves@redhat.com>
3393 * linux-aarch64-low.c (aarch64_stopped_data_address):
3396 2018-04-27 Tom Tromey <tom@tromey.com>
3398 * configure: Rebuild.
3400 2018-04-23 Tom Tromey <tom@tromey.com>
3402 * configure: Rebuild.
3404 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3406 * Makefile.in (depcomp): Add "..".
3407 (all_deps_files): New and use it.
3409 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3411 * configure.srv (aarch64*-*-linux*): Don't include xml.
3412 (i[34567]86-*-cygwin*): Likewise.
3413 (i[34567]86-*-linux*): Likewise.
3414 (i[34567]86-*-lynxos*): Likewise.
3415 (i[34567]86-*-mingw32ce*): Likewise.
3416 (i[34567]86-*-mingw*): Likewise.
3417 (i[34567]86-*-nto*): Likewise.
3418 (tic6x-*-uclinux): Likewise.
3419 (x86_64-*-linux*): Likewise.
3420 (x86_64-*-mingw*): Likewise.
3421 (x86_64-*-cygwin*): Likewise.
3423 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3425 * tdesc.c: Remove xml parameter.
3427 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3429 * server.c (get_features_xml): Remove cast.
3430 * tdesc.c (void target_desc::accept): Fill in function.
3431 (tdesc_get_features_xml): Remove old xml creation.
3432 (print_xml_feature::visit_pre): Add xml vistor.
3433 * tdesc.h (struct target_desc): Make xmltarget mutable.
3434 (tdesc_get_features_xml): Remove declaration.
3436 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3438 * tdesc.c (tdesc_architecture_name): Add new function.
3439 (tdesc_osabi_name): Likewise.
3440 (tdesc_get_features_xml): Use new functions.
3442 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3444 * tdesc.c (tdesc_create_flags): Remove.
3445 (tdesc_add_flag): Likewise.
3446 (tdesc_named_type): Likewise.
3447 (tdesc_create_union): Likewise.
3448 (tdesc_create_struct): Likewise.
3449 (tdesc_create_vector): Likewise.
3450 (tdesc_add_bitfield): Likewise.
3451 (tdesc_add_field): Likewise.
3452 (tdesc_set_struct_size): Likewise.
3454 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3456 * tdesc.c (~target_desc): Remove implictly deleted items.
3457 (init_target_desc): Iterate all features.
3458 (tdesc_get_features_xml): Use vector.
3459 (tdesc_create_feature): Create feature.
3460 * tdesc.h (tdesc_feature) Remove
3461 (target_desc): Add features.
3463 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3465 * Makefile.in: Add common/tdesc.c
3466 * tdesc.c (init_target_desc): init all reg_defs from register
3468 (tdesc_create_reg): Create tdesc_reg.
3469 * tdesc.h (tdesc_feature): Add register vector.
3471 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3473 * tdesc.h (struct target_desc) <features>: Change type to
3474 std::vector<std::string>.
3475 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3477 (tdesc_get_features_xml): Likewise.
3478 (tdesc_create_feature): Likewise.
3480 2018-03-26 Alan Hayward <alan.hayward@arm.com>
3482 * regcache.c (find_register_by_number): Return a ref.
3483 (find_regno): Use references.
3484 (register_size): Likewise.
3485 (register_data): Likewise.
3486 * tdesc.c (target_desc::~target_desc): Remove free calls.
3487 (target_desc::operator==): Use std::vector compare.
3488 (init_target_desc): Use reference.
3489 (tdesc_create_reg): Use reg constructors.
3490 * tdesc.h (struct target_desc): Replace pointer with object.
3492 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3494 * regcache.c (find_register_by_number): Make static.
3495 (find_regno): Use find_register_by_number
3496 * regcache.h (struct reg): Remove declaration.
3498 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3500 * tdesc.c (target_desc::~target_desc): Move to here.
3501 (target_desc::operator==): Likewise.
3502 * tdesc.h (target_desc::~target_desc): Move from here.
3503 (target_desc::operator==): Likewise.
3505 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3507 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3509 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3511 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3513 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3514 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3515 and init_registers_s390_gs_linux64.
3517 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3519 * linux-s390-low.c (s390_fill_gs): Remove function.
3520 (s390_fill_gsbc): Remove function.
3521 (s390_regsets): Set fill functions for the guarded storage regsets
3524 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3526 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3527 the word size. Add comment.
3528 (s390_get_wordsize): New function.
3529 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3530 pswm with it. Instead, use s390_get_wordsize to determine the
3531 word size first and derive the correct tdesc from that directly.
3533 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3535 * Makefile.in: Include silent-rules.mk.
3536 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3537 (COMPILE): Add ECHO_CXX.
3538 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3539 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3540 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3541 (version-generated.c): Add ECHO_GEN.
3542 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3543 (IPAGENT_COMPILE): Add ECHO_CXX.
3544 (%-generated.c): Add ECHO_REGDAT.
3546 2018-03-14 Tom Tromey <tom@tromey.com>
3549 * ax.c (ax_printf): Special case for NULL.
3551 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3553 * linux-low.c (linux_qxfer_libraries_svr4): Use
3554 xml_escape_text_append.
3556 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3558 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3560 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3562 * server.c (handle_general_set): Remove unnecessary xstrdup.
3564 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3566 * server.c (parse_debug_format_options): Adjust to
3567 delim_string_to_char_ptr_vec changes.
3568 * thread-db.c (thread_db_load_search): Adjust to
3569 dirnames_to_char_ptr_vec changes.
3571 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3573 * target.h (target_enable_btrace, target_disable_btrace)
3574 (target_read_btrace, target_read_btrace_conf): Turn macro into
3575 inline function. Throw error if target method is not defined.
3576 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3577 check for btrace target method. Be prepared to handle exceptions
3578 from btrace target methods.
3580 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3582 * server.c (captured_main): Change order of error message printed
3583 when the current working directory cannot be found.
3585 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3587 * server.c: Include "filenames.h" and "pathstuff.h".
3588 (program_name): Delete variable.
3589 (program_path): New anonymous class.
3590 (get_exec_wrapper): Use "program_path" instead of
3592 (handle_v_run): Likewise.
3593 (captured_main): Likewise.
3594 (process_serial_event): Likewise.
3596 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3598 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3599 (OBJS): Add "pathstuff.o".
3600 * server.c (current_directory): New global variable.
3601 (captured_main): Initialize "current_directory".
3603 2018-02-26 Alan Hayward <alan.hayward@arm.com>
3605 * tdesc.c: Use common/tdesc.h.
3606 * tdesc.h: Likewise.
3608 2018-02-20 Alan Hayward <alan.hayward@arm.com>
3609 Simon Marchi <simon.marchi@ericsson.com>
3611 * Makefile.in: Switch order of make rules.
3613 2018-02-19 Alan Hayward <alan.hayward@arm.com>
3615 * Makefile.in: Add common directory in build.
3616 * configure.ac: Add common reference.
3617 * configure: Regenerate.
3619 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3621 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3622 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3623 * spu-low.c (spu_target_ops): Likewise.
3624 * win32-low.c (win32_target_ops): Likewise.
3625 * server.c (supported_btrace_packets): Report packets unconditionally.
3626 * target.h (target_ops) <supports_btrace>: Remove.
3627 (target_supports_btrace): Remove.
3629 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3631 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3632 (handle_btrace_disable): Change return type to void. Use exceptions
3634 (handle_btrace_general_set): Catch exception and copy message to
3637 2018-02-08 Tom Tromey <tom@tromey.com>
3639 * linux-low.c (install_software_single_step_breakpoints): Use
3640 make_scoped_restore.
3641 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3642 (do_restore_current_thread_cleanup): Remove.
3643 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3646 2018-02-08 Tom Tromey <tom@tromey.com>
3648 * mem-break.c (set_raw_breakpoint_at): Use
3649 gdb::unique_xmalloc_ptr.
3651 2018-01-30 Pedro Alves <palves@redhat.com>
3654 * target.c (target_terminal::terminal_state): Rename to ...
3655 (target_terminal::m_terminal_state): ... this.
3657 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3659 * linux-low.c (handle_extended_wait): Surround call to
3660 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3662 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3664 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3665 linux_ptrace_attach_fail_reason_string now returning an
3667 (linux_attach): Likewise.
3668 * thread-db.c (attach_thread): Likewise.
3670 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3673 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3674 checking for fs_base/gs_base fields in struct user_regs_struct.
3675 * configure: Regenerate.
3677 2018-01-16 Yao Qi <yao.qi@linaro.org>
3680 * linux-low.c (fetch_register): Call supply_register instead of
3683 2018-01-08 Yao Qi <yao.qi@linaro.org>
3684 Simon Marchi <simon.marchi@ericsson.com>
3686 * Makefile.in (OBS): Remove selftest.o.
3687 * configure.ac: Set srv_selftest_objs if $development is true.
3688 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3689 * configure: Re-generated.
3690 * server.c (captured_main): Wrap variable selftest_filter with
3693 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3695 * server.c (parse_debug_format_options): Return std::string.
3696 (handle_monitor_command, captured_main): Adjust.
3698 2018-01-05 Pedro Alves <palves@redhat.com>
3701 * server.c (captured_main): Pass quiet=false to
3702 save_original_signals_state.
3704 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3706 * gdbreplay.c (gdbreplay_version): Update copyright year in
3708 * server.c (gdbserver_version): Likewise.
3710 2017-12-08 Tom Tromey <tom@tromey.com>
3712 * ax.c (ax_printf): Update.
3714 2017-12-07 Yao Qi <yao.qi@linaro.org>
3716 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3717 aarch64_linux_read_description.
3718 * linux-amd64-ipa.c (idx2mask): New array.
3719 (get_ipa_tdesc): Move idx2mask out.
3720 (initialize_low_tracepoint): Initialize target descriptions.
3721 * linux-i386-ipa.c (idx2mask): New array.
3722 (get_ipa_tdesc): Move idx2mask out.
3723 (initialize_low_tracepoint): Initialize target descriptions.
3725 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3727 * tdesc.c (struct tdesc_type): Change return type.
3728 (tdesc_add_flag): Change parameter type.
3729 (tdesc_add_bitfield): Likewise.
3730 (tdesc_add_field): Likewise.
3731 (tdesc_set_struct_size): Likewise.
3733 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3735 * regcache.c (registers_to_string): Remove unused variable.
3737 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3739 * inferiors.c (for_each_inferior_with_data): Remove.
3740 * inferiors.h (for_each_inferior_with_data): Remove.
3741 * server.c (handle_qxfer_threads_worker): Change parameter type.
3742 (handle_qxfer_threads_proper): Use for_each_thread.
3744 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3746 * inferiors.c (for_each_inferior): Remove.
3747 (clear_inferiors): Use for_each_thread.
3748 * inferiors.h (for_each_inferior): Remove.
3749 * linux-low.c (linux_wait_for_event_filtered): Use
3751 (linux_stabilize_threads): Likewise.
3752 * regcache.c (regcache_release): Likewise.
3753 * server.c (gdb_wants_all_threads_stopped): Likewise.
3754 (clear_pending_status_callback): Remove.
3755 (handle_status): Use for_each_thread.
3756 (captured_main): Likewise.
3757 * win32-low.c (child_init_thread_list): Likewise.
3758 (win32_clear_inferiors): Likewise.
3759 (fake_breakpoint_event): Likewise.
3761 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3763 * inferiors.h (find_inferior): Remove.
3764 * inferiors.c (find_inferior): Remove.
3766 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3768 * linux-low.c (resume_status_pending_p): Update comment.
3769 (need_step_over_p): Update comment.
3771 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3773 * linux-low.c (proceed_one_lwp): Return void, change parameter
3775 (unsuspend_and_proceed_one_lwp): Likewise.
3776 (proceed_all_lwps): Use for_each_thread.
3777 (unstop_all_lwps): Likewise.
3779 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3781 * linux-low.c (linux_resume_one_thread): Return void, take
3783 (linux_resume): Use for_each_thread.
3785 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3787 * linux-low.c (send_sigstop_callback): Return void, change
3788 parameter type. Rename to...
3789 (send_sigstop): ... this.
3790 (suspend_and_send_sigstop_callback): Return void, change parameter
3792 (suspend_and_send_sigstop): ... this.
3793 (stop_all_lwps): Use for_each_thread.
3795 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3797 * linux-low.c (lwp_running): Return bool, remove unused
3799 (linux_stabilize_threads): Use find_thread.
3801 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3803 * linux-low.c (select_singlestep_lwp_callback): Remove.
3804 (count_events_callback): Remove.
3805 (select_event_lwp_callback): Remove.
3806 (select_event_lwp): Use find_thread/for_each_thread.
3808 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3810 * linux-low.c (not_stopped_callback): Return bool, take filter
3812 (linux_wait_for_event_filtered): Use find_thread.
3813 (linux_wait_1): Likewise.
3815 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3817 * linux-low.c (same_lwp): Remove.
3818 (find_lwp_pid): Use find_thread.
3820 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3822 * linux-low.c (delete_lwp_callback): Remove.
3823 (linux_mourn): Use for_each_thread.
3825 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3827 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3828 args parameter, don't check for pid.
3829 (linux_detach): Use for_each_thread.
3831 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3833 * linux-low.c (struct counter): Remove.
3834 (second_thread_of_pid_p): Remove.
3835 (last_thread_of_process_p): Use find_thread.
3837 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3839 * inferiors.c (find_inferior_in_random): Remove.
3840 * inferiors.h (find_inferior_in_random): Remove.
3841 * linux-low.c (status_pending_p_callback): Return bool, accept
3842 parameter ptid directly.
3843 (linux_wait_for_event_filtered): Use find_thread_in_random.
3844 (linux_wait_1): Likewise.
3846 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3848 * inferiors.c (find_inferior_id): Remove.
3849 (find_thread_ptid): Move implemention from find_inferior_id to
3851 * inferiors.h (find_inferior_id): Remove.
3852 * server.c (handle_status): Use find_thread_ptid.
3853 (process_serial_event): Likewise.
3854 * thread-db.c (find_one_thread): Likewise.
3855 (thread_db_thread_handle): Likewise.
3856 * win32-low.c (thread_rec): Likewise.
3857 (child_delete_thread): Likewise.
3858 (win32_thread_alive): Likewise.
3859 (get_child_debug_event): Likewise.
3861 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3863 * linux-mips-low.c (update_watch_registers_callback): Return
3864 void, remove pid_p parameter, don't check for pid.
3865 (mips_insert_point, mips_remove_point): Use for_each_thread.
3867 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3869 * lynx.low (lynx_delete_thread_callback): Remove.
3870 (lynx_mourn): Use for_each_thread.
3872 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3874 * regcache.c (regcache_invalidate_one): Remove.
3875 (regcache_invalidate_pid): use for_each_thread.
3877 2017-11-26 Tom Tromey <tom@tromey.com>
3879 * linux-low.c (linux_create_inferior): Update.
3881 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3883 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3885 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3887 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3888 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3889 * linux-aarch64-tdesc-selftest.c: New file.
3890 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3892 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3894 * configure.srv: Add new file.
3895 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3896 * linux-aarch64-tdesc-selftest.c: New file.
3897 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3899 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3901 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3902 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3903 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3905 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3907 * configure.srv: Add new files.
3908 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3909 aarch64_linux_read_description.
3910 * linux-aarch64-low.c (aarch64_linux_read_description):
3911 Merge with aarch64_arch_setup.
3912 (aarch64_arch_setup): Call aarch64_linux_read_description.
3913 * linux-aarch64-tdesc.c: New file.
3914 * linux-aarch64-tdesc.h: New file.
3916 2017-11-24 Yao Qi <yao.qi@linaro.org>
3918 * configure.srv: Set $srv_regobj for tic6x-linux.
3919 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3920 (tic6x_read_description): Move some code to tic6x_arch_setup.
3921 (tic6x_tdesc_test): New function.
3922 (initialize_low_arch): Call selftests::register_test.
3924 2017-11-22 Yao Qi <yao.qi@linaro.org>
3926 * remote-utils.c (prepare_resume_reply): Use memcpy.
3928 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3930 * linux-low.c (kill_one_lwp_callback): Return void, take
3931 argument directly, don't filter on pid.
3932 (linux_kill): Use for_each_thread.
3934 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3936 * linux-low.c (need_step_over_p): Return bool, remove dummy
3938 (linux_resume, proceed_all_lwps): Use find_thread.
3940 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3942 * linux-low.c (resume_status_pending_p): Return bool, remove
3944 (linux_resume): Use find_thread.
3946 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3948 * linux-low.c (struct thread_resume_array): Remove.
3949 (linux_set_resume_request): Return void, take arguments
3951 (linux_resume): Use for_each_thread.
3953 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3955 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3956 return bool, remove data argument.
3957 (linux_stabilize_threads): Use find_thread.
3959 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3961 * linux-low.c (unsuspend_one_lwp): Remove.
3962 (unsuspend_all_lwps): Use for_each_thread, inline code from
3965 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3967 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3968 * linux-low.c (struct iterate_over_lwps_args): Remove.
3969 (iterate_over_lwps_filter): Remove.
3970 (iterate_over_lwps): Use find_thread.
3972 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3974 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
3975 (linux_handle_new_gdb_connection): Use for_each_thread, inline
3976 code from reset_lwp_ptrace_options_callback.
3978 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3980 * linux-arm-low.c (struct update_registers_data): Remove.
3981 (update_registers_callback): Return void, take arguments
3982 directly, don't check thread's pid.
3983 (arm_insert_point, arm_remove_point): Use for_each_thread.
3985 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3987 * win32-low.c (continue_one_thread): Return void, take argument
3989 (child_continue): Use for_each_thread.
3991 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3993 * win32-i386-low.c (update_debug_registers_callback): Rename
3995 (update_debug_registers): ... this, return void, remove pid_p arg.
3996 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3998 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4000 * inferiors.h (struct process_info): Add constructor, initialize
4002 <syscalls_to_catch>: Change type to std::vector<int>.
4003 * inferiors.c (add_process): Allocate process_info with new.
4004 (remove_process): Free process_info with delete.
4005 * linux-low.c (handle_extended_wait): Adjust.
4006 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4007 * server.c (handle_general_set): Adjust.
4009 2017-11-16 Pedro Alves <palves@redhat.com>
4011 * remote-utils.c (remote_close): Block SIGIO signals instead of
4012 uninstalling the SIGIO handler.
4014 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4016 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4018 2017-11-16 Yao Qi <yao.qi@linaro.org>
4020 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4021 (tic6x_store_gregset): Likewise.
4022 (tic6x_usrregs_info): Move it up.
4024 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4026 * Makefile.in: Update arch rules.
4027 * configure.srv: Explicitly mark arch/ files.
4029 2017-11-13 Andreas Schwab <schwab@suse.de>
4031 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4033 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4035 2017-11-06 Pedro Alves <palves@redhat.com>
4037 * config.in, configure: Regenerate.
4039 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4041 * target.c (struct thread_search): Remove.
4042 (thread_search_callback): Remove.
4043 (prepare_to_access_memory): Use for_each_thread instead of
4044 find_inferior. Inline code from thread_search_callback.
4046 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4048 * server.c (struct visit_actioned_threads_data): Remove.
4049 (visit_actioned_threads): Change prototype to take arguments
4051 (resume): Use find_thread instead of find_inferior.
4053 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4055 * server.c (queue_stop_reply_callback): Change prototype, return
4057 (find_status_pending_thread_callback): Remove.
4058 (handle_status): Replace find_inferior with find_thread and
4061 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4063 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4065 (aarch64_store_gregset): Likewise.
4066 (aarch64_fill_fpregset): Likewise.
4067 (aarch64_store_fpregset): Likewise.
4069 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4071 * gdbthread.h (find_thread, for_each_thread): New functions.
4072 * inferiors.c (thread_of_pid): Remove.
4073 (find_any_thread_of_pid): Use find_thread.
4074 * linux-low.c (num_lwps): Use for_each_thread.
4076 2017-10-17 Yao Qi <yao.qi@linaro.org>
4078 * Makefile.in: Remove one rule.
4079 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4081 2017-10-17 Yao Qi <yao.qi@linaro.org>
4083 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4084 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4086 2017-10-17 Yao Qi <yao.qi@linaro.org>
4088 * configure.srv: Rename arm.o with arch/arm.o.
4090 2017-10-17 Yao Qi <yao.qi@linaro.org>
4092 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4093 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4094 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4095 (arch-i386.o, arch-amd64.o): Remove rules.
4096 (arch/%.o): New rule.
4097 Update POSTCOMPILE and COMPILE.pre.
4098 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4099 * configure: Re-generated.
4100 * configure.srv: Replace arch-i386.o with arch/i386.o.
4101 Replace arch-amd64.o with arch/amd64.o.
4103 2017-10-16 Yao Qi <yao.qi@linaro.org>
4105 * configure: Regenerated.
4107 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4109 * inferiors.h: (struct inferior_list): Remove.
4110 (struct inferior_list_entry); Remove.
4111 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4112 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4113 get_first_inferior): Remove.
4114 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4115 find_inferior_id, find_inferior_in_random): Change signature.
4116 * inferiors.c (all_threads): Change type to
4117 std::list<thread_info *>.
4118 (get_thread): Remove macro.
4119 (find_inferior, find_inferior_id): Change signature, implement
4121 (find_inferior_in_random): Change signature, implement using
4122 find_thread_in_random.
4123 (for_each_inferior, for_each_inferior_with_data): Change
4124 signature, implement using for_each_thread.
4125 (add_inferior_to_list, remove_inferior): Remove.
4126 (add_thread, get_first_thread, thread_of_pid,
4127 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4128 (get_first_inferior, one_inferior_p, clear_inferior_list):
4130 (clear_inferiors, get_thread_process): Update.
4131 * gdbthread.h: Include <list>.
4132 (struct thread_info) <entry>: Remove field.
4134 (all_threads): Change type to std::list<thread_info *>.
4135 (get_first_inferior): Add doc.
4136 (find_thread, for_each_thread, find_thread_in_random): New
4138 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4139 * linux-arm-low.c (update_registers_callback): Update.
4140 * linux-low.c (second_thread_of_pid_p): Update.
4141 (kill_one_lwp_callback, linux_detach_lwp_callback,
4142 delete_lwp_callback, status_pending_p_callback, same_lwp,
4143 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4144 iterate_over_lwps, not_stopped_callback,
4145 resume_stopped_resumed_lwps, count_events_callback,
4146 select_singlestep_lwp_callback, select_event_lwp_callback,
4147 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4148 suspend_and_send_sigstop_callback, wait_for_sigstop,
4149 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4150 lwp_running, linux_set_resume_request, resume_status_pending_p,
4151 need_step_over_p, start_step_over, linux_resume_one_thread,
4152 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4153 reset_lwp_ptrace_options_callback): Update.
4154 * linux-mips-low.c (update_watch_registers_callback): Update.
4155 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4157 (free_register_cache_thread_one): Remove.
4158 (regcache_release): Update.
4159 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4160 handle_qxfer_threads_worker): Update.
4161 (handle_query): Update, use list iterator.
4162 (visit_actioned_threads, handle_pending_status,
4163 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4164 clear_pending_status_callback, set_pending_status_callback,
4165 find_status_pending_thread_callback, handle_status,
4166 process_serial_event): Update.
4167 * target.c (thread_search_callback): Update.
4168 * thread-db.c (thread_db_get_tls_address): Update.
4169 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4171 * win32-i386-low.c (update_debug_registers_callback): Update.
4172 * win32-low.c (delete_thread_info, child_delete_thread,
4173 continue_one_thread, suspend_one_thread,
4174 get_child_debug_event): Adjust.
4176 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4178 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4179 * inferiors.h: Include <list>.
4180 (struct process_info) <entry>: Remove field.
4182 (pid_of): Change macro to function.
4183 (ptid_of, lwpid_of): Remove macro.
4184 (all_processes): Change type to std::list<process_info *>.
4185 (ALL_PROCESSES): Remove macro.
4186 (for_each_process, find_process): New function.
4187 * inferiors.c (all_processes): Change type to
4188 std::list<process_info *>.
4189 (find_thread_process): Adjust.
4190 (add_process): Likewise.
4191 (remove_process): Likewise.
4192 (find_process_pid): Likewise.
4193 (get_first_process): Likewise.
4194 (started_inferior_callback): Remove.
4195 (have_started_inferiors_p): Adjust.
4196 (attached_inferior_callback): Remove.
4197 (have_attached_inferiors_p): Adjust.
4198 * linux-low.c (check_zombie_leaders): Likewise.
4199 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4200 (x86_linux_update_xmltarget): Adjust.
4201 * server.c (handle_query): Likewise.
4202 (gdb_reattached_process): Remove.
4203 (handle_status): Adjust.
4204 (kill_inferior_callback): Likewise.
4205 (detach_or_kill_inferior): Remove.
4206 (print_started_pid): Likewise.
4207 (print_attached_pid): Likewise.
4208 (detach_or_kill_for_exit): Update.
4209 (process_serial_event): Likewise.
4210 * linux-arm-low.c (arm_new_fork): Likewise.
4212 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4214 * dll.h: Include <list>.
4215 (struct dll_info): Add constructor.
4216 <entry>: Remove field.
4217 (all_dlls): Change type to std::list<dll_info>.
4218 * dll.c: Include <algorithm>.
4219 (get_dll): Remove macro.
4220 (all_dlls): Change type to std::list<dll_info *>.
4221 (free_one_dll): Remove.
4222 (match_dll): Likewise.
4223 (loaded_dll): Adjust.
4224 (unloaded_dll): Adjust to all_dlls type change, use
4225 std::find_if. Inline code from match_dll.
4226 (clear_dlls): Adjust to all_dlls type change.
4227 * server.c (emit_dll_description): Remove.
4228 (handle_qxfer_libraries): Adjust to all_dlls type change,
4229 integrate emit_dll_description's functionality.
4231 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4233 * linux-low.h (struct linux_target_ops) <delete_process>: New
4235 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4236 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4237 (struct linux_target_ops): Add delete_process callback.
4238 * linux-arm-low.c (arm_delete_process): New.
4239 (struct linux_target_ops): Add delete_process callback.
4240 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4241 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4242 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4243 * linux-mips-low.c (mips_linux_delete_process): New.
4244 (struct linux_target_ops): Add delete_process callback.
4245 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4246 * linux-s390-low.c (struct linux_target_ops): Likewise.
4247 * linux-sh-low.c (struct linux_target_ops): Likewise.
4248 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4249 * linux-tile-low.c (struct linux_target_ops): Likewise.
4250 * linux-x86-low.c (x86_linux_delete_process): New.
4251 (struct linux_target_ops): Add delete_process callback.
4252 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4254 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4256 * linux-aarch64-low.c (the_low_target): Add thread delete
4258 * linux-arm-low.c (arm_delete_thread): New function.
4259 (the_low_target): Add thread delete callback.
4260 * linux-bfin-low.c (the_low_target): Likewise.
4261 * linux-crisv32-low.c (the_low_target): Likewise.
4262 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4264 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4266 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4267 * linux-mips-low.c (mips_linux_delete_thread): New function.
4268 (the_low_target): Add thread delete callback.
4269 * linux-ppc-low.c (the_low_target): Likewise.
4270 * linux-s390-low.c (the_low_target): Likewise.
4271 * linux-sh-low.c (the_low_target): Likewise.
4272 * linux-tic6x-low.c (the_low_target): Likewise.
4273 * linux-tile-low.c (the_low_target): Likewise.
4274 * linux-x86-low.c (the_low_target): Likewise.
4275 * linux-xtensa-low.c (the_low_target): Likewise.
4277 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4279 * win32-low.c: Include "common-inferior.h".
4281 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4283 * inferiors.c (set_inferior_cwd): New function.
4284 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4285 (handle_query): Inform that QSetWorkingDir is supported.
4286 * win32-low.c (create_process): Pass the inferior's cwd to
4289 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4291 * inferiors.c (current_inferior_cwd): New global variable.
4292 (get_inferior_cwd): New function.
4293 * inferiors.h (struct process_info) <cwd>: New field.
4295 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4297 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4298 (OBS): Add gdb_tilde_expand.o.
4300 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4302 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4303 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4305 2017-09-29 Pedro Alves <palves@redhat.com>
4307 * ax.c (gdb_parse_agent_expr): Constify.
4308 * ax.h (gdb_parse_agent_expr): Constify.
4309 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4311 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4312 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4313 * remote-utils.h (read_ptid): Constify.
4314 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4315 (process_point_options, process_serial_event): Constify.
4316 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4317 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4318 (cmd_qtbuffer): Constify.
4320 2017-09-29 Pedro Alves <palves@redhat.com>
4322 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4325 2017-09-29 Pedro Alves <palves@redhat.com>
4327 * linux-low.c (handle_extended_wait): Pass parent thread instead
4328 of process to thread_db_notice_clone.
4329 * linux-low.h (thread_db_notice_clone): Replace parent process
4330 parameter with parent thread parameter.
4331 * thread-db.c (find_one_thread): Add comment.
4332 (thread_db_notice_clone): Replace parent process parameter with
4333 parent thread parameter. Temporarily switch to the parent thread.
4335 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4337 * gdbthread.h: Include "common-gdbthread.h".
4338 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4339 "if" when validating the ptid.
4340 * remote-utils.c: Include "gdbthread.h".
4341 (prepare_resume_reply): Use "switch_to_thread".
4342 * target.c (done_accessing_memory): Likewise.
4344 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4346 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4347 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4348 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4349 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4350 s390x-gs-linux64-ipa.o to ipa_obj.
4351 * linux-s390-low.c (HWCAP_S390_GS): New define.
4352 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4354 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4355 (s390_arch_setup): Check for guarded-storage support and choose
4357 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4358 init_registers_s390x_gs_linux64.
4359 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4361 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4362 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4364 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4366 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4368 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4370 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4371 (thread_db_thread_handle): Declare.
4372 * linux-low.c (linux_target_ops): Initialize thread_handle.
4373 * server.c (handle_qxfer_threads_worker): Add support for
4375 * target.h (struct target_ops): Add new function pointer,
4377 (target_thread_handle): Define.
4378 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4380 (thread_db_thread_handle): New function.
4382 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4384 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4385 * linux-low.h (thread_db_notice_clone): Declare.
4386 * thread-db.c (thread_db_notice_clone): New function.
4388 2017-09-21 Pedro Alves <palves@redhat.com>
4390 * server.c (gdb_read_memory, handle_status, process_serial_event)
4391 (handle_serial_event, handle_target_event): Adjust to
4392 set_desired_thread prototype change.
4393 * target.c (set_desired_thread): Remove 'use_general' parameter
4395 * target.h (set_desired_thread): Remove 'use_general' parameter.
4397 2017-09-20 Tom Tromey <tom@tromey.com>
4399 * target.c (target_terminal::terminal_state): Define.
4400 (target_terminal::init): Rename from target_terminal_init.
4401 (target_terminal::inferior): Rename from
4402 target_terminal_inferior.
4403 (target_terminal::ours): Rename from target_terminal_ours.
4404 (target_terminal::ours_for_output, target_terminal::info): New.
4406 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4408 * server.c (accumulate_file_name_length): Remove.
4409 (emit_dll_description): Adjust to std::string change.
4410 (handle_qxfer_libraries): Use std::string to hold document.
4412 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4414 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4415 return type of xml_escape_text.
4416 * server.c (emit_dll_description): Likewise.
4418 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4420 * server.c (captured_main): Accept argument for --selftest.
4421 Update run_tests call.
4422 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4423 when registering selftests.
4425 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4427 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4428 instead of "VEC" for "target_desc.reg_defs".
4429 (regcache_cpy): Likewise.
4430 (registers_to_string): Likewise.
4431 (registers_from_string): Likewise.
4432 (find_regno): Likewise.
4433 (supply_regblock): Likewise.
4434 (regcache_raw_read_unsigned): Likewise.
4435 * tdesc.c (init_target_desc): Likewise.
4436 (tdesc_create_reg): Likewise.
4437 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4438 (struct target_desc) <reg_defs>: Convert to "std::vector".
4439 (target_desc): Do not initialize "reg_defs".
4440 (~target_desc): Update code to use "std::vector" instead of "VEC"
4441 for "target_desc.reg_defs".
4442 (operator==): Likewise.
4444 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4446 * inferiors.h (thread_to_gdb_id): Remove.
4447 * inferiors.c (thread_to_gdb_id): Remove.
4448 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4449 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4450 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4452 * nto-low.c (nto_fetch_registers, nto_store_registers,
4453 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4455 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4457 * inferiors.h (gdb_id_to_thread_id): Remove.
4458 * inferiors.c (gdb_id_to_thread_id): Remove.
4459 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4460 removal. Move pid declaration closer to where it's used.
4462 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4464 * server.c (handle_detach): New function.
4465 (process_serial_event): Move code out, call handle_detach.
4467 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4469 * server.c (require_running): Rename to ...
4470 (require_running_or_return): ... this ...
4471 (require_running_or_break): ... and this.
4472 (handle_query, process_serial_event): Adjust.
4474 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4476 * linux-low.c (linux_set_resume_request): Remove unused
4479 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4481 * server.c (first_thread_of): Remove.
4482 (process_serial_event): Replace usage of first_thread_of with
4483 find_any_thread_of_pid.
4484 * tracepoint.c (same_process_p): Remove.
4485 (gdb_agent_about_to_close): Replace usage of same_process_p with
4486 find_any_thread_of_pid.
4487 * linux-x86-low.c (same_process_callback): Remove.
4488 (x86_arch_setup_process_callback): Replace usage of
4489 same_process_callback with find_any_thread_of_pid.
4490 * thread-db.c (any_thread_of): Remove.
4491 (switch_to_process): Replace usage of any_thread_of with
4492 find_any_thread_of_pid.
4493 * inferiors.c (thread_pid_matches_callback): Remove.
4494 (find_thread_process): Adjust to use find_any_thread_of_pid.
4496 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4498 * regcache.c (get_thread_regcache): Guard calls to "memset"
4501 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4503 * linux-low.c (handle_extended_wait): Use
4504 "allocate_target_description" instead of "XNEW".
4505 * linux-x86-low.c (initialize_low_arch): Likewise.
4507 2017-09-05 Yao Qi <yao.qi@linaro.org>
4509 * configure.srv (srv_i386_regobj): Remove.
4510 (srv_amd64_regobj): Remove.
4511 (srv_regobj): Set it to "" for x86 non-linux targets.
4512 * linux-x86-tdesc.c (i386_linux_read_description):
4513 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4514 (init_registers_i386): Remove the declaration.
4515 (tdesc_i386): Remove the declaration.
4516 (lynx_i386_arch_setup): Call i386_create_target_description.
4517 * nto-x86-low.c: Likewise.
4518 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4519 [!__x86_64__]: include arch/i386.h.
4520 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4522 2017-09-05 Yao Qi <yao.qi@linaro.org>
4524 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4525 i386/amd64-XXX-linux from it.
4527 2017-09-05 Yao Qi <yao.qi@linaro.org>
4529 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4531 (ipa_amd64_linux_regobj): Remove.
4532 (ipa_x32_linux_regobj): Remove.
4534 2017-09-05 Yao Qi <yao.qi@linaro.org>
4536 * Makefile.in (arch-amd64.o): New rule.
4537 * configure.srv: Append arch-amd64.o.
4538 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4539 (get_ipa_tdesc): Call amd64_linux_read_description.
4540 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4541 and init_registers_amd64_XXX.
4542 * linux-x86-low.c (x86_linux_read_description): Call
4543 amd64_linux_read_description.
4544 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4545 (initialize_low_arch): Don't call init_registers_x32_XXX and
4546 init_registers_amd64_XXX.
4547 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4548 and tdesc_amd64_XXX.
4549 [__x86_64__] (amd64_tdesc_test): New function.
4550 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4551 and init_registers_amd64_XXX.
4552 * linux-x86-tdesc.c: Include arch/amd64.h.
4553 (xcr0_to_tdesc_idx): New function.
4554 (i386_linux_read_description): New function.
4555 (amd64_get_ipa_tdesc_idx): New function.
4556 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4557 (amd64_get_ipa_tdesc): Declare.
4559 2017-09-05 Yao Qi <yao.qi@linaro.org>
4561 * configure.srv (srv_i386_linux_xmlfiles): Remove
4562 i386/i386-XXX-linux.xml from it.
4564 2017-09-05 Yao Qi <yao.qi@linaro.org>
4566 * configure.srv: Set srv_i386_linux_regobj empty if $development
4568 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4569 initialize_low_tdesc.
4570 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4571 with #if initialize_low_tdesc.
4572 * linux-x86-tdesc-selftest.c: New file.
4573 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4575 2017-09-05 Yao Qi <yao.qi@linaro.org>
4577 * Makefile.in (arch-i386.o): New rule.
4578 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4579 (x86_64-*-linux*): Likewise.
4580 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4581 include arch/i386.h.
4582 (i386_linux_read_description): Remove code and call
4583 i386_create_target_description.
4584 * tdesc.c (allocate_target_description): New function.
4585 * tdesc.h (set_tdesc_architecture): Remove declaration.
4586 (set_tdesc_osabi): Likewise.
4588 2017-09-05 Yao Qi <yao.qi@linaro.org>
4590 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4591 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4592 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4594 * server.c (get_features_xml): Call tdesc_get_features_xml.
4595 * tdesc.c (set_tdesc_architecture): New function.
4596 (set_tdesc_osabi): New function.
4597 (tdesc_get_features_xml): New function.
4598 (tdesc_create_feature): Add an argument.
4599 * tdesc.h (struct target_desc) <features>: New field.
4600 <arch, osabi>: New field.
4601 (~target_desc): xfree features, arch, and osabi.
4602 (target_desc::oerator==): Don't compare .xmltarget.
4603 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4604 (set_tdesc_osabi): Likewise.
4605 (tdesc_get_features_xml): Likewise.
4607 2017-09-05 Yao Qi <yao.qi@linaro.org>
4609 * linux-x86-tdesc.c: Include selftest.h.
4610 (i386_tdesc_test): New function.
4611 (initialize_low_tdesc): Call selftests::register_test.
4612 * tdesc.h: Include regdef.h.
4613 (target_desc): Override operator == and !=.
4615 2017-09-05 Yao Qi <yao.qi@linaro.org>
4617 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4618 (ipa_obj): Likewise.
4619 * linux-i386-ipa.c: Include common/x86-xstate.h
4620 (get_ipa_tdesc): Call i386_linux_read_description.
4621 (initialize_low_tracepoint): Don't call init_registers_XXX
4622 functions, call initialize_low_tdesc instead.
4623 * linux-x86-low.c (x86_linux_read_description): Call
4624 i386_linux_read_description.
4625 (initialize_low_arch): Don't call init_registers_i386_XXX
4626 functions, call initialize_low_tdesc.
4627 * linux-x86-tdesc.c: New file.
4628 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4629 (i386_get_ipa_tdesc_idx): Declare.
4630 (i386_get_ipa_tdesc): Declare.
4631 (initialize_low_tdesc): Declare.
4633 2017-09-05 Yao Qi <yao.qi@linaro.org>
4635 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4638 2017-09-05 Yao Qi <yao.qi@linaro.org>
4640 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4641 * regcache.c (get_thread_regcache): Use VEC_length.
4642 (init_register_cache): Likewise.
4643 (regcache_cpy): Likewise.
4644 (registers_to_string): Iterate reg_defs via VEC_iterate.
4645 (find_regno): Likewise.
4646 (find_register_by_number): Use VEC_index.
4647 (register_size): Call find_register_by_number.
4648 (register_data): Call find_register_by_number.
4649 (supply_regblock): Use VEC_length.
4650 (regcache_raw_read_unsigned): Likewise.
4651 * tdesc.c (init_target_desc): Iterate reg_defs via
4653 (default_description): Update initializer.
4654 (copy_target_description): Don't update field num_registers.
4655 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4656 <num_registers>: Remove.
4658 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4660 * Makefile.in (.SECONDARY): Define target.
4662 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4664 * linux-low.c (linux_wait_1): Adjust.
4665 * server.c (queue_stop_reply_callback): Adjust.
4667 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4669 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4670 QEnvironmentUnset and QEnvironmentReset packets.
4671 (handle_query): Inform remote that QEnvironmentHexEncoded,
4672 QEnvironmentUnset and QEnvironmentReset are supported.
4674 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4676 * inferiors.h (inferior_target_data): Rename to ...
4677 (thread_target_data): ... this.
4678 (inferior_regcache_data): Rename to ...
4679 (thread_regcache_data): ... this.
4680 (set_inferior_regcache_data): Rename to ...
4681 (set_thread_regcache_data): ... this.
4682 * inferiors.c (inferior_target_data): Rename to ...
4683 (thread_target_data): ... this.
4684 (inferior_regcache_data): Rename to ...
4685 (thread_regcache_data): ... this.
4686 (set_inferior_regcache_data): Rename to ...
4687 (set_thread_regcache_data): ... this.
4688 (free_one_thread): Update.
4689 * linux-low.h (get_thread_lwp): Update.
4690 * regcache.c (get_thread_regcache): Update.
4691 (regcache_invalidate_thread): Update.
4692 (free_register_cache_thread): Update.
4693 * win32-i386-low.c (update_debug_registers_callback): Update.
4694 (win32_get_current_dr): Update.
4695 * win32-low.c (thread_rec): Update.
4696 (delete_thread_info): Update.
4697 (continue_one_thread): Update.
4698 (suspend_one_thread): Update.
4700 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4702 * inferiors.c (set_inferior_target_data): Remove.
4703 * inferiors.h (set_inferior_target_data): Remove.
4705 2017-08-18 Yao Qi <yao.qi@linaro.org>
4707 * Makefile.in (OBS): Add selftest.o.
4708 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4709 * configure, config.in: Re-generated.
4710 * server.c: Include common/sefltest.h.
4711 (captured_main): Handle option --selftest.
4713 2017-08-09 Yao Qi <yao.qi@linaro.org>
4715 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4716 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4717 i386-avx-mpx.o and i386-mmx.o.
4718 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4719 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4720 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4721 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4722 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4723 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4724 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4725 i386/amd64-avx-mpx.xml.
4727 2017-08-09 Yao Qi <yao.qi@linaro.org>
4729 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4730 and x32-avx-avx512.o.
4731 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4732 i386/x32-avx-avx512.xml.
4734 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4736 * tracepoint.h (enum class fast_tpoint_collect_result): New
4738 (fast_tracepoint_collecting): Change return type to
4739 fast_tpoint_collect_result.
4740 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4741 * linux-low.h: Include tracepoint.h.
4742 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4743 fast_tpoint_collect_result.
4744 * linux-low.c (handle_tracepoints): Adjust.
4745 (linux_fast_tracepoint_collecting): Change return type to
4746 fast_tpoint_collect_result.
4747 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4748 linux_wait_1, stuck_in_jump_pad_callback,
4749 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4750 proceed_one_lwp): Adjust to type change.
4752 2017-07-10 Yao Qi <yao.qi@linaro.org>
4754 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4756 2017-06-29 Yao Qi <yao.qi@linaro.org>
4758 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4760 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4762 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4764 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4766 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4768 * linux-low.c (linux_create_inferior): Adjust code to access the
4769 environment information via 'gdb_environ' class.
4770 * lynx-low.c (lynx_create_inferior): Likewise.
4771 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4772 (get_environ): Return a pointer to 'our_environ'.
4773 (captured_main): Initialize 'our_environ'.
4774 * server.h (get_environ): Adjust prototype.
4775 * spu-low.c (spu_create_inferior): Adjust code to access the
4776 environment information via 'gdb_environ' class.
4778 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4780 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4781 usage of "register" keyword.
4783 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4785 * configure: Re-generate.
4787 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4789 * configure: Re-generate.
4791 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4793 * Makefile.in (COMPILE.pre): Add "-x c++".
4795 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4797 * fork-child.c: Conditionally include <signal.h>.
4799 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4801 * server.c (handle_general_set): Handle new packet
4802 "QStartupWithShell".
4803 (handle_query): Add "QStartupWithShell" to the list of supported
4805 (gdbserver_usage): Add help text explaining the
4806 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4808 (captured_main): Recognize and act upon the presence of the new
4811 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4812 Pedro Alves <palves@redhat.com>
4814 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4815 * configure: Regenerate.
4816 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4818 (i[34567]86-*-lynxos*): Likewise.
4819 (spu*-*-*): Likewise.
4820 * fork-child.c: New file.
4821 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4823 (linux_ptrace_fun): New function.
4824 (linux_create_inferior): Adjust function prototype to reflect
4825 change on "target.h". Adjust function code to use
4827 (linux_request_interrupt): Delete "signal_pid".
4828 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4829 (lynx_ptrace_fun): New function.
4830 (lynx_create_inferior): Adjust function prototype to reflect
4831 change on "target.h". Adjust function code to use
4833 * nto-low.c (nto_create_inferior): Adjust function prototype and
4834 code to reflect change on "target.h". Update comments.
4835 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4836 "common-terminal.h" and "environ.h".
4837 (terminal_fd): Moved to fork-child.c.
4838 (old_foreground_pgrp): Likewise.
4839 (restore_old_foreground_pgrp): Likewise.
4840 (last_status): Make it global.
4841 (last_ptid): Likewise.
4842 (our_environ): New variable.
4843 (startup_with_shell): Likewise.
4844 (program_name): Likewise.
4845 (program_argv): Rename to...
4846 (program_args): ...this.
4847 (wrapper_argv): New variable.
4848 (start_inferior): Delete function.
4849 (get_exec_wrapper): New function.
4850 (get_exec_file): Likewise.
4851 (get_environ): Likewise.
4852 (prefork_hook): Likewise.
4853 (post_fork_inferior): Likewise.
4854 (postfork_hook): Likewise.
4855 (postfork_child_hook): Likewise.
4856 (handle_v_run): Update code to deal with arguments coming from the
4857 remote host. Update calls from "start_inferior" to
4859 (captured_main): Likewise. Initialize environment variable. Call
4861 * server.h (post_fork_inferior): New prototype.
4862 (get_environ): Likewise.
4863 (last_status): Declare.
4864 (last_ptid): Likewise.
4865 (signal_pid): Likewise.
4866 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4867 (spu_ptrace_fun): New function.
4868 (spu_create_inferior): Adjust function prototype to reflect change
4869 on "target.h". Adjust function code to use "fork_inferior".
4870 * target.c (target_terminal_init): New function.
4871 (target_terminal_inferior): Likewise.
4872 (target_terminal_ours): Likewise.
4873 * target.h: Include <vector>.
4874 (struct target_ops) <create_inferior>: Update prototype.
4875 (create_inferior): Update macro.
4876 * utils.c (gdb_flush_out_err): New function.
4877 * win32-low.c (win32_create_inferior): Adjust function prototype
4878 and code to reflect change on "target.h".
4880 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4882 * inferiors.c (switch_to_thread): New function.
4884 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4886 * Makefile.in (SFILE): Add "common/job-control.c".
4887 (OBS): Add "job-control.o".
4889 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4891 * Makefile: Remove "@host_makefile_frag@".
4893 2017-05-05 Pedro Alves <palves@redhat.com>
4895 * configure: Regenerate.
4897 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4899 * configure: Regenerate.
4901 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4903 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4904 software_single_step change of return type to
4905 std::vector<CORE_ADDR>.
4906 * linux-low.c (install_software_single_step_breakpoints):
4908 * linux-low.h (install_software_single_step_breakpoints):
4911 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4913 * remote-utils.c: Include "gdb_termios.h" instead of
4915 * terminal.h: Delete file.
4917 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4919 * server.c: Include <vector>.
4920 <program_argv, wrapper_argv>: Convert to std::vector.
4921 (start_inferior): Rewrite function to use C++.
4922 (handle_v_run): Likewise. Update code that calculates the argv
4923 based on the vRun packet; use C++.
4924 (captured_main): Likewise.
4926 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4928 * server.c (handle_v_cont): Initialize thread_resume::thread
4931 2017-04-05 Pedro Alves <palves@redhat.com>
4933 * configure: Regenerate.
4935 2017-04-05 Pedro Alves <palves@redhat.com>
4937 * gdbreplay.c (sync_error): Constify.
4938 * linux-x86-low.c (push_opcode): Constify.
4940 2017-04-05 Pedro Alves <palves@redhat.com>
4942 * win32-low.c (get_child_debug_event)
4943 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4944 Report TARGET_WAITKIND_SPURIOUS instead.
4946 2017-04-05 Pedro Alves <palves@redhat.com>
4948 * remote-utils.c (remote_prepare, remote_open): Constify.
4949 * remote-utils.h (remote_prepare, remote_open): Constify.
4950 * server.c (captured_main): Constify 'port' handling.
4952 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4954 * Makefile.in (clean): Clear .deps.
4956 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4958 * .gitignore: Remove generated files, replace with wildcard.
4959 * (clean): Replace removal of generated files with wildcard.
4960 (version.c): Replace with...
4961 (version-generated.c): ...this.
4962 (xml-builtin.c): Replace with...
4963 (xml-builtin-generated.c): ...this.
4964 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4965 (%.c: *regformats*): Replace with...
4966 (%-generated.c: *regformats*): ...this.
4968 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4970 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4971 (xtensa_fill_gregset): Call collect_register_by_name for
4973 (xtensa_store_gregset): Call supply_register_by_name for
4976 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4978 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
4979 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
4980 (xtensa_store_gregset): Call supply_register for all registers in
4981 a0_regnum..a0_regnum + C0_NREGS range.
4983 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4985 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4986 (ax-ipa.o: ax.c): Remove.
4987 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4988 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4989 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4990 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4991 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4993 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4995 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4996 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4997 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4998 (errors-ipa.o: ../common/errors.c): Remove.
4999 (format-ipa.o: ../common/format.c): Remove.
5000 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5002 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5004 * Makefile.in (%-ipa.o: %.c): New rule.
5005 (tracepoint-ipa.o: tracepoint.c): Remove.
5006 (utils-ipa.o: utils.c): Remove.
5007 (remote-utils-ipa.o: remote-utils.c): Remove.
5008 (regcache-ipa.o: regcache.c): Remove.
5009 (i386-linux-ipa.o: i386-linux.c): Remove.
5010 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5011 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5012 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5013 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5014 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5015 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5016 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5017 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5018 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5019 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5020 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5021 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5022 (aarch64-ipa.o: aarch64.c): Remove.
5023 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5024 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5025 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5026 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5027 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5028 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5029 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5030 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5031 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5032 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5033 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5034 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5035 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5036 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5037 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5038 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5039 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5040 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5041 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5042 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5043 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5044 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5045 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5046 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5047 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5048 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5049 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5050 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5051 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5052 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5053 (tdesc-ipa.o: tdesc.c): Remove.
5054 (x32-linux-ipa.o: x32-linux.c): Remove.
5055 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5056 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5058 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5060 * Makefile.in (%.o: ../arch/%.c): New rule.
5061 (arm.o: ../arch/arm.c): Remove.
5062 (arm-linux.o: ../arch/arm-linux.c): Remove.
5063 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5064 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5066 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5068 * Makefile.in (%.o: ../nat/%.c): New rule.
5069 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5070 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5071 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5072 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5073 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5074 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5075 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5076 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5077 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5078 (linux-personality.o: ../nat/linux-personality.c): Remove.
5079 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5080 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5081 (x86-linux.o: ../nat/x86-linux.c): Remove.
5082 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5083 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5085 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5087 * Makefile.in (%.o: ../common/%.c): New rule.
5088 (signals.o: ../common/signals.c): Remove.
5089 (print-utils.o: ../common/print-utils.c): Remove.
5090 (rsp-low.o: ../common/rsp-low.c): Remove.
5091 (common-utils.o: ../common/common-utils.c): Remove.
5092 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5093 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5094 (vec.o: ../common/vec.c): Remove.
5095 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5096 (xml-utils.o: ../common/xml-utils.c): Remove.
5097 (ptid.o: ../common/ptid.c): Remove.
5098 (buffer.o: ../common/buffer.c): Remove.
5099 (format.o: ../common/format.c): Remove.
5100 (filestuff.o: ../common/filestuff.c): Remove.
5101 (agent.o: ../common/agent.c): Remove.
5102 (errors.o: ../common/errors.c): Remove.
5103 (environ.o: ../common/environ.c): Remove.
5104 (common-debug.o: ../common/common-debug.c): Remove.
5105 (cleanups.o: ../common/cleanups.c): Remove.
5106 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5107 (fileio.o: ../common/fileio.c): Remove.
5108 (common-regcache.o: ../common/common-regcache.c): Remove.
5109 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5110 (new-op.o: ../common/new-op.c): Remove.
5111 (btrace-common.o: ../common/btrace-common.c): Remove.
5113 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5115 * Makefile.in (%.o: ../target/%.c): New rule.
5116 (waitstatus.o: ../target/waitstatus.c): Remove.
5118 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5121 (%.c: ../regformats/%.dat,
5122 (%.c: ../regformats/arm/%.dat,
5123 (%.c: ../regformats/i386/%.dat,
5124 (%.c: ../regformats/rs6000/%.dat): New rules.
5125 (aarch64.c): Remove.
5126 (reg-arm.c): Remove.
5127 (arm-with-iwmmxt.c): Remove.
5128 (arm-with-vfpv2.c): Remove.
5129 (arm-with-vfpv3.c): Remove.
5130 (arm-with-neon.c): Remove.
5131 (reg-bfin.c): Remove.
5132 (reg-cris.c): Remove.
5133 (reg-crisv32.c): Remove.
5135 (i386-linux.c): Remove.
5136 (i386-avx.c): Remove.
5137 (i386-avx-linux.c): Remove.
5138 (i386-avx-avx512.c): Remove.
5139 (i386-avx-avx512-linux.c): Remove.
5140 (i386-mpx.c): Remove.
5141 (i386-mpx-linux.c): Remove.
5142 (i386-avx-mpx-avx512-pku.c): Remove.
5143 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5144 (i386-avx-mpx.c): Remove.
5145 (i386-avx-mpx-linux.c): Remove.
5146 (i386-mmx.c): Remove.
5147 (i386-mmx-linux.c): Remove.
5148 (reg-ia64.c): Remove.
5149 (reg-m32r.c): Remove.
5150 (reg-m68k.c): Remove.
5152 (mips-linux.c): Remove.
5153 (mips-dsp-linux.c): Remove.
5154 (mips64-linux.c): Remove.
5155 (mips64-dsp-linux.c): Remove.
5156 (nios2-linux.c): Remove.
5157 (powerpc-32.c): Remove.
5158 (powerpc-32l.c): Remove.
5159 (powerpc-altivec32l.c): Remove.
5160 (powerpc-cell32l.c): Remove.
5161 (powerpc-vsx32l.c): Remove.
5162 (powerpc-isa205-32l.c): Remove.
5163 (powerpc-isa205-altivec32l.c): Remove.
5164 (powerpc-isa205-vsx32l.c): Remove.
5165 (powerpc-e500l.c): Remove.
5166 (powerpc-64l.c): Remove.
5167 (powerpc-altivec64l.c): Remove.
5168 (powerpc-cell64l.c): Remove.
5169 (powerpc-vsx64l.c): Remove.
5170 (powerpc-isa205-64l.c): Remove.
5171 (powerpc-isa205-altivec64l.c): Remove.
5172 (powerpc-isa205-vsx64l.c): Remove.
5173 (s390-linux32.c): Remove.
5174 (s390-linux32v1.c): Remove.
5175 (s390-linux32v2.c): Remove.
5176 (s390-linux64.c): Remove.
5177 (s390-linux64v1.c): Remove.
5178 (s390-linux64v2.c): Remove.
5179 (s390-te-linux64.c): Remove.
5180 (s390-vx-linux64.c): Remove.
5181 (s390-tevx-linux64.c): Remove.
5182 (s390x-linux64.c): Remove.
5183 (s390x-linux64v1.c): Remove.
5184 (s390x-linux64v2.c): Remove.
5185 (s390x-te-linux64.c): Remove.
5186 (s390x-vx-linux64.c): Remove.
5187 (s390x-tevx-linux64.c): Remove.
5188 (tic6x-c64xp-linux.c): Remove.
5189 (tic6x-c64x-linux.c): Remove.
5190 (tic6x-c62x-linux.c): Remove.
5192 (reg-sparc64.c): Remove.
5193 (reg-spu.c): Remove.
5195 (amd64-linux.c): Remove.
5196 (amd64-avx.c): Remove.
5197 (amd64-avx-linux.c): Remove.
5198 (amd64-avx-avx512.c): Remove.
5199 (amd64-avx-avx512-linux.c): Remove.
5200 (amd64-mpx.c): Remove.
5201 (amd64-mpx-linux.c): Remove.
5202 (amd64-avx-mpx-avx512-pku.c): Remove.
5203 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5204 (amd64-avx-mpx.c): Remove.
5205 (amd64-avx-mpx-linux.c): Remove.
5207 (x32-linux.c): Remove.
5208 (x32-avx.c): Remove.
5209 (x32-avx-linux.c): Remove.
5210 (x32-avx-avx512.c): Remove.
5211 (x32-avx-avx512-linux.c): Remove.
5212 (reg-xtensa.c): Remove.
5213 (reg-tilegx.c): Remove.
5214 (reg-tilegx32.c): Remove.
5216 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5218 * Makefile.in (SFILES): Add "common/environ.c".
5219 (OBJS): Add "common/environ.h".
5221 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5223 * configure.ac: Check if the fs_base and gs_base members of
5224 `struct user_regs_struct' exist.
5225 * config.in: Regenerated.
5226 * configure: Likewise.
5228 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5230 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5232 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5233 (get_next_pcs_syscall_next_pc): Likewise.
5235 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5237 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5238 * nto-x86-low.c: Likewise.
5240 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5242 * Makefile.in: Include disable-implicit-rules.mk.
5244 2016-11-23 Pedro Alves <palves@redhat.com>
5246 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5247 (debug_vprintf): Use std::chrono::steady_clock instead of
5248 gettimeofday. Use '.' instead of ':'.
5249 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5250 (get_timestamp): Use std::chrono::steady_clock instead of
5253 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5255 * Makefile.in: Fix whitespace formatting.
5257 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5259 * Makefile.in (SFILES, OBS): Flatten list and order
5262 2016-11-23 Pedro Alves <palves@redhat.com>
5264 * event-loop.c (handle_file_event): Use warning.
5265 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5266 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5269 2016-11-23 Pedro Alves <palves@redhat.com>
5271 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5273 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5274 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5275 debug_printf and debug_flush for debug output.
5276 * server.c (handle_general_set): Likewise.
5277 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5280 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5282 * Makefile.in (.c.o): Replace rule with ...
5283 (%.o: %.c): ... this one.
5285 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5287 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5288 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5290 * configure.ac: Remove checks for the make program.
5291 * configure: Re-generate.
5293 2016-10-28 Pedro Alves <palves@redhat.com>
5295 * Makefile.in (CXX_DIALECT): Get from configure.
5296 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5297 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5298 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5299 * config.in: Regenerate.
5300 * configure: Regenerate.
5302 2016-10-27 Yao Qi <yao.qi@linaro.org>
5304 * linux-low.c (linux_supports_range_stepping): Return true if
5305 can_software_single_step return true.
5307 2016-10-27 Yao Qi <yao.qi@linaro.org>
5309 * inferiors.c (find_inferior_in_random): New function.
5310 * inferiors.h (find_inferior_in_random): Declare.
5311 * linux-low.c (linux_wait_for_event_filtered): Call
5312 find_inferior_in_random instead of find_inferior.
5314 2016-10-27 Yao Qi <yao.qi@linaro.org>
5316 * linux-low.c (linux_wait_1): If single-step breakpoints are
5317 inserted, remove them.
5319 2016-10-26 Pedro Alves <palves@redhat.com>
5321 * linux-low.c (handle_extended_wait): Link parent/child fork
5323 (linux_wait_1): Unlink them.
5324 (linux_set_resume_request): Ignore resume requests for
5325 already-resumed and unhandled fork child threads.
5326 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5327 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5329 (handle_v_requests) <vCont>: Don't call require_running.
5330 * server.h (in_queued_stop_replies): New declaration.
5332 2016-10-24 Yao Qi <yao.qi@linaro.org>
5335 * linux-aarch64-low.c (append_insns): Cast the return value to
5338 2016-10-10 Yao Qi <yao.qi@linaro.org>
5340 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5342 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5344 * target.c (target_supports_multi_process): New function, moved
5346 * target.h (target_supports_multi_process): ... here. Remove
5349 2016-10-05 Tom Tromey <tom@tromey.com>
5352 * tracepoint.c (handle_tracepoint_bkpts): Check
5353 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5355 2016-10-05 Yao Qi <yao.qi@linaro.org>
5357 * configure.srv: Update the path of arm-*.xml files.
5359 2016-10-05 Terry Guo <terry.guo@arm.com>
5360 Yao Qi <yao.qi@linaro.org>
5362 * Makefile.in: Adjust the path of rules.
5363 * configure.srv: Update the path of xml files.
5364 * regformats/arm-with-iwmmxt.dat: Regenerated.
5365 * regformats/arm-with-neon.dat: Likewise.
5366 * regformats/arm-with-vfpv2.dat: Likewise.
5367 * regformats/arm-with-vfpv3.dat Likewise.
5369 2016-09-30 Yao Qi <yao.qi@linaro.org>
5372 * target.c (target_stop_and_wait): Don't call
5373 target_continue_no_signal, use resume_stop instead.
5375 2016-09-26 Yao Qi <yao.qi@linaro.org>
5377 * linux-low.c (linux_wait_1): Call debug_exit.
5379 2016-09-23 Pedro Alves <palves@redhat.com>
5381 * Makefile.in (SFILES): Add common/new-op.c.
5382 (OBS): Add common/new-op.o.
5383 (new-op.o): New rule.
5385 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5387 * .gitinore: Ignore more files.
5389 2016-09-21 Yao Qi <yao.qi@linaro.org>
5391 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5394 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5396 * server.c (start_inferior): Call target_mourn_inferior instead of
5397 mourn_inferior; pass ptid_t argument to it.
5399 (handle_target_event): Likewise.
5400 * target.c (target_mourn_inferior): New function.
5401 * target.h (mourn_inferior): Delete macro.
5403 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5405 * linux-low.c (lwp_is_stepping): New function.
5407 2016-09-06 Carl Love <cel@us.ibm.com>
5409 * server.c (start_inferior): Fixed comment, requested comment change
5410 didn't get updated correctly. Removed reference to ptrace () call as
5411 it is only true on Linux systems.
5413 2016-09-06 Carl Love <cel@us.ibm.com>
5415 * server.c (start_inferior): Do not call
5416 function target_post_create_inferior () if the
5417 inferior process has already exited.
5419 2016-09-05 Pedro Alves <palves@redhat.com>
5421 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5422 (COMPILE.pre, CC_LD): Use CXX directly.
5423 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5424 * acinclude.m4: Don't include build-with-cxx.m4.
5425 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5426 * configure: Regenerate.
5428 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5431 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5432 call writing data to own_buf.
5434 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5436 * target.c (mywait): Call target_wait instead of
5438 (target_wait): New function.
5440 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5442 * server.c (start_inferior): New variable 'ptid'. Replace calls
5443 to the_target->resume by target_continue{,_no_signal}, depending
5445 * target.c (target_stop_and_wait): Call target_continue_no_signal
5446 instead of the_target->resume.
5447 (target_continue): New function.
5449 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5451 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5453 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5456 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5458 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5459 * linux-arm-low.c (ps_get_thread_area): Likewise.
5460 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5461 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5462 * linux-mips-low.c (ps_get_thread_area): Likewise.
5463 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5464 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5465 * linux-x86-low.c (ps_get_thread_area): Likewise.
5466 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5468 2016-08-19 Pedro Alves <palves@redhat.com>
5470 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5472 2016-08-19 Pedro Alves <palves@redhat.com>
5474 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5475 comment. Use memcpy instead of casting through unsigned long.
5477 2016-08-19 Pedro Alves <palves@redhat.com>
5479 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5480 allocating around 0x80000000.
5482 2016-08-19 Pedro Alves <palves@redhat.com>
5485 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5486 (x32-avx512-linux-ipa.o): New rules.
5487 * configure.ac (x86_64-*-linux*): New x32 check.
5488 * configure.srv (ipa_x32_linux_regobj): New.
5489 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5490 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5492 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5494 * configure: Regenerate.
5496 2016-08-09 Pedro Alves <palves@redhat.com>
5499 * Makefile.in (OBS): Add signals-state-save-restore.o.
5500 (signals-state-save-restore.o): New rule.
5501 * config.in: Regenerate.
5502 * configure: Regenerate.
5503 * linux-low.c: Include "signals-state-save-restore.h".
5504 (linux_create_inferior): Call
5505 restore_original_signals_state.
5506 * server.c: Include "dispositions-save-restore.h".
5507 (captured_main): Call save_original_signals_state.
5509 2016-08-05 Pedro Alves <palves@redhat.com>
5511 * configure: Regenerate.
5513 2016-08-04 Yao Qi <yao.qi@linaro.org>
5515 * linux-low.c (regsets_fetch_inferior_registers): Check
5516 errno is ESRCH or not.
5518 2016-08-02 Yao Qi <yao.qi@linaro.org>
5520 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5521 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5522 (thread_db_load_search): Update.
5523 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5524 td_ta_set_event and td_ta_event_getmsg.
5526 2016-07-26 Pedro Alves <palves@redhat.com>
5529 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5530 of unsigned long for 64-bit registers and use uint32_t instead of
5531 unsigned int for 32-bit registers.
5533 2016-07-26 Pedro Alves <palves@redhat.com>
5535 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5538 2016-07-21 Tom Tromey <tom@tromey.com>
5540 * configure: Rebuild.
5542 2016-07-21 Yao Qi <yao.qi@linaro.org>
5544 * mem-break.c (find_gdb_breakpoint): Cast bp to
5545 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5547 2016-07-21 Yao Qi <yao.qi@linaro.org>
5549 * server.c (handle_v_requests): Support s and S actions
5550 if target_supports_software_single_step return true.
5552 2016-07-21 Yao Qi <yao.qi@linaro.org>
5554 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5555 is resume_step, call maybe_hw_step.
5556 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5558 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5560 (proceed_one_lwp): If resume request is resume_step, install
5561 reinsert breakpoints and call maybe_hw_step.
5563 2016-07-21 Yao Qi <yao.qi@linaro.org>
5565 * linux-low.c (proceed_one_lwp): Declare.
5566 (linux_resume_one_thread): Remove local variable 'step'.
5567 Lift code enqueue signal. Call proceed_one_lwp instead of
5568 linux_resume_one_lwp.
5570 2016-07-21 Yao Qi <yao.qi@linaro.org>
5572 * linux-low.c (linux_resume_one_thread): Call
5573 enqueue_pending_signal.
5575 2016-07-21 Yao Qi <yao.qi@linaro.org>
5577 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5578 * inferiors.c (do_restore_current_thread_cleanup): New function.
5579 (make_cleanup_restore_current_thread): Likewise.
5580 * linux-low.c (install_software_single_step_breakpoints): Call
5581 make_cleanup_restore_current_thread. Switch current_thread to
5584 2016-07-21 Yao Qi <yao.qi@linaro.org>
5586 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5587 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5588 (clone_one_breakpoint): Likewise.
5589 (delete_reinsert_breakpoints): Change parameter to thread.
5591 (has_reinsert_breakpoints): Likewise.
5592 (uninsert_reinsert_breakpoints): Likewise.
5593 (reinsert_reinsert_breakpoints): Likewise.
5594 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5595 (delete_reinsert_breakpoints): Likewise.
5596 (reinsert_reinsert_breakpoints): Likewise.
5597 (uninsert_reinsert_breakpoints): Likewise.
5598 (has_reinsert_breakpoints): Likewise.
5600 2016-07-21 Yao Qi <yao.qi@linaro.org>
5602 * inferiors.c (get_thread_process): Make parameter const.
5603 * inferiors.h (get_thread_process): Update declaration.
5604 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5605 Add new parameters child_thread and parent_thread. Callers
5607 * mem-break.h (clone_all_breakpoints): Update declaration.
5609 2016-07-21 Yao Qi <yao.qi@linaro.org>
5611 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5612 <command_list, handler>: Remove.
5613 (struct gdb_breakpoint): New.
5614 (struct other_breakpoint): New.
5615 (struct reinsert_breakpoint): New.
5616 (is_gdb_breakpoint): New function.
5617 (any_persistent_commands): Update command_list if
5618 is_gdb_breakpoint returns true.
5619 (set_breakpoint): Create breakpoints according to their types.
5620 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5621 (set_gdb_breakpoint_1): Likewise.
5622 (set_gdb_breakpoint): Likewise.
5623 (clear_breakpoint_conditions): Change parameter type to
5624 'struct gdb_breakpoint *'.
5625 (clear_breakpoint_commands): Likewise.
5626 (clear_breakpoint_conditions_and_commands): Likewise.
5627 (add_condition_to_breakpoint): Likewise.
5628 (add_breakpoint_condition): Likewise.
5629 (add_commands_to_breakpoint): Likewise.
5630 (check_breakpoints): Check other_breakpoint.
5631 (clone_one_breakpoint): Clone breakpopint according to its type.
5632 * mem-break.h (struct gdb_breakpoint): Declare.
5633 (set_gdb_breakpoint): Update declaration.
5634 (clear_breakpoint_conditions_and_commands): Likewise.
5635 (add_breakpoint_condition): Likewise.
5636 (add_breakpoint_commands): Likewise.
5637 * server.c (process_point_options): Change parameter type to
5638 'struct gdb_breakpoint *'.
5640 2016-07-21 Yao Qi <yao.qi@linaro.org>
5642 * mem-break.c (set_breakpoint_at): Rename it to ...
5643 (set_breakpoint_type_at): ... it.
5644 (set_breakpoint_at): Call set_breakpoint_type_at.
5645 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5646 * mem-break.h (set_breakpoint_at): Update comments.
5648 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5650 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5652 (nios2_store_gregset): Likewise.
5654 2016-07-01 Pedro Alves <palves@redhat.com>
5655 Antoine Tremblay <antoine.tremblay@ericsson.com>
5657 * linux-low.c: Change interface to take the target lwp_info
5658 pointer directly and return void. Handle detaching from a zombie
5660 (linux_detach_lwp_callback): New function.
5661 (linux_detach): Detach from the leader thread after detaching from
5664 2016-06-28 Yao Qi <yao.qi@linaro.org>
5666 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5667 for variable new_offset.
5668 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5669 (aarch64_ftrace_insn_reloc_cb): Likewise.
5670 (aarch64_ftrace_insn_reloc_tb): Likewise.
5671 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5672 PRIx64 instead of PRIx32.
5674 2016-06-28 Yao Qi <yao.qi@linaro.org>
5676 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5677 (the_low_target): Install arm_get_syscall_trapinfo.
5679 2016-06-28 Yao Qi <yao.qi@linaro.org>
5681 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5683 (the_low_target): Install aarch64_get_syscall_trapinfo.
5685 2016-06-28 Yao Qi <yao.qi@linaro.org>
5687 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5689 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5690 Remove parameter sysno.
5691 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5694 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5696 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5697 (s390_emit_ne_goto): Likewise.
5698 (s390_emit_lt_goto): Likewise.
5699 (s390_emit_le_goto): Likewise.
5700 (s390_emit_gt_goto): Likewise.
5701 (s390_emit_ge_goto): Likewise.
5702 (s390x_emit_eq_goto): Likewise.
5703 (s390x_emit_ne_goto): Likewise.
5704 (s390x_emit_lt_goto): Likewise.
5705 (s390x_emit_le_goto): Likewise.
5706 (s390x_emit_gt_goto): Likewise.
5707 (s390x_emit_ge_goto): Likewise.
5708 (s390_emit_ops_impl): Mark variable static.
5709 (s390x_emit_ops): Likewise.
5711 2016-06-17 Yao Qi <yao.qi@linaro.org>
5713 * linux-low.c (handle_extended_wait): Call
5714 uninsert_reinsert_breakpoints for the parent process. Remove
5715 reinsert breakpoints from the child process. Reinsert them to
5716 the parent process when vfork is done.
5717 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5718 (reinsert_reinsert_breakpoints): New function.
5719 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5720 (reinsert_reinsert_breakpoints): Declare.
5722 2016-06-17 Yao Qi <yao.qi@linaro.org>
5724 * linux-low.c (handle_extended_wait): If the parent is doing
5725 step-over, remove the reinsert breakpoints from the forked child.
5727 2016-06-17 Yao Qi <yao.qi@linaro.org>
5729 * linux-low.c (unsuspend_all_lwps): Declare.
5730 (linux_low_filter_event): If thread exited, call finish_step_over.
5731 If step-over is finished, unsuspend other threads.
5733 2016-06-17 Yao Qi <yao.qi@linaro.org>
5735 * linux-low.c (linux_resume_one_lwp_throw): Assert
5736 has_reinsert_breakpoints returns false.
5737 * mem-break.c (delete_disabled_breakpoints): Assert
5738 bp type isn't reinsert_breakpoint.
5740 2016-06-17 Yao Qi <yao.qi@linaro.org>
5742 * linux-low.c (maybe_hw_step): New function.
5743 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5744 (finish_step_over): Switch current_thread to lwp temporarily,
5745 and assert has_reinsert_breakpoints returns true.
5746 (proceed_one_lwp): Call maybe_hw_step.
5747 * mem-break.c (has_reinsert_breakpoints): New function.
5748 * mem-break.h (has_reinsert_breakpoints): Declare.
5750 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5752 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5754 2016-05-17 Yao Qi <yao.qi@linaro.org>
5756 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5757 instead of find_inferior.
5759 2016-05-05 Yao Qi <yao.qi@linaro.org>
5761 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5762 Initialize res to zero.
5764 2016-05-05 Yao Qi <yao.qi@linaro.org>
5766 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5769 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5771 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5772 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5773 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5775 2016-04-28 Par Olsson <par.olsson@windriver.com>
5776 Simon Marchi <simon.marchi@ericsson.com>
5778 * tracepoint.c (write_inferior_int8): New function.
5779 (cmd_qtenable_disable): Write enable flag using
5780 write_inferior_int8.
5782 2016-04-25 Yao Qi <yao.qi@linaro.org>
5784 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5785 (need_step_over_p): Return zero if the LWP has pending signals
5786 can be delivered on software single step target.
5788 2016-04-25 Yao Qi <yao.qi@linaro.org>
5790 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5791 return instead of error.
5793 2016-04-22 Yao Qi <yao.qi@linaro.org>
5795 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5798 2016-04-22 Yao Qi <yao.qi@linaro.org>
5800 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5801 signal when stepping over breakpoint with software single
5804 2016-04-21 Pedro Alves <palves@redhat.com>
5806 * linux-s390-low.c (s390_collect_ptrace_register)
5807 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5809 (s390_check_regset): Use void * instead of gdb_byte *.
5811 2016-04-20 Pedro Alves <palves@redhat.com>
5813 * configure: Renegerate.
5815 2016-04-20 Yao Qi <yao.qi@linaro.org>
5817 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5818 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5820 (arm_store_gregset): Likewise.
5822 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5824 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5825 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5826 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5827 (amd64-avx-mpx-linux.c): New rules.
5828 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5829 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5830 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5831 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5832 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5833 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5834 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5835 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5836 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5837 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5838 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5839 * linux-x86-low.c (x86_linux_read_description): Add case for
5840 X86_XSTATE_AVX_MPX_MASK.
5841 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5842 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5843 init_registers_i386_avx_mpx_linux.
5844 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5845 (initialize_low_tracepoint): Call
5846 init_registers_i386_avx_mpx_linux.
5847 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5848 (initialize_low_tracepoint): Call
5849 init_registers_amd64_avx_mpx_linux.
5850 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5851 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5852 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5855 2016-04-18 Pedro Alves <palves@redhat.com>
5857 * configure: Regenerate.
5859 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5861 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5862 (aarch64_emit_sub): Likewise.
5864 2016-04-12 Pedro Alves <palves@redhat.com>
5866 * utils.c (prepare_to_throw_exception): Delete.
5868 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5870 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5872 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5874 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5876 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5878 * linux-aarch64-ipa.c: Add <elf.h> include.
5879 * linux-ppc-ipa.c: Add <elf.h> include.
5880 * linux-s390-ipa.c: Add <elf.h> include.
5882 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5884 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5885 (get_raw_reg_ptr): Likewise.
5886 (get_trace_state_variable_value_ptr): Likewise.
5887 (set_trace_state_variable_value_ptr): Likewise.
5888 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5891 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5892 Marcin Kościelnicki <koriakin@0x04.net>
5895 * linux-ppc-low.c (emit_insns): New function.
5896 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5897 (ppc_emit_prologue): New function.
5898 (ppc_emit_epilogue): New function.
5899 (ppc_emit_add): New function.
5900 (ppc_emit_sub): New function.
5901 (ppc_emit_mul): New function.
5902 (ppc_emit_lsh): New function.
5903 (ppc_emit_rsh_signed): New function.
5904 (ppc_emit_rsh_unsigned): New function.
5905 (ppc_emit_ext): New function.
5906 (ppc_emit_zero_ext): New function.
5907 (ppc_emit_log_not): New function.
5908 (ppc_emit_bit_and): New function.
5909 (ppc_emit_bit_or): New function.
5910 (ppc_emit_bit_xor): New function.
5911 (ppc_emit_bit_not): New function.
5912 (ppc_emit_equal): New function.
5913 (ppc_emit_less_signed): New function.
5914 (ppc_emit_less_unsigned): New function.
5915 (ppc_emit_ref): New function.
5916 (ppc_emit_const): New function.
5917 (ppc_emit_reg): New function.
5918 (ppc_emit_pop): New function.
5919 (ppc_emit_stack_flush): New function.
5920 (ppc_emit_swap): New function.
5921 (ppc_emit_stack_adjust): New function.
5922 (ppc_emit_call): New function.
5923 (ppc_emit_int_call_1): New function.
5924 (ppc_emit_void_call_2): New function.
5925 (ppc_emit_if_goto): New function.
5926 (ppc_emit_goto): New function.
5927 (ppc_emit_eq_goto): New function.
5928 (ppc_emit_ne_goto): New function.
5929 (ppc_emit_lt_goto): New function.
5930 (ppc_emit_le_goto): New function.
5931 (ppc_emit_gt_goto): New function.
5932 (ppc_emit_ge_goto): New function.
5933 (ppc_write_goto_address): New function.
5934 (ppc_emit_ops_impl): New static variable.
5935 (ppc64v1_emit_prologue): New function.
5936 (ppc64v2_emit_prologue): New function.
5937 (ppc64_emit_epilogue): New function.
5938 (ppc64_emit_add): New function.
5939 (ppc64_emit_sub): New function.
5940 (ppc64_emit_mul): New function.
5941 (ppc64_emit_lsh): New function.
5942 (ppc64_emit_rsh_signed): New function.
5943 (ppc64_emit_rsh_unsigned): New function.
5944 (ppc64_emit_ext): New function.
5945 (ppc64_emit_zero_ext): New function.
5946 (ppc64_emit_log_not): New function.
5947 (ppc64_emit_bit_and): New function.
5948 (ppc64_emit_bit_or): New function.
5949 (ppc64_emit_bit_xor): New function.
5950 (ppc64_emit_bit_not): New function.
5951 (ppc64_emit_equal): New function.
5952 (ppc64_emit_less_signed): New function.
5953 (ppc64_emit_less_unsigned): New function.
5954 (ppc64_emit_ref): New function.
5955 (ppc64_emit_const): New function.
5956 (ppc64v1_emit_reg): New function.
5957 (ppc64v2_emit_reg): New function.
5958 (ppc64_emit_pop): New function.
5959 (ppc64_emit_stack_flush): New function.
5960 (ppc64_emit_swap): New function.
5961 (ppc64v1_emit_call): New function.
5962 (ppc64v2_emit_call): New function.
5963 (ppc64v1_emit_int_call_1): New function.
5964 (ppc64v2_emit_int_call_1): New function.
5965 (ppc64v1_emit_void_call_2): New function.
5966 (ppc64v2_emit_void_call_2): New function.
5967 (ppc64_emit_if_goto): New function.
5968 (ppc64_emit_eq_goto): New function.
5969 (ppc64_emit_ne_goto): New function.
5970 (ppc64_emit_lt_goto): New function.
5971 (ppc64_emit_le_goto): New function.
5972 (ppc64_emit_gt_goto): New function.
5973 (ppc64_emit_ge_goto): New function.
5974 (ppc64v1_emit_ops_impl): New static variable.
5975 (ppc64v2_emit_ops_impl): New static variable.
5976 (ppc_emit_ops): New function.
5977 (linux_low_target): Wire in ppc_emit_ops.
5979 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5980 Marcin Kościelnicki <koriakin@0x04.net>
5983 * Makefile.in: Add powerpc-*-ipa.o
5984 * configure.srv: Add ipa_obj for powerpc*-linux.
5985 * linux-ppc-ipa.c: New file.
5986 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5988 (PPC_FIELD): New macro.
5989 (PPC_SEXT): New macro.
5990 (PPC_OP6): New macro.
5991 (PPC_BO): New macro.
5992 (PPC_LI): New macro.
5993 (PPC_BD): New macro.
5994 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5995 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5996 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5997 (ppc_get_thread_area): New function.
5998 (is_elfv2_inferior): New function.
5999 (gen_ds_form): New function.
6000 (GEN_STD): New macro.
6001 (GEN_STDU): New macro.
6002 (GEN_LD): New macro.
6003 (GEN_LDU): New macro.
6004 (gen_d_form): New function.
6005 (GEN_ADDI): New macro.
6006 (GEN_ADDIS): New macro.
6007 (GEN_LI): New macro.
6008 (GEN_LIS): New macro.
6009 (GEN_ORI): New macro.
6010 (GEN_ORIS): New macro.
6011 (GEN_LWZ): New macro.
6012 (GEN_STW): New macro.
6013 (GEN_STWU): New macro.
6014 (gen_xfx_form): New function.
6015 (GEN_MFSPR): New macro.
6016 (GEN_MTSPR): New macro.
6017 (GEN_MFCR): New macro.
6018 (GEN_MTCR): New macro.
6019 (GEN_SYNC): New macro.
6020 (GEN_LWSYNC): New macro.
6021 (gen_x_form): New function.
6022 (GEN_OR): New macro.
6023 (GEN_MR): New macro.
6024 (GEN_LWARX): New macro.
6025 (GEN_STWCX): New macro.
6026 (GEN_CMPW): New macro.
6027 (gen_md_form): New function.
6028 (GEN_RLDICL): New macro.
6029 (GEN_RLDICR): New macro.
6030 (gen_i_form): New function.
6032 (GEN_BL): New macro.
6033 (gen_b_form): New function.
6034 (GEN_BNE): New macro.
6035 (GEN_LOAD): New macro.
6036 (GEN_STORE): New macro.
6037 (gen_limm): New function.
6038 (gen_atomic_xchg): New function.
6039 (gen_call): New function.
6040 (ppc_relocate_instruction): New function.
6041 (ppc_install_fast_tracepoint_jump_pad): New function.
6042 (ppc_get_min_fast_tracepoint_insn_len): New function.
6043 (ppc_get_ipa_tdesc_idx): New function.
6044 (the_low_target): Wire in the new functions.
6045 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6047 * linux-ppc-tdesc.h: New file.
6049 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6051 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6052 (alloc_jump_pad_buffer): New function.
6053 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6054 (alloc_jump_pad_buffer): New function.
6055 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6056 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6057 (alloc_jump_pad_buffer): New function.
6058 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6059 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6060 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6061 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6063 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6065 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6066 * linux-amd64-ipa.c: Likewise.
6067 * linux-i386-ipa.c: Likewise.
6068 * linux-s390-ipa.c: Likewise.
6069 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6070 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6071 set_trace_state_variable_value_ptr.
6072 (struct ipa_sym_addresses): Likewise.
6073 (symbol_list): Likewise.
6074 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6075 accessing gdb_collect directly.
6076 (gdb_collect_ptr_type): New typedef.
6077 (get_raw_reg_ptr_type): New typedef.
6078 (get_trace_state_variable_value_ptr_type): New typedef.
6079 (set_trace_state_variable_value_ptr_type): New typedef.
6080 (gdb_collect_ptr): New global.
6081 (get_raw_reg_ptr): New global.
6082 (get_trace_state_variable_value_ptr): New global.
6083 (set_trace_state_variable_value_ptr): New global.
6084 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6085 accessing get_raw_reg directly.
6086 (get_get_tsv_func_addr): Likewise for
6087 get_trace_state_variable_value_ptr.
6088 (get_set_tsv_func_addr): Likewise for
6089 set_trace_state_variable_value_ptr.
6090 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6092 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6094 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6096 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6098 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6100 (relocate_instruction): Remove own_buf.
6101 * server.c (own_buf): Make global.
6102 (handle_v_requests): Make global.
6103 * server.h (own_buf): New declaration.
6104 (handle_v_requests): New prototype.
6106 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6109 * linux-s390-low.c (add_insns): New function.
6110 (s390_emit_prologue): New function.
6111 (s390_emit_epilogue): New function.
6112 (s390_emit_add): New function.
6113 (s390_emit_sub): New function.
6114 (s390_emit_mul): New function.
6115 (s390_emit_lsh): New function.
6116 (s390_emit_rsh_signed): New function.
6117 (s390_emit_rsh_unsigned): New function.
6118 (s390_emit_ext): New function.
6119 (s390_emit_log_not): New function.
6120 (s390_emit_bit_and): New function.
6121 (s390_emit_bit_or): New function.
6122 (s390_emit_bit_xor): New function.
6123 (s390_emit_bit_not): New function.
6124 (s390_emit_equal): New function.
6125 (s390_emit_less_signed): New function.
6126 (s390_emit_less_unsigned): New function.
6127 (s390_emit_ref): New function.
6128 (s390_emit_if_goto): New function.
6129 (s390_emit_goto): New function.
6130 (s390_write_goto_address): New function.
6131 (s390_emit_litpool): New function.
6132 (s390_emit_const): New function.
6133 (s390_emit_call): New function.
6134 (s390_emit_reg): New function.
6135 (s390_emit_pop): New function.
6136 (s390_emit_stack_flush): New function.
6137 (s390_emit_zero_ext): New function.
6138 (s390_emit_swap): New function.
6139 (s390_emit_stack_adjust): New function.
6140 (s390_emit_set_r2): New function.
6141 (s390_emit_int_call_1): New function.
6142 (s390_emit_void_call_2): New function.
6143 (s390_emit_eq_goto): New function.
6144 (s390_emit_ne_goto): New function.
6145 (s390_emit_lt_goto): New function.
6146 (s390_emit_le_goto): New function.
6147 (s390_emit_gt_goto): New function.
6148 (s390_emit_ge_goto): New function.
6149 (s390x_emit_prologue): New function.
6150 (s390x_emit_epilogue): New function.
6151 (s390x_emit_add): New function.
6152 (s390x_emit_sub): New function.
6153 (s390x_emit_mul): New function.
6154 (s390x_emit_lsh): New function.
6155 (s390x_emit_rsh_signed): New function.
6156 (s390x_emit_rsh_unsigned): New function.
6157 (s390x_emit_ext): New function.
6158 (s390x_emit_log_not): New function.
6159 (s390x_emit_bit_and): New function.
6160 (s390x_emit_bit_or): New function.
6161 (s390x_emit_bit_xor): New function.
6162 (s390x_emit_bit_not): New function.
6163 (s390x_emit_equal): New function.
6164 (s390x_emit_less_signed): New function.
6165 (s390x_emit_less_unsigned): New function.
6166 (s390x_emit_ref): New function.
6167 (s390x_emit_if_goto): New function.
6168 (s390x_emit_const): New function.
6169 (s390x_emit_call): New function.
6170 (s390x_emit_reg): New function.
6171 (s390x_emit_pop): New function.
6172 (s390x_emit_stack_flush): New function.
6173 (s390x_emit_zero_ext): New function.
6174 (s390x_emit_swap): New function.
6175 (s390x_emit_stack_adjust): New function.
6176 (s390x_emit_int_call_1): New function.
6177 (s390x_emit_void_call_2): New function.
6178 (s390x_emit_eq_goto): New function.
6179 (s390x_emit_ne_goto): New function.
6180 (s390x_emit_lt_goto): New function.
6181 (s390x_emit_le_goto): New function.
6182 (s390x_emit_gt_goto): New function.
6183 (s390x_emit_ge_goto): New function.
6184 (s390_emit_ops): New function.
6185 (struct linux_target_ops): Fill in emit_ops hook.
6187 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6190 * Makefile.in: Add s390 IPA files.
6191 * configure.srv: Build IPA for s390.
6192 * linux-s390-ipa.c: New file.
6193 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6194 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6195 (tdesc_s390_linux32): Likewise.
6196 (init_registers_s390_linux32v1): Likewise.
6197 (tdesc_s390_linux32v1): Likewise.
6198 (init_registers_s390_linux32v2): Likewise.
6199 (tdesc_s390_linux32v2): Likewise.
6200 (init_registers_s390_linux64): Likewise.
6201 (tdesc_s390_linux64): Likewise.
6202 (init_registers_s390_linux64v1): Likewise.
6203 (tdesc_s390_linux64v1): Likewise.
6204 (init_registers_s390_linux64v2): Likewise.
6205 (tdesc_s390_linux64v2): Likewise.
6206 (init_registers_s390_te_linux64): Likewise.
6207 (tdesc_s390_te_linux64): Likewise.
6208 (init_registers_s390_vx_linux64): Likewise.
6209 (tdesc_s390_vx_linux64): Likewise.
6210 (init_registers_s390_tevx_linux64): Likewise.
6211 (tdesc_s390_tevx_linux64): Likewise.
6212 (init_registers_s390x_linux64): Likewise.
6213 (tdesc_s390x_linux64): Likewise.
6214 (init_registers_s390x_linux64v1): Likewise.
6215 (tdesc_s390x_linux64v1): Likewise.
6216 (init_registers_s390x_linux64v2): Likewise.
6217 (tdesc_s390x_linux64v2): Likewise.
6218 (init_registers_s390x_te_linux64): Likewise.
6219 (tdesc_s390x_te_linux64): Likewise.
6220 (init_registers_s390x_vx_linux64): Likewise.
6221 (tdesc_s390x_vx_linux64): Likewise.
6222 (init_registers_s390x_tevx_linux64): Likewise.
6223 (tdesc_s390x_tevx_linux64): Likewise.
6224 (have_hwcap_s390_vx): New static variable.
6225 (s390_arch_setup): Fill have_hwcap_s390_vx.
6226 (s390_get_thread_area): New function.
6227 (s390_ft_entry_gpr_esa): New const.
6228 (s390_ft_entry_gpr_zarch): New const.
6229 (s390_ft_entry_misc): New const.
6230 (s390_ft_entry_fr): New const.
6231 (s390_ft_entry_vr): New const.
6232 (s390_ft_main_31): New const.
6233 (s390_ft_main_64): New const.
6234 (s390_ft_exit_fr): New const.
6235 (s390_ft_exit_vr): New const.
6236 (s390_ft_exit_misc): New const.
6237 (s390_ft_exit_gpr_esa): New const.
6238 (s390_ft_exit_gpr_zarch): New const.
6239 (append_insns): New function.
6240 (s390_relocate_instruction): New function.
6241 (s390_install_fast_tracepoint_jump_pad): New function.
6242 (s390_get_min_fast_tracepoint_insn_len): New function.
6243 (s390_get_ipa_tdesc_idx): New function.
6244 (struct linux_target_ops): Wire in the above functions.
6245 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6246 * linux-s390-tdesc.h: New file.
6248 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6250 * linux-s390-low.c (s390_supports_tracepoints): New function.
6251 (struct linux_target_ops): Fill supports_tracepoints hook.
6253 2016-03-18 Yao Qi <yao.qi@linaro.org>
6255 * linux-low.c (lwp_signal_can_be_delivered): New function.
6256 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6258 2016-03-18 Yao Qi <yao.qi@linaro.org>
6260 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6261 0 if signal is enqueued. Remove 'signal' from one debugging
6262 message. Move one debugging message to some lines below.
6263 Remove code setting 'signal' to 0.
6265 2016-03-18 Yao Qi <yao.qi@linaro.org>
6267 * linux-low.c (linux_low_filter_event): Remove redundant
6268 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6270 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6272 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6273 (struct linux_target_ops): Wire in the above.
6275 2016-03-03 Yao Qi <yao.qi@linaro.org>
6277 * linux-low.c: Update comments to start_step_over.
6279 2016-03-03 Yao Qi <yao.qi@linaro.org>
6282 * linux-low.c (handle_extended_wait): Set child suspended
6283 if event_lwp->bp_reinsert isn't zero.
6285 2016-03-02 Yao Qi <yao.qi@linaro.org>
6287 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6288 enqueue_pending_signal.
6290 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6292 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6295 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6297 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6298 (s390_regmap_3264) [!__s390x__]: New global.
6299 (s390_collect_ptrace_register): Skip map entries containing -1.
6300 (s390_supply_ptrace_register): Ditto.
6301 (s390_fill_gprs_high): New function.
6302 (s390_store_gprs_high): New function.
6303 (s390_regsets): Add NT_S390_HIGH_GPRS.
6304 (s390_get_hwcap): Enable on 31-bit.
6305 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6306 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6307 Detect NT_S390_HIGH_GPRS.
6308 (s390_usrregs_info_3264): Enable on 31-bit.
6309 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6310 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6312 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6315 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6316 * configure.srv: Ditto.
6317 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6318 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6319 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6320 (init_registers_amd64_linux): Remove prototype.
6321 (tdesc_amd64_linux): Remove declaration.
6322 (get_ipa_tdesc): New function.
6323 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6324 initialize remaining tdescs.
6325 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6326 (init_registers_i386_linux): Remove prototype.
6327 (tdesc_i386_linux): Remove declaration.
6328 (get_ipa_tdesc): New function.
6329 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6330 initialize remaining tdescs.
6331 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6332 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6333 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6334 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6335 (x86_get_ipa_tdesc_idx): New function.
6336 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6337 * linux-x86-tdesc.h: New file.
6338 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6339 (target_get_ipa_tdesc_idx): New macro.
6340 * tracepoint.c (ipa_tdesc_idx): New macro.
6341 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6342 (symbol_list): Add ipa_tdesc_idx.
6343 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6344 (ipa_tdesc): Remove.
6345 (ipa_tdesc_idx): New variable.
6346 (get_context_regcache): Use get_ipa_tdesc.
6347 (gdb_collect): Ditto.
6349 * tracepoint.h (get_ipa_tdesc): New prototype.
6350 (ipa_tdesc): Remove.
6352 2016-02-24 Pedro Alves <palves@redhat.com>
6354 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6355 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6356 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6357 Factor out common code between the USE_SIGTRAP_SIGINFO and
6358 !USE_SIGTRAP_SIGINFO blocks.
6359 (linux_low_filter_event): Call save_stop_reason instead of
6360 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6362 (linux_wait_1): Update comments.
6364 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6366 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6367 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6368 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6369 ppc_insert_point, ppc_remove_point.
6371 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6373 * linux-s390-low.c (s390_supports_z_point_type): New function.
6374 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6376 2016-02-16 Yao Qi <yao.qi@linaro.org>
6378 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6379 PC. Get pc from regcache_read_pc.
6381 2016-02-12 Yao Qi <yao.qi@linaro.org>
6383 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6384 or linux_get_pc_32bit.
6385 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6387 2016-02-12 Yao Qi <yao.qi@linaro.org>
6389 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6390 arm_linux_get_next_pcs_fixup.
6392 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6394 * tracepoint.c (x_tracepoint_action_download): Change
6395 write_inferior_data_ptr to write_inferior_data_pointer.
6396 (cmd_qtstart): Likewise.
6397 (write_inferior_data_ptr): Remove.
6398 (download_agent_expr): Change write_inferior_data_ptr to
6399 write_inferior_data_pointer.
6400 (download_tracepoint_1): Likewise.
6401 (download_tracepoint): Likewise.
6402 (download_trace_state_variables): Likewise.
6404 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6405 Marcin Kościelnicki <koriakin@0x04.net>
6407 * tracepoint.c (struct tracepoint_action_ops): Remove.
6408 (struct tracepoint_action): Remove ops.
6409 (m_tracepoint_action_download, r_tracepoint_action_download)
6410 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6411 size and offset accordingly.
6412 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6413 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6414 (tracepoint_action_send, tracepoint_action_download): New functions.
6415 Helpers for trace action handlers.
6416 (add_tracepoint_action): Remove setup actions ops.
6417 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6419 2016-02-10 Yao Qi <yao.qi@linaro.org>
6421 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6423 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6425 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6427 * configure: Regenerate.
6429 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6431 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6432 void * to gdb_byte *.
6433 * linux-low.c (siginfo_fixup): Likewise.
6434 (linux_xfer_siginfo): Likewise.
6435 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6437 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6439 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6441 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6443 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6445 * linux-x86-low.c [__x86_64__]: Include
6446 "nat/amd64-linux-siginfo.h".
6447 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6448 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6449 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6450 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6451 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6452 (cpt_si_fd, si_timerid, si_overrun): Move from
6453 nat/amd64-linux-siginfo.c.
6454 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6456 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6458 * server.c (skip_to_semicolon): Remove.
6459 (process_point_options): Use strchrnul instead of
6462 2016-01-26 Yao Qi <yao.qi@linaro.org>
6464 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6465 * linux-low.c (install_software_single_step_breakpoints): Don't
6466 call regcache_read_pc.
6467 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6470 2016-01-26 Yao Qi <yao.qi@linaro.org>
6472 * linux-low.c (install_software_single_step_breakpoints): Call
6473 regcache_read_pc instead of get_pc.
6475 2016-01-26 Yao Qi <yao.qi@linaro.org>
6477 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6478 (unblock_async_io): Rename to ...
6479 (block_unblock_async_io): ... it. New function.
6480 (enable_async_io): Don't install SIGIO handler. Unblock it
6482 (disable_async_io): Don't ignore SIGIO. Block it instead.
6483 (initialize_async_io): Install SIGIO handler. Don't call
6486 2016-01-26 Yao Qi <yao.qi@linaro.org>
6488 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6489 first character is '\003', call *the_target->request_interrupt.
6491 2016-01-25 Yao Qi <yao.qi@linaro.org>
6493 * remote-utils.c (new_thread_notify): Remove.
6494 (dead_thread_notify): Likewise.
6495 * remote-utils.h (new_thread_notify): Remove declaration.
6496 (dead_thread_notify): Likewise.
6498 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6500 * gdb.trace/pending.exp: Fix expected message on continue.
6502 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6504 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6505 it works properly on big-endian machines where sizeof (CORE_ADDR)
6508 2016-01-21 Pedro Alves <palves@redhat.com>
6510 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6511 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6512 * configure: Regenerate.
6514 2016-01-21 Yao Qi <yao.qi@linaro.org>
6516 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6517 is_thumb and set it according to CPSR saved on the stack.
6518 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6519 arm_sigreturn_next_pc.
6521 2016-01-18 Yao Qi <yao.qi@linaro.org>
6523 * linux-low.c (linux_set_pc_64bit): New function.
6524 (linux_get_pc_64bit): New function.
6525 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6527 * linux-sparc-low.c (debug_threads): Remove declaration.
6528 (sparc_get_pc): Remove.
6529 (the_low_target): Use linux_get_pc_64bit instead of
6531 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6532 (the_low_target): Use linux_get_pc_64bit and
6535 2016-01-18 Yao Qi <yao.qi@linaro.org>
6537 * linux-arm-low.c (debug_threads): Remove declaration.
6538 (arm_get_pc, arm_set_pc): Remove.
6539 (the_low_target): Use linux_get_pc_32bit and
6541 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6542 (the_low_target): Use linux_get_pc_32bit and
6544 * linux-cris-low.c (debug_threads): Remove declaration.
6545 (cris_get_pc, cris_set_pc,): Remove.
6546 (the_low_target): Use linux_get_pc_32bit and
6548 * linux-crisv32-low.c (debug_threads): Remove declaration.
6549 (cris_get_pc, cris_set_pc): Remove.
6550 (the_low_target): Use linux_get_pc_32bit and
6552 * linux-low.c: Include inttypes.h.
6553 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6554 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6555 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6556 (the_low_target): Use linux_get_pc_32bit and
6558 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6559 (the_low_target): Use linux_get_pc_32bit and
6561 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6562 (the_low_target): Use linux_get_pc_32bit and
6564 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6565 (the_low_target): Use linux_get_pc_32bit and
6567 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6568 (the_low_target): Use linux_get_pc_32bit and
6571 2016-01-18 Gary Benson <gbenson@redhat.com>
6573 * configure.ac (AC_FUNC_FORK): New check.
6574 * config.in: Regenerate.
6575 * configure: Likewise.
6577 2016-01-14 Yao Qi <yao.qi@linaro.org>
6579 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6580 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6581 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6582 arm_get_next_pcs_ctor.
6584 2016-01-12 Josh Stone <jistone@redhat.com>
6585 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6587 * inferiors.h: Include "gdb_vecs.h".
6588 (struct process_info): Add syscalls_to_catch.
6589 * inferiors.c (remove_process): Free syscalls_to_catch.
6590 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6591 syscall_return stops.
6592 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6593 * server.c (handle_general_set): Handle QCatchSyscalls.
6594 (handle_query): Report support for QCatchSyscalls.
6595 * target.h (struct target_ops): Add supports_catch_syscall.
6596 (target_supports_catch_syscall): New macro.
6597 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6598 (struct lwp_info): Add syscall_state.
6599 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6600 Maintain syscall_state and syscalls_to_catch across exec.
6601 (get_syscall_trapinfo): New function, proxy to the_low_target.
6602 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6603 (linux_low_filter_event): Toggle syscall_state entry/return for
6604 syscall traps, and set it ignored for all others.
6605 (gdb_catching_syscalls_p): New function.
6606 (gdb_catch_this_syscall_p): New function.
6607 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6608 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6609 (linux_supports_catch_syscall): New function.
6610 (linux_target_ops): Install it.
6611 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6612 (the_low_target): Install it.
6614 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6616 * acinclude.m4: Include new ../warning.m4 file.
6617 * configure: Regenerated.
6618 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6620 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6622 * ax.c (is_goto_target): Mark static.
6623 * linux-low.c (register_addr): Likewise.
6624 (linux_fetch_registers, linux_store_registers): Likewise.
6625 * mem-break.c (any_persistent_commands): Fix old prototype.
6626 (add_commands_to_breakpoint): Mark static.
6627 * regcache.c (find_register_by_name): Delete unused func.
6628 * remote-utils.c (hex_or_minus_one): Mark static.
6629 * server.c (monitor_show_help): Mark static.
6630 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6631 handle_v_requests): Likewise.
6633 2016-01-12 Pedro Alves <palves@redhat.com>
6635 Remove use of the registered trademark symbol throughout.
6637 2016-01-08 Yao Qi <yao.qi@linaro.org>
6639 * remote-utils.c (getpkt): If c is '\003', call target hook
6642 2016-01-06 Yao Qi <yao.qi@linaro.org>
6644 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6645 linux-aarch32-low.c.
6646 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6647 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6648 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6649 (thumb2_breakpoint): Declare.
6650 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6651 linux-aarch32-low.h.
6652 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6653 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6654 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6656 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6658 * gdbreplay.c (gdbreplay_version): Change copyright year in
6660 * server.c (gdbserver_version): Likewise.
6662 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6664 * server.c (crc32_table): Delete.
6665 (crc32): Use libiberty's xcrc32 function.
6667 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6669 * lynx-low.c (lynx_delete_thread_callback): New function.
6670 (lynx_mourn): Properly delete our process and all of its
6671 threads. Remove call to clear_inferiors.
6673 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6675 * target.c (thread_search_callback): Add check that
6676 the thread_stopped target callback is not NULL before
6679 2015-12-21 Yao Qi <yao.qi@linaro.org>
6681 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6684 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6686 * server.c (handle_query): Call target_supports_software_single_step.
6688 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6690 * linux-low.c (single_step): New function.
6691 (linux_resume_one_lwp_throw): Call single_step.
6692 (start_step_over): Likewise.
6694 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6696 * Makefile.in (SFILES): Append arch/arm-linux.c,
6697 arch/arm-get-next-pcs.c.
6698 (arm-linux.o): New rule.
6699 (arm-get-next-pcs.o): New rule.
6700 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6702 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6703 to linux-aarch32-low.c.
6704 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6705 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6706 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6707 (thumb2_breakpoint_len): Likewise.
6708 (arm_is_thumb_mode): Make non-static.
6709 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6710 from linux-aarch32-low.c.
6711 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6712 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6713 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6714 (thumb2_breakpoint_len): Likewise.
6715 (arm_is_thumb_mode): New declaration.
6716 * linux-arm-low.c: Include arch/arm-linux.h
6717 aarch/arm-get-next-pcs.h, sys/syscall.h.
6718 (get_next_pcs_ops): New struct.
6719 (get_next_pcs_addr_bits_remove): New function.
6720 (get_next_pcs_is_thumb): New function.
6721 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6722 (arm_sigreturn_next_pc): Likewise.
6723 (get_next_pcs_syscall_next_pc): Likewise.
6724 (arm_gdbserver_get_next_pcs): Likewise.
6725 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6727 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6728 * server.h: Include gdb_vecs.h.
6730 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6732 * Makefile.in (SFILES): Append common/common-regcache.c.
6733 (OBS): Append common-regcache.o.
6734 (common-regcache.o): New rule.
6735 * regcache.c (init_register_cache): Initialize cache to
6737 (regcache_raw_read_unsigned): New function.
6738 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6739 register_status enum.
6741 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6743 * linux-aarch64-low.c (the_low_targets): Rename
6744 breakpoint_reinsert_addr to get_next_pcs.
6745 * linux-arm-low.c (the_low_targets): Likewise.
6746 * linux-bfin-low.c (the_low_targets): Likewise.
6747 * linux-cris-low.c (the_low_targets): Likewise.
6748 * linux-crisv32-low.c (the_low_targets): Likewise.
6749 * linux-low.c (can_software_single_step): Likewise.
6750 (install_software_single_step_breakpoints): New function.
6751 (start_step_over): Use install_software_single_step_breakpoints.
6752 * linux-low.h: New CORE_ADDR vector.
6753 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6755 * linux-mips-low.c (the_low_targets): Likewise.
6756 * linux-nios2-low.c (the_low_targets): Likewise.
6757 * linux-sparc-low.c (the_low_targets): Likewise.
6759 2015-12-17 Pedro Alves <palves@redhat.com>
6761 * linux-low.c (linux_kill_one_lwp): Remove references to
6763 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6765 (linux_init_signals): Delete.
6766 (initialize_low): Adjust.
6767 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6769 2015-12-16 Pedro Alves <palves@redhat.com>
6771 * configure.ac (compiler warning flags): When testing a
6772 -Wno-foo option, check whether -Wfoo works instead.
6773 * configure: Regenerate.
6775 2015-12-11 Don Breazeal <donb@codesourcery.com>
6777 * server.c (process_serial_event): Don't exit from gdbserver
6778 in remote mode if there are still active inferiors.
6780 2015-12-11 Yao Qi <yao.qi@linaro.org>
6782 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6783 arm_breakpoint_at if the process is 32-bit.
6785 2015-12-11 Yao Qi <yao.qi@linaro.org>
6787 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6790 2015-12-07 Yao Qi <yao.qi@linaro.org>
6792 * configure.srv: Append arm.o to srv_tgtobj for
6793 aarch64*-*-linux* target.
6794 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6795 from linux-arm-low.c.
6796 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6797 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6798 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6799 (thumb2_breakpoint_len): Likewise.
6800 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6801 (arm_breakpoint_kinds): Likewise.
6802 (arm_breakpoint_kind_from_pc): Likewise.
6803 (arm_sw_breakpoint_from_kind): Likewise.
6804 (arm_breakpoint_kind_from_current_state): Likewise.
6805 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6806 (arm_sw_breakpoint_from_kind): Declare.
6807 (arm_breakpoint_kind_from_current_state): Declare.
6808 (arm_breakpoint_at): Declare.
6809 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6810 arm_sw_breakpoint_from_kind if process is 32-bit.
6811 (aarch64_breakpoint_kind_from_pc): New function.
6812 (aarch64_breakpoint_kind_from_current_state): New function.
6813 (the_low_target): Initialize fields breakpoint_kind_from_pc
6814 and breakpoint_kind_from_current_state.
6815 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6816 linux-aarch32-low.c.
6817 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6818 (arm_breakpoint, arm_breakpoint_len): Likewise.
6819 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6820 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6821 (arm_is_thumb_mode): Likewise.
6822 (arm_breakpoint_at): Likewise.
6823 (arm_breakpoint_kind_from_pc): Likewise.
6824 (arm_sw_breakpoint_from_kind): Likewise.
6825 (arm_breakpoint_kind_from_current_state): Likewise.
6828 2015-08-04 Yao Qi <yao.qi@linaro.org>
6830 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6831 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6832 * server.c (extended_protocol): Remove "static".
6833 * server.h (extended_protocol): Declare it.
6835 2015-12-04 Josh Stone <jistone@redhat.com>
6837 * target.h (struct target_ops) <arch_setup>: Rename to ...
6838 (struct target_ops) <post_create_inferior>: ... this.
6839 (target_arch_setup): Rename to ...
6840 (target_post_create_inferior): ... this, calling post_create_inferior.
6841 * server.c (start_inferior): Update target_arch_setup calls to
6842 target_post_create_inferior.
6843 * linux-low.c (linux_low_ptrace_options): Forward declare.
6844 (linux_arch_setup): Update its comment for general use.
6845 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6846 (struct linux_target_ops): Use linux_post_create_inferior.
6847 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6848 to post_create_inferior.
6849 * nto-low.c (struct nto_target_ops): Likewise.
6850 * spu-low.c (struct spu_target_ops): Likewise.
6851 * win32-low.c (struct win32_target_ops): Likewise.
6853 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6855 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6857 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6859 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6860 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6861 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6862 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6863 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6864 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6865 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6866 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6867 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6868 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6869 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6870 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6872 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6874 * linux-low.c (linux_look_up_symbols): Don't call
6875 linux_supports_traceclone.
6876 * linux-low.h (thread_db_init): Remove use_events argument.
6877 * thread-db.c (thread_db_use_event): Remove global variable.
6878 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6879 (struct thread_db) <td_create_bp>: Remove field.
6880 (thread_db_create_event): Remove function.
6881 (thread_db_enable_reporting): Likewise.
6882 (find_one_thread): Don't check for thread_db_use_events.
6883 (attach_thread): Likewise.
6884 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6885 (try_thread_db_load_1): Don't check for thread_db_use_events.
6886 (thread_db_init): Remove use_events argument and thread events
6888 (remove_thread_event_breakpoints): Remove function.
6889 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6891 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6893 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6895 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6896 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6897 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6898 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6899 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6901 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6903 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6904 * linux-low.c (can_hardware_single_step): Use
6905 supports_hardware_single_step.
6906 (can_software_single_step): New function.
6907 (start_step_over): Call can_software_single_step.
6908 (linux_supports_hardware_single_step): New function.
6909 (struct target_ops) <supports_software_single_step>: Initialize.
6910 * linux-low.h (struct linux_target_ops)
6911 <supports_hardware_single_step>: Initialize.
6912 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6913 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6914 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6915 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6916 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6917 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6918 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6919 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6920 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6921 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6923 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6924 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6926 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6927 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6928 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6930 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6931 * target.h (struct target_ops): <supports_software_single_step>:
6933 (target_supports_software_single_step): New macro.
6935 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6937 * linux-low.c (linux_wait_1): Fix pc advance condition.
6938 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6939 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6941 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6943 * linux-arm-low.c (arm_is_thumb_mode): New function.
6944 (arm_breakpoint_at): Use arm_is_thumb_mode.
6945 (arm_breakpoint_kind_from_current_state): New function.
6946 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6948 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6949 (linux_breakpoint_kind_from_current_state): New function.
6950 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6951 * linux-low.h (struct linux_target_ops)
6952 <breakpoint_kind_from_current_state>: New field.
6953 * target.h (struct target_ops): Likewise.
6954 (target_breakpoint_kind_from_current_state): New macro.
6956 2015-11-30 Pedro Alves <palves@redhat.com>
6958 * linux-low.c (linux_resume): Wake up the event loop before
6961 2015-11-30 Pedro Alves <palves@redhat.com>
6963 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6965 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6967 * target.c (struct thread_search): New structure.
6968 (thread_search_callback): New function.
6969 (prev_general_thread): New global.
6970 (prepare_to_access_memory, done_accessing_memory): New functions.
6971 * target.h (prepare_to_access_memory, done_accessing_memory):
6972 Replace macros with function declarations.
6974 2015-11-30 Pedro Alves <palves@redhat.com>
6977 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
6978 report TARGET_WAITKIND_NO_RESUMED.
6979 * remote-utils.c (prepare_resume_reply): Handle
6980 TARGET_WAITKIND_NO_RESUMED.
6981 * server.c (report_no_resumed): New global.
6982 (handle_query) <qSupported>: Handle "no-resumed+". Report
6983 "no-resumed+" support.
6984 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6985 return error if the client doesn't support no-resumed events.
6986 (push_stop_notification): New function.
6987 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6988 events if the client supports them.
6990 2015-11-30 Pedro Alves <palves@redhat.com>
6992 * linux-low.c (thread_still_has_status_pending_p): Don't check
6994 (lwp_resumed): New function.
6995 (status_pending_p_callback): Return early if the LWP is not
6996 supposed to be resumed.
6998 2015-11-30 Pedro Alves <palves@redhat.com>
7000 * linux-low.c (handle_extended_wait): Assert that the LWP's
7001 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7002 thread create events, leave the new child's status pending.
7003 (linux_low_filter_event): If GDB wants to hear about thread exit
7004 events, leave the LWP marked dead and don't delete it.
7005 (linux_wait_for_event_filtered): Don't check for thread exit.
7006 (filter_exit_event): New function.
7007 (linux_wait_1): Use it, when returning an exit event.
7008 (linux_resume_one_lwp_throw): Assert that the LWP's
7009 waitstatus is TARGET_WAITKIND_IGNORE.
7010 * remote-utils.c (prepare_resume_reply): Handle
7011 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7012 * server.c (report_thread_events): New global.
7013 (handle_general_set): Handle QThreadEvents.
7014 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7015 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7016 TARGET_WAITKIND_THREAD_EXITED.
7017 * server.h (report_thread_events): Declare.
7019 2015-11-30 Pedro Alves <palves@redhat.com>
7021 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7022 the thread's last_resume_kind was resume_stop.
7024 2015-11-30 Pedro Alves <palves@redhat.com>
7026 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7029 2015-11-30 Pedro Alves <palves@redhat.com>
7031 * server.c (handle_v_requests): Handle vCtrlC.
7033 2015-11-30 Pedro Alves <palves@redhat.com>
7035 * gdbthread.h (find_any_thread_of_pid): Declare.
7036 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7038 * server.c (handle_query): If current_thread is NULL, look for
7039 another thread of the selected process.
7041 2015-11-26 Daniel Colascione <dancol@dancol.org>
7042 Simon Marchi <simon.marchi@ericsson.com>
7044 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7045 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7047 * target.h (struct target_ops) <thread_name>: New field.
7048 (target_thread_name): New macro.
7050 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7052 * regcache.h (regcache_invalidate_pid): Add declaration.
7053 * regcache.c (regcache_invalidate_pid): New function, extracted
7054 from regcache_invalidate.
7055 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7056 Add trivial documentation comment.
7057 * lynx-low.c: Use regcache_invalidate_pid instead of
7058 regcache_invalidate.
7060 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7062 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7063 and Elf64_auxv_t if the target is Android.
7065 2015-11-22 Doug Evans <xdje42@gmail.com>
7067 * target.h: #include <sys/types.h>.
7069 2015-11-19 Pedro Alves <palves@redhat.com>
7071 * linux-low.c (linux_process_qsupported): Change prototype.
7073 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7075 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7076 and adjust to loop over all features.
7077 * server.c (handle_query) <qSupported>: Adjust to call
7078 target_process_qsupported once, passing it a vector of unprocessed
7080 * target.h (struct target_ops) <process_qsupported>: Change
7082 (target_process_qsupported): Adjust.
7084 2015-11-19 Pedro Alves <palves@redhat.com>
7086 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7088 * configure: Regenerate.
7090 2015-11-19 Pedro Alves <palves@redhat.com>
7092 * configure: Regenerate.
7094 2015-11-19 Yao Qi <yao.qi@linaro.org>
7096 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7099 2015-11-19 Yao Qi <yao.qi@linaro.org>
7101 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7102 (struct aarch64_operand): Move enum out.
7104 2015-11-19 Yao Qi <yao.qi@linaro.org>
7106 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7107 struct user_fpsimd_state *.
7108 (aarch64_store_fpregset): Likewise.
7110 2015-11-19 Yao Qi <yao.qi@linaro.org>
7112 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7113 struct user_pt_regs *.
7114 (aarch64_store_gregset): Likewise.
7116 2015-11-18 Pedro Alves <palves@redhat.com>
7118 * Makefile.in (all_object_files): Add $IPA_OBJS.
7120 2015-11-17 Pedro Alves <palves@redhat.com>
7122 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7123 GDB_SIGNAL_0 and gdb_signal_to_string.
7125 2015-11-17 Pedro Alves <palves@redhat.com>
7127 * win32-low.c (handle_output_debug_string): Remove parameter.
7128 (win32_kill): Remove our_status local and adjust call to
7129 handle_output_debug_string.
7130 (get_child_debug_event): Adjust call to
7131 handle_output_debug_string.
7133 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7135 * linux-mips-low.c (mips_fill_gregset): Add cast.
7136 (mips_store_gregset): Likewise.
7137 (mips_fill_fpregset): Likewise.
7138 (mips_store_fpregset): Likewise.
7140 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7142 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7145 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7147 * linux-mips-low.c (mips_linux_new_thread): Change type of
7148 watch_type to enum target_hw_bp_type.
7150 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7152 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7153 Change return type to arm_hwbp_type.
7155 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7157 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7158 (arm_store_gregset): Likewise.
7159 * linux-arm-low.c (arm_get_hwcap): Likewise.
7160 (arm_read_description): Likewise.
7162 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7164 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7166 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7168 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7169 (ppc_fill_vsxregset): Likewise.
7170 (ppc_store_vsxregset): Likewise.
7171 (ppc_fill_vrregset): Likewise.
7172 (ppc_store_vrregset): Likewise.
7173 (ppc_fill_evrregset): Likewise.
7174 (ppc_store_evrregset): Likewise.
7176 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7178 * linux-ppc-low.c (ppc_usrregs_info): Remove
7179 forward-declaration.
7180 (ppc_arch_setup): Move lower in file.
7182 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7184 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7185 (ps_pdwrite): Likewise.
7187 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7189 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7190 to after assert checks.
7192 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7194 * proc-service.c (ps_pdread): Add/adjust casts.
7195 (ps_pdwrite): Add/adjust casts.
7197 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7199 * server.c (handle_search_memory_1): Cast return value of
7202 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7204 * server.c (write_qxfer_response): Change type of data to
7207 2015-10-29 Pedro Alves <palves@redhat.com>
7209 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7211 2015-10-29 Pedro Alves <palves@redhat.com>
7213 * tracepoint.c (clear_installed_tracepoints): Add casts.
7215 2015-10-29 Pedro Alves <palves@redhat.com>
7217 * server.c (handle_v_cont, process_serial_event): Add enum
7218 gdb_signal casts to signal parsing code.
7220 2015-10-29 Pedro Alves <palves@redhat.com>
7222 * linux-low.h (NULL_REGSET): Define.
7223 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7224 * linux-arm-low.c (arm_regsets): Likewise.
7225 * linux-crisv32-low.c (cris_regsets): Likewise.
7226 * linux-m68k-low.c (m68k_regsets): Likewise.
7227 * linux-mips-low.c (mips_regsets): Likewise.
7228 * linux-nios2-low.c (nios2_regsets): Likewise.
7229 * linux-ppc-low.c (ppc_regsets): Likewise.
7230 * linux-s390-low.c (s390_regsets): Likewise.
7231 * linux-sh-low.c (sh_regsets): Likewise.
7232 * linux-sparc-low.c (sparc_regsets): Likewise.
7233 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7234 * linux-tile-low.c (tile_regsets): Likewise.
7235 * linux-x86-low.c (x86_regsets): Likewise.
7236 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7238 2015-10-29 Pedro Alves <palves@redhat.com>
7240 * linux-low.h (NULL_REGSET): Define.
7241 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7242 * linux-arm-low.c (arm_regsets): Likewise.
7243 * linux-crisv32-low.c (cris_regsets): Likewise.
7244 * linux-m68k-low.c (m68k_regsets): Likewise.
7245 * linux-mips-low.c (mips_regsets): Likewise.
7246 * linux-nios2-low.c (nios2_regsets): Likewise.
7247 * linux-ppc-low.c (ppc_regsets): Likewise.
7248 * linux-s390-low.c (s390_regsets): Likewise.
7249 * linux-sh-low.c (sh_regsets): Likewise.
7250 * linux-sparc-low.c (sparc_regsets): Likewise.
7251 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7252 * linux-tile-low.c (tile_regsets): Likewise.
7253 * linux-x86-low.c (x86_regsets): Likewise.
7254 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7256 2015-10-26 Doug Evans <dje@google.com>
7258 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7260 2015-10-26 Doug Evans <dje@google.com>
7262 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7264 2015-10-26 Doug Evans <dje@google.com>
7266 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7268 (attach_thread, find_new_threads_callback): Ditto.
7270 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7272 * mem-break.h (set_breakpoint_data): Remove.
7274 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7276 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7277 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7278 (initialize_low): Remove set_breakpoint_data call.
7279 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7280 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7281 (initialize_low): Remove set_breakpoint_data call.
7282 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7283 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7284 (initialize_low): Remove set_breakpoint_data call.
7286 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7288 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7289 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7290 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7291 * target.h (target_breakpoint_kind_from_pc): New macro.
7293 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7295 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7296 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7297 the default breakpoint kind.
7299 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7301 * linux-arm-low.c (arm_supports_z_point_type): Add software
7304 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7306 * linux-arm-low.c: Refactor breakpoint definitions.
7307 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7308 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7310 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7312 * Makefile.in: Add arm.c/o.
7313 * configure.srv: Likewise.
7314 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7315 (arm_breakpoint_kind_from_pc): New function.
7316 (arm_sw_breakpoint_from_kind): Return proper kind.
7317 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7319 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7321 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7323 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7324 (struct raw_breakpoint) <size>: Remove.
7325 (struct raw_breakpoint) <kind>: Add.
7326 (bp_size): New function.
7327 (bp_opcode): Likewise.
7328 (find_raw_breakpoint_at): Adjust for kind.
7329 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7330 (remove_memory_breakpoint): Adjust for kind call bp_size.
7331 (set_raw_breakpoint_at): Adjust for kind.
7332 (set_breakpoint): Likewise.
7333 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7334 (delete_raw_breakpoint): Adjust for kind.
7335 (delete_breakpoint): Likewise.
7336 (find_gdb_breakpoint): Likewise.
7337 (set_gdb_breakpoint_1): Likewise.
7338 (set_gdb_breakpoint): Likewise.
7339 (delete_gdb_breakpoint_1): Likewise.
7340 (delete_gdb_breakpoint): Likewise.
7341 (uninsert_raw_breakpoint): Likewise.
7342 (reinsert_raw_breakpoint): Likewise.
7343 (set_breakpoint_data): Remove.
7344 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7345 (check_mem_read): Adjust for kind call bp_size.
7346 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7347 (clone_one_breakpoint): Adjust for kind.
7348 * mem-break.h (set_gdb_breakpoint): Likewise.
7349 (delete_gdb_breakpoint): Likewise.
7350 * server.c (process_serial_event): Likewise.
7352 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7354 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7355 (struct linux_target_ops) <breakpoint>: Remove.
7356 (struct linux_target_ops) <breakpoint_len>: Remove.
7357 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7358 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7359 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7360 (arm_sw_breakpoint_from_kind): New function.
7361 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7362 (struct linux_target_ops) <breakpoint>: Remove.
7363 (struct linux_target_ops) <breakpoint_len>: Remove.
7364 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7365 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7366 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7367 (struct linux_target_ops) <breakpoint>: Remove.
7368 (struct linux_target_ops) <breakpoint_len>: Remove.
7369 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7370 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7371 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7372 (struct linux_target_ops) <breakpoint>: Remove.
7373 (struct linux_target_ops) <breakpoint_len>: Remove.
7374 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7375 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7376 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7377 and sw_breakpoint_from_kind to increment the pc.
7378 (linux_breakpoint_kind_from_pc): New function.
7379 (linux_sw_breakpoint_from_kind): New function.
7380 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7381 (initialize_low): Call breakpoint_kind_from_pc and
7382 sw_breakpoint_from_kind to replace breakpoint_data/len.
7383 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7385 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7386 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7387 (struct linux_target_ops) <breakpoint>: Remove.
7388 (struct linux_target_ops) <breakpoint_len>: Remove.
7389 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7390 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7391 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7392 (struct linux_target_ops) <breakpoint>: Remove.
7393 (struct linux_target_ops) <breakpoint_len>: Remove.
7394 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7395 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7396 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7397 (struct linux_target_ops) <breakpoint>: Remove.
7398 (struct linux_target_ops) <breakpoint_len>: Remove.
7399 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7400 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7401 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7402 (struct linux_target_ops) <breakpoint>: Remove.
7403 (struct linux_target_ops) <breakpoint_len>: Remove.
7404 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7405 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7406 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7407 (struct linux_target_ops) <breakpoint>: Remove.
7408 (struct linux_target_ops) <breakpoint_len>: Remove.
7409 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7410 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7411 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7412 (struct linux_target_ops) <breakpoint>: Remove.
7413 (struct linux_target_ops) <breakpoint_len>: Remove.
7414 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7415 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7416 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7417 (struct linux_target_ops) <breakpoint>: Remove.
7418 (struct linux_target_ops) <breakpoint_len>: Remove.
7419 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7420 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7421 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7422 (struct linux_target_ops) <breakpoint>: Remove.
7423 (struct linux_target_ops) <breakpoint_len>: Remove.
7424 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7425 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7426 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7427 (struct linux_target_ops) <breakpoint>: Remove.
7428 (struct linux_target_ops) <breakpoint_len>: Remove.
7429 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7430 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7431 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7432 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7433 (struct linux_target_ops) <breakpoint>: Remove.
7434 (struct linux_target_ops) <breakpoint_len>: Remove.
7435 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7436 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7437 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7438 (struct linux_target_ops) <breakpoint>: Remove.
7439 (struct linux_target_ops) <breakpoint_len>: Remove.
7440 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7441 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7443 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7445 * linux-cris-low.c (cris_get_pc): Remove void arg.
7447 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7449 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7452 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7454 * inferiors.c (thread_pid_matches_callback): New function.
7455 (find_thread_process): New function.
7456 (remove_thread): Reset current_thread.
7457 (remove_process): Assert threads have been removed first.
7459 2015-10-15 Yao Qi <yao.qi@linaro.org>
7461 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7463 (aarch64_remove_point): Likewise.
7464 * regcache.c (regcache_register_size): New function.
7466 2015-10-12 Yao Qi <yao.qi@linaro.org>
7468 * linux-aarch64-low.c: Update all callers as emit_load_store
7469 is renamed to aarch64_emit_load_store.
7471 2015-10-12 Yao Qi <yao.qi@linaro.org>
7473 * linux-aarch64-low.c: Update all callers of function renaming
7474 from emit_insn to aarch64_emit_insn.
7476 2015-10-12 Yao Qi <yao.qi@linaro.org>
7478 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7479 arch/aarch64-insn.h.
7480 (struct aarch64_memory_operand): Likewise.
7482 (emit_insn): Move to arch/aarch64-insn.c.
7483 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7484 (emit_load_store): Move to arch/aarch64-insn.c.
7485 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7486 (can_encode_int32): Remove.
7488 2015-10-12 Yao Qi <yao.qi@linaro.org>
7490 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7491 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7492 (aarch64_relocate_instruction): Likewise.
7493 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7494 (struct aarch64_insn_visitor): Likewise.
7496 2015-10-12 Yao Qi <yao.qi@linaro.org>
7498 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7499 (struct aarch64_insn_visitor): New.
7500 (struct aarch64_insn_relocation_data): New.
7501 (aarch64_ftrace_insn_reloc_b): New function.
7502 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7503 (aarch64_ftrace_insn_reloc_cb): Likewise.
7504 (aarch64_ftrace_insn_reloc_tb): Likewise.
7505 (aarch64_ftrace_insn_reloc_adr): Likewise.
7506 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7507 (aarch64_ftrace_insn_reloc_others): Likewise.
7509 (aarch64_relocate_instruction): Use visitor.
7511 2015-10-12 Yao Qi <yao.qi@linaro.org>
7513 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7514 int. Add argument buf.
7515 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7516 aarch64_relocate_instruction.
7518 2015-10-12 Yao Qi <yao.qi@linaro.org>
7520 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7521 argument insn. Remove local variable insn. Don't call
7523 (aarch64_install_fast_tracepoint_jump_pad): Call
7526 2015-09-30 Yao Qi <yao.qi@linaro.org>
7528 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7529 (emit_load_store_pair): Likewise.
7531 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7533 * dll.c (match_dll): Add cast(s).
7534 (unloaded_dll): Likewise.
7535 * linux-low.c (second_thread_of_pid_p): Likewise.
7536 (delete_lwp_callback): Likewise.
7537 (count_events_callback): Likewise.
7538 (select_event_lwp_callback): Likewise.
7539 (linux_set_resume_request): Likewise.
7540 * server.c (accumulate_file_name_length): Likewise.
7541 (emit_dll_description): Likewise.
7542 (handle_qxfer_threads_worker): Likewise.
7543 (visit_actioned_threads): Likewise.
7544 * thread-db.c (any_thread_of): Likewise.
7545 * tracepoint.c (same_process_p): Likewise.
7546 (match_blocktype): Likewise.
7547 (build_traceframe_info_xml): Likewise.
7549 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7551 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7553 (gdb_unparse_agent_expr): Likewise.
7554 * hostio.c (require_data): Likewise.
7555 (handle_pread): Likewise.
7556 * linux-low.c (disable_regset): Likewise.
7557 (fetch_register): Likewise.
7558 (store_register): Likewise.
7559 (get_dynamic): Likewise.
7560 (linux_qxfer_libraries_svr4): Likewise.
7561 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7562 (set_fast_tracepoint_jump): Likewise.
7563 (uninsert_fast_tracepoint_jumps_at): Likewise.
7564 (reinsert_fast_tracepoint_jumps_at): Likewise.
7565 (validate_inserted_breakpoint): Likewise.
7566 (clone_agent_expr): Likewise.
7567 * regcache.c (init_register_cache): Likewise.
7568 * remote-utils.c (putpkt_binary_1): Likewise.
7569 (decode_M_packet): Likewise.
7570 (decode_X_packet): Likewise.
7571 (look_up_one_symbol): Likewise.
7572 (relocate_instruction): Likewise.
7573 (monitor_output): Likewise.
7574 * server.c (handle_search_memory): Likewise.
7575 (handle_qxfer_exec_file): Likewise.
7576 (handle_qxfer_libraries): Likewise.
7577 (handle_qxfer): Likewise.
7578 (handle_query): Likewise.
7579 (handle_v_cont): Likewise.
7580 (handle_v_run): Likewise.
7581 (captured_main): Likewise.
7582 * target.c (write_inferior_memory): Likewise.
7583 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7584 * tracepoint.c (init_trace_buffer): Likewise.
7585 (add_tracepoint_action): Likewise.
7586 (add_traceframe): Likewise.
7587 (add_traceframe_block): Likewise.
7588 (cmd_qtdpsrc): Likewise.
7589 (cmd_qtdv): Likewise.
7590 (cmd_qtstatus): Likewise.
7591 (response_source): Likewise.
7592 (response_tsv): Likewise.
7593 (cmd_qtnotes): Likewise.
7594 (gdb_collect): Likewise.
7595 (initialize_tracepoint): Likewise.
7597 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7599 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7600 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7601 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7603 (enum aarch64_condition_codes): New enum.
7604 (w0): New static global.
7607 (struct aarch64_memory_operand) <type>: New
7608 MEMORY_OPERAND_POSTINDEX type.
7609 (postindex_memory_operand): New helper function.
7610 (emit_ret): New function.
7611 (emit_load_store_pair): New function, factored out of emit_stp
7612 with support for MEMORY_OPERAND_POSTINDEX.
7613 (emit_stp): Rewrite using emit_load_store_pair.
7614 (emit_ldp): New function.
7615 (emit_load_store): Likewise.
7616 (emit_ldr): Mention post-index instruction in comment.
7617 (emit_ldrh): New function.
7618 (emit_ldrb): New function.
7619 (emit_ldrsw): Mention post-index instruction in comment.
7620 (emit_str): Likewise.
7621 (emit_subs): New function.
7622 (emit_cmp): Likewise.
7623 (emit_and): Likewise.
7624 (emit_orr): Likewise.
7625 (emit_orn): Likewise.
7626 (emit_eor): Likewise.
7627 (emit_mvn): Likewise.
7628 (emit_lslv): Likewise.
7629 (emit_lsrv): Likewise.
7630 (emit_asrv): Likewise.
7631 (emit_mul): Likewise.
7632 (emit_sbfm): Likewise.
7633 (emit_sbfx): Likewise.
7634 (emit_ubfm): Likewise.
7635 (emit_ubfx): Likewise.
7636 (emit_csinc): Likewise.
7637 (emit_cset): Likewise.
7638 (emit_nop): Likewise.
7639 (emit_ops_insns): New helper function.
7640 (emit_pop): Likewise.
7641 (emit_push): Likewise.
7642 (aarch64_emit_prologue): New function.
7643 (aarch64_emit_epilogue): Likewise.
7644 (aarch64_emit_add): Likewise.
7645 (aarch64_emit_sub): Likewise.
7646 (aarch64_emit_mul): Likewise.
7647 (aarch64_emit_lsh): Likewise.
7648 (aarch64_emit_rsh_signed): Likewise.
7649 (aarch64_emit_rsh_unsigned): Likewise.
7650 (aarch64_emit_ext): Likewise.
7651 (aarch64_emit_log_not): Likewise.
7652 (aarch64_emit_bit_and): Likewise.
7653 (aarch64_emit_bit_or): Likewise.
7654 (aarch64_emit_bit_xor): Likewise.
7655 (aarch64_emit_bit_not): Likewise.
7656 (aarch64_emit_equal): Likewise.
7657 (aarch64_emit_less_signed): Likewise.
7658 (aarch64_emit_less_unsigned): Likewise.
7659 (aarch64_emit_ref): Likewise.
7660 (aarch64_emit_if_goto): Likewise.
7661 (aarch64_emit_goto): Likewise.
7662 (aarch64_write_goto_address): Likewise.
7663 (aarch64_emit_const): Likewise.
7664 (aarch64_emit_call): Likewise.
7665 (aarch64_emit_reg): Likewise.
7666 (aarch64_emit_pop): Likewise.
7667 (aarch64_emit_stack_flush): Likewise.
7668 (aarch64_emit_zero_ext): Likewise.
7669 (aarch64_emit_swap): Likewise.
7670 (aarch64_emit_stack_adjust): Likewise.
7671 (aarch64_emit_int_call_1): Likewise.
7672 (aarch64_emit_void_call_2): Likewise.
7673 (aarch64_emit_eq_goto): Likewise.
7674 (aarch64_emit_ne_goto): Likewise.
7675 (aarch64_emit_lt_goto): Likewise.
7676 (aarch64_emit_le_goto): Likewise.
7677 (aarch64_emit_gt_goto): Likewise.
7678 (aarch64_emit_ge_got): Likewise.
7679 (aarch64_emit_ops_impl): New static global variable.
7680 (aarch64_emit_ops): New target function, return
7681 &aarch64_emit_ops_impl.
7682 (struct linux_target_ops): Install it.
7684 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7686 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7687 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7689 * linux-aarch64-ipa.c: New file.
7690 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7692 (aarch64_get_thread_area): New target method.
7693 (extract_signed_bitfield): New helper function.
7694 (aarch64_decode_ldr_literal): New function.
7695 (enum aarch64_opcodes): New enum.
7696 (struct aarch64_register): New struct.
7697 (struct aarch64_operand): New struct.
7698 (x0): New static global.
7707 (aarch64_register): New helper function.
7708 (register_operand): Likewise.
7709 (immediate_operand): Likewise.
7710 (struct aarch64_memory_operand): New struct.
7711 (offset_memory_operand): New helper function.
7712 (preindex_memory_operand): Likewise.
7713 (enum aarch64_system_control_registers): New enum.
7714 (ENCODE): New macro.
7715 (emit_insn): New helper function.
7716 (emit_b): New function.
7717 (emit_bcond): Likewise.
7718 (emit_cb): Likewise.
7719 (emit_tb): Likewise.
7720 (emit_blr): Likewise.
7721 (emit_stp): Likewise.
7722 (emit_ldp_q_offset): Likewise.
7723 (emit_stp_q_offset): Likewise.
7724 (emit_load_store): Likewise.
7725 (emit_ldr): Likewise.
7726 (emit_ldrsw): Likewise.
7727 (emit_str): Likewise.
7728 (emit_ldaxr): Likewise.
7729 (emit_stxr): Likewise.
7730 (emit_stlr): Likewise.
7731 (emit_data_processing_reg): Likewise.
7732 (emit_data_processing): Likewise.
7733 (emit_add): Likewise.
7734 (emit_sub): Likewise.
7735 (emit_mov): Likewise.
7736 (emit_movk): Likewise.
7737 (emit_mov_addr): Likewise.
7738 (emit_mrs): Likewise.
7739 (emit_msr): Likewise.
7740 (emit_sevl): Likewise.
7741 (emit_wfe): Likewise.
7742 (append_insns): Likewise.
7743 (can_encode_int32_in): New helper function.
7744 (aarch64_relocate_instruction): New function.
7745 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7746 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7747 (struct linux_target_ops): Install aarch64_get_thread_area,
7748 aarch64_install_fast_tracepoint_jump_pad and
7749 aarch64_get_min_fast_tracepoint_insn_len.
7751 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7753 * Makefile.in (aarch64-insn.o): New rule.
7754 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7756 2015-09-21 Yao Qi <yao.qi@linaro.org>
7758 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7760 2015-09-21 Yao Qi <yao.qi@linaro.org>
7762 * tracepoint.c (max_jump_pad_size): Remove.
7764 2015-09-18 Yao Qi <yao.qi@linaro.org>
7766 * linux-aarch64-low.c: Don't include sys/uio.h.
7767 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7769 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
7771 * tracepoint.c (eval_result_type): Change prototype.
7772 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7774 2015-09-15 Pedro Alves <palves@redhat.com>
7776 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7777 Check whether to report exec events instead of checking whether
7778 multiprocess is enabled.
7780 2015-09-15 Pedro Alves <palves@redhat.com>
7783 * remote-utils.c (prepare_resume_reply): Merge
7784 TARGET_WAITKIND_VFORK_DONE switch case with the
7785 TARGET_WAITKIND_FORKED case.
7787 2015-09-15 Yao Qi <yao.qi@linaro.org>
7789 * server.c (handle_query): Check string comparison using
7790 "else if" instead of "if".
7792 2015-09-15 Yao Qi <yao.qi@linaro.org>
7794 * server.c (vCont_supported): New global variable.
7795 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7796 matches. Append ";vContSupported+" to own_buf.
7797 (handle_v_requests): Append ";s;S" to own_buf if target supports
7798 hardware single step or vCont_supported is false.
7799 (capture_main): Set vCont_supported to zero.
7801 2015-09-15 Yao Qi <yao.qi@linaro.org>
7803 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7805 (linux_supports_hardware_single_step): ... New function.
7806 (linux_target_ops): Update.
7807 * lynx-low.c (lynx_target_ops): Set field
7808 supports_hardware_single_step to target_can_do_hardware_single_step.
7809 * nto-low.c (nto_target_ops): Likewise.
7810 * spu-low.c (spu_target_ops): Likewise.
7811 * win32-low.c (win32_target_ops): Likewise.
7812 * target.c (target_can_do_hardware_single_step): New function.
7813 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7814 Remove. <supports_hardware_single_step>: New field.
7815 (target_supports_conditional_breakpoints): Remove.
7816 (target_supports_hardware_single_step): New macro.
7817 (target_can_do_hardware_single_step): Declare.
7818 * server.c (handle_query): Use target_supports_hardware_single_step
7819 instead of target_supports_conditional_breakpoints.
7821 2015-09-15 Yao Qi <yao.qi@linaro.org>
7823 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7825 (struct linux_target_ops the_low_target): Install
7826 aarch64_linux_siginfo_fixup.
7828 2015-09-11 Don Breazeal <donb@codesourcery.com>
7829 Luis Machado <lgustavo@codesourcery.com>
7831 * linux-low.c (linux_mourn): Static declaration.
7832 (linux_arch_setup): Move in front of
7833 handle_extended_wait.
7834 (linux_arch_setup_thread): New function.
7835 (handle_extended_wait): Handle exec events. Call
7836 linux_arch_setup_thread. Make event_lwp argument a
7837 pointer-to-a-pointer.
7838 (check_zombie_leaders): Do not check stopped threads.
7839 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7840 (linux_low_filter_event): Add lwp and thread for exec'ing
7841 non-leader thread if leader thread has been deleted.
7842 Refactor code into linux_arch_setup_thread and call it.
7843 Pass child lwp pointer by reference to handle_extended_wait.
7844 (linux_wait_for_event_filtered): Update comment.
7845 (linux_wait_1): Prevent clobbering exec event status.
7846 (linux_supports_exec_events): New function.
7847 (linux_target_ops) <supports_exec_events>: Initialize new member.
7848 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7850 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7851 * server.c (report_exec_events): New global variable.
7852 (handle_query): Handle qSupported query for exec-events feature.
7853 (captured_main): Initialize report_exec_events.
7854 * server.h (report_exec_events): Declare new global variable.
7855 * target.h (struct target_ops) <supports_exec_events>: New
7857 (target_supports_exec_events): New macro.
7858 * win32-low.c (win32_target_ops) <supports_exec_events>:
7859 Initialize new member.
7861 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7863 * linux-low.c (linux_low_enable_btrace): Remove.
7864 (linux_target_ops): Replace linux_low_enable_btrace with
7865 linux_enable_btrace.
7867 2015-09-03 Yao Qi <yao.qi@linaro.org>
7869 * linux-aarch64-low.c (aarch64_insert_point): Call
7870 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7873 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7875 * linux-low.c (check_stopped_by_breakpoint): Use
7876 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7878 2015-08-27 Pedro Alves <palves@redhat.com>
7880 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7882 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7884 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7885 the XNEW-family equivalent.
7886 (compile_bytecodes): Likewise.
7887 * dll.c (loaded_dll): Likewise.
7888 * event-loop.c (append_callback_event): Likewise.
7889 (create_file_handler): Likewise.
7890 (create_file_event): Likewise.
7891 * hostio.c (handle_open): Likewise.
7892 * inferiors.c (add_thread): Likewise.
7893 (add_process): Likewise.
7894 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7895 * linux-arm-low.c (arm_new_process): Likewise.
7896 (arm_new_thread): Likewise.
7897 * linux-low.c (add_to_pid_list): Likewise.
7898 (linux_add_process): Likewise.
7899 (handle_extended_wait): Likewise.
7900 (add_lwp): Likewise.
7901 (enqueue_one_deferred_signal): Likewise.
7902 (enqueue_pending_signal): Likewise.
7903 (linux_resume_one_lwp_throw): Likewise.
7904 (linux_resume_one_thread): Likewise.
7905 (linux_read_memory): Likewise.
7906 (linux_write_memory): Likewise.
7907 * linux-mips-low.c (mips_linux_new_process): Likewise.
7908 (mips_linux_new_thread): Likewise.
7909 (mips_add_watchpoint): Likewise.
7910 * linux-x86-low.c (initialize_low_arch): Likewise.
7911 * lynx-low.c (lynx_add_process): Likewise.
7912 * mem-break.c (set_raw_breakpoint_at): Likewise.
7913 (set_breakpoint): Likewise.
7914 (add_condition_to_breakpoint): Likewise.
7915 (add_commands_to_breakpoint): Likewise.
7916 (clone_agent_expr): Likewise.
7917 (clone_one_breakpoint): Likewise.
7918 * regcache.c (new_register_cache): Likewise.
7919 * remote-utils.c (look_up_one_symbol): Likewise.
7920 * server.c (queue_stop_reply): Likewise.
7921 (start_inferior): Likewise.
7922 (queue_stop_reply_callback): Likewise.
7923 (handle_target_event): Likewise.
7924 * spu-low.c (fetch_ppc_memory): Likewise.
7925 (store_ppc_memory): Likewise.
7926 * target.c (set_target_ops): Likewise.
7927 * thread-db.c (thread_db_load_search): Likewise.
7928 (try_thread_db_load_1): Likewise.
7929 * tracepoint.c (add_tracepoint): Likewise.
7930 (add_tracepoint_action): Likewise.
7931 (create_trace_state_variable): Likewise.
7932 (cmd_qtdpsrc): Likewise.
7933 (cmd_qtro): Likewise.
7934 (add_while_stepping_state): Likewise.
7935 * win32-low.c (child_add_thread): Likewise.
7936 (get_image_name): Likewise.
7938 2015-08-25 Yao Qi <yao.qi@linaro.org>
7940 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7942 2015-08-25 Yao Qi <yao.qi@linaro.org>
7944 * Makefile.in (aarch64-linux.o): New rule.
7945 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7947 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7948 (aarch64_init_debug_reg_state): Make it extern.
7949 (aarch64_linux_prepare_to_resume): Remove.
7951 2015-08-25 Yao Qi <yao.qi@linaro.org>
7953 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7954 lwp_arch_private_info and ptid_of_lwp.
7956 2015-08-25 Yao Qi <yao.qi@linaro.org>
7958 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7959 Find proc_info by find_process_pid. All callers updated.
7961 2015-08-25 Yao Qi <yao.qi@linaro.org>
7963 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7965 (debug_reg_change_callback): Remove.
7966 (aarch64_notify_debug_reg_change): Remove.
7968 2015-08-25 Yao Qi <yao.qi@linaro.org>
7970 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7971 Call current_lwp_ptid.
7973 2015-08-25 Yao Qi <yao.qi@linaro.org>
7975 * linux-aarch64-low.c (debug_reg_change_callback): Use
7978 2015-08-25 Yao Qi <yao.qi@linaro.org>
7980 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7982 2015-08-25 Yao Qi <yao.qi@linaro.org>
7984 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7986 2015-08-25 Yao Qi <yao.qi@linaro.org>
7988 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7991 2015-08-25 Yao Qi <yao.qi@linaro.org>
7993 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7995 (debug_reg_change_callback): Remove argument entry and add argument
7996 lwp. Remove local variable thread. Don't print thread id in the
7997 debugging output. Don't check whether pid of thread equals to pid.
7998 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7999 iterate_over_lwps instead find_inferior.
8001 2015-08-24 Pedro Alves <palves@redhat.com>
8003 * inferiors.c (get_first_process): New function.
8004 * inferiors.h (get_first_process): New declaration.
8005 * remote-utils.c (read_ptid): Default to the first process in the
8006 list, instead of to the current thread's process.
8008 2015-08-24 Pedro Alves <palves@redhat.com>
8010 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8011 * event-loop.c: Likewise.
8012 * remote-utils.c: Likewise.
8013 * tracepoint.c: Likewise.
8015 2015-08-24 Pedro Alves <palves@redhat.com>
8017 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8020 2015-08-21 Pedro Alves <palves@redhat.com>
8022 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8023 instead of literal 1.
8025 2015-08-21 Pedro Alves <palves@redhat.com>
8027 * tdesc.c (default_description): Explicitly zero-initialize.
8029 2015-08-21 Pedro Alves <palves@redhat.com>
8032 * inferiors.c (remove_thread): Discard any pending stop reply for
8034 * server.c (remove_all_on_match_pid): Rename to ...
8035 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8037 (discard_queued_stop_replies): Change parameter to a ptid. Now
8039 (handle_v_kill, kill_inferior_callback, captured_main)
8040 (process_serial_event): Adjust.
8041 * server.h (discard_queued_stop_replies): Declare.
8043 2015-08-21 Pedro Alves <palves@redhat.com>
8045 * linux-low.c (wait_for_sigstop): Always switch to no thread
8046 selected if the previously current thread dies.
8047 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8048 process instead of the current thread's.
8049 * remote-utils.c (input_interrupt): Don't check if there's no
8051 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8052 current thread to the general thread fails, error out.
8053 (handle_qxfer_auxv, handle_qxfer_libraries)
8054 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8055 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8056 (handle_query): Check if there's a thread selected instead of
8057 checking whether there's any thread in the thread list.
8058 (handle_qxfer_threads, handle_qxfer_btrace)
8059 (handle_qxfer_btrace_conf): Don't error out early if there's no
8060 thread in the thread list.
8061 (handle_v_cont, myresume): Don't set the current thread to the
8063 (process_serial_event) <Hg handling>: Also set thread_id if the
8064 previous general thread is still alive.
8065 (process_serial_event) <g/G handling>: If setting the current
8066 thread to the general thread fails, error out.
8067 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8068 thread's lwp instead of the current thread's.
8069 * target.c (set_desired_thread): If the desired thread was not
8070 found, leave the current thread pointing to NULL. Return an int
8071 (boolean) indicating success.
8072 * target.h (set_desired_thread): Change return type to int.
8074 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8076 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8077 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8079 (ps_get_thread_area): New function.
8081 2015-08-19 Gary Benson <gbenson@redhat.com>
8083 * hostio.c (handle_pread): Do not attempt to read more data
8084 than hostio_reply_with_data can fit in a packet.
8086 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8088 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8090 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8092 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8094 2015-08-06 Pedro Alves <palves@redhat.com>
8096 * tracepoint.c (expr_eval_result): Now an int.
8098 2015-08-06 Pedro Alves <palves@redhat.com>
8100 * gdbthread.h (struct regcache): Forward declare.
8101 (struct thread_info) <regcache_data>: Now a struct regcache
8103 * inferiors.c (inferior_regcache_data)
8104 (set_inferior_regcache_data): Now work with struct regcache
8106 * inferiors.h (struct regcache): Forward declare.
8107 (inferior_regcache_data, set_inferior_regcache_data): Now work
8108 with struct regcache pointers.
8109 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8110 (free_register_cache_thread): Remove struct regcache pointer
8113 2015-08-06 Pedro Alves <palves@redhat.com>
8115 * server.c (captured_main): On error, print the exception message
8116 to stderr, and if run_once is set, throw a quit.
8118 2015-08-06 Pedro Alves <palves@redhat.com>
8120 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8123 2015-08-06 Pedro Alves <palves@redhat.com>
8125 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8126 reading beyond the passed in buffer length.
8128 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8130 * tracepoint.c (symbol_list) <required>: Remove.
8132 2015-08-06 Pedro Alves <palves@redhat.com>
8134 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8135 count if stopping and suspending threads.
8136 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8137 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8138 (linux_detach): Complete an ongoing step-over.
8139 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8141 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8142 (linux_wait_1): If passing a signal to the inferior after
8143 finishing a step-over, unsuspend and re-resume all lwps. If we
8144 see a single-step event but the thread should be continuing, don't
8145 pass the trap to gdb.
8146 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8147 internal_error instead of gdb_assert.
8148 (enqueue_pending_signal): New function.
8149 (check_ptrace_stopped_lwp_gone): Add debug output.
8150 (start_step_over): Use internal_error instead of gdb_assert.
8151 (complete_ongoing_step_over): New function.
8152 (linux_resume_one_thread): Don't resume a suspended thread.
8153 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8156 2015-08-06 Pedro Alves <palves@redhat.com>
8158 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8159 (linux_thread_alive): Use lwp_is_marked_dead.
8160 (extended_event_reported): Delete.
8161 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8162 instead of extended_event_reported.
8163 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8165 (lwp_is_marked_dead): New function.
8166 (lwp_running): Use lwp_is_marked_dead.
8167 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8170 2015-08-06 Pedro Alves <palves@redhat.com>
8172 * linux-low.c (linux_wait_1): Move fork event output out of the
8173 !report_to_gdb check. Pass event_child->waitstatus to
8174 target_waitstatus_to_string instead of ourstatus.
8176 2015-08-04 Yao Qi <yao.qi@linaro.org>
8178 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8179 if current_thread is 32 bit.
8181 2015-08-04 Yao Qi <yao.qi@linaro.org>
8183 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8184 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8185 * server.c (extended_protocol): Remove "static".
8186 * server.h (extended_protocol): Declare it.
8188 2015-08-04 Yao Qi <yao.qi@linaro.org>
8190 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8191 both aarch64 and aarch32.
8192 (aarch64_set_pc): Likewise.
8194 2015-08-04 Yao Qi <yao.qi@linaro.org>
8196 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8197 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8198 arm-with-neon.xml to srv_xmlfiles.
8199 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8200 (is_64bit_tdesc): New function.
8201 (aarch64_linux_read_description): New function.
8202 (aarch64_arch_setup): Call aarch64_linux_read_description.
8203 (regs_info): Rename to regs_info_aarch64.
8204 (aarch64_regs_info): Return right regs_info.
8205 (initialize_low_arch): Call initialize_low_arch_aarch32.
8207 2015-08-04 Yao Qi <yao.qi@linaro.org>
8209 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8210 * linux-aarch32-low.c: New file.
8211 * linux-aarch32-low.h: New file.
8212 * linux-arm-low.c (arm_fill_gregset): Move it to
8213 linux-aarch32-low.c.
8214 (arm_store_gregset): Likewise.
8215 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8216 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8217 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8218 (regs_info): Rename to regs_info_arm.
8219 (arm_regs_info): Return regs_info_aarch32 if
8220 have_ptrace_getregset is 1 and target description is
8221 arm_with_neon or arm_with_vfpv3.
8222 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8223 Call initialize_low_arch_aarch32 instead.
8225 2015-08-04 Yao Qi <yao.qi@linaro.org>
8227 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8228 * linux-low.c: ... here.
8229 * linux-low.h (have_ptrace_getregset): Declare it.
8231 2015-08-04 Pedro Alves <palves@redhat.com>
8233 * thread-db.c (struct thread_db): Use new typedefs.
8234 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8236 (disable_thread_event_reporting): Cast result of dlsym to
8237 destination function pointer type.
8238 (thread_db_mourn): Use td_ta_delete_ftype.
8240 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8242 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8244 (CDX_BREAKPOINT): Define for R2.
8245 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8246 (the_low_target): Add comments.
8248 2015-07-30 Yao Qi <yao.qi@linaro.org>
8250 * linux-arm-low.c (arm_hwcap): Remove it.
8251 (arm_read_description): New local variable arm_hwcap. Don't
8252 set arm_hwcap to zero.
8254 2015-07-30 Yao Qi <yao.qi@linaro.org>
8256 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8257 Use regcache->tdesc instead.
8258 (arm_store_wmmxregset): Likewise.
8259 (arm_fill_vfpregset): Likewise.
8260 (arm_store_vfpregset): Likewise.
8262 2015-07-30 Yao Qi <yao.qi@linaro.org>
8264 * linux-arm-low.c: Include arch/arm.h.
8265 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8266 (arm_store_gregset): Likewise.
8268 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8270 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8271 ptrace's 4th parameter.
8273 2015-07-27 Yao Qi <yao.qi@linaro.org>
8275 * configure.srv (case aarch64*-*-linux*): Don't set
8278 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8280 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8282 * linux-arm-low.c: Likewise.
8283 * linux-cris-low.c: Likewise.
8284 * linux-crisv32-low.c: Likewise.
8285 * linux-low.c: Likewise.
8286 * linux-m68k-low.c: Likewise.
8287 * linux-mips-low.c: Likewise.
8288 * linux-nios2-low.c: Likewise.
8289 * linux-s390-low.c: Likewise.
8290 * linux-sparc-low.c: Likewise.
8291 * linux-tic6x-low.c: Likewise.
8292 * linux-tile-low.c: Likewise.
8293 * linux-x86-low.c: Likewise.
8295 2015-07-24 Pedro Alves <palves@redhat.com>
8297 * config.in: Regenerate.
8298 * configure: Regenerate.
8300 2015-07-24 Pedro Alves <palves@redhat.com>
8302 * acinclude.m4: Include ../ptrace.m4.
8303 * configure.ac: Call GDB_AC_PTRACE.
8304 * config.in, configure: Regenerate.
8306 2015-07-24 Yao Qi <yao.qi@linaro.org>
8308 * linux-low.c (linux_create_inferior): Remove setting to
8309 proc->priv->new_inferior.
8310 (linux_attach): Likewise.
8311 (linux_low_filter_event): Likewise.
8312 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8314 2015-07-24 Yao Qi <yao.qi@linaro.org>
8316 * linux-low.c (linux_arch_setup): New function.
8317 (linux_low_filter_event): If proc->tdesc is NULL and
8318 proc->attached is true, call the_low_target.arch_setup.
8319 Otherwise, keep status pending, and return.
8320 (linux_resume_one_lwp_throw): Don't call get_pc if
8321 thread->while_stepping isn't NULL. Don't call
8322 get_thread_regcache if proc->tdesc is NULL.
8323 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8324 (linux_target_ops): Install arch_setup.
8325 * server.c (start_inferior): Call the_target->arch_setup.
8326 * target.h (struct target_ops) <arch_setup>: New field.
8327 (target_arch_setup): New marco.
8328 * lynx-low.c (lynx_target_ops): Update.
8329 * nto-low.c (nto_target_ops): Update.
8330 * spu-low.c (spu_target_ops): Update.
8331 * win32-low.c (win32_target_ops): Update.
8333 2015-07-24 Yao Qi <yao.qi@linaro.org>
8335 * linux-low.c (linux_add_process): Don't set
8336 proc->priv->new_inferior.
8337 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8338 (linux_attach): Likewise.
8340 2015-07-24 Yao Qi <yao.qi@linaro.org>
8342 * server.c (start_inferior): Code refactor.
8344 2015-07-24 Yao Qi <yao.qi@linaro.org>
8346 * server.c (process_serial_event): Set general_thread.
8348 2015-07-21 Yao Qi <yao.qi@linaro.org>
8350 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8351 aarch64_linux_get_debug_reg_capacity.
8353 2015-07-17 Yao Qi <yao.qi@linaro.org>
8355 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8356 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8357 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8358 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8359 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8360 (AARCH64_HWP_ALIGNMENT): Likewise.
8361 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8362 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8363 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8364 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8365 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8366 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8367 (struct aarch64_debug_reg_state): Likewise.
8368 (struct arch_lwp_info): Likewise.
8369 (aarch64_align_watchpoint): Likewise.
8370 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8371 (aarch64_watchpoint_length): Likewise.
8372 (aarch64_point_encode_ctrl_reg): Likewise
8373 (aarch64_point_is_aligned): Likewise.
8374 (aarch64_align_watchpoint): Likewise.
8375 (aarch64_linux_set_debug_regs):
8376 (aarch64_dr_state_insert_one_point): Likewise.
8377 (aarch64_dr_state_remove_one_point): Likewise.
8378 (aarch64_handle_breakpoint): Likewise.
8379 (aarch64_handle_aligned_watchpoint): Likewise.
8380 (aarch64_handle_unaligned_watchpoint): Likewise.
8381 (aarch64_handle_watchpoint): Likewise.
8383 2015-07-17 Yao Qi <yao.qi@linaro.org>
8385 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8386 and don't aarch64_get_debug_reg_state. All callers update.
8387 (aarch64_handle_aligned_watchpoint): Likewise.
8388 (aarch64_handle_unaligned_watchpoint): Likewise.
8389 (aarch64_handle_watchpoint): Likewise.
8390 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8391 (aarch64_remove_point): Likewise.
8393 2015-07-17 Yao Qi <yao.qi@linaro.org>
8395 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8397 (aarch64_handle_unaligned_watchpoint): Likewise.
8399 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8401 Revert the previous 3 commits:
8402 Move gdb_regex* to common/
8403 Move linux_find_memory_regions_full & co.
8404 gdbserver build-id attribute generator
8406 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8407 Jan Kratochvil <jan.kratochvil@redhat.com>
8409 gdbserver build-id attribute generator.
8410 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8411 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8412 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8414 (get_dynamic): Use find_pdhr to traverse program headers.
8415 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8416 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8417 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8418 (get_hex_build_id): New.
8419 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8420 to reply XML document.
8422 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8423 Jan Kratochvil <jan.kratochvil@redhat.com>
8425 * target.c: Include target/target-utils.h and fcntl.h.
8426 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8427 (target_fileio_read_stralloc): New functions.
8429 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8431 * Makefile.in (OBS): Add gdb_regex.o.
8433 * config.in: Rebuilt.
8434 * configure: Rebuilt.
8436 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8437 Jan Kratochvil <jan.kratochvil@redhat.com>
8439 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8440 * Makefile.in (OBS): Add target-utils.o.
8441 (linux-maps.o, target-utils.o): New.
8442 * configure.srv (srv_linux_obj): Add linux-maps.o.
8444 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8446 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8448 (the_low_target): Install it.
8450 2015-07-14 Pedro Alves <palves@redhat.com>
8452 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8453 Instead, ignore ECHILD, and throw an error for other errnos.
8455 2015-07-10 Pedro Alves <palves@redhat.com>
8457 * event-loop.c (struct callback_event) <data>: Change type to
8458 gdb_client_data instance instead of gdb_client_data pointer.
8459 (append_callback_event): Adjust.
8461 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8463 * linux-aarch64-low.c: Add comments for each linux_target_ops
8464 method. Remove comments already covered in target_ops and
8465 linux_target_ops definitions.
8466 (the_low_target): Add comments for each unimplemented method.
8468 2015-07-09 Yao Qi <yao.qi@linaro.org>
8470 * linux-aarch64-low.c (aarch64_regmap): Remove.
8471 (aarch64_usrregs_info): Remove.
8472 (regs_info): Set field usrregs to NULL.
8474 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8476 * linux-low.c: Include "rsp-low.h"
8477 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8478 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8479 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8480 (handle_btrace_enable_pt): New.
8481 (handle_btrace_general_set): Support "pt".
8482 (handle_btrace_conf_general_set): Support "pt:size".
8484 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8486 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8489 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8491 * linux-aarch64-low.c: Remove comment about endianness.
8492 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8493 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8496 2015-06-24 Gary Benson <gbenson@redhat.com>
8498 * linux-i386-ipa.c (stdint.h): Do not include.
8499 * lynx-i386-low.c (stdint.h): Likewise.
8500 * lynx-ppc-low.c (stdint.h): Likewise.
8501 * mem-break.c (stdint.h): Likewise.
8502 * thread-db.c (stdint.h): Likewise.
8503 * tracepoint.c (stdint.h): Likewise.
8504 * win32-low.c (stdint.h): Likewise.
8506 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8508 * server.c (write_qxfer_response): Update call to
8509 remote_escape_output.
8511 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8512 Jan Kratochvil <jan.kratochvil@redhat.com>
8514 Merge multiple hex conversions.
8515 * gdbreplay.c (tohex): Rename to 'fromhex'.
8516 (logchar): Use fromhex.
8518 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8520 * server.c (handle_qxfer_libraries): Set `version' attribute for
8523 2015-06-10 Gary Benson <gbenson@redhat.com>
8525 * target.h (struct target_ops) <multifs_open>: New field.
8526 <multifs_unlink>: Likewise.
8527 <multifs_readlink>: Likewise.
8528 * linux-low.c (nat/linux-namespaces.h): New include.
8529 (linux_target_ops): Initialize the_target->multifs_open,
8530 the_target->multifs_unlink and the_target->multifs_readlink.
8531 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8532 * hostio.c (hostio_fs_pid): New static variable.
8533 (hostio_handle_new_gdb_connection): New function.
8534 (handle_setfs): Likewise.
8535 (handle_open): Use the_target->multifs_open as appropriate.
8536 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8537 (handle_readlink): Use the_target->multifs_readlink as
8539 (handle_vFile): Handle vFile:setfs packets.
8540 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8541 after target_handle_new_gdb_connection.
8543 2015-06-10 Gary Benson <gbenson@redhat.com>
8545 * configure.ac (AC_CHECK_FUNCS): Add setns.
8546 * config.in: Regenerate.
8547 * configure: Likewise.
8548 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8549 (linux-namespaces.o): New rule.
8550 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8552 2015-06-09 Gary Benson <gbenson@redhat.com>
8554 * hostio.c (handle_open): Process mode argument with
8555 fileio_to_host_mode.
8557 2015-06-01 Yao Qi <yao.qi@linaro.org>
8559 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8560 * linux-x86-low.c: Likewise.
8562 2015-05-28 Don Breazeal <donb@codesourcery.com>
8564 * linux-low.c (handle_extended_wait): Initialize
8565 thread_info.last_resume_kind for new fork children.
8567 2015-05-15 Pedro Alves <palves@redhat.com>
8569 * target.h (target_handle_new_gdb_connection): Rewrite using if
8570 wrapped in do/while.
8572 2015-05-14 Joel Brobecker <brobecker@adacore.com>
8574 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8575 * configure, config.in: Regenerate.
8576 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8579 2015-05-12 Don Breazeal <donb@codesourcery.com>
8581 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8582 PTRACE_EVENT_VFORK_DONE.
8583 (linux_low_ptrace_options, extended_event_reported): Add vfork
8585 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8586 and "vforkdone" for RSP 'T' Stop Reply Packet.
8587 * server.h (report_vfork_events): Declare
8590 2015-05-12 Don Breazeal <donb@codesourcery.com>
8592 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8593 (the_low_target) <new_fork>: Initialize new member.
8594 * linux-arm-low.c (arm_new_fork): New function.
8595 (the_low_target) <new_fork>: Initialize new member.
8596 * linux-low.c (handle_extended_wait): Call new target function
8598 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8599 * linux-mips-low.c (mips_add_watchpoint): New function
8600 extracted from mips_insert_point.
8601 (the_low_target) <new_fork>: Initialize new member.
8602 (mips_linux_new_fork): New function.
8603 (mips_insert_point): Call mips_add_watchpoint.
8604 * linux-x86-low.c (x86_linux_new_fork): New function.
8605 (the_low_target) <new_fork>: Initialize new member.
8607 2015-05-12 Don Breazeal <donb@codesourcery.com>
8609 * linux-low.c (handle_extended_wait): Implement return value,
8610 rename argument 'event_child' to 'event_lwp', handle
8611 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8612 (linux_low_ptrace_options): New function.
8613 (linux_low_filter_event): Call linux_low_ptrace_options,
8614 use different argument fo linux_enable_event_reporting,
8615 use return value from handle_extended_wait.
8616 (extended_event_reported): New function.
8617 (linux_wait_1): Call extended_event_reported and set
8618 status to report fork events.
8619 (linux_write_memory): Add pid to debug message.
8620 (reset_lwp_ptrace_options_callback): New function.
8621 (linux_handle_new_gdb_connection): New function.
8622 (linux_target_ops): Initialize new structure member.
8623 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8624 * lynx-low.c: Initialize new structure member.
8625 * remote-utils.c (prepare_resume_reply): Implement stop reason
8626 "fork" for "T" stop message.
8627 * server.c (handle_query): Call handle_new_gdb_connection.
8628 * server.h (report_fork_events): Declare global flag.
8629 * target.h (struct target_ops) <handle_new_gdb_connection>:
8631 (target_handle_new_gdb_connection): New macro.
8632 * win32-low.c: Initialize new structure member.
8634 2015-05-12 Don Breazeal <donb@codesourcery.com>
8636 * mem-break.c (APPEND_TO_LIST): Define macro.
8637 (clone_agent_expr): New function.
8638 (clone_one_breakpoint): New function.
8639 (clone_all_breakpoints): New function.
8640 * mem-break.h: Declare new functions.
8642 2015-05-12 Don Breazeal <donb@codesourcery.com>
8644 * linux-low.c (linux_supports_fork_events): New function.
8645 (linux_supports_vfork_events): New function.
8646 (linux_target_ops): Initialize new structure members.
8647 (initialize_low): Call linux_check_ptrace_features.
8648 * lynx-low.c (lynx_target_ops): Initialize new structure
8650 * server.c (report_fork_events, report_vfork_events):
8652 (handle_query): Add new features to qSupported packet and
8654 (captured_main): Initialize new global variables.
8655 * target.h (struct target_ops) <supports_fork_events>:
8657 <supports_vfork_events>: New member.
8658 (target_supports_fork_events): New macro.
8659 (target_supports_vfork_events): New macro.
8660 * win32-low.c (win32_target_ops): Initialize new structure
8663 2015-05-12 Gary Benson <gbenson@redhat.com>
8665 * server.c (handle_qxfer_exec_file): Use current process
8668 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8670 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8671 Remove HAVE_PTRACE_GETREGS conditionals.
8672 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8673 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8675 2015-05-08 Yao Qi <yao.qi@linaro.org>
8677 * linux-low.c (linux_supports_conditional_breakpoints): New
8679 (linux_target_ops): Install new target method.
8680 * lynx-low.c (lynx_target_ops): Install NULL hook for
8681 supports_conditional_breakpoints.
8682 * nto-low.c (nto_target_ops): Likewise.
8683 * spu-low.c (spu_target_ops): Likewise.
8684 * win32-low.c (win32_target_ops): Likewise.
8685 * server.c (handle_query): Check
8686 target_supports_conditional_breakpoints.
8687 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8689 (target_supports_conditional_breakpoints): New macro.
8691 2015-05-06 Pedro Alves <palves@redhat.com>
8694 * server.c (start_inferior): If the process exits, mourn it.
8696 2015-04-21 Gary Benson <gbenson@redhat.com>
8698 * hostio.c (fileio_open_flags_to_host): Factored out to
8699 fileio_to_host_openflags in common/fileio.c. Single use
8702 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8704 * linux-xtensa-low.c (xtensa_fill_gregset)
8705 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8708 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8710 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8711 (regs_info): Replace usrregs pointer with NULL.
8713 2015-04-17 Gary Benson <gbenson@redhat.com>
8715 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8716 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8717 * server.c (handle_qxfer_exec_file): New function.
8718 (qxfer_packets): Add exec-file entry.
8719 (handle_query): Report qXfer:exec-file:read as supported packet.
8721 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8723 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8725 2015-04-09 Gary Benson <gbenson@redhat.com>
8727 * hostio-errno.c (errno_to_fileio_error): Remove function.
8728 Update caller to use remote_fileio_to_fio_error.
8730 2015-04-09 Yao Qi <yao.qi@linaro.org>
8732 * linux-low.c (linux_insert_point): Call
8733 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8734 (linux_remove_point): Call remove_memory_breakpoint if type is
8736 * linux-x86-low.c (x86_insert_point): Don't call
8737 insert_memory_breakpoint.
8738 (x86_remove_point): Don't call remove_memory_breakpoint.
8740 2015-04-01 Pedro Alves <palves@redhat.com>
8741 Cleber Rosa <crosa@redhat.com>
8743 * server.c (gdbserver_usage): Reorganize and extend the usage
8746 2015-03-24 Pedro Alves <palves@redhat.com>
8748 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8749 output. Also dump TRAP_TRACE.
8750 (linux_low_filter_event): In debug output, distinguish a
8751 resume_stop SIGSTOP from a delayed SIGSTOP.
8753 2015-03-24 Gary Benson <gbenson@redhat.com>
8755 * linux-x86-low.c (x86_linux_new_thread): Moved to
8757 (x86_linux_prepare_to_resume): Likewise.
8759 2015-03-24 Gary Benson <gbenson@redhat.com>
8761 * Makefile.in (x86-linux-dregs.o): New rule.
8762 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8763 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8764 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8765 (x86_linux_dr_get): Likewise.
8766 (x86_linux_dr_set): Likewise.
8767 (update_debug_registers_callback): Likewise.
8768 (x86_linux_dr_set_addr): Likewise.
8769 (x86_linux_dr_get_addr): Likewise.
8770 (x86_linux_dr_set_control): Likewise.
8771 (x86_linux_dr_get_control): Likewise.
8772 (x86_linux_dr_get_status): Likewise.
8773 (x86_linux_update_debug_registers): Likewise.
8775 2015-03-24 Gary Benson <gbenson@redhat.com>
8777 * linux-x86-low.c (x86_linux_update_debug_registers):
8778 New function, factored out from...
8779 (x86_linux_prepare_to_resume): ...this.
8781 2015-03-24 Gary Benson <gbenson@redhat.com>
8783 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8784 (x86_linux_dr_set): Likewise.
8785 (update_debug_registers_callback): Likewise.
8786 (x86_linux_dr_set_addr): Likewise.
8787 (x86_linux_dr_get_addr): Likewise.
8788 (x86_linux_dr_set_control): Likewise.
8789 (x86_linux_dr_get_control): Likewise.
8790 (x86_linux_dr_get_status): Likewise.
8791 (x86_linux_prepare_to_resume): Likewise.
8793 2015-03-24 Gary Benson <gbenson@redhat.com>
8795 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8796 Use perror_with_name. Pass string through gettext.
8797 (x86_linux_dr_set): Likewise.
8799 2015-03-24 Gary Benson <gbenson@redhat.com>
8801 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8802 (x86_linux_dr_set_addr): ...this.
8803 (x86_dr_low_get_addr): Rename to...
8804 (x86_linux_dr_get_addr): ...this.
8805 (x86_dr_low_set_control): Rename to...
8806 (x86_linux_dr_set_control): ...this.
8807 (x86_dr_low_get_control): Rename to...
8808 (x86_linux_dr_get_control): ...this.
8809 (x86_dr_low_get_status): Rename to...
8810 (x86_linux_dr_get_status): ...this.
8811 (x86_dr_low): Update with new function names.
8813 2015-03-24 Gary Benson <gbenson@redhat.com>
8815 * Makefile.in (x86-linux.o): New rule.
8816 * configure.srv: Add x86-linux.o to relevant targets.
8817 * linux-low.c (lwp_set_arch_private_info): New function.
8818 (lwp_arch_private_info): Likewise.
8819 * linux-x86-low.c: Include nat/x86-linux.h.
8820 (arch_lwp_info): Removed structure.
8821 (update_debug_registers_callback):
8822 Use lwp_set_debug_registers_changed.
8823 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8824 and lwp_set_debug_registers_changed.
8825 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8827 2015-03-24 Gary Benson <gbenson@redhat.com>
8829 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8830 * linux-arm-low.c (arm_new_thread): Likewise.
8831 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8832 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8833 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8834 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8836 2015-03-24 Gary Benson <gbenson@redhat.com>
8838 * linux-low.c (ptid_of_lwp): New function.
8839 (lwp_is_stopped): Likewise.
8840 (lwp_stop_reason): Likewise.
8841 * linux-x86-low.c (update_debug_registers_callback):
8843 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8846 2015-03-24 Gary Benson <gbenson@redhat.com>
8848 * linux-low.h (linux_stop_lwp): Remove declaration.
8850 2015-03-24 Gary Benson <gbenson@redhat.com>
8852 * linux-low.h: Include nat/linux-nat.h.
8853 * linux-low.c (iterate_over_lwps_args): New structure.
8854 (iterate_over_lwps_filter): New function.
8855 (iterate_over_lwps): Likewise.
8856 * linux-x86-low.c (update_debug_registers_callback):
8857 Update signature to what iterate_over_lwps expects.
8858 Remove PID check that iterate_over_lwps now performs.
8859 (x86_dr_low_set_addr): Use iterate_over_lwps.
8860 (x86_dr_low_set_control): Likewise.
8862 2015-03-24 Gary Benson <gbenson@redhat.com>
8864 * linux-x86-low.c (x86_debug_reg_state): New function.
8865 (x86_linux_prepare_to_resume): Use the above.
8867 2015-03-24 Gary Benson <gbenson@redhat.com>
8869 * linux-low.c (current_lwp_ptid): New function.
8870 * linux-x86-low.c: Include nat/linux-nat.h.
8871 (x86_dr_low_get_addr): Use current_lwp_ptid.
8872 (x86_dr_low_get_control): Likewise.
8873 (x86_dr_low_get_status): Likewise.
8875 2015-03-20 Pedro Alves <palves@redhat.com>
8877 * tracepoint.c (cmd_qtstatus): Make "str" const.
8879 2015-03-20 Pedro Alves <palves@redhat.com>
8881 * server.c (handle_general_set): Make "req_str" const.
8883 2015-03-19 Pedro Alves <palves@redhat.com>
8885 * linux-low.c (linux_resume_one_lwp): Rename to ...
8886 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8887 instead call perror_with_name.
8888 (check_ptrace_stopped_lwp_gone): New function.
8889 (linux_resume_one_lwp): Reimplement as wrapper around
8890 linux_resume_one_lwp_throw that swallows errors if the LWP is
8893 2015-03-19 Pedro Alves <palves@redhat.com>
8895 * linux-low.c (count_events_callback, select_event_lwp_callback):
8896 No longer check whether the thread has resume_stop as last resume
8899 2015-03-19 Pedro Alves <palves@redhat.com>
8901 * linux-low.c (count_events_callback, select_event_lwp_callback):
8902 Use the lwp's status_pending_p field, not the thread's.
8904 2015-03-19 Pedro Alves <palves@redhat.com>
8906 * linux-low.c (select_event_lwp_callback): Update comments to
8907 no longer mention SIGTRAP.
8909 2015-03-18 Gary Benson <gbenson@redhat.com>
8911 * server.c (handle_query): Do not report vFile:fstat as supported.
8913 2015-03-11 Gary Benson <gbenson@redhat.com>
8915 * hostio.c (sys/types.h): New include.
8916 (sys/stat.h): Likewise.
8917 (common-remote-fileio.h): Likewise.
8918 (handle_fstat): New function.
8919 (handle_vFile): Handle vFile:fstat packets.
8921 2015-03-11 Gary Benson <gbenson@redhat.com>
8923 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8924 struct stat.st_blocks and struct stat.st_blksize.
8925 * configure: Regenerate.
8926 * config.in: Likewise.
8927 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8928 (OBS): Add common-remote-fileio.o.
8929 (common-remote-fileio.o): New rule.
8931 2015-03-09 Pedro Alves <palves@redhat.com>
8933 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8934 'struct sockaddr' pointer in 'accept' call.
8936 2015-03-09 Pedro Alves <palves@redhat.com>
8939 2015-03-07 Pedro Alves <palves@redhat.com>
8940 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8941 or <winsock2.h> here. Instead include "gdb_socket.h".
8942 (remote_open): Use union gdb_sockaddr_u.
8943 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8944 or <winsock2.h> here. Instead include "gdb_socket.h".
8945 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8946 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8948 (init_named_socket, gdb_agent_helper_thread): Use union
8951 2015-03-07 Pedro Alves <palves@redhat.com>
8953 * configure.ac (build_warnings): Move
8954 -Wdeclaration-after-statement to the C-specific set.
8955 * configure: Regenerate.
8957 2015-03-07 Pedro Alves <palves@redhat.com>
8959 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8960 or <winsock2.h> here. Instead include "gdb_socket.h".
8961 (remote_open): Use union gdb_sockaddr_u.
8962 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8963 or <winsock2.h> here. Instead include "gdb_socket.h".
8964 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8965 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8967 (init_named_socket, gdb_agent_helper_thread): Use union
8970 2015-03-07 Pedro Alves <palves@redhat.com>
8972 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8975 2015-03-06 Yao Qi <yao.qi@linaro.org>
8977 * linux-aarch64-low.c (aarch64_insert_point): Use
8978 show_debug_regs as a boolean.
8979 (aarch64_remove_point): Likewise.
8981 2015-03-05 Pedro Alves <palves@redhat.com>
8983 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8984 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8985 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8986 * nto-low.c (nto_target_ops): Likewise.
8987 * spu-low.c (spu_target_ops): Likewise.
8988 * win32-low.c (win32_target_ops): Likewise.
8990 2015-03-04 Pedro Alves <palves@redhat.com>
8992 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
8993 Decide whether a breakpoint triggered based on the SIGTRAP's
8995 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8996 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
8997 (linux_low_filter_event): Check for breakpoints before checking
8999 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9001 (linux_stopped_by_sw_breakpoint)
9002 (linux_supports_stopped_by_sw_breakpoint)
9003 (linux_stopped_by_hw_breakpoint)
9004 (linux_supports_stopped_by_hw_breakpoint): New functions.
9005 (linux_target_ops): Install new target methods.
9007 2015-03-04 Pedro Alves <palves@redhat.com>
9009 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9010 * server.c (swbreak_feature, hwbreak_feature): New globals.
9011 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9012 (captured_main): Clear swbreak_feature and hwbreak_feature.
9013 * server.h (swbreak_feature, hwbreak_feature): Declare.
9014 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9015 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9016 supports_stopped_by_hw_breakpoint>: New fields.
9017 (target_supports_stopped_by_sw_breakpoint)
9018 (target_stopped_by_sw_breakpoint)
9019 (target_supports_stopped_by_hw_breakpoint)
9020 (target_stopped_by_hw_breakpoint): Declare.
9022 2015-03-04 Pedro Alves <palves@redhat.com>
9024 enum lwp_stop_reason -> enum target_stop_reason
9025 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9026 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9027 (linux_wait_1, stuck_in_jump_pad_callback)
9028 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9029 (linux_stopped_by_watchpoint):
9030 * linux-low.h (enum lwp_stop_reason): Delete.
9031 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9032 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9034 2015-03-04 Yao Qi <yao.qi@linaro.org>
9036 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9038 2015-03-03 Gary Benson <gbenson@redhat.com>
9040 * hostio.c (handle_vFile): Fix prefix lengths.
9042 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9044 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9047 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9049 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9050 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9051 (clean): Add "rm -f" for above C files.
9052 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9053 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9054 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9055 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9056 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9057 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9058 (init_registers_s390x_vx_linux64)
9059 (init_registers_s390x_tevx_linux64)
9060 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9061 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9063 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9064 (s390_store_vxrs_high): New functions.
9065 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9067 (s390_arch_setup): Add logic for selecting one of the new target
9068 descriptions. Activate the new vector regsets if applicable.
9069 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9070 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9071 and init_registers_s390x_tevx_linux64.
9073 2015-03-01 Pedro Alves <palves@redhat.com>
9075 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9078 2015-02-27 Pedro Alves <palves@redhat.com>
9080 * linux-x86-low.c (u_debugreg_offset): New function.
9081 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9083 2015-02-27 Pedro Alves <palves@redhat.com>
9085 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9086 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9087 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9088 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9089 (ps_lsetfpregs, ps_getpid)
9090 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9091 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9092 (ps_lsetxregs, ps_plog): Declare.
9094 2015-02-27 Pedro Alves <palves@redhat.com>
9096 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9097 IP_AGENT_EXPORT_FUNC.
9098 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9099 IP_AGENT_EXPORT_FUNC.
9100 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9101 (IP_AGENT_EXPORT): Delete.
9102 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9103 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9104 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9105 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9106 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9107 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9108 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9109 (traceframe_read_count, traceframe_write_count)
9110 (traceframes_created, trace_state_variables, get_raw_reg)
9111 (get_trace_state_variable_value, set_trace_state_variable_value)
9112 (ust_loaded, helper_thread_id, cmd_buf): Use
9113 IPA_SYM_EXPORTED_NAME.
9114 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9115 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9116 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9117 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9118 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9119 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9120 EXTERN_C_PUSH/EXTERN_C_POP.
9121 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9122 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9123 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9124 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9125 (traceframe_write_count, traceframe_read_count)
9126 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9127 (about_to_request_buffer_space, get_trace_state_variable_value)
9128 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9129 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9130 EXTERN_C_PUSH/EXTERN_C_POP.
9131 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9132 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9133 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9134 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9135 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9136 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9137 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9138 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9140 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9141 (IP_AGENT_EXPORT_VAR_DECL): Define.
9143 (gdb_agent_get_raw_reg): Declare.
9145 2015-02-27 Tom Tromey <tromey@redhat.com>
9146 Pedro Alves <palves@redhat.com>
9148 Rename symbols whose names are reserved C++ keywords throughout.
9150 2015-02-27 Pedro Alves <palves@redhat.com>
9152 * Makefile.in (COMPILER): New, get it from autoconf.
9153 (CXX): Get from autoconf instead.
9154 (COMPILE.pre): Use COMPILER.
9155 (CC-LD): Rename to ...
9156 (CC_LD): ... this. Use COMPILER.
9157 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9158 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9159 * acinclude.m4: Include build-with-cxx.m4.
9160 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9161 Disable -Werror by default if building in C++ mode.
9162 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9163 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9164 the C++ compiler. Save/restore CXXFLAGS too.
9165 * configure: Regenerate.
9167 2015-02-27 Pedro Alves <palves@redhat.com>
9169 * acinclude.m4: Include libiberty.m4.
9170 * configure.ac: Call libiberty_INIT.
9171 * config.in, configure: Regenerate.
9173 2015-02-26 Pedro Alves <palves@redhat.com>
9175 * linux-low.c (linux_wait_1): When incrementing the PC past a
9176 program breakpoint always use the_low_target.breakpoint_len as
9177 increment, rather than the maximum between that and
9178 the_low_target.decr_pc_after_break.
9180 2015-02-23 Pedro Alves <palves@redhat.com>
9182 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9183 thread was doing a step-over; always adjust the PC if
9184 we stepped over a permanent breakpoint.
9185 (linux_wait_1): If we stepped over breakpoint that was on top of a
9186 permanent breakpoint, manually advance the PC past it.
9188 2015-02-23 Pedro Alves <palves@redhat.com>
9190 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9192 (x86_fill_gregset, x86_store_gregset): Use it when handling
9195 2015-02-20 Pedro Alves <palves@redhat.com>
9197 * thread-db.c: Include "nat/linux-procfs.h".
9198 (thread_db_init): Skip listing new threads if the kernel supports
9199 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9201 2015-02-20 Pedro Alves <palves@redhat.com>
9203 * linux-low.c (status_pending_p_callback): Use ptid_match.
9205 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9207 PR breakpoints/16812
9208 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9209 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9210 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9212 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9214 PR breakpoints/15956
9215 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9217 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9219 * linux-low.c (linux_low_btrace_conf): Print size.
9220 * server.c (handle_btrace_conf_general_set): New.
9221 (hanle_general_set): Call handle_btrace_conf_general_set.
9222 (handle_query): Report Qbtrace-conf:bts:size as supported.
9224 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9226 * linux-low.c (linux_low_enable_btrace): Update parameters.
9227 (linux_low_btrace_conf): New.
9228 (linux_target_ops)<to_btrace_conf>: Initialize.
9229 * server.c (current_btrace_conf): New.
9230 (handle_btrace_enable): Rename to ...
9231 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
9232 to target_enable_btrace. Update comment. Update users.
9233 (handle_qxfer_btrace_conf): New.
9234 (qxfer_packets): Add btrace-conf entry.
9235 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9236 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9237 (target_ops)<read_btrace_conf>: New.
9238 (target_enable_btrace): Update parameters.
9239 (target_read_btrace_conf): New.
9241 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9243 * server.c (handle_btrace_general_set): Remove call to
9244 target_supports_btrace.
9245 (supported_btrace_packets): New.
9246 (handle_query): Call supported_btrace_packets.
9247 * target.h: include btrace-common.h.
9248 (btrace_target_info): Removed.
9249 (supports_btrace, target_supports_btrace): Update parameters.
9251 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9253 * Makefile.in (SFILES): Add common/btrace-common.c.
9254 (OBS): Add common/btrace-common.o.
9255 (btrace-common.o): Add build rules.
9256 * linux-low: Include btrace-common.h.
9257 (linux_low_read_btrace): Use struct btrace_data. Call
9258 btrace_data_init and btrace_data_fini.
9260 2015-02-06 Pedro Alves <palves@redhat.com>
9262 * thread-db.c (find_new_threads_callback): Add debug output.
9264 2015-02-04 Pedro Alves <palves@redhat.com>
9266 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9267 (resume_stopped_resumed_lwps): New function.
9268 (linux_wait_for_event_filtered): Use it.
9270 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9272 * Makefile.in (SFILES): Add linux-personality.c.
9273 (linux-personality.o): New rule.
9274 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9275 list of objects to be built.
9276 * linux-low.c: Include nat/linux-personality.h.
9277 (linux_create_inferior): Remove code to disable address space
9278 randomization (moved to ../nat/linux-personality.c). Create
9279 cleanup to disable address space randomization.
9281 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9283 * Makefile.in (posix-strerror.o): New rule.
9284 (mingw-strerror.o): Likewise.
9285 * configure: Regenerated.
9286 * configure.ac: Source file ../common/common.host. Initialize new
9287 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9289 2015-01-14 Yao Qi <yao@codesourcery.com>
9291 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9292 (ppc-linux.o): New rule.
9293 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9294 * configure.ac: AC_CHECK_FUNCS(getauxval).
9295 * config.in: Re-generated.
9296 * configure: Re-generated.
9297 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9298 ppc64_64bit_inferior_p
9300 2015-01-14 Yao Qi <yao@codesourcery.com>
9302 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9303 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9304 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9305 (PT_ORIG_R3, PT_TRAP): Likewise.
9306 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9307 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9308 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9310 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9312 * i387-fp.c (i387_cache_to_xsave): In look over
9313 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9314 zmmh_low_space field by use of zmmh_high_space.
9316 2015-01-09 Pedro Alves <palves@redhat.com>
9318 * linux-low.c (step_over_bkpt): Move higher up in the file.
9319 (handle_extended_wait): Don't store the stop_pc here.
9320 (get_stop_pc): Adjust comments and rename to ...
9321 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9322 stopped for a software breakpoint or hardware breakpoint.
9323 (thread_still_has_status_pending_p): New function.
9324 (status_pending_p_callback): Use
9325 thread_still_has_status_pending_p. If the event is no longer
9326 interesting, resume the LWP.
9327 (handle_tracepoints): Add assert.
9328 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9329 (wstatus_maybe_breakpoint): New function.
9330 (cancel_breakpoint): Delete function.
9331 (check_stopped_by_watchpoint): New function, factored out from
9332 linux_low_filter_event.
9333 (lp_status_maybe_breakpoint): Delete function.
9334 (linux_low_filter_event): Remove filter_ptid argument.
9335 Leave thread group exits pending here. Store the LWP's stop PC.
9336 Always leave events pending.
9337 (linux_wait_for_event_filtered): Pull all events out of the
9338 kernel, and leave them all pending.
9339 (count_events_callback, select_event_lwp_callback): Consider all
9341 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9342 (select_event_lwp): Only give preference to the stepping LWP in
9343 all-stop mode. Adjust comments.
9344 (ignore_event): New function.
9345 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9346 references to cancel_breakpoints. Adjust to renames. Also give
9347 equal priority to all LWPs that have had events in non-stop mode.
9348 If reporting a software breakpoint event, unadjust the LWP's PC.
9349 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9350 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9352 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9353 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9354 (linux_stopped_by_watchpoint): Adjust.
9355 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9356 * linux-low.h (enum lwp_stop_reason): New.
9357 (struct lwp_info) <stop_pc>: Adjust comment.
9358 <stopped_by_watchpoint>: Delete field.
9359 <stop_reason>: New field.
9360 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9361 * mem-break.c (software_breakpoint_inserted_here)
9362 (hardware_breakpoint_inserted_here): New function.
9363 * mem-break.h (software_breakpoint_inserted_here)
9364 (hardware_breakpoint_inserted_here): Declare.
9365 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9366 (cancel_breakpoints): Delete.
9367 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9368 (upload_fast_traceframes): Remove references to
9371 2015-01-09 Pedro Alves <palves@redhat.com>
9373 * thread-db.c (find_new_threads_callback): Ignore thread if the
9374 kernel thread ID is -1.
9376 2015-01-09 Pedro Alves <palves@redhat.com>
9378 * linux-low.c (linux_attach_fail_reason_string): Move to
9379 nat/linux-ptrace.c, and rename.
9380 (linux_attach_lwp): Update comment.
9381 (attach_proc_task_lwp_callback): New function.
9382 (linux_attach): Adjust to rename and use
9383 linux_proc_attach_tgid_threads.
9384 (linux_attach_fail_reason_string): Delete declaration.
9386 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9388 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9389 * server.c (gdbserver_version): Likewise.
9391 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9393 * remote-utils.c: Include ctype.h.
9394 (input_interrupt): Explicitly handle the case when the char
9395 received is the NUL byte. Improve the printing of non-ASCII
9398 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9400 * linux-low.c (linux_low_filter_event): Update call to
9401 linux_enable_event_reporting following the addition of
9402 a new parameter to that function.
9404 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9407 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9408 (AARCH64_FPCR_REGNO): Likewise.
9409 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9410 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9411 (aarch64_store_fpregset): Likewise.
9413 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9415 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9416 Remove FIXME comment about assumption about N.
9418 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9420 * configure.ac: If large-file support is disabled in GDBserver,
9421 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9422 * configure: Regenerate.
9424 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9426 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9427 warning upon ENODATA from ptrace.
9428 * linux-s390-low.c (s390_store_tdb): New.
9429 (s390_regsets): Add regset for NT_S390_TDB.
9431 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9433 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9434 without a fill_function.
9435 * linux-s390-low.c (s390_fill_last_break): Remove.
9436 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9437 (s390_arch_setup): Use regset's size instead of fill_function for
9440 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9442 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9443 the regset's store function when ptrace returned an error.
9444 * regcache.c (get_thread_regcache): Invalidate register cache
9445 before fetching inferior's registers.
9447 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9449 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9450 while-loop as for-loop.
9451 (regsets_store_inferior_registers): Likewise.
9453 2014-11-28 Yao Qi <yao@codesourcery.com>
9455 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9456 * config.in, configure: Re-generate.
9457 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9460 2014-11-21 Yao Qi <yao@codesourcery.com>
9462 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9463 (AC_CHECK_HEADERS): Remove malloc.h.
9464 * configure: Re-generated.
9465 * config.in: Re-generated.
9466 * server.h: Don't include alloca.h and malloc.h.
9467 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9468 Don't include malloc.h.
9470 2014-11-17 Joel Brobecker <brobecker@adacore.com>
9472 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9473 corresponding ERRNO check in same block.
9475 2014-11-12 Pedro Alves <palves@redhat.com>
9477 * server.c (cont_thread): Update comment.
9478 (start_inferior, attach_inferior): No longer clear cont_thread.
9479 (handle_v_cont): No longer set cont_thread.
9480 (captured_main): Clear cont_thread each time a GDB connects.
9482 2014-11-12 Pedro Alves <palves@redhat.com>
9484 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9485 thread, and don't resume all threads if the Hc thread has exited.
9487 2014-11-12 Pedro Alves <palves@redhat.com>
9489 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9490 the process group instead of to a specific LWP.
9492 2014-10-15 Pedro Alves <palves@redhat.com>
9495 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9497 (arm_set_thread_context): Delete.
9498 (the_low_target): Adjust.
9499 * win32-i386-low.c (debug_registers_changed)
9500 (debug_registers_used): Delete.
9501 (update_debug_registers_callback): New function.
9502 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9503 needing to update their debug registers.
9504 (win32_get_current_dr): New function.
9505 (x86_dr_low_get_addr, x86_dr_low_get_control)
9506 (x86_dr_low_get_status): Fetch the debug register from the thread
9508 (i386_initial_stuff): Adjust.
9509 (i386_get_thread_context): Remove current_event parameter. Don't
9510 clear debug_registers_changed nor copy DR values to
9512 (i386_set_thread_context): Delete.
9513 (i386_prepare_to_resume): New function.
9514 (i386_thread_added): Mark the thread as needing to update irs
9516 (the_low_target): Remove i386_set_thread_context and install
9517 i386_prepare_to_resume.
9518 * win32-low.c (win32_get_thread_context): Adjust.
9519 (win32_set_thread_context): Use SetThreadContext
9521 (win32_prepare_to_resume): New function.
9522 (win32_require_context): New function, factored out from ...
9523 (thread_rec): ... this.
9524 (continue_one_thread): Call win32_prepare_to_resume on each thread
9525 we're about to continue.
9526 (win32_resume): Call win32_prepare_to_resume on the event thread.
9527 * win32-low.h (struct win32_thread_info)
9528 <debug_registers_changed>: New field.
9529 (struct win32_target_ops): Change prototype of set_thread_context,
9530 delete set_thread_context and add prepare_to_resume.
9531 (win32_require_context): New declaration.
9533 2014-10-08 Gary Benson <gbenson@redhat.com>
9535 * server.h: Do not include common-exceptions.h.
9537 2014-10-08 Gary Benson <gbenson@redhat.com>
9539 * server.h: Do not include cleanups.h.
9541 2014-09-30 James Hogan <james.hogan@imgtec.com>
9543 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9546 2014-09-23 Yao Qi <yao@codesourcery.com>
9548 * linux-low.c (lp_status_maybe_breakpoint): New function.
9549 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9550 (count_events_callback): Likewise.
9551 (select_event_lwp_callback): Likewise.
9552 (cancel_breakpoints_callback): Likewise.
9554 2014-09-19 Don Breazeal <donb@codesourcery.com>
9556 * linux-low.c (handle_extended_wait): Call
9557 linux_ptrace_get_extended_event.
9558 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9559 linux_is_extended_waitstatus.
9561 2014-09-16 Joel Brobecker <brobecker@adacore.com>
9563 * Makefile.in (CPPFLAGS): Define.
9564 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9565 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9567 2014-09-16 Gary Benson <gbenson@redhat.com>
9569 * inferiors.h (current_inferior): Renamed as...
9570 (current_thread): New variable. All uses updated.
9571 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9572 (maybe_move_out_of_jump_pad): Likewise.
9573 (cancel_breakpoint): Likewise.
9574 (linux_low_filter_event): Likewise.
9575 (wait_for_sigstop): Likewise.
9576 (linux_resume_one_lwp): Likewise.
9577 (need_step_over_p): Likewise.
9578 (start_step_over): Likewise.
9579 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9580 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9581 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9582 and save_inferior as saved_thread.
9583 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9585 (regcache_invalidate_thread): Likewise.
9586 * remote-utils.c (prepare_resume_reply): Likewise.
9587 * thread-db.c (thread_db_get_tls_address): Likewise.
9588 (disable_thread_event_reporting): Likewise.
9589 (remove_thread_event_breakpoints): Likewise.
9590 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9592 * target.h (set_desired_inferior): Renamed as...
9593 (set_desired_thread): New declaration. All uses updated.
9594 * server.c (myresume): Updated comment to reference thread instead
9596 (handle_serial_event): Likewise.
9597 (handle_target_event): Likewise.
9599 2014-09-12 Tom Tromey <tromey@redhat.com>
9600 Gary Benson <gbenson@redhat.com>
9602 * regcache.h: Include common-regcache.h.
9603 (regcache_read_pc): Don't declare.
9604 * regcache.c (get_thread_regcache_for_ptid): New function.
9606 2014-09-11 Tom Tromey <tromey@redhat.com>
9607 Gary Benson <gbenson@redhat.com>
9609 * symbol.c: New file.
9610 * Makefile.in (SFILES): Add symbol.c.
9611 (OBS): Add symbol.o.
9613 2014-09-11 Gary Benson <gbenson@redhat.com>
9615 * target.c (target_stop_ptid, target_continue_ptid): New
9618 2014-09-11 Tom Tromey <tromey@redhat.com>
9619 Gary Benson <gbenson@redhat.com>
9621 * target.h: Include target/target.h.
9622 * target.c (target_read_memory, target_read_uint32)
9623 (target_write_memory): New functions.
9625 2014-09-11 Gary Benson <gbenson@redhat.com>
9627 * server.h (debug_hw_points): Don't declare.
9628 * server.c (debug_hw_points): Don't define. Replace all uses
9629 with show_debug_regs.
9630 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9631 all uses with show_debug_regs.
9633 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9635 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9636 endianness into account.
9637 (ppc_supply_ptrace_register): Likewise.
9639 2014-09-03 James Hogan <james.hogan@imgtec.com>
9641 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9642 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9644 2014-09-03 Gary Benson <gbenson@redhat.com>
9646 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9647 ALL_DEBUG_ADDRESS_REGISTERS.
9649 2014-09-02 Gary Benson <gbenson@redhat.com>
9651 * i386-low.h: Renamed as...
9652 * x86-low.h: New file. All type, function and variable name
9653 prefixes changed from "i386_" to "x86_". All references updated.
9654 * i386-low.c: Renamed as...
9655 * x86-low.c: New file. All type, function and variable name
9656 prefixes changed from "i386_" to "x86_". All references updated.
9658 2014-09-02 Gary Benson <gbenson@redhat.com>
9660 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9661 (x86_linux_new_thread): Likewise.
9663 2014-08-29 Gary Benson <gbenson@redhat.com>
9665 * server.h (setjmp.h): Do not include.
9666 (toplevel): Do not declare.
9667 (common-exceptions.h): Include.
9668 (cleanups.h): Likewise.
9669 * server.c (toplevel): Do not define.
9670 (exit_code): New static global.
9671 (detach_or_kill_for_exit_cleanup): New function.
9672 (main): New function. Original main renamed to...
9673 (captured_main): New function.
9674 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9676 2014-08-29 Gary Benson <gbenson@redhat.com>
9678 * Makefile.in (SFILES): Add common/common-exceptions.c.
9679 (OBS): Add common-exceptions.o.
9680 (common-exceptions.o): New rule.
9681 * utils.c (prepare_to_throw_exception): New function.
9683 2014-08-29 Gary Benson <gbenson@redhat.com>
9685 * config.in: Regenerate.
9686 * configure: Likewise.
9688 2014-08-29 Gary Benson <gbenson@redhat.com>
9690 * Makefile.in (SFILES): Add common/cleanups.c.
9692 (cleanups.o): New rule.
9694 2014-08-29 Gary Benson <gbenson@redhat.com>
9696 * utils.c (internal_vwarning): New function.
9698 2014-08-28 Gary Benson <gbenson@redhat.com>
9700 * utils.h (fatal): Remove declaration.
9701 * utils.c (fatal): Remove function.
9703 2014-08-28 Gary Benson <gbenson@redhat.com>
9705 * tracepoint.c (gdb_agent_init): Replace fatal with
9707 (initialize_tracepoint): Likewise.
9709 2014-08-28 Gary Benson <gbenson@redhat.com>
9711 * remote-utils.c (remote_prepare): Replace fatal with error.
9713 2014-08-28 Gary Benson <gbenson@redhat.com>
9715 * linux-low.c (linux_async): Replace fatal with warning.
9717 (linux_start_non_stop): Return -1 if linux_async failed.
9719 2014-08-28 Gary Benson <gbenson@redhat.com>
9721 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9723 (i386_dr_low_get_addr): Remove vague comment.
9724 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9727 2014-08-28 Gary Benson <gbenson@redhat.com>
9729 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9730 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9732 (linux_resume_one_lwp): Likewise.
9733 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9735 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9736 with internal_error.
9737 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9738 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9739 (find_register_by_name): Replace fatal with internal_error.
9740 (find_regno): Likewise.
9741 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9742 * thread-db.c (thread_db_create_event): Likewise.
9743 (thread_db_load_search): Likewise.
9744 (try_thread_db_load_1): Likewise.
9745 * tracepoint.c (get_jump_space_head): Replace fatal with
9747 (claim_trampoline_space): Likewise.
9748 (have_fast_tracepoint_trampoline_buffer): Likewise.
9749 (cmd_qtstart): Likewise.
9750 (stop_tracing): Likewise.
9751 (fast_tracepoint_collecting): Likewise.
9752 (target_malloc): Likewise.
9753 (download_tracepoint): Likewise.
9754 (download_trace_state_variables): Replace check with gdb_assert.
9755 (upload_fast_traceframes): Replace fatal with internal_error.
9757 2014-08-19 Tom Tromey <tromey@redhat.com>
9758 Gary Benson <gbenson@redhat.com>
9760 * Makefile.in (SFILES): Add common/common-debug.c.
9761 (OBS): Add common-debug.o.
9762 (common-debug.o): New rule.
9763 * debug.h (debug_printf): Don't declare.
9764 * debug.c (debug_printf): Renamed and rewritten as...
9765 (debug_vprintf): New function.
9767 2014-08-19 Gary Benson <gbenson@redhat.com>
9769 * utils.h: Do not include print-utils.h.
9771 2014-08-19 Tom Tromey <tromey@redhat.com>
9772 Gary Benson <gbenson@redhat.com>
9774 * server.h: Add static assertion.
9775 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9777 2014-08-19 Tom Tromey <tromey@redhat.com>
9778 Gary Benson <gbenson@redhat.com>
9780 * Makefile.in (SFILES): Add common/errors.c.
9781 (OBS): Add errors.o.
9782 (IPA_OBS): Add errors-ipa.o.
9783 (errors.o): New rule.
9784 (errors-ipa.o): Likewise.
9785 * utils.h (perror_with_name, error, warning): Don't declare.
9786 * utils.c (warning): Renamed and rewritten as...
9787 (vwarning): New function.
9788 (error): Renamed and rewritten as...
9789 (verror): New function.
9790 (internal_error): Renamed and rewritten as...
9791 (internal_verror): New function.
9793 2014-08-07 Gary Benson <gbenson@redhat.com>
9795 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9796 * configure: Regenerate.
9797 * config.in: Likewise.
9798 * server.h: Do not include errno.h.
9799 * event-loop.c: Likewise.
9800 * hostio-errno.c: Likewise.
9801 * linux-low.c: Likewise.
9802 * remote-utils.c: Likewise.
9803 * spu-low.c: Likewise.
9804 * utils.c: Likewise.
9805 * gdbreplay.c: Unconditionally include errno.h.
9807 2014-08-07 Gary Benson <gbenson@redhat.com>
9809 * server.h: Do not include string.h.
9810 * event-loop.c: Likewise.
9811 * linux-low.c: Likewise.
9812 * regcache.c: Likewise.
9813 * remote-utils.c: Likewise.
9814 * spu-low.c: Likewise.
9815 * utils.c: Likewise.
9817 2014-08-07 Gary Benson <gbenson@redhat.com>
9819 * server.h: Do not include gdb_assert.h.
9821 2014-08-07 Gary Benson <gbenson@redhat.com>
9823 * server.h: Do not include common-utils.h.
9825 2014-08-07 Gary Benson <gbenson@redhat.com>
9827 * server.h: Do not include ptid.h.
9828 * notif.h: Likewise.
9830 2014-08-07 Gary Benson <gbenson@redhat.com>
9832 * server.h: Do not include gdb_locale.h.
9834 2014-08-07 Gary Benson <gbenson@redhat.com>
9836 * server.h: Do not include gdb/signals.h.
9837 * win32-low.c: Likewise.
9839 2014-08-07 Gary Benson <gbenson@redhat.com>
9841 * server.h: Do not include pathmax.h.
9843 2014-08-07 Gary Benson <gbenson@redhat.com>
9845 * server.h: Do not include libiberty.h.
9846 * linux-bfin-low.c: Likewise.
9848 2014-08-07 Gary Benson <gbenson@redhat.com>
9850 * server.h: Do not include ansidecl.h.
9852 2014-08-07 Gary Benson <gbenson@redhat.com>
9854 * linux-x86-low.c: Do not include stddef.h.
9855 * lynx-ppc-low.c: Likewise.
9856 * tracepoint.c: Likewise.
9858 2014-08-07 Gary Benson <gbenson@redhat.com>
9860 * server.h: Do not include stdarg.h.
9861 * nto-low.c: Likewise.
9863 2014-08-07 Gary Benson <gbenson@redhat.com>
9865 * server.h: Do not include stdlib.h.
9866 * inferiors.c: Likewise.
9867 * linux-low.c: Likewise.
9868 * regcache.c: Likewise.
9869 * spu-low.c: Likewise.
9870 * tracepoint.c: Likewise.
9871 * utils.c: Likewise.
9873 2014-08-07 Gary Benson <gbenson@redhat.com>
9875 * server.h: Do not include stdio.h.
9876 * linux-low.c: Likewise.
9877 * remote-utils.c: Likewise.
9878 * spu-low.c: Likewise.
9879 * utils.c: Likewise.
9880 * wincecompat.c: Likewise.
9882 2014-08-06 Gary Benson <gbenson@redhat.com>
9884 * regcache.c (init_register_cache): Move conditionals inside if.
9886 2014-08-06 Gary Benson <gbenson@redhat.com>
9888 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9890 2014-07-31 Gary Benson <gbenson@redhat.com>
9892 * ax.h: Do not include server.h.
9893 * gdbthread.h: Likewise.
9894 * lynx-low.h: Likewise.
9895 * notif.h: Likewise.
9897 2014-07-30 Gary Benson <gbenson@redhat.com>
9899 * server.h: Include common-defs.h.
9900 Do not include config.h or build-gnulib-gdbserver/config.h.
9902 2014-07-30 Gary Benson <gbenson@redhat.com>
9904 * hostio-errno.c: Move server.h to top of includes list.
9905 * inferiors.c: Likewise.
9906 * linux-x86-low.c: Likewise.
9907 * notif.c: Include server.h.
9909 2014-07-24 Tom Tromey <tromey@redhat.com>
9910 Gary Benson <gbenson@redhat.com>
9912 * server.h (CORE_ADDR): Now unsigned.
9914 2014-07-16 Pedro Alves <palves@redhat.com>
9916 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9918 2014-07-15 Pedro Alves <palves@redhat.com>
9920 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9923 2014-07-11 Pedro Alves <palves@redhat.com>
9925 * linux-low.c (kill_wait_lwp): New function, based on
9926 kill_one_lwp_callback, but use my_waitpid directly.
9927 (kill_one_lwp_callback, linux_kill): Use it.
9929 2014-06-23 Pedro Alves <palves@redhat.com>
9931 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9932 before setting DR0..DR3.
9934 2014-06-20 Gary Benson <gbenson@redhat.com>
9936 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9937 * configure: Regenerated.
9938 * config.in: Likewise.
9940 2014-06-20 Gary Benson <gbenson@redhat.com>
9942 * Makefile.in (SFILES): Update locations for files moved
9944 (object file files): Reordered.
9946 2014-06-20 Gary Benson <gbenson@redhat.com>
9948 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9949 (i386_dr_low_set_addr): Likewise.
9950 (i386_dr_low_get_addr): Likewise.
9951 (i386_dr_low_can_set_control): Likewise.
9952 (i386_dr_low_set_control): Likewise.
9953 (i386_dr_low_get_control): Likewise.
9954 (i386_dr_low_get_status): Likewise.
9955 (i386_get_debug_register_length): Likewise.
9956 * linux-x86-low.c (i386_dr_low_set_addr):
9957 Changed signature. Made static.
9958 (i386_dr_low_get_addr): Likewise.
9959 (i386_dr_low_set_control): Likewise.
9960 (i386_dr_low_get_control): Likewise.
9961 (i386_dr_low_get_status): Likewise.
9962 (i386_dr_low): New global variable.
9963 * win32-i386-low.c (i386_dr_low_set_addr):
9964 Changed signature. Made static.
9965 (i386_dr_low_get_addr): Likewise.
9966 (i386_dr_low_set_control): Likewise.
9967 (i386_dr_low_get_control): Likewise.
9968 (i386_dr_low_get_status): Likewise.
9969 (i386_dr_low): New global variable.
9971 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9973 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9974 * Makefile.in (AR, AR_FLAGS): Define.
9975 * configure: Regenerate.
9977 2014-06-19 Gary Benson <gbenson@redhat.com>
9979 * Makefile.in (i386-dregs.o): New rule.
9980 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
9981 * i386-low.c (target.h): Remove include.
9982 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
9983 (DR_CONTROL_SHIFT): Likewise.
9984 (DR_CONTROL_SIZE): Likewise.
9985 (DR_RW_EXECUTE): Likewise.
9986 (DR_RW_WRITE): Likewise.
9987 (DR_RW_READ): Likewise.
9988 (DR_RW_IORW): Likewise.
9989 (DR_LEN_1): Likewise.
9990 (DR_LEN_2): Likewise.
9991 (DR_LEN_4): Likewise.
9992 (DR_LEN_8): Likewise.
9993 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9994 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9995 (DR_ENABLE_SIZE): Likewise.
9996 (DR_LOCAL_SLOWDOWN): Likewise.
9997 (DR_GLOBAL_SLOWDOWN): Likewise.
9998 (DR_CONTROL_RESERVED): Likewise.
9999 (I386_DR_CONTROL_MASK): Likewise.
10000 (I386_DR_VACANT): Likewise.
10001 (I386_DR_LOCAL_ENABLE): Likewise.
10002 (I386_DR_GLOBAL_ENABLE): Likewise.
10003 (I386_DR_DISABLE): Likewise.
10004 (I386_DR_SET_RW_LEN): Likewise.
10005 (I386_DR_GET_RW_LEN): Likewise.
10006 (I386_DR_WATCH_HIT): Likewise.
10007 (i386_wp_op_t): Likewise.
10008 (i386_show_dr): Likewise.
10009 (i386_length_and_rw_bits): Likewise.
10010 (i386_insert_aligned_watchpoint): Likewise.
10011 (i386_remove_aligned_watchpoint): Likewise.
10012 (i386_handle_nonaligned_watchpoint): Likewise.
10013 i386_update_inferior_debug_regs(): Likewise.
10014 (i386_dr_insert_watchpoint): Likewise.
10015 (i386_dr_remove_watchpoint): Likewise.
10016 (i386_dr_region_ok_for_watchpoint): Likewise.
10017 (i386_dr_stopped_data_address): Likewise.
10018 (i386_dr_stopped_by_watchpoint): Likewise.
10020 2014-06-19 Gary Benson <gbenson@redhat.com>
10022 * i386-low.c (i386_dr_show): Renamed to
10023 i386_show_dr and made static. All uses updated.
10024 (i386_dr_length_and_rw_bits): Renamed to
10025 i386_length_and_rw_bits and made static.
10027 (i386_dr_insert_aligned_watchpoint): Renamed to
10028 i386_insert_aligned_watchpoint and made static.
10030 (i386_dr_remove_aligned_watchpoint): Renamed to
10031 i386_remove_aligned_watchpoint and made static.
10033 (i386_dr_update_inferior_debug_regs): Renamed to
10034 i386_update_inferior_debug_regs and made static.
10037 2014-06-18 Gary Benson <gbenson@redhat.com>
10039 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10040 (i386_dr_low_can_set_control): Likewise.
10041 (i386_get_debug_register_length): Likewise.
10042 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10043 (i386_dr_low_can_set_control): Likewise.
10044 (i386_get_debug_register_length): Likewise.
10046 2014-06-17 Gary Benson <gbenson@redhat.com>
10048 * i386-low.h (i386-dregs.h): New include.
10049 (DR_FIRSTADDR): Now in i386-dregs.h.
10050 (DR_LASTADDR): Likewise.
10051 (DR_NADDR): Likewise.
10052 (DR_STATUS): Likewise.
10053 (DR_CONTROL): Likewise.
10054 (i386_debug_reg_state): Likewise.
10055 (i386_dr_insert_watchpoint): Likewise.
10056 (i386_dr_remove_watchpoint): Likewise.
10057 (i386_dr_region_ok_for_watchpoint): Likewise.
10058 (i386_dr_stopped_data_address): Likewise.
10059 (i386_dr_stopped_by_watchpoint): Likewise.
10060 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10062 2014-06-18 Gary Benson <gbenson@redhat.com>
10064 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10065 i386_dr_insert_watchpoint.
10066 (i386_low_remove_watchpoint): Renamed to
10067 i386_dr_remove_watchpoint.
10068 (i386_low_region_ok_for_watchpoint): Renamed to
10069 i386_dr_region_ok_for_watchpoint.
10070 (i386_low_stopped_data_address): Renamed to
10071 i386_dr_stopped_data_address.
10072 (i386_low_stopped_by_watchpoint): Renamed to
10073 i386_dr_stopped_by_watchpoint.
10074 * i386-low.c (i386_show_dr): Renamed to
10075 i386_dr_show and made nonstatic. All uses updated.
10076 (i386_length_and_rw_bits): Renamed to
10077 i386_dr_length_and_rw_bits and made nonstatic.
10079 (i386_insert_aligned_watchpoint): Renamed to
10080 i386_dr_insert_aligned_watchpoint and made nonstatic.
10082 (i386_remove_aligned_watchpoint): Renamed to
10083 i386_dr_remove_aligned_watchpoint and made nonstatic.
10085 (i386_update_inferior_debug_regs): Renamed to
10086 i386_dr_update_inferior_debug_regs and made nonstatic.
10088 (i386_low_insert_watchpoint): Renamed to
10089 i386_dr_insert_watchpoint. All uses updated.
10090 (i386_low_remove_watchpoint): Renamed to
10091 i386_dr_remove_watchpoint. All uses updated.
10092 (i386_low_region_ok_for_watchpoint): Renamed to
10093 i386_dr_region_ok_for_watchpoint. All uses updated.
10094 (i386_low_stopped_data_address): Renamed to
10095 i386_dr_stopped_data_address. All uses updated.
10096 (i386_low_stopped_by_watchpoint): Renamed to
10097 i386_dr_stopped_by_watchpoint. All uses updated.
10099 2014-06-18 Gary Benson <gbenson@redhat.com>
10101 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10102 (i386_dr_low_can_set_control): Likewise.
10103 (i386_insert_aligned_watchpoint): New check.
10105 2014-06-18 Gary Benson <gbenson@redhat.com>
10107 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10110 2014-06-18 Gary Benson <gbenson@redhat.com>
10112 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10113 instead of fatal and error.
10114 (i386_handle_nonaligned_watchpoint): Likewise.
10116 2014-06-18 Gary Benson <gbenson@redhat.com>
10118 * i386-low.c (i386_get_debug_register_length): New macro.
10119 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10120 (i386_show_dr): Use debug_printf instead of fprintf. Use
10121 phex to format values.
10123 2014-06-18 Gary Benson <gbenson@redhat.com>
10125 * i386-low.h: Comment changes.
10126 * i386-low.c: Likewise.
10128 2014-06-18 Gary Benson <gbenson@redhat.com>
10130 * i386-low.c: Whitespace changes.
10132 2014-06-12 Tom Tromey <tromey@redhat.com>
10134 * utils.c (freeargv): Remove.
10136 2014-06-12 Tom Tromey <tromey@redhat.com>
10138 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10139 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10140 (parse_debug_format_options): Likewise.
10141 (gdbserver_usage): Likewise.
10142 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10143 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10144 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10146 ($(LIBGNU)): Depend on libiberty.
10147 (all-lib): Recurse into all subdirs.
10148 (install-only): Invoke "install" target in subdirs.
10149 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10151 * configure: Rebuild.
10152 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10153 for vasprintf, vsnprintf, or gettimeofday.
10154 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10157 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10159 * development.sh: Delete.
10160 * Makefile.in (config.status): Adjust dependency on development.sh.
10161 * configure.ac: Adjust development.sh source call.
10162 * configure: Regenerate.
10164 2014-06-02 Pedro Alves <palves@redhat.com>
10166 * ax.c (gdb_free_agent_expr): New function.
10167 * ax.h (gdb_free_agent_expr): New declaration.
10168 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10170 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10172 (clear_breakpoint_conditions_and_commands): New function.
10173 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10174 (clear_breakpoint_conditions_and_commands): New declaration.
10176 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10178 * linux-aarch64-low.c (asm/ptrace.h): Include.
10180 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10182 Fix TLS access for -static -pthread.
10183 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10184 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10185 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10187 2014-05-20 Pedro Alves <palves@redhat.com>
10189 * linux-aarch64-low.c (aarch64_insert_point)
10190 (aarch64_remove_point): No longer check whether the type is
10191 supported here. Adjust to new interface.
10192 (the_low_target): Install aarch64_supports_z_point_type as
10193 supports_z_point_type method.
10194 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10195 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10196 instead of a Z packet char. Adjust.
10197 (arm_supports_z_point_type): New function.
10198 (arm_insert_point, arm_remove_point): Adjust to new interface.
10199 (the_low_target): Install arm_supports_z_point_type.
10200 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10201 (cris_insert_point, cris_remove_point): Adjust to new interface.
10202 Don't check whether the type is supported here.
10203 (the_low_target): Install cris_supports_z_point_type.
10204 * linux-low.c (linux_supports_z_point_type): New function.
10205 (linux_insert_point, linux_remove_point): Adjust to new interface.
10206 * linux-low.h (struct linux_target_ops) <insert_point,
10207 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10208 raw_breakpoint pointer parameter.
10209 <supports_z_point_type>: New method.
10210 * linux-mips-low.c (mips_supports_z_point_type): New function.
10211 (mips_insert_point, mips_remove_point): Adjust to new interface.
10212 Use mips_supports_z_point_type.
10213 (the_low_target): Install mips_supports_z_point_type.
10214 * linux-ppc-low.c (the_low_target): Install NULL as
10215 supports_z_point_type method.
10216 * linux-s390-low.c (the_low_target): Install NULL as
10217 supports_z_point_type method.
10218 * linux-sparc-low.c (the_low_target): Install NULL as
10219 supports_z_point_type method.
10220 * linux-x86-low.c (x86_supports_z_point_type): New function.
10221 (x86_insert_point): Adjust to new insert_point interface. Use
10222 insert_memory_breakpoint. Adjust to new
10223 i386_low_insert_watchpoint interface.
10224 (x86_remove_point): Adjust to remove_point interface. Use
10225 remove_memory_breakpoint. Adjust to new
10226 i386_low_remove_watchpoint interface.
10227 (the_low_target): Install x86_supports_z_point_type.
10228 * lynx-low.c (lynx_target_ops): Install NULL as
10229 supports_z_point_type callback.
10230 * nto-low.c (nto_supports_z_point_type): New.
10231 (nto_insert_point, nto_remove_point): Adjust to new interface.
10232 (nto_target_ops): Install nto_supports_z_point_type.
10233 * mem-break.c: Adjust intro comment.
10234 (struct raw_breakpoint) <raw_type, size>: New fields.
10235 <inserted>: Update comment.
10236 <shlib_disabled>: Delete field.
10237 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10238 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10239 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10240 (raw_bkpt_type_to_target_hw_bp_type): New function.
10241 (find_enabled_raw_code_breakpoint_at): New function.
10242 (find_raw_breakpoint_at): New type and size parameters. Use them.
10243 (insert_memory_breakpoint): New function, based off
10244 set_raw_breakpoint_at.
10245 (remove_memory_breakpoint): New function.
10246 (set_raw_breakpoint_at): Reimplement.
10247 (set_breakpoint): New, based on set_breakpoint_at.
10248 (set_breakpoint_at): Reimplement.
10249 (delete_raw_breakpoint): Go through the_target->remove_point
10250 instead of assuming memory breakpoints.
10251 (find_gdb_breakpoint_at): Delete.
10252 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10253 (find_gdb_breakpoint): New function.
10254 (set_gdb_breakpoint_at): Delete.
10255 (z_type_supported): New function.
10256 (set_gdb_breakpoint_1): New function, loosely based off
10257 set_gdb_breakpoint_at.
10258 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10259 (delete_gdb_breakpoint_at): Delete.
10260 (delete_gdb_breakpoint_1): New function, loosely based off
10261 delete_gdb_breakpoint_at.
10262 (delete_gdb_breakpoint): New function.
10263 (clear_gdb_breakpoint_conditions): Rename to ...
10264 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10266 (add_condition_to_breakpoint): Make static.
10267 (add_breakpoint_condition): Take a struct breakpoint pointer
10268 instead of an address. Adjust.
10269 (gdb_condition_true_at_breakpoint): Rename to ...
10270 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10272 (gdb_condition_true_at_breakpoint): Reimplement.
10273 (add_breakpoint_commands): Take a struct breakpoint pointer
10274 instead of an address. Adjust.
10275 (gdb_no_commands_at_breakpoint): Rename to ...
10276 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10277 parameter. Return true if no breakpoint was found. Change debug
10279 (gdb_no_commands_at_breakpoint): Reimplement.
10280 (run_breakpoint_commands): Rename to ...
10281 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10282 and change return type to boolean.
10283 (run_breakpoint_commands): New function.
10284 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10285 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10286 breakpoint. Go through the_target->remove_point instead of
10287 assuming memory breakpoint.
10288 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10289 software and hardware breakpoints.
10290 (reinsert_raw_breakpoint): Go through the_target->insert_point
10291 instead of assuming memory breakpoint.
10292 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10293 software and hardware breakpoints.
10294 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10295 Check both software and hardware breakpoints.
10296 (validate_inserted_breakpoint): Assert the breakpoint is a
10297 software breakpoint. Set the inserted flag to -1 instead of
10298 setting shlib_disabled.
10299 (delete_disabled_breakpoints): Adjust.
10300 (validate_breakpoints): Only validate software breakpoints.
10301 Adjust to inserted flag change.
10302 (check_mem_read, check_mem_write): Skip breakpoint types other
10303 than software breakpoints. Adjust to inserted flag change.
10304 * mem-break.h (enum raw_bkpt_type): New enum.
10305 (raw_breakpoint, struct process_info): Forward declare.
10306 (Z_packet_to_target_hw_bp_type): Delete declaration.
10307 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10308 (set_gdb_breakpoint, delete_gdb_breakpoint)
10309 (clear_breakpoint_conditions): New declarations.
10310 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10311 (breakpoint_inserted_here): Update comment.
10312 (add_breakpoint_condition, add_breakpoint_commands): Replace
10313 address parameter with a breakpoint pointer parameter.
10314 (gdb_breakpoint_here): Update comment.
10315 (delete_gdb_breakpoint_at): Delete.
10316 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10317 * server.c (process_point_options): Take a struct breakpoint
10318 pointer instead of an address. Adjust.
10319 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10320 delete_gdb_breakpoint.
10321 * spu-low.c (spu_target_ops): Install NULL as
10322 supports_z_point_type method.
10323 * target.h: Include mem-break.h.
10324 (struct target_ops) <prepare_to_access_memory>: Update comment.
10325 <supports_z_point_type>: New field.
10326 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10327 instead of a char. Also take a raw breakpoint pointer.
10328 * win32-arm-low.c (the_low_target): Install NULL as
10329 supports_z_point_type.
10330 * win32-i386-low.c (i386_supports_z_point_type): New function.
10331 (i386_insert_point, i386_remove_point): Adjust to new interface.
10332 (the_low_target): Install i386_supports_z_point_type.
10333 * win32-low.c (win32_supports_z_point_type): New function.
10334 (win32_insert_point, win32_remove_point): Adjust to new interface.
10335 (win32_target_ops): Install win32_supports_z_point_type.
10336 * win32-low.h (struct win32_target_ops):
10337 <supports_z_point_type>: New method.
10338 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10339 instead of a char. Also take a raw breakpoint pointer.
10341 2014-05-20 Pedro Alves <palves@redhat.com>
10343 * mem-break.h: Include break-common.h.
10344 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10345 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10346 (Z_packet_to_target_hw_bp_type): New declaration.
10347 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10348 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10349 (Z_PACKET_ACCESS_WP): Delete macros.
10350 (Z_packet_to_hw_type): Delete function.
10351 * i386-low.h: Don't include break-common.h here.
10352 (Z_packet_to_hw_type): Delete declaration.
10353 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10354 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10355 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10356 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10357 * linux-aarch64-low.c: Don't include break-common.h here.
10358 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10359 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10360 (Z_packet_to_target_hw_bp_type): Delete function.
10361 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10363 (mips_insert_point, mips_remove_point): Use
10364 Z_packet_to_target_hw_bp_type.
10366 2014-05-20 Pedro Alves <palves@redhat.com>
10368 * linux-aarch64-low.c: Include break-common.h.
10369 (enum target_point_type): Delete.
10370 (Z_packet_to_point_type): Rename to ...
10371 (Z_packet_to_target_hw_bp_type): ... this, and return a
10372 target_hw_bp_type instead.
10373 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10374 instead of an enum target_point_type.
10375 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10377 (aarch64_dr_state_insert_one_point)
10378 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10379 (aarch64_handle_aligned_watchpoint)
10380 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10381 Take an enum target_hw_bp_type instead of an enum
10383 (aarch64_supports_z_point_type): New function.
10384 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10385 use Z_packet_to_target_hw_bp_type.
10387 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10389 * configure.ac: Only use -Werror by default when DEVELOPMENT
10391 * configure: Regenerate.
10393 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10395 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10396 * linux-x86-low.c (X86_64_USER_REGS): New.
10397 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10399 2014-04-28 Yao Qi <yao@codesourcery.com>
10401 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10404 2014-04-25 Pedro Alves <palves@redhat.com>
10407 * linux-low.c (linux_attach_fail_reason_string): New function.
10408 (linux_attach_lwp): Delete.
10409 (linux_attach_lwp_1): Rename to ...
10410 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10411 argument. Remove "initial" parameter. Return int instead of
10412 void. Don't error or warn here.
10413 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10414 failure to attach to the tgid. Call warning when failing to
10416 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10417 argument. Remove "initial" parameter. Return int instead of
10418 void. Don't error or warn here.
10419 (linux_attach_fail_reason_string): New declaration.
10420 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10421 interface change. Use linux_attach_fail_reason_string.
10423 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
10424 Walfred Tedeschi <walfred.tedeschi@intel.com>
10426 * Makefile.in: Added rules to handle new files
10427 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10428 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10429 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10430 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10431 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10432 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10433 x32-avx512-linux.o.
10434 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10435 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10436 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10437 i386/x32-avx512.xml.
10438 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10439 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10440 i386/x32-avx512-linux.xml.
10441 * i387-fp.c (num_avx512_k_registers): New constant for number
10443 (num_avx512_zmmh_low_registers): New constant for number of
10444 lower ZMM registers (0-15).
10445 (num_avx512_zmmh_high_registers): New constant for number of
10446 higher ZMM registers (16-31).
10447 (num_avx512_ymmh_registers): New contant for number of higher
10448 YMM registers (ymm16-31 added by avx521 on x86_64).
10449 (num_avx512_xmm_registers): New constant for number of higher
10450 XMM registers (xmm16-31 added by AVX512 on x86_64).
10451 (struct i387_xsave): Add space for AVX512 registers.
10452 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10453 Add code to handle AVX512 registers.
10454 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10455 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10456 prototypei from generated file.
10457 (tdesc_amd64_avx512_linux): Likewise.
10458 (init_registers_x32_avx512_linux): Likewise.
10459 (tdesc_x32_avx512_linux): Likewise.
10460 (init_registers_i386_avx512_linux): Likewise.
10461 (tdesc_i386_avx512_linux): Likewise.
10462 (x86_64_regmap): Add AVX512 registers.
10463 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10465 (initialize_low_arch): Add code to initialize AVX512 registers.
10467 2014-04-23 Pedro Alves <palves@redhat.com>
10469 * mem-break.c (find_gdb_breakpoint_at): Make static.
10470 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10472 2014-04-23 Pedro Alves <palves@redhat.com>
10474 * i386-low.c: Don't include break-common.h here.
10475 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10476 prototype to take target_hw_bp_type as argument instead of a Z
10478 * i386-low.h: Include break-common.h here.
10479 (Z_packet_to_hw_type): Declare.
10480 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10482 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10483 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10484 (x86_remove_point): Convert the packet number to a
10485 target_hw_bp_type before calling i386_low_remove_watchpoint.
10486 * win32-i386-low.c (i386_insert_point): Convert the packet number
10487 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10488 (i386_remove_point): Convert the packet number to a
10489 target_hw_bp_type before calling i386_low_remove_watchpoint.
10491 2014-04-23 Pedro Alves <palves@redhat.com>
10493 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10495 2014-04-10 Pedro Alves <palves@redhat.com>
10497 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10498 Check if the condition or command is NULL before checking if the
10499 breakpoint is known. On success, return true.
10500 * mem-break.h (add_breakpoint_condition): Document return.
10501 (add_breakpoint_commands): Add describing comment.
10502 * server.c (skip_to_semicolon): New function.
10503 (process_point_options): Use it.
10505 2014-04-09 Pedro Alves <palves@redhat.com>
10507 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10510 2014-02-27 Pedro Alves <palves@redhat.com>
10513 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10515 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10517 (last_thread_of_process_p): Take a PID argument instead of a
10519 (linux_wait_for_lwp): Delete.
10520 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10522 (linux_low_filter_event): New function, party factored out from
10523 linux_wait_for_event.
10524 (linux_wait_for_event): Rename to ...
10525 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10526 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10527 sigsuspend. Check for zombie leaders.
10528 (linux_wait_for_event): Reimplement as wrapper around
10529 linux_wait_for_event_filtered.
10530 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10531 a normal or signal exit is seen, it's the whole process exiting.
10532 (wait_for_sigstop): No longer a for_each_inferior callback.
10533 Rewrite on top of linux_wait_for_event_filtered.
10534 (stop_all_lwps): Call wait_for_sigstop directly.
10535 * server.c (resume, handle_target_event): Handle
10536 TARGET_WAITKIND_NO_RESUMED.
10538 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10540 * win32-low.c (psapi_get_dll_name,
10541 * win32_CreateToolhelp32Snapshot): Delete.
10542 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10543 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10545 (handle_load_dll): Add function description.
10546 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10548 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10550 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10552 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10553 base address when calling win32_add_one_solib.
10554 (handle_load_dll): Delete local variable load_addr.
10555 Remove 0x1000 offset applied to DLL base address when calling
10556 win32_add_one_solib.
10557 (handle_unload_dll): Add comment.
10559 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10561 * win32-low.c (win32_add_all_dlls): Renames
10562 win32_ensure_ntdll_loaded. Rewrite function documentation.
10563 Adjust implementation to always load all DLLs.
10564 Add 0x1000 offset to DLL base address when calling
10565 win32_add_one_solib.
10566 (child_initialization_done): New static global.
10567 (do_initial_child_stuff): Set child_initialization_done to
10568 zero during child initialization, and 1 after. Replace call
10569 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10571 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10572 (handle_unload_dll): Add function documentation.
10573 (get_child_debug_event): Ignore load and unload DLL events
10574 during child initialization.
10576 2014-02-20 Doug Evans <dje@google.com>
10578 Remove global all_lwps.
10579 * inferiors.h (ptid_of): Move here from linux-low.h.
10580 (pid_of, lwpid_of): Ditto.
10581 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10582 parameter is a struct thread_info * now.
10583 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10584 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10585 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10587 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10588 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10589 * linux-arm-low.c (update_registers_callback): Update, "entry"
10590 parameter is a struct thread_info * now.
10591 Fetch lwpid from current_inferior directly.
10592 (arm_insert_point): Pass &all_threads to find_inferior instead of
10594 (arm_remove_point): Ditto.
10595 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10596 (arm_prepare_to_resume): Fetch pid from thread.
10597 (arm_read_description): Fetch lwpid from current_inferior directly.
10598 * linux-low.c (all_lwps): Delete.
10599 (delete_lwp): Delete call to remove_inferior.
10600 (handle_extended_wait): Fetch lwpid from thread.
10601 (add_lwp): Don't set lwp->entry.id. Remove call to
10602 add_inferior_to_list.
10603 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10604 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10605 (kill_one_lwp_callback): Ditto.
10606 (linux_kill): Don't dereference NULL pointer.
10607 Fetch ptid,lwpid from thread.
10608 (get_detach_signal): Fetch ptid from thread.
10609 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10610 Simplify call to regcache_invalidate_thread.
10611 (delete_lwp_callback): Update, "entry" parameter is a
10612 struct thread_info * now. Fetch pid from thread.
10613 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10614 (status_pending_p_callback): Update, "entry" parameter is a
10615 struct thread_info * now. Fetch ptid from thread.
10616 (find_lwp_pid): Update, "entry" parameter is a
10617 struct thread_info * now.
10618 (linux_wait_for_lwp): Fetch pid from thread.
10619 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10620 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10621 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10622 (dequeue_one_deferred_signal): Ditto.
10623 (cancel_breakpoint): Fetch ptid from current_inferior.
10624 (linux_wait_for_event): Pass &all_threads to find_inferior,
10625 not &all_lwps. Fetch ptid, lwpid from thread.
10626 (count_events_callback): Update, "entry" parameter is a
10627 struct thread_info * now.
10628 (select_singlestep_lwp_callback): Ditto.
10629 (select_event_lwp_callback): Ditto.
10630 (cancel_breakpoints_callback): Ditto.
10631 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10633 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10634 (unsuspend_one_lwp): Update, "entry" parameter is a
10635 struct thread_info * now.
10636 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10638 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10639 Fetch lwpid from thread, not lwp.
10640 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10641 Pass &all_threads to find_inferior, not &all_lwps.
10642 (send_sigstop): Fetch lwpid from thread, not lwp.
10643 (send_sigstop_callback): Update, "entry" parameter is a
10644 struct thread_info * now.
10645 (suspend_and_send_sigstop_callback): Ditto.
10646 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10647 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10648 struct thread_info * now.
10649 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10651 (lwp_running): Update, "entry" parameter is a
10652 struct thread_info * now.
10653 (stop_all_lwps): Fetch ptid from thread.
10654 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10655 (linux_resume_one_lwp): Fetch lwpid from thread.
10656 (linux_set_resume_request): Update, "entry" parameter is a
10657 struct thread_info * now. Fetch pid, lwpid from thread.
10658 (resume_status_pending_p): Update, "entry" parameter is a
10659 struct thread_info * now.
10660 (need_step_over_p): Ditto. Fetch lwpid from thread.
10661 (start_step_over): Fetch lwpid from thread.
10662 (linux_resume_one_thread): Update, "entry" parameter is a
10663 struct thread_info * now. Fetch lwpid from thread.
10664 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10665 (proceed_one_lwp): Update, "entry" parameter is a
10666 struct thread_info * now. Fetch lwpid from thread.
10667 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10668 struct thread_info * now.
10669 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10670 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10671 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10673 (regsets_store_inferior_registers): Ditto.
10674 (fetch_register, store_register): Ditto.
10675 (linux_read_memory, linux_write_memory): Ditto.
10676 (linux_request_interrupt): Ditto.
10677 (linux_read_auxv): Ditto.
10678 (linux_xfer_siginfo): Ditto.
10679 (linux_qxfer_spu): Ditto.
10680 (linux_qxfer_libraries_svr4): Ditto.
10681 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10682 moved to inferiors.h.
10684 (get_thread_lwp): Update.
10685 (struct lwp_info): Delete member "entry". Simplify comment for
10687 (all_lwps): Delete.
10688 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10689 current_inferior directly.
10690 (update_watch_registers_callback): Update, "entry" parameter is a
10691 struct thread_info * now. Fetch pid from thread.
10692 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10693 (mips_insert_point): Fetch lwpid from current_inferior.
10694 Pass &all_threads to find_inferior, not &all_lwps.
10695 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10696 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10698 (mips_stopped_data_address): Ditto.
10699 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10701 * linux-tile-low.c (tile_arch_setup): Ditto.
10702 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10703 (update_debug_registers_callback): Update, "entry" parameter is a
10704 struct thread_info * now. Fetch pid from thread.
10705 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10706 Pass &all_threads to find_inferior, not &all_lwps.
10707 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10708 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10709 Pass &all_threads to find_inferior, not &all_lwps.
10710 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10711 (i386_dr_low_get_status): Ditto.
10712 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10713 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10714 (x86_linux_read_description): Ditto.
10715 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10717 2014-02-20 Doug Evans <dje@google.com>
10719 * inferiors.c (get_first_inferior): Fix buglet.
10721 2014-02-19 Doug Evans <dje@google.com>
10723 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10724 * inferiors.c (add_thread): Change result type to struct thread_info *.
10725 All callers updated.
10726 (add_lwp): Call add_thread here instead of in callers.
10727 All callers updated.
10728 * linux-low.h (get_lwp_thread): Rewrite.
10729 (struct lwp_info): New member "thread".
10731 2014-02-19 Doug Evans <dje@google.com>
10733 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10734 All callers updated.
10736 2014-02-19 Doug Evans <dje@google.com>
10738 * inferiors.c (add_thread): Fix whitespace.
10740 2014-02-19 Doug Evans <dje@google.com>
10742 * dll.c (clear_dlls): Replace accessing list implemention details
10744 * gdbthread.h (get_first_thread): Declare.
10745 * inferiors.c (for_each_inferior_with_data): New function.
10746 (get_first_thread): New function.
10747 (find_thread_ptid): Simplify.
10748 (get_first_inferior): New function.
10749 (clear_list): Delete.
10750 (one_inferior_p): New function.
10751 (clear_inferior_list): New function.
10752 (clear_inferiors): Update.
10753 * inferiors.h (for_each_inferior_with_data): Declare.
10754 (clear_inferior_list): Declare.
10755 (one_inferior_p): Declare.
10756 (get_first_inferior): Declare.
10757 * linux-low.c (linux_wait_for_event): Replace accessing list
10758 implemention details with API function.
10759 * server.c (target_running): Ditto.
10760 (accumulate_file_name_length): New function.
10761 (emit_dll_description): New function.
10762 (handle_qxfer_libraries): Replace accessing list implemention
10763 details with API function.
10764 (handle_qxfer_threads_worker): New function.
10765 (handle_qxfer_threads_proper): Replace accessing list implemention
10766 details with API function.
10767 (handle_query): Ditto.
10768 (visit_actioned_threads_callback_ftype): New typedef.
10769 (visit_actioned_threads_data): New struct.
10770 (visit_actioned_threads): Rewrite to be find_inferior callback.
10771 (resume): Call find_inferior.
10772 (handle_status): Replace accessing list implemention
10773 details with API function.
10774 (process_serial_event): Replace accessing list implemention details
10776 * target.c (set_desired_inferior): Replace accessing list implemention
10777 details with API function.
10778 * tracepoint.c (same_process_p): New function.
10779 (gdb_agent_about_to_close): Replace accessing list implemention
10780 details with API function.
10781 * win32-low.c (child_delete_thread): Replace accessing list
10782 implemention details with API function.
10783 (match_dll_by_basename): New function.
10784 (dll_is_loaded_by_basename): New function.
10785 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10786 details call to dll_is_loaded_by_basename.
10788 2014-02-19 Doug Evans <dje@google.com>
10790 * dll.h (struct dll_info): Add comment.
10791 * gdbthread.h (struct thread_info): Add comment.
10792 (current_ptid): Simplify.
10793 * inferiors.c (add_process): Update.
10794 (remove_process): Update.
10795 * inferiors.h (struct process_info): Rename member "head" to "entry".
10796 * linux-low.c (delete_lwp): Update.
10798 (last_thread_of_process_p): Update.
10799 (kill_one_lwp_callback, linux_kill): Update.
10800 (status_pending_p_callback): Update.
10801 (wait_for_sigstop): Update. Simplify read of ptid.
10802 (start_step_over): Update.
10803 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10804 (get_lwp_thread): Update.
10805 (struct lwp_info): Rename member "head" to "entry".
10806 * regcache.h (inferior_list_entry): Delete.
10807 * server.c (kill_inferior_callback): Update.
10808 (detach_or_kill_inferior_callback): Update.
10809 (print_started_pid): Update.
10810 (print_attached_pid): Update.
10811 (process_serial_event): Simplify read of ptid.
10812 * thread-db.c (thread_db_create_event): Update.
10813 (thread_db_get_tls_address): Update.
10814 * win32-low.c (current_inferior_ptid): Simplify.
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10818 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10820 (target_supports_btrace): Update.
10822 2014-02-14 Yao Qi <yao@codesourcery.com>
10824 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10825 (rsp-low-ipa.o): New target.
10827 2014-02-12 Tom Tromey <tromey@redhat.com>
10829 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10830 convert_ascii_to_int.
10831 * regcache.c (registers_to_string): Likewise.
10832 * remote-utils.c (decode_M_packet): Likewise.
10833 * server.c (process_serial_event): Likewise.
10835 2014-02-12 Tom Tromey <tromey@redhat.com>
10837 * server.c (handle_query, handle_v_run): Use hex2bin, not
10839 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10841 2014-02-12 Tom Tromey <tromey@redhat.com>
10843 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10844 convert_int_to_ascii.
10845 * regcache.c (registers_to_string, collect_register_as_string):
10847 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10849 * server.c (process_serial_event): Likewise.
10850 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10851 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10853 2014-02-12 Tom Tromey <tromey@redhat.com>
10855 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10856 bin2hex, not hexify.
10857 * tracepoint.c (cmd_qtstatus): Likewise.
10859 2014-02-12 Tom Tromey <tromey@redhat.com>
10861 * remote-utils.c (monitor_output): Pass explicit length to
10864 2014-02-12 Tom Tromey <tromey@redhat.com>
10866 * tracepoint.c: Include rsp-low.h.
10867 * server.c: Include rsp-low.h.
10868 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10869 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10871 * remote-utils.c: Include rsp-low.h.
10872 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10873 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10874 (convert_int_to_ascii, convert_ascii_to_int): Move to
10876 * regcache.c: Include rsp-low.h.
10877 * ax.c: Include rsp-low.h.
10878 * Makefile.in (SFILES): Add common/rsp-low.c.
10879 (OBS): Add rsp-low.o.
10880 (rsp-low.o): New target.
10882 2014-02-12 Tom Tromey <tromey@redhat.com>
10884 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10885 Include print-utils.h.
10886 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10887 (plongest, thirty_two, phex_nz): Remove.
10888 * Makefile.in (SFILES): Add common/print-utils.c.
10889 (OBS): Add print-utils.o.
10890 (print-utils-ipa.o): New target.
10891 (print-utils.o): New target.
10892 (IPA_OBJS): Add print-utils-ipa.o.
10894 2014-02-06 Tom Tromey <tromey@redhat.com>
10896 * Makefile.in (SFILES): Fix indentation.
10898 2014-02-05 Doug Evans <dje@google.com>
10900 * linux-low.c (linux_wait_for_event): Improve comment.
10901 (linux_wait_1): Keep current_inferior in sync with event_child.
10903 2014-01-22 Doug Evans <dje@google.com>
10905 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10907 2014-01-22 Doug Evans <dje@google.com>
10909 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10910 * configure: Regenerate.
10911 * config.in: Regenerate.
10912 * Makefile.in (SFILES): Add debug.c.
10913 (OBS): Add debug.o.
10914 * debug.c: New file.
10915 * debug.h: New file.
10916 * linux-aarch64-low.c (*): Update all debugging printfs to use
10917 debug_printf instead of fprintf.
10918 * linux-arm-low.c (*): Ditto.
10919 * linux-cris-low.c (*): Ditto.
10920 * linux-crisv32-low.c (*): Ditto.
10921 * linux-m32r-low.c (*): Ditto.
10922 * linux-sparc-low.c (*): Ditto.
10923 * linux-x86.c (*): Ditto.
10924 * linux-low.c (*): Ditto.
10925 (linux_wait_1): Add calls to debug_enter, debug_exit.
10926 (linux_wait): Remove redundant debugging printf.
10927 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10928 (linux_resume, unstop_all_lwps): Ditto.
10929 * mem-break.c (*): Update all debugging printfs to use
10930 debug_printf instead of fprintf.
10931 * remote-utils.c (*): Ditto.
10932 * thread-db.c (*): Ditto.
10933 * server.c #include <ctype.h>, "gdb_vecs.h".
10934 (debug_threads): Moved to debug.c.
10935 (*): Update all debugging printfs to use debug_printf instead of
10937 (start_inferior): Replace call to fflush with call to debug_flush.
10938 (monitor_show_help): Mention set debug-format.
10939 (parse_debug_format_options): New function.
10940 (handle_monitor_command): Handle "monitor set debug-format".
10941 (gdbserver_usage): Mention --debug-format.
10942 (main): Parse --debug-format.
10943 * server.h (debug_threads): Declaration moved to debug.h.
10944 #include "debug.h".
10945 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10946 trace_debug_1 that uses debug_printf.
10947 (tracepoint_look_up_symbols): Update all debugging printfs to use
10948 debug_printf instead of fprintf.
10950 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10952 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10955 2014-01-17 Pedro Alves <palves@redhat.com>
10958 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10959 defined after including gdb_proc_service.h.
10961 2014-01-16 Doug Evans <dje@google.com>
10963 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10964 (match_dll): Use it.
10966 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10968 * target.h (target_ops) <read_btrace>: Change parameters and
10969 return type to allow error reporting.
10970 * server.c (handle_qxfer_btrace): Support delta reads. Pass
10971 trace reading errors on.
10972 * linux-low.c (linux_low_read_btrace): Pass trace reading
10974 (linux_low_disable_btrace): New.
10976 2014-01-15 Doug Evans <dje@google.com>
10978 * inferiors.c (thread_id_to_gdb_id): Delete.
10979 * inferiors.h (thread_id_to_gdb_id): Delete.
10981 2014-01-13 Eli Zaretskii <eliz@gnu.org>
10983 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10984 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10987 2014-01-08 Pedro Alves <palves@redhat.com>
10989 * server.c (handle_status): Don't discard previous queued stop
10990 replies or thread's pending status here.
10991 (main) <disconnection>: Do it here instead.
10993 2014-01-08 Pedro Alves <palves@redhat.com>
10995 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10996 * server.c (visit_actioned_threads, handle_pending_status): New
10998 (handle_v_cont): Factor out parts to ...
10999 (resume): ... this new function. If in all-stop, and a thread
11000 being resumed has a pending status, report it without actually
11002 (myresume): Adjust to use the new 'resume' function.
11003 (clear_pending_status_callback, set_pending_status_callback)
11004 (find_status_pending_thread_callback): New functions.
11005 (handle_status): Handle the case of multiple threads having
11006 interesting statuses to report. Report threads' real last signal
11007 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11008 with an interesting thread to report the status for, instead of
11009 always reporting the status of the first thread.
11011 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11013 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11014 * gdbreplay.c (gdbreplay_version): Likewise.
11016 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11018 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11019 iov.iov_len with the real length in use.
11021 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11023 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11024 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11025 for all targets that use win32-low.c.
11026 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11027 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11029 2013-12-13 Pedro Alves <palves@redhat.com>
11031 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11032 if equal to TARGET_WAITKIND_LOADED.
11033 * win32-low.c (cached_status): New static global.
11034 (win32_wait): Add declaration.
11035 (do_initial_child_stuff): Flush all initial pending debug events
11036 up to the initial breakpoint.
11037 (win32_wait): If CACHED_STATUS was set, return that instead
11038 of doing a real wait. Remove the code resuming the execution
11039 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11040 during the initial phase. Also remove the code changing
11041 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11042 TARGET_WAITKIND_STOPPED.
11044 2013-12-11 Yao Qi <yao@codesourcery.com>
11046 * notif.c (handle_notif_ack): Return 0 if no notification
11049 2013-11-20 Doug Evans <dje@google.com>
11051 * linux-low.c (linux_set_resume_request): Fix comment.
11053 2013-11-20 Doug Evans <dje@google.com>
11055 * linux-low.c (resume_status_pending_p): Tweak comment.
11057 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11059 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11060 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11061 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11062 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11063 (srv_amd64_regobj): Add amd64-mpx.o.
11064 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11065 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11066 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11067 * i387-fp.c (num_pl_bnd_register) Added constant.
11068 (num_pl_bnd_cfg_registers) Added constant.
11069 (struct i387_xsave) Added reserved area and MPX fields.
11070 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11071 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11073 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11074 (init_registers_amd64_mpx_linux): Declare new function.
11075 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11076 (x86_64_regmap): Add MPX registers.
11077 (x86_linux_read_description): Add MPX case.
11078 (initialize_low_arch): Initialize MPX targets.
11080 2013-11-18 Tom Tromey <tromey@redhat.com>
11082 * configure: Rebuild.
11083 * configure.ac: Don't check for stdlib.h.
11084 * gdbreplay.c: Unconditionally include stdlib.h.
11086 2013-11-18 Tom Tromey <tromey@redhat.com>
11088 * config.in: Rebuild.
11089 * configure: Rebuild.
11090 * configure.ac: Don't use AC_HEADER_DIRENT.
11092 2013-11-18 Tom Tromey <tromey@redhat.com>
11094 * server.h: Don't check HAVE_STRING_H.
11095 * gdbreplay.c: Don't check HAVE_STRING_H.
11096 * configure: Rebuild.
11098 2013-11-18 Tom Tromey <tromey@redhat.com>
11100 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11103 2013-11-08 Tom Tromey <tromey@redhat.com>
11105 * configure, config.in: Rebuild.
11106 * configure.ac: Remove unused configury.
11108 2013-11-08 Tom Tromey <tromey@redhat.com>
11110 * acinclude.m4: Include common.m4, codeset.m4.
11111 * configure, config.in: Rebuild.
11112 * configure.ac: Use GDB_AC_COMMON.
11114 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11116 * linux-s390-low.c (HWCAP_S390_TE): New define.
11117 (s390_arch_setup): Consider the TE field in the HWCAP for
11118 determining 'have_regset_tdb'.
11120 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11123 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11126 2013-10-02 Pedro Alves <palves@redhat.com>
11128 * server.c (process_serial_event): Don't output "GDBserver
11129 exiting" if GDB is connected through stdio.
11130 * target.c (mywait): Likewise, be silent if GDB is connected
11133 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11135 * lynx-low.c (lynx_add_threads_after_attach): New function.
11136 (lynx_attach): Remove call to add_thread. Add call to
11137 lynx_add_threads_after_attach instead.
11139 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11141 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11142 * config.in, configure: Regenerated.
11144 2013-09-18 Yao Qi <yao@codesourcery.com>
11147 * server.c (start_inferior): Clear 'resume_info'.
11149 2013-09-16 Jiong Wang <jiwang@tilera.com>
11151 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11154 2013-09-16 Jiong Wang <jiwang@tilera.com>
11156 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11157 linux-tile-low.o to srv_tgtobj.
11159 2013-09-16 Will Newton <will.newton@linaro.org>
11161 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11164 2013-09-06 Pedro Alves <palves@redhat.com>
11166 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11167 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11168 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11169 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11170 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11171 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11173 2013-09-06 Pedro Alves <palves@redhat.com>
11175 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11176 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11178 2013-09-06 Pedro Alves <palves@redhat.com>
11180 * linux-amd64-ipa.c: Include tracepoint.h.
11181 * linux-i386-ipa.c: Include tracepoint.h.
11183 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11185 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11186 (ps_get_thread_area): New function.
11188 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11190 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11191 (initialize_low_arch): Call init_registers_crisv32 rather than
11192 init_register_crisv32.
11194 2013-09-05 Pedro Alves <palves@redhat.com>
11196 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11198 * hostio.h: ... this new file.
11199 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11200 win32-low.c: Include hostio.h.
11202 2013-09-05 Pedro Alves <palves@redhat.com>
11204 * server.h (gdb_client_data, handler_func, callback_handler_func)
11205 (delete_file_handler, add_file_handler, append_callback_event)
11206 (delete_callback_event, start_event_loop, initialize_event_loop):
11207 Move to event-loop.h and include it.
11208 * event-loop.h: New file.
11210 2013-09-05 Pedro Alves <palves@redhat.com>
11212 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11213 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11214 (loaded_dll, unloaded_dll): Move to ...
11215 * dll.h: ... this new file.
11216 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11218 2013-09-05 Pedro Alves <palves@redhat.com>
11220 * server.h (current_process, get_thread_process, all_processes)
11221 (add_inferior_to_list, for_each_inferior, current_inferior)
11222 (remove_inferior, add_process, remove_process, find_process_pid)
11223 (have_started_inferiors_p, have_attached_inferiors_p)
11224 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11225 (clear_inferiors, find_inferior, find_inferior_id)
11226 (inferior_target_data, set_inferior_target_data)
11227 (inferior_regcache_data, set_inferior_regcache_data): Move to
11228 inferiors.h, and include it.
11229 * inferiors.h: New file.
11231 2013-09-05 Pedro Alves <palves@redhat.com>
11233 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11237 2013-09-05 Pedro Alves <palves@redhat.com>
11239 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11241 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11242 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11243 (handle_tracepoint_general_set, handle_tracepoint_query)
11244 (tracepoint_finished_step, tracepoint_was_hit)
11245 (release_while_stepping_state_list, current_traceframe)
11246 (in_readonly_region, traceframe_read_mem)
11247 (fetch_traceframe_registers, traceframe_read_sdata)
11248 (traceframe_read_info, struct fast_tpoint_collect_status)
11249 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11250 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11251 (supply_fast_tracepoint_registers)
11252 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11253 (ipa_tdesc, claim_trampoline_space)
11254 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11255 (agent_mem_read, agent_get_trace_state_variable_value)
11256 (agent_set_trace_state_variable_value, agent_tsv_read)
11257 (agent_mem_read_string, get_raw_reg_func_addr)
11258 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11259 * tracepoint.h: ... this new file.
11261 2013-09-05 Pedro Alves <palves@redhat.com>
11263 * server.h (perror_with_name, error, fatal, warning, paddress)
11264 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11266 * utils.h: New file.
11268 2013-09-05 Pedro Alves <palves@redhat.com>
11270 * server.h (remote_debug, noack_mode, transport_is_reliable)
11271 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11272 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11273 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11274 (write_enn, initialize_async_io, enable_async_io)
11275 (disable_async_io, check_remote_input_interrupt_request)
11276 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11277 (dead_thread_notify, prepare_resume_reply)
11278 (decode_address_to_semicolon, decode_address, decode_m_packet)
11279 (decode_M_packet, decode_X_packet, decode_xfer_write)
11280 (decode_search_memory_packet, unhexify, hexify)
11281 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11282 (look_up_one_symbol, relocate_instruction)
11283 (monitor_output): Move to remote-utils.h, and include it.
11284 * remote-utils.h: New file.
11286 2013-09-05 Pedro Alves <palves@redhat.com>
11288 * server.h (_): Delete.
11290 2013-09-02 Pedro Alves <palves@redhat.com>
11292 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11293 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11295 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11297 2013-09-02 Pierre Muller <muller@sourceware.org>
11299 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11300 or WriteProcessMemory complete successfully and handle
11301 ERROR_PARTIAL_COPY error.
11303 2013-09-02 Pedro Alves <palves@redhat.com>
11305 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11306 error instead of EIO.
11308 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11311 * linux-low.c: Include filestuff.h.
11312 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11313 * lynx-low.c: Include filestuff.h.
11314 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11315 * server.c: Include filestuff.h.
11316 (main): Call notice_open_fds.
11317 * spu-low.c: Include filestuff.h.
11318 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11320 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11322 * Makefile.in: Explain why ../target and ../nat are not
11323 listed as include file search paths.
11324 (linux-waitpid.o): New object file rule.
11325 * configure.srv (srv_native_linux_obj): New variable.
11326 Replace all occurrences of linux native object files with
11327 $srv_native_linux_obj.
11328 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11329 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11330 (linux_enable_event_reporting): Remove declaration.
11331 (my_waitpid): Moved to common/linux-waitpid.c.
11332 (linux_wait_for_event): Pass ptid when calling
11333 linux_enable_event_reporting.
11334 (linux_supports_tracefork_flag): Remove.
11335 (linux_enable_event_reporting): Likewise.
11336 (linux_tracefork_grandchild): Remove.
11337 (STACK_SIZE): Moved to common/linux-ptrace.c.
11338 (linux_tracefork_child): Remove.
11339 (linux_test_for_tracefork): Remove.
11340 (linux_look_up_symbols): Call linux_supports_traceclone.
11341 (initialize_low): Remove call to linux_test_for_tracefork.
11342 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11343 common/linux-ptrace.h.
11344 (PTRACE_TYPE_ARG4): Likewise.
11345 Include linux-ptrace.h.
11347 2013-08-21 Pedro Alves <palves@redhat.com>
11349 * config.in: Renegerate.
11351 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11353 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11354 (SFILES): Remove $(srcdir)/common/target-common.c and
11355 add $(srcdir)/target/waitstatus.c.
11356 (OBS): Remove target-common.o and add waitstatus.o.
11357 (server_h): Remove $(srcdir)/../common/target-common.h and
11358 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11359 and $(srcdir)/../target/waitstatus.h.
11360 (target-common.o): Remove.
11361 (waitstatus.o): New target object file.
11362 * target.h: Do not include target-common.h and
11363 include target/resume.h, target/wait.h and
11364 target/waitstatus.h.
11366 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11368 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11369 to PTRACE_TYPE_ARG3.
11370 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11371 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11373 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11374 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11376 2013-07-27 Jie Zhang <jie@codesourcery.com>
11377 Daniel Jacobowitz <dan@codesourcery.com>
11378 Yao Qi <yao@codesourcery.com>
11380 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11381 (mips-linux-watch.o): New rule.
11382 (mips_linux_watch_h): New variable.
11383 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11385 * linux-mips-low.c: Include mips-linux-watch.h.
11386 (struct arch_process_info, struct arch_lwp_info): New.
11387 (update_watch_registers_callback): New function.
11388 (mips_linux_new_process, mips_linux_new_thread) New functions.
11389 (mips_linux_prepare_to_resume, mips_insert_point): New
11391 (mips_remove_point, mips_stopped_by_watchpoint): New
11393 (rsp_bp_type_to_target_hw_bp_type): New function.
11394 (mips_stopped_data_address): New function.
11395 (the_low_target): Add watchpoint support functions.
11397 2013-07-27 Yao Qi <yao@codesourcery.com>
11399 * i386-low.c: Include break-common.h.
11400 (enum target_hw_bp_type): Remove.
11402 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11404 * Makefile.in (SFILES): /common/target-common.c.
11405 (OBS): Add target-common.o.
11406 (server_h): Add $(srcdir)/../common/target-common.h.
11407 (target-common.o): New target.
11408 * server.c (queue_stop_reply_callback): Free
11409 status string after use.
11410 * target.c (target_waitstatus_to_string): Remove.
11411 * target.h: Include target-common.h.
11412 (resume_kind): Likewise.
11413 (target_waitkind): Likewise.
11414 (target_waitstatus): Likewise.
11415 (TARGET_WNOHANG): Likewise.
11417 2013-07-04 Yao Qi <yao@codesourcery.com>
11419 * Makefile.in (host_alias): Use @host_noncanonical@.
11420 (target_alias): Use @target_noncanonical@.
11421 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11422 ACX_NONCANONICAL_HOST.
11423 * configure: Regenerated.
11426 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11428 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11429 * configure: Rebuild.
11430 * Makefile.in (version_host, version_target): Get from configure.
11431 (version.c): Use $(version_host) and $(version_target).
11433 2013-07-03 Pedro Alves <palves@redhat.com>
11435 * Makefile.in (config.status): Depend on development.sh.
11436 * acinclude.m4: Include libmcheck.m4.
11437 * configure: Regenerate.
11439 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11441 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11442 attribute inside the parentheses.
11443 (winapi_DebugSetProcessKillOnExit): Ditto.
11444 (winapi_DebugBreakProcess): Ditto.
11445 (winapi_GenerateConsoleCtrlEvent): Ditto.
11447 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11449 * notif.h (notif_event): Add a dummy member to avoid compiler
11452 2013-07-01 Pedro Alves <palves@redhat.com>
11454 * hostio.c (HOSTIO_PATH_MAX): Define.
11455 (require_filename, handle_open, handle_unlink, handle_readlink):
11458 2013-07-01 Pedro Alves <palves@redhat.com>
11460 * server.h: Include "pathmax.h".
11461 * linux-low.c: Don't include sys/param.h.
11462 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11464 * win32-low.c: Don't include sys/param.h.
11465 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11467 2013-07-01 Pedro Alves <palves@redhat.com>
11469 * event-loop.c: Don't check HAVE_UNISTD_H before including
11471 * gdbreplay.c: Likewise.
11472 * remote-utils.c: Likewise.
11473 * server.c: Likewise.
11474 * configure.ac: Don't check for unistd.h.
11475 * configure: Regenerate.
11477 2013-06-28 Tom Tromey <tromey@redhat.com>
11479 * Makefile.in (version.c): Use version.in, not
11482 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11484 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11485 * configure: Rebuild.
11486 * Makefile.in (version_host, version_target): Get from configure.
11487 (version.c): Use $(version_host) and $(version_target).
11489 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11491 Fix trace-status to output user name without trailing colon.
11492 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11494 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11496 Fix trace-status to output proper start-time and stop-time.
11497 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11498 output start time and stop time in hex as gdb expects.
11500 2013-06-26 Pedro Alves <pedro@codesourcery.com>
11502 * tracepoint.c (build_traceframe_info_xml): Output trace state
11503 variables present in the trace buffer.
11505 2013-06-24 Tom Tromey <tromey@redhat.com>
11507 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11509 (version.o): Remove.
11510 * gdbreplay.c: Include version.h.
11511 (version, host_name): Don't declare.
11512 * server.h: Include version.h.
11513 (version, host_name): Don't declare.
11515 2013-06-12 Pedro Alves <palves@redhat.com>
11517 * linux-x86-low.c (linux_is_elf64): Delete global.
11518 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11519 with local linux_pid_exe_is_elf_64_file use.
11521 2013-06-11 Pedro Alves <palves@redhat.com>
11523 * linux-low.c (regset_disabled, disable_regset): New functions.
11524 (regsets_fetch_inferior_registers)
11525 (regsets_store_inferior_registers): Use them.
11526 (initialize_regsets_info); Don't allocate the disabled_regsets
11528 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11531 2013-06-11 Pedro Alves <palves@redhat.com>
11533 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11536 2013-06-11 Pedro Alves <palves@redhat.com>
11538 * linux-x86-low.c (initialize_low_arch): Call
11539 init_registers_x32_avx_linux.
11541 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11543 Fix compatibility with Android Bionic.
11544 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11547 2013-06-07 Pedro Alves <palves@redhat.com>
11550 * Makefile.in (OBS): Add tdesc.o.
11551 (IPA_OBJS): Add tdesc-ipa.o.
11552 (tdesc-ipa.o): New rule.
11553 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11555 * linux-low.c (new_inferior): Delete.
11556 (disabled_regsets, num_regsets): Delete.
11557 (linux_add_process): Adjust to set the new per-process
11559 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11560 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11561 was a stop. When calling arch_setup, switch the current inferior
11562 to the thread that got an event.
11563 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11564 (regsets_fetch_inferior_registers)
11565 (regsets_store_inferior_registers): New regsets_info parameter.
11567 (linux_register_in_regsets): New regs_info parameter. Adjust to
11569 (register_addr, fetch_register, store_register): New usrregs_info
11570 parameter. Adjust to use it.
11571 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11572 parameter regs_info. Adjust to use it.
11573 (linux_fetch_registers): Get the current inferior's regs_info, and
11575 (linux_store_registers): Ditto.
11576 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11577 (initialize_low): Don't initialize the target_regsets here. Call
11578 initialize_low_arch.
11579 * linux-low.h (target_regsets): Delete declaration.
11580 (struct regsets_info): New.
11581 (struct usrregs_info): New.
11582 (struct regs_info): New.
11583 (struct process_info_private) <new_inferior>: New field.
11584 (struct linux_target_ops): Delete the num_regs, regmap, and
11585 regset_bitmap fields. New field regs_info.
11586 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11587 * i387-fp.c (num_xmm_registers): Delete.
11588 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11589 calls to new interface.
11590 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11591 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11592 Infer the number of xmm registers from the regcache's target
11594 * i387-fp.h (num_xmm_registers): Delete.
11595 * inferiors.c (add_thread): Don't install the thread's regcache
11597 * proc-service.c (gregset_info): Fetch the current inferior's
11598 regs_info. Adjust to use it.
11599 * regcache.c: Include tdesc.h.
11600 (register_bytes, reg_defs, num_registers)
11601 (gdbserver_expedite_regs): Delete.
11602 (get_thread_regcache): If the thread doesn't have a regcache yet,
11603 create one, instead of aborting gdbserver.
11604 (regcache_invalidate_one): Rename to ...
11605 (regcache_invalidate_thread): ... this.
11606 (regcache_invalidate_one): New.
11607 (regcache_invalidate): Only invalidate registers of the current
11609 (init_register_cache): Add target_desc parameter, and use it.
11610 (new_register_cache): Ditto. Assert the target description has a
11611 non zero registers_size.
11612 (regcache_cpy): Add assertions. Adjust.
11613 (realloc_register_cache, set_register_cache): Delete.
11614 (registers_to_string, registers_from_string): Adjust.
11615 (find_register_by_name, find_regno, find_register_by_number)
11616 (register_cache_size): Add target_desc parameter, and use it.
11617 (free_register_cache_thread, free_register_cache_thread_one)
11618 (regcache_release, register_cache_size): New.
11619 (register_size): Add target_desc parameter, and use it.
11620 (register_data, supply_register, supply_register_zeroed)
11621 (supply_regblock, supply_register_by_name, collect_register)
11622 (collect_register_as_string, collect_register_by_name): Adjust.
11623 * regcache.h (struct target_desc): Forward declare.
11624 (struct regcache) <tdesc>: New field.
11625 (init_register_cache, new_register_cache): Add target_desc
11627 (regcache_invalidate_thread): Declare.
11628 (regcache_invalidate_one): Delete declaration.
11629 (regcache_release): Declare.
11630 (find_register_by_number, register_cache_size, register_size)
11631 (find_regno): Add target_desc parameter.
11632 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11634 * remote-utils.c: Include tdesc.h.
11635 (outreg, prepare_resume_reply): Adjust.
11636 * server.c: Include tdesc.h.
11637 (gdbserver_xmltarget): Delete declaration.
11638 (get_features_xml, process_serial_event): Adjust.
11639 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11641 (struct process_info) <tdesc>: New field.
11642 (ipa_tdesc): Declare.
11643 * tdesc.c: New file.
11644 * tdesc.h: New file.
11645 * tracepoint.c: Include tdesc.h.
11646 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11647 (get_context_regcache): Adjust to pass ipa_tdesc down.
11648 (do_action_at_tracepoint): Adjust to get the register cache size
11649 from the context regcache's description.
11650 (traceframe_walk_blocks): Adjust to get the register cache size
11651 from the current trace frame's description.
11652 (traceframe_get_pc): Adjust to get current trace frame's
11653 description and pass it down.
11654 (gdb_collect): Adjust to get the register cache size from the
11656 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11657 (gdbserver_xmltarget): Delete.
11658 (initialize_low_tracepoint): Set the ipa's target description.
11659 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11660 (initialize_low_tracepoint): Set the ipa's target description.
11661 * linux-x86-low.c: Include tdesc.h.
11662 [__x86_64__] (is_64bit_tdesc): New.
11663 (ps_get_thread_area, x86_get_thread_area): Use it.
11664 (i386_cannot_store_register): Rename to ...
11665 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11666 (i386_cannot_fetch_register): Rename to ...
11667 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11668 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11670 (target_regsets): Rename to ...
11671 (x86_regsets): ... this.
11672 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11674 (x86_siginfo_fixup): Use is_64bit_tdesc.
11675 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11676 (tdesc_x32_avx_linux, tdesc_x32_linux)
11677 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11679 (x86_linux_update_xmltarget): Delete.
11680 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11681 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11682 (AMD64_LINUX_USER64_CS): New.
11683 (x86_linux_read_description): New, based on
11684 x86_linux_update_xmltarget.
11685 (same_process_callback): New.
11686 (x86_arch_setup_process_callback): New.
11687 (x86_linux_update_xmltarget): New.
11688 (x86_regsets_info): New.
11689 (amd64_linux_regs_info): New.
11690 (i386_linux_usrregs_info): New.
11691 (i386_linux_regs_info): New.
11692 (x86_linux_regs_info): New.
11693 (x86_arch_setup): Reimplement.
11694 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11695 (x86_emit_ops): Ditto.
11696 (the_low_target): Adjust. Install x86_linux_regs_info,
11697 x86_cannot_fetch_register, and x86_cannot_store_register.
11698 (initialize_low_arch): New.
11699 * linux-ia64-low.c (tdesc_ia64): Declare.
11700 (ia64_fetch_register): Adjust.
11701 (ia64_usrregs_info, regs_info): New globals.
11702 (ia64_regs_info): New function.
11703 (the_low_target): Adjust.
11704 (initialize_low_arch): New function.
11705 * linux-sparc-low.c (tdesc_sparc64): Declare.
11706 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11708 (sparc_arch_setup): New function.
11709 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11710 (the_low_target): Adjust.
11711 (initialize_low_arch): New function.
11712 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11713 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11714 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11715 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11716 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11717 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11718 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11719 (tdesc_powerpc_isa205_vsx64l): Declare.
11720 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11721 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11722 (ppc_set_pc, ppc_get_hwcap): Adjust.
11723 (ppc_usrregs_info): Forward declare.
11724 (!__powerpc64__) ppc_regmap_adjusted: New global.
11725 (ppc_arch_setup): Adjust to the current process'es target
11727 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11728 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11729 (ppc_store_evrregset): Adjust.
11730 (target_regsets): Rename to ...
11731 (ppc_regsets): ... this, and make static.
11732 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11733 (ppc_regs_info): New function.
11734 (the_low_target): Adjust.
11735 (initialize_low_arch): New function.
11736 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11737 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11738 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11739 (tdesc_s390x_linux64v2): Declare.
11740 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11741 (s390_fill_gregset, s390_store_last_break): Adjust.
11742 (target_regsets): Rename to ...
11743 (s390_regsets): ... this, and make static.
11744 (s390_get_pc, s390_set_pc): Adjust.
11745 (s390_get_hwcap): New target_desc parameter, and use it.
11746 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11747 (s390_arch_setup): Adjust to set the current process'es target
11748 description. Don't adjust the regmap.
11749 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11750 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11751 (regs_info_3264): New globals.
11752 (s390_regs_info): New function.
11753 (the_low_target): Adjust.
11754 (initialize_low_arch): New function.
11755 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11756 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11757 [__mips64] (init_registers_mips_linux)
11758 (init_registers_mips_dsp_linux): Delete defines.
11759 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11760 (have_dsp): New global.
11761 (mips_read_description): New, based on mips_arch_setup.
11762 (mips_arch_setup): Reimplement.
11763 (get_usrregs_info): New function.
11764 (mips_cannot_fetch_register, mips_cannot_store_register)
11765 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11766 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11767 (target_regsets): Rename to ...
11768 (mips_regsets): ... this, and make static.
11769 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11770 (dsp_regs_info, regs_info): New globals.
11771 (mips_regs_info): New function.
11772 (the_low_target): Adjust.
11773 (initialize_low_arch): New function.
11774 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11775 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11777 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11778 (arm_read_description): New, with bits factored from
11780 (arm_arch_setup): Reimplement.
11781 (target_regsets): Rename to ...
11782 (arm_regsets): ... this, and make static.
11783 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11784 (arm_regs_info): New function.
11785 (the_low_target): Adjust.
11786 (initialize_low_arch): New function.
11787 * linux-m68k-low.c (tdesc_m68k): Declare.
11788 (target_regsets): Rename to ...
11789 (m68k_regsets): ... this, and make static.
11790 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11791 (m68k_regs_info): New function.
11792 (m68k_arch_setup): New function.
11793 (the_low_target): Adjust.
11794 (initialize_low_arch): New function.
11795 * linux-sh-low.c (tdesc_sharch): Declare.
11796 (target_regsets): Rename to ...
11797 (sh_regsets): ... this, and make static.
11798 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11799 (sh_regs_info, sh_arch_setup): New functions.
11800 (the_low_target): Adjust.
11801 (initialize_low_arch): New function.
11802 * linux-bfin-low.c (tdesc_bfin): Declare.
11803 (bfin_arch_setup): New function.
11804 (bfin_usrregs_info, regs_info): New globals.
11805 (bfin_regs_info): New function.
11806 (the_low_target): Adjust.
11807 (initialize_low_arch): New function.
11808 * linux-cris-low.c (tdesc_cris): Declare.
11809 (cris_arch_setup): New function.
11810 (cris_usrregs_info, regs_info): New globals.
11811 (cris_regs_info): New function.
11812 (the_low_target): Adjust.
11813 (initialize_low_arch): New function.
11814 * linux-cris-low.c (tdesc_crisv32): Declare.
11815 (cris_arch_setup): New function.
11816 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11817 (cris_regs_info): New function.
11818 (the_low_target): Adjust.
11819 (initialize_low_arch): New function.
11820 * linux-m32r-low.c (tdesc_m32r): Declare.
11821 (m32r_arch_setup): New function.
11822 (m32r_usrregs_info, regs_info): New globals.
11823 (m32r_regs_info): Adjust.
11824 (initialize_low_arch): New function.
11825 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11826 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11827 (tic6x_usrregs_info): Forward declare.
11828 (tic6x_read_description): New function, based on ...
11829 (tic6x_arch_setup): ... this. Reimplement.
11830 (target_regsets): Rename to ...
11831 (tic6x_regsets): ... this, and make static.
11832 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11833 (tic6x_regs_info): New function.
11834 (the_low_target): Adjust.
11835 (initialize_low_arch): New function.
11836 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11837 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11838 (target_regsets): Rename to ...
11839 (xtensa_regsets): ... this, and make static.
11840 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11842 (xtensa_arch_setup, xtensa_regs_info): New functions.
11843 (the_low_target): Adjust.
11844 (initialize_low_arch): New function.
11845 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11846 (nios2_arch_setup): Set the current process'es tdesc.
11847 (target_regsets): Rename to ...
11848 (nios2_regsets): ... this.
11849 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11850 (nios2_regs_info): New function.
11851 (the_low_target): Adjust.
11852 (initialize_low_arch): New function.
11853 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11854 (aarch64_arch_setup): Set the current process'es tdesc.
11855 (target_regsets): Rename to ...
11856 (aarch64_regsets): ... this.
11857 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11858 (aarch64_regs_info): New function.
11859 (the_low_target): Adjust.
11860 (initialize_low_arch): New function.
11861 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11863 (target_regsets): Rename to ...
11864 (tile_regsets): ... this.
11865 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11866 (tile_regs_info): New function.
11867 (tile_arch_setup): Set the current process'es tdesc.
11868 (the_low_target): Adjust.
11869 (initialize_low_arch): New function.
11870 * spu-low.c (tdesc_spu): Declare.
11871 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11872 * win32-arm-low.c (tdesc_arm): Declare.
11873 (arm_arch_setup): New function.
11874 (the_low_target): Install arm_arch_setup instead of
11875 init_registers_arm.
11876 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11877 (init_windows_x86): Rename to ...
11878 (i386_arch_setup): ... this. Set `win32_tdesc'.
11879 (the_low_target): Adjust.
11880 * win32-low.c (win32_tdesc): New global.
11881 (child_add_thread): Don't create the thread cache here.
11882 (do_initial_child_stuff): Set the new process'es tdesc.
11883 * win32-low.h (struct target_desc): Forward declare.
11884 (win32_tdesc): Declare.
11885 * lynx-i386-low.c (tdesc_i386): Declare global.
11886 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11887 * lynx-low.c (lynx_tdesc): New global.
11888 (lynx_add_process): Set the new process'es tdesc.
11889 * lynx-low.h (struct target_desc): Forward declare.
11890 (lynx_tdesc): Declare global.
11891 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11892 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11893 * nto-low.c (nto_tdesc): New global.
11894 (do_attach): Set the new process'es tdesc.
11895 * nto-low.h (struct target_desc): Forward declare.
11896 (nto_tdesc): Declare.
11897 * nto-x86-low.c (tdesc_i386): Declare.
11898 (nto_x86_arch_setup): Set `nto_tdesc'.
11900 2013-06-04 Gary Benson <gbenson@redhat.com>
11902 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11903 to qSupported response when appropriate.
11904 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11905 with nonzero-length annex.
11906 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11907 arguments supplied in annex.
11909 2013-05-31 Doug Evans <dje@google.com>
11912 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11913 64 bits in 64-cross-32 environment.
11915 2013-05-28 Pedro Alves <palves@redhat.com>
11917 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11918 (aarch64-without-fpu.c): Delete rule.
11919 * configure.srv (aarch64*-*-linux*): Remove references to
11920 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11921 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11924 2013-05-24 Pedro Alves <palves@redhat.com>
11926 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11927 instead of strchr/decode_address. Error if the range isn't split
11928 with a ','. Don't assume there's be a ':' in the action.
11930 2013-05-23 Yao Qi <yao@codesourcery.com>
11931 Pedro Alves <palves@redhat.com>
11933 * linux-low.c (lwp_in_step_range): New function.
11934 (linux_wait_1): If the thread was range stepping and stopped
11935 outside the stepping range, report the stop to GDB. Otherwise,
11936 continue stepping. Add range stepping debug output.
11937 (linux_set_resume_request): Copy the step range from the resume
11938 request to the lwp.
11939 (linux_supports_range_stepping): New.
11940 (linux_target_ops) <supports_range_stepping>: Set to
11941 linux_supports_range_stepping.
11942 * linux-low.h (struct linux_target_ops)
11943 <supports_range_stepping>: New field.
11944 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11945 * linux-x86-low.c (x86_supports_range_stepping): New.
11946 (the_low_target) <supports_range_stepping>: Set to
11947 x86_supports_range_stepping.
11948 * server.c (handle_v_cont): Handle 'r' action.
11949 (handle_v_requests): Append ";r" if the target supports range
11951 * target.h (struct thread_resume) <step_range_start,
11952 step_range_end>: New fields.
11953 (struct target_ops) <supports_range_stepping>:
11955 (target_supports_range_stepping): New macro.
11957 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11959 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11960 confusion in comment.
11962 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11964 * lynx-low.c (struct process_info_private): New type.
11965 (lynx_add_process): New function.
11966 (lynx_create_inferior, lynx_attach): Replace calls to
11967 add_process by calls to lynx_add_process.
11968 (lynx_resume): If PTID is null, then try using
11969 current_process()->private->last_wait_event_ptid.
11971 (lynx_clear_inferiors): Delete. The contents of that function
11972 has been inlined in lynx_mourn;
11973 (lynx_wait_1): Save the ptid in the process's private data.
11974 (lynx_mourn): Free the process' private data. Replace call
11975 to lynx_clear_inferiors by call to clear_inferiors.
11977 2013-05-17 Yao Qi <yao@codesourcery.com>
11979 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11982 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
11984 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11985 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11986 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11987 PT_TEXT_END_ADDR guards. Update comments.
11988 (linux_target_op) <read_offsets>: Conditionally define to
11989 linux_read_offsets if the target is UCLIBC and if it defines
11990 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11992 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11993 Andrew Jenner <andrew@codesourcery.com>
11995 * Makefile.in (SFILES): Add linux-nios2-low.c.
11996 (clean): Add action to delete nios2-linux.c.
11997 (nios2-linux.c): New rule.
11998 * configure.srv: Add nios2*-*-linux*.
11999 * linux-nios2-low.c: New.
12001 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12003 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12005 2013-04-25 Hui Zhu <hui@codesourcery.com>
12008 * ax.c (ax_printf): Add fflush.
12010 2013-04-22 Tom Tromey <tromey@redhat.com>
12012 * Makefile.in (SFILES): Add filestuff.c.
12013 (OBS): Add filestuff.o.
12014 (filestuff.o): New target.
12015 * config.in, configure: Rebuild.
12016 * configure.ac: Check for fdwalk, pipe2.
12018 2013-04-17 Pedro Alves <palves@redhat.com>
12020 * configure.ac (USE_THREAD_DB): Delete variable.
12021 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12022 Don't AC_SUBST USE_THREAD_DB.
12023 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12024 * config.in, configure: Regenerate.
12026 2013-04-16 Pedro Alves <palves@redhat.com>
12028 * linux-low.h (struct lwp_info) <thread_known>: Move under
12029 the USE_THREAD_DB #ifdef.
12031 2013-04-16 Pedro Alves <palves@redhat.com>
12033 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12034 (linux-low.o): Delete rule.
12035 * linux-low.h: Always include "gdb_thread_db.h" instead of
12036 conditionally including thread_db.h.
12037 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12040 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12042 * Makefile.in (install-only): Fix make install regression.
12044 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12046 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12047 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12049 * gdbserver.1: Remove.
12051 2013-03-22 Pedro Alves <palves@redhat.com>
12053 * linux-low.c (handle_extended_wait): Don't call
12054 linux_enable_event_reporting.
12056 2013-03-15 Tony Theodore <tonyt@logyst.com>
12059 * Makefile.in (SHELL): Use @SHELL@.
12061 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12063 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12066 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12068 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12069 Remove extraneous NULL element.
12071 2013-03-13 Yao Qi <yao@codesourcery.com>
12073 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12074 'V' block in trace frame.
12076 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12078 * target.h (struct target_ops): Add btrace ops.
12079 (target_supports_btrace): New macro.
12080 (target_enable_btrace): New macro.
12081 (target_disable_btrace): New macro.
12082 (target_read_btrace): New macro.
12083 * gdbthread.h (struct thread_info): Add btrace field.
12084 * server.c: Include btrace-common.h.
12085 (handle_btrace_general_set): New function.
12086 (handle_btrace_enable): New function.
12087 (handle_btrace_disable): New function.
12088 (handle_general_set): Call handle_btrace_general_set.
12089 (handle_qxfer_btrace): New function.
12090 (struct qxfer qxfer_packets[]): Add btrace entry.
12091 * inferiors.c (remove_thread): Disable btrace.
12092 * linux-low: Include linux-btrace.h.
12093 (linux_low_enable_btrace): New function.
12094 (linux_low_read_btrace): New function.
12095 (linux_target_ops): Add btrace ops.
12096 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12097 Add srv_linux_btrace=yes.
12098 (x86_64-*-linux*): Add linux-btrace.o.
12099 Add srv_linux_btrace=yes.
12100 * configure.ac: Define HAVE_LINUX_BTRACE.
12101 * config.in: Regenerated.
12102 * configure: Regenerated.
12104 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12106 * server.c (handle_qxfer): Preserve error message if -3 is
12108 (qxfer): Document the -3 return value.
12110 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12112 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12113 (linux_btrace_h): New variable.
12114 (linux-btrace.o): New rule.
12116 2013-03-08 Stan Shebs <stan@codesourcery.com>
12117 Hafiz Abid Qadeer <abidh@codesourcery.com>
12119 * tracepoint.c (trace_buffer_size): New global.
12120 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12121 (init_trace_buffer): Change to one-argument function. Allocate
12122 trace buffer memory.
12123 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12124 handle QTBuffer:size packet.
12125 (cmd_bigqtbuffer_size): New function.
12126 (initialize_tracepoint): Call init_trace_buffer with
12127 DEFAULT_TRACE_BUFFER_SIZE.
12128 * server.c (handle_query): Add QTBuffer:size in the
12131 2013-03-07 Yao Qi <yao@codesourcery.com>
12133 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12134 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12136 (cmd_qtsp): Adjust condition. Do post increment.
12137 Set cur_action and cur_step_action back to 0.
12139 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12142 * linux-low.c (linux_write_memory): Return early success if LEN is
12145 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12147 * configure.srv: Add x86_64-*-cygwin* as target.
12149 2013-02-28 Tom Tromey <tromey@redhat.com>
12151 * configure.ac: Invoke AC_SYS_LARGEFILE.
12152 * configure, config.in: Rebuild.
12154 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12156 * win32-low.c: Throughout, fix format strings and casts of
12157 printf-like functions to avoid type related warnings on all
12159 (get_child_debug_event): Print dwDebugEventCode as hex since
12160 that's how it's usually documented.
12162 2013-02-28 Yao Qi <yao@codesourcery.com>
12164 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12167 2013-02-27 Jiong Wang <jiwang@tilera.com>
12169 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12170 (reg-tilegx32.c): New rule.
12171 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12172 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12173 different register info initializer according to elf class.
12174 (init_registers_tilgx32): New function. The tilegx32 register info
12176 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12177 (tile_store_gregset): Likewise.
12179 2013-02-27 Yao Qi <yao@codesourcery.com>
12181 * server.c (process_point_options): Print debug message when
12182 debug_threads is true.
12184 2013-02-26 Yao Qi <yao@codesourcery.com>
12186 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12188 2013-02-19 Pedro Alves <palves@redhat.com>
12189 Kai Tietz <ktietz@redhat.com>
12193 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12194 instead of strtoul to extract address from packet.
12195 (process_serial_event) <'z'>: Likewise.
12197 2013-02-18 Yao Qi <yao@codesourcery.com>
12199 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12201 2013-02-14 Pedro Alves <palves@redhat.com>
12205 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12206 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12208 2013-02-14 Pedro Alves <palves@redhat.com>
12210 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12212 2013-02-14 Pedro Alves <palves@redhat.com>
12214 * tracepoint.c (save_string): Delete.
12215 (add_tracepoint_action): Use savestring instead of save_string.
12217 2013-02-12 Pedro Alves <palves@redhat.com>
12219 * linux-xtensa-low.c: Ditto.
12220 * xtensa-xtregs.c: Ditto.
12222 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12224 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12227 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12229 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12230 aarch64_num_wp_regs and aarch64_num_bp_regs to
12231 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12233 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12235 * linux-aarch64-low.c (ps_get_thread_area): Replace
12236 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12238 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12239 Marcus Shawcroft <marcus.shawcroft@arm.com>
12240 Nigel Stephens <nigel.stephens@arm.com>
12241 Yufeng Zhang <yufeng.zhang@arm.com>
12243 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12244 (aarch64.c, aarch64-without-fpu.c): New targets.
12245 * configure.srv (aarch64*-*-linux*): New.
12246 * linux-aarch64-low.c: New file.
12248 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12250 * linux-low.c (handle_extended_wait, linux_create_inferior)
12251 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12252 (dequeue_one_deferred_signal, linux_resume_one_thread)
12253 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12254 (linux_tracefork_grandchild, linux_test_for_tracefork)
12255 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12256 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12257 where the argument is 0.
12259 2013-01-25 Yao Qi <yao@codesourcery.com>
12261 * event-loop.c: Include "queue.h".
12262 (gdb_event_p): New typedef.
12263 (struct gdb_event) <next_event>: Remove.
12264 (event_queue): Change to QUEUE(gdb_event_p).
12265 (async_queue_event): Remove.
12266 (gdb_event_xfree): New.
12267 (initialize_event_loop): New.
12268 (process_event): Use API from QUEUE.
12269 (wait_for_event): Likewise.
12270 * server.c (main): Call initialize_event_loop.
12271 * server.h (initialize_event_loop): Declare.
12273 2013-01-18 Yao Qi <yao@codesourcery.com>
12275 * ax.h (struct eval_agent_expr_context): New.
12276 (gdb_eval_agent_expr): Update declaration.
12277 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12278 TFRAME. Add new argument CTX.
12279 * server.h (struct eval_agent_expr_context): Declare.
12280 (agent_mem_read, agent_tsv_read): Update declaration.
12281 (agent_mem_read_string): Likewise.
12282 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12283 (add_traceframe_block): Add new argument TPOINT.
12284 Increase TPOINT->traceframe_usage.
12285 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12286 eval_tracepoint_agent_expr.
12287 (condition_true_at_tracepoint): Likewise.
12288 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12289 (agent_mem_read_string, agent_tsv_read): Likewise.
12291 2013-01-16 Yao Qi <yao@codesourcery.com>
12293 * linux-low.c (linux_resume_one_lwp): Don't check
12294 'lwp->bp_reinsert != 0'.
12296 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12297 Pedro Alves <palves@redhat.com>
12299 * lynx-low.c (ptrace_request_to_str): Define a temporary
12300 macro and use it to simplify this function's implementation.
12302 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12304 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12307 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12309 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12311 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12313 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12315 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12317 * lynx-low.c (lynx_resume): Use the resume_info parameter
12318 to determine the ptid for the lynx_ptrace call, unless
12319 it is equal to minus_one_ptid, in which case we use the
12320 ptid of the current_inferior.
12321 (lynx_wait_1): After having received a thread create/exit
12322 event, resume the inferior's execution using the signaling
12323 thread's ptid, rather than the old ptid.
12325 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12327 * lynx-low.c (lynx_resume): Delete variable ret.
12329 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12331 * gdbreplay.c (gdbreplay_version): Update copyright year.
12332 * server.c (gdbserver_version): Likewise.
12334 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12336 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12339 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12341 * lynx-low.c (ptrace_request_to_str): Add handling for
12342 PTRACE_GETTRACESIG.
12344 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12346 * lynx-low.c (lynx_attach): Delete variable new_process.
12348 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12350 * lynx-low.c (lynx_create_inferior): Delete variable
12353 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12355 * lynx-low.c (ptrace_request_to_str): Do not handle
12356 PTRACE_GETTHREADLIST if this macro does not exist.
12358 2012-12-15 Yao Qi <yao@codesourcery.com>
12360 * Makefile.in (OBS): Add notif.o.
12361 * notif.c, notif.h: New.
12362 * server.c: Include "notif.h".
12363 (struct vstop_notif) <next>: Remove.
12365 (queue_stop_reply): Update.
12366 (push_event, send_next_stop_reply): Remove.
12367 (discard_queued_stop_replies): Update.
12368 (notif_stop): New variable.
12369 (handle_v_stopped): Remove.
12370 (handle_v_requests): Don't call handle_v_stopped. Call
12371 handle_ack_notif instead.
12372 (queue_stop_reply_callback): Call notif_event_enque instead
12373 of queue_stop_reply.
12374 (handle_status): Don't call send_next_stop_reply, call
12375 notif_write_event instead.
12376 (kill_inferior_callback): Likewise.
12377 (detach_or_kill_inferior_callback): Likewise.
12378 (main): Call initialize_notif.
12379 (process_serial_event): Call QUEUE_is_empty.
12380 (handle_target_event): Call notif_push instead of push event.
12381 * server.h (push_event): Remove declaration.
12383 2012-12-10 Tom Tromey <tromey@redhat.com>
12385 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12386 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12389 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12390 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12391 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12392 (amd64-linux-ipa.o, ax.o): Rewrite.
12393 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12394 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12395 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12396 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12397 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12398 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12399 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12400 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12401 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12402 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12403 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12404 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12405 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12406 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12407 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12408 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12409 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12410 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12411 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12412 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12413 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12414 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12415 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12416 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12417 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12418 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12419 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12420 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12421 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12422 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12423 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12424 (reg-tilegx.o): Remove.
12425 (all_object_files): New macro.
12426 Include .deps files.
12427 * aclocal.m4, configure: Rebuild.
12428 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12429 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12430 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12432 2012-12-05 Tom Tromey <tromey@redhat.com>
12435 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12437 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
12439 * configure.ac: Check for linux/perf_event.h.
12440 * config.in: Regenerated.
12441 * configure: Regenerated.
12443 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12445 * hostio.c (handle_readlink): Decrease buffer size
12446 parameter passed to readlink by one byte.
12448 2012-11-26 Yao Qi <yao@codesourcery.com>
12450 * configure.ac (build_warnings): Append '-Wempty-body'.
12451 * configure: Regenerated.
12452 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12455 2012-11-15 Pierre Muller <muller@sourceware.org>
12457 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12458 * config.in: Regenerate.
12459 * configure: Regenerate.
12460 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12461 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12462 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12463 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12465 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12466 instead of <sys/wait.h> header.
12467 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12469 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
12471 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12472 (various make rules): Remove -DGDBSERVER
12474 2012-11-09 Yao Qi <yao@codesourcery.com>
12476 * spu-low.c (current_ptid): Move it to ..
12477 * gdbthread.h: ... here. New.
12478 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12479 * server.c (myresume, process_serial_event): Likewise.
12480 * thread-db.c (thread_db_find_new_threads): Likewise.
12481 * tracepoint.c (run_inferior_command): Likewise.
12483 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
12485 * server.c (handle_search_memory_1): Include access length in
12488 2012-09-05 Michael Brandt <michael.brandt@axis.com>
12490 * linux-crisv32-low.c: Fix compile errors.
12492 2012-09-04 Yao Qi <yao@codesourcery.com>
12494 * tracepoint.c (cmd_qtsv): Adjust debug message.
12495 Don't check CUR_TPOINT.
12497 2012-08-28 Yao Qi <yao@codesourcery.com>
12499 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12500 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12501 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12502 Remove declarations of xmalloc, xreallloc, xstrdup and
12504 * Makefile.in (libiberty_h): New.
12505 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12506 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12508 2012-08-23 Yao Qi <yao@codesourcery.com>
12510 * server.h: Remove declaration of 'xsnprintf'.
12512 2012-08-22 Keith Seitz <keiths@redhat.com>
12514 * server.h: Include build-gnulib-gbserver/config.h.
12515 * gdbreplay.c: Likewise.
12517 2012-08-08 Doug Evans <dje@google.com>
12519 * Makefile.in (SFILES): Add gdb_vecs.c.
12520 (OBS): Add gdb_vecs.o.
12521 (gdb_vecs_h, host_defs_h): New variables.
12522 (thread-db.o): Add $(gdb_vecs_h) dependency.
12523 (gdb_vecs.o): New rule.
12524 * thread-db.c: #include "gdb_vecs.h".
12525 (thread_db_load_search): Use a vector to iterate over path elements.
12526 Handle text appearing after "$pdir".
12528 * configure.ac: Add check for strstr.
12529 * config.in: Regenerate.
12530 * configure: Regenerate.
12532 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12534 * hostio.c (handle_pread): If pread fails, fall back to attempting
12536 (handle_pwrite): Likewise for pwrite.
12538 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12540 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12541 between unsupported TYPE and unimplementable ADDR/LEN combination.
12542 (arm_insert_point): Act on new return value.
12544 2012-07-31 Pedro Alves <palves@redhat.com>
12546 * server.c (process_point_options): Only skip tokens if we find
12547 one that is unrecognized. Don't treat 'X' specially while
12548 skipping unrecognized tokens.
12550 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12552 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12553 to 4-byte-align HW breakpoint addresses for Thumb.
12555 2012-07-27 Yao Qi <yao@codesourcery.com>
12559 * server.h: Declare gdb_agent_about_to_close.
12560 * target.c (kill_inferior): Include "agent.h".
12561 New. Send command 'kill'.
12562 * target.h (kill_inferior): Removed macro.
12563 * tracepoint.c (gdb_agent_about_to_close): New.
12564 (gdb_agent_helper_thread): Handle command 'close'.
12565 Wait endlessly until the inferior stops.
12566 Install gdb_agent_remove_socket to atexit hook.
12567 (agent_socket_name): New static variable.
12568 (gdb_agent_socket_init): Replace local variable 'name' with
12569 'agent_socket_name'.
12570 (gdb_agent_remove_socket): New.
12572 2012-07-27 Yao Qi <yao@codesourcery.com>
12574 * server.c (process_point_options): Stop at 'X' when parsing.
12576 2012-07-19 Michael Eager <eager@eagercon.com>
12578 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
12580 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12581 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12582 hardware breakpoint.
12584 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12586 * gdbserver/linux-low.c (initialize_low): Call
12587 linux_ptrace_init_warnings.
12589 2012-07-02 Doug Evans <dje@google.com>
12591 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12594 2012-07-02 Stan Shebs <stan@codesourcery.com>
12596 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12597 (ax.o): Add it to build rule.
12599 (OBS): Add format.o.
12600 (IPA_OBS): Add format.o.
12601 * server.c (handle_query): Claim support for breakpoint commands.
12602 (process_point_options): Add command case.
12603 (process_serial_event): Leave running if there are printfs in
12605 * mem-break.h (any_persistent_commands): Declare.
12606 (add_breakpoint_commands): Declare.
12607 (gdb_no_commands_at_breakpoint): Declare.
12608 (run_breakpoint_commands): Declare.
12609 * mem-break.c (struct point_command_list): New struct.
12610 (struct breakpoint): New field command_list.
12611 (any_persistent_commands): New function.
12612 (add_commands_to_breakpoint): New function.
12613 (add_breakpoint_commands): New function.
12614 (gdb_no_commands_at_breakpoint): New function.
12615 (run_breakpoint_commands): New function.
12616 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12618 * ax.c: Include format.h.
12619 (ax_printf): New function.
12620 (gdb_eval_agent_expr): Add printf opcode.
12622 2012-06-13 Yao Qi <yao@codesourcery.com>
12624 * server.c (start_inferior): Remove duplicated writes to fields
12625 'last_resume_kind' and 'last_status' of 'current_inferior'.
12627 2012-06-12 Yao Qi <yao@codesourcery.com>
12628 Pedro Alves <palves@redhat.com>
12630 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12632 * server.c (handle_v_cont): Extend comment.
12634 2012-06-11 Yao Qi <yao@codesourcery.com>
12636 * linux-low.c (linux_attach): Add 'static'.
12638 2012-06-06 Yao Qi <yao@codesourcery.com>
12640 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12642 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12644 Fix gcc -flto compilation warning.
12645 * server.c (main): Make variable multi_mode and attach volatile.
12647 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12649 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12650 if the platform doesn't know about it.
12652 2012-05-30 Jeff Kenton <jkenton@tilera.com>
12654 * Makefile.in (SFILES): Add linux-tile-low.c.
12655 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12656 * configure.srv: Handle tilegx-*-linux*.
12657 * linux-tile-low.c: New file.
12659 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12661 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12663 2012-05-24 Pedro Alves <palves@redhat.com>
12667 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
12669 2012-05-24 Pedro Alves <palves@redhat.com>
12673 Replace target_signal with gdb_signal throughout.
12675 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12677 * linux-low.c (linux_store_registers): Avoid the copying sequence
12678 when no data has been retrieved by ptrace.
12680 2012-05-22 Will Deacon <will.deacon@arm.com>
12682 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12683 Include asm/ptrace.h.
12684 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12687 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12689 * linux-low.c (linux_store_registers): Don't re-retrieve data
12690 with ptrace that has already been obtained from /proc. Always
12691 copy any data retrieved with ptrace to the buffer supplied.
12693 2012-05-11 Yao Qi <yao@codesourcery.com>
12694 Pedro Alves <palves@redhat.com>
12696 * linux-low.c (enum stopping_threads_kind): New.
12697 (stopping_threads): Change type to `enum stopping_threads_kind'.
12698 (handle_extended_wait): If stopping and suspending threads, leave
12699 the new_lwp suspended too.
12700 (linux_wait_for_event): Adjust.
12701 (stop_all_lwps): Set `stopping_threads' to
12702 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12703 whether we're suspending threads or just stopping them. Assert no
12706 2012-04-29 Yao Qi <yao@codesourcery.com>
12708 * server.h: Move some code to ...
12709 * gdbthread.h: ... here. New.
12710 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12711 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12712 (nto-low.o, win32-low.o): Likewise.
12713 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12714 * regcache.c, remote-utils.c, server.c: Likewise.
12715 * target.c, tracepoint.c, win32-low.c: Likewise.
12717 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12719 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12720 (PTRACE_ARG4_TYPE): Likewise.
12721 (PTRACE_XFER_TYPE): Likewise.
12722 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12723 ptrace to PTRACE_ARG3_TYPE.
12724 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12725 (PTRACE_ARG4_TYPE): Likewise.
12726 (PTRACE_XFER_TYPE): Likewise.
12727 (linux_detach_one_lwp): Cast fourth argument of
12728 ptrace to long then PTRACE_ARG4_TYPE.
12729 (regsets_fetch_inferior_registers): Cast third argument of
12730 ptrace to long then PTRACE_ARG3_TYPE.
12731 (regsets_store_inferior_registers): Likewise.
12733 2012-04-20 Pedro Alves <palves@redhat.com>
12735 * configure: Regenerate.
12737 2012-04-19 Pedro Alves <palves@redhat.com>
12739 * Makefile.in (GNULIB_BUILDDIR): New.
12740 (LIBGNU, INCGNU, GNULIB_H): Adjust.
12741 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12742 (all, install-only, uninstall, clean-info, all-lib, clean): No
12743 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12744 (maintainer-clean realclean distclean): Use subdir_do.
12746 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
12747 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
12748 * acinclude.m4: Include acx_configure_dir.m4.
12749 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12750 calls. Call AC_PROG_RANLIB. Configure gnulib using
12753 (GNULIB_STDINT_H): Adjust.
12754 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12755 * gdbreplay.c: Include build-gnulib/config.h.
12756 * server.h: Likewise.
12757 * aclocal.m4: Regenerate.
12758 * config.in: Regenerate.
12759 * configure: Regenerate.
12761 2012-04-19 Pedro Alves <palves@redhat.com>
12763 * Makefile.in (LIBGNU, INCGNU): Adjust.
12764 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12765 (all, install-only, uninstall, clean-info, all-lib, clean)
12766 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12767 * configure.ac: Adjust AC_OUTPUT output.
12768 * aclocal.m4: Regenerate.
12769 * configure: Regenerate.
12771 2012-04-19 Pedro Alves <palves@redhat.com>
12773 * Makefile.in (generated_files): New.
12774 (server_h): Remove the explicit dependency on config.h, and depend
12775 on $generated_files.
12777 2012-04-19 Pedro Alves <palves@redhat.com>
12779 * Makefile.in (INCGNU): Add -Ignulib.
12781 2012-04-19 Pedro Alves <palves@redhat.com>
12783 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12784 (INCGNU): ... this, and spell out -I here.
12785 (GNULIB_LIB): Rename to ...
12786 (LIBGNU): ... this.
12787 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12789 2012-04-19 Pedro Alves <palves@redhat.com>
12791 * config.in: Regenerate.
12793 2012-04-19 Pedro Alves <palves@redhat.com>
12795 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12796 * server.h (memmem): Remove declaration.
12797 * config.in: Regenerate.
12798 * configure: Regenerate.
12800 2012-04-19 Yao Qi <yao@codesourcery.com>
12802 * Makefile.in (SFILES): Add common/vec.c.
12806 2012-04-19 Yao Qi <yao@codesourcery.com>
12808 * remote-utils.c (prepare_resume_reply): Replace with macro
12809 target_core_of_thread.
12810 * server.c (handle_qxfer_threads_proper): Likewise.
12811 * target.h (traget_core_of_thread): New macro.
12813 2012-04-18 Pedro Alves <palves@redhat.com>
12815 * aclocal.m4: Regenerate.
12816 * configure: Regenerate.
12818 2012-04-16 Yao Qi <yao@codesourcery.com>
12820 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12821 duplicated on address.
12823 2012-04-16 Yao Qi <yao@codesourcery.com>
12825 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12826 (struct tracepoint_action_ops) <send>: New field.
12827 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12828 (agent_expr_send, x_tracepoint_action_send): New.
12829 (l_tracepoint_action_send): New.
12830 (cmd_qtdp): Download and install tracepoint
12831 according to `use_agent'.
12832 (run_inferior_command): Add one more parameter `len'.
12834 (tracepoint_send_agent): New.
12835 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12837 2012-04-16 Yao Qi <yao@codesourcery.com>
12839 * tracepoint.c (download_tracepoints): Moved to ...
12840 (cmd_qtstart): ... here.
12842 2012-04-14 Yao Qi <yao@codesourcery.com>
12844 * tracepoint.c: Include inttypes.h.
12845 (struct collect_memory_action): Use sized types.
12846 (struct tracepoint): Likewise.
12847 (cmd_qtdp, stop_tracing): Update print specifiers.
12848 (cmd_qtp, response_tracepoint): Likewise.
12849 (collect_data_at_tracepoint): Likewise.
12850 (collect_data_at_step): Likewise.
12852 2012-04-14 Yao Qi <yao@codesourcery.com>
12854 Import gnulib module inttypes.
12855 * aclocal.m4, config.in, configure: Regenerated.
12857 2012-04-14 Yao Qi <yao@codesourcery.com>
12859 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12860 Makefile and config.status at last.
12862 2012-04-13 Yao Qi <yao@codesourcery.com>
12864 * tracepoint.c: Include stdint.h unconditionally.
12866 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12868 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12869 on BFD_HAVE_SYS_PROCFS_TYPE.
12870 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12871 * configure: Regenerate.
12872 * config.in: Likewise.
12874 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12876 * Makefile.in (clean): Also remove x32.c x32-linux.c
12877 x32-avx.c x32-avx-linux.c.
12878 (x32.o): New target.
12880 (x32-linux.o): Likewise.
12881 (x32-linux.c): Likewise.
12882 (x32-avx.o): Likewise.
12883 (x32-avx.c): Likewise.
12884 (x32-avx-linux.o): Likewise.
12885 (x32-avx-linux.c): Likewise.
12887 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12888 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12889 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12890 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12891 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12892 i386/x32-avx-linux.xml.
12894 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12895 (init_registers_x32_avx_linux): Likwise.
12896 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12897 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12899 2012-04-13 Pedro Alves <palves@redhat.com>
12901 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12902 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12903 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12904 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12907 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12909 * linux-x86-low.c (compat_x32_clock_t): New.
12910 (compat_x32_siginfo_t): Likewise.
12911 (compat_x32_siginfo_from_siginfo): Likewise.
12912 (siginfo_from_compat_x32_siginfo): Likewise.
12913 (linux_is_elf64): Likewise.
12914 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12915 and siginfo_from_compat_x32_siginfo for x32.
12916 (x86_arch_setup): Set linux_is_elf64.
12918 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12921 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12923 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12924 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12925 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12926 compatible with process.
12928 2012-04-12 Yao Qi <yao@codesourcery.com>
12930 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12931 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12932 (install-only, install-info, clean): Handle sub dir gnulib.
12933 (all-lib, am--refresh): New targets.
12934 (memmem.o): Remove target.
12935 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12936 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12937 (AC_REPLACE_FUNCS): Remove memmem.
12938 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12939 (AC_OUTPUT): Generate Makefile in gnulib/.
12940 * aclocal.m4, config.in, configure: Regenerated.
12942 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12944 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12946 2012-04-05 Pedro Alves <palves@redhat.com>
12948 -Werror=strict-aliasing
12950 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12953 2012-04-04 Pedro Alves <palves@redhat.com>
12955 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12956 (sparc_store_gregset_from_stack, sparc_store_gregset)
12957 (sparc_breakpoint_at): Fix formatting.
12959 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12961 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12963 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12964 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12965 * config.in: Regenerate.
12966 * configure: Likewise.
12968 2012-03-29 Pedro Alves <palves@redhat.com>
12970 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12971 Correct ptrace arguments.
12973 2012-03-28 Pedro Alves <palves@redhat.com>
12975 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
12976 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
12977 (IA64_FR1_REGNUM): New defines.
12978 (ia64_fetch_register): New.
12979 (the_low_target): Install it.
12980 * linux-low.h (struct linux_target_ops) <fetch_register>: New
12982 * linux-low.c (linux_fetch_registers): Try the
12983 the_low_target.fetch_register hook first.
12985 * linux-arm-low.c (the_low_target): Adjust.
12986 * linux-bfin-low.c (the_low_target): Adjust.
12987 * linux-cris-low.c (the_low_target): Adjust.
12988 * linux-crisv32-low.c (the_low_target): Adjust.
12989 * linux-m32r-low.c (the_low_target): Adjust.
12990 * linux-m68k-low.c (the_low_target): Adjust.
12991 * linux-mips-low.c (the_low_target): Adjust.
12992 * linux-ppc-low.c (the_low_target): Adjust.
12993 * linux-s390-low.c (the_low_target): Adjust.
12994 * linux-sh-low.c (the_low_target): Adjust.
12995 * linux-sparc-low.c (the_low_target): Adjust.
12996 * linux-tic6x-low.c (the_low_target): Adjust.
12997 * linux-x86-low.c (the_low_target): Adjust.
12998 * linux-xtensa-low.c (the_low_target): Adjust.
13000 2012-03-26 Pedro Alves <palves@redhat.com>
13002 * server.c (handle_qxfer_libraries): Don't bail early if
13003 the_target->qxfer_libraries_svr4 is not NULL.
13005 2012-03-26 Pedro Alves <palves@redhat.com>
13007 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13009 2012-03-23 Pedro Alves <palves@redhat.com>
13011 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13012 "library-list-svr4" element's start tag when the the DSO list is
13015 2012-03-23 Pedro Alves <palves@redhat.com>
13017 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13018 a variable whose type size is the same as the inferior's pointer
13021 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13023 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13025 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13026 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13027 * linux-low.h: Include <signal.h>.
13028 (struct siginfo): Remove forward declaration.
13029 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13032 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13034 * .gitignore: Ignore more files.
13036 2012-03-19 Pedro Alves <palves@redhat.com>
13037 Jan Kratochvil <jan.kratochvil@redhat.com>
13039 * server.c (cont_thread, general_thread): Add describing comments.
13040 (start_inferior): Clear `cont_thread'.
13041 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13044 2012-03-15 Yao Qi <yao@codesourcery.com>
13046 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13048 (cmd_qtdp): ... here.
13050 2012-03-15 Yao Qi <yao@codesourcery.com>
13052 * tracepoint.c (struct tracepoint_action_ops): New.
13053 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13054 (m_tracepoint_action_download): New.
13055 (r_tracepoint_action_download): New.
13056 (x_tracepoint_action_download): New.
13057 (l_tracepoint_action_download): New.
13058 (add_tracepoint_action): Install `action->ops' according type.
13059 (download_tracepoint_1): Move code `download' function pointer
13060 of various tracepoint_action_ops.
13062 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13064 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13065 linux_ptrace_attach_warnings.
13067 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13069 * Makefile.in (linux-ptrace.o): New.
13070 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13071 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13072 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13073 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13074 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13076 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13078 2012-03-08 Yao Qi <yao@codesourcery.com>
13079 Pedro Alves <palves@redhat.com>
13081 Fix PR server/13392.
13082 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13083 offset of JMP insn.
13084 * tracepoint.c (remove_tracepoint): New.
13085 (cmd_qtdp): Call remove_tracepoint when failed to install.
13087 2012-03-07 Pedro Alves <palves@redhat.com>
13089 * linux-low.c (get_detach_signal): New.
13090 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13091 Pass on pending signals to PTRACE_DETACH. Check the result of the
13093 * server.c (program_signals, program_signals_p): New.
13094 (handle_general_set): Handle QProgramSignals.
13095 * server.h (program_signals, program_signals_p): Declare.
13097 2012-03-05 Pedro Alves <palves@redhat.com>
13098 Jan Kratochvil <jan.kratochvil@redhat.com>
13100 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13103 2012-03-03 Yao Qi <yao@codesourcery.com>
13105 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13106 agent_look_up_symbols.
13108 2012-03-03 Yao Qi <yao@codesourcery.com>
13110 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13111 (linux-x86-low.o): Likewise.
13112 * server.h: Remove in_process_agent_loaded.
13113 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13117 2012-03-03 Yao Qi <yao@codesourcery.com>
13119 * tracepoint.c (gdb_agent_capability): New global.
13120 (in_process_agent_loaded_ust): Renamed to
13121 `in_process_agent_supports_ust'.
13123 (in_process_agent_supports_ust): Call agent_capability_check.
13124 (clear_installed_tracepoints): Assert that agent supports
13127 2012-03-03 Yao Qi <yao@codesourcery.com>
13129 * linux-low.c (linux_supports_agent): New.
13130 (linux_target_ops): Initialize field `supports_agent' with
13131 linux_supports_agent.
13132 * target.h (struct target_ops) <supports_agent>: New.
13133 (target_supports_agent): New macro.
13134 * server.c (handle_general_set): Handle packet 'QAgent'.
13135 (handle_query): Send `QAgent+'.
13136 * Makefile.in (server.o): Depends on agent.h.
13138 2012-03-03 Yao Qi <yao@codesourcery.com>
13140 * Makefile.in (OBS): Add agent.o.
13141 Add new rule for agent.o.
13142 Track dependence of tracepoint.c on agent.h.
13143 * tracepoint.c (run_inferior_command_1):
13144 (run_inferior_command): Call agent_run_command.
13145 (gdb_ust_connect_sync_socket): Deleted. Move it to
13147 (resume_thread, stop_thread): Likewise.
13148 (gdb_ust_socket_init): Renamed to ...
13149 (gdb_agent_socket_init): ... New.
13150 (gdb_ust_thread): Renamed to ...
13151 (gdb_agent_helper_thread): ... New.
13152 (gdb_ust_init): Move some code to ...
13153 (gdb_agent_init): ... here. New.
13154 [HAVE_UST]: Call gdb_ust_init.
13155 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13156 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13157 * config.in, configure: Regenerated.
13159 2012-03-02 Pedro Alves <palves@redhat.com>
13161 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13162 * linux-low.c (struct simple_pid_list): New.
13163 (stopped_pids): New a struct simple_pid_list pointer.
13164 (add_to_pid_list, pull_pid_from_list): New.
13165 (handle_extended_wait): Don't assume the first signal new children
13166 report is SIGSTOP. Adjust call to pull_pid_from_list.
13167 (linux_wait_for_lwp): Adjust.
13169 2012-03-02 Yao Qi <yao@codesourcery.com>
13171 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13174 2012-03-02 Yao Qi <yao@codesourcery.com>
13176 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13177 `stop_pc' and `tpoint'. Update caller.
13179 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13181 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13182 * linux-low.c (use_linux_regsets): New macro.
13183 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13184 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13185 (linux_register_in_regsets): New function.
13186 (usr_fetch_inferior_registers): Skip registers covered by
13188 (usr_store_inferior_registers): Likewise.
13189 (usr_fetch_inferior_registers): New macro.
13190 (usr_store_inferior_registers): Likewise.
13191 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13192 (linux_store_registers): Likewise.
13193 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13195 (init_registers_mips64_dsp_linux): Likewise.
13196 (init_registers_mips_linux): New macro.
13197 (init_registers_mips_dsp_linux): Likewise.
13198 (mips_dsp_num_regs): Likewise.
13199 (DSP_BASE, DSP_CONTROL): New fallback macros.
13200 (mips_base_regs): New macro.
13201 (mips_regmap): Use it. Fix the size.
13202 (mips_dsp_regmap): New variable.
13203 (mips_dsp_regset_bitmap): Likewise.
13204 (mips_arch_setup): New function.
13205 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13207 (mips_cannot_store_register): Likewise.
13208 (the_low_target): Update .arch_setup, .num_regs and .regmap
13209 initializers. Add .regset_bitmap initializer.
13210 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13212 * linux-bfin-low.c (the_low_target): Likewise.
13213 * linux-cris-low.c (the_low_target): Likewise.
13214 * linux-crisv32-low.c (the_low_target): Likewise.
13215 * linux-ia64-low.c (the_low_target): Likewise.
13216 * linux-m32r-low.c (the_low_target): Likewise.
13217 * linux-m68k-low.c (the_low_target): Likewise.
13218 * linux-ppc-low.c (the_low_target): Likewise.
13219 * linux-s390-low.c (the_low_target): Likewise.
13220 * linux-sh-low.c (the_low_target): Likewise.
13221 * linux-sparc-low.c (the_low_target): Likewise.
13222 * linux-tic6x-low.c (the_low_target): Likewise.
13223 * linux-x86-low.c (the_low_target): Likewise.
13224 * linux-xtensa-low.c (the_low_target): Likewise.
13225 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13226 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13227 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13229 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13230 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13232 2012-02-29 Yao Qi <yao@codesourcery.com>
13233 Pedro Alves <palves@redhat.com>
13235 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13236 `step_over_finished' is true.
13238 2012-02-27 Pedro Alves <palves@redhat.com>
13240 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13241 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13243 2012-02-27 Pedro Alves <palves@redhat.com>
13246 * linux-low.c (pid_is_stopped): New.
13247 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13249 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13251 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13254 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13256 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13258 2012-02-24 Luis Machado <lgustavo@codesourcery>
13260 * server.c (handle_query): Advertise support for target-side
13261 breakpoint condition evaluation.
13262 (process_point_options): New function.
13263 (process_serial_event): When inserting a breakpoint, check for
13264 a target-side condition that should be evaluated.
13266 * mem-break.c: Include regcache.h and ax.h.
13267 (point_cond_list_t): New data structure.
13268 (breakpoint) <cond_list>: New field.
13269 (find_gdb_breakpoint_at): Make non-static.
13270 (delete_gdb_breakpoint_at): Clear any target-side
13272 (clear_gdb_breakpoint_conditions): New function.
13273 (add_condition_to_breakpoint): Likewise.
13274 (add_breakpoint_condition): Likewise.
13275 (gdb_condition_true_at_breakpoint): Likewise.
13276 (gdb_breakpoint_here): Return result directly instead
13277 of going through a local variable.
13279 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13280 (clear_gdb_breakpoint_conditions): Likewise.
13281 (add_breakpoint_condition): Likewise.
13282 (gdb_condition_true_at_breakpoint): Likewise.
13284 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13285 (need_step_over_p): Take target-side breakpoint condition into
13288 2012-02-24 Luis Machado <lgustavo@codesourcery>
13290 * server.h: Include tracepoint.h.
13291 (agent_mem_read, agent_get_trace_state_variable_value,
13292 agent_set_trace_state_variable_value,
13293 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13294 get_set_tsv_func_addr): New prototypes.
13296 * ax.h: New include file.
13297 * ax.c: New source file.
13299 * tracepoint.c: Include ax.h.
13300 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13301 agent_expr, eval_result_type): Move to ax.h.
13302 (parse_agent_expr): Rename to ...
13303 (gdb_parse_agent_expr): ... this, make it non-static and move
13305 (unparse_agent_expr) Rename to ...
13306 (gdb_unparse_agent_expr): ... this, make it non-static and move
13308 (eval_agent_expr): Rename to ...
13309 (eval_tracepoint_agent_expr): ... this.
13310 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13311 forward declarations.
13312 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13313 (agent_get_trace_state_variable_value): New function.
13314 (agent_set_trace_state_variable_value): New function.
13315 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13316 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13317 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13318 (condition_true_at_tracepoint): Likewise.
13319 (parse_agent_expr): Rename to ...
13320 (gdb_parse_agent_expr): ... this and move to ax.c.
13321 (unparse_agent_expr): Rename to ...
13322 (gdb_unparse_agent_expr): ... this and move to ax.c.
13323 (gdb_agent_op_name): Move to ax.c.
13324 (eval_agent_expr): Rename to ...
13325 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13327 (eval_tracepoint_agent_expr): New function.
13328 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13330 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13332 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13333 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13334 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13335 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13336 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13337 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13338 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13339 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13340 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13341 (compile_bytecodes): Remove forward declaration.
13342 (is_goto_target): Move to ax.c.
13343 (compile_bytecodes): Move to ax.c and call
13344 agent_get_trace_state_variable_value (...) and
13345 agent_set_trace_state_variable_value (...).
13347 * Makefile.in: Update ax.c and IPA dependencies.
13349 2012-02-24 Pedro Alves <palves@redhat.com>
13351 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13352 (cmd_bigqtbuffer_circular): ... this. Only handle
13353 'QTBuffer:circular:'.
13354 (handle_tracepoint_general_set): Adjust.
13356 2012-02-16 Yao Qi <yao@codesourcery.com>
13358 * inferiors.c: Move code to ...
13359 * dll.c: .... here. New.
13360 * server.h: Declare clear_dlls.
13361 * Makefile.in (SFILES): Add dll.c.
13365 2012-02-11 Yao Qi <yao@codesourcery.com>
13367 * server.c: (handle_monitor_command): Add a new parameter
13369 (handle_query): Update caller.
13371 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13373 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13374 * configure, config.in: Regenerate.
13375 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13378 2012-02-02 Pedro Alves <palves@redhat.com>
13380 Try SIGKILL first, then PTRACE_KILL.
13381 * linux-low.c (linux_kill_one_lwp): New.
13382 (linux_kill_one_lwp): Rename to ...
13383 (kill_one_lwp_callback): ... this. Use the new
13384 linux_kill_one_lwp.
13386 2012-02-02 Pedro Alves <palves@redhat.com>
13388 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13391 2012-01-27 Pedro Alves <palves@redhat.com>
13393 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13394 (elf_64_file_p): Make static.
13395 (linux_pid_exe_is_elf_64_file): New.
13396 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13397 Delete declarations.
13398 (linux_pid_exe_is_elf_64_file): Declare.
13399 * linux-x86-low.c (x86_arch_setup): Use
13400 linux_pid_exe_is_elf_64_file.
13402 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13404 * linux-low.c (linux_wait_for_event_1): Rename to ...
13405 (linux_wait_for_event): ... here and merge it with former
13406 linux_wait_for_event - new variable wait_ptid, use it.
13407 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13409 2012-01-23 Pedro Alves <palves@redhat.com>
13411 * server.c (main): Avoid yet another case of infinite loop while
13412 detaching/killing after a longjmp.
13414 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13417 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13419 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13421 * hostio.c (handle_readlink): New function.
13422 (handle_vFile): Call it to handle "vFile:readlink" packets.
13424 2012-01-20 Pedro Alves <palves@redhat.com>
13425 Ulrich Weigand <ulrich.weigand@linaro.org>
13427 * server.c (handle_v_requests): Only support vAttach and vRun to
13428 start multiple processes when in extended protocol mode.
13430 2012-01-17 Pedro Alves <palves@redhat.com>
13432 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13433 memalign plus mprotect to allocate the scratch buffer.
13435 2012-01-13 Pedro Alves <palves@redhat.com>
13437 * server.c (attach_inferior): Clear `cont_thread'.
13439 2012-01-13 Pedro Alves <palves@redhat.com>
13441 * server.c (main): Avoid infinite loop while detaching/killing
13444 2012-01-09 Doug Evans <dje@google.com>
13446 * server.c (start_inferior): Set last_ptid in --wrapper case.
13448 2012-01-06 Yao Qi <yao@codesourcery.com>
13450 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13452 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13454 2012-01-04 Yao Qi <yao@codesourcery.com>
13456 * tracepoint.c (cmd_qtdp): Print debug message
13457 for static tracepoint.
13459 2012-01-04 Yao Qi <yao@codesourcery.com>
13461 * tracepoint.c (trace_vdebug): Differentiate debug message
13462 between gdbserver and IPA.
13464 2012-01-03 Yao Qi <yao@codesourcery.com>
13466 * tracepoint.c (tracepoint_was_hit): Don't collect for
13469 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13471 * terminal.h: Reformat copyright header.
13473 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13475 * server.c (gdbserver_version): Update copyright year.
13476 * gdbreplay.c (gdbreplay_version): Likewise.
13478 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13480 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13483 2011-12-18 Hui Zhu <teawater@gmail.com>
13484 * linux-low.c (linux_create_inferior): Save return value to ret.
13486 2011-12-18 Hui Zhu <teawater@gmail.com>
13488 * linux-low.c (linux_create_inferior): Save return value to ret.
13490 2011-12-16 Doug Evans <dje@google.com>
13492 * linux-low.c (linux_create_inferior): If stdio connection,
13493 redirect stdin from /dev/null, stdout to stderr.
13494 * remote-utils.c (remote_is_stdio): New static global.
13495 (remote_connection_is_stdio): New function.
13496 (remote_prepare): Handle stdio connection.
13497 (remote_open): Ditto.
13498 (remote_close): Don't close stdin for stdio connections.
13499 (read_prim,write_prim): New functions. Replace all calls to
13500 read/write to these.
13501 * server.c (main): Watch for "-" argument. Move call to
13502 remote_prepare before start_inferior.
13503 * server.h (STDIO_CONNECTION_NAME): New macro.
13504 (remote_connection_is_stdio): Declare.
13506 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13507 in debugging output.
13509 2011-12-15 Yao Qi <yao@codesourcery.com>
13511 * tracepoint.c: Include sys/syscall.h.
13512 (gdb_ust_thread): Remove preprocessor conditional.
13514 2011-12-14 Pedro Alves <pedro@codesourcery.com>
13516 * linux-low.c (linux_detach_one_lwp): Call
13517 the_low_target.prepare_to_resume before detaching.
13519 2011-12-14 Yao Qi <yao@codesourcery.com>
13521 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13524 2011-12-14 Yao Qi <yao@codesourcery.com>
13526 * i386-low.c (i386_low_stopped_data_address): Initialize local
13527 variable `control'.
13529 2011-12-13 Pedro Alves <pedro@codesourcery.com>
13533 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13534 DR_CONTROL unless necessary. Extend comments.
13535 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13536 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13538 2011-12-13 Yao Qi <yao@codesourcery.com>
13540 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13542 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13544 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13546 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13547 Print new debug message for such case.
13549 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13551 Fix overlapping memcpy.
13552 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13553 the read_inferior_memory transfer.
13554 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13555 write_inferior_memory transfer.
13556 (set_fast_tracepoint_jump): New variable buf. Use it for the
13557 read_inferior_memory and write_inferior_memory transfers.
13558 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13559 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13560 Use it for the write_inferior_memory transfer.
13561 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13564 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13566 * linux-low.c (fetch_register, store_register): Make code
13567 consistent, fix formatting.
13569 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13571 * linux-low.c (usr_store_inferior_registers): Factor out code
13572 to handle individual registers into...
13573 (store_register): ... this new function.
13575 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13577 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13578 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13579 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13580 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13581 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13582 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13583 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13584 (srv_xmlfiles): Add new XML files.
13586 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13588 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13589 (init_registers_s390_linux32v1): Add prototype.
13590 (init_registers_s390_linux32v2): Likewise.
13591 (init_registers_s390_linux64v1): Likewise.
13592 (init_registers_s390_linux64v2): Likewise.
13593 (init_registers_s390x_linux64v1): Likewise.
13594 (init_registers_s390x_linux64v2): Likewise.
13595 (s390_num_regs): Increment to 52.
13596 (s390_regmap): Add orig_r2 register.
13597 (s390_num_regs_3264): Increment to 68.
13598 (s390_regmap_3264): Add orig_r2 register.
13599 (s390_collect_ptrace_register): Handle orig_r2 register.
13600 (s390_supply_ptrace_register): Likewise.
13601 (s390_fill_last_break): New function.
13602 (s390_store_last_break): Likewise.
13603 (s390_fill_system_call): New function.
13604 (s390_store_system_call): Likewise.
13605 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13607 (s390_check_regset): New function.
13608 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13609 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13610 Update target_regsets for available register sets.
13612 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13613 Jan Kratochvil <jan.kratochvil@redhat.com>
13615 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13616 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13618 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13619 * linux-low.h (struct process_info_private): New member r_debug.
13620 * server.c (handle_qxfer_libraries): Call
13621 the_target->qxfer_libraries_svr4.
13622 (handle_qxfer_libraries_svr4): New function.
13623 (qxfer_packets): New entry "libraries-svr4".
13624 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13625 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13626 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13627 PACKET_qXfer_libraries_svr4.
13629 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13631 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13632 PSW address/mask between 8-byte and 16-byte formats.
13633 (s390_supply_ptrace_register): Likewise.
13634 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13635 basic addressing mode bit.
13637 2011-11-24 Stan Shebs <stan@codesourcery.com>
13639 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13641 2011-11-17 Stan Shebs <stan@codesourcery.com>
13643 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13644 (tracing_start_time): New global.
13645 (tracing_stop_time): New global.
13646 (tracing_user_name): New global.
13647 (tracing_notes): New global.
13648 (tracing_stop_note): New global.
13649 (cmd_qtstart): Set traceframe_usage, start_time.
13650 (stop_tracing): Set stop_time.
13651 (cmd_qtstatus): Report additional status.
13652 (cmd_qtp): New function.
13653 (handle_tracepoint_query): Call it.
13654 (cmd_qtnotes): New function.
13655 (handle_tracepoint_general_set): Call it.
13656 (get_timestamp): Rename from tsv_get_timestamp.
13658 2011-11-14 Stan Shebs <stan@codesourcery.com>
13659 Kwok Cheung Yeung <kcy@codesourcery.com>
13661 * linux-x86-low.c (small_jump_insn): New.
13662 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13663 trampoline and error message, build a trampoline and issue a small
13664 jump instruction to it.
13665 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13666 trampoline and error message.
13667 (x86_get_min_fast_tracepoint_insn_len): New.
13668 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13669 * linux-low.h (struct linux_target_ops): Add arguments to
13670 install_fast_tracepoint_jump_pad operation, add new operation.
13671 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13673 (linux_get_min_fast_tracepoint_insn_len): New function.
13674 (linux_target_op): Add new operation.
13675 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13676 (gdb_trampoline_buffer_end): Ditto.
13677 (gdb_trampoline_buffer_error): Ditto.
13678 (struct ipa_sym_addresses): Add fields for new IPA variables.
13679 (symbol_list): Add entries for new IPA variables.
13680 (struct tracepoint): Add fields to hold the address range of the
13681 trampoline used by the tracepoint.
13682 (trampoline_buffer_head): New static variable.
13683 (trampoline_buffer_tail): Ditto.
13684 (claim_trampoline_space): New function.
13685 (have_fast_tracepoint_trampoline_buffer): New function.
13686 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13688 (install_fast_tracepoint): Ditto, also add error buffer argument.
13689 (cmd_qtminftpilen): New function.
13690 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13691 (fast_tracepoint_from_trampoline_address): New function.
13692 (fast_tracepoint_collecting): Handle trampoline as part of jump
13694 (set_trampoline_buffer_space): New function.
13695 (initialize_tracepoint): Initialize new IPA variables.
13696 * target.h (struct target_ops): Add arguments to
13697 install_fast_tracepoint_jump_pad operation, add new
13698 get_min_fast_tracepoint_insn_len operation.
13699 (target_get_min_fast_tracepoint_insn_len): New.
13700 (install_fast_tracepoint_jump_pad): Add arguments.
13701 * server.h (IPA_BUFSIZ): Define.
13702 * linux-i386-ipa.c: Include extra header files.
13703 (initialize_fast_tracepoint_trampoline_buffer): New function.
13704 (initialize_low_tracepoint): Call it.
13705 * server.h (set_trampoline_buffer_space): Declare.
13706 (claim_trampoline_space): Ditto.
13707 (have_fast_tracepoint_trampoline_buffer): Ditto.
13709 2011-11-14 Yao Qi <yao@codesourcery.com>
13711 * server.c (handle_query): Handle InstallInTrace for qSupported.
13712 * tracepoint.c (add_tracepoint): Sort list.
13713 (install_tracepoint, download_tracepoint): New.
13714 (cmd_qtdp): Call them to install and download tracepoints.
13715 (sort_tracepoints): Removed.
13716 (cmd_qtstart): Update.
13718 2011-11-14 Yao Qi <yao@codesourcery.com>
13720 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13721 * mem-break.h: Declare.
13722 * tracepoint.c (cmd_qtstart): Move some code to ...
13723 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13725 (download_tracepoints): Move some code to ...
13726 (download_tracepoint_1): ... here. New.
13728 2011-11-08 Yao Qi <yao@codesourcery.com>
13730 * remote-utils.c (relocate_instruction): A comment fix.
13732 2011-11-07 Joel Brobecker <brobecker@adacore.com>
13734 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13735 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13736 dr_status_mirror and dr_control_mirror from debug_reg_state.
13737 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13738 (i386_initial_stuff): Remove use of deleted globals.
13739 (i386_get_thread_context, i386_set_thread_context,
13740 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13741 from debug_reg_state.
13743 2011-11-05 Yao Qi <yao@codesourcery.com>
13745 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13746 address as TPOINT's.
13748 2011-11-02 Stan Shebs <stan@codesourcery.com>
13750 * tracepoint.c (agent_mem_read_string): New function.
13751 (eval_agent_expr): Call it for tracenz.
13752 * server.c (handle_query): Report support for tracenz.
13754 2011-11-02 Yao Qi <yao@codesourcery.com>
13756 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13758 2011-11-02 Yao Qi <yao@codesourcery.com>
13760 * target.h: Fix a typo in comment.
13762 2011-10-31 Pedro Alves <pedro@codesourcery.com>
13764 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13765 clobber the breakpoints' shadows with fast tracepoint jumps.
13766 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13767 * target.c (write_inferior_memory): Also pass MYADDR down to
13770 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13772 * configure.ac: Check support for personality routine.
13773 * configure: Regenerate.
13774 * config.in: Likewise.
13775 * linux-low.c: Include <sys/personality.h>.
13776 Define ADDR_NO_RANDOMIZE if necessary.
13777 (linux_create_inferior): Disable address space randomization when
13778 forking inferior, if requested.
13779 (linux_supports_disable_randomization): New function.
13780 (linux_target_ops): Install it.
13781 * server.h (disable_randomization): Declare.
13782 * server.c (disable_randomization): New global variable.
13783 (handle_general_set): Handle QDisableRandomization.
13784 (handle_query): Likewise for qSupported.
13785 (main): Support --disable-randomization and --no-disable-randomization
13786 command line arguments.
13787 * target.h (struct target_ops): Add supports_disable_randomization.
13788 (target_supports_disable_randomization): New macro.
13790 2011-09-29 Mike Frysinger <vapier@gentoo.org>
13792 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13794 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13795 [!PT_GETDSBT] (target_loadmap): New definition.
13796 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13797 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13798 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13799 and PT_GETDSBT to LINUX_LOADMAP.
13800 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13801 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13803 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13805 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13806 (arm_linux_hwbp_cap): New static variable.
13807 (arm_linux_get_hwbp_cap): Replace by ...
13808 (arm_linux_init_hwbp_cap): ... this new function.
13809 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13810 (arm_linux_get_hw_watchpoint_count): Likewise.
13811 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13812 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13813 (arm_prepare_to_resume): Use perror_with_name instead of error.
13815 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13817 * linux-arm-low.c: Include <signal.h>.
13818 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13819 (struct arm_linux_hwbp_cap): New data type.
13820 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13821 (struct arm_linux_hw_breakpoint): New data type.
13822 (MAX_BPTS, MAX_WPTS): Define.
13823 (struct arch_process_info, struct arch_lwp_info): New data types.
13824 (arm_linux_get_hwbp_cap): New function.
13825 (arm_linux_get_hw_breakpoint_count): Likewise.
13826 (arm_linux_get_hw_watchpoint_count): Likewise.
13827 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13828 (arm_hwbp_control_initialize): Likewise.
13829 (arm_hwbp_control_is_enabled): Likewise.
13830 (arm_hwbp_control_is_initialized): Likewise.
13831 (arm_hwbp_control_disable): Likewise.
13832 (arm_linux_hw_breakpoint_equal): Likewise.
13833 (arm_linux_hw_point_initialize): Likewise.
13834 (struct update_registers_data): New data structure.
13835 (update_registers_callback: New function.
13836 (arm_insert_point): Likewise.
13837 (arm_remove_point): Likewise.
13838 (arm_stopped_by_watchpoint): Likewise.
13839 (arm_stopped_data_address): Likewise.
13840 (arm_new_process): Likewise.
13841 (arm_new_thread): Likewise.
13842 (arm_prepare_to_resume): Likewise.
13843 (the_low_target): Register arm_insert_point, arm_remove_point,
13844 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13845 arm_new_thread, and arm_prepare_to_resume.
13847 2011-09-15 Stan Shebs <stan@codesourcery.com>
13849 * server.h (struct emit_ops): Add compare-goto fields.
13850 * tracepoint.c (gdb_agent_op_sizes): New table.
13851 (emit_eq_goto): New function.
13852 (emit_ne_goto): New function.
13853 (emit_lt_goto): New function.
13854 (emit_le_goto): New function.
13855 (emit_gt_goto): New function.
13856 (emit_ge_goto): New function.
13857 (is_goto_target): New function.
13858 (compile_bytecodes): Recognize special cases of compare-goto
13859 combinations and call specialized emitters for them.
13860 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13861 (amd64_emit_ne_goto): New function.
13862 (amd64_emit_lt_goto): New function.
13863 (amd64_emit_le_goto): New function.
13864 (amd64_emit_gt_goto): New function.
13865 (amd64_emit_ge_goto): New function.
13866 (amd64_emit_ops): Add the new functions.
13867 (i386_emit_eq_goto): New function.
13868 (i386_emit_ne_goto): New function.
13869 (i386_emit_lt_goto): New function.
13870 (i386_emit_le_goto): New function.
13871 (i386_emit_gt_goto): New function.
13872 (i386_emit_ge_goto): New function.
13873 (i386_emit_ops): Add the new functions.
13875 2011-09-08 Stan Shebs <stan@codesourcery.com>
13877 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13878 (i386_emit_epilogue): Restore %ebx.
13880 2011-08-31 Jie Zhang <jzhang918@gmail.com>
13882 * server.c (step_thread): Remove definition.
13883 (process_serial_event): Don't handle Hs.
13884 * server.h (step_thread): Remove declaration.
13885 * target.c (set_desired_inferior): Remove use of step_thread.
13887 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13889 * linux-low.c: Include linux-procfs.h.
13890 (linux_attach_lwp_1): Update comments.
13891 (linux_attach): Scan for existing threads when attaching to a
13892 process that is the tgid.
13893 * Makefile.in: Update dependencies.
13895 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13897 * configure.srv: Add linux-procfs.o dependencies.
13899 2011-08-14 Yao Qi <yao@codesourcery.com>
13901 * target.h (struct target_ops): Fix indent.
13902 * win32-low.c (win32_target_ops): Fix comment.
13904 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
13905 Yao Qi <yao@codesourcery.com>
13907 * Makefile.in (clean): Remove tic6x-*.c files.
13908 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13909 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13910 (tic6x-c64xp-linux.c): Likewise.
13911 * configure.srv: Add support for tic6x-*-uclinux.
13912 * linux-tic6x-low.c: New.
13913 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13915 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
13916 Yao Qi <yao@codesourcery.com>
13918 * target.h (struct target_ops): Add read_loadmap.
13919 * linux-low.c (struct target_loadseg): New type.
13920 (struct target_loadmap): New type.
13921 (linux_read_loadmap): New function.
13922 (linux_target_ops): Add linux_read_loadmap.
13923 * server.c (handle_query): Support qXfer:fdpic:read packet.
13924 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13927 2011-08-05 Eli Zaretskii <eliz@gnu.org>
13929 * win32-low.c: Include <stdint.h>.
13931 2011-07-22 Pedro Alves <pedro@codesourcery.com>
13933 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13934 to the inferior here.
13935 (i386_remove_aligned_watchpoint): Ditto.
13936 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13937 fit part of the watchpoint in the debug registers.
13938 (i386_update_inferior_debug_regs): New.
13939 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13940 registers, and only update the inferior on success.
13941 (i386_low_remove_watchpoint): Ditto.
13943 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13945 * linux-low.c (compare_ints, unique, list_threads, show_process,
13946 linux_core_of_thread): Delete.
13947 (linux_target_ops): Change linux_core_of_thread to
13948 linux_common_core_of_thread.
13949 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13950 * utils.c (malloc_failure): Change type of argument.
13951 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13952 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13953 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13954 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13955 (IPA_OBJS): Add common-utils-ipa.o.
13956 (ptid_h, linux_osdata_h): New macros.
13957 (server_h): Add common/common-utils.h, common/xml-utils.h,
13958 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13960 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13961 ptid.o, buffer.o): New rules.
13962 (linux-low.o): Add common/linux-osdata.h as a dependency.
13963 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13964 * configure.ac: Add AC_HEADER_DIRENT check.
13965 * config.in: Regenerate.
13966 * configure: Regenerate.
13967 * remote-utils.c (xml_escape_text): Delete.
13968 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13969 buffer_xml_printf): Move to common/buffer.c.
13970 * server.c (main): Remove call to initialize_inferiors.
13971 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
13972 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
13973 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
13974 internal_error, gdb_assert, gdb_assert_fail): Delete.
13975 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
13976 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
13978 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
13979 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
13980 initialize_inferiors): Delete.
13982 2011-07-20 Pedro Alves <pedro@codesourcery.com>
13984 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13987 2011-05-31 Pedro Alves <pedro@codesourcery.com>
13989 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13991 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13993 2011-05-26 Yao Qi <yao@codesourcery.com>
13995 * Makefile.in (thread-db.o): Track dependence to
13996 common/gdb_thread_db.h.
13997 * thread-db.c: include gdb_thread_db.h from right place.
13999 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14001 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14002 __FILE__ and __LINE__ to internal_error.
14004 2011-05-13 Doug Evans <dje@google.com>
14006 * thread-db.c (try_thread_db_load_from_sdir): New function.
14007 (try_thread_db_load_from_dir): New function.
14008 (thread_db_load_search): Handle $sdir, ignore $pdir.
14009 Remove trying of system directories if search of
14010 libthread-db-search-path fails, that is now done via $sdir.
14012 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14014 * server.c (handle_query): Add EnableDisableTracepoints to the list
14015 of supported features.
14016 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14018 (cmd_qtenable_disable): New.
14019 (cmd_qtstart): Install tracepoints even if disabled.
14020 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14021 receiving a QTEnable or QTDisable packet.
14022 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14023 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14025 (gdb_probe): Skip data collection if static tracepoint is disabled.
14027 2011-05-10 Doug Evans <dje@google.com>
14029 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14031 2011-05-04 Doug Evans <dje@google.com>
14033 * linux-low.c (linux_join): Skip process lookup.
14034 * spu-low.c (spu_join): Ditto.
14035 * server.c (join_inferiors_callback): Delete.
14036 (process_serial_event): For 'D' packet (detach) call join_inferior
14039 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14041 * README: Don't mention xscale*-*-linux*.
14042 * configure.srv (xscale*-*-linux*): Don't handle target.
14044 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14046 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14048 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14049 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14050 (i386_emit_void_call_2): Likewise.
14052 2011-04-26 Yao Qi <yao@codesourcery.com>
14054 * linux-low.c: Move common macros to linux-ptrace.h.
14055 Include linux-ptrace.h.
14056 * Makefile.in (linux_ptrace_h): New.
14057 (linux-low.o): Depends on linux-ptrace.h.
14059 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14061 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14062 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14063 (remote_prepare): New function with most of the TCP code from ...
14064 (remote_open): ... here. Detect PORT here unconditionally. Move also
14065 setting transport_is_reliable.
14066 * server.c (run_once): New variable.
14067 (gdbserver_usage): Document it.
14068 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14069 the first run if RUN_ONCE.
14070 * server.h (run_once, remote_prepare): New declarations.
14072 2011-04-19 Tom Tromey <tromey@redhat.com>
14074 * win32-low.c (handle_load_dll): Remove duplicate "the".
14076 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14078 Remove support for old Cygwin 1.5 versions.
14079 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14080 function to avoid warning.
14081 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14084 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14086 * gdbserver/server.h (Macro _): Define it if not available.
14088 2011-03-14 Michael Snyder <msnyder@vmware.com>
14090 * hostio.c (handle_close): Remove unnecessary null test.
14092 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14094 * Makefile.in (maintainer-clean realclean distclean): Remove
14095 "make ... subdir_do" command.
14097 2011-03-10 Michael Snyder <msnyder@vmware.com>
14099 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14101 * server.c (handle_v_run): Free alloced buffer on early return.
14103 2011-03-09 Yao Qi <yao@codesourcery.com>
14106 2011-03-04 Yao Qi <yao@codesourcery.com>
14108 * Makefile.in: Remove GNU make feature --directory.
14110 2011-03-05 Yao Qi <yao@codesourcery.com>
14112 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14113 (subdir_do): New make target. Copied from gdb/Makefile.
14114 (maintainer-clean, realclean, distclean, clean): Call corresponding
14115 make targets in common/Makefile.
14117 2011-02-11 Yao Qi <yao@codesourcery.com>
14119 * configure.ac: Call AC_PROG_RANLIB.
14120 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14121 * configure: Regenerate.
14123 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14125 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14127 2011-03-06 Yao Qi <yao@codesourcery.com>
14129 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14131 2011-03-05 Yao Qi <yao@codesourcery.com>
14133 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14134 (subdir_do): New make target. Copied from gdb/Makefile.
14135 (maintainer-clean, realclean, distclean, clean): Call corresponding
14136 make targets in common/Makefile.
14138 2011-03-04 Yao Qi <yao@codesourcery.com>
14140 * Makefile.in: Remove GNU make feature --directory.
14142 2011-03-04 Michael Snyder <msnyder@vmware.com>
14144 * server.c (queue_stop_reply): Call xmalloc not malloc.
14146 2011-03-02 Michael Snyder <msnyder@vmware.com>
14148 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14150 2011-02-28 Michael Snyder <msnyder@vmware.com>
14152 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14153 (cmd_qtframe): Ditto.
14154 (cmd_qtbuffer): Ditto.
14155 (cmd_bigqtbuffer): Ditto.
14157 * utils.c (decimal2str): Initialize 'width' to nine, then
14158 don't mess with it.
14160 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14162 * hostio.c (require_data): Free *data, not data.
14164 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14166 * hostio.c (require_data): Use free, not xfree.
14168 2011-02-27 Michael Snyder <msnyder@vmware.com>
14170 * server.c (handle_query): Discard unused value.
14172 * hostio.c (require_data): Free malloc memory before returning
14175 2011-02-26 Michael Snyder <msnyder@vmware.com>
14177 * linux-low.c (list_threads): Call closedir for dirent.
14179 2011-02-27 Michael Snyder <msnyder@vmware.com>
14181 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14182 a case statement falls through.
14184 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14186 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14189 2011-02-26 Michael Snyder <msnyder@vmware.com>
14191 * utils.c (decimal2str): Eliminate dead code and dead param.
14192 (pulongest): Drop dead param from call to decimal2str.
14195 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14197 Revert the following patch (not approved yet):
14198 2011-02-21 Hui Zhu <teawater@gmail.com>
14199 * tracepoint.c (tp_printf): New function.
14200 (eval_agent_expr): Handle gdb_agent_op_printf.
14202 2011-02-21 Hui Zhu <teawater@gmail.com>
14204 * tracepoint.c (tp_printf): New function.
14205 (eval_agent_expr): Handle gdb_agent_op_printf.
14207 2011-02-18 Tom Tromey <tromey@redhat.com>
14209 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14210 (tracepoint.o): Likewise.
14211 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14212 (gdb_agent_op_names): Likewise.
14214 2011-02-18 Tom Tromey <tromey@redhat.com>
14216 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14217 gdb_agent_op_rot>: New constants.
14218 (gdb_agent_op_names): Add pick and roll.
14219 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14222 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14224 * aclocal.m4: Regenerated with aclocal-1.11.1.
14226 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14228 * server.c (handle_qxfer_traceframe_info): New.
14229 (qxfer_packets): Register "traceframe-info".
14230 (handle_query): Report support for qXfer:traceframe-info:read+.
14231 * tracepoint.c (match_blocktype): New.
14232 (traceframe_find_block_type): Rename to ...
14233 (traceframe_walk_blocks): ... this. Add callback filter argument,
14235 (traceframe_find_block_type): New, reimplemented on top of
14236 traceframe_walk_blocks.
14237 (build_traceframe_info_xml): New.
14238 (traceframe_read_info): New.
14239 * server.h (traceframe_read_info): Declare.
14241 2011-02-11 Yao Qi <yao@codesourcery.com>
14243 * configure.ac: Call AC_PROG_RANLIB.
14244 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14245 * configure: Regenerate.
14247 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14249 * server.c (gdb_read_memory): Change return semantics to allow
14251 (handle_search_memory_1): Adjust.
14252 (process_serial_event) <'m' packet>: Handle partial transfers.
14253 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14255 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14257 * regcache.c (init_register_cache): Initialize
14258 regcache->register_status.
14259 (free_register_cache): Release regcache->register_status.
14260 (regcache_cpy): Copy register_status.
14261 (registers_to_string): Print 'x's for unavailable registers.
14262 (supply_register): Mark the register's status valid or
14263 unavailable, depending on whether a buffer was passed in or not.
14264 (supply_register_zeroed): New.
14265 (supply_regblock): Mark the registers' status valid or
14266 unavailable, depending on whether a buffer was passed in or not.
14267 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14268 (struct regcache): New `register_status' field.
14269 (supply_register_zeroed): Declare.
14270 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14271 supply_register_zeroed, rather than passing a NULL buffer to
14273 * tracepoint.c (fetch_traceframe_registers): Update comment.
14275 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14277 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14280 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14282 * server.h (decode_xfer_write): Change prototype.
14283 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14284 and don't extract the annex here.
14285 * server.c (decode_xfer_read): Remove `annex' parameter,
14286 and don't extract the annex here.
14287 (decode_xfer): New.
14288 (struct qxfer): New.
14289 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14290 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14291 (handle_qxfer_statictrace): New functions, abstracted out from
14292 handle_query, and made to use the struct qxfer interface.
14293 (handle_threads_qxfer_proper): Rename to ...
14294 (handle_qxfer_threads_proper): ... this.
14295 (handle_threads_qxfer): Rename to ...
14296 (handle_qxfer_threads): ... this. Adjust.
14297 (qxfer_packets): New array.
14298 (handle_qxfer): New function.
14299 (handle_query): Use handle_qxfer.
14301 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14303 * gdbreplay.c: Shorten lines of >= 80 columns.
14304 * linux-low.c: Ditto.
14305 * linux-ppc-low.c: Ditto.
14306 * linux-s390-low.c: Ditto.
14307 * linux-sparc-low.c: Ditto.
14308 * linux-x86-low.c: Ditto.
14309 * linux-xtensa-low.c: Ditto.
14310 * mem-break.c: Ditto.
14311 * nto-low.c: Ditto.
14312 * regcache.h: Ditto.
14313 * remote-utils.c: Ditto.
14316 * thread-db.c: Ditto.
14317 * tracepoint.c: Ditto.
14319 * win32-low.h: Ditto.
14321 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14323 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14326 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14328 * server.c (gdbserver_version): Update copyright year in version
14330 * gdbreplay.c (gdbreplay_version): Ditto.
14332 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14334 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14335 * linux-bfin-low.c: New file.
14336 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14337 PT_DATA_ADDR for BFIN targets.
14338 * Makefile.in (SFILES): Add linux-bfin-low.c.
14339 (clean): Remove reg-bfin.c.
14340 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14341 * README: Mention supported Blackfin targets.
14343 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14345 * .gitignore: New file.
14347 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14349 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14351 2010-10-22 Jie Zhang <jie@codesourcery.com>
14353 * Makefile.in: Add FLAGS_TO_PASS variable.
14354 (install): Remove dependency of install-only and recursively
14355 invoke make for install-only.
14357 2010-10-04 Doug Evans <dje@google.com>
14359 * Makefile.in (uninstall): Use $(DESTDIR).
14361 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14365 * linux-x86-low.c (compat_siginfo_from_siginfo)
14366 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14367 si_code is < 0. Check for si_code == SI_TIMER before checking for
14370 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14372 * lynx-i386-low.c: New file.
14373 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14375 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14377 * lynx-low.c (ptrace_request_to_str): Remove handling for
14378 request values that have been removed in LynxOS 5.x.
14380 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14382 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14385 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14387 * configure.ac: Add --enable-inprocess-agent option.
14388 * configure: Rebuilt.
14390 2010-09-06 Yao Qi <yao@codesourcery.com>
14392 * linux-low.c (linux_kill): Remove unused variable.
14393 (linux_stabilize_threads): Likewise.
14394 * server.c (start_inferior): Likewise.
14395 (queue_stop_reply_callback): Likewise.
14396 * tracepoint.c (do_action_at_tracepoint): Likewise.
14398 2010-09-06 Yao Qi <yao@codesourcery.com>
14400 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14403 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14405 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14407 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14409 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14412 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14414 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14415 gdbserver/lynx-ppc-low.c: New files.
14416 * Makefile.in (lynx_low_h): New variable.
14417 (lynx-low.o, lynx-ppc-low.o): New rules.
14418 * configure.ac: On LynxOS, link with -lnetinet.
14419 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14420 * configure: regenerate.
14422 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14424 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14425 * configure.ac: Add check for vasprintf and vsnprintf.
14426 * configure, config.in: Regenerate.
14427 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14429 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14431 * gdbreplay.c: Move include of alloca.h up, next to include of
14433 * server.h: Add include of malloc.h.
14434 * mem-break.c: Remove include of malloc.h.
14435 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14437 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14439 * Makefile.in (memmem.o): Build with -Wno-error.
14441 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14443 * utils.c (xsnprintf): Make non-static.
14444 * server.h: Add xsnprintf declaration.
14445 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14446 replace calls to snprintf by calls to xsnprintf throughout.
14448 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14450 * configure.ac: Add configure check for alloca.
14451 * configure, config.in: Regenerate.
14452 * server.h: Include alloca.h if it exists.
14453 * gdbreplay.c: Include alloca.h if it exists.
14455 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14457 * linux-low.c (__SIGRTMIN): Define if not already defined.
14458 (linux_create_inferior): Check for __ANDROID__ rather than
14460 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14461 are already deferred.
14462 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14463 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14464 stopped and already has a pending signal to report.
14465 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14466 a pending signal to report or is moving out of a jump pad.
14467 (linux_init_signals): Check for __ANDROID__ rather than
14470 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14472 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14473 debug_threads check. Avoid a linear search when not doing debug
14476 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14478 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14479 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14480 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14481 (process_event): Change local fd's type to gdb_fildes_t.
14482 (create_file_handler): Adjust prototype.
14483 (delete_file_handler): Adjust prototype.
14484 (handle_file_event): Adjust prototype. Use pfildes.
14485 (create_file_event): Adjsut prototype.
14486 * remote-utils.c (remote_desc, listen_desc): Change type to
14488 * server.h: New gdb_fildes_t typedef.
14489 [USE_WIN32API]: Include winsock2.h.
14490 (delete_file_handler, add_file_handler): Adjust prototypes.
14491 (pfildes): Declare.
14492 * utils.c (pfildes): New.
14494 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14496 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14497 * configure: Regenerate.
14499 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14501 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14502 (linux_done_accessing_memory): ... this.
14503 (linux_target_ops): Adjust.
14504 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14505 * nto-low.c (nto_target_ops): Adjust comment.
14506 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14507 * spu-low.c (spu_target_ops): Adjust comment.
14508 * target.h (target_ops): Rename unprepare_to_access_memory field
14509 to done_accessing_memory.
14510 (unprepare_to_access_memory): Rename to ...
14511 (done_accessing_memory): ... this.
14513 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14515 * linux-low.c (linux_prepare_to_access_memory): New.
14516 (linux_unprepare_to_access_memory): New.
14517 (linux_target_ops): Install them.
14518 * server.c (read_memory): Rename to ...
14519 (gdb_read_memory): ... this. Use
14520 prepare_to_access_memory/prepare_to_access_memory.
14521 (write_memory): Rename to ...
14522 (gdb_write_memory): ... this. Use
14523 prepare_to_access_memory/prepare_to_access_memory.
14524 (handle_search_memory_1): Adjust.
14525 (process_serial_event): Adjust.
14526 * target.h (struct target_ops): New fields
14527 prepare_to_access_memory and unprepare_to_access_memory.
14528 (prepare_to_access_memory, unprepare_to_access_memory): New.
14529 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14530 prepare_to_access_memory/prepare_to_access_memory.
14531 * nto-low.c (nto_target_ops): Adjust.
14532 * spu-low.c (spu_target_ops): Adjust.
14533 * win32-low.c (win32_target_ops): Adjust.
14535 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14537 * Makefile.in (WARN_CFLAGS): Get it from configure.
14538 (WERROR_CFLAGS): New.
14539 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14540 * configure.ac: Introduce --enable-werror, which adds -Werror to
14541 the compiler command line. Enabled by default. Disable with
14542 --disable-werror. Add -Wdeclaration-after-statement
14543 Wpointer-arith and -Wformat-nonliteral to warning flags.
14544 * configure: Regenerate.
14546 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14548 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14550 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14552 * gdbreplay.c (remote_error): New.
14554 (expect): Use gdbchar. Check for error reading from GDB.
14555 Clarify sync error output.
14556 (play): Check for errors writing to GDB.
14557 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14558 * remote-utils.c (getpkt): Check for errors writing to the remote
14561 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14563 * linux-low.c (linux_wait_1): Move non-debugging code out of
14564 `debug_threads' control.
14566 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14568 * linux-low.c (linux_wait_1): Don't set last_status here.
14569 * server.c (push_event, queue_stop_reply_callback): Assert we're
14570 not pushing a TARGET_WAITKIND_IGNORE event.
14571 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14572 (myresume, handle_target_event): Set the thread's last_resume_kind
14573 and last_status from the target returned status.
14575 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14579 * linux-x86-low.c (update_debug_registers_callback): New.
14580 (i386_dr_low_set_addr): Use it.
14581 (i386_dr_low_get_addr): New.
14582 (i386_dr_low_set_control): Use update_debug_registers_callback.
14583 (i386_dr_low_get_control): New.
14584 (i386_dr_low_get_status): Adjust.
14585 * linux-low.c (linux_stop_lwp): New.
14586 * linux-low.h (linux_stop_lwp): Declare.
14588 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14589 argument instead of a i386_debug_reg_state.
14590 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14591 a i386_debug_reg_state.
14592 (i386_insert_aligned_watchpoint): Adjust.
14593 (i386_remove_aligned_watchpoint): Adjust.
14594 (i386_low_stopped_data_address): Read the debug registers from the
14595 inferior instead of from the mirrors.
14596 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14597 (i386_dr_low_get_addr): Declare.
14598 (i386_dr_low_get_control): Declare.
14599 (i386_dr_low_get_status): Change prototype.
14601 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14602 (i386_dr_low_get_addr): New.
14603 (i386_dr_low_get_control): New.
14604 (i386_dr_low_get_status): Adjust prototype. Return
14606 (i386_initial_stuff): Clear dr_status_mirror and
14608 (i386_get_thread_context): Adjust.
14609 (i386_set_thread_context): Adjust.
14610 (i386_thread_added): Adjust.
14612 2010-08-24 Pedro Alves <pedro@codesourcery.com>
14614 * linux-low.h (linux_thread_area): Delete declaration.
14616 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14618 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14619 after its termination.
14621 2010-08-09 Pedro Alves <pedro@codesourcery.com>
14623 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14624 (gdb_wants_all_stopped): Delete.
14625 (linux_wait_1): Don't call them.
14626 * server.c (handle_v_cont): Tag all threads as want-stopped.
14627 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14628 stopped as "client-wants-stopped".
14630 2010-07-31 Pedro Alves <pedro@codesourcery.com>
14632 * Makefile.in (signals_h): New.
14633 (server_h): Depend on it.
14634 (server.o): Don't depend on $(signals_def).
14635 (signals.o): Depend on $(signals_def).
14637 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14639 * Makefile.in (signals_def): New.
14640 (server_h): Append include/gdb/signals.h and signals_def.
14641 (server.o): Append signals_def.
14643 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14645 * server.c (handle_target_event): Use target_signal_to_host for
14646 resume_info.sig initialization.
14647 * target.h (struct thread_resume) <sig>: New comment.
14649 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14651 * server.c (handle_query): strcpy() the returned string from paddress()
14652 instead of sprintf().
14653 * utils.c (paddress): Return phex_nz().
14655 2010-07-07 Joel Brobecker <brobecker@adacore.com>
14657 * server.c (handle_v_cont): Call mourn_inferior if process
14659 (myresume): Likewise.
14661 2010-07-01 Pedro Alves <pedro@codesourcery.com>
14663 Static tracepoints, and integration with UST.
14665 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14666 * mem-break.c (uninsert_all_breakpoints)
14667 (reinsert_all_breakpoints): New.
14668 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14669 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14670 (gdb_agent_ust_loaded, helper_thread_id)
14671 (gdb_agent_helper_thread_id): New macros.
14672 (struct ipa_sym_addresses): Add addr_ust_loaded,
14673 addr_helper_thread_id, addr_cmd_buf.
14674 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14675 (in_process_agent_loaded_ust): New.
14676 (write_e_ust_not_loaded): New.
14677 (maybe_write_ipa_ust_not_loaded): New.
14678 (struct collect_static_trace_data_action): New.
14679 (enum tracepoint_type) <static_tracepoint>: New.
14680 (struct tracepoint) <handle>: Mention static tracepoints.
14681 (struct static_tracepoint_ctx): New.
14682 (CMD_BUF_SIZE): New.
14683 (add_tracepoint_action): Handle static tracepoint actions.
14684 (unprobe_marker_at): New.
14685 (clear_installed_tracepoints): Handle static tracepoints.
14686 (cmd_qtdp): Handle static tracepoints.
14687 (probe_marker_at): New.
14688 (cmd_qtstart): Handle static tracepoints.
14689 (response_tracepoint): Handle static tracepoints.
14690 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14691 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14692 (get_context_regcache): Handle static tracepoints.
14693 (do_action_at_tracepoint): Handle static tracepoint actions.
14694 (traceframe_find_block_type): Handle static trace data blocks.
14695 (traceframe_read_sdata): New.
14696 (download_tracepoints): Download static tracepoint actions.
14697 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14698 (GDB_PROBE_NAME): New.
14700 (GET_UST_SYM): New.
14703 (ust_marker_to_static_tracepoint): New.
14705 (collect_ust_data_at_tracepoint): New.
14706 (gdb_ust_probe): New.
14707 (UNIX_PATH_MAX, SOCK_DIR): New.
14708 (gdb_ust_connect_sync_socket): New.
14709 (resume_thread, stop_thread): New.
14710 (run_inferior_command): New.
14711 (init_named_socket): New.
14712 (gdb_ust_socket_init): New.
14713 (cstr_to_hexstr): New.
14715 (first_marker, next_marker): New.
14716 (response_ust_marker): New.
14717 (cmd_qtfstm, cmd_qtsstm): New.
14718 (unprobe_marker_at, probe_marker_at): New.
14719 (cmd_qtstmat, gdb_ust_thread): New.
14720 (gdb_ust_init): New.
14721 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14722 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14723 (ST_REGENTRY): New.
14724 (x86_64_st_collect_regmap): New.
14725 (X86_64_NUM_ST_COLLECT_GREGS): New.
14726 (AMD64_RIP_REGNUM): New.
14727 (supply_static_tracepoint_registers): New.
14728 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14729 (ST_REGENTRY): New.
14730 (i386_st_collect_regmap): New.
14731 (i386_NUM_ST_COLLECT_GREGS): New.
14732 (supply_static_tracepoint_registers): New.
14733 * server.c (handle_query): Handle qXfer:statictrace:read.
14734 <qSupported>: Report support for StaticTracepoints, and
14735 qXfer:statictrace:read features.
14736 * server.h (traceframe_read_sdata)
14737 (supply_static_tracepoint_registers): Declare.
14738 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14739 (unpack_varlen_hex): Include in IPA build.
14740 * Makefile.in (ustlibs, ustinc): New.
14741 (IPA_OBJS): Add remote-utils-ipa.o.
14742 ($(IPA_LIB)): Link -ldl and -lpthread.
14744 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14745 * config.in, configure: Regenerate.
14747 2010-06-20 Ian Lance Taylor <iant@google.com>
14748 Pedro Alves <pedro@codesourcery.com>
14750 * linux-x86-low.c (always_true): Delete.
14751 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14752 trying to fool the compiler with always_true.
14754 2010-06-20 Pedro Alves <pedro@codesourcery.com>
14756 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14757 conditions in gdbserver.
14759 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14761 * spu-low.c (spu_read_memory): Wrap around local store limit.
14762 (spu_write_memory): Likewise.
14764 2010-06-15 Pedro Alves <pedro@codesourcery.com>
14766 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14767 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14769 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14771 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14772 uses with LONGEST uses.
14774 2010-06-14 Stan Shebs <stan@codesourcery.com>
14775 Pedro Alves <pedro@codesourcery.com>
14779 * linux-x86-low.c: Include limits.h.
14781 (always_true): New.
14784 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14785 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14786 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14787 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14788 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14789 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14790 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14791 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14792 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14793 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14794 (amd64_emit_void_call_2): New.
14795 (amd64_emit_ops): New.
14796 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14797 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14798 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14799 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14800 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14801 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14802 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14803 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14804 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14805 (i386_emit_stack_adjust, i386_emit_int_call_1)
14806 (i386_emit_void_call_2): New.
14807 (i386_emit_ops): New.
14808 (x86_emit_ops): New.
14809 (the_low_target): Install x86_emit_ops.
14810 * server.h (struct emit_ops): New.
14811 (get_raw_reg_func_addr): Declare.
14812 (current_insn_ptr, emit_error): Declare.
14813 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14814 (set_trace_state_variable_value): New defines.
14815 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14816 addr_get_trace_state_variable_value and
14817 addr_set_trace_state_variable_value.
14818 (symbol_list): New fields for get_raw_reg,
14819 get_trace_state_variable_value and set_trace_state_variable_value.
14820 (condfn): New typedef.
14821 (struct tracepoint): New field `compiled_cond'.
14822 (do_action_at_tracepoint): Clear compiled_cond.
14823 (get_trace_state_variable_value, set_trace_state_variable_value):
14825 (condition_true_at_tracepoint): If there's a compiled condition,
14827 (current_insn_ptr, emit_error): New globals.
14828 (struct bytecode_address): New.
14829 (get_raw_reg_func_addr): New.
14830 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14831 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14832 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14833 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14834 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14835 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14836 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14837 (compile_tracepoint_condition, compile_bytecodes): New.
14838 * target.h (emit_ops): Forward declare.
14839 (struct target_ops): New field emit_ops.
14840 (target_emit_ops): New.
14841 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14842 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14843 * linux-low.c (linux_emit_ops): New.
14844 (linux_target_ops): Install it.
14845 * linux-low.h (struct linux_target_ops): New field emit_ops.
14847 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14849 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14850 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14852 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14853 Stan Shebs <stan@codesourcery.com>
14855 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14856 (all): Depend on $(extra_libraries).
14857 (install-only): Install the IPA.
14858 (IPA_OBJS, IPA_LIB): New.
14859 (clean): Remove the IPA lib.
14860 (IPAGENT_CFLAGS): New.
14861 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14862 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14863 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14864 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14865 * configure.ac: Check for atomic builtins support in the compiler.
14866 (IPA_DEPFILES, extra_libraries): Define.
14867 * configure.srv (ipa_obj): Add description.
14868 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14869 (i[34567]86-*-linux*): Set ipa_obj.
14870 (x86_64-*-linux*): Set ipa_obj.
14871 * linux-low.c (stabilizing_threads): New.
14872 (supports_fast_tracepoints): New.
14873 (linux_detach): Stabilize threads before detaching.
14874 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14875 the lwp is either not stabilizing, or is moving out of a jump pad.
14876 (linux_fast_tracepoint_collecting): New.
14877 (maybe_move_out_of_jump_pad): New.
14878 (enqueue_one_deferred_signal): New.
14879 (dequeue_one_deferred_signal): New.
14880 (linux_wait_for_event_1): If moving out of a jump pad, defer
14881 pending signals to later.
14882 (linux_stabilize_threads): New.
14883 (linux_wait_1): Check if threads need moving out of jump pads, and
14885 (stuck_in_jump_pad_callback): New.
14886 (move_out_of_jump_pad_callback): New.
14887 (lwp_running): New.
14888 (linux_resume_one_lwp): Handle moving out of jump pads.
14889 (linux_set_resume_request): Dequeue deferred signals.
14890 (need_step_over_p): Also step over fast tracepoint jumps.
14891 (start_step_over): Also uninsert fast tracepoint jumps.
14892 (finish_step_over): Also reinsert fast tracepoint jumps.
14893 (linux_install_fast_tracepoint_jump): New.
14894 (linux_target_ops): Install linux_stabilize_threads and
14895 linux_install_fast_tracepoint_jump_pad.
14896 * linux-low.h (linux_target_ops) <get_thread_area,
14897 install_fast_tracepoint_jump_pad>: New fields.
14898 (struct lwp_info) <collecting_fast_tracepoint,
14899 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14900 (linux_get_thread_area): Declare.
14901 * linux-x86-low.c (jump_insn): New.
14902 (x86_get_thread_area): New.
14903 (append_insns): New.
14904 (push_opcode): New.
14905 (amd64_install_fast_tracepoint_jump_pad): New.
14906 (i386_install_fast_tracepoint_jump_pad): New.
14907 (x86_install_fast_tracepoint_jump_pad): New.
14908 (the_low_target): Install x86_get_thread_area and
14909 x86_install_fast_tracepoint_jump_pad.
14910 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14911 (struct fast_tracepoint_jump): New.
14912 (fast_tracepoint_jump_insn): New.
14913 (fast_tracepoint_jump_shadow): New.
14914 (find_fast_tracepoint_jump_at): New.
14915 (fast_tracepoint_jump_here): New.
14916 (delete_fast_tracepoint_jump): New.
14917 (set_fast_tracepoint_jump): New.
14918 (uninsert_fast_tracepoint_jumps_at): New.
14919 (reinsert_fast_tracepoint_jumps_at): New.
14920 (set_breakpoint_at): Use write_inferior_memory.
14921 (uninsert_raw_breakpoint): Use write_inferior_memory.
14922 (check_mem_read): Mask out fast tracepoint jumps.
14923 (check_mem_write): Mask out fast tracepoint jumps.
14924 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14925 (set_fast_tracepoint_jump): Declare.
14926 (delete_fast_tracepoint_jump)
14927 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14928 (reinsert_fast_tracepoint_jumps_at): Declare.
14929 * regcache.c: Don't compile many functions when building the
14930 in-process agent library.
14931 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14932 the register buffer in the heap.
14933 (free_register_cache): If the register buffer isn't owned by the
14934 regcache, don't free it.
14935 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14936 pre-existing register caches.
14937 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14939 (convert_ascii_to_int): : Constify `from' parameter type.
14940 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14941 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14942 the needed buffer in-place.
14943 (relocate_instruction): New.
14944 * server.c (handle_query) <qSymbols>: If the target supports
14945 tracepoints, give it a chance of looking up symbols. Report
14946 support for fast tracepoints.
14947 (handle_status): Stabilize threads.
14948 (process_serial_event): Adjust.
14949 * server.h (struct fast_tracepoint_jump): Forward declare.
14950 (struct process_info) <fast_tracepoint_jumps>: New field.
14951 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14952 (decode_X_packet, decode_M_packet): Adjust.
14953 (relocate_instruction): Declare.
14954 (in_process_agent_loaded): Declare.
14955 (tracepoint_look_up_symbols): Declare.
14956 (struct fast_tpoint_collect_status): Declare.
14957 (fast_tracepoint_collecting): Declare.
14958 (force_unlock_trace_buffer): Declare.
14959 (handle_tracepoint_bkpts): Declare.
14960 (initialize_low_tracepoint)
14961 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14962 * target.h (struct target_ops) <stabilize_threads,
14963 install_fast_tracepoint_jump_pad>: New fields.
14964 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14965 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14966 [HAVE_STDINT_H]: Include stdint.h.
14967 (trace_debug_1): Rename to ...
14968 (trace_vdebug): ... this.
14969 (trace_debug): Rename to ...
14970 (trace_debug_1): ... this. Add `level' parameter.
14971 (trace_debug): New.
14972 (ATTR_USED, ATTR_NOINLINE): New.
14973 (IP_AGENT_EXPORT): New.
14974 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
14975 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
14976 (about_to_request_buffer_space, trace_buffer_is_full)
14977 (stopping_tracepoint, expr_eval_result, error_tracepoint)
14978 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
14979 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
14980 (traceframe_write_count, traceframes_created)
14981 (trace_state_variables)
14982 New renaming defines.
14983 (struct ipa_sym_addresses): New.
14984 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14985 (symbol_list): New.
14986 (ipa_sym_addrs): New.
14987 (all_tracepoint_symbols_looked_up): New.
14988 (in_process_agent_loaded): New.
14989 (write_e_ipa_not_loaded): New.
14990 (maybe_write_ipa_not_loaded): New.
14991 (tracepoint_look_up_symbols): New.
14992 (debug_threads) [IN_PROCESS_AGENT]: New.
14993 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14994 (UNKNOWN_SIDE_EFFECTS): New.
14995 (stop_tracing): New.
14996 (flush_trace_buffer): New.
14997 (stop_tracing_bkpt): New.
14998 (flush_trace_buffer_bkpt): New.
14999 (read_inferior_integer): New.
15000 (read_inferior_uinteger): New.
15001 (read_inferior_data_pointer): New.
15002 (write_inferior_data_pointer): New.
15003 (write_inferior_integer): New.
15004 (write_inferior_uinteger): New.
15005 (struct collect_static_trace_data_action): Delete.
15006 (enum tracepoint_type): New.
15007 (struct tracepoint) <type>: New field `type'.
15008 <actions_str, step_actions, step_actions_str>: Only include in
15010 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15011 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15012 (tracepoints): Use IP_AGENT_EXPORT.
15013 (last_tracepoint): Don't include in the IPA.
15014 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15015 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15016 (alloced_trace_state_variables): New.
15017 (trace_state_variables): Use IP_AGENT_EXPORT.
15018 (traceframe_t): Delete unused variable.
15019 (circular_trace_buffer): Don't include in the IPA.
15020 (trace_buffer_start): Delete.
15021 (struct trace_buffer_control): New.
15022 (trace_buffer_free): Delete.
15023 (struct ipa_trace_buffer_control): New.
15024 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15025 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15027 (trace_buffer_ctrl): New.
15028 (TRACE_BUFFER_CTRL_CURR): New.
15029 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15030 Reimplement as macros.
15031 (trace_buffer_wrap): Delete.
15032 (traceframe_write_count, traceframe_read_count)
15033 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15034 (struct tracepoint_hit_ctx) <type>: New field.
15035 (struct fast_tracepoint_ctx): New.
15036 (memory_barrier): New.
15038 (record_tracepoint_error): Update atomically in the IPA.
15039 (clear_inferior_trace_buffer): New.
15040 (about_to_request_buffer_space): New.
15041 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15042 updating the same buffer.
15043 (add_tracepoint): Default the tracepoint's type to trap
15044 tracepoint, and orig_size to -1.
15045 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15046 internal variables.
15047 (create_trace_state_variable): New parameter `gdb'. Handle it.
15048 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15049 (cmd_qtdp): Handle fast tracepoints.
15050 (cmd_qtdv): Adjust.
15051 (max_jump_pad_size): New.
15052 (gdb_jump_pad_head): New.
15053 (get_jump_space_head): New.
15054 (claim_jump_space): New.
15055 (sort_tracepoints): New.
15056 (MAX_JUMP_SIZE): New.
15057 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15059 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15060 support. Upload fast traceframes, and delete internal IPA
15062 (stop_tracing_handler): New.
15063 (flush_trace_buffer_handler): New.
15064 (cmd_qtstop): Upload fast tracepoints.
15065 (response_tracepoint): Handle fast tracepoints.
15066 (tracepoint_finished_step): Upload fast traceframes. Set the
15067 tracepoint hit context's tracepoint type.
15068 (handle_tracepoint_bkpts): New.
15069 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15070 type. Add comment about fast tracepoints.
15071 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15072 non-existing action_str field.
15073 (get_context_regcache): Handle fast tracepoints.
15074 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15076 (fast_tracepoint_from_jump_pad_address): New.
15077 (fast_tracepoint_from_ipa_tpoint_address): New.
15078 (collecting_t): New.
15079 (force_unlock_trace_buffer): New.
15080 (fast_tracepoint_collecting): New.
15082 (gdb_collect): New.
15083 (write_inferior_data_ptr): New.
15084 (target_tp_heap): New.
15085 (target_malloc): New.
15086 (download_agent_expr): New.
15088 (download_tracepoints): New.
15089 (download_trace_state_variables): New.
15090 (upload_fast_traceframes): New.
15091 (IPA_FIRST_TRACEFRAME): New.
15092 (IPA_NEXT_TRACEFRAME_1): New.
15093 (IPA_NEXT_TRACEFRAME): New.
15094 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15095 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15096 (gdb_jump_pad_buffer_end): New.
15097 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15098 (initialize_tracepoint): Adjust.
15099 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15100 buffer. Initialize the low module.
15101 * utils.c (PREFIX, TOOLNAME): New.
15102 (malloc_failure): Use PREFIX.
15103 (error): In the IPA, an error causes an exit.
15104 (fatal, warning): Use PREFIX.
15105 (internal_error): Use TOOLNAME.
15106 (NUMCELLS): Increase to 10.
15107 * configure, config.in: Regenerate.
15109 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15111 * server.c (handle_query) <qSupported>: Do two passes over the
15112 qSupported string to avoid nesting strtok.
15114 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15116 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15118 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15119 -Wl,--dynamic-list.
15120 * configure: Regenerate.
15121 * proc-service.list: New.
15123 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15125 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15128 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15130 * gdbreplay.c (remote_open): Check error return from socket() call by
15131 its equality to -1 not by it being negative.
15132 * remote-utils.c (remote_open): Likewise.
15134 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15136 * config.h: Regenerate.
15138 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15140 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15141 doesn't provide PTRACE_GET_THREAD_AREA.
15143 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15145 * linux-m68k-low.c: Include <asm/ptrace.h>
15146 (ps_get_thread_area): Implement.
15148 2010-05-03 Doug Evans <dje@google.com>
15150 * event-loop.c (struct callback_event): New struct.
15151 (callback_list): New global.
15152 (append_callback_event, delete_callback_event): New functions.
15153 (process_callback): New function.
15154 (start_event_loop): Call it.
15155 * remote-utils.c (NOT_SCHEDULED): Define.
15156 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15157 moved out of readchar.
15158 (readchar): Rewrite. Call reschedule before returning.
15159 (reset_readchar): New function.
15160 (remote_close): Call it.
15161 (process_remaining, reschedule): New functions.
15162 * server.h (callback_handler_func): New typedef.
15163 (append_callback_event, delete_callback_event): Declare.
15165 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15167 * proc-service.c (ps_pglobal_lookup): Use
15168 thread_db_look_up_one_symbol.
15169 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15170 parameter. Use it instead of all_symbols_looked_up.
15171 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15173 (all_symbols_looked_up): Don't declare.
15174 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15175 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15177 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15178 Set all_symbols_looked_up here.
15179 (thread_db_look_up_one_symbol): New.
15180 (thread_db_get_tls_address): Adjust.
15181 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15182 thread_db object on the heap, and tentatively set it in the
15184 (thread_db_init): Don't set all_symbols_looked_up here.
15185 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15187 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15189 * linux-low.c (linux_kill, linux_detach): Adjust.
15190 (status_pending_p_callback): Remove redundant statement. Check
15191 for !TARGET_WAITIKIND_IGNORE, instead of
15192 TARGET_WAITKIND_STOPPED.
15193 (handle_tracepoints): Make sure LWP is locked. Adjust.
15194 (linux_wait_for_event_1): Adjust.
15195 (linux_cancel_breakpoints): New.
15196 (unsuspend_one_lwp): New.
15197 (unsuspend_all_lwps): New.
15198 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15199 (send_sigstop_callback): Change return type to int, add new
15200 `except' parameter and handle it.
15201 (suspend_and_send_sigstop_callback): New.
15202 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15203 pass them down. If SUSPEND, also increment the lwp's suspend
15205 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15206 (need_step_over_p): Don't consider suspended LWPs.
15207 (start_step_over): Adjust.
15208 (proceed_one_lwp): Change return type to int, add new `except'
15209 parameter and handle it.
15210 (unsuspend_and_proceed_one_lwp): New.
15211 (proceed_all_lwps): Use find_inferior instead of
15213 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15214 also decrement the suspend count of LWPs. Pass `except' down,
15215 instead of hacking its suspend count.
15216 (linux_pause_all): Add `freeze' parameter. Adjust.
15217 (linux_unpause_all): New.
15218 (linux_target_ops): Install linux_unpause_all.
15219 * server.c (handle_status): Adjust.
15220 * target.h (struct target_ops): New fields `unpause_all' and
15221 `cancel_breakpoints'. Add new parameter to `pause_all'.
15222 (pause_all): Add new `freeze' parameter.
15223 (unpause_all): New.
15224 (cancel_breakpoints): New.
15225 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15226 cancel breakpoints.
15227 (cmd_qtstart): Pause threads.
15228 (stop_tracing): Pause threads, and cancel breakpoints.
15229 * win32-low.c (win32_target_ops): Adjust.
15231 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15233 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15234 the inferior right away from here...
15235 (linux_wait_1): ... to here, and adjust to check the thread's
15236 last_resume_kind instead of the lwp's step or stop_expected flags.
15238 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15240 * README: Use consistent `GDB' and `GDBserver' spellings.
15242 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15244 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15245 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15246 (linux_detach_one_lwp): Assume the lwp is stopped.
15247 (any_thread_of): Delete.
15248 (linux_detach): Stop all lwps here. Don't blindly delete all
15250 (delete_lwp_callback): New.
15251 (linux_mourn): Delete all lwps of the process that is gone.
15252 (linux_wait_1): Don't delete the last lwp of the process here.
15253 * mem-break.h (mark_breakpoints_out): Declare.
15254 * mem-break.c (mark_breakpoints_out): New.
15255 (free_all_breakpoints): Use it.
15256 * server.c (handle_target_event): If the process is gone, mark
15258 * thread-db.c (struct thread_db) <create_bp>: New field.
15259 (thread_db_enable_reporting): Fix prototype. Store a thread event
15260 breakpoint reference in the thread_db struct.
15261 (thread_db_load_search): Clear the thread_db object.
15262 (try_thread_db_load_1): Ditto.
15263 (switch_to_process): New.
15264 (disable_thread_event_reporting): Use it.
15265 (remove_thread_event_breakpoints): New.
15266 (thread_db_detach, thread_db_mourn): Use it.
15268 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15270 * linux-low.c (linux_enable_event_reporting): New.
15271 (linux_wait_for_event_1, handle_extended_wait): Use it.
15273 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15275 * linux-low.c (linux_kill_one_lwp, linux_kill)
15276 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15277 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15278 SIGSTOP even if the LWP is stopped.
15279 (send_sigstop_callback): New.
15280 (stop_all_lwps): Use send_sigstop_callback instead.
15281 (linux_resume_one_thread): Adjust.
15282 (proceed_one_lwp): Still proceed an LWP that the client has
15283 requested to stop, if we haven't reported it as stopped yet. Make
15284 sure that LWPs the client want stopped, have a pending SIGSTOP.
15286 2010-04-26 Doug Evans <dje@google.com>
15288 * server.c (handle_general_set): Make static.
15290 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15291 Print received char after testing for error/eof instead of before.
15292 (input_interrupt): Tweak comment.
15294 2010-04-23 Doug Evans <dje@google.com>
15296 * server.c (start_inferior): Print inferior argv if --debug.
15298 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15300 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15301 * nto-x86-low.c: Include server.h
15303 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15305 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15306 be consistent with other sources of this directory.
15307 (init_registers_amd64): Correct name of source file of this function
15310 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15312 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15313 64-bit executables.
15315 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15317 * win32-i386-low.c: Add 64-bit support.
15318 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15319 (init_registers_amd64): Declare.
15320 (mappings): Add 64-bit version of array.
15321 (init_windows_x86): New function.
15322 (the_low_target): Change init_arch field to init_windows_x86.
15324 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15326 * win32-low.c: Adapt to support also 64-bit architecture.
15327 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15328 (get_image_name): Use SIZE_T type for local variable `done'.
15329 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15330 (toolhelp_get_dll_name): Idem.
15331 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15332 Use uintptr_t typecast to avoid warning.
15333 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15334 (handle_exception): Use phex_nz to avoid warning.
15335 (win32_wait): Remove unused local variable `process'.
15337 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15339 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15342 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15344 * configure.ac: Use `ws2_32' library for srv_mingw.
15345 * configure: Regenerate.
15346 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15347 * remote-utils.c: Likewise.
15349 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15351 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15352 if __x86_64__ is defined.
15354 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15356 * configure: Regenerate.
15358 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15360 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15361 * target.h (target_ops): New get_tib_address field.
15362 * win32-low.h (win32_thread_info): Add thread_local_base field.
15363 * win32-low.c (child_add_thread): Add tlb argument.
15364 Set thread_local_base field to TLB.
15365 (get_child_debug_event): Adapt to child_add_thread change.
15366 (win32_get_tib_address): New function.
15367 (win32_target_ops): Set get_tib_address field to
15368 win32_get_tib_address.
15369 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15371 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15373 * linux-low.c (linux_mourn): Also remove the process.
15374 * server.c (handle_target_event): Don't remove the process here.
15375 * nto-low.c (nto_mourn): New.
15376 (nto_target_ops): Install it.
15377 * spu-low.c (spu_mourn): New.
15378 (spu_target_ops): Install it.
15379 * win32-low.c (win32_mourn): New.
15380 (win32_target_ops): Install it.
15382 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15384 * server.h (buffer_xml_printf): Remove redundant `;'.
15386 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15388 * regcache.c (set_register_cache): Invalidate regcaches before
15389 changing the register cache layout.
15390 (regcache_invalidate_one): Allow a NULL regcache.
15391 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15392 regcaches before changing the register cache layout or the target
15395 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15397 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15398 variable warning on Linux/x86-64.
15400 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15402 GDBserver disconnected tracing support.
15404 * linux-low.c (linux_remove_process): Delete.
15405 (add_lwp): Don't set last_resume_kind here.
15406 (linux_kill): Use `mourn'.
15407 (linux_detach): Use `thread_db_detach', and `mourn'.
15408 (linux_mourn): New.
15409 (linux_attach_lwp_1): Adjust comment.
15410 (linux_attach): last_resume_kind moved the thread_info; adjust.
15411 (status_pending_p_callback): Adjust.
15412 (linux_wait_for_event_1): Adjust.
15413 (count_events_callback, select_singlestep_lwp_callback)
15414 (select_event_lwp_callback, cancel_breakpoints_callback)
15415 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15416 (proceed_one_lwp): Adjust.
15417 (linux_async): Add debug output.
15418 (linux_thread_stopped): New.
15419 (linux_pause_all): New.
15420 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15422 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15423 (thread_db_free): Delete declaration.
15424 (thread_db_detach, thread_db_mourn): Declare.
15425 * thread-db.c (thread_db_init): Use thread_db_mourn.
15426 (thread_db_free): Delete, split in two.
15427 (disable_thread_event_reporting): New.
15428 (thread_db_detach): New.
15429 (thread_db_mourn): New.
15431 * server.h (struct thread_info) <last_resume_kind>: New field.
15432 <attached>: Add comment.
15433 <gdb_detached>: New field.
15434 (handler_func): Change return type to int.
15435 (handle_serial_event, handle_target_event): Ditto.
15436 (gdb_connected): Declare.
15438 (disconnected_tracing): Declare.
15439 (stop_tracing): Declare.
15441 * server.c (handle_query) <qSupported>: Report support for
15442 disconnected tracing.
15443 (queue_stop_reply_callback): Account for running threads.
15444 (gdb_wants_thread_stopped): New.
15445 (gdb_wants_all_threads_stopped): New.
15446 (gdb_reattached_process): New.
15447 (handle_status): Clear the `gdb_detached' flag of all processes.
15448 In all-stop, stop all threads.
15449 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15450 (process_serial_event): If the remote connection breaks, or if an
15451 exit was forced with "monitor exit", force an event loop exit.
15452 Handle disconnected tracing on detach.
15453 (handle_serial_event): Adjust.
15454 (handle_target_event): If GDB isn't connected, forward events back
15455 to the inferior, unless the last process exited, in which case,
15456 exit gdbserver. Adjust interface.
15458 * remote-utils.c (remote_open): Don't block in accept. Instead
15459 register an event loop source on the listen socket file
15460 descriptor. Refactor bits into ...
15461 (listen_desc): ... this new global.
15462 (gdb_connected): ... this new function.
15463 (enable_async_notification): ... this new function.
15464 (handle_accept_event): ... this new function.
15465 (remote_close): Clear remote_desc.
15467 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15469 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15471 (mourn_inferior): Define.
15472 (target_process_qsupported): Avoid the dangling else problem.
15473 (thread_stopped): Define.
15474 (pause_all): Define.
15475 (target_waitstatus_to_string): Declare.
15476 * target.c (target_waitstatus_to_string): New.
15478 * tracepoint.c (tracing): Make extern.
15479 (disconnected_tracing): New.
15480 (stop_tracing): Make extern. Handle tracing stops due to GDB
15482 (cmd_qtdisconnected): New.
15483 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15484 (handle_tracepoint_general_set): Handle QTDisconnected.
15486 * event-loop.c (event_handler_func): Change return type to int.
15487 (process_event): Bail out if the event handler wants the event
15489 (handle_file_event): Ditto.
15490 (start_event_loop): Bail out if the event handler wants the event
15493 * nto-low.c (nto_target_ops): Adjust.
15494 * spu-low.c (spu_wait): Don't remove the process here.
15495 (spu_target_ops): Adjust.
15496 * win32-low.c (win32_wait): Don't remove the process here.
15497 (win32_target_ops): Adjust.
15499 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15501 * regcache.c (realloc_register_cache): Invalidate inferior's
15502 regcache before recreating it.
15504 2010-04-09 Pedro Alves <pedro@codesourcery.com>
15506 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15508 2010-04-09 Stan Shebs <stan@codesourcery.com>
15509 Pedro Alves <pedro@codesourcery.com>
15511 * server.h (LONGEST): New.
15512 (struct thread_info) <while_stepping>: New field.
15513 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15515 (initialize_tracepoint, handle_tracepoint_general_set)
15516 (handle_tracepoint_query, tracepoint_finished_step)
15517 (tracepoint_was_hit, release_while_stepping_state_list):
15518 (current_traceframe): Declare.
15519 * server.c (handle_general_set): Handle tracepoint packets.
15520 (read_memory): New.
15521 (write_memory): New.
15522 (handle_search_memory_1): Use read_memory.
15523 (handle_query): Report support for conditional tracepoints, trace
15524 state variables, and tracepoint sources. Handle tracepoint
15526 (main): Initialize the tracepoints module.
15527 (process_serial_event): Handle traceframe reads/writes.
15529 * linux-low.c (handle_tracepoints): New.
15530 (linux_wait_1): Call it.
15531 (linux_resume_one_lwp): Handle while-stepping.
15532 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15533 (linux_target_ops): Install them.
15534 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15536 * linux-x86-low.c (x86_supports_tracepoints): New.
15537 (the_low_target). Install it.
15539 * mem-break.h (delete_breakpoint): Declare.
15540 * mem-break.c (delete_breakpoint): Make external.
15542 * target.h (struct target_ops): Add `supports_tracepoints',
15543 `read_pc', and `write_pc' fields.
15544 (target_supports_tracepoints): Define.
15545 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15548 * regcache.h (struct regcache) <registers_owned>: New field.
15549 (init_register_cache, regcache_cpy): Declare.
15550 (regcache_read_pc, regcache_write_pc): Declare.
15551 (register_cache_size): Declare.
15552 (supply_regblock): Declare.
15553 * regcache.c (init_register_cache): New.
15554 (new_register_cache): Use it.
15555 (regcache_cpy): New.
15556 (register_cache_size): New.
15557 (supply_regblock): New.
15558 (regcache_read_pc, regcache_write_pc): New.
15560 * tracepoint.c: New.
15562 * Makefile.in (OBS): Add tracepoint.o.
15563 (tracepoint.o): New rule.
15565 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15567 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15569 (i386-mmx.c): Likewise.
15570 (i386-mmx-linux.o): Likewise.
15571 (i386-mmx-linux.c): Likewise.
15573 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15574 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15575 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15576 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15578 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15579 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15580 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15582 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15584 * Makefile.in (clean): Updated.
15586 (i386-avx.c): Likewise.
15587 (i386-avx-linux.o): Likewise.
15588 (i386-avx-linux.c): Likewise.
15589 (amd64-avx.o): Likewise.
15590 (amd64-avx.c): Likewise.
15591 (amd64-avx-linux.o): Likewise.
15592 (amd64-avx-linux.c): Likewise.
15594 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15595 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15596 (srv_amd64_regobj): Add amd64-avx.o.
15597 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15598 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15599 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15600 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15601 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15602 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15603 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15605 * i387-fp.c: Include "i386-xstate.h".
15607 (i387_cache_to_xsave): Likewise.
15608 (i387_xsave_to_cache): Likewise.
15609 (x86_xcr0): Likewise.
15611 * i387-fp.h (i387_cache_to_xsave): Likewise.
15612 (i387_xsave_to_cache): Likewise.
15613 (x86_xcr0): Likewise.
15615 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15616 * linux-crisv32-low.c (target_regsets): Likewise.
15617 * linux-m68k-low.c (target_regsets): Likewise.
15618 * linux-mips-low.c (target_regsets): Likewise.
15619 * linux-ppc-low.c (target_regsets): Likewise.
15620 * linux-s390-low.c (target_regsets): Likewise.
15621 * linux-sh-low.c (target_regsets): Likewise.
15622 * linux-sparc-low.c (target_regsets): Likewise.
15623 * linux-xtensa-low.c (target_regsets): Likewise.
15625 * linux-low.c: Include <sys/uio.h>.
15626 (regsets_fetch_inferior_registers): Support nt_type.
15627 (regsets_store_inferior_registers): Likewise.
15628 (linux_process_qsupported): New.
15629 (linux_target_ops): Add linux_process_qsupported.
15631 * linux-low.h (regset_info): Add nt_type.
15632 (linux_target_ops): Add process_qsupported.
15634 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15636 (init_registers_i386_avx_linux): New.
15637 (init_registers_amd64_avx_linux): Likewise.
15638 (xmltarget_i386_linux_no_xml): Likewise.
15639 (xmltarget_amd64_linux_no_xml): Likewise.
15640 (PTRACE_GETREGSET): Likewise.
15641 (PTRACE_SETREGSET): Likewise.
15642 (x86_fill_xstateregset): Likewise.
15643 (x86_store_xstateregset): Likewise.
15644 (use_xml): Likewise.
15645 (x86_linux_update_xmltarget): Likewise.
15646 (x86_linux_process_qsupported): Likewise.
15647 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15648 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15649 init_registers_i386_linux here. Call
15650 x86_linux_update_xmltarget.
15651 (the_low_target): Add x86_linux_process_qsupported.
15653 * server.c (handle_query): Call target_process_qsupported.
15655 * target.h (target_ops): Add process_qsupported.
15656 (target_process_qsupported): New.
15658 2010-04-03 Pedro Alves <pedro@codesourcery.com>
15660 * inferiors.c (add_thread): Set last_status kind to
15661 TARGET_WAITKIND_IGNORE.
15662 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15663 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15664 (linux_wait_1): Move `thread' local definition to block that uses
15665 it. Don't NULL initialize `event_child'.
15666 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15667 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15668 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15670 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15672 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15673 an extended waitstatus, or by a watchpoint.
15674 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15675 thread was stepping or has been stopped by a watchpoint.
15677 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15679 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15680 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15681 of another, then delete the previous, and validate all
15683 (validate_inserted_breakpoint): New.
15684 (delete_disabled_breakpoints): New.
15685 (validate_breakpoints): New.
15686 (check_mem_read): Validate breakpoints before trusting their
15687 shadow. Delete disabled breakpoints.
15688 (check_mem_write): Validate breakpoints before trusting they
15689 should be inserted. Delete disabled breakpoints.
15690 * mem-break.h (validate_breakpoints):
15691 * server.c (handle_query): Validate breakpoints when we see a
15694 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15696 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15697 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15698 if we could tell there's a GDB breakpoint at stop_pc.
15699 (need_step_over_p): Don't do a step over if we find a GDB
15700 breakpoint at the resume PC.
15702 * mem-break.c (struct raw_breakpoint): New.
15703 (enum bkpt_type): New type `gdb_breakpoint'.
15704 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15705 fields. New field `raw'.
15706 (find_raw_breakpoint_at): New.
15707 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15708 breakpoint instead.
15709 (set_breakpoint_at): Adjust.
15710 (delete_raw_breakpoint): New.
15711 (release_breakpoint): New.
15712 (delete_breakpoint): Rename to...
15713 (delete_breakpoint_1): ... this. Add proc parameter. Use
15714 release_breakpoint. Return ENOENT.
15715 (delete_breakpoint): Reimplement.
15716 (find_breakpoint_at): Delete.
15717 (find_gdb_breakpoint_at): New.
15718 (delete_breakpoint_at): Delete.
15719 (set_gdb_breakpoint_at): New.
15720 (delete_gdb_breakpoint_at): New.
15721 (gdb_breakpoint_here): New.
15722 (set_reinsert_breakpoint): Use release_breakpoint.
15723 (uninsert_breakpoint): Rename to ...
15724 (uninsert_raw_breakpoint): ... this.
15725 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15726 (reinsert_raw_breakpoint): Change parameter type to
15728 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15730 (check_breakpoints): Adjust. Use release_breakpoint.
15731 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15732 (breakpoint_inserted_here): Ditto.
15733 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15734 Don't trust the breakpoint's shadow if it is not inserted.
15735 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15736 (delete_all_breakpoints): Adjust.
15737 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15738 use delete_breakpoint_1.
15740 * mem-break.h (breakpoints_supported): Delete declaration.
15741 (set_gdb_breakpoint_at): Declare.
15742 (gdb_breakpoint_here): Declare.
15743 (delete_breakpoint_at): Delete.
15744 (delete_gdb_breakpoint_at): Declare.
15746 * server.h (struct raw_breakpoint): Forward declare.
15747 (struct process_info): New field `raw_breakpoints'.
15749 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15752 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15754 * linux-low.c (status_pending_p_callback): Fix comment.
15755 (linux_wait_for_event_1): Move most of the internal breakpoint
15756 handling from here...
15757 (linux_wait_1): ... to here.
15758 (count_events_callback): New.
15759 (select_singlestep_lwp_callback): New.
15760 (select_event_lwp_callback): New.
15761 (cancel_breakpoints_callback): New.
15762 (select_event_lwp): New.
15763 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15764 priority to all LWPs that have had events that should be reported
15765 to the client. Cancel breakpoints when about to reporting the
15766 event to the client, not while stopping lwps. No longer cancel
15767 finished single-steps here.
15768 (cancel_finished_single_step): Delete.
15769 (cancel_finished_single_steps): Delete.
15771 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15773 * mem-break.c (enum bkpt_type): New.
15774 (struct breakpoint): New field `type'.
15775 (set_breakpoint_at): Change return type to struct breakpoint
15776 pointer. Set type to `other_breakpoint' by default.
15777 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15778 in the breakpoint list.
15779 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15780 (reinsert_breakpoint): Rename to ...
15781 (reinsert_raw_breakpoint): ... this.
15782 (reinsert_breakpoints_at): Adjust.
15783 * mem-break.h (struct breakpoint): Declare.
15784 (set_breakpoint_at): Change return type to struct breakpoint
15787 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15789 * server.c (handle_query): Assign, not compare.
15791 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15793 Teach linux gdbserver to step-over-breakpoints.
15795 * linux-low.c (can_hardware_single_step): New.
15796 (supports_breakpoints): New.
15797 (handle_extended_wait): If stopping threads, read the stop pc of
15798 the new cloned LWP.
15800 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15801 low target doesn't support retrieving the PC.
15802 (add_lwp): Set last_resume_kind to resume_continue.
15803 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15804 (linux_attach): Don't clear stop_expected. Set the lwp's
15805 last_resume_kind to resume_stop.
15806 (linux_detach_one_lwp): Don't check for removed breakpoints.
15807 (check_removed_breakpoint): Delete.
15808 (status_pending_p): Rename to ...
15809 (status_pending_p_callback): ... this. Don't check for removed
15810 breakpoints. Don't consider threads that are stopped from GDB's
15812 (linux_wait_for_lwp): Always read the stop_pc here.
15813 (cancel_breakpoint): New.
15814 (step_over_bkpt): New global.
15815 (linux_wait_for_event_1): Implement stepping over breakpoints.
15816 (gdb_wants_lwp_stopped): New.
15817 (gdb_wants_all_stopped): New.
15818 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15819 single-step traps here. Store the thread's last reported target
15821 (send_sigstop): Don't clear stop_expected. Always set it,
15823 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15824 (cancel_finished_single_step): New.
15825 (cancel_finished_single_steps): New.
15826 (wait_for_sigstop): Don't cancel finished single-step traps here.
15827 (linux_resume_one_lwp): Don't check for removed breakpoints.
15828 Don't set `step' on non-hardware step archs.
15829 (linux_set_resume_request): Ignore resume_stop requests if already
15830 stopping or stopped. Set the lwp's last_resume_kind.
15831 (resume_status_pending_p): Don't check for removed breakpoints.
15832 (need_step_over_p): New.
15833 (start_step_over): New.
15834 (finish_step_over): New.
15835 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15836 requests. Clear the thread's last reported target waitstatus.
15837 Don't use the `suspended' flag. Don't consider pending breakpoints.
15838 (linux_resume): Start a step-over if necessary.
15839 (proceed_one_lwp): New.
15840 (proceed_all_lwps): New.
15841 (unstop_all_lwps): New.
15842 * linux-low.h (struct lwp_info): Rewrite comment for the
15843 `suspended' flag. Add the `stop_pc' field. Delete the
15844 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15845 Add `'last_resume_kind' and `need_step_over' fields.
15846 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15847 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15848 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15849 (set_raw_breakpoint_at): New.
15850 (set_breakpoint_at): Rewrite to use it.
15851 (reinsert_breakpoint_handler): Delete.
15852 (set_reinsert_breakpoint): New.
15853 (reinsert_breakpoint_by_bp): Delete.
15854 (delete_reinsert_breakpoints): New.
15855 (uninsert_breakpoint): Rewrite.
15856 (uninsert_breakpoints_at): New.
15857 (reinsert_breakpoint): Rewrite.
15858 (reinsert_breakpoints_at): New.
15859 (check_breakpoints): Rewrite.
15860 (breakpoint_here): New.
15861 (breakpoint_inserted_here): New.
15862 (check_mem_read): Adjust.
15863 * mem-break.h (breakpoints_supported, breakpoint_here)
15864 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15865 (reinsert_breakpoint_by_bp): Delete declaration.
15866 (delete_reinsert_breakpoints): Declare.
15867 (reinsert_breakpoint): Delete declaration.
15868 (reinsert_breakpoints_at): Declare.
15869 (uninsert_breakpoint): Delete declaration.
15870 (uninsert_breakpoints_at): Declare.
15871 (check_breakpoints): Adjust prototype.
15872 * server.h: Adjust include order.
15873 (struct thread_info): Declare here. Add a `last_status' field.
15875 2010-03-23 Michael Snyder <msnyder@vmware.com>
15877 * server.c (crc32): New function.
15878 (handle_query): Add handling for 'qCRC:' request.
15880 2010-03-23 Pedro Alves <pedro@codesourcery.com>
15882 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15883 lwp had been stopped by a watchpoint.
15885 2010-03-16 Pedro Alves <pedro@codesourcery.com>
15887 * server.h (internal_error): Declare.
15888 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15889 * utils.c (internal_error): New function.
15891 2010-03-15 Andreas Schwab <schwab@redhat.com>
15893 * configure.srv: Fix typo setting srv_regobj.
15895 2010-03-15 Pedro Alves <pedro@codesourcery.com>
15897 * linux-low.c (fetch_register): Avoid passing a non string literal
15899 (usr_store_inferior_registers): Ditto.
15901 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15903 * linux-low.c (linux_write_memory): Bail out early if peeking
15906 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15908 * linux-low.h (struct lwp_info): New fields
15909 `stopped_by_watchpoint' and `stopped_data_address'.
15910 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15911 here, and cache them in the lwp object.
15912 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15914 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15916 (linux_stopped_by_watchpoint): Rewrite.
15917 (linux_stopped_data_address): Rewrite.
15919 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
15921 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15922 switching the current inferior, not before.
15924 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15926 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15927 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15928 i386-linux.c and amd64-linux.c.
15929 (reg-i386.o): Removed.
15930 (reg-i386.c): Likewise.
15931 (reg-i386-linux.o): Likewise.
15932 (reg-i386-linux.c): Likewise.
15933 (reg-x86-64.o): Likewise.
15934 (reg-x86-64.c): Likewise.
15935 (reg-x86-64-linux.o): Likewise.
15936 (reg-x86-64-linux.c): Likewise.
15938 (i386.c): Likewise.
15939 (i386-linux.o): Likewise.
15940 (i386-linux.c): Likewise.
15941 (amd64.o): Likewise.
15942 (amd64.c): Likewise.
15943 (amd64-linux.o): Likewise.
15944 (amd64-linux.c): Likewise.
15946 * configure.srv (srv_i386_regobj): New.
15947 (srv_i386_linux_regobj): Likewise.
15948 (srv_amd64_regobj): Likewise.
15949 (srv_amd64_linux_regobj): Likewise.
15950 (srv_i386_32bit_xmlfiles): Likewise.
15951 (srv_i386_64bit_xmlfiles): Likewise.
15952 (srv_i386_xmlfiles): Likewise.
15953 (srv_amd64_xmlfiles): Likewise.
15954 (srv_i386_linux_xmlfiles): Likewise.
15955 (srv_amd64_linux_xmlfiles): Likewise.
15956 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15957 srv_xmlfiles to $srv_i386_xmlfiles.
15958 (i[34567]86-*-mingw32ce*): Likewise.
15959 (i[34567]86-*-mingw*): Likewise.
15960 (i[34567]86-*-nto*): Likewise.
15961 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15962 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15963 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15964 (x86_64-*-linux*): Likewise.
15966 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15967 (init_registers_amd64_linux): New.
15968 (x86_arch_setup): Replace init_registers_x86_64_linux with
15969 init_registers_amd64_linux.
15971 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15973 * configure.ac: Check for libdl. If it is not available link against
15974 static libthread_db.
15975 * configure: Regenerate.
15977 2010-02-22 Pedro Alves <pedro@codesourcery.com>
15981 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
15982 handing a read watchpoint.
15983 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15985 2010-02-12 Doug Evans <dje@google.com>
15987 * linux-low.c (linux_supports_tracefork_flag): Document.
15988 (linux_look_up_symbols): Add comment.
15990 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15992 * regcache.c (supply_register): Clear regcache if buf is NULL.
15994 2010-02-02 Nicolas Roche <roche@sourceware.org>
15995 Joel Brobecker <brobecker@adacore.com>
15997 * inferiors.c (find_inferior): Add function documentation.
15998 (unloaded_dll): Handle the case where the unloaded dll has not
15999 been previously registered in the dll list.
16001 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16003 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16004 (thumb2_breakpoint): New.
16005 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16007 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16009 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16010 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16013 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16015 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16017 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16019 * linux-s390-low.c (s390_collect_ptrace_register)
16020 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16022 2010-01-21 Doug Evans <dje@google.com>
16024 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16025 (PTRACE_ARG4_TYPE): New macro.
16026 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16027 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16028 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16029 (usr_store_inferior_registers): Ditto.
16030 (linux_read_memory, linux_write_memory): Ditto.
16031 (linux_test_for_tracefork): Ditto.
16033 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16034 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16036 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16038 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16041 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16043 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16044 prototype to take a regcache. Adjust.
16046 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16048 * regcache.h (struct thread_info): Forward declare.
16049 (struct regcache): New.
16050 (new_register_cache): Adjust prototype.
16051 (get_thread_regcache): Declare.
16052 (free_register_cache): Adjust prototype.
16053 (registers_to_string, registers_from_string): Ditto.
16054 (supply_register, supply_register_by_name, collect_register)
16055 (collect_register_as_string, collect_register_by_name): Ditto.
16056 * regcache.c (struct inferior_regcache_data): Delete.
16057 (get_regcache): Rename to ...
16058 (get_thread_regcache): ... this. Adjust. Switch inferior before
16059 fetching registers.
16060 (regcache_invalidate_one): Adjust.
16061 (regcache_invalidate): Fix prototype.
16062 (new_register_cache): Return the new register cache.
16063 (free_register_cache): Change prototype.
16064 (realloc_register_cache): Adjust.
16065 (registers_to_string): Change prototype to take a regcache. Adjust.
16066 (registers_from_string): Ditto.
16067 (register_data): Ditto.
16068 (supply_register): Ditto.
16069 (supply_register_by_name): Ditto.
16070 (collect_register): Ditto.
16071 (collect_register_as_string): Ditto.
16072 (collect_register_by_name): Ditto.
16073 * server.c (process_serial_event): Adjust.
16074 * linux-low.h (regset_fill_func, regset_store_func): Change
16076 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16078 * linux-low.c (get_stop_pc): Adjust.
16079 (check_removed_breakpoint): Adjust.
16080 (linux_wait_for_event): Adjust.
16081 (linux_resume_one_lwp): Adjust.
16082 (fetch_register): Add regcache parameter. Adjust.
16083 (usr_store_inferior_registers): Ditto.
16084 (regsets_fetch_inferior_registers): Ditto.
16085 (regsets_store_inferior_registers): Ditto.
16086 (linux_fetch_registers, linux_store_registers): Ditto.
16087 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16089 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16091 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16092 prototype to take a regcache.
16093 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16094 * remote-utils.c (convert_ascii_to_int, outreg)
16095 (prepare_resume_reply): Change prototype to take a regcache.
16097 * target.h (struct target_ops) <fetch_registers, store_registers>:
16098 Change prototype to take a regcache.
16099 (fetch_inferior_registers, store_inferior_registers): Change
16100 prototype to take a regcache. Adjust.
16101 * proc-service.c (ps_lgetregs): Adjust.
16102 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16103 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16104 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16105 take a regcache. Adjust.
16106 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16107 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16108 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16109 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16110 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16111 (cris_cannot_fetch_register):
16112 (cris_breakpoint_at): Change prototype to take a regcache.
16114 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16115 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16116 to take a regcache. Adjust.
16117 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16119 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16120 take a regcache. Adjust.
16121 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16122 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16123 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16124 * linux-mips-low.c (mips_get_pc):
16125 (mips_set_pc): Change prototype to take a regcache. Adjust.
16126 (mips_reinsert_addr): Adjust.
16127 (mips_collect_register): Change prototype to take a regcache.
16129 (mips_supply_register):
16130 (mips_collect_register_32bit, mips_supply_register_32bit)
16131 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16132 (mips_store_fpregset): Ditto.
16133 * linux-ppc-low.c (ppc_supply_ptrace_register)
16134 (ppc_supply_ptrace_register): Ditto.
16135 (parse_spufs_run): Adjust.
16136 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16137 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16138 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16139 take a regcache. Adjust.
16140 * linux-s390-low.c (s390_collect_ptrace_register)
16141 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16142 (s390_set_pc): Change prototype to take a regcache. Adjust.
16143 (s390_arch_setup): Adjust.
16144 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16145 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16146 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16147 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16148 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16150 (sparc_breakpoint_at): Adjust.
16151 * linux-xtensa-low.c (xtensa_fill_gregset):
16152 (xtensa_store_gregset):
16153 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16154 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16155 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16156 prototype to take a regcache. Adjust.
16157 * win32-arm-low.c (arm_fetch_inferior_register)
16158 (arm_store_inferior_register): Change prototype to take a
16160 * win32-i386-low.c (i386_fetch_inferior_register)
16161 (i386_store_inferior_register): Change prototype to take a
16163 * win32-low.c (child_fetch_inferior_registers)
16164 (child_store_inferior_registers): Change prototype to take a
16166 (win32_wait): Adjust.
16167 (win32_fetch_inferior_registers): Change prototype to take a
16169 (win32_store_inferior_registers): Adjust.
16170 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16171 store_inferior_register>: Change prototype to take a regcache.
16173 2010-01-20 Doug Evans <dje@google.com>
16175 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16177 (linux_wait_for_event1, linux_init_signals): Ditto.
16178 (W_STOPCODE): Provide definition if missing.
16180 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16182 * linux-low.c (linux_core_of_thread): New.
16183 (compare_ints, show_process, list_threads): New.
16184 (linux_qxfer_osdata): Report threads and cores.
16185 (linux_target_op): Register linux_core_of_thread.
16186 * remote-utils.c (prepare_resume_reply): Report the core.
16187 (buffer_xml_printf): Support %d specifier.
16188 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16190 (handle_query): Handle qXfer:threads. Announce availability
16192 * target.h (struct target_ops): New field core_of_thread.
16194 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16196 * Makefile.in (clean): Remove new generated files.
16197 (reg-s390.o, reg-s390.c): Remove rules.
16198 (reg-s390x.o, reg-s390x.c): Likewise.
16199 (s390-linux32.o, s390-linux32.c): Add rules.
16200 (s390-linux64.o, s390-linux64.c): Likewise.
16201 (s390x-linux64.o, s390x-linux64.c): Likewise.
16202 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16203 * linux-s390-low.c: Include <elf.h>.
16204 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16205 (init_registers_s390): Remove prototype.
16206 (init_registers_s390x): Likewise.
16207 (init_registers_s390_linux32): Add prototype.
16208 (init_registers_s390_linux64): Likewise.
16209 (init_registers_s390x_linux64): Likewise.
16210 (s390_num_regs_3264): New define.
16211 (s390_regmap_3264): New global variable.
16212 (s390_cannot_fetch_register): Remove obsolete check.
16213 (s390_cannot_store_register): Likewise.
16214 (s390_collect_ptrace_register): Handle upper/lower register halves.
16215 (s390_supply_ptrace_register): Likewise.
16216 (s390_fill_gregset): Update to register number changes.
16217 (s390_get_hwcap): New routine.
16218 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16219 Install appropriate regmap and register set.
16221 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16223 * server.c (gdbserver_version): Update copyright year to 2010.
16224 * gdbreplay.c (gdbreplay_version): Likewise.
16226 2009-12-28 Doug Evans <dje@google.com>
16228 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16229 elf/external.h. Include <elf.h> instead but only if necessary.
16231 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16233 * linux-low.c (linux_remove_process): Remove `detaching'
16234 parameter. Don't release/detach from thread_db here.
16235 (linux_kill): Release/detach from thread_db here, ...
16236 (linux_detach): ... and here, before actually detaching.
16237 (linux_wait_1): ... and here, when a process exits.
16238 * thread-db.c (any_thread_of): New.
16239 (thread_db_free): Switch the current inferior to a thread of the
16242 2009-12-21 Doug Evans <dje@google.com>
16244 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16246 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16247 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16248 warning ifndef __NR_tkill. Move setting of errno there too.
16249 Delete unnecessary resetting of errno after syscall.
16250 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16252 * configure.ac: Check for dladdr.
16253 * config.in: Regenerate.
16254 * configure: Regenerate.
16255 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16256 (try_thread_db_load): Update.
16258 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16260 2009-12-18 Doug Evans <dje@google.com>
16262 * event-loop.c: Include unistd.h if it exists.
16264 * linux-low.c (my_waitpid): Move definition away from being in
16265 between linux_tracefork_child/linux_test_for_tracefork.
16267 * gdb_proc_service.h (psaddr_t): Fix type.
16268 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16269 signature to match glibc.
16271 2009-12-16 Doug Evans <dje@google.com>
16273 * linux-low.c (linux_read_memory): Fix argument to read.
16275 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16277 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16278 events, don't leave current_inferior pointing at null.
16280 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16282 * win32-low.c (LOG): Delete.
16283 (OUTMSG): Output to stderr.
16284 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16285 on compile time LOG macro.
16286 (win32_wait): Fix debug output.
16288 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16290 * win32-low.c (win32_add_one_solib): If the dll name is
16291 "ntdll.dll", prepend the system directory to the dll path.
16293 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16295 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16297 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16298 Vladimir Prus <vladimir@codesourcery.com>
16300 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16301 * configure.ac: Check for __mcoldfire__ and set
16302 gdb_cv_m68k_is_coldfire.
16303 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16304 reg-cf.o and reg-m68k.o.
16305 * configure: Regenerated.
16307 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16309 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16310 Pass it to thread_db_free.
16311 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16312 proper `detaching' argument to linux_remove_process.
16313 * linux-low.h (thread_db_free): Add `detaching' parameter.
16314 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16316 (thread_db_free): Add `detaching' parameter. Only
16317 call td_ta_clear_event if detaching from process.
16319 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16321 * thread-db.c (thread_db_free): Fix typo.
16323 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16326 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16328 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16330 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16331 with an i686 compiler.
16332 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16334 * configure: Rebuilt.
16336 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16340 * server.c (handle_search_memory_1): Correct read_addr initialization
16341 in loop for searching subsequent chunks.
16343 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16345 * configure.ac: New --with-libthread-db option.
16346 * thread-db.c: Allow direct dependence on libthread_db.
16347 (thread_db_free): Adjust.
16348 * config.in: Regenerate.
16349 * configure: Likewise.
16351 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16354 * thread-db.c (attach_thread): New function.
16355 (maybe_attach_thread): Return success/failure.
16356 (find_new_threads_callback): Adjust.
16357 (thread_db_find_new_threads): Loop until no new threads.
16359 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16361 * proc-service.c (ps_lgetregs): Formatting.
16363 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16365 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16366 * configure.ac: Adjust.
16367 * linux-low.h (struct process_info_private): Move members to struct
16369 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16370 * linux-low.c (linux_remove_process): Adjust.
16371 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16372 * server.c (handle_query): Move code ...
16373 (handle_monitor_command): ... here. New function.
16374 * target.h (struct target_ops): New member.
16375 * thread-db.c (struct thread_db): New.
16376 (libthread_db_search_path): New variable.
16377 (thread_db_create_event, thread_db_enable_reporting)
16378 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16379 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16380 (try_thread_db_load_1, dladdr_to_soname): New functions.
16381 (try_thread_db_load, thread_db_load_search): New functions.
16382 (thread_db_init): Search for libthread_db.
16383 (thread_db_free): New function.
16384 (thread_db_handle_monitor_command): Likewise.
16385 * config.in: Regenerate.
16386 * configure: Regenerate.
16388 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16390 * spu-low.c (spu_kill): Wait for inferior to terminate.
16391 Call clear_inferiors.
16392 (spu_detach): Call clear_inferiors.
16394 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16396 * aclocal.m4: Regenerate.
16397 * config.in: Likewise.
16398 * configure: Likewise.
16400 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16402 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16403 (parse_spufs_run): New function.
16404 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16405 (ppc_breakpoint_at): Handle SPU breakpoints.
16407 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16409 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16410 (SPUFS_MAGIC): Define.
16411 (spu_enumerate_spu_ids): New function.
16412 (linux_qxfer_spu): New function.
16413 (linux_target_ops): Install linux_qxfer_spu.
16415 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16417 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16418 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16419 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16420 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16421 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16422 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16423 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16424 (init_registers_powerpc_cell32l): Add prototype.
16425 (init_registers_powerpc_cell64l): Likewise.
16426 (ppc_arch_setup): Detect Cell/B.E. architecture.
16428 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16430 * Makefile.in (datarootdir): New variable.
16432 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16434 * linux-low.c (linux_write_memory): Update debugging output.
16435 * Makefile.in (clean): Add new descriptions.
16436 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16437 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16438 * configure.srv: Add new files for arm*-*-linux*.
16439 * linux-arm-low.c: Add new declarations.
16440 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16441 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16442 (HWCAP_VFPv3D16): New.
16443 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16444 instead of __IWMMXT__.
16445 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16446 (arm_arch_setup): New.
16447 (target_regsets): Remove #ifdef. Add VFP regset.
16448 (the_low_target): Use arm_arch_setup.
16450 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16452 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16453 the main thread again.
16455 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16457 Adding Neutrino gdbserver.
16458 * configure: Regenerated.
16459 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16460 * configure.srv (i[34567]86-*-nto*): New target.
16461 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16462 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16463 (nto_comctrl) [__QNX__]: New function.
16464 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16466 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
16468 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16471 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16472 Pedro Alves <pedro@codesourcery.com>
16474 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16475 don't support CONTEXT_EXTENDED_REGISTERS.
16476 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16477 (the_low_target): Install them.
16478 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16479 failing with ERROR_PIPE_NOT_CONNECTED.
16481 2009-06-30 Doug Evans <dje@google.com>
16482 Pierre Muller <muller@ics.u-strasbg.fr>
16484 Add h/w watchpoint support to x86-linux, win32-i386.
16485 * Makefile.in (SFILES): Add i386-low.c
16486 (i386_low_h): Define.
16487 (i386-low.o): Add dependencies.
16488 (linux-x86-low.o): Add i386-low.h dependency.
16489 (win32-i386-low.o): Ditto.
16490 * i386-low.c: New file.
16491 * i386-low.h: New file.
16492 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16493 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16494 * linux-low.c (linux_add_process): Initialize arch_private.
16495 (linux_remove_process): Free arch_private.
16496 (add_lwp): Initialize arch_private.
16497 (delete_lwp): Free arch_private.
16498 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16500 * linux-low.h (process_info_private): New member arch_private.
16501 (lwp_info): New member arch_private.
16502 (linux_target_ops): New members new_process, new_thread,
16504 (ptid_of): New macro.
16505 * linux-x86-low.c: Include stddef.h, i386-low.h.
16506 (arch_process_info): New struct.
16507 (arch_lwp_info): New struct.
16508 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16509 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16510 (i386_dr_low_get_status): New function.
16511 (x86_insert_point, x86_remove_point): New functions.
16512 (x86_stopped_by_watchpoint): New function.
16513 (x86_stopped_data_address): New function.
16514 (x86_linux_new_process, x86_linux_new_thread): New functions.
16515 (x86_linux_prepare_to_resume): New function.
16516 (the_low_target): Add entries for insert_point, remove_point,
16517 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16519 * server.c (debug_hw_points): New global.
16520 (monitor_show_help): Document set debug-hw-points.
16521 (handle_query): Process "set debug-hw-points".
16522 * server.h (debug_hw_points): Declare.
16523 (paddress): Declare.
16524 * utils.c (NUMCELLS, CELLSIZE): New macros.
16525 (get_sell, xsnprintf, paddress): New functions.
16526 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16527 remove_point, stopped_by_watchpoint, stopped_data_address.
16528 * win32-i386-low.c: Include i386-low.h.
16529 (debug_reg_state): Replaces dr.
16530 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16531 (i386_dr_low_get_status): New function.
16532 (i386_insert_point, i386_remove_point): New functions.
16533 (i386_stopped_by_watchpoint): New function.
16534 (i386_stopped_data_address): New function.
16535 (i386_initial_stuff): Update.
16536 (get_thread_context,set_thread_context,i386_thread_added): Update.
16537 (the_low_target): Add entries for insert_point,
16538 remove_point, stopped_by_watchpoint, stopped_data_address.
16539 * win32-low.c (win32_insert_watchpoint): New function.
16540 (win32_remove_watchpoint): New function.
16541 (win32_stopped_by_watchpoint): New function.
16542 (win32_stopped_data_address): New function.
16543 (win32_target_ops): Add entries for insert_watchpoint,
16544 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16545 * win32-low.h (win32_target_ops): New members insert_point,
16546 remove_point, stopped_by_watchpoint, stopped_data_address.
16548 2009-06-25 Pedro Alves <pedro@codesourcery.com>
16550 * server.c (process_serial_event): Re-return unsupported, not
16551 error, if the type isn't recognized. Re-allow supporting only
16552 insert or remove packets. Also call require_running for
16553 breakpoints. Add missing break statement to default case. Tidy.
16554 * target.h (struct target_ops): Rename insert_watchpoint to
16555 insert_point, and remove_watchpoint to remove_point.
16557 * linux-low.h (struct linux_target_ops): Likewise.
16558 * linux-low.c (linux_insert_watchpoint): Rename to ...
16559 (linux_insert_point): ... this. Adjust.
16560 (linux_remove_watchpoint): Rename to ...
16561 (linux_remove_point): ... this. Adjust.
16562 (linux_target_ops): Adjust.
16563 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16564 (cris_insert_point): ... this.
16565 (cris_remove_watchpoint): Rename to ...
16566 (cris_remove_point): ... this.
16567 (the_low_target): Adjust.
16569 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16571 * server.c (handle_v_kill): Pass signal_pid to
16572 kill_inferior if multi_process is zero.
16574 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16576 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16577 * target.h (target_ops): Comment for *_watchpoint to make it clear
16578 the functions can get types '0' and '1'.
16580 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16582 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16583 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16584 * regcache.c (get_regcache): Likewise.
16585 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16586 * win32-low.c (child_fetch_inferior_registers): Remove check for
16589 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16590 Pedro Alves <pedro@codesourcery.com>
16592 * target.h (struct target_ops) <supports_multi_process>: New
16594 (target_supports_multi_process): New.
16595 * server.c (handle_query): Even if GDB reports support, only
16596 enable multi-process if the target also supports it. Report
16597 multi-process support only if the target backend supports it.
16598 * linux-low.c (linux_supports_multi_process): New function.
16599 (linux_target_ops): Install it as target_supports_multi_process
16602 2009-05-24 Doug Evans <dje@google.com>
16604 Global renaming of find_thread_pid to find_thread_ptid.
16605 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16606 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16607 All callers updated.
16609 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16610 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16613 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16614 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16615 (linux_resume_one_lwp): Ditto.
16617 2009-05-23 Doug Evans <dje@google.com>
16619 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16620 from struct inferior_list_entry * to struct lwp_info *.
16621 All callers updated.
16623 2009-05-13 Doug Evans <dje@google.com>
16625 * linux-x86-low.c: Don't include assert.h.
16626 (x86_siginfo_fixup): Use fatal, not assert.
16627 (x86_arch_setup): Fix comment.
16629 2009-05-12 Doug Evans <dje@google.com>
16631 Biarch support for i386/amd64 gdbserver.
16632 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16633 Add linux-x86-low.c.
16634 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16635 (linux-x86-low.o): Add.
16636 * linux-x86-64-low.c: Delete.
16637 * linux-i386-low.c: Delete.
16638 * linux-x86-low.c: New file.
16639 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16641 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16643 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16644 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16645 (linux_child_pid_to_exec_file): New function.
16646 (elf_64_header_p, elf_64_file_p): New functions.
16647 (siginfo_fixup): New function.
16648 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16649 give target a chance to convert layout.
16650 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16651 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16653 2009-05-07 Doug Evans <dje@google.com>
16655 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16656 (regsets_store_inferior_registers): Ditto.
16658 2009-05-06 Pedro Alves <pedro@codesourcery.com>
16662 * linux-low.c (must_set_ptrace_flags): Delete.
16663 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16665 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16666 `lwp->must_set_ptrace_flags' instead.
16667 (linux_wait_for_event_1): Set ptrace options here.
16668 (linux_wait_1): ... not here.
16670 2009-04-30 Doug Evans <dje@google.com>
16672 * inferiors.c (started_inferior_callback): New function.
16673 (attached_inferior_callback): New function.
16674 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16675 * server.c (print_started_pid, print_attached_pid): New functions.
16676 (detach_or_kill_for_exit): New function.
16677 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16678 * server.h (have_started_inferiors_p): Declare.
16679 (have_attached_inferiors_p): Declare.
16681 * inferiors.c (remove_process): Fix memory leak, free process.
16682 * linux-low.c (linux_remove_process): New function.
16683 (linux_kill): Call it instead of remove_process.
16684 (linux_detach, linux_wait_1): Ditto.
16686 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16688 * configure.srv: Add x86 Windows CE target.
16690 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16692 * inferiors.c (get_thread_process): Make global.
16693 * server.h (get_thread_process): Add prototype.
16694 * thread-db.c (find_one_thread): Use get_thread_process
16695 instead of current_process.
16696 (thread_db_get_tls_address): Do not crash if called when
16697 thread layer is not yet initialized.
16699 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16701 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16702 * spu-low.c (current_tid): Rename to ...
16703 (current_ptid): ... this.
16704 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16705 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16706 ptid_get_lwp (current_ptid) instead of current_tid.
16707 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16708 instead of current_tid. Use find_process_pid to verify pid
16709 argument is valid. Pass proper argument to remove_process.
16710 (spu_thread_alive): Compare current_ptid instead of current_tid.
16711 (spu_resume): Likewise.
16713 2009-04-02 Pedro Alves <pedro@codesourcery.com>
16715 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16718 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16720 Implement the multiprocess extensions, and add linux multiprocess
16723 * server.h (ULONGEST): Declare.
16724 (struct ptid, ptid_t): New.
16725 (minus_one_ptid, null_ptid): Declare.
16726 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16727 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16728 (struct inferior_list_entry): Change `id' type from unsigned from
16730 (struct sym_cache, struct breakpoint, struct
16731 process_info_private): Forward declare.
16732 (struct process_info): Declare.
16733 (current_process): Declare.
16734 (all_processes): Declare.
16735 (initialize_inferiors): Declare.
16736 (add_thread): Adjust to use ptid_t.
16737 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16738 (add_process, remove_process, find_thread_pid): Declare.
16739 (find_inferior_id): Adjust to use ptid_t.
16740 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16741 (multi_process): Declare.
16742 (push_event): Adjust to use ptid_t.
16743 (read_ptid, write_ptid): Declare.
16744 (prepare_resume_reply): Adjust to use ptid_t.
16745 (clear_symbol_cache): Declare.
16746 * inferiors.c (all_processes): New.
16747 (null_ptid, minus_one_ptid): New.
16748 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16749 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16750 (add_thread): Change unsigned long to ptid. Remove gdb_id
16752 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16753 (gdb_id_to_thread): Rename to ...
16754 (find_thread_pid): ... this. Change unsigned long to ptid.
16755 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16756 (loaded_dll, pull_pid_from_list): Adjust.
16757 (add_process, remove_process, find_process_pid)
16758 (get_thread_process, current_process, initialize_inferiors): New.
16759 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16760 (struct target_waitstatus) <related_pid>: Ditto.
16761 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16762 return type to int.
16763 (struct target_ops) <join>: Add `pid' argument.
16764 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16765 (struct target_ops) <wait>: Add `ptid' field. Change return type
16767 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16768 (mywait): Add `ptid' argument. Change return type to ptid_t.
16769 (target_pid_to_str): Declare.
16770 * target.c (set_desired_inferior): Adjust to use ptids.
16771 (mywait): Add new `ptid' argument. Adjust.
16772 (target_pid_to_str): New.
16773 * mem-break.h (free_all_breakpoints): Declare.
16774 * mem-break.c (breakpoints): Delelete.
16775 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16776 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16777 to use per-process breakpoint list.
16778 (free_all_breakpoints): New.
16779 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16780 (symbol_cache, all_symbols_looked_up): Delete.
16782 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16784 (prepare_resume_reply): Change ptid argument's type from unsigned
16785 long to ptid_t. Adjust. Implement W;process and X;process.
16786 (free_sym_cache, clear_symbol_cache): New.
16787 (look_up_one_symbol): Adjust to per-process symbol cache. *
16788 * server.c (cont_thread, general_thread, step_thread): Change type
16790 (attached): Delete.
16791 (multi_process): New.
16792 (last_ptid): Change type to ptid_t.
16793 (struct vstop_notif) <ptid>: Change type to ptid_t.
16794 (queue_stop_reply, push_event): Change `ptid' argument's type to
16796 (discard_queued_stop_replies): Add `pid' argument.
16797 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16798 changes. Don't reference the `attached' global.
16799 (attach_inferior): Adjust to mywait interface changes.
16800 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16801 features. Handle and report "multiprocess+". Handle
16803 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16805 (handle_v_kill): New.
16806 (handle_v_stopped): Adjust to use target_pid_to_str.
16807 (handle_v_requests): Allow multiple attaches and runs when
16808 multiprocess extensions are in effect. Handle "vKill".
16809 (myresume): Adjust to use ptids.
16810 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16811 (handle_status): Adjust to discard_queued_stop_replies interface
16813 (first_thread_of, kill_inferior_callback)
16814 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16815 (main): Call initialize_inferiors. Adjust to use ptids, killing
16816 and detaching from all inferiors. Handle multiprocess packet
16818 * linux-low.h: Include gdb_proc_service.h.
16819 (struct process_info_private): New.
16820 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16821 <lwpid_of>: Use ptid_get_lwp.
16822 (get_lwp_thread): Adjust.
16823 (struct lwp_info): Add `dead' member.
16824 (find_lwp_pid): Declare.
16825 * linux-low.c (thread_db_active): Delete.
16826 (new_inferior): Adjust comment.
16827 (inferior_pid): Delete.
16828 (linux_add_process): New.
16829 (handle_extended_wait): Adjust.
16830 (add_lwp): Change unsigned long to ptid.
16831 (linux_create_inferior): Add process to processes table. Adjust
16832 to use ptids. Don't set new_inferior here.
16833 (linux_attach_lwp): Rename to ...
16834 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16835 it. Adjust to use ptids.
16836 (linux_attach_lwp): New.
16837 (linux_attach): Add process to processes table. Don't set
16839 (struct counter): New.
16840 (second_thread_of_pid_p, last_thread_of_process_p): New.
16841 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16842 multiple processes.
16843 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16844 processes. Remove process from process table.
16845 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16846 to multiple processes.
16847 (any_thread_of): New.
16848 (linux_detach): Add `pid' argument, and handle it. Remove process
16849 from processes table.
16850 (linux_join): Add `pid' argument. Handle it.
16851 (linux_thread_alive): Change unsighed long argument to ptid_t.
16852 Consider dead lwps as not being alive.
16853 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16854 threads we're not interested in.
16855 (same_lwp, find_lwp_pid): New.
16856 (linux_wait_for_lwp): Change `pid' argument's type from int to
16858 (linux_wait_for_event): Rename to ...
16859 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16860 from int to ptid_t. Adjust.
16861 (linux_wait_for_event): New.
16862 (linux_wait_1): Add `ptid' argument. Change return type to
16863 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16864 that exit from the process table.
16865 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16867 (mark_lwp_dead): New.
16868 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16869 stopping all threads, mark its main lwp as dead.
16870 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16872 (fetch_register, usr_store_inferior_registers)
16873 (regsets_fetch_inferior_registers)
16874 (regsets_store_inferior_registers, linux_read_memory)
16875 (linux_write_memory): Inline `inferior_pid'.
16876 (linux_look_up_symbols): Adjust to use per-process
16877 `thread_db_active'.
16878 (linux_request_interrupt): Adjust to use ptids.
16879 (linux_read_auxv): Inline `inferior_pid'.
16880 (initialize_low): Don't reference thread_db_active.
16881 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16882 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16883 (ps_getpid): Return the pid of the current inferior.
16884 * thread-db.c (proc_handle, thread_agent): Delete.
16885 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16887 (find_one_thread): Change argument type to ptid_t. Adjust to
16889 (maybe_attach_thread): Adjust to per-process data and ptids.
16890 (thread_db_find_new_threads): Ditto.
16891 (thread_db_init): Ditto.
16892 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16893 processes table. Adjust to use ptids.
16894 (spu_kill, spu_detach): Adjust interface. Remove process from
16896 (spu_join, spu_thread_alive): Adjust interface.
16897 (spu_wait): Adjust interface. Remove process from processes
16898 table. Adjust to use ptids.
16899 * win32-low.c (current_inferior_tid): Delete.
16900 (current_inferior_ptid): New.
16901 (debug_event_ptid): New.
16902 (thread_rec): Take a ptid. Adjust.
16903 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16904 (child_delete_thread): Ditto.
16905 (do_initial_child_stuff): Add `attached' argument. Add process to
16907 (child_fetch_inferior_registers, child_store_inferior_registers):
16909 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16910 (win32_attach): Pass 1 to do_initial_child_stuff.
16911 (win32_kill): Adjust interface. Remove process from processes
16913 (win32_detach): Ditto.
16914 (win32_join): Adjust interface.
16915 (win32_thread_alive): Take a ptid.
16916 (win32_resume): Adjust to use ptids.
16917 (get_child_debug_event): Ditto.
16918 (win32_wait): Adjust interface. Remove exiting process from
16921 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16923 Non-stop mode support.
16925 * server.h (non_stop): Declare.
16926 (gdb_client_data, handler_func): Declare.
16927 (delete_file_handler, add_file_handler, start_event_loop):
16929 (handle_serial_event, handle_target_event, push_event)
16930 (putpkt_notif): Declare.
16931 * target.h (enum resume_kind): New.
16932 (struct thread_resume): Replace `step' field by `kind' field.
16933 (TARGET_WNOHANG): Define.
16934 (struct target_ops) <wait>: Add `options' argument.
16935 <supports_non_stop, async, start_non_stop>: New fields.
16936 (target_supports_non_stop, target_async): New.
16937 (start_non_stop): Declare.
16938 (mywait): Add `options' argument.
16939 * target.c (mywait): Add `options' argument. Print child exit
16940 notifications here.
16941 (start_non_stop): New.
16942 * server.c (non_stop, own_buf, mem_buf): New globals.
16943 (struct vstop_notif): New.
16944 (notif_queue): New global.
16945 (queue_stop_reply, push_event, discard_queued_stop_replies)
16946 (send_next_stop_reply): New.
16947 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16949 (attach_inferior): In non-stop mode, don't wait for the target
16951 (handle_general_set): Handle QNonStop.
16952 (handle_query): When handling qC, return the current general
16953 thread, instead of the first thread of the list.
16954 (handle_query): If the backend supports non-stop mode, include
16955 QNonStop+ in the qSupported query response.
16956 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16958 (handle_v_attach, handle_v_run): Handle non-stop mode.
16959 (handle_v_stopped): New.
16960 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16961 (myresume): Adjust to use resume_kind. Handle non-stop.
16962 (queue_stop_reply_callback): New.
16963 (handle_status): Handle non-stop mode.
16964 (main): Clear non_stop flag on reconnection. Use the event-loop.
16965 Refactor serial protocol handling from here ...
16966 (process_serial_event): ... to this new function. When GDB
16967 selects any thread, select one here. In non-stop mode, wait until
16968 GDB acks all pending events before exiting.
16969 (handle_serial_event, handle_target_event): New.
16970 * remote-utils.c (remote_open): Install remote_desc in the event
16972 (remote_close): Remove remote_desc from the event loop.
16973 (putpkt_binary): Rename to...
16974 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
16975 (putpkt_binary): New as wrapper around putpkt_binary_1.
16976 (putpkt_notif): New.
16977 (prepare_resume_reply): In non-stop mode, don't change the
16979 * event-loop.c: New.
16980 * Makefile.in (OBJ): Add event-loop.o.
16981 (event-loop.o): New rule.
16983 * linux-low.h (pid_of): Moved here.
16985 (get_lwp_thread): Use lwpid_of.
16986 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16987 * linux-low.c (pid_of): Delete.
16988 (inferior_pid): Use lwpid_of.
16989 (linux_event_pipe): New.
16990 (target_is_async_p): New.
16992 (handle_extended_wait): Use lwpid_of.
16993 (add_lwp): Don't set lwpid field.
16994 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16995 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16996 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16997 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16998 first. Adjust to linux_wait_for_event interface changes. Use
17000 (linux_detach): Don't delete the main lwp here.
17001 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17002 (status_pending_p): Don't consider explicitly suspended lwps.
17003 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17004 pointer. Add OPTIONS argument. Change return type to int. Use
17005 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17006 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17007 pointer. Add status pointer argument. Return a pid instead of a
17008 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17009 changes. In non-stop mode, don't switch to a random thread.
17010 (linux_wait): Rename to...
17011 (linux_wait_1): ... this. Add target_options argument, and handle
17012 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17013 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17014 clean exit and signal exit code. Don't stop all threads in
17015 non-stop mode. In all-stop mode, only stop all threads when
17016 reporting a stop to GDB. Handle explicit thread stop requests.
17017 (async_file_flush, async_file_mark): New.
17019 (send_sigstop): Use lwpid_of.
17020 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17021 interface changes. In non-stop mode, don't switch to a random
17023 (linux_resume_one_lwp): Use lwpid_of.
17024 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17025 (linux_resume_one_thread): ... this. Handle resume_stop. In
17026 non-stop mode, don't look for pending flag in all threads.
17027 (resume_status_pending_p): Don't consider explicitly suspended
17029 (my_waitpid): Reimplement. Emulate __WALL.
17030 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17032 (sigchld_handler, linux_supports_non_stop, linux_async)
17033 (linux_start_non_stop): New.
17034 (linux_target_ops): Register linux_supports_non_stop, linux_async
17035 and linux_start_non_stop.
17036 (initialize_low): Install SIGCHLD handler.
17037 * thread-db.c (thread_db_create_event, find_one_thread)
17038 (thread_db_get_tls_address): Use lwpid_of.
17039 * win32-low.c (win32_detach): Adjust to use resume_kind.
17040 (win32_wait): Add `options' argument.
17041 * spu-low.c (spu_resume): Adjust to use resume_kind.
17042 (spu_wait): Add `options' argument.
17044 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17046 Decouple target code from remote protocol.
17048 * target.h (enum target_waitkind): New.
17049 (struct target_waitstatus): New.
17050 (struct target_ops) <wait>: Return an unsigned long. Take a
17051 target_waitstatus pointer instead of a char pointer.
17052 (mywait): Likewise.
17053 * target.c (mywait): Change prototype to return an unsigned long.
17054 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17055 * server.h (thread_from_wait, old_thread_from_wait): Delete
17057 (prepare_resume_reply): Change prototype to take a
17059 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17060 (last_status, last_ptid): New.
17061 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17062 pid instead of a signal.
17063 (attach_inferior): Remove "status" and "signal" parameters.
17065 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17067 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17068 (handle_v_requests, myresume): Remove "status" and "signal"
17069 parameters. Adjust.
17070 (handle_status): New.
17071 (main): Delete local `status'. Adjust.
17072 * remote-utils.c: Include target.h.
17073 (prepare_resume_reply): Change prototype to take a
17074 target_waitstatus. Adjust.
17076 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17078 * spu-low.c (spu_wait): Adjust.
17079 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17081 (win32_wait): Adjust.
17083 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17085 * target.h (struct thread_resume): Delete leave_stopped member.
17086 (struct target_ops): Add a `n' argument to the `resume' callback.
17087 * server.c (start_inferior): Adjust.
17088 (handle_v_cont, myresume): Adjust.
17089 * linux-low.c (check_removed_breakpoint): Adjust to resume
17090 interface change, and to removed leave_stopped field.
17091 (resume_ptr): Delete.
17092 (struct thread_resume_array): New.
17093 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17094 resume interface change.
17095 (linux_continue_one_thread, linux_queue_one_thread)
17096 (resume_status_pending_p): Check if the resume field is NULL
17097 instead of checking the leave_stopped member.
17098 (linux_resume): Adjust to the target resume interface change.
17099 * spu-low.c (spu_resume): Adjust to the target resume interface
17101 * win32-low.c (win32_detach, win32_resume): Ditto.
17103 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17105 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17107 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17109 (linux_continue_one_thread): Only preserve the stepping flag if
17110 there's a pending breakpoint.
17112 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17114 * server.c (main): After the inferior having exited, call
17115 remote_close before exiting gdbserver.
17117 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17119 Fix size of FPSCR in Power 7 processors.
17120 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17121 (PPC_FEATURE_HAS_DFP): New #define.
17122 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17125 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17127 * server.c (handle_query) Whitespace and formatting.
17129 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17131 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17132 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17133 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17134 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17135 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17136 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17137 Makefile.in, configure.ac: Fix whitespace throughout.
17138 * configure: Regenerate.
17140 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17142 * inferiors.c (find_inferior): Make it safe for the callback
17143 function to delete the currently iterated inferior.
17145 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17147 * Makefile.in (linuw_low_h): Move higher.
17148 (thread-db.o): Depend on $(linux_low_h).
17150 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17152 Rename "process" to "lwp" throughout.
17154 * linux-low.c (all_processes): Rename to...
17155 (all_lwps): ... this.
17156 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17157 (add_process): Rename to ...
17158 (add_lwp): ... this. Adjust.
17159 (linux_create_inferior): Adjust.
17160 (linux_attach_lwp): Adjust.
17161 (linux_attach): Adjust.
17162 (linux_kill_one_process): Rename to ...
17163 (linux_kill_one_lwp): ... this. Adjust.
17164 (linux_kill): Adjust.
17165 (linux_detach_one_process): Rename to ...
17166 (linux_detach_one_lwp): ... this. Adjust.
17167 (linux_detach): Adjust.
17168 (check_removed_breakpoint): Adjust.
17169 (status_pending_p): Adjust.
17170 (linux_wait_for_process): Rename to ...
17171 (linux_wait_for_lwp): ... this. Adjust.
17172 (linux_wait_for_event): Adjust.
17173 (send_sigstop): Adjust.
17174 (wait_for_sigstop): Adjust.
17175 (stop_all_processes): Rename to ...
17176 (stop_all_lwps): ... this.
17177 (linux_resume_one_process): Rename to ...
17178 (linux_resume_one_lwp): ... this. Adjust.
17179 (linux_set_resume_request, linux_continue_one_thread)
17180 (linux_queue_one_thread, resume_status_pending_p)
17181 (usr_store_inferior_registers, regsets_store_inferior_registers)
17182 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17184 * linux-low.h (get_process): Rename to ...
17185 (get_lwp): ... this. Adjust.
17186 (get_thread_process): Rename to ...
17187 (get_thread_lwp): ... this. Adjust.
17188 (get_process_thread): Rename to ...
17189 (get_lwp_thread): ... this. Adjust.
17190 (struct process_info): Rename to ...
17191 (struct lwp_info): ... this.
17192 (all_processes): Rename to ...
17193 (all_lwps): ... this.
17194 * proc-service.c (ps_lgetregs): Adjust.
17195 * thread-db.c (thread_db_create_event, find_one_thread)
17196 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17198 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17200 * server.c (handle_query): Handle "qAttached".
17202 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17204 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17205 GPLv3, update license URL.
17207 2009-03-01 Doug Evans <dje@google.com>
17209 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17210 (server_h): Add gdb_signals.h.
17211 (signals.o): Update.
17212 * server.h (target_signal_from_host,target_signal_to_host_p)
17213 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17215 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17217 * remote-utils.c (getpkt): Also generate remote-debug
17218 information if noack_mode is set.
17220 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17222 * server.c (handle_query): Report qXfer:siginfo:read and
17223 qXfer:siginfo:write as supported and handle them.
17224 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17225 * linux-low.c (linux_xfer_siginfo): New.
17226 (linux_target_ops): Set it.
17228 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17230 * server.c (gdbserver_usage): Mention --remote-debug.
17231 (main): Accept '--remote-debug' switch.
17233 2009-01-18 Doug Evans <dje@google.com>
17235 * regcache.c (new_register_cache): No need to check result of xcalloc.
17236 * server.c (handle_search_memory): Back out calls to xmalloc,
17237 result is checked and error is returned to user upon failure.
17238 (handle_query): Ditto. Add more checks for result of malloc.
17239 (handle_v_cont): Check result of malloc, report error back to
17241 (handle_v_run): Ditto. Call freeargv.
17242 * server.h (freeargv): Declare.
17243 * utils.c (freeargv): New fn.
17245 2009-01-15 Doug Evans <dje@google.com>
17247 * gdbreplay.c (perror_with_name): Make arg const char *.
17248 * server.h (target_signal_to_name): Make return type const char *.
17249 * thread-db.c (thread_db_err_str): Make return type const char *.
17250 * utils.c (perror_with_name): Make arg const char *.
17252 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17254 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17255 when handling a EXIT_PROCESS_DEBUG_EVENT.
17257 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17259 * gdbreplay.c (gdbreplay_version): Update copyright year.
17260 * server.c (gdbserver_version): Likewise.
17262 2009-01-05 Doug Evans <dje@google.com>
17264 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17265 (handle_extended_wait): Improve comment.
17267 2008-12-13 Doug Evans <dje@google.com>
17269 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17270 * server.h (ATTR_MALLOC): New macro.
17271 (xmalloc,xcalloc,xstrdup): Declare.
17272 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17273 * inferiors.c: Ditto.
17274 * linux-low.c: Ditto.
17275 * mem-break.c: Ditto.
17276 * regcache.c: Ditto.
17277 * remote-utils.c: Ditto.
17280 * win32-low.c: Ditto.
17282 2008-12-12 Doug Evans <dje@google.com>
17284 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17285 in debugging printf.
17287 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17289 2008-12-09 Doug Evans <dje@google.com>
17291 * linux-low.h (struct process_info): Delete member tid, unused.
17292 * thread-db.c (find_one_thread): Update.
17293 (maybe_attach_thread): Update.
17295 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17297 * target.h (struct target_ops): Add qxfer_osdata member.
17298 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17300 (linux_qxfer_osdata): New functions.
17301 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17303 * server.c (handle_query): Handle "qXfer:osdata:read:".
17304 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17305 (buffer_xml_printf): New functions.
17306 * server.h (struct buffer): New.
17307 (buffer_grow_str, buffer_grow_str0): New macros.
17308 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17309 (buffer_xml_printf): Declare.
17311 2008-11-24 Doug Evans <dje@google.com>
17313 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17315 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17317 * server.c (handle_v_run): Always use the supplied argument list.
17319 2008-11-19 Bob Wilson <bob.wilson@acm.org>
17321 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17322 (xtensa_regmap_table): Add entry for scompare1.
17324 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17326 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17327 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17328 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17329 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17330 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17331 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17332 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17333 XML target descriptions.
17334 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17335 when inferior is running on an ISA 2.05 or later processor. Add
17336 special case to return offset for full 64-bit slot of FPSCR when
17339 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17341 * Makefile.in (SFILES, clean): Added sparc64 files.
17342 (reg-sparc64.o, reg-sparc64.c): New.
17343 * configure.srv (sparc*-*-linux*): New configuration.
17344 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17345 syscall arguments for SPARC.
17346 (regsets_store_inferior_registers): Likewise.
17347 * linux-sparc-low.c: New file.
17349 2008-10-21 Doug Evans <dje@google.com>
17351 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17352 (READLINE_DIR,READLINE_DEP): Delete.
17353 (INTERNAL_CFLAGS): Update.
17354 (LINTFLAGS): Update.
17356 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17358 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17359 whole argv from the last run, not just argv[0].
17361 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17363 * regcache.c (new_register_cache): Return NULL if the register
17364 cache size isn't known yet.
17365 (free_register_cache): Avoid dereferencing a NULL regcache.
17367 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17369 * configure.srv: Merge MIPS and MIPS64.
17371 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17373 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17375 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17377 * Makefile.in: Add required vsx dependencies.
17379 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17380 Declare init_registers_powerpc_vsx32l.
17381 Declare init_registers_powerpc_vsx64l.
17382 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17383 (ppc_arch_setup): Check for VSX in hwcap.
17384 (ppc_fill_vsxregset): New function.
17385 (ppc_store_vsxregset): New function.
17386 Add new VSX entry in regset_info target_regsets.
17388 * configure.srv: Add new VSX dependencies.
17390 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17392 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17393 (remote_open): Set or clear transport_is_reliable.
17394 (putpkt_binary): Don't expect acks in noack mode.
17395 (getpkt): Don't send ack/nac in noack mode.
17396 * server.c (handle_general_set): Handle QStartNoAckMode.
17397 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17399 (main): Reset noack_mode on every connection.
17400 * server.h (noack_mode): Declare.
17402 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17404 * Makefile.in (GDBREPLAY_OBS): New variable.
17405 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17407 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17408 Daniel Jacobowitz <dan@codesourcery.com>
17410 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17411 (usr_store_inferior_registers): Likewise.
17412 (regsets_store_inferior_registers): Likewise.
17414 2008-07-31 Rolf Jansen <rj@surtec.com>
17415 Pedro Alves <pedro@codesourcery.com>
17417 * configure.ac: Check for memmem declaration.
17418 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17419 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17420 (disable_packet_qfThreadInfo): Unconditionally compile.
17421 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17422 * configure, config.in: Regenerate.
17424 2008-07-28 Doug Kwan <dougkwan@google.com>
17426 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17427 (linux_write_memory): Remove declaration of errno.
17429 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17431 * linux-low.c (handle_extended_wait): Do not use "status"
17432 variable uninitialized.
17434 2008-07-07 Pedro Alves <pedro@codesourcery.com>
17436 * server.c (handle_v_attach): Inhibit reporting dll changes.
17438 2008-06-27 Pedro Alves <pedro@codesourcery.com>
17440 * remote-utils.c (prepare_resume_reply): If requested, don't
17441 output "thread:TID" in the T stop reply.
17443 * server.c (disable_packet_vCont, disable_packet_Tthread)
17444 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17445 (handle_query): If requested, disable support for qC, qfThreadInfo
17447 (handle_v_requests): If requested, disable support for vCont.
17448 (gdbserver_show_disableable): New.
17449 (main): Handle --disable-packet and --disable-packet=LIST.
17451 * server.h (disable_packet_vCont, disable_packet_Tthread)
17452 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17454 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17456 * server.c (gdbserver_usage): Mention --version.
17458 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17460 * Makefile.in (gdbreplay.o): New rule.
17462 2008-06-06 Joseph Myers <joseph@codesourcery.com>
17464 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17465 message, not gdbserver.
17467 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
17468 Nathan Sidwell <nathan@codesourcery.com>
17469 Joseph Myers <joseph@codesourcery.com>
17471 * acinclude.m4: Include ../../config/acx.m4.
17472 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17473 * configure, config.in: Regenerate.
17474 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17475 * server.c (gdbserver_version): Print PKGVERSION.
17476 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17477 (main): Adjust gdbserver_usage calls.
17478 * gdbreplay.c (version, host_name): Add declarations.
17479 (gdbreplay_version, gdbreplay_usage): New.
17480 (main): Accept --version and --help options.
17482 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17484 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17485 (arm_breakpoint_at): Handle Thumb.
17486 (the_low_target): Add comment.
17488 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17490 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17492 2008-05-09 Doug Evans <dje@google.com>
17494 * server.h (decode_search_memory_packet): Declare.
17495 * remote-utils.c (decode_search_memory_packet): New fn.
17496 * server.c (handle_search_memory_1): New fn.
17497 (handle_search_memory): New fn.
17498 (handle_query): Process qSearch:memory packets.
17500 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17502 * regcache.c (registers_length): Remove.
17503 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17504 full register packet.
17505 * regcache.h (registers_length): Remove prototype.
17506 * server.h (PBUFSIZ): Define to 16384.
17508 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17510 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17511 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17512 powerpc-64l.o, and powerpc-altivec64l.o.
17513 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17514 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17515 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17516 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17517 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17520 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17521 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17522 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17523 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17524 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17525 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17526 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17527 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17528 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17529 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17532 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17533 (init_registers_powerpc_32l): ... this new prototype.
17534 (init_registers_powerpc_32): Remove, replace by ...
17535 (init_registers_powerpc_altivec32l): ... this new prototype.
17536 (init_registers_powerpc_e500): Remove, replace by ...
17537 (init_registers_powerpc_e500l): ... this new prototype.
17538 (init_registers_ppc64): Remove, replace by ...
17539 (init_registers_powerpc_64l): ... this new prototype.
17540 (init_registers_powerpc_64): Remove, replace by ...
17541 (init_registers_powerpc_altivec64l): ... this new prototype.
17542 (ppc_num_regs): Set to 73.
17543 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17544 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17545 (ppc_cannot_store_register): Handle orig_r3 and trap.
17546 (ppc_arch_setup): Update init_registers_... calls.
17547 (ppc_fill_gregset): Handle orig_r3 and trap.
17549 * inferiors.c (clear_inferiors): Reset current_inferior.
17551 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17553 * acinclude.m4: Add override.m4.
17554 * configure: Regenerate.
17556 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17558 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17559 initial call to init_register_ppc64.
17561 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17563 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17564 single powerpc*-*-linux* case.
17565 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17567 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17569 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
17570 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
17572 * linux-ppc-low.c: Include <elf.h>.
17573 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17574 (ppc_hwcap): New global variable.
17575 (ppc_regmap): Remove __SPE__ #ifdef sections.
17576 (ppc_regmap_e500): New global variable.
17577 (ppc_cannot_store_register): Update __SPE__ special case.
17578 (ppc_get_hwcap): New function.
17579 (ppc_arch_setup): Use it to determine whether inferior supports
17580 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17581 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17582 Do not access registers if target does not support AltiVec.
17583 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17584 Do not access registers if target does not support SPE.
17585 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17587 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17589 * linux-low.c (disabled_regsets, num_regsets): New.
17590 (use_regsets_p): Delete.
17591 (linux_wait_for_process): Clear disabled_regsets.
17592 (regsets_fetch_inferior_registers): Check and set it.
17593 (regsets_store_inferior_registers): Likewise.
17594 (linux_fetch_registers, linux_store_registers): Do not use
17596 (initialize_low): Allocate disabled_regsets.
17598 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17600 * Makefile.in (LIBOBJS): New.
17601 (OBS): Use LIBOBJS.
17602 (memmem.o): New rule.
17603 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17604 * configure: Regenerated.
17606 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17608 * server.c (handle_query): Never return "unsupported" for
17609 qXfer:features:read queries.
17611 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17613 * server.c (get_features_xml): Fix inverted condition.
17614 (handle_query): Always support qXfer:feature:read.
17616 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17618 * server.c (wrapper_argv): New.
17619 (start_inferior): Handle wrapper_argv. If set, expect an extra
17621 (gdbserver_usage): Document --wrapper.
17622 (main): Parse --wrapper.
17624 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17626 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17627 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17628 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17629 (ppc_set_pc): Likewise.
17630 (ppc_arch_setup): New function.
17631 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17632 of collect_register.
17633 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
17635 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17637 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17638 instead of linux-ppc64-low.o.
17639 * linux-ppc64-low.c: Remove file.
17640 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17641 (linux-ppc64-low.o): Remove rule.
17643 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17644 (init_registers_powerpc_64): Likewise.
17645 (ppc_regmap): Conditionally define depending on __powerpc64__.
17646 (ppc_cannot_store_register): Do not special-case "fpscr" when
17647 compiled on __powerpc64__.
17648 (ppc_collect_ptrace_register): New function.
17649 (ppc_supply_ptrace_register): New function.
17650 (ppc_breakpoint): Change type to "unsigned int".
17651 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17652 (the_low_target): Conditionally provide initializers for the
17653 arch_setup member depending on __powerpc64__. Install
17654 collect_ptrace_register and supply_ptrace_register members.
17656 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17658 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17659 * server.c (gdbserver_xmltarget): Define.
17660 (get_features_xml): Use it to replace "target.xml" and arch_string.
17662 * configure.srv: Remove srv_xmltarget. Add XML files that were
17663 mentioned there to srv_xmlfiles instead. Remove conditional tests
17664 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17665 srv_xmlfiles and srv_regobj to include all possible choices.
17666 * configure.ac (srv_xmltarget): Remove.
17667 (srv_xmlfiles): Do not add "target.xml".
17668 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17669 checks for supplementary target information.
17670 * configure: Regenerate.
17671 * Makefile.in (XML_TARGET): Remove.
17672 (target.xml): Remove rule.
17673 (clean): Do not clean up target.xml.
17674 (.PRECIOUS): Do not mention target.xml.
17676 * target.h (struct target_ops): Remove arch_string member.
17677 * linux-low.c (linux_arch_string): Remove.
17678 (linux_target_ops): Remove arch_string initializer.
17679 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17680 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17681 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17682 * spu-low.c (spu_arch_string): Remove.
17683 (spu_target_ops): Remove arch_string initializer.
17684 * win32-low.c (win32_arch_string): Remove.
17685 (win32_target_ops): Remove arch_string initializer.
17686 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17687 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17688 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17690 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17692 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17693 by collect_ptrace_register and supply_ptrace_register hooks.
17694 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17695 instead of checking for the_low_target.left_pad_xfer.
17696 (usr_store_inferior_registers): Use collect_ptrace_register callback
17697 instead of checking for the_low_target.left_pad_xfer.
17699 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17700 (s390_supply_ptrace_register): Likewise.
17701 (s390_fill_gregset): Call s390_collect_ptrace_register.
17702 (the_low_target): Update.
17704 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17705 (ppc_supply_ptrace_register): Likewise.
17706 (the_low_target): Update.
17708 * linux-i386-low.c (the_low_target): Update.
17709 * linux-x86-64-low.c (the_low_target): Update.
17711 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17713 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17714 reg-s390.o and reg-s390x.o.
17716 * linux-low.c (new_inferior): New global variable.
17717 (linux_create_inferior, linux_attach): Set it.
17718 (linux_wait_for_process): Call the_low_target.arch_setup after the
17719 target has stopped for the first time.
17720 (initialize_low): Do not call the_low_target.arch_setup.
17722 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17723 (s390_set_pc): Likewise.
17724 (s390_arch_setup): New function.
17725 (the_low_target): Use s390_arch_setup as arch_setup routine.
17727 * regcache.c (realloc_register_cache): New function.
17728 (set_register_cache): Call it for each existing regcache.
17730 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17732 * server.h (init_registers): Remove prototype.
17734 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17735 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17736 instead of init_registers ().
17737 * linux-arm-low.c (init_registers_arm): Add prototype.
17738 (init_registers_arm_with_iwmmxt): Likewise.
17739 (the_low_target): Add initializer for arch_setup field.
17740 * linux-cris-low.c (init_registers_cris): Add prototype.
17741 (the_low_target): Add initializer for arch_setup field.
17742 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17743 (the_low_target): Add initializer for arch_setup field.
17744 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17745 (the_low_target): Add initializer for arch_setup field.
17746 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17747 (the_low_target): Add initializer for arch_setup field.
17748 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17749 (the_low_target): Add initializer for arch_setup field.
17750 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17751 (the_low_target): Add initializer for arch_setup field.
17752 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17753 (init_registers_mips64_linux): Likewise.
17754 (the_low_target): Add initializer for arch_setup field.
17755 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17756 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17757 (the_low_target): Add initializer for arch_setup field.
17758 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17759 (init_registers_powerpc_64): Likewise.
17760 (the_low_target): Add initializer for arch_setup field.
17761 * linux-s390-low.c (init_registers_s390): Add prototype.
17762 (init_registers_s390x): Likewise.
17763 (the_low_target): Add initializer for arch_setup field.
17764 * linux-sh-low.c (init_registers_sh): Add prototype.
17765 (the_low_target): Add initializer for arch_setup field.
17766 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17767 (the_low_target): Add initializer for arch_setup field.
17768 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17769 (the_low_target): Add initializer for arch_setup field.
17771 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17772 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17773 instead of init_registers ().
17774 * win32-arm-low.c (init_registers_arm): Add prototype.
17775 (the_low_target): Add initializer for arch_setup field.
17776 * win32-i386-low.c (init_registers_i386): Add prototype.
17777 (the_low_target): Add initializer for arch_setup field.
17779 * spu-low.c (init_registers_spu): Add prototype.
17780 (initialize_low): Call initialie_registers_spu () instead of
17781 initialize_registers ().
17783 2008-02-19 Pedro Alves <pedro@codesourcery.com>
17785 * server.c (handle_v_requests): When handling the vRun and vAttach
17786 packets, if already debugging a process, don't kill it. Return an
17789 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17791 * server.c (handle_query): Correct length check.
17793 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17795 * win32-low.c (do_initial_child_stuff): Add process handle
17796 parameter. Set current_process_handle and current_process_id from the
17797 parameters. Clear globals.
17798 (win32_create_inferior): Don't set current_process_handle and
17799 current_process_id here. Instead pass them on the call to
17800 do_initial_child_stuff.
17801 (win32_attach): Likewise.
17802 (win32_clear_inferiors): New.
17803 (win32_kill): Don't close the current process handle or the
17804 current thread handle here. Instead call win32_clear_inferiors.
17805 (win32_detach): Don't open a new handle to the process. Call
17806 win32_clear_inferiors.
17807 (win32_join): Don't rely on current_process_handle; open a new
17808 handle using the process id.
17809 (win32_wait): Call win32_clear_inferiors when the inferior process
17812 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17814 * server.c (monitor_show_help): Add "exit".
17816 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17818 * Makefile.in (SFILES): Add linux-xtensa-low.c.
17819 (clean): Add reg-xtensa.c.
17820 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
17821 * configure.srv (xtensa*-*-linux*) New target.
17822 * linux-xtensa-low.c: New.
17823 * xtensa-xtregs.c: New.
17825 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17827 * hostio.c: Don't include errno.h.
17828 (errno_to_fileio_errno): Move to hostio-errno.
17829 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17830 error number outputting to the target->hostio_last_error callback.
17831 (hostio_packet_error): Use FILEIO_EINVAL directly.
17832 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17833 calls to hostio_error.
17834 * hostio-errno.c: New.
17835 * server.h (hostio_last_error_from_errno): Declare.
17836 * target.h (target_ops): Add hostio_last_error member.
17837 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17838 as hostio_last_error handler.
17839 * spu-low.c (spu_target_ops): Likewise.
17840 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17841 (wince_hostio_last_error): New functions.
17842 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17843 as hostio_last_error handler.
17844 (win32_target_ops) [!_WIN32_WCE]: Register
17845 hostio_last_error_from_errno as hostio_last_error handler.
17846 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17847 (hostio-errno.o): New rule.
17848 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17849 * configure.srv (srv_hostio_err_objs): New variable. Default to
17851 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17852 * configure: Regenerate.
17854 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17856 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17857 (linux_kill, linux_detach): Clean up the process list.
17858 * remote-utils.c (remote_open): Improve port number parsing.
17859 (putpkt_binary, input_interrupt): Only send interrupts if the target
17861 * server.c (extended_protocol): Make static.
17862 (attached): Define earlier.
17863 (exit_requested, response_needed, program_argv): New variables.
17864 (target_running): New.
17865 (start_inferior): Clear attached here.
17866 (attach_inferior): Set attached here.
17867 (require_running): Define.
17868 (handle_query): Use require_running and target_running. Implement
17870 (handle_v_attach, handle_v_run): New.
17871 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17872 (gdbserver_usage): Update.
17873 (main): Redo argument parsing. Handle --debug and --multi. Handle
17874 --attach along with other options or after the port. Save
17875 program_argv. Support no initial program. Resynchronize
17876 communication with GDB after an error. Handle "monitor exit".
17877 Use require_running and target_running. Always allow the extended
17878 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17879 restart in extended mode.
17880 * README: Refer to the GDB manual. Update --attach usage.
17882 2007-12-20 Andreas Schwab <schwab@suse.de>
17884 * linux-low.c (STACK_SIZE): Define.
17885 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17886 (linux_test_for_tracefork): Likewise.
17888 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17890 * linux-low.c (linux_wait_for_event): Update messages. Do not
17891 reinsert auto-delete breakpoints.
17892 * mem-break.c (struct breakpoint): Change return type of handler to
17894 (set_breakpoint_at): Update handler type.
17895 (reinsert_breakpoint_handler): Return 1 instead of calling
17897 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17899 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17900 * mem-break.h (set_breakpoint_at): Update handler type.
17901 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17902 * win32-low.c (auto_delete_breakpoint): New.
17903 (get_child_debug_event): Use it.
17905 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17907 * configure.ac: Check for pread and pwrite.
17908 * hostio.c (handle_pread): Fall back to lseek and read.
17909 (handle_pwrite): Fall back to lseek and write.
17910 * config.in, configure: Regenerated.
17912 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17914 * server.c (myresume): Add own_buf argument.
17915 (main): Update calls.
17917 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17919 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17920 * remote-utils.c (remote_open): Do not call disable_async_io.
17921 (block_async_io): Delete.
17922 (unblock_async_io): Make static.
17923 (initialize_async_io): New.
17924 * server.c (handle_v_cont): Handle async I/O here.
17925 (myresume): Likewise. Move other common resume tasks here...
17926 (main): ... from here. Call initialize_async_io. Disable async
17927 I/O before the main loop.
17928 * server.h (initialize_async_io): Declare.
17929 (block_async_io, unblock_async_io): Delete prototypes.
17930 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17932 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17934 * remote-utils.c (readchar): Allow binary data in received messages.
17936 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17938 * win32-low.c (attaching): New global.
17939 (win32_create_inferior): Clear the `attaching' global.
17940 (win32_attach): Set the `attaching' global.
17941 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17942 attaching. Only set a breakpoint at the entry point if not
17945 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17947 * server.c (main): Don't report dll events on the initial
17948 connection on attaches.
17950 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17952 * server.c (main): Relax numerical bases supported for the pid of
17953 the --attach command line argument.
17955 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17957 * win32-low.c (win32_attach): Call OpenProcess before
17958 DebugActiveProcess, not after. Add last error output to error
17961 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17963 * win32-low.c (win32_get_thread_context)
17964 (win32_set_thread_context): New functions.
17965 (thread_rec): Use win32_get_thread_context.
17966 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17967 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17970 2007-12-03 Leo Zayas
17971 Pedro Alves <pedro_alves@portugalmail.pt>
17973 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17975 (child_add_thread): Minor cleanup.
17976 (child_continue): Resume artificially suspended threads before
17977 calling ContinueDebugEvent.
17978 (suspend_one_thread): New.
17979 (fake_breakpoint_event): New.
17980 (get_child_debug_event): Change return type to int. Check here if
17981 gdb sent an interrupt request. If a soft interrupt was requested,
17982 fake a breakpoint event. Return 0 if there is no event to handle,
17984 (win32_wait): Don't check here if gdb sent an interrupt request.
17985 Ensure there is a valid event to handle.
17986 (win32_request_interrupt): Add soft interruption method as last
17989 2007-12-03 Leo Zayas
17990 Pedro Alves <pedro_alves@portugalmail.pt>
17992 * win32-low.h (win32_thread_info): Add descriptions to the
17993 structure members. Replace `suspend_count' counter by a
17995 * win32-low.c (thread_rec): Update condition of when to get the
17996 context from the inferior. Rely on ContextFlags being set if it
17997 has already been retrieved. Only suspend the inferior thread if
17998 we haven't already. Warn if that fails.
17999 (continue_one_thread): s/suspend_count/suspended/. Only call
18000 ResumeThread once. Warn if that fails.
18002 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18004 * win32-low.c (win32_wait): Don't read from the inferior when it
18005 has already exited.
18007 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18009 * Makefile.in (win32_low_h): New variable.
18010 (win32-low.o): Add dependency on $(win32_low_h).
18011 (win32-arm-low.o, win32-i386-low.o): New rules.
18013 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18015 * hostio.c: Correct copyright year.
18017 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18019 * Makefile.in (OBS): Add hostio.o.
18020 (hostio.o): New rule.
18021 * server.h (handle_vFile): Declare.
18022 * hostio.c: New file.
18023 * server.c (handle_v_requests): Take packet_len and new_packet_len
18024 for binary packets. Call handle_vFile.
18025 (main): Update call to handle_v_requests.
18027 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18029 * linux-low.c: Include <sched.h>.
18031 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18033 * linux-low.c (linux_tracefork_grandchild): New.
18034 (linux_tracefork_child): Use clone.
18035 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18037 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18039 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18041 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18043 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18045 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18047 * inferiors.c (change_inferior_id): Delete.
18048 (add_pid_to_list, pull_pid_from_list): New.
18049 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18050 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18051 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18052 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18053 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18054 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18055 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18056 (using_threads): Always set to 1.
18057 (handle_extended_wait): New.
18058 (add_process): Do not set TID.
18059 (linux_create_inferior): Set must_set_ptrace_flags.
18060 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18061 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18062 (linux_thread_alive): Rename TID argument to LWPID.
18063 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18064 (linux_wait_for_event): Do not use TID or check using_threads. Update
18065 call to dead_thread_notify. Call handle_extended_wait.
18066 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18067 (send_sigstop): Delete sigstop_sent.
18068 (wait_for_sigstop): Avoid TID.
18069 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18070 (linux_test_for_tracefork): New.
18071 (linux_lookup_signals): Use thread_db_active and
18072 linux_supports_tracefork_flag.
18073 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18074 * linux-low.h (get_process_thread): Avoid TID.
18075 (struct process_ifo): Move thread_known and tid to the end. Remove
18077 (linux_attach_lwp, thread_db_init): Update prototypes.
18078 * server.h (change_inferior_id): Delete prototype.
18079 (add_pid_to_list, pull_pid_from_list): New prototypes.
18080 * thread-db.c (thread_db_use_events): New.
18081 (find_first_thread): Rename to...
18082 (find_one_thread): ...this. Update callers and messages. Do not
18083 call fatal. Check thread_db_use_events. Do not call
18084 change_inferior_id or new_thread_notify.
18085 (maybe_attach_thread): Update. Do not call new_thread_notify.
18086 (thread_db_init): Set thread_db_use_events. Check use_events.
18087 * utils.c (fatal, warning): Correct message prefix.
18089 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18091 * Makefile.in (clean): Remove new files.
18092 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18093 (powerpc-64.o, powerpc-64.c): New rules.
18094 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18095 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18097 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18099 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18100 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18101 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18102 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18103 (target_regsets): Add AltiVec and SPE register sets.
18104 * configure.ac: Check for AltiVec and SPE.
18105 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18106 (ppc_fill_vrregset, ppc_store_vrregset): New.
18107 (target_regsets): Add AltiVec register set.
18108 * configure: Regenerated.
18110 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18112 * linux-low.c (O_LARGEFILE): Define.
18113 (linux_read_memory): Use /proc/PID/mem.
18114 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18115 * configure, config.in: Regenerated.
18117 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18119 * linux-low.c (linux_wait_for_event): Do not pass signals while
18122 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18124 * win32-low.c (create_process): New.
18125 (win32_create_inferior): Use create_process instead of
18126 CreateProcess. If create_process failed retry appending an ".exe"
18127 suffix. Store the GetLastError result immediatelly after
18128 create_process calls and use it on the call to error.
18130 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18132 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18134 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18136 * configure.ac: Switch license to GPLv3.
18138 2007-08-01 Michael Snyder <msnyder@access-company.com>
18140 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18142 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18144 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18146 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18147 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18148 CloseToolhelp32Snapshot.
18149 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18150 CloseToolhelp32Snapshot.
18152 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18154 * server.c (main): Check for inferior exit before main loop.
18156 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18158 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18159 instead of on tmp_desc.
18161 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18162 Daniel Jacobowitz <dan@codesourcery.com>
18164 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18165 (add_thread): Minor cleanups.
18166 (clear_inferiors): Move lower in the file. Clear the DLL
18168 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18169 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18170 (xml_escape_text): New.
18171 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18173 (handle_v_cont): Report errors.
18174 (gdbserver_version): Update.
18175 (main): Correct size of own_buf. Do not report initial DLL events.
18176 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18177 (unloaded_dll, xml_escape_text): New.
18178 * win32-low.c (enum target_waitkind): Update comments.
18179 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18180 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18181 (win32_EnumProcessModules, win32_GetModuleInformation)
18182 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18183 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18184 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18185 (win32_Module32First, win32_Module32Next, load_toolhelp)
18186 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18187 (get_child_debug_event): Handle DLL events.
18188 (win32_wait): Likewise.
18190 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18192 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18193 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18195 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18197 * win32-low.c (handle_output_debug_string): Ignore event if not
18200 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18202 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18204 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18206 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18208 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18210 * inferiors.c (change_inferior_id): Add comment.
18211 * linux-low.c (check_removed_breakpoint): Add an early
18212 prototype. Improve debug output.
18213 (linux_attach): Doc update.
18214 (linux_detach_one_process, linux_detach): Clean up before releasing
18216 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18217 * linux-low.h (struct process_info): Doc improvement.
18218 * mem-break.c (delete_all_breakpoints): New.
18219 * mem-break.h (delete_all_breakpoints): New prototype.
18220 * thread-db.c (find_first_thread): New.
18221 (thread_db_create_event): Call it instead of
18222 thread_db_find_new_threads. Clean up unused variables.
18223 (maybe_attach_thread): Remove first thread handling.
18224 (thread_db_find_new_threads): Use find_first_thread.
18225 (thread_db_get_tls_address): Likewise.
18227 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18229 * thread-db.c (thread_db_find_new_threads): Add prototype.
18230 (thread_db_create_event): Check for the main thread before adding
18232 (maybe_attach_thread): Only enable event reporting if TID == 0.
18233 (thread_db_get_tls_address): Check for new threads.
18235 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18237 * linux-low.c (linux_create_inferior): Try execv before execvp.
18238 * spu-low.c (spu_create_inferior): Likewise.
18240 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18242 * linux-low.c (linux_create_inferior): Change execv to execvp.
18243 * spu-low.c (spu_create_inferior): Likewies.
18245 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18247 * Makefile.in (clean): Clean new files instead of deleted ones.
18248 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18249 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18251 * configure.srv: Specify XML files and new regformats for MIPS and
18253 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18254 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18255 an entry for the restart register.
18256 (mips_cannot_fetch_register, mips_cannot_store_register)
18257 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18258 register names to match the XML descriptions.
18259 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18260 restart register instead of $0.
18262 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18263 Markus Deuling <deuling@de.ibm.com>
18265 * remote-utils.c (decode_xfer_write): New function.
18266 * server.h (decode_xfer_write): Add prototype.
18267 * server.c (handle_query): Add PACKET_LEN argument. Support
18268 qXfer:spu:read and qXfer:spu:write packets.
18269 (main): Pass packet_len to handle_query.
18270 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18271 * target.h (target_ops): Add qxfer_spu.
18273 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18275 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18276 accessing non-seekable spufs files.
18278 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18280 * server.c (handle_query): Add reply for qC packet.
18282 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18283 Leo Zayas <lerele@champenstudios@com>
18285 * server.h (check_remote_input_interrupt_request): New function.
18286 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18287 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18288 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18289 (check_remote_input_interrupt_request): New function.
18290 * server.h (check_remote_input_interrupt_request): Declare.
18291 * win32-low.c (winapi_DebugBreakProcess,
18292 winapi_GenerateConsoleCtrlEvent): New typedefs.
18293 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18295 (win32_wait): Check for remote interrupt request
18296 with check_remote_input_interrupt_request.
18297 (win32_request_interrupt): New function.
18298 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18300 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18302 * win32-low.c (debug_registers_changed,
18303 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18304 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18305 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18306 (thread_rec): Get context using the low target.
18307 (child_add_thread): Call thread_added on the low target,
18308 which does the same thing.
18310 (do_initial_child_stuff): Remove debug registers references.
18311 Set context using the low target. Resume threads after
18312 setting the contexts.
18313 (child_continue): Remove dead variable. Remove debug
18314 registers references.
18315 (child_fetch_inferior_registers): Go through the low target.
18316 (do_child_store_inferior_registers): Remove.
18317 (child_store_inferior_registers): Go through the low target.
18318 (win32_resume): Remove debug registers references.
18319 Set context using the low target.
18320 (handle_exception): Change return type to void. Don't record
18321 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18322 first chance exception.
18323 (get_child_debug_event): Change return type to void. Remove
18324 goto loop. Always return after waiting for debug event.
18325 (win32_wait): Convert to switch statement. Handle spurious
18328 * win32-i386-low.c (debug_registers_changed,
18329 debug_registers_used): New.
18330 (initial_stuff): Rename to ...
18331 (i386_initial_stuff): ... this. Clear debug registers
18333 (store_debug_registers): Delete.
18334 (i386_get_thread_context): New.
18335 (load_debug_registers): Delete.
18336 (i386_set_thread_context): New.
18337 (i386_thread_added): New.
18338 (single_step): Rename to ...
18339 (i386_single_step): ... this.
18340 (do_fetch_inferior_registers): Rename to ...
18341 (i386_fetch_inferior_register): ... this.
18342 (i386_store_inferior_register): New.
18343 (the_low_target): Adapt to new interface.
18345 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18346 (arm_get_thread_context): New.
18347 (arm_set_thread_context): New.
18349 (do_fetch_inferior_registers): Rename to ...
18350 (arm_fetch_inferior_register): ... this.
18351 (arm_store_inferior_register): New.
18352 (arm_wince_breakpoint): Reimplement as unsigned long.
18353 (arm_wince_breakpoint_len): Define.
18354 (the_low_target): Adapt to new interface.
18356 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18357 load_debug_registers. Add get_thread_context, set_thread_context,
18358 thread_added and store_inferior_register. Rename
18359 fetch_inferior_registers to fetch_inferior_register.
18360 (regptr): Remove declaration.
18362 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18364 * linux-low.c (linux_detach): Change return type to int. Return 0.
18365 * spu-low.c (spu_detach): Likewise.
18367 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18369 * target.h (target_ops): Change return type of detach to int.
18371 (join_inferior): New.
18372 * server.c (main): Don't skip detach support on mingw32.
18373 If the inferior doesn't support detaching return error.
18374 Call join_inferior instead of using waitpid.
18375 * linux-low.c (linux_join): New.
18376 (linux_target_op): Add linux_join.
18377 * spu-low.c (spu_join): New.
18378 (spu_target_ops): Add spu_join.
18379 * win32-low.c (win32_detach): Adapt to new interface.
18380 Reopen current_process_handle before detaching. Issue a child
18381 resume before detaching.
18383 (win32_target_op): Add win32_join.
18385 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18387 * win32-low.c (win32-attach): Fix return value.
18388 * target.h (target_ops): Describe ATTACH return values.
18390 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18392 * win32-low.c (GETPROCADDRESS): Define.
18393 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18394 (winapi_DebugSetProcessKillOnExit): Likewise.
18395 (win32_create_inferior): Force usage of ansi CreateProcessA.
18396 (win32_attach): Use GETPROCADDRESS.
18397 (win32_detach): Likewise.
18399 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18401 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18403 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18405 * win32-low.c: Commit leftover changes from 2007-03-29.
18407 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18409 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18410 fields short instead of int. Add explicit padding.
18411 (i387_cache_to_fsave): Remove unnecessary casts.
18412 (i387_fsave_to_cache): Doc fix.
18413 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18415 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18417 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18418 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18420 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18422 * configure.srv (arm*-*-mingw32ce*): Move near the other
18425 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18427 * configure.ac: Add errno checking.
18428 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18429 sys/file.h and malloc.h.
18430 (AC_CHECK_DECLS): Add perror.
18431 (srv_mingwce): Handle.
18432 * configure.srv (i[34567]86-*-cygwin*): Add
18433 win32-i386-low.o to srv_tgtobj.
18434 (i[34567]86-*-mingw*): Likewise.
18435 (arm*-*-mingw32ce*): Add case.
18436 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18437 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18438 [__MINGW32CE__] (strerror): New function.
18439 [__MINGW32CE__] (errno): Define to GetLastError.
18440 [__MINGW32CE__] (COUNTOF): New macro.
18441 (remote_open): Remove extra close call.
18442 * mem-break.c (delete_breakpoint_at): New function.
18443 * mem-break.h (delete_breakpoint_at): Declare.
18444 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18445 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18446 [USE_WIN32API] (read, write): Add char* casts.
18447 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18448 * server.h: Include wincecompat.h on Windows CE.
18449 [HAVE_ERRNO_H]: Check.
18450 (perror): Declare if not declared.
18451 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18452 (perror_with_name): Remove errno declaration.
18453 * wincecompat.h: New.
18454 * wincecompat.c: New.
18455 * win32-low.h: New.
18456 * win32-arm-low.c: New.
18457 * win32-i386-low.c: New.
18458 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18459 (OUTMSG2): Make it safe.
18461 (COUNTOF): New macro.
18462 (NUM_REGS): Get it from the low target.
18463 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18464 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18465 (thread_rec): Let low target handle debug registers.
18466 (child_add_thread): Likewise.
18467 (child_init_thread_list): Likewise.
18468 (continue_one_thread): Likewise.
18470 (do_child_fetch_inferior_registers): Move to ...
18471 * win32-i386-low.c: ... here, and rename to ...
18472 (do_fetch_inferior_registers): ... this.
18473 * win32-low.c (child_fetch_inferior_registers):
18474 Go through the low target.
18475 (do_child_store_inferior_registers): Use regptr.
18476 (strwinerror): New function.
18477 (win32_create_inferior): Handle Windows CE.
18478 Use strwinerror instead of strerror on Windows error
18479 codes. Add program to the error output.
18480 Don't close the main thread handle on Windows CE.
18481 (win32_attach): Use coredll.dll on Windows CE.
18482 (win32_kill): Close current process and current
18484 (win32_detach): Use coredll.dll on Windows CE.
18485 (win32_resume): Let low target handle debug registers, and
18487 (handle_exception): Add/Remove initial breakpoint. Avoid
18488 non-existant WSTOPSIG on Windows CE.
18489 (win32_read_inferior_memory): Cast to remove warning.
18490 (win32_arch_string): Go through the low target.
18491 (initialize_low): Call set_breakpoint_data with the low
18492 target's breakpoint.
18493 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18494 FOP_REGNUM, mappings): Move to ...
18495 * win32-i386-low.c: ... here.
18496 * win32-low.c (win32_thread_info): Move to ...
18497 * win32-low.h: ... here.
18498 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18499 win32-arm-low.c and wincecompat.c.
18500 (all:): Add $EXEEXT.
18501 (install-only:): Likewise.
18502 (gdbserver:): Likewise.
18503 (gdbreplay:): Likewise.
18504 * config.in: Regenerate.
18505 * configure: Regenerate.
18507 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18509 * win32-low.c: Rename typedef thread_info to
18510 win32_thread_info throughout.
18512 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18514 * win32-i386-low.c: Rename to ...
18515 * win32-low.c: ... this.
18516 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18517 * Makefile.in: Likewise.
18519 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18521 * remote-utils.c (monitor_output): Constify msg parameter.
18522 * server.h (monitor_output): Likewise.
18523 * win32-i386-low.c (handle_output_debug_string): New.
18524 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18525 handle_output_debug_string.
18526 (get_child_debug_event): Likewise.
18528 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18530 * server.c (main): Correct strtoul check.
18532 2007-03-27 Jon Ringle <jon@ringle.org>
18534 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18536 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18538 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18540 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18542 * terminal.h: Check HAVE_SGTTY_H.
18544 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
18546 * remote-utils.c (remote_open): Print out the assigned port number.
18548 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18550 * remote-utils.c (monitor_output): New function.
18551 * server.c (debug_threads): Define here.
18552 (monitor_show_help): New function.
18553 (handle_query): Handle qRcmd.
18554 (main): Do not handle 'd' packet.
18555 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18556 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18559 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18561 * Makefile.in (EXEEXT): New.
18562 (clean): Use $(EXEEXT).
18564 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18566 * target.h (target_ops): Rename send_signal to request_interrupt,
18567 and remove enum target_signal parameter.
18568 * linux-low.c (linux_request_interrupt): Rename from
18569 linux_send_signal, and always send SIGINT.
18570 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18571 and always send SIGINT.
18572 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18574 (input_interrupt): Likewise.
18576 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18578 * server.c (get_features_xml): Check if target implemented
18580 * win32-i386-low.c (win32_arch_string): New.
18581 (win32_target_ops): Add win32_arch_string as arch_string member.
18583 2007-02-22 Markus Deuling <deuling@de.ibm.com>
18585 * spu-low.c (spu_arch_string): New.
18586 (spu_target_ops): Add spu_arch_string.
18588 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18590 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18591 * configure.ac: Do not check for terminal.h.
18592 * configure, config.in: Regenerated.
18594 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18596 * Makefile.in (OBS): Add $(XML_BUILTIN).
18597 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18599 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18600 (arm-with-iwmmxt.c): New.
18601 * config.in, configure: Regenerate.
18602 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18603 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18604 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18605 (arm*-*-linux*): Add iWMMXt and regset support.
18606 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18607 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18608 (arm_store_wmmxregset, target_regsets): New.
18609 * server.c (get_features_xml): Take annex argument. Check builtin
18611 (handle_query): Handle multiple annexes.
18613 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18615 * remote-utils.c [USE_WIN32API] (read, write): Define.
18616 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18619 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18621 * linux-i386-low.c (the_low_target): Set arch_string.
18622 * linux-x86-64-low.c (the_low_target): Likewise.
18623 * linux-low.c (linux_arch_string): New.
18624 (linux_target_ops): Add it.
18625 * linux-low.h (struct linux_target_ops): Add arch_string.
18626 * server.c (write_qxfer_response): Use const void * for DATA.
18627 (get_features_xml): New.
18628 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18629 * target.h (struct target_ops): Add arch_string method.
18631 2007-01-03 Denis Pilat <denis.pilat@st.com>
18632 Daniel Jacobowitz <dan@codesourcery.com>
18634 * linux-low.c (linux_kill): Handle being called with no threads.
18635 * win32-i386-low.c (win32_kill): Likewise.
18636 (get_child_debug_event): Clear current_process_handle.
18638 2006-12-30 Denis PILAT <denis.pilat@st.com>
18639 Daniel Jacobowitz <dan@codesourcery.com>
18641 * remote-utils.c (remote_open): Check the type of specified
18642 serial port devices before opening them.
18643 * server.c (main): Kill the inferior if an error occurs during
18644 the first remote_open.
18646 2006-12-05 Markus Deuling <deuling@de.ibm.com>
18648 * README: Update supported targets.
18650 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18652 * Makefile.in (clean): Remove reg-mips64.c.
18653 (reg-mips64.c, reg-mips64.o): New rules.
18654 * configure.srv: Handle mips64. Include regset support for mips.
18655 * linux-mips-low.c (union mips_register): New.
18656 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18657 (mips_breakpoint, mips_breakpoint_at): Use int.
18658 (mips_collect_register, mips_supply_register)
18659 (mips_collect_register_32bit, mips_supply_register_32bit)
18660 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18661 (mips_store_fpregset, target_regsets): New.
18662 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18664 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18666 * configure.srv: Add target "spu*-*-*".
18667 * Makefile.in (clean): Remove reg-spu.c.
18668 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18669 * spu-low.c: New file.
18671 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18673 * configure.ac: Correct td_thr_tls_get_addr test.
18674 * configure: Regenerated.
18676 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18678 * linux-low.c (linux_wait_for_event): Reformat. Use the
18679 pass_signals array.
18680 * remote-utils.c (decode_address_to_semicolon): New.
18681 * server.c (pass_signals, handle_general_set): New.
18682 (handle_query): Mention QPassSignals for qSupported.
18683 (main): Call handle_general_set.
18684 * server.h (pass_signals, decode_address_to_semicolon): New.
18686 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18688 * server.c (handle_query): Correct error handling for read_auxv.
18690 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18692 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18693 and srv_linux_thread_db to yes.
18694 * linux-s390-low.c (s390_fill_gregset): New function.
18695 (target_regsets): Define data structure.
18697 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18699 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18700 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18701 * config.in, configure: Regenerated.
18702 * inferiors.c (gdb_id_to_thread): New function.
18703 (gdb_id_to_thread_id): Use it.
18704 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18705 * linux-low.h (struct process_info): Add th member.
18706 (thread_db_get_tls_address): New prototype.
18707 * remote-utils.c (decode_address): Make non-static.
18708 * server.c (handle_query): Handle qGetTLSAddr.
18709 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18710 * target.h (struct target_ops): Add get_tls_address.
18711 * thread-db.c (maybe_attach_thread): Save the thread handle.
18712 (thread_db_get_tls_address): New.
18714 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18716 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18717 (linux_resume_one_process): Take a siginfo_t *. Update all
18718 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18719 (struct pending_signals): Add a siginfo_t.
18720 (linux_wait_for_process): Always set last_status.
18721 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18722 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18723 * linux-low.h (struct process_info): Add last_status.
18725 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18727 * remote-utils.c (try_rle): New function.
18728 (putpkt_binary): Use it.
18730 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18732 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18733 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18734 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18735 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18736 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18739 2006-08-08 Richard Sandiford <richard@codesourcery.com>
18741 * server.c (terminal_fd): New variable.
18742 (old_foreground_pgrp): Likewise.
18743 (restore_old_foreground_pgrp): New function.
18744 (start_inferior): Record the terminal file descriptor in terminal_fd
18745 and its original foreground group in old_foreground_pgrp. Register
18746 restore_old_foreground_pgrp with atexit().
18748 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18750 * server.c (handle_query): Correct qPart to qXfer.
18752 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18754 * configure.ac: Check for more headers which are missing on
18755 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18756 * configure.srv: Add Cygwin and mingw32.
18757 * remote-utils.c: Don't include headers unconditionally which
18758 are missing on mingw32. Include <winsock.h> for mingw32.
18759 (remote_open): Adjust for mingw32 support. Flush
18760 standard error after writing to it.
18761 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18762 (unblock_async_io, enable_async_io, disable_async_io)
18763 (readchar, getpkt): Update for Winsock support.
18764 (prepare_resume_reply): Expect a protocol signal number.
18765 * server.c: Disable <sys/wait.h> on mingw32.
18766 (start_inferior): Adjust for mingw32 support. Flush
18767 standard error after writing to it.
18768 (attach_inferior): Likewise. Use protocol signal
18770 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18772 * win32-i386-low.c: New file.
18773 * Makefile.in (XM_CLIBS): Set.
18774 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18775 (win32-i386-low.o): New dependency rule.
18776 * linux-low.c (linux_wait): Use target signal numbers.
18777 * target.h (struct target_ops): Doc fix.
18778 * server.h (target_signal_to_name): New prototype.
18779 * gdbreplay.c: Don't include headers unconditionally which
18780 are missing on mingw32. Include <winsock.h> for mingw32.
18781 (remote_close, remote_open): Adjust for Winsock support.
18782 * configure, config.in: Regenerated.
18784 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18786 * server.c (decode_xfer_read, write_qxfer_response): New.
18787 (handle_query): Take a packet length argument. Handle
18788 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18789 the qSupported response.
18790 (main): Update call to handle_query.
18792 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18794 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18795 (putpkt_binary): Renamed from putpkt and adjusted for binary
18797 (putpkt): New wrapper for putpkt_binary.
18798 (readchar): Don't mask off the high bit.
18799 (decode_X_packet): New function.
18800 * server.c (main): Call putpkt_binary if a handler sets the packet
18801 length. Save the length of the incoming packet. Handle 'X'.
18802 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18804 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18806 * server.c (handle_query): Handle qSupported.
18808 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18810 * remote-utils.c (all_symbols_looked_up): New variable.
18811 (look_up_one_symbol): Check it.
18812 * server.h (look_up_one_symbol): New declaration.
18813 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18815 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18817 * Makefile.in (linux-arm-low.o): Update dependencies.
18818 * linux-arm-low.c: Include "gdb_proc_service.h".
18819 (PTRACE_GET_THREAD_AREA): Define.
18820 (ps_get_thread_area): New function.
18822 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18824 * configure.srv (m68k*-*-uclinux*): New target.
18825 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18826 (linux_resume_one_process): Remove extraneous cast.
18827 (linux_read_offsets): New.
18828 (linux_target_op): Add linux_read_offsets on mmuless systems.
18829 * server.c (handle_query): Add qOffsets logic.
18830 * target.h (struct target_ops): Add read_offsets.
18832 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18834 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18835 (PTRACE_GET_THREAD_AREA): Define.
18836 (ps_get_thread_area): New function.
18837 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18838 (linux-x86-64-low.o): Update.
18840 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18842 * configure.ac: Remove checks for prfpregset_t.
18843 * gdb_proc_service.h: New file.
18844 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18845 new "gdb_proc_service.h".
18846 * proc-service.c: Likewise.
18847 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18848 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18849 * Makefile.in (gdb_proc_service_h): Updated.
18850 * configure, config.in: Regenerated.
18852 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18854 * remote-utils.c (prepare_resume_reply): Move declaration
18855 of gdb_id_from_wait to the top of the block.
18857 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18859 * linux-low.c (regsets_store_inferior_registers): Read the regset
18860 from the target before filling it.
18862 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18864 * server.c (attach_inferior): Return SIGTRAP for a successful
18867 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18869 * Makefile.in (OBS): Add version.o.
18870 (STAGESTUFF): Delete.
18871 (version.o): Add dependencies.
18872 (version.c): Replace rule.
18873 (clean): Remove version.c.
18874 * server.c (gdbserver_version): New.
18875 (gdbserver_usage): Use printf.
18876 (main): Handle --version and --help.
18877 * server.h (version, host_name): Add declarations.
18879 2005-12-23 Eli Zaretskii <eliz@gnu.org>
18891 * linux-x86-64-low.c:
18893 * linux-s390-low.c:
18894 * linux-ppc64-low.c:
18896 * linux-mips-low.c:
18897 * linux-m68k-low.c:
18898 * linux-m32r-low.c:
18901 * linux-ia64-low.c:
18902 * linux-i386-low.c:
18903 * linux-crisv32-low.c:
18915 * gdbserver.1: Add (C) after Copyright. Update the FSF
18918 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18920 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18921 (arm_breakpoint_at): Recognize both breakpoints.
18922 (the_low_target): Use the correct breakpoint instruction.
18924 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18926 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18927 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18928 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18929 (the_low_target): Update.
18931 2005-10-25 Andreas Schwab <schwab@suse.de>
18933 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18935 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18936 (ia64_num_regs): Reduce to 462.
18938 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18940 * acinclude.m4: Correct quoting.
18941 * aclocal.m4: Regenerated.
18943 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18944 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18945 (thread_db_init): Call thread_db_err_str.
18946 * configure.ac: Check for TD_VERSION.
18947 * config.in, configure: Regenerated.
18949 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18951 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18953 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18955 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18956 is not available. Define HAVE_PTRACE_GETREGS if it is.
18957 * config.in, configure: Regenerated.
18958 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18959 * linux-i386-low.c, linux-m68k-low.c: Update to use
18960 HAVE_PTRACE_GETREGS.
18961 * linux-low.c (regsets_fetch_inferior_registers)
18962 (regsets_store_inferior_registers): Only return 0 if we processed
18964 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18965 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18967 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18969 * inferiors.c (struct thread_info): Add gdb_id.
18970 (add_thread): Add gdb_id argument.
18971 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
18972 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
18973 calls to add_thread.
18974 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
18975 * server.c (handle_query): Use thread_to_gdb_id.
18976 (handle_v_cont, main): Use gdb_id_to_thread_id.
18977 * server.h (add_thread): Update prototype.
18978 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
18981 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18983 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18984 left-padded registers.
18985 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18986 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18988 2005-07-01 Steve Ellcey <sje@cup.hp.com>
18990 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18991 * configure: Regenerate.
18992 * config.in: Regenerate.
18993 * server.h (NEED_DECLARATION_STRERROR):
18994 Replace with !HAVE_DECL_STRERROR.
18996 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18998 * linux-low.c (linux_wait, linux_send_signal): Don't test
18999 an unsigned long variable for > 0 if it could be MAX_ULONG.
19000 * server.c (myresume): Likewise.
19001 * target.c (set_desired_inferior): Likewise.
19003 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19005 * configure.ac: Simplify and improve check for socklen_t.
19006 * configure, config.in: Regenerate.
19008 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19010 * acconfig.h: Remove.
19011 * configure.ac: Add a test for socklen_t. Use three-argument
19012 AC_DEFINE throughout.
19013 * config.in: Regenerated using autoheader 2.59.
19014 * configure: Regenerated.
19016 * gdbreplay.c (socklen_t): Provide a default.
19017 (remote_open): Use socklen_t.
19018 * remote-utils.c (socklen_t): Provide a default.
19019 (remote_open): Use socklen_t.
19020 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19023 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19025 * linux-low.c (linux_read_memory, linux_write_memory)
19026 (linux_read_auxv): Likewise.
19027 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19028 (check_mem_write): Likewise.
19029 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19031 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19032 (registers_from_string, register_data): Likewise.
19033 * server.c (handle_query, main): Likewise.
19034 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19035 (decode_M_packet): Likewise.
19036 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19037 * target.h (struct target_ops): Update read_memory, write_memory,
19039 (read_inferior_memory, write_inferior_memory): Update.
19040 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19041 to unsigned char *.
19042 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19043 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19044 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19045 linux-s390-low.c, linux-sh-low.c: Update for changes in
19046 read_inferior_memory and the_low_target->breakpoint.
19048 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19050 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19051 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19052 * configure.srv: Add powerpc64-*-linux*.
19053 * linux-ppc64-low.c: New file.
19055 2005-05-23 Orjan Friberg <orjanf@axis.com>
19057 * linux-cris-low.c: New file with support for CRIS.
19058 * linux-crisv32-low.c: Ditto for CRISv32.
19059 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19060 (clean): Add reg-cris.c and reg-crisv32.c.
19061 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19062 reg-crisv32.o, and reg-crisv32.c to make rules.
19063 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19064 recognized targets.
19066 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19068 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19069 of sizeof (PTRACE_XFER_TYPE).
19070 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19072 2005-05-12 Orjan Friberg <orjanf@axis.com>
19074 * target.h (struct target_ops): Add insert_watchpoint,
19075 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19076 pointers for hardware watchpoint support.
19077 * linux-low.h (struct linux_target_ops): Ditto.
19078 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19079 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19080 to linux_target_ops.
19081 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19083 * server.c (main): Recognize 'Z' and 'z' packets.
19085 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19087 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19088 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19089 (the_low_target): Add new members.
19091 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19093 * proc-service.c (ps_lgetregs): Search all_processes instead of
19096 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19098 * server.c (start_inferior): Change return type to int.
19099 (attach_inferior): Change sigptr to int *.
19100 (handle_v_cont, handle_v_requests): Change signal to int *.
19101 (main): Change signal to int.
19103 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19105 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19106 * configure.srv: Add m32r*-*-linux*.
19107 * linux-m32r-low.c: New file.
19109 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19111 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19113 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19115 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19116 Take unsigned long arguments for PIDs.
19117 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19118 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19119 (wait_for_sigstop, linux_resume_one_process)
19120 (regsets_fetch_inferior_registers, linux_send_signal)
19121 (linux_read_auxv): Likewise. Update the types of variables holding
19122 PIDs. Update format string specifiers.
19123 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19124 * remote-utils.c (prepare_resume_reply): Likewise.
19125 * server.c (cont_thread, general_thread, step_thread)
19126 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19128 (handle_query): Update format specifiers.
19129 (handle_v_cont, main): Use strtoul for thread IDs.
19130 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19131 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19132 (general_thread, step_thread, thread_from_wait)
19133 (old_thread_from_wait): Update.
19134 * target.h (struct thread_resume): Use unsigned long for THREAD.
19135 (struct target_ops): Use unsigned long for arguments to attach and
19138 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19140 * acinclude.m4: Include bfd/bfd.m4 directly.
19141 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19142 <agriffis@toolchain.org>.
19143 * aclocal.m4, configure: Regenerated.
19145 2005-01-07 Andrew Cagney <cagney@gnu.org>
19147 * configure.ac: Rename configure.in, require autoconf 2.59.
19148 * configure: Re-generate.
19150 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19152 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19153 LIBS when finished.
19154 * aclocal.m4: Regenerated.
19155 * configure: Regenerated.
19157 2004-11-21 Andreas Schwab <schwab@suse.de>
19159 * linux-m68k-low.c (m68k_num_gregs): Define.
19160 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19161 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19162 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19163 (m68k_breakpoint_at): New. Add to the_low_target.
19165 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19166 srv_linux_thread_db to yes.
19168 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19170 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19171 (ARCH_SET_FS): Likewise.
19172 (ARCH_GET_FS): Likewise.
19173 (ARCH_GET_GS): Likewise.
19175 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19177 * linux-i386-low.c (ps_get_thread_area): New.
19178 * linux-x86-64-low.c (ps_get_thread_area): New.
19179 * linux-low.c: Include <sys/syscall.h>.
19180 (linux_kill_one_process): Don't kill the first thread here.
19181 (linux_kill): Kill the first thread here.
19182 (kill_lwp): New function.
19183 (send_sigstop, linux_send_signal): Use it.
19184 * proc-service.c: Clean up #ifdefs.
19185 (fpregset_info): Delete.
19186 (ps_lgetregs): Update and enable implementation.
19187 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19189 * remote-utils.c (struct sym_cache, symbol_cache): New.
19190 (input_interrupt): Print a clearer message.
19191 (async_io_enabled): New variable.
19192 (enable_async_io, disable_async_io): Use it. Update comments.
19193 (look_up_one_symbol): Use the symbol cache.
19194 * thread-db.c (thread_db_look_up_symbols): New function.
19195 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19197 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19199 * configure.in: Test for -rdynamic.
19200 * configure: Regenerated.
19201 * Makefile (INTERNAL_LDFLAGS): New.
19202 (gdbserver, gdbreplay): Use it.
19204 2004-09-02 Andrew Cagney <cagney@gnu.org>
19206 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19208 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19210 * linux-low.c (linux_wait): Clear all_processes list also.
19212 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19214 * linux-low.c: Include <errno.h>. Remove extern declaration of
19217 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19219 * gdbreplay.c, server.h, utils.c: Update copyright years.
19221 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19223 * server.c (main): Print child status or termination signal from
19224 variable 'signal', not 'sig'.
19226 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19228 * linux-low.c (linux_read_memory): Change return type to
19229 int. Check for and return error from ptrace().
19230 * target.c (read_inferior_memory): Change return type to int. Pass
19231 back return status from the_target->read_memory().
19232 * target.h (struct target_ops): Adapt *read_memory() prototype.
19234 (read_inferior_memory): Adapt prototype.
19235 * server.c (main): Return an error packet if
19236 read_inferior_memory() returns an error.
19238 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19240 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19241 Unify with other clean targets.
19243 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19245 * server.c (handle_v_cont): Call set_desired_inferior.
19247 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19249 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19251 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19253 * linux-low.c (linux_wait): Unblock async I/O.
19254 (linux_resume): Block and enable async I/O.
19255 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19256 * server.h (block_async_io, unblock_async_io): Add prototypes.
19258 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19260 * remote-utils.c (remote_open): Print a status notice after
19261 opening a TCP port.
19262 * server.c (attach_inferior): Print a status notice after
19265 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19267 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19269 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19271 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19273 * server.c, target.h: Update copyright years.
19275 2004-02-25 Roland McGrath <roland@redhat.com>
19277 * target.h (struct target_ops): New member `read_auxv'.
19278 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19279 * linux-low.c (linux_read_auxv): New function.
19280 (linux_target_ops): Initialize `read_auxv' member to that.
19282 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19284 Committed by Jim Blandy <jimb@redhat.com>.
19286 * linux-s390-low.c (s390_num_regs): Update.
19287 (s390_regmap): Remove control registers. Use __s390x__ predefine
19288 instead of GPR_SIZE to distiguish s390 and s390x targets.
19290 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19292 * linux-low.c: Update copyright year.
19293 (check_removed_breakpoint): Clear pending_is_breakpoint.
19294 (linux_set_resume_request, linux_queue_one_thread)
19295 (resume_status_pending_p): New functions.
19296 (linux_continue_one_thread): Use process->resume.
19297 (linux_resume): Only resume threads if there are no pending events.
19298 * linux-low.h (struct process_info): Add resume request
19301 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19303 * regcache.c (new_register_cache): Clear the allocated register
19304 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19306 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19308 * linux-low.c (linux_resume): Take a struct thread_resume *
19310 (linux_wait): Update call.
19311 (resume_ptr): New static variable.
19312 (linux_continue_one_thread): Renamed from
19313 linux_continue_one_process. Use resume_ptr.
19314 (linux_resume): Use linux_continue_one_thread.
19315 * server.c (handle_v_cont, handle_v_requests): New functions.
19316 (myresume): New function.
19317 (main): Handle 'v' case.
19318 * target.h (struct thread_resume): New type.
19319 (struct target_ops): Change argument of "resume" to struct
19321 (myresume): Delete macro.
19323 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19325 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19326 (uninstall): Support DESTDIR.
19328 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19330 * configure.srv: Add xscale*linux copy of arm*linux entry.
19332 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19334 * linux-arm-low.c (arm_reinsert_addr): New function.
19335 (the_low_target): Add arm_reinsert_addr.
19337 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19339 * mem-break.c: Remove whitespace at end of file.
19341 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19343 * configure.in: Check whether we need to prototype strerror.
19344 * server.h: Optionally prototype strerror.
19345 * gdbreplay.c (perror_with_name): Use strerror.
19346 * linux-low.c (linux_attach_lwp): Use strerror.
19347 * utils.c (perror_with_name): Use strerror.
19348 * config.in, configure: Regenerated.
19350 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19352 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19353 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19355 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19357 * Makefile.in (SFILES): Update.
19358 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19359 low-sun3.c: Remove files.
19361 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19363 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19364 (linux_detach_one_process, linux_detach): New functions.
19365 (linux_target_ops): Add linux_detach.
19366 * server.c (main): Handle 'D' packet.
19367 * target.h (struct target_ops): Add "detach" member.
19368 (detach_inferior): Define.
19370 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19372 From Kelley Cook <kelleycook@wideopenwest.com>:
19373 * configure.srv: Accept i[34567]86 variants.
19375 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19377 * linux-low.c (linux_wait_for_event): Correct comment typos.
19378 (linux_resume_one_process): Call check_removed_breakpoint.
19379 (linux_send_signal): New function.
19380 (linux_target_ops): Add linux_send_signal.
19381 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19383 * target.h (struct target_ops): Add send_signal.
19385 2003-05-29 Jim Blandy <jimb@redhat.com>
19387 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19388 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19389 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19390 away part of the register's value.
19392 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19394 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19395 (linux_wait_for_event, linux_init_signals): Likewise.
19397 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19399 * configure.in: Check for stdlib.h.
19400 * configure: Regenerated.
19401 * config.in: Regenerated.
19403 2003-01-04 Andreas Schwab <schwab@suse.de>
19405 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19407 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19409 * Makefile.in: Remove obsolete code.
19411 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19413 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19414 defined(PT_FPR0_HI).
19416 2002-11-17 Stuart Hughes <seh@zee2.com>
19418 * linux-arm-low.c (arm_num_regs): Increase.
19419 (arm_regmap): Include status register.
19421 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
19423 * linux-low.c (register_addr): Remove incorrect -1 check.
19425 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
19427 * linux-low.c (linux_create_inferior): Call setpgid. Return
19429 (unstopped_p, linux_signal_pid): Remove.
19430 (linux_target_ops): Remove linux_signal_pid.
19431 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19432 global instead of target method.
19433 * target.h (struct target_ops): Remove signal_pid. Update comment
19434 for create_inferior.
19435 * server.c (signal_pid): New variable.
19436 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
19437 gdbserver. Set the child to be the foreground process group.
19438 (attach_inferior): Set signal_pid.
19440 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
19442 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19444 2002-08-20 Jim Blandy <jimb@redhat.com>
19446 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19449 2002-08-01 Andrew Cagney <cagney@redhat.com>
19451 * Makefile.in: Make chill references obsolete.
19453 2002-07-24 Kevin Buettner <kevinb@redhat.com>
19455 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19456 * configure: Regenerate.
19457 * config.in: Regenerate.
19459 2002-07-09 David O'Brien <obrien@FreeBSD.org>
19461 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19462 (perror_with_name, remote_close, remote_open, expect, play): Static.
19464 2002-07-04 Michal Ludvig <mludvig@suse.cz>
19466 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
19467 byte offsets instead of an array of indexes.
19468 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19470 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
19472 * regcache.c: Add comment.
19474 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
19476 * thread-db.c: New file.
19477 * proc-service.c: New file.
19478 * acinclude.m4: New file.
19479 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19480 proc-service.o, and thread-db.o.
19481 (linux-low.o): Add USE_THREAD_DB.
19482 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19483 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19484 * aclocal.m4: Regenerated.
19485 * config.in: Regenerated.
19486 * configure: Regenerated.
19487 * configure.in: Check for proc_service.h, sys/procfs.h,
19488 thread_db.h, and linux/elf.h headrs.
19489 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19490 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19491 Check for -lthread_db and thread support.
19492 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19493 PowerPC, and SuperH.
19494 * i387-fp.c: Constify arguments.
19495 * i387-fp.h: Likewise.
19496 * inferiors.c: (struct thread_info): Renamed from
19497 `struct inferior_info'. Remove PID member. Use generic inferior
19498 list header. All uses updated.
19499 (inferiors, signal_pid): Removed.
19500 (all_threads): New variable.
19501 (get_thread): Define.
19502 (add_inferior_to_list): New function.
19503 (for_each_inferior): New function.
19504 (change_inferior_id): New function.
19505 (add_inferior): Removed.
19506 (remove_inferior): New function.
19507 (add_thread): New function.
19508 (free_one_thread): New function.
19509 (remove_thread): New function.
19510 (clear_inferiors): Use for_each_inferior and free_one_thread.
19511 (find_inferior): New function.
19512 (find_inferior_id): New function.
19513 (inferior_target_data): Update argument type.
19514 (set_inferior_target_data): Likewise.
19515 (inferior_regcache_data): Likewise.
19516 (set_inferior_regcache_data): Likewise.
19517 * linux-low.c (linux_bp_reinsert): Remove.
19518 (all_processes, stopping_threads, using_thrads)
19519 (struct pending_signals, debug_threads, pid_of): New.
19520 (inferior_pid): Replace with macro.
19521 (struct inferior_linux_data): Remove.
19522 (get_stop_pc, add_process): New functions.
19523 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19524 Use add_process and add_thread.
19525 (linux_attach_lwp): New function, based on old linux_attach. Use
19526 add_process and add_thread. Set stop_expected for new threads.
19527 (linux_attach): New function.
19528 (linux_kill_one_process): New function.
19529 (linux_kill): Kill all LWPs.
19530 (linux_thread_alive): Use find_inferior_id.
19531 (check_removed_breakpoints, status_pending_p): New functions.
19532 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19533 Update. Use WNOHANG. Wait for cloned processes also. Update process
19534 struct for the found process.
19535 (linux_wait_for_event): New function.
19536 (linux_wait): Use it. Support LWPs.
19537 (send_sigstop, wait_for_sigstop, stop_all_processes)
19538 (linux_resume_one_process, linux_continue_one_process): New functions.
19539 (linux_resume): Support LWPs.
19540 (REGISTER_RAW_SIZE): Remove.
19541 (fetch_register): Use register_size instead. Call supply_register.
19542 (usr_store_inferior_registers): Likewise. Call collect_register.
19543 Fix recursive case.
19544 (regsets_fetch_inferior_registers): Improve error message.
19545 (regsets_store_inferior_registers): Add debugging.
19546 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19547 (unstopped_p, linux_signal_pid): New functions.
19548 (linux_target_ops): Add linux_signal_pid.
19549 (linux_init_signals): New function.
19550 (initialize_low): Call it. Initialize using_threads.
19551 * regcache.c (inferior_regcache_data): Add valid
19553 (get_regcache): Fetch registers lazily. Add fetch argument
19554 and update all callers.
19555 (regcache_invalidate_one, regcache_invalidate): New
19557 (new_register_cache): Renamed from create_register_cache.
19558 Return the new regcache.
19559 (free_register_cache): Change argument to a void *.
19560 (registers_to_string, registers_from_string): Call get_regcache
19561 with fetch flag set.
19562 (register_data): Make static. Pass fetch flag to get_regcache.
19563 (supply_register): Call get_regcache with fetch flag clear.
19564 (collect_register): Call get_regcache with fetch flag set.
19565 (collect_register_as_string): New function.
19566 * regcache.h: Update.
19567 * remote-utils.c (putpkt): Flush after debug output and use
19569 Handle input interrupts while waiting for an ACK.
19570 (input_interrupt): Use signal_pid method.
19571 (getpkt): Flush after debug output and use stderr.
19572 (outreg): Use collect_register_as_string.
19573 (new_thread_notify, dead_thread_notify): New functions.
19574 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19575 and general_thread.
19576 (look_up_one_symbol): Flush after debug output.
19577 * server.c (step_thread, server_waiting): New variables.
19578 (start_inferior): Don't use signal_pid. Update call to mywait.
19579 (attach_inferior): Update call to mywait.
19580 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19581 (main): Don't fetch/store registers explicitly. Use
19582 set_desired_inferior. Support proposed ``Hs'' packet. Update
19584 * server.h: Update.
19585 (struct inferior_list, struct_inferior_list_entry): New.
19586 * target.c (set_desired_inferior): New.
19587 (write_inferior_memory): Constify.
19588 (mywait): New function.
19589 * target.h: Update.
19590 (struct target_ops): New signal_pid method.
19591 (mywait): Removed macro, added prototype.
19593 * linux-low.h (regset_func): Removed.
19594 (regset_fill_func, regset_store_func): New.
19595 (enum regset_type): New.
19596 (struct regset_info): Add type field. Use new operation types.
19597 (struct linux_target_ops): stop_pc renamed to get_pc.
19598 Add decr_pc_after_break and breakpoint_at.
19599 (get_process, get_thread_proess, get_process_thread)
19600 (strut process_info, all_processes, linux_attach_lwp)
19601 (thread_db_init): New.
19603 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19604 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19605 (the_low_target): Add new members.
19606 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19607 (i386_store_fpxregset): Constify.
19608 (target_regsets): Add new kind identifier.
19609 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19610 (i386_set_pc): Add debugging.
19611 (i386_breakpoint_at): New function.
19612 (the_low_target): Add new members.
19613 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19614 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19615 (mips_breakpoint_at): New.
19616 (the_low_target): Add new members.
19617 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19618 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19619 (the_low_target): Add new members.
19620 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19621 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19622 (the_low_target): Add new members.
19623 * linux-x86-64-low.c (target_regsets): Add new kind
19626 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
19628 From Martin Pool <mbp@samba.org>:
19629 * server.c (gdbserver_usage): New function.
19632 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
19634 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19635 stop_at -> stop_pc.
19637 2002-05-04 Andrew Cagney <ac131313@redhat.com>
19639 * Makefile.in: Remove obsolete code.
19641 2002-04-24 Michal Ludvig <mludvig@suse.cz>
19643 * linux-low.c (regsets_fetch_inferior_registers),
19644 (regsets_store_inferior_registers): Removed cast to int from
19646 * regcache.h: Added declaration of struct inferior_info.
19648 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19650 * inferiors.c (struct inferior_info): Add regcache_data.
19651 (add_inferior): Call create_register_cache.
19652 (clear_inferiors): Call free_register_cache.
19653 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19654 * regcache.c (struct inferior_regcache_data): New.
19655 (registers): Remove.
19656 (get_regcache): New function.
19657 (create_register_cache, free_register_cache): New functions.
19658 (set_register_cache): Don't initialize the register cache here.
19659 (registers_to_string, registers_from_string, register_data): Call
19661 * regcache.h: Add prototypes.
19662 * server.h: Likewise.
19664 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19666 * mem-break.c: New file.
19667 * mem-break.h: New file.
19668 * Makefile.in: Add mem-break.o rule; update server.h
19670 * inferiors.c (struct inferior_info): Add target_data
19672 (clear_inferiors): Free target_data member if set.
19673 (inferior_target_data, set_inferior_target_data): New functions.
19674 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19675 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19676 * linux-low.c (linux_bp_reinsert): New variable.
19677 (struct inferior_linux_data): New.
19678 (linux_create_inferior): Use set_inferior_target_data.
19679 (linux_attach): Likewise. Call add_inferior.
19680 (linux_wait_for_one_inferior): New function.
19681 (linux_wait): Call it.
19682 (linux_write_memory): Add const.
19683 (initialize_low): Call set_breakpoint_data.
19684 * linux-low.h (struct linux_target_ops): Add breakpoint
19686 * server.c (attach_inferior): Remove extra add_inferior
19688 * server.h: Include mem-break.h. Update inferior.c
19690 * target.c (read_inferior_memory)
19691 (write_inferior_memory): New functions.
19692 * target.h (read_inferior_memory)
19693 (write_inferior_memory): Change macros to prototypes.
19694 (struct target_ops): Update comments. Add const to write_memory
19697 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
19699 * linux-low.c (usr_store_inferior_registers): Support
19700 registers which are allowed to fail to store.
19701 * linux-low.h (linux_target_ops): Likewise.
19702 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19703 (ppc_cannot_store_register): FPSCR may not be storable.
19705 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19707 * server.h: Include <string.h> if HAVE_STRING_H.
19708 * ChangeLog: Correct paths in last ChangeLog entry.
19710 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19712 * linux-low.h: Remove obsolete prototypes.
19713 (struct linux_target_ops): New.
19714 (extern the_low_target): New.
19715 * linux-low.c (num_regs, regmap): Remove declarations.
19716 (register_addr): Use the_low_target explicitly.
19717 (fetch_register): Likewise.
19718 (usr_fetch_inferior_registers): Likewise.
19719 (usr_store_inferior_registers): Likewise.
19720 * linux-arm-low.c (num_regs): Remove.
19721 (arm_num_regs): Define.
19722 (arm_regmap): Renamed from regmap, made static.
19723 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19725 (arm_cannot_store_register): Renamed from cannot_store_register,
19727 (the_low_target): New.
19728 * linux-i386-low.c (num_regs): Remove.
19729 (i386_num_regs): Define.
19730 (i386_regmap): Renamed from regmap, made static.
19731 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19733 (i386_cannot_store_register): Renamed from cannot_store_register,
19735 (the_low_target): New.
19736 * linux-ia64-low.c (num_regs): Remove.
19737 (ia64_num_regs): Define.
19738 (ia64_regmap): Renamed from regmap, made static.
19739 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19741 (ia64_cannot_store_register): Renamed from cannot_store_register,
19743 (the_low_target): New.
19744 * linux-m68k-low.c (num_regs): Remove.
19745 (m68k_num_regs): Define.
19746 (m68k_regmap): Renamed from regmap, made static.
19747 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19749 (m68k_cannot_store_register): Renamed from cannot_store_register,
19751 (the_low_target): New.
19752 * linux-mips-low.c (num_regs): Remove.
19753 (mips_num_regs): Define.
19754 (mips_regmap): Renamed from regmap, made static.
19755 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19757 (mips_cannot_store_register): Renamed from cannot_store_register,
19759 (the_low_target): New.
19760 * linux-ppc-low.c (num_regs): Remove.
19761 (ppc_num_regs): Define.
19762 (ppc_regmap): Renamed from regmap, made static.
19763 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19765 (ppc_cannot_store_register): Renamed from cannot_store_register,
19767 (the_low_target): New.
19768 * linux-s390-low.c (num_regs): Remove.
19769 (s390_num_regs): Define.
19770 (s390_regmap): Renamed from regmap, made static.
19771 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19773 (s390_cannot_store_register): Renamed from cannot_store_register,
19775 (the_low_target): New.
19776 * linux-sh-low.c (num_regs): Remove.
19777 (sh_num_regs): Define.
19778 (sh_regmap): Renamed from regmap, made static.
19779 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19781 (sh_cannot_store_register): Renamed from cannot_store_register,
19783 (the_low_target): New.
19784 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19785 (the_low_target): New.
19787 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19789 * Makefile.in: Add stamp-h target.
19790 * configure.in: Create stamp-h.
19791 * configure: Regenerated.
19793 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19795 * inferiors.c: New file.
19796 * target.c: New file.
19797 * target.h: New file.
19798 * Makefile.in: Add target.o and inferiors.o. Update
19800 * linux-low.c (inferior_pid): New static variable,
19801 moved from server.c.
19802 (linux_create_inferior): Renamed from create_inferior.
19803 Call add_inferior. Return 0 on success instead of a PID.
19804 (linux_attach): Renamed from myattach.
19805 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19806 (linux_thread_alive): Renamed from mythread_alive.
19807 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19809 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19810 (regsets_store_inferior_registers): Correct error message.
19811 Add missing ``return 0''.
19812 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19813 (linux_store_registers): Renamed from store_inferior_registers.
19814 (linux_read_memory): Renamed from read_inferior_memory.
19815 (linux_write_memory): Renamed from write_inferior_memory.
19816 (linux_target_ops): New structure.
19817 (initialize_low): Call set_target_ops ().
19818 * remote-utils.c (unhexify): New function.
19819 (hexify): New function.
19820 (input_interrupt): Send signals to ``signal_pid''.
19821 * server.c (inferior_pid): Remove.
19822 (start_inferior): Update create_inferior call.
19823 (attach_inferior): Call add_inferior.
19824 (handle_query): New function.
19825 (main): Call handle_query for `q' packets.
19826 * server.h: Include "target.h". Remove obsolete prototypes.
19827 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19829 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19831 * Makefile.in: Add WARN_CFLAGS. Update configury
19833 * configure.in: Check for <string.h>
19834 * configure: Regenerate.
19835 * config.in: Regenerate.
19836 * gdbreplay.c: Include needed system headers.
19837 (remote_open): Remove strchr prototype.
19838 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19839 * regcache.c (supply_register): Change buf argument to const void *.
19840 (supply_register_by_name): Likewise.
19841 (collect_register): Change buf argument to void *.
19842 (collect_register_by_name): Likewise.
19843 * regcache.h: Add missing prototypes.
19844 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19845 * server.c (handle_query): New function.
19846 (attached): New static variable, moved out of main.
19847 (main): Quiet longjmp clobber warnings.
19848 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19849 * utils.c (error): Remove NORETURN.