1 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 * target.h (struct process_stratum_target): Remove.
4 (class process_target): Rename to ...
5 (class process_stratum_target): ... this.
6 * linux-low.h (class linux_process_target): Derive from
7 'process_stratum_target'.
8 * linux-low.cc (linux_target_ops): Remove.
9 (initialize_low): Set the_target to the singleton instance of
11 * lynx-low.h (class lynx_process_target): Derive from
12 'process_stratum_target'.
13 * lynx-low.cc (lynx_target_ops): Remove.
14 (initialize_low): Set the_target to the singleton instance of
16 * nto-low.h (class nto_process_target): Derive from
17 'process_stratum_target'.
18 * nto-low.cc (nto_target_ops): Remove.
19 (initialize_low): Set the_target to the singleton instance of
21 * win32-low.h (class win32_process_target): Derive from
22 'process_stratum_target'.
23 * win32-low.cc (win32_target_ops): Remove.
24 (initialize_low): Set the_target to the singleton instance of
27 Replace 'the_target->pt' with 'the_target' in the uses below.
29 * hostio.cc (hostio_error)
34 * linux-aarch32-low.cc (arm_breakpoint_at)
35 * linux-aarch64-low.cc (aarch64_breakpoint_at)
36 * linux-arm-low.cc (arm_sigreturn_next_pc)
38 (arm_get_syscall_trapinfo)
39 * linux-cris-low.cc (cris_breakpoint_at)
40 * linux-crisv32-low.cc (cris_breakpoint_at)
41 * linux-low.cc (handle_extended_wait)
44 (linux_process_target::breakpoint_kind_from_pc)
46 * linux-m32r-low.cc (m32r_breakpoint_at)
47 * linux-mips-low.cc (mips_breakpoint_at)
48 * linux-nios2-low.cc (nios2_breakpoint_at)
49 * linux-ppc-low.cc (ppc_breakpoint_at)
50 * linux-s390-low.cc (s390_get_hwcap)
51 * linux-sh-low.cc (sh_breakpoint_at)
52 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
53 (sparc_store_gregset_from_stack)
55 * linux-tic6x-low.cc (tic6x_breakpoint_at)
56 * linux-tile-low.cc (tile_breakpoint_at)
57 * linux-x86-low.cc (x86_breakpoint_at)
58 * linux-xtensa-low.cc (xtensa_breakpoint_at)
59 * mem-break.cc (bp_size)
61 (insert_memory_breakpoint)
62 (set_raw_breakpoint_at)
63 (delete_raw_breakpoint)
65 (uninsert_raw_breakpoint)
66 (reinsert_raw_breakpoint)
67 (validate_inserted_breakpoint)
68 * regcache.cc (regcache_read_pc)
70 * remote-utils.cc (putpkt_binary_1)
73 (prepare_resume_reply)
74 * server.cc (handle_general_set)
77 (handle_qxfer_exec_file)
78 (handle_qxfer_libraries_svr4)
80 (handle_qxfer_siginfo)
85 (queue_stop_reply_callback)
87 * target.cc (prepare_to_access_memory)
88 (done_accessing_memory)
89 (read_inferior_memory)
91 (target_stop_and_wait)
93 (target_mourn_inferior)
94 (target_continue_no_signal)
96 (target_supports_multi_process)
99 (target_create_inferior)
100 (target_post_create_inferior)
102 (target_supports_fork_events)
103 (target_supports_vfork_events)
104 (target_supports_exec_events)
105 (target_handle_new_gdb_connection)
108 (fetch_inferior_registers)
109 (store_inferior_registers)
111 (target_supports_non_stop)
113 (target_process_qsupported)
114 (target_supports_catch_syscall)
115 (target_get_ipa_tdesc_idx)
116 (target_supports_tracepoints)
117 (target_supports_fast_tracepoints)
118 (target_get_min_fast_tracepoint_insn_len)
119 (target_thread_stopped)
122 (target_stabilize_threads)
123 (target_install_fast_tracepoint_jump_pad)
125 (target_supports_disable_randomization)
126 (target_supports_agent)
127 (target_enable_btrace)
128 (target_disable_btrace)
130 (target_read_btrace_conf)
131 (target_supports_range_stepping)
132 (target_supports_stopped_by_sw_breakpoint)
133 (target_stopped_by_sw_breakpoint)
134 (target_supports_stopped_by_hw_breakpoint)
135 (target_supports_hardware_single_step)
136 (target_stopped_by_hw_breakpoint)
137 (target_breakpoint_kind_from_pc)
138 (target_breakpoint_kind_from_current_state)
139 (target_supports_software_single_step)
140 (target_core_of_thread)
142 (target_thread_handle)
143 * win32-low.cc (do_initial_child_stuff)
145 Rename target op default definitions listed below.
147 * target.cc (process_target::post_create_inferior): Rename as ...
148 (process_stratum_target::post_create_inferior): ... this.
149 (process_target::prepare_to_access_memory): Rename as ...
150 (process_stratum_target::prepare_to_access_memory): ... this.
151 (process_target::done_accessing_memory): Rename as ...
152 (process_stratum_target::done_accessing_memory): ... this.
153 (process_target::look_up_symbols): Rename as ...
154 (process_stratum_target::look_up_symbols): ... this.
155 (process_target::supports_read_auxv): Rename as ...
156 (process_stratum_target::supports_read_auxv): ... this.
157 (process_target::read_auxv): Rename as ...
158 (process_stratum_target::read_auxv): ... this.
159 (process_target::supports_z_point_type): Rename as ...
160 (process_stratum_target::supports_z_point_type): ... this.
161 (process_target::insert_point): Rename as ...
162 (process_stratum_target::insert_point): ... this.
163 (process_target::remove_point): Rename as ...
164 (process_stratum_target::remove_point): ... this.
165 (process_target::stopped_by_sw_breakpoint): Rename as ...
166 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
167 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
168 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
169 (process_target::stopped_by_hw_breakpoint): Rename as ...
170 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
171 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
172 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
173 (process_target::supports_hardware_single_step): Rename as ...
174 (process_stratum_target::supports_hardware_single_step): ... this.
175 (process_target::stopped_by_watchpoint): Rename as ...
176 (process_stratum_target::stopped_by_watchpoint): ... this.
177 (process_target::stopped_data_address): Rename as ...
178 (process_stratum_target::stopped_data_address): ... this.
179 (process_target::supports_read_offsets): Rename as ...
180 (process_stratum_target::supports_read_offsets): ... this.
181 (process_target::read_offsets): Rename as ...
182 (process_stratum_target::read_offsets): ... this.
183 (process_target::supports_get_tls_address): Rename as ...
184 (process_stratum_target::supports_get_tls_address): ... this.
185 (process_target::get_tls_address): Rename as ...
186 (process_stratum_target::get_tls_address): ... this.
187 (process_target::hostio_last_error): Rename as ...
188 (process_stratum_target::hostio_last_error): ... this.
189 (process_target::supports_qxfer_osdata): Rename as ...
190 (process_stratum_target::supports_qxfer_osdata): ... this.
191 (process_target::qxfer_osdata): Rename as ...
192 (process_stratum_target::qxfer_osdata): ... this.
193 (process_target::supports_qxfer_siginfo): Rename as ...
194 (process_stratum_target::supports_qxfer_siginfo): ... this.
195 (process_target::qxfer_siginfo): Rename as ...
196 (process_stratum_target::qxfer_siginfo): ... this.
197 (process_target::supports_non_stop): Rename as ...
198 (process_stratum_target::supports_non_stop): ... this.
199 (process_target::async): Rename as ...
200 (process_stratum_target::async): ... this.
201 (process_target::start_non_stop): Rename as ...
202 (process_stratum_target::start_non_stop): ... this.
203 (process_target::supports_multi_process): Rename as ...
204 (process_stratum_target::supports_multi_process): ... this.
205 (process_target::supports_fork_events): Rename as ...
206 (process_stratum_target::supports_fork_events): ... this.
207 (process_target::supports_vfork_events): Rename as ...
208 (process_stratum_target::supports_vfork_events): ... this.
209 (process_target::supports_exec_events): Rename as ...
210 (process_stratum_target::supports_exec_events): ... this.
211 (process_target::handle_new_gdb_connection): Rename as ...
212 (process_stratum_target::handle_new_gdb_connection): ... this.
213 (process_target::handle_monitor_command): Rename as ...
214 (process_stratum_target::handle_monitor_command): ... this.
215 (process_target::core_of_thread): Rename as ...
216 (process_stratum_target::core_of_thread): ... this.
217 (process_target::supports_read_loadmap): Rename as ...
218 (process_stratum_target::supports_read_loadmap): ... this.
219 (process_target::read_loadmap): Rename as ...
220 (process_stratum_target::read_loadmap): ... this.
221 (process_target::process_qsupported): Rename as ...
222 (process_stratum_target::process_qsupported): ... this.
223 (process_target::supports_tracepoints): Rename as ...
224 (process_stratum_target::supports_tracepoints): ... this.
225 (process_target::read_pc): Rename as ...
226 (process_stratum_target::read_pc): ... this.
227 (process_target::write_pc): Rename as ...
228 (process_stratum_target::write_pc): ... this.
229 (process_target::supports_thread_stopped): Rename as ...
230 (process_stratum_target::supports_thread_stopped): ... this.
231 (process_target::thread_stopped): Rename as ...
232 (process_stratum_target::thread_stopped): ... this.
233 (process_target::supports_get_tib_address): Rename as ...
234 (process_stratum_target::supports_get_tib_address): ... this.
235 (process_target::get_tib_address): Rename as ...
236 (process_stratum_target::get_tib_address): ... this.
237 (process_target::pause_all): Rename as ...
238 (process_stratum_target::pause_all): ... this.
239 (process_target::unpause_all): Rename as ...
240 (process_stratum_target::unpause_all): ... this.
241 (process_target::stabilize_threads): Rename as ...
242 (process_stratum_target::stabilize_threads): ... this.
243 (process_target::supports_fast_tracepoints): Rename as ...
244 (process_stratum_target::supports_fast_tracepoints): ... this.
245 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
246 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
247 (process_target::emit_ops): Rename as ...
248 (process_stratum_target::emit_ops): ... this.
249 (process_target::supports_disable_randomization): Rename as ...
250 (process_stratum_target::supports_disable_randomization): ... this.
251 (process_target::supports_qxfer_libraries_svr4): Rename as ...
252 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
253 (process_target::qxfer_libraries_svr4): Rename as ...
254 (process_stratum_target::qxfer_libraries_svr4): ... this.
255 (process_target::supports_agent): Rename as ...
256 (process_stratum_target::supports_agent): ... this.
257 (process_target::enable_btrace): Rename as ...
258 (process_stratum_target::enable_btrace): ... this.
259 (process_target::disable_btrace): Rename as ...
260 (process_stratum_target::disable_btrace): ... this.
261 (process_target::read_btrace): Rename as ...
262 (process_stratum_target::read_btrace): ... this.
263 (process_target::read_btrace_conf): Rename as ...
264 (process_stratum_target::read_btrace_conf): ... this.
265 (process_target::supports_range_stepping): Rename as ...
266 (process_stratum_target::supports_range_stepping): ... this.
267 (process_target::supports_pid_to_exec_file): Rename as ...
268 (process_stratum_target::supports_pid_to_exec_file): ... this.
269 (process_target::pid_to_exec_file): Rename as ...
270 (process_stratum_target::pid_to_exec_file): ... this.
271 (process_target::supports_multifs): Rename as ...
272 (process_stratum_target::supports_multifs): ... this.
273 (process_target::multifs_open): Rename as ...
274 (process_stratum_target::multifs_open): ... this.
275 (process_target::multifs_unlink): Rename as ...
276 (process_stratum_target::multifs_unlink): ... this.
277 (process_target::multifs_readlink): Rename as ...
278 (process_stratum_target::multifs_readlink): ... this.
279 (process_target::breakpoint_kind_from_pc): Rename as ...
280 (process_stratum_target::breakpoint_kind_from_pc): ... this.
281 (process_target::breakpoint_kind_from_current_state): Rename as ...
282 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
283 (process_target::thread_name): Rename as ...
284 (process_stratum_target::thread_name): ... this.
285 (process_target::thread_handle): Rename as ...
286 (process_stratum_target::thread_handle): ... this.
287 (process_target::supports_software_single_step): Rename as ...
288 (process_stratum_target::supports_software_single_step): ... this.
289 (process_target::supports_catch_syscall): Rename as ...
290 (process_stratum_target::supports_catch_syscall): ... this.
291 (process_target::get_ipa_tdesc_idx): Rename as ...
292 (process_stratum_target::get_ipa_tdesc_idx): ... this.
294 2020-02-20 Pedro Alves <palves@redhat.com>
296 * target.cc (set_target_ops): Simply copy the given target pointer
297 instead of creating a copy of the pointed object.
299 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
301 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
304 * target.h (struct process_stratum_target): Remove the target op.
305 (class process_target): Add the target op.
306 (target_get_ipa_tdesc_idx): Update the macro.
307 * target.cc (process_target::get_ipa_tdesc_idx): Define.
309 Update the derived classes and callers below.
311 * linux-low.cc (linux_target_ops): Update.
312 (linux_get_ipa_tdesc_idx): Turn into ...
313 (linux_process_target::get_ipa_tdesc_idx): ... this.
314 * linux-low.h (class linux_process_target): Update.
315 * lynx-low.cc (lynx_target_ops): Update.
316 * nto-low.cc (nto_target_ops): Update.
317 * win32-low.cc (win32_target_ops): Update.
319 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
321 Turn process_stratum_target's supports_catch_syscall op into a
322 method of process_target.
324 * target.h (struct process_stratum_target): Remove the target op.
325 (class process_target): Add the target op.
326 (target_supports_catch_syscall): Update the macro.
327 * target.cc (process_target::supports_catch_syscall): Define.
329 Update the derived classes and callers below.
331 * linux-low.cc (linux_target_ops): Update.
332 (linux_supports_catch_syscall): Turn into ...
333 (linux_process_target::supports_catch_syscall): ... this.
334 * linux-low.h (class linux_process_target): Update.
335 * lynx-low.cc (lynx_target_ops): Update.
336 * nto-low.cc (nto_target_ops): Update.
337 * win32-low.cc (win32_target_ops): Update.
339 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
341 Turn process_stratum_target's supports_software_single_step op
342 into a method of process_target.
344 * target.h (struct process_stratum_target): Remove the target op.
345 (class process_target): Add the target op.
346 (target_supports_software_single_step): Update the macro.
347 * target.cc (process_target::supports_software_single_step): Define.
349 Update the derived classes and callers below.
351 * linux-low.cc (linux_target_ops): Update.
352 (linux_supports_software_single_step): Turn into ...
353 (linux_process_target::supports_software_single_step): ... this.
354 * linux-low.h (class linux_process_target): Update.
355 * lynx-low.cc (lynx_target_ops): Update.
356 * nto-low.cc (nto_target_ops): Update.
357 * win32-low.cc (win32_target_ops): Update.
359 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
361 Turn process_stratum_target's thread_name and thread_handle ops
362 into methods of process_target.
364 * target.h (struct process_stratum_target): Remove the target ops.
365 (class process_target): Add the target ops.
366 (target_thread_name): Update the macro.
367 (target_thread_handle): Update the macro.
368 * target.cc (process_target::thread_name): Define.
369 (process_target::thread_handle): Define.
371 Update the derived classes and callers below.
373 * linux-low.cc (linux_target_ops): Update.
374 (linux_process_target::thread_name): Define.
375 (linux_process_target::thread_handle): Define.
376 * linux-low.h (class linux_process_target): Update.
377 * lynx-low.cc (lynx_target_ops): Update.
378 * nto-low.cc (nto_target_ops): Update.
379 * win32-low.cc (win32_target_ops): Update.
381 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
383 Turn process_stratum_target's breakpoint_kind_from_pc,
384 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
385 ops into methods of process_target.
387 * target.h (struct process_stratum_target): Remove the target op.
388 (class process_target): Add the target op.
389 (target_breakpoint_kind_from_pc): Update the macro.
390 (target_breakpoint_kind_from_current_state): Update the macro.
391 (default_breakpoint_kind_from_pc): Remove declaration.
392 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
393 (process_target::breakpoint_kind_from_pc): ... this.
394 (process_target::breakpoint_kind_from_current_state): Define.
396 Update the derived classes and callers below.
398 * mem-break.cc (bp_size): Update.
400 * linux-low.cc (linux_target_ops): Update.
401 (linux_wait_1): Update.
402 (linux_breakpoint_kind_from_pc): Turn into ...
403 (linux_process_target::breakpoint_kind_from_pc): ... this.
404 (linux_sw_breakpoint_from_kind): Turn into ...
405 (linux_process_target::sw_breakpoint_from_kind): ... this.
406 (linux_breakpoint_kind_from_current_state): Turn into ...
407 (linux_process_target::breakpoint_kind_from_current_state): ... this.
408 * linux-low.h (class linux_process_target): Update.
409 * lynx-low.cc (lynx_target_ops): Update.
410 (lynx_process_target::sw_breakpoint_from_kind): Define.
411 * lynx-low.h (class lynx_process_target): Update.
412 * nto-low.cc (nto_target_ops): Update.
413 (nto_sw_breakpoint_from_kind): Turn into ...
414 (nto_process_target::sw_breakpoint_from_kind): ... this.
415 * nto-low.h (class nto_process_target): Update.
416 * win32-low.cc (win32_target_ops): Update.
417 (win32_sw_breakpoint_from_kind): Turn into ...
418 (win32_process_target::sw_breakpoint_from_kind): ... this.
419 * win32-low.h (class win32_process_target): Update.
421 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
423 Turn process_stratum_target's multifs_open, multifs_readlink,
424 multifs_unlink ops into methods of process_target.
426 * target.h (struct process_stratum_target): Remove the target ops.
427 (class process_target): Add the target ops. Also add
429 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
431 (process_target::supports_multifs): Define.
432 (process_target::multifs_open): Define.
433 (process_target::multifs_readlink): Define.
434 (process_target::multifs_unlink): Define.
436 Update the derived classes and callers below.
438 * hostio.cc (handle_setfs): Update.
439 (handle_open): Update.
440 (handle_unlink): Update.
441 (handle_readlink): Update.
442 * linux-low.cc (linux_target_ops): Update.
443 (linux_process_target::supports_multifs): Define.
444 (linux_process_target::multifs_open): Define.
445 (linux_process_target::multifs_readlink): Define.
446 (linux_process_target::multifs_unlink): Define.
447 * linux-low.h (class linux_process_target): Update.
448 * lynx-low.cc (lynx_target_ops): Update.
449 * nto-low.cc (nto_target_ops): Update.
450 * win32-low.cc (win32_target_ops): Update.
452 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
454 Turn process_stratum_target's pid_to_exec_file op into a method
457 * target.h (struct process_stratum_target): Remove the target op.
458 (class process_target): Add the target op. Also add
459 'supports_pid_to_exec_file'.
460 * target.cc (process_target::pid_to_exec_file): Define.
461 (process_target::supports_pid_to_exec_file): Define.
463 Update the derived classes and callers below.
465 * server.cc (handle_qxfer_exec_file): Update.
466 (handle_query): Update.
467 * linux-low.cc (linux_target_ops): Update.
468 (linux_process_target::supports_pid_to_exec_file): Define.
469 (linux_process_target::pid_to_exec_file): Define.
470 * linux-low.h (class linux_process_target): Update.
471 * lynx-low.cc (lynx_target_ops): Update.
472 * nto-low.cc (nto_target_ops): Update.
473 * win32-low.cc (win32_target_ops): Update.
475 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
477 Turn process_stratum_target's supports_range_stepping op into a
478 method of process_target.
480 * target.h (struct process_stratum_target): Remove the target op.
481 (class process_target): Add the target op.
482 (target_supports_range_stepping): Update the macro.
483 * target.cc (process_target::supports_range_stepping): Define.
485 Update the derived classes and callers below.
487 * linux-low.cc (linux_target_ops): Update.
488 (linux_supports_range_stepping): Turn into ...
489 (linux_process_target::supports_range_stepping): ... this.
490 * linux-low.h (class linux_process_target): Update.
491 * lynx-low.cc (lynx_target_ops): Update.
492 * nto-low.cc (nto_target_ops): Update.
493 * win32-low.cc (win32_target_ops): Update.
495 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
497 Turn process_stratum_target's btrace-related ops (enable_btrace,
498 disable_btrace, read_btrace, read_btrace_conf) into methods of
501 * target.h (struct process_stratum_target): Remove the target ops.
502 (class process_target): Add the target ops.
503 (target_enable_btrace): Update.
504 (target_disable_btrace): Update.
505 (target_read_btrace): Update.
506 (target_read_btrace_conf): Update.
507 * target.cc (process_target::enable_btrace): Define.
508 (process_target::disable_btrace): Define.
509 (process_target::read_btrace): Define.
510 (process_target::read_btrace_conf): Define.
512 Update the derived classes and callers below.
514 * linux-low.cc (linux_target_ops): Update.
515 (linux_process_target:enable_btrace): Define as a wrapper around
517 (linux_low_disable_btrace): Turn into ...
518 (linux_process_target::disable_btrace): ... this.
519 (linux_low_read_btrace): Turn into ...
520 (linux_process_target::read_btrace): ... this.
521 (linux_low_btrace_conf): Turn into ...
522 (linux_process_target::read_btrace_conf): ... this.
523 * linux-low.h (class linux_process_target): Update.
524 * lynx-low.cc (lynx_target_ops): Update.
525 * nto-low.cc (nto_target_ops): Update.
526 * win32-low.cc (win32_target_ops): Update.
528 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
530 Turn process_stratum_target's supports_agent op into a method of
533 * target.h (struct process_stratum_target): Remove the target op.
534 (class process_target): Add the target op.
535 (target_supports_agent): Update the macro.
536 * target.cc (process_target::supports_agent): Define.
538 Update the derived classes and callers below.
540 * linux-low.cc (linux_target_ops): Update.
541 (linux_supports_agent): Turn into ...
542 (linux_process_target::supports_agent): ... this.
543 * linux-low.h (class linux_process_target): Update.
544 * lynx-low.cc (lynx_target_ops): Update.
545 * nto-low.cc (nto_target_ops): Update.
546 * win32-low.cc (win32_target_ops): Update.
548 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
550 Turn process_stratum_target's qxfer_libraries_svr4 op into a
551 method of process_target.
553 * target.h (struct process_stratum_target): Remove the target op.
554 (class process_target): Add the target op. Also add
555 'supports_qxfer_libraries_svr4'.
556 * target.cc (process_target::qxfer_libraries_svr4): Define.
557 (process_target::supports_qxfer_libraries_svr4): Define.
559 Update the derived classes and callers below.
561 * server.cc (handle_qxfer_libraries_svr4): Update.
562 (handle_query): Update.
563 * linux-low.cc (linux_target_ops): Update.
564 (linux_process_target::supports_qxfer_libraries_svr4): Define.
565 (linux_qxfer_libraries_svr4): Turn into ...
566 (linux_process_target::qxfer_libraries_svr4): ... this.
567 * linux-low.h (class linux_process_target): Update.
568 * lynx-low.cc (lynx_target_ops): Update.
569 * nto-low.cc (nto_target_ops): Update.
570 * win32-low.cc (win32_target_ops): Update.
572 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
574 Turn process_stratum_target's supports_disable_randomization op
575 into a method of process_target.
577 * target.h (struct process_stratum_target): Remove the target op.
578 (class process_target): Add the target op.
579 (target_supports_disable_randomization): Update the macro.
580 * target.cc (process_target::supports_disable_randomization): Define.
582 Update the derived classes and callers below.
584 * linux-low.cc (linux_target_ops): Update.
585 (linux_supports_disable_randomization): Turn into ...
586 (linux_process_target::supports_disable_randomization): ... this.
587 * linux-low.h (class linux_process_target): Update.
588 * lynx-low.cc (lynx_target_ops): Update.
589 * nto-low.cc (nto_target_ops): Update.
590 * win32-low.cc (win32_target_ops): Update.
592 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
594 Turn process_stratum_target's emit_ops op into a method of
597 * target.h (struct process_stratum_target): Remove the target op.
598 (class process_target): Add the target op.
599 (target_emit_ops): Update the macro.
600 * target.cc (process_target::emit_ops): Define.
602 Update the derived classes and callers below.
604 * linux-low.cc (linux_target_ops): Update.
605 (linux_emit_ops): Turn into ...
606 (linux_process_target::emit_ops): ... this.
607 * linux-low.h (class linux_process_target): Update.
608 * lynx-low.cc (lynx_target_ops): Update.
609 * nto-low.cc (nto_target_ops): Update.
610 * win32-low.cc (win32_target_ops): Update.
612 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
614 Turn process_stratum_target's install_fast_tracepoint_jump_pad
615 and get_min_fast_tracepoint_insn_len ops into methods of
618 * target.h (struct process_stratum_target): Remove the target ops.
619 (class process_target): Add the target ops. Also add
620 'supports_fast_tracepoints'.
621 (target_supports_fast_tracepoints): Update the macro.
622 (target_get_min_fast_tracepoint_insn_len): Update the macro.
623 (install_fast_tracepoint_jump_pad): Update and rename the macro
625 (target_install_fast_tracepoint_jump_pad): ... this.
626 * target.cc (process_target::supports_fast_tracepoints): Define.
627 (process_target::install_fast_tracepoint_jump_pad): Define.
628 (process_target::get_min_fast_tracepoint_insn_len): Define.
630 Update the derived classes and callers below.
632 * tracepoint.cc (install_fast_tracepoint): Update.
633 * linux-low.cc (linux_target_ops): Update.
634 (linux_process_target::supports_fast_tracepoints): Define.
635 (linux_install_fast_tracepoint_jump_pad): Turn into ...
636 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
637 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
638 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
639 * linux-low.h (class linux_process_target): Update.
640 * lynx-low.cc (lynx_target_ops): Update.
641 * nto-low.cc (nto_target_ops): Update.
642 * win32-low.cc (win32_target_ops): Update.
644 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
646 Turn process_stratum_target's stabilize_threads op into a
647 method of process_target.
649 * target.h (struct process_stratum_target): Remove the target op.
650 (class process_target): Add the target op.
651 (target_stabilize_threads): Update the macro.
652 * target.cc (process_target::stabilize_threads): Define.
654 Update the derived classes and callers below.
656 * server.cc (handle_status): Update.
657 * tracepoint.cc (cmd_qtdp): Update.
658 (cmd_qtstart): Update.
659 * linux-low.cc (linux_target_ops): Update.
660 (linux_stabilize_threads): Turn into ...
661 (linux_process_target::stabilize_threads): ... this.
662 (linux_wait_1): Update.
663 * linux-low.h (class linux_process_target): Update.
664 * lynx-low.cc (lynx_target_ops): Update.
665 * nto-low.cc (nto_target_ops): Update.
666 * win32-low.cc (win32_target_ops): Update.
668 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
670 Turn process_stratum_target's pause_all and unpause_all ops
671 into methods of process_target.
673 * target.h (struct process_stratum_target): Remove the target ops.
674 (class process_target): Add the target ops.
675 (pause_all): Update the macro and rename to...
676 (target_pause_all): ... this.
677 (unpause_all): Update the macro and rename to...
678 (target_unpause_all): ... this.
679 * target.cc (process_target::pause_all): Define.
680 (process_target::unpause_all): Define.
682 Update the derived classes and callers below.
684 * server.cc (handle_status): Update.
685 * tracepoint.cc (clear_installed_tracepoints): Update.
687 (cmd_qtstart): Update.
688 (stop_tracing): Update.
689 (cmd_qtstatus): Update.
690 (upload_fast_traceframes): Update.
691 (run_inferior_command): Update.
692 * linux-low.cc (linux_target_ops): Update.
693 (linux_pause_all): Turn into ...
694 (linux_process_target::pause_all): ... this.
695 (linux_unpause_all): Turn into ...
696 (linux_process_target::unpause_all): ... this.
697 (linux_process_target::prepare_to_access_memory): Update.
698 (linux_process_target::done_accessing_memory): Update.
699 * linux-low.h (class linux_process_target): Update.
700 * lynx-low.cc (lynx_target_ops): Update.
701 * nto-low.cc (nto_target_ops): Update.
702 * win32-low.cc (win32_target_ops): Update.
704 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
706 Turn process_stratum_target's get_tib_address op into a method of
709 * target.h (struct process_stratum_target): Remove the target op.
710 (class process_target): Add the target op. Also add
711 'supports_get_tib_address'.
712 * target.cc (process_target::get_tib_address): Define.
713 (process_target::supports_get_tib_address): Define.
715 Update the derived classes and callers below.
717 * server.cc (handle_query): Update.
718 * linux-low.cc (win32_target_ops): Update.
719 * lynx-low.cc (lynx_target_ops): Update.
720 * nto-low.cc (nto_target_ops): Update.
721 * win32-low.cc (win32_target_ops): Update.
722 (win32_process_target::supports_get_tib_address): Define.
723 (win32_get_tib_address): Turn into ...
724 (win32_process_target::get_tib_address): ... this.
725 * win32-low.h (class win32_process_target): Update.
727 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
729 Turn process_stratum_target's thread_stopped op into a method of
732 * target.h (struct process_stratum_target): Remove the target op.
733 (class process_target): Add the target op. Also add
734 'supports_thread_stopped'.
735 (target_thread_stopped): Update the macro.
736 * target.cc (process_target::thread_stopped): Define.
737 (process_target::supports_thread_stopped): Define.
738 (prepare_to_access_memory): Update.
740 Update the derived classes and callers below.
742 * server.cc (queue_stop_reply_callback): Update.
743 * linux-low.cc (linux_target_ops): Update.
744 (linux_process_target::supports_thread_stopped): Define.
745 (linux_thread_stopped): Turn into ...
746 (linux_process_target::thread_stopped): ... this.
747 * linux-low.h (class linux_process_target): Update.
748 * lynx-low.cc (lynx_target_ops): Update.
749 * nto-low.cc (nto_target_ops): Update.
750 * win32-low.cc (win32_target_ops): Update.
752 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
754 Turn process_stratum_target's read_pc and write_pc ops into
755 methods of process_target.
757 * target.h (struct process_stratum_target): Remove the target ops.
758 (class process_target): Add the target ops.
759 * target.cc (process_target::read_pc): Define.
760 (process_target::write_pc): Define.
762 Update the derived classes and callers below.
764 * regcache.cc (regcache_read_pc): Update.
765 (regcache_write_pc): Update.
766 * linux-low.cc (linux_target_ops): Update.
767 (linux_read_pc): Turn into ...
768 (linux_process_target::read_pc): ... this.
769 (linux_write_pc): Turn into ...
770 (linux_process_target::write_pc): ... this.
771 * linux-low.h (class linux_process_target): Update.
772 * lynx-low.cc (lynx_target_ops): Update.
773 * nto-low.cc (nto_target_ops): Update.
774 * win32-low.cc (win32_target_ops): Update.
776 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
778 Turn process_stratum_target's supports_tracepoints op into a
779 method of process_target.
781 * target.h (struct process_stratum_target): Remove the target op.
782 (class process_target): Add the target op.
783 (target_supports_tracepoints): Update the macro.
784 * target.cc (process_target::supports_tracepoints): Define.
786 Update the derived classes and callers below.
788 * linux-low.cc (linux_target_ops): Update.
789 (linux_supports_tracepoints): Turn into ...
790 (linux_process_target::supports_tracepoints): ... this.
791 * linux-low.h (class linux_process_target): Update.
792 * lynx-low.cc (lynx_target_ops): Update.
793 * nto-low.cc (nto_target_ops): Update.
794 * win32-low.cc (win32_target_ops): Update.
796 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
798 Turn process_stratum_target's process_qsupported op into a method
801 * target.h (struct process_stratum_target): Remove the target op.
802 (class process_target): Add the target op.
803 (target_process_qsupported): Update the macro.
804 * target.cc (process_target::process_qsupported): Define.
806 Update the derived classes and callers below.
808 * linux-low.cc (linux_target_ops): Update.
809 (linux_process_qsupported): Turn into ...
810 (linux_process_target::process_qsupported): ... this.
811 * linux-low.h (class linux_process_target): Update.
812 * lynx-low.cc (lynx_target_ops): Update.
813 * nto-low.cc (nto_target_ops): Update.
814 * win32-low.cc (win32_target_ops): Update.
816 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
818 Turn process_stratum_target's read_loadmap op into a method of
821 * target.h (struct process_stratum_target): Remove the target op.
822 (class process_target): Add the target op. Also add
823 'supports_read_loadmap'.
824 * target.cc (process_target::read_loadmap): Define.
825 (process_target::supports_read_loadmap): Define.
827 Update the derived classes and callers below.
829 * server.cc (handle_qxfer_fdpic): Update.
830 (handle_query): Update.
831 * linux-low.cc (linux_target_ops): Update.
832 (linux_process_target::supports_read_loadmap): Define.
833 (linux_read_loadmap): Turn into ...
834 (linux_process_target::read_loadmap): ... this.
835 * linux-low.h (class linux_process_target): Update.
836 * lynx-low.cc (lynx_target_ops): Update.
837 * nto-low.cc (nto_target_ops): Update.
838 * win32-low.cc (win32_target_ops): Update.
840 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
842 Turn process_stratum_target's core_of_thread op into a method of
845 * target.h (struct process_stratum_target): Remove the target op.
846 (class process_target): Add the target op.
847 (target_core_of_thread): Update the macro.
848 * target.cc (process_target::core_of_thread): Define.
850 Update the derived classes and callers below.
852 * linux-low.cc (linux_target_ops): Update.
853 (linux_process_target::core_of_thread): Define.
854 * linux-low.h (class linux_process_target): Update.
855 * lynx-low.cc (lynx_target_ops): Update.
856 * nto-low.cc (nto_target_ops): Update.
857 * win32-low.cc (win32_target_ops): Update.
859 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
861 Turn process_stratum_target's handle_monitor_command op into a
862 method of process_target.
864 * target.h (struct process_stratum_target): Remove the target op.
865 (class process_target): Add the target op.
866 (target_handle_monitor_command): Update the macro.
867 * target.cc (process_target::handle_monitor_command): Define.
869 Update the derived classes and callers below.
871 * server.cc (handle_query): Update.
872 * linux-low.cc (linux_target_ops): Update.
873 (linux_process_target::handle_monitor_command): Define.
874 * linux-low.h (class linux_process_target): Update.
875 * lynx-low.cc (lynx_target_ops): Update.
876 * nto-low.cc (nto_target_ops): Update.
877 * win32-low.cc (win32_target_ops): Update.
879 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
881 Turn process_stratum_target's handle_new_gdb_connection op into a
882 method of process_target.
884 * target.h (struct process_stratum_target): Remove the target op.
885 (class process_target): Add the target op.
886 (target_handle_new_gdb_connection): Update the macro.
887 * target.cc (process_target::handle_new_gdb_connection): Define.
889 Update the derived classes and callers below.
891 * linux-low.cc (linux_target_ops): Update.
892 (linux_handle_new_gdb_connection): Turn into ...
893 (linux_process_target::handle_new_gdb_connection): ... this.
894 * linux-low.h (class linux_process_target): Update.
895 * lynx-low.cc (lynx_target_ops): Update.
896 * nto-low.cc (nto_target_ops): Update.
897 * win32-low.cc (win32_target_ops): Update.
899 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
901 Turn process_stratum_target's supports_fork_events,
902 supports_vfork_events, and supports_exec_events ops into methods
905 * target.h (struct process_stratum_target): Remove the target ops.
906 (class process_target): Add the target ops.
907 (target_supports_fork_events): Update the macro.
908 (target_supports_vfork_events): Update the macro.
909 (target_supports_exec_events): Update the macro.
910 * target.cc (process_target::supports_fork_events): Define.
911 (process_target::supports_vfork_events): Define.
912 (process_target::supports_exec_events): Define.
914 Update the derived classes and callers below.
916 * linux-low.cc (linux_target_ops): Update.
917 (linux_supports_fork_events): Turn into ...
918 (linux_process_target::supports_fork_events): ... this.
919 (linux_supports_vfork_events): Turn into ...
920 (linux_process_target::supports_vfork_events): ... this.
921 (linux_supports_exec_events): Turn into ...
922 (linux_process_target::supports_exec_events): ... this.
923 * linux-low.h (class linux_process_target): Update.
924 * lynx-low.cc (lynx_target_ops): Update.
925 * nto-low.cc (nto_target_ops): Update.
926 * win32-low.cc (win32_target_ops): Update.
928 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
930 Turn process_stratum_target's supports_multi_process op into a
931 method of process_target.
933 * target.h (struct process_stratum_target): Remove the target op.
934 (class process_target): Add the target op.
935 * target.cc (process_target::supports_multi_process): Define.
936 (target_supports_multi_process): Update.
938 Update the derived classes and callers below.
940 * linux-low.cc (linux_target_ops): Update.
941 (linux_supports_multi_process): Turn into ...
942 (linux_process_target::supports_multi_process): ... this.
943 * linux-low.h (class linux_process_target): Update.
944 * lynx-low.cc (lynx_target_ops): Update.
945 * nto-low.cc (nto_target_ops): Update.
946 * win32-low.cc (win32_target_ops): Update.
948 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
950 Turn process_stratum_target's supports_non_stop, async, and
951 start_non_stop ops into methods of process_target.
953 * target.h (struct process_stratum_target): Remove the target ops.
954 (class process_target): Add the target ops.
955 (target_supports_non_stop): Update the macro.
956 (target_async): Update the macro.
957 (start_non_stop): Remove declaration.
958 * target.cc (process_target::supports_non_stop): Define.
959 (process_target::async): Define.
960 (process_target::start_non_stop): Define.
961 (start_non_stop): Remove.
963 Update the derived classes and callers below.
965 * server.cc (handle_qxfer_siginfo): Update.
966 (handle_query): Update.
967 * linux-low.cc (linux_target_ops): Update.
968 (linux_supports_non_stop): Turn into ...
969 (linux_process_target::supports_non_stop): ... this.
970 (linux_async): Turn into ...
971 (linux_process_target::async): ... this.
972 (linux_start_non_stop): Turn into ...
973 (linux_process_target::start_non_stop): ... this.
974 * linux-low.h (class linux_process_target): Update.
975 * lynx-low.cc (lynx_target_ops): Update.
976 * nto-low.cc (nto_target_ops): Update.
977 (nto_supports_non_stop): Remove; rely on the default behavior
979 * win32-low.cc (win32_target_ops): Update.
981 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
983 Turn process_stratum_target's qxfer_siginfo op into a method of
986 * target.h (struct process_stratum_target): Remove the target op.
987 (class process_target): Add the target op. Also add
988 'supports_qxfer_siginfo'.
989 * target.cc (process_target::qxfer_siginfo): Define.
990 (process_target::supports_qxfer_siginfo): Define.
992 Update the derived classes and callers below.
994 * server.cc (handle_qxfer_siginfo): Update.
995 (handle_query): Update.
996 * linux-low.cc (linux_target_ops): Update.
997 (linux_process_target::supports_qxfer_siginfo): Define.
998 (linux_xfer_siginfo): Turn into ...
999 (linux_process_target::qxfer_siginfo): ... this.
1000 * linux-low.h (class linux_process_target): Update.
1001 * lynx-low.cc (lynx_target_ops): Update.
1002 * nto-low.cc (nto_target_ops): Update.
1003 * win32-low.cc (win32_target_ops): Update.
1005 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1007 Turn process_stratum_target's qxfer_osdata op into a method of
1010 * target.h (struct process_stratum_target): Remove the target op.
1011 (class process_target): Add the target op. Also add
1012 'supports_qxfer_osdata'.
1013 * target.cc (process_target::qxfer_osdata): Define.
1014 (process_target::supports_qxfer_osdata): Define.
1016 Update the derived classes and callers below.
1018 * server.cc (handle_qxfer_osdata): Update.
1019 (handle_query): Update.
1020 * linux-low.cc (linux_target_ops): Update.
1021 (linux_process_target::supports_qxfer_osdata): Define.
1022 (linux_qxfer_osdata): Turn into ...
1023 (linux_process_target::qxfer_osdata): ... this.
1024 * linux-low.h (class linux_process_target): Update.
1025 * lynx-low.cc (lynx_target_ops): Update.
1026 * nto-low.cc (nto_target_ops): Update.
1027 * win32-low.cc (win32_target_ops): Update.
1029 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1031 Turn process_stratum_target's hostio_last_error op into a
1032 method of process_target.
1034 * target.h (struct process_stratum_target): Remove the target op.
1035 (class process_target): Add the target op.
1036 * target.cc: Add "hostio.h" to includes.
1037 (process_target::hostio_last_error): Define.
1039 Update the derived classes and callers below.
1041 * hostio.cc (hostio_error): Update.
1042 * linux-low.cc: Remove "hostio.h" from includes.
1043 (linux_target_ops): Update.
1044 * lynx-low.cc (lynx_target_ops): Update.
1045 * nto-low.cc (nto_target_ops): Update.
1046 * win32-low.h (class win32_process_target): Update.
1047 * win32-low.cc (win32_target_ops): Update.
1048 (wince_hostio_last_error): Turn into ...
1049 (win32_process_target::hostio_last_error): ... this.
1051 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1053 Turn process_stratum_target's get_tls_address op into a method of
1056 * target.h (struct process_stratum_target): Remove the target op.
1057 (class process_target): Add the target op. Also add
1058 'supports_get_tls_address'.
1059 * target.cc (process_target::get_tls_address): Define.
1060 (process_target::supports_get_tls_address): Define.
1062 Update the derived classes and callers below.
1064 * server.cc (handle_query): Update.
1065 * linux-low.cc (linux_target_ops): Update.
1066 (linux_process_target::supports_get_tls_address): Define.
1067 (linux_process_target::get_tls_address): Define.
1068 * linux-low.h (class linux_process_target): Update.
1069 * lynx-low.cc (lynx_target_ops): Update.
1070 * nto-low.cc (nto_target_ops): Update.
1071 * win32-low.cc (win32_target_ops): Update.
1073 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1075 Turn process_stratum_target's read_offsets op into a method of
1078 * target.h (struct process_stratum_target): Remove the target op.
1079 (class process_target): Add the target op. Also add
1080 'supports_read_offsets'.
1081 * target.cc (process_target::read_offsets): Define.
1082 (process_target::supports_read_offsets): Define.
1084 Update the derived classes and callers below.
1086 * server.cc (handle_query): Update.
1087 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1088 (linux_target_ops): Update.
1089 (linux_process_target::supports_read_offsets): Define.
1090 (linux_read_offsets): Turn into ...
1091 (linux_process_target::read_offsets): ... this.
1092 * linux-low.h (class linux_process_target): Update.
1093 * lynx-low.cc (lynx_target_ops): Update.
1094 * nto-low.cc (nto_target_ops): Update.
1095 * win32-low.cc (win32_target_ops): Update.
1097 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1099 Turn process_stratum_target's stopped_by_watchpoint and
1100 stopped_data_address ops into methods of process_target.
1102 * target.h (struct process_stratum_target): Remove the target ops.
1103 (class process_target): Add the target ops.
1104 * target.cc (process_target::stopped_by_watchpoint): Define.
1105 (process_target::stopped_data_address): Define.
1107 Update the derived classes and callers below.
1109 * remote-utils.cc (prepare_resume_reply): Update.
1110 * linux-low.cc (linux_target_ops): Update.
1111 (linux_stopped_by_watchpoint): Turn into ...
1112 (linux_process_target::stopped_by_watchpoint): ... this.
1113 (linux_stopped_data_address): Turn into ...
1114 (linux_process_target::stopped_data_address): ... this.
1115 * linux-low.h (class linux_process_target): Update.
1116 * lynx-low.cc (lynx_target_ops): Update.
1117 * nto-low.cc (nto_target_ops): Update.
1118 (nto_stopped_by_watchpoint): Turn into ...
1119 (nto_process_target::stopped_by_watchpoint): ... this.
1120 (nto_stopped_data_address): Turn into ...
1121 (nto_process_target::stopped_data_address): ... this.
1122 * nto-low.h (class nto_process_target): Update.
1123 * win32-low.cc (win32_target_ops): Update.
1124 (win32_stopped_by_watchpoint): Turn into ...
1125 (win32_process_target::stopped_by_watchpoint): ... this.
1126 (win32_stopped_data_address): Turn into ...
1127 (win32_process_target::stopped_data_address): ... this.
1128 * win32-low.h (class win32_process_target): Update.
1130 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1132 Turn process_stratum_target's supports_hardware_single_step op into
1133 a method of process_target.
1135 * target.h (struct process_stratum_target): Remove the target op.
1136 (class process_target): Add the target op.
1137 (target_supports_hardware_single_step): Update the macro.
1138 (target_can_do_hardware_single_step): Remove declaration.
1139 * target.cc (process_target::supports_hardware_single_step): Define.
1140 (target_can_do_hardware_single_step): Remove.
1142 Update the derived classes and callers below.
1144 * linux-low.h (class linux_process_target): Update.
1145 * linux-low.cc (linux_target_ops): Update.
1146 (linux_supports_hardware_single_step): Turn into ...
1147 (linux_process_target::supports_hardware_single_step): ... this.
1148 * lynx-low.h (class lynx_process_target): Update.
1149 * lynx-low.cc (lynx_target_ops): Update.
1150 (lynx_process_target::supports_hardware_single_step): Define.
1151 * nto-low.h (class nto_process_target): Update.
1152 * nto-low.cc (nto_target_ops): Update.
1153 (nto_process_target::supports_hardware_single_step): Define.
1154 * win32-low.h (class win32_process_target): Update.
1155 * win32-low.cc (win32_target_ops): Update.
1156 (win32_process_target::supports_hardware_single_step): Define.
1158 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1160 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1161 ops into methods of process_target.
1163 * target.h (struct process_stratum_target): Remove the target ops.
1164 (class process_target): Add the target ops.
1165 (target_stopped_by_hw_breakpoint): Update the macro.
1166 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1167 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1168 (process_target::supports_stopped_by_hw_breakpoint): Define.
1170 Update the derived classes and callers below.
1172 * linux-low.cc (linux_target_ops): Update.
1173 (linux_stopped_by_hw_breakpoint): Turn into ...
1174 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1175 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1176 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1177 * linux-low.h (class linux_process_target): Update.
1178 * lynx-low.cc (lynx_target_ops): Update.
1179 * nto-low.cc (nto_target_ops): Update.
1180 * win32-low.cc (win32_target_ops): Update.
1182 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1184 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1185 ops into methods of process_target.
1187 * target.h (struct process_stratum_target): Remove the target ops.
1188 (class process_target): Add the target ops.
1189 (target_stopped_by_sw_breakpoint): Update the macro.
1190 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1191 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1192 (process_target::supports_stopped_by_sw_breakpoint): Define.
1194 Update the derived classes and callers below.
1196 * linux-low.cc (linux_target_ops): Update.
1197 (linux_stopped_by_sw_breakpoint): Turn into ...
1198 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1199 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1200 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1201 * linux-low.h (class linux_process_target): Update.
1202 * lynx-low.cc (lynx_target_ops): Update.
1203 * nto-low.cc (nto_target_ops): Update.
1204 * win32-low.cc (win32_target_ops): Update.
1206 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1208 Turn process_stratum_target's insert_point and remove_point ops
1209 into methods of process_target.
1211 * target.h (struct process_stratum_target): Remove the target ops.
1212 (class process_target): Add the target ops.
1213 * target.cc (process_target::insert_point): Define.
1214 (process_target::remove_point): Define.
1216 Update the derived classes and callers below.
1218 * mem-break.cc (set_raw_breakpoint_at): Update.
1219 (delete_raw_breakpoint): Update.
1220 (uninsert_raw_breakpoint): Update.
1221 (reinsert_raw_breakpoint): Update.
1222 * linux-low.cc (linux_target_ops): Update.
1223 (linux_insert_point): Turn into ...
1224 (linux_process_target::insert_point): ... this.
1225 (linux_remove_point): Turn into ...
1226 (linux_process_target::remove_point): ... this.
1227 * linux-low.h (class linux_process_target): Update.
1228 * lynx-low.cc (lynx_target_ops): Update.
1229 * nto-low.cc (nto_target_ops): Update.
1230 (nto_insert_point): Turn into ...
1231 (nto_process_target::insert_point): ... this.
1232 (nto_remove_point): Turn into ...
1233 (nto_process_target::remove_point): ... this.
1234 * nto-low.h (class nto_process_target): Update.
1235 * win32-low.cc (win32_target_ops): Update.
1236 (win32_insert_point): Turn into ...
1237 (win32_process_target::insert_point): ... this.
1238 (win32_remove_point): Turn into ...
1239 (win32_process_target::remove_point): ... this.
1240 * win32-low.h (class win32_process_target): Update.
1242 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1244 Turn process_stratum_target's supports_z_point_type op into a
1245 method of process_target.
1247 * target.h (struct process_stratum_target): Remove the target op.
1248 (class process_target): Add the target op.
1249 * target.cc (process_target::supports_z_point_type): Define.
1251 Update the derived classes and callers below.
1253 * mem-break.cc (z_type_supported): Update.
1254 * linux-low.cc (linux_target_ops): Update.
1255 (linux_supports_z_point_type): Turn into ...
1256 (linux_process_target::supports_z_point_type): ... this.
1257 * linux-low.h (class linux_process_target): Update.
1258 * lynx-low.cc (lynx_target_ops): Update.
1259 * nto-low.cc (nto_target_ops): Update.
1260 (nto_supports_z_point_type): Turn into ...
1261 (nto_process_target::supports_z_point_type): ... this.
1262 * nto-low.h (class nto_process_target): Update.
1263 * win32-low.cc (win32_target_ops): Update.
1264 (win32_supports_z_point_type): Turn into ...
1265 (win32_process_target::supports_z_point_type): ... this.
1266 * win32-low.h (class win32_process_target): Update.
1268 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1270 Turn process_stratum_target's read_auxv op into a method of
1273 * target.h (class process_stratum_target): Remove the target op.
1274 (struct process_target): Add the target op. Also add
1275 'supports_read_auxv'.
1276 * target.cc (process_target::read_auxv): Define.
1277 (process_target::supports_read_auxv): Define.
1279 Update the derived classes and callers below.
1281 * server.cc (handle_qxfer_auxv): Update.
1282 (handle_query): Update.
1283 * linux-low.cc (linux_target_ops): Update.
1284 (linux_process_target::supports_read_auxv): Define.
1285 (linux_read_auxv): Turn into ...
1286 (linux_process_target::read_auxv): ... this.
1287 * linux-low.h (class linux_process_target): Update.
1288 * lynx-low.cc (lynx_target_ops): Update.
1289 * nto-low.cc (nto_target_ops): Update.
1290 (nto_process_target::supports_read_auxv): Define.
1291 (nto_read_auxv): Turn into ...
1292 (nto_process_target::read_auxv): ... this.
1293 * nto-low.h (class nto_process_target): Update.
1294 * win32-low.cc (win32_target_ops): Update.
1296 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1298 Turn process_stratum_target's request_interrupt op into a method of
1301 * target.h (struct process_stratum_target): Remove the target op.
1302 (class process_target): Add the target op.
1304 Update the derived classes and callers below.
1306 * remote-utils.cc (putpkt_binary_1): Update.
1307 (input_interrupt): Update.
1309 * server.cc (handle_v_requests): Update.
1310 * linux-low.cc (linux_target_ops): Update.
1311 (linux_request_interrupt): Turn into ...
1312 (linux_process_target::request_interrupt): ... this.
1313 * linux-low.h (class linux_process_target): Update.
1314 * lynx-low.cc (lynx_target_ops): Update.
1315 (lynx_request_interrupt): Turn into ...
1316 (lynx_process_target::request_interrupt): ... this.
1317 * lynx-low.h (class lynx_process_target): Update.
1318 * nto-low.cc (nto_target_ops): Update.
1319 (nto_request_interrupt): Turn into ...
1320 (nto_process_target::request_interrupt): ... this.
1321 * nto-low.h (class nto_process_target): Update.
1322 * win32-low.cc (win32_target_ops): Update.
1323 (win32_request_interrupt): Turn into ...
1324 (win32_process_target::request_interrupt): ... this.
1325 * win32-low.h (class win32_process_target): Update.
1327 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1329 Turn process_stratum_target's look_up_symbols op into a method of
1332 * target.h (struct process_stratum_target): Remove the target op.
1333 (class process_target): Add the target op.
1334 * target.cc (process_target::look_up_symbols): Define.
1336 Update the derived classes and callers below.
1338 * server.cc (handle_query): Update.
1339 * linux-low.cc (linux_target_ops): Update.
1340 (linux_look_up_symbols): Turn into ...
1341 (linux_process_target::look_up_symbols): ... this.
1342 * linux-low.h (class linux_process_target): Update.
1343 * lynx-low.cc (lynx_target_ops): Update.
1344 * nto-low.cc (nto_target_ops): Update.
1345 * win32-low.cc (win32_target_ops): Update.
1347 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1349 Turn process_stratum_target's read_memory and write_memory
1350 ops into methods of process_target.
1352 * target.h (struct process_stratum_target): Remove the target ops.
1353 (class process_target): Add the target ops.
1355 Update the derived classes and callers below.
1357 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1358 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1359 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1360 (arm_get_syscall_trapinfo): Update.
1361 * linux-cris-low.cc (cris_breakpoint_at): Update.
1362 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1363 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1364 * linux-mips-low.cc (mips_breakpoint_at): Update.
1365 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1366 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1367 * linux-sh-low.cc (sh_breakpoint_at): Update.
1368 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1369 (sparc_store_gregset_from_stack): Update.
1370 (sparc_breakpoint_at): Update.
1371 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1372 * linux-tile-low.cc (tile_breakpoint_at): Update.
1373 * linux-x86-low.cc (x86_breakpoint_at): Update.
1374 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1375 * mem-brea.cc (insert_memory_breakpoint): Update.
1376 (validate_inserted_breakpoint): Update.
1377 * target.cc (read_inferior_memory): Update.
1378 (target_write_memory): Update.
1379 * linux-low.cc (linux_target_ops): Update.
1380 (linux_read_memory): Make a wrapper around the read_memory target
1382 (linux_process_target::read_memory): Rename from linux_read_memory.
1383 (linux_write_memory): Turn into ...
1384 (linux_process_target::write_memory): ... this.
1385 * linux-low.h (class linux_process_target): Update.
1386 * lynx-low.cc (lynx_target_ops): Update.
1387 (lynx_read_memory): Turn into ...
1388 (lynx_process_target::read_memory): ... this.
1389 (lynx_write_memory): Turn into ...
1390 (lynx_process_target::write_memory): ... this.
1391 * lynx-low.h (class lynx_process_target): Update.
1392 * nto-low.cc (nto_target_ops): Update.
1393 (nto_read_memory): Turn into ...
1394 (nto_process_target::read_memory): ... this.
1395 (nto_write_memory): Turn into ...
1396 (nto_process_target::write_memory): ... this.
1397 * nto-low.h (class nto_process_target): Update.
1398 * win32-low.cc (win32_target_ops): Update.
1399 (win32_read_inferior_memory): Turn into ...
1400 (win32_process_target::read_memory): ... this.
1401 (win32_write_inferior_memory): Turn into ...
1402 (win32_process_target::write_memory): ... this.
1403 * win32-low.h (class win32_process_target): Update.
1405 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1407 Turn process_stratum_target's prepare_to_access_memory and
1408 done_accessing_memory ops into methods of process_target.
1410 * target.h (struct process_stratum_target): Remove the target ops.
1411 (class process_target): Add the target ops.
1412 * target.cc (process_target::prepare_to_access_memory): Define.
1413 (process_target::done_accessing_memory): Define.
1414 (prepare_to_access_memory): Update.
1415 (done_accessing_memory): Update.
1417 Update the derived classes and callers below.
1419 * linux-low.cc (linux_target_ops): Update.
1420 (linux_prepare_to_access_memory): Turn into ...
1421 (linux_process_target::prepare_to_access_memory): ... this.
1422 (linux_done_accessing_memory): Turn into ...
1423 (linux_process_target::done_accessing_memory): ... this.
1424 * linux-low.h (class linux_process_target): Update.
1425 * lynx-low.cc (lynx_target_ops): Update.
1426 * nto-low.cc (nto_target_ops): Update.
1427 * win32-low.cc (win32_target_ops): Update.
1429 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1431 Turn process_stratum_target's fetch_registers and store_registers
1432 ops into methods of process_target.
1434 * target.h (struct process_stratum_target): Remove the target ops.
1435 (class process_target): Add the target ops.
1436 (fetch_inferior_registers): Update the macro.
1437 (store_inferior_registers): Update the macro.
1439 Update the derived classes and callers below.
1441 * linux-low.cc (linux_target_ops): Update.
1442 (linux_fetch_registers): Turn into ...
1443 (linux_process_target::fetch_registers): ... this.
1444 (linux_store_registers): Turn into ...
1445 (linux_process_target::store_registers): ... this.
1446 * linux-low.h (class linux_process_target): Update.
1447 * lynx-low.cc (lynx_target_ops): Update.
1448 (lynx_fetch_registers): Turn into ...
1449 (lynx_process_target::fetch_registers): ... this.
1450 (lynx_store_registers): Turn into ...
1451 (lynx_process_target::store_registers): ... this.
1452 * lynx-low.h (class lynx_process_target): Update.
1453 * nto-low.cc (nto_target_ops): Update.
1454 (nto_fetch_registers): Turn into ...
1455 (nto_process_target::fetch_registers): ... this.
1456 (nto_store_registers): Turn into ...
1457 (nto_process_target::store_registers): ... this.
1458 * nto-low.h (class nto_process_target): Update.
1459 * win32-low.cc (win32_target_ops): Update.
1460 (win32_fetch_inferior_registers): Turn into ...
1461 (win32_process_target::fetch_registers): ... this.
1462 (win32_store_inferior_registers): Turn into ...
1463 (win32_process_target::store_registers): ... this.
1464 * win32-low.h (class win32_process_target): Update.
1466 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1468 Turn process_stratum_target's wait op into a method of
1471 * target.h (struct process_stratum_target): Remove the target op.
1472 (class process_target): Add the target op.
1474 Update the derived classes and callers below.
1476 * target.cc (target_wait): Update.
1477 * linux-low.cc (linux_target_ops): Update.
1478 (linux_wait): Turn into ...
1479 (linux_process_target::wait): ... this.
1480 * linux-low.h (class linux_process_target): Update.
1481 * lynx-low.cc (lynx_target_ops): Update.
1482 (lynx_wait): Turn into ...
1483 (lynx_process_target::wait): ... this.
1484 * lynx-low.h (class lynx_process_target): Update.
1485 * nto-low.cc (nto_target_ops): Update.
1486 (nto_wait): Turn into ...
1487 (nto_process_target::wait): ... this.
1488 * nto-low.h (class nto_process_target): Update.
1489 * win32-low.cc (win32_target_ops): Update.
1490 (win32_wait): Turn into ...
1491 (win32_process_target::wait): ... this.
1492 (do_initial_child_stuff): Update.
1493 * win32-low.h (class win32_process_target): Update.
1495 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1497 Turn process_stratum_target's resume op into a method of
1500 * target.h (struct process_stratum_target): Remove the target op.
1501 (class process_target): Add the target op.
1503 Update the derived classes and callers below.
1505 * server.cc (resume): Update.
1506 * target.cc (target_stop_and_wait): Update.
1507 (target_continue_no_signal): Update.
1508 (target_continue): Update.
1509 * linux-low.cc (linux_target_ops): Update.
1510 (linux_resume): Turn into ...
1511 (linux_process_target::resume): ... this.
1512 * linux-low.h (class linux_process_target): Update.
1513 * lynx-low.cc (lynx_target_ops): Update.
1514 (lynx_resume): Turn into ...
1515 (lynx_process_target::resume): ... this.
1516 * lynx-low.h (class lynx_process_target): Update.
1517 * nto-low.cc (nto_target_ops): Update.
1518 (nto_resume): Turn into ...
1519 (nto_process_target::resume): ... this.
1520 * nto-low.h (class nto_process_target): Update.
1521 * win32-low.cc (win32_target_ops): Update.
1522 (win32_resume): Turn into ...
1523 (win32_process_target::resume): ... this.
1524 (win32_process_target::detach): Update.
1525 (do_initial_child_stuff): Update.
1526 * win32-low.h (class win32_process_target): Update.
1528 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1530 Turn process_stratum_target's thread_alive op into a method of
1533 * target.h (struct process_stratum_target): Remove the target op.
1534 (class process_target): Add the target op.
1535 (mythread_alive): Update the macro.
1537 Update the derived classes and callers below.
1539 * linux-low.cc (linux_target_ops): Update.
1540 (linux_thread_alive): Turn into ...
1541 (linux_process_target::thread_alive): ... this.
1542 (wait_for_sigstop): Update.
1543 * linux-low.h (class linux_process_target): Update.
1544 * lynx-low.cc (lynx_target_ops): Update.
1545 (lynx_thread_alive): Turn into ...
1546 (lynx_process_target::thread_alive): ... this.
1547 * lynx-low.h (class lynx_process_target): Update.
1548 * nto-low.cc (nto_target_ops): Update.
1549 (nto_thread_alive): Turn into ...
1550 (nto_process_target::thread_alive): ... this.
1551 * nto-low.h (class nto_process_target): Update.
1552 * win32-low.cc (win32_target_ops): Update.
1553 (win32_thread_alive): Turn into ...
1554 (win32_process_target::thread_alive): ... this.
1555 * win32-low.h (class win32_process_target): Update.
1557 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1559 Turn process_stratum_target's join op into a method of
1562 * target.h (struct process_stratum_target): Remove the target op.
1563 (class process_target): Add the target op.
1564 (join_inferior): Update the macro.
1566 Update the derived classes and callers below.
1568 * linux-low.cc (linux_target_ops): Update.
1569 (linux_join): Turn into ...
1570 (linux_process_target::join): ... this.
1571 * linux-low.h (class linux_process_target): Update.
1572 * lynx-low.cc (lynx_target_ops): Update.
1573 (lynx_join): Turn into ...
1574 (lynx_process_target::join): ... this.
1575 * lynx-low.h (class lynx_process_target): Update.
1576 * nto-low.cc (nto_target_ops): Update.
1577 (nto_process_target::join): Define.
1578 * nto-low.h (class nto_process_target): Update.
1579 * win32-low.cc (win32_target_ops): Update.
1580 (win32_join): Turn into ...
1581 (win32_process_target::join): ... this.
1582 * win32-low.h (class win32_process_target): Update.
1584 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1586 Turn process_stratum_target's mourn op into a method of
1589 * target.h (struct process_stratum_target): Remove the target op.
1590 (class process_target): Add the target op.
1592 Update the derived classes and callers below.
1594 * target.cc (target_mourn_inferior): Update.
1595 * linux-low.cc (linux_target_ops): Update.
1596 (linux_mourn): Turn into ...
1597 (linux_process_target::mourn): ... this.
1598 (handle_extended_wait): Update.
1599 (linux_process_target::kill): Update.
1600 (linux_process_target::detach): Update.
1601 * linux-low.h (class linux_process_target): Update.
1602 * lynx-low.cc (lynx_target_ops): Update.
1603 (lynx_mourn): Turn into ...
1604 (lynx_process_target::mourn): ... this.
1605 * lynx-low.h (class lynx_process_target): Update.
1606 * nto-low.cc (nto_target_ops): Update.
1607 (nto_mourn): Turn into ...
1608 (nto_process_target::mourn): ... this.
1609 * nto-low.h (class nto_process_target): Update.
1610 * win32-low.cc (win32_target_ops): Update.
1611 (win32_mourn): Turn into ...
1612 (win32_process_target::mourn): ... this.
1613 * win32-low.h (class win32_process_target): Update.
1615 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1617 Turn process_stratum_target's detach op into a method of
1620 * target.h (struct process_stratum_target): Remove the target op.
1621 (class process_target): Add the target op.
1622 (detach_inferior): Update the macro.
1624 Update the derived classes and callers below.
1626 * linux-low.cc (linux_target_ops): Update.
1627 (linux_detach): Turn into ...
1628 (linux_process_target::detach): ... this.
1629 * linux-low.h (class linux_process_target): Update.
1630 * lynx-low.cc (lynx_target_ops): Update.
1631 (lynx_detach): Turn into ...
1632 (lynx_process_target::detach): ... this.
1633 * lynx-low.h (class lynx_process_target): Update.
1634 * nto-low.cc (nto_target_ops): Update.
1635 (nto_detach): Turn into ...
1636 (nto_process_target::detach): ... this.
1637 * nto-low.h (class nto_process_target): Update.
1638 * win32-low.cc (win32_target_ops): Update.
1639 (win32_detach): Turn into ...
1640 (win32_process_target::detach): ... this.
1641 * win32-low.h (class win32_process_target): Update.
1643 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1645 Turn process_stratum_target's kill op into a method of
1648 * target.h (struct process_stratum_target): Remove the target op.
1649 (class process_target): Add the target op.
1651 Update the derived classes and callers below.
1653 * target.cc (kill_inferior): Update.
1654 * linux-low.cc (linux_target_ops): Update.
1655 (linux_kill): Turn into ...
1656 (linux_process_target::kill): ... this.
1657 * linux-low.h (class linux_process_target): Update.
1658 * lynx-low.cc (lynx_target_ops): Update.
1659 (lynx_kill): Turn into ...
1660 (lynx_process_target::kill): ... this.
1661 * lynx-low.h (class lynx_process_target): Update.
1662 * nto-low.cc (nto_target_ops): Update.
1663 (nto_kill): Turn into ...
1664 (nto_process_target::kill): ... this.
1665 * nto-low.h (class nto_process_target): Update.
1666 * win32-low.cc (win32_target_ops): Update.
1667 (win32_kill): Turn into ...
1668 (win32_process_target::kill): ... this.
1669 * win32-low.h (class win32_process_target): Update.
1671 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1673 Turn process_stratum_target's attach op into a method of
1676 * target.h (struct process_stratum_target): Remove the target op.
1677 (class process_target): Add the target op.
1678 (myattach): Update the macro.
1680 Update the derived classes and callers below.
1682 * linux-low.cc (linux_target_ops): Update.
1683 (linux_attach): Turn into ...
1684 (linux_process_target::attach): ... this.
1685 * linux-low.h (class linux_process_target): Update.
1686 * lynx-low.cc (lynx_target_ops): Update.
1687 (lynx_attach): Turn into ...
1688 (lynx_process_target::attach): ... this.
1689 * lynx-low.h (class lynx_process_target): Update.
1690 * nto-low.cc (nto_target_ops): Update.
1691 (nto_attach): Turn into ...
1692 (nto_process_target::attach): ... this.
1693 * nto-low.h (class nto_process_target): Update.
1694 * win32-low.cc (win32_target_ops): Update.
1695 (win32_attach): Turn into ...
1696 (win32_process_target::attach): ... this.
1697 * win32-low.h (class win32_process_target): Update.
1699 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1701 Turn process_stratum_target's post_create_inferior op into a method
1704 * target.h (struct process_stratum_target): Remove the target op.
1705 (class process_target): Add the target op.
1706 (target_post_create_inferior): Update the macro.
1707 * target.cc (process_target::post_create_inferior): Define.
1709 Update the derived classes and callers below.
1711 * linux-low.cc (linux_target_ops): Update.
1712 (linux_post_create_inferior): Turn into ...
1713 (linux_process_target::post_create_inferior): ... this.
1714 * linux-low.h (class linux_process_target): Update.
1715 * lynx-low.cc (lynx_target_ops): Update.
1716 * nto-low.cc (nto_target_ops): Update.
1717 * win32-low.cc (win32_target_ops): Update.
1719 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1721 Turn process_stratum_target's create_inferior op into a method of
1724 * target.h (struct process_stratum_target): Remove the target op.
1725 (class process_target): Add the target op.
1726 (create_inferior): Rename the macro to ...
1727 (target_create_inferior): ... this.
1729 Update the derived classes and callers below.
1731 * server.cc (handle_v_run): Update.
1732 (captured_main): Update.
1733 (process_serial_event): Update.
1734 * linux-low.cc (linux_target_ops): Update.
1735 (linux_create_inferior): Turn into ...
1736 (linux_process_target::create_inferior): ... this.
1737 * linux-low.h (class linux_process_target): Update.
1738 * lynx-low.cc (lynx_target_ops): Update.
1739 (lynx_create_inferior): Turn into ...
1740 (lynx_process_target::create_inferior): ... this.
1741 * lynx-low.h (class lynx_process_target): Update.
1742 * nto-low.cc (nto_target_ops): Update.
1743 (nto_create_inferior): Turn into ...
1744 (nto_process_target::create_inferior): ... this.
1745 * nto-low.h (class nto_process_target): Update.
1746 * win32-low.cc (win32_target_ops): Update.
1747 (win32_create_inferior): Turn into ...
1748 (win32_process_target::create_inferior): ... this.
1749 * win32-low.h (class win32_process_target): Update.
1751 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1753 * target.h (class process_target): New class definition.
1754 (struct process_stratum_target) <pt>: New field with type
1756 * linux-low.h (class linux_process_target): Define as a derived
1757 class of 'process_target'.
1758 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1760 * lynx-low.h (class lynx_process_target): Define as a derived
1761 class of 'process_target'.
1762 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1764 * nto-low.h (class nto_process_target): Define as a derived
1765 class of 'process_target'.
1766 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1768 * win32-low.h (class win32_process_target): Define as a derived
1769 class of 'process_target'.
1770 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1773 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1775 * configure: Regenerate.
1777 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
1778 Andrew Burgess <andrew.burgess@embecosm.com>
1780 * linux-riscv-low.cc: New file.
1781 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1782 and nat/riscv-linux-tdesc.c.
1783 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1784 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1787 2020-02-14 Tom Tromey <tom@tromey.com>
1789 * acinclude.m4: Don't include acx_configure_dir.m4.
1790 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1791 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1792 (all, install-only, uninstall, clean-info, clean)
1793 (maintainer-clean): Don't recurse.
1794 (subdir_do, all-lib): Remove.
1795 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1797 (generated_files): Update.
1798 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1799 * configure: Rebuild.
1800 * configure.ac: Don't configure gnulib or libiberty.
1803 2020-02-14 Eli Zaretskii <eliz@gnu.org>
1805 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1806 preparing the command line for CreateProcess.
1807 (win32_create_inferior): Reflect the program name in debugging
1808 output that shows the process and its command line.
1810 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1812 * Makefile.in: Rename source files from .c to .cc.
1813 * %.c: Rename to %.cc.
1814 * configure.ac: Rename server.c to server.cc.
1815 * configure: Re-generate.
1817 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1819 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1821 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
1823 * win32-low.c (win32_create_inferior): Set signal_pid.
1825 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
1826 Pedro Alves <palves@redhat.com>
1828 Skip building gdbserver in a cross-configuration.
1829 * configure.srv: Set $gdbserver_host depending on whether $target
1830 is $host. Use $gdbserver_host instead of $host.
1832 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1834 * configure: Re-generate.
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 * acinclude.m4: Update warning.m4 path.
1844 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
1846 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1847 (handle_exception): Set siginfo_er.
1848 (win32_xfer_siginfo): New function.
1850 2020-02-07 Tom Tromey <tom@tromey.com>
1851 Pedro Alves <palves@redhat.com>
1853 * README: Update build documentation.
1854 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1856 * configure.ac: Update paths.
1857 * configure: Rebuild.
1858 * acinclude.m4: Update paths.
1859 * Makefile.in: Update include paths.
1860 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1861 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1862 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1863 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1864 (%-generated.c): Update paths.
1865 * Move entire directory from ../gdb/gdbserver.
1867 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
1869 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1871 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1873 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1874 assignment instead of srv_linux_obj.
1876 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
1878 * server.c (handle_qxfer_libraries): Write segment-address with
1881 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
1883 * Makefile.in (install-strip): New target.
1884 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1885 * aclocal.m4: Regenerate.
1886 * configure: Regenerate.
1887 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1889 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1891 * Makefile.in (SFILES): Adjust paths to point to real files.
1892 (OBS): Move waitstatus.o to target/waitstatus.o.
1893 (TAGS): Transform paths appropriately.
1895 (nat/%.o): ... this pattern rule.
1897 (target/%.o): ... this pattern rule.
1898 * configure.srv: Adjust paths throughout to include nat/ prefix
1899 with the revant files.
1900 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1901 * configure: Regenerate.
1903 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1905 * Makefile.in (TAGS): Remove config files from the recipe.
1907 2020-01-14 Tom Tromey <tom@tromey.com>
1909 * configure: Rebuild.
1910 * configure.ac: Remove any checks that were added to common.m4.
1911 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1914 2020-01-14 Tom Tromey <tom@tromey.com>
1916 * server.h: Include config.h.
1917 * gdbreplay.c: Include config.h.
1918 * configure: Rebuild.
1919 * configure.ac: Don't source common.host.
1920 * acinclude.m4: Update path.
1921 * Makefile.in (INCSUPPORT): New variable.
1922 (INCLUDE_CFLAGS): Add INCSUPPORT.
1923 (SFILES): Update paths.
1924 (version-generated.c): Update path to create-version.sh.
1925 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1927 2020-01-14 Tom Tromey <tom@tromey.com>
1929 * configure.ac (LIBS): Use WIN32APILIBS.
1930 (USE_WIN32API): Don't define.
1931 * configure: Rebuild.
1933 2020-01-14 Tom Tromey <tom@tromey.com>
1935 * configure: Rebuild.
1937 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1939 * Makefile.in (%-generated.c): Remove rule for files from
1942 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1944 * configure: Re-generate.
1946 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1948 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1950 * tracepoint.c (stop_tracing, flush_trace_buffer,
1951 about_to_request_buffer_space, get_trace_state_variable_value,
1952 set_trace_state_variable_value, gdb_collect): Add declaration.
1954 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1956 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1957 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1958 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1959 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1960 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1963 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1965 * inferiors.c: Include gdbsupport/common-inferior.h.
1967 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1969 * hostio-errno.c: Include hostio.h.
1971 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1973 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1976 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1978 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1979 * linux-arm-tdesc.h: Include arch/arm.h.
1981 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1983 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1985 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1987 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1988 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1990 2020-01-10 Pedro Alves <palves@redhat.com>
1992 * fork-child.c (post_fork_inferior): Pass target down to
1994 * inferiors.c (switch_to_thread): Add process_stratum_target
1996 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
1997 * nto-low.c (nto_target_ops): Now a process_stratum_target.
1998 * linux-low.c (linux_target_ops): Now a process_stratum_target.
1999 * remote-utils.c (prepare_resume_reply): Pass the target to
2001 * target.c (the_target): Now a process_stratum_target.
2002 (done_accessing_memory): Pass the target to switch_to_thread.
2003 (set_target_ops): Ajust to use process_stratum_target.
2004 * target.h (struct target_ops): Rename to ...
2005 (struct process_stratum_target): ... this.
2006 (the_target, set_target_ops): Adjust.
2007 (prepare_to_access_memory): Adjust comment.
2008 * win32-low.c (child_xfer_memory): Adjust to use
2009 process_stratum_target.
2010 (win32_target_ops): Now a process_stratum_target.
2012 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2013 Pedro Alves <palves@redhat.com>
2015 * win32-low.c (get_child_debug_event): Extract the fatal exception
2016 from the exit status and convert to the equivalent Posix signal
2018 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2019 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2021 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2023 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2025 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2027 * server.c (gdbserver_version): Change copyright year to 2020.
2028 * gdbreplay.c (gdbreplay_version): Likewise.
2030 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2032 * configure: Regenerate.
2033 * configure.ac: Quote variable arguments of test.
2035 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2037 * Makefile.in: Fix build with GNU Make 3.81
2039 2019-12-16 Tom Tromey <tromey@adacore.com>
2041 * server.c (get_exec_file): Constify result.
2043 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2045 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2046 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2047 * config.in: Regenerate.
2048 * configure: Regenerate.
2049 * configure.ac: Don't check for strerror.
2050 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2051 Call safe_strerror instead of strerror.
2052 * server.h (strerror): Remove this now-unnecessary declaration.
2053 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2055 (gdb_agent_helper_thread): Likewise.
2056 * utils.c (perror_with_name): Likewise.
2058 2019-11-26 Tom Tromey <tom@tromey.com>
2060 * configure, config.in: Rebuild.
2062 2019-11-26 Tom Tromey <tom@tromey.com>
2064 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2065 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2067 * configure, config.in: Rebuild.
2069 2019-11-26 Tom Tromey <tom@tromey.com>
2071 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2072 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2073 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2074 * acinclude.m4: Include ax_pthread.m4.
2075 * config.in, configure: Rebuild.
2077 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2079 * debug.c (debug_set_output): Call safe_strerror instead of
2081 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2082 (linux_kill_one_lwp): Likewise.
2083 (linux_detach_one_lwp): Likewise.
2084 (linux_wait_for_event_filtered): Likewise.
2085 (store_register): Likewise.
2086 * lynx-low.c (lynx_attach): Likewise.
2087 * mem-break.c (insert_memory_breakpoint): Likewise.
2088 (remove_memory_breakpoint): Likewise.
2089 (delete_fast_tracepoint_jump): Likewise.
2090 (set_fast_tracepoint_jump): Likewise.
2091 (uninsert_fast_tracepoint_jumps_at): Likewise.
2092 (reinsert_fast_tracepoint_jumps_at): Likewise.
2093 * nto-low.c (nto_xfer_memory): Likewise.
2094 (nto_resume): Likewise.
2096 2019-11-20 Luis Machado <luis.machado@linaro.org>
2098 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2099 instead of register count.
2100 * tdesc.c (tdesc_contains_feature): New function.
2101 * tdesc.h (tdesc_contains_feature): New prototype.
2103 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2105 * Makefile.in: Add safe-strerror.c.
2106 * configure: Regenerate.
2107 * configure.ac: Don't source common.host.
2109 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2111 * config.in: Regenerate.
2112 * configure: Regenerate.
2114 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2116 * ax.c (ax_printf): Handle size_t_arg.
2118 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2120 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2121 * mi/mi-main.c (output_cores): Likewise.
2122 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2123 (linux_xfer_osdata_modules): Likewise.
2124 * remote.c (register_remote_support_xml): Likewise.
2125 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2126 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2128 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2130 * configure: Regenerate.
2131 * configure.ac: Remove check for strerror_r.
2133 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2135 * config.in: Regenerate.
2136 * configure: Regenerate.
2137 * configure.ac: Also check for strerror_r.
2139 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2141 * ax.h (debug_agent): Remove duplicate declaration.
2143 2019-10-26 Tom de Vries <tdevries@suse.de>
2145 * linux-aarch64-low.c: Fix typos in comments.
2146 * linux-arm-low.c: Same.
2147 * linux-low.c: Same.
2148 * linux-ppc-low.c: Same.
2149 * proc-service.c: Same.
2152 * tracepoint.c: Same.
2153 * win32-low.c: Same.
2155 2019-10-25 Tom Tromey <tromey@adacore.com>
2157 * utils.c (xstrdup): Remove.
2159 2019-10-23 Tom Tromey <tom@tromey.com>
2161 * configure, config.in: Rebuild.
2163 2019-10-23 Tom Tromey <tom@tromey.com>
2165 * configure: Rebuild.
2166 * acinclude.m4: Use m4_include, not sinclude.
2168 2019-10-17 Tom Tromey <tromey@adacore.com>
2170 * configure: Rebuild.
2171 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2172 in AC_CONFIG_FILES invocation.
2173 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2176 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2178 * server.c: Include xml-builtin.h.
2179 (get_xml_features): Don't declare xml_builtins here.
2181 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2183 * Makefile.in: Remove references to vec-ipa.o.
2185 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2187 * Makefile.in: Remove references to vec.c.
2189 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2191 * server.c (server_waiting): Change to bool.
2192 (extended_protocol): Likewise.
2193 (response_needed): Likewise.
2194 (exit_requested): Likewise.
2195 (run_once): Likewise.
2196 (report_no_resumed): Likewise.
2197 (non_stop): Likewise.
2198 (disable_packet_vCont): Likewise.
2199 (disable_packet_Tthread): Likewise.
2200 (disable_packet_qC): Likewise.
2201 (disable_packet_qfThreadInfo): Likewise.
2202 (handle_general_set): Update.
2203 (handle_detach): Update.
2204 (handle_monitor_command): Update.
2205 (handle_query): Update.
2206 (captured_main): Update.
2207 (process_serial_event): Update.
2208 * server.h (server_waiting): Change to bool.
2209 (disable_packet_vCont): Likewise.
2210 (disable_packet_Tthread): Likewise.
2211 (disable_packet_qC): Likewise.
2212 (disable_packet_qfThreadInfo): Likewise.
2213 (run_once): Likewise.
2214 (non_stop): Likewise.
2215 * target.c (target_stop_and_wait): Update.
2217 2019-10-02 Tom Tromey <tromey@adacore.com>
2219 * Makefile.in (SFILES): Add common-inferior.c.
2220 (OBS): Add common-inferior.o.
2221 * server.c (startup_with_shell): Don't define.
2223 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2225 * linux-low.c (linux_low_read_btrace): Update for change to
2228 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2230 * debug.c (debug_threads): Remove comment in favor of the header.
2231 * debug.h (using_threads): Add declaration.
2232 (debug_threads): Add comment.
2233 * linux-aarch64-low.c: Include debug.h and remove declaration of
2235 * nto-low.c: Likewise.
2236 * remote-utils.c: Likewise.
2237 * thread-db.c: Likewise.
2239 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2241 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2242 and powerpc-cell64l-ipa.o.
2243 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2244 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2245 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2248 * spu-low.c: Remove file.
2250 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2251 (parse_spufs_run): Remove.
2252 (ppc_get_pc): Remove Cell/B.E. support.
2253 (ppc_set_pc): Likewise.
2254 (ppc_breakpoint_at): Likewise.
2255 (ppc_arch_setup): Likewise.
2256 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2257 tdesc_powerpc_cell32l.
2258 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2259 or init_registers_powerpc_cell32l.
2260 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2261 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2262 or init_registers_powerpc_cell32l.
2263 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2264 (init_registers_powerpc_cell32l): Remove prototype.
2265 (init_registers_powerpc_cell64l): Likewise.
2267 * target.h (struct target_ops): Remove qxfer_spu member.
2268 * server.c (handle_qxfer_spu): Remove.
2269 (qxfer_packets): Remove entry for "spu".
2270 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2271 * linux-low.c (SPUFS_MAGIC): Remove.
2272 (spu_enumerate_spu_ids): Remove.
2273 (linux_qxfer_spu): Remove.
2274 (linux_target_ops): Remove qxfer_spu member.
2275 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2276 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2277 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2279 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2281 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2282 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2283 * config.in: Regenerate.
2284 * configure: Regenerate.
2286 2019-08-15 Tom Tromey <tromey@adacore.com>
2288 * target.c (target_write_memory): Use gdb::byte_vector.
2290 2019-08-15 Tom Tromey <tromey@adacore.com>
2292 * tracepoint.c (write_inferior_data_pointer)
2293 (write_inferior_integer, write_inferior_int8)
2294 (write_inferior_uinteger, m_tracepoint_action_download)
2295 (r_tracepoint_action_download, x_tracepoint_action_download)
2296 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2297 (download_agent_expr, download_tracepoint_1)
2298 (download_trace_state_variables, upload_fast_traceframes): Update.
2299 * server.c (gdb_write_memory): Update.
2300 * remote-utils.c (relocate_instruction): Update.
2301 * proc-service.c (ps_pdwrite): Update.
2302 * mem-break.c (remove_memory_breakpoint)
2303 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2304 (uninsert_fast_tracepoint_jumps_at)
2305 (reinsert_fast_tracepoint_jumps_at): Update.
2306 * linux-x86-low.c (append_insns)
2307 (i386_install_fast_tracepoint_jump_pad)
2308 (amd64_write_goto_address, i386_write_goto_address): Update.
2309 * linux-s390-low.c (append_insns, s390_write_goto_address):
2311 * linux-ppc-low.c (ppc_relocate_instruction)
2312 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2313 (ppc_write_goto_address): Update.
2314 * linux-aarch64-low.c (append_insns): Update.
2315 * target.h (struct target_ops): Update.
2316 (write_inferior_memory): Don't declare.
2317 * target.c (target_write_memory): Rename from
2318 write_inferior_memory. Remove old target_write_memory.
2320 2019-08-15 Tom Tromey <tromey@adacore.com>
2322 * target.c (write_inferior_memory): Use std::vector.
2324 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2327 * configure.ac: Drop enable-libmcheck support.
2328 * configure, config.in: Rebuild.
2329 * acinclude.m4: Don't include it.
2331 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2333 * configure.srv: Remove Arm xml files.
2335 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2337 * configure.srv: Add new files. Remove xml generated files.
2338 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2340 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2341 * linux-aarch32-tdesc.c: New file.
2342 * linux-aarch32-tdesc.h: New file.
2343 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2344 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2345 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2346 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2347 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2348 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2349 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2350 (arm_read_description): Call arm_linux_read_description.
2351 (initialize_low_arch): Don't init registers.
2352 * linux-arm-tdesc.c: New file.
2353 * linux-arm-tdesc.h: New file.
2355 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2357 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2358 Move counter inside for.
2359 (arm_read_description): Check ptrace earlier.
2360 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2362 2019-07-09 Tom Tromey <tom@tromey.com>
2364 * configure: Rebuild.
2365 * configure.ac: Change common to gdbsupport.
2366 * acinclude.m4: Change common to gdbsupport.
2367 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2368 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2369 common to gdbsupport.
2370 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2371 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2372 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2373 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2374 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2375 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2376 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2377 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2378 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2379 common to gdbsupport.
2381 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2383 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2385 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2387 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2389 * configure.srv: Remove legacy xml.
2390 * linux-aarch64-low.c (initialize_low_arch): Remove
2391 initialize_low_tdesc call.
2392 * linux-aarch64-tdesc-selftest.c: Remove file.
2393 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2394 * linux-x86-low.c (initialize_low_arch): Remove
2395 initialize_low_tdesc call.
2396 * linux-x86-tdesc-selftest.c: Remove file.
2397 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2399 2019-06-20 Tom de Vries <tdevries@suse.de>
2401 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2402 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2404 2019-06-19 Tom de Vries <tdevries@suse.de>
2406 * debug.h (debug_write): Change return type to ssize_t.
2407 * debug.c (debug_write): Same.
2409 2019-06-14 Tom Tromey <tom@tromey.com>
2411 * configure.ac: Use new path to gnulib.
2412 * configure: Rebuild.
2413 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2416 2019-06-11 Tom Tromey <tom@tromey.com>
2418 * Makefile.in (SFILES): Add alloc.c.
2420 (IPA_OBJS): Add alloc-ipa.o.
2421 (alloc-ipa.o): New target.
2422 (%.o: ../%.c): New pattern rule.
2424 2019-06-10 Tom Tromey <tromey@adacore.com>
2426 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2427 end warning with a newline.
2428 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2430 * thread-db.c (attach_thread): Don't end warning with a newline.
2431 (thread_db_notice_clone): Likewise.
2432 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2434 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2435 end warning with a newline.
2437 2019-06-04 Pedro Alves <palves@redhat.com>
2439 * server.c (captured_main): Use make_unique_xstrdup.
2441 2019-06-02 Tom Tromey <tom@tromey.com>
2443 * gdbreplay.c (fromhex): Remove.
2444 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2446 2019-05-29 Tom Tromey <tromey@adacore.com>
2448 * configure: Rebuild.
2450 2019-05-06 Kevin Buettner <kevinb@redhat.com>
2452 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2453 sign extension code on 32-bit builds.
2455 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2458 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2460 2019-04-19 Tom Tromey <tom@tromey.com>
2462 * server.c (struct vstop_notif): Derive from notif_event.
2464 (queue_stop_reply): Update.
2465 (remove_all_on_match_ptid): Change type. Rewrite.
2466 (discard_queued_stop_replies): Rewrite.
2467 (in_queued_stop_replies_ptid): Change type.
2468 (in_queued_stop_replies): Rewrite.
2469 (notif_stop): Update.
2470 (queue_stop_reply_callback): Update.
2471 (captured_main): Don't call initialize_notif.
2472 (push_stop_notification): Update.
2473 * notif.c (notif_write_event, handle_notif_ack)
2474 (notif_event_enque, notif_push): Update.
2475 (notif_event_xfree, initialize_notif): Remove.
2476 * notif.h (struct notif_event): Include <list>, not
2478 (struct notif_server) <queue>: Now a std::list.
2479 (notif_event_p): Remove typedef.
2480 (initialize_notif): Don't declare.
2481 (struct notif_event): Add virtual destructor.
2483 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2485 * ax.c (ax_vdebug): Call debug_printf.
2486 * debug.c (debug_write): New function.
2487 * debug.h (debug_write): New declaration.
2488 * linux-low.c (sigchld_handler): Call debug_write.
2490 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2492 * debug.c (debug_set_output): New function.
2493 (debug_vprintf): Send output to debug_file.
2494 (debug_flush): Likewise.
2495 * debug.h (debug_set_output): New declaration.
2496 * server.c (handle_monitor_command): Add debug-file option.
2497 (captured_main): Likewise.
2499 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2501 * debug.c (remote_debug): Add definition.
2502 * debug.h (remote_debug): Add declaration.
2503 * hostio.c (remote_debug): Remove declaration.
2504 * remote-utils.c (struct ui_file): Likewise.
2505 (remote_debug): Likewise.
2506 * remote-utils.h (remote_debug): Likewise,
2507 * server.c (remote_debug): Remove definition.
2509 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2511 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2512 when using a 64-bit gdbserver.
2514 2019-04-09 Tom Tromey <tromey@adacore.com>
2516 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2518 2019-04-08 Tom Tromey <tom@tromey.com>
2520 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2522 (linux_resume_one_lwp): Likewise.
2524 2019-04-08 Tom Tromey <tom@tromey.com>
2526 * gdbreplay.c: Update.
2527 * linux-low.c: Update.
2530 2019-04-08 Tom Tromey <tom@tromey.com>
2532 * server.c: Use C++ exception handling.
2533 * linux-low.c: Use C++ exception handling.
2534 * gdbreplay.c: Use C++ exception handling.
2536 2019-04-08 Tom Tromey <tom@tromey.com>
2538 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2539 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2540 (captured_main, main): Update.
2541 * gdbreplay.c (main): Update.
2543 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2545 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2546 value in argument pointer, return 1 if the entry is found and 0
2547 otherwise. Move comment.
2548 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2549 * linux-low.h (linux_get_auxv): Declare.
2550 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2552 2019-04-05 Tom Tromey <tromey@adacore.com>
2554 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2557 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2559 * linux-low.c (AT_HWCAP2): Add define if not already included.
2561 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2563 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2564 (aarch64_arch_setup): Call linux_get_hwcap.
2565 * linux-arm-low.c (arm_get_hwcap): Remove function.
2566 (arm_read_description): Call linux_get_hwcap.
2567 * linux-low.c (linux_get_auxv): New function.
2568 (linux_get_hwcap): Likewise.
2569 (linux_get_hwcap2): Likewise.
2570 * linux-low.h (linux_get_hwcap): New declaration.
2571 (linux_get_hwcap2): Likewise.
2572 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2573 (ppc_arch_setup): Call linux_get_hwcap.
2574 * linux-s390-low.c (s390_get_hwcap): Remove function.
2575 (s390_arch_setup): Call linux_get_hwcap.
2577 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2578 Jiong Wang <jiong.wang@arm.com>
2580 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2581 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2583 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2585 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2586 Jiong Wang <jiong.wang@arm.com>
2588 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2589 (aarch64_get_hwcap): New function.
2590 (aarch64_arch_setup): Read APIA hwcap.
2592 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2593 Jiong Wang <jiong.wang@arm.com>
2595 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2596 (initialize_low_tracepoint): Likewise.
2597 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2598 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2599 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2600 (aarch64_linux_read_description): Likewise.
2601 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2603 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2605 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2606 i386_create_target_description for 'segments' parameter.
2607 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2608 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2609 * win32-i386-low.c (i386_arch_setup): Likewise.
2611 2019-03-12 Tom Tromey <tromey@adacore.com>
2613 * linux-low.c (iterate_over_lwps): Update.
2615 2019-03-06 Tom Tromey <tom@tromey.com>
2617 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2618 (captured_main): Use SCOPE_EXIT.
2620 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2622 * configure.srv: Use '$enable_unittest' instead of '$development'
2623 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2626 2019-02-27 Tom Tromey <tromey@adacore.com>
2628 * gdbreplay.c (logchar): Handle \r\n.
2630 2019-02-07 Alan Hayward <alan.hayward@arm.com>
2632 * linux-low.c (linux_attach): Add process before lwp.
2633 * server.c (attach_inferior): Check if already attached.
2635 2019-02-07 Tom Tromey <tom@tromey.com>
2637 * x86-tdesc.h: Rename include guard.
2638 * x86-low.h: Add include guard.
2639 * wincecompat.h: Rename include guard.
2640 * win32-low.h: Add include guard.
2641 * utils.h: Rename include guard.
2642 * tracepoint.h: Rename include guard.
2643 * tdesc.h: Rename include guard.
2644 * target.h: Rename include guard.
2645 * server.h: Rename include guard.
2646 * remote-utils.h: Rename include guard.
2647 * regcache.h: Rename include guard.
2648 * nto-low.h: Rename include guard.
2649 * notif.h: Add include guard.
2650 * mem-break.h: Rename include guard.
2651 * lynx-low.h: Add include guard.
2652 * linux-x86-tdesc.h: Add include guard.
2653 * linux-s390-tdesc.h: Add include guard.
2654 * linux-ppc-tdesc-init.h: Add include guard.
2655 * linux-low.h: Add include guard.
2656 * linux-aarch64-tdesc.h: Add include guard.
2657 * linux-aarch32-low.h: Add include guard.
2658 * inferiors.h: Rename include guard.
2659 * i387-fp.h: Rename include guard.
2660 * hostio.h: Rename include guard.
2661 * gdbthread.h: Rename include guard.
2662 * gdb_proc_service.h: Rename include guard.
2663 * event-loop.h: Rename include guard.
2664 * dll.h: Rename include guard.
2665 * debug.h: Rename include guard.
2666 * ax.h: Rename include guard.
2668 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2671 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2672 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2674 2019-01-25 Tom Tromey <tom@tromey.com>
2676 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2678 2019-01-25 Tom Tromey <tom@tromey.com>
2680 * win32-low.c: Fix common/ includes.
2681 * win32-i386-low.c: Fix common/ includes.
2682 * tracepoint.c: Fix common/ includes.
2683 * thread-db.c: Fix common/ includes.
2684 * target.h: Fix common/ includes.
2685 * symbol.c: Fix common/ includes.
2686 * spu-low.c: Fix common/ includes.
2687 * server.h: Fix common/ includes.
2688 * server.c: Fix common/ includes.
2689 * remote-utils.c: Fix common/ includes.
2690 * regcache.h: Fix common/ includes.
2691 * regcache.c: Fix common/ includes.
2692 * nto-x86-low.c: Fix common/ includes.
2693 * notif.h: Fix common/ includes.
2694 * mem-break.h: Fix common/ includes.
2695 * lynx-low.c: Fix common/ includes.
2696 * lynx-i386-low.c: Fix common/ includes.
2697 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2698 * linux-x86-low.c: Fix common/ includes.
2699 * linux-low.c: Fix common/ includes.
2700 * inferiors.h: Fix common/ includes.
2701 * i387-fp.c: Fix common/ includes.
2702 * hostio.c: Fix common/ includes.
2703 * hostio-errno.c: Fix common/ includes.
2704 * gdbthread.h: Fix common/ includes.
2705 * gdbreplay.c: Fix common/ includes.
2706 * fork-child.c: Fix common/ includes.
2707 * event-loop.c: Fix common/ includes.
2709 (enum gdb_agent_op): Fix common/ includes.
2711 2019-01-21 Tom Tromey <tom@tromey.com>
2713 * tracepoint.c: Fix includes.
2714 * remote-utils.c: Fix includes.
2715 * linux-x86-low.c: Fix includes.
2717 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2719 * gdbreplay.c (gdbreplay_version): Update copyright year in
2721 * server.c (gdbserver_version): Likewise.
2723 2018-12-05 Alan Hayward <alan.hayward@arm.com>
2725 * linux-low.c (add_lwp): Switch ordering.
2727 2018-11-29 Tom Tromey <tom@tromey.com>
2729 * win32-low.c (win32_join): Take pid, not process.
2730 * target.h (struct target_ops) <join>: Change argument type.
2731 (join_inferior): Change argument name.
2732 * spu-low.c (spu_join): Take pid, not process.
2733 * server.c (handle_detach): Preserve pid before destroying
2735 * lynx-low.c (lynx_join): Take pid, not process.
2736 * linux-low.c (linux_join): Take pid, not process.
2738 2018-11-23 Alan Hayward <alan.hayward@arm.com>
2740 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2741 (aarch64_cannot_fetch_register): Likewise.
2742 (struct linux_target_ops): Update references.
2744 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2746 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2748 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2750 * configure.srv (ipa_ppc_linux_regobj): Add
2751 powerpc-isa207-htm-vsx32l-ipa.o and
2752 powerpc-isa207-htm-vsx64l-ipa.o.
2753 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2754 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2755 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2756 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2757 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2758 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2759 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2760 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2761 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2762 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2763 (init_registers_powerpc_isa207_htm_vsx32l)
2764 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2765 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2766 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2767 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2768 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2769 (ppc_store_tm_ctarregset): New functions.
2770 (ppc_regsets): Add entries for HTM regsets.
2771 (ppc_arch_setup): Set htm in features struct when needed. Set
2772 sizes for the HTM regsets.
2773 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2774 (initialize_low_arch): Call
2775 init_registers_powerpc_isa207_htm_vsx32l and
2776 init_registers_powerpc_isa207_htm_vsx64l.
2777 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2778 PPC_TDESC_ISA207_HTM_VSX.
2779 (initialize_low_tracepoint): Call
2780 init_registers_powerpc_isa207_htm_vsx32l and
2781 init_registers_powerpc_isa207_htm_vsx64l.
2783 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2785 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2786 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2787 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2788 (ppc_store_pmuregset): New functions.
2789 (ppc_regsets): Add entries for ebb and pmu regsets.
2790 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2791 pmu regsets are available. Set sizes for these regsets.
2793 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2795 * configure.srv (ipa_ppc_linux_regobj): Add
2796 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2797 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2798 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2799 rs6000/powerpc-isa207-vsx32l.xml, and
2800 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2801 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2802 <PPC_TDESC_ISA207_VSX>: New enum value.
2803 (init_registers_powerpc_isa207_vsx32l): Declare.
2804 (init_registers_powerpc_isa207_vsx64l): Declare.
2805 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2806 (ppc_store_tarregset): New function.
2807 (ppc_regsets): Add entry for the TAR regset.
2808 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2809 size for the TAR regsets.
2810 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2811 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2812 and init_registers_powerpc_isa207_vsx64l.
2813 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2814 (initialize_low_tracepoint): Call
2815 init_registers_powerpc_isa207_vsx32l and
2816 init_registers_powerpc_isa207_vsx64l.
2818 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2819 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2821 * configure.srv (ipa_ppc_linux_regobj): Add
2822 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2823 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2824 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2825 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2826 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2827 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2828 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2829 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2830 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2831 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2832 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2833 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2834 (ppc_hwcap): Add comment.
2835 (ppc_hwcap2): New global.
2836 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2837 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2838 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2839 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2840 when needed. Set sizes for the the DSCR and PPR regsets.
2841 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2842 (initialize_low_arch): Call
2843 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2844 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2845 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2846 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2847 (initialize_low_tracepoint): Call
2848 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2849 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2851 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2853 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2855 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2856 Simon Marchi <simark@simark.ca>
2858 * acinclude.m4: Include "../selftest.m4".
2859 * configure: Regenerate.
2860 * configure.ac: Use "GDB_AC_SELFTEST".
2861 * configure.srv: Use "$enable_unittests" instead of
2862 "$development" when checking whether unit tests have been
2864 * server.c (captured_main): Update message informing that
2865 selftests have been disabled.
2867 2018-10-04 Tom Tromey <tom@tromey.com>
2869 * configure: Rebuild.
2871 2018-10-04 Tom Tromey <tom@tromey.com>
2873 * server.c (handle_status): Rename inner "thread".
2874 (process_serial_event): Declare "res" in 'm' case.
2875 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2876 (iterate_over_lwps): Rename inner "thread".
2877 (linux_qxfer_libraries_svr4): Rename inner "len".
2878 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2880 2018-10-01 Gary Benson <gbenson@redhat.com>
2882 * gdb_proc_service.h: Moved common code to
2883 common/gdb_proc_service.h.
2885 2018-10-01 Gary Benson <gbenson@redhat.com>
2887 * gdb_proc_service.h: Synchronize comments and whitespace with
2888 GDB's version of this file.
2890 2018-09-25 Tom Tromey <tom@tromey.com>
2892 * configure: Rebuild.
2893 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2895 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2897 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2898 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2899 ($(IPA_LIB)): Sort IPA_OBJS.
2901 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2903 * Makefile.in: Remove references to $(ADD_DEPS).
2905 2018-09-16 Tom Tromey <tom@tromey.com>
2907 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2909 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2912 2018-09-05 Tom Tromey <tom@tromey.com>
2914 * configure: Rebuild.
2916 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2919 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2921 2018-08-27 Tom Tromey <tom@tromey.com>
2924 * configure: Rebuild.
2926 2018-08-27 Tom Tromey <tom@tromey.com>
2928 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2929 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2930 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2931 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2932 (s390x_emit_stack_adjust): Add casts to unsigned char.
2934 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2938 * server.h (struct client_state) <disable_randomization>:
2941 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2943 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2945 (mips_supply_ptrace_register): Likewise.
2947 2018-07-22 Tom Tromey <tom@tromey.com>
2949 * configure: Rebuild.
2951 2018-07-22 Tom Tromey <tom@tromey.com>
2953 * win32-low.c (win32_create_inferior): Remove unused variables.
2954 * gdbreplay.c (remote_open): Remove unused variable.
2955 * remote-utils.c (remote_prepare): Remove unused variable.
2956 * x86-tdesc.h (X86_TDESC_H): Define.
2957 (amd64_expedite_regs): Define conditionally.
2958 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2959 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2960 * remote-utils.c (readchar): Remove unused variable.
2962 2018-07-13 Pedro Alves <palves@redhat.com>
2964 * linux-low.c (linux_kill): Change parameter to process_info
2965 pointer instead of pid. Adjust.
2966 * lynx-low.c (lynx_kill): Likewise.
2967 * nto-low.c (nto_kill): Likewise.
2968 * spu-low.c (spu_kill): Likewise.
2969 * win32-low.c (win32_kill): Likewise.
2970 * server.c (handle_v_kill, kill_inferior_callback)
2971 (detach_or_kill_for_exit): Adjust.
2972 * target.c (kill_inferior): Change parameter to process_info
2973 pointer instead of pid. Adjust.
2974 * target.h (struct target_ops) <kill>: Change parameter to
2975 process_info pointer instead of pid. Adjust all implementations
2977 (kill_inferior): Likewise.
2979 2018-07-13 Pedro Alves <palves@redhat.com>
2981 * linux-low.c (linux_detach, linux_join): Change parameter to
2982 process_info pointer instead of pid. Adjust.
2983 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2984 * nto-low.c (nto_detach): Likewise.
2985 * spu-low.c (spu_detach, spu_join): Likewise.
2986 * win32-low.c (win32_detach, win32_join): Likewise.
2987 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2988 * target.h (struct target_ops) <detach, join>: Change parameter to
2989 process_info pointer instead of pid. Adjust all implementations
2991 (detach_inferior, join_inferior): Rename 'pid' parameter to
2994 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2995 Jan Kratochvil <jan.kratochvil@redhat.com>
2996 Paul Fertser <fercerpav@gmail.com>
2997 Tsutomu Seki <sekiriki@gmail.com>
2999 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3000 (OBS): Add 'common/netstuff.o'.
3001 (GDBREPLAY_OBS): Likewise.
3002 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3003 (remote_open): Implement support for IPv6
3005 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3007 (handle_accept_event): Accept connections from IPv6 sources.
3008 (remote_prepare): Handle IPv6-style hostnames; implement
3009 support for IPv6 connections.
3010 (remote_open): Implement support for printing connections from
3013 2018-07-11 Pedro Alves <palves@redhat.com>
3016 * mem-break.c (any_persistent_commands): Add process_info
3017 parameter and use it instead of relying on the current process.
3018 Change return type to bool.
3019 * mem-break.h (any_persistent_commands): Add process_info
3020 parameter and change return type to bool.
3021 * server.c (handle_detach): Remove require_running_or_return call.
3022 Look up the process_info for the process we're about to detach.
3023 If not found, return back error to GDB. Adjust
3024 any_persistent_commands call to pass down a process pointer.
3026 2018-07-11 Pedro Alves <palves@redhat.com>
3028 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3029 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3030 instead of collect_register_by_name.
3031 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3032 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3034 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3035 Pedro Alves <palves@redhat.com>
3037 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3039 2018-07-03 Tom Tromey <tom@tromey.com>
3041 * linux-low.c: Update.
3042 * lynx-low.c: Update.
3043 * mem-break.c: Update.
3044 * nto-low.c: Update.
3045 * remote-utils.c: Update.
3047 * spu-low.c: Update.
3049 * win32-low.c: Update.
3051 2018-07-03 Tom Tromey <tom@tromey.com>
3055 2018-07-03 Tom Tromey <tom@tromey.com>
3057 * linux-low.c: Update.
3059 2018-07-03 Tom Tromey <tom@tromey.com>
3063 2018-07-03 Tom Tromey <tom@tromey.com>
3065 * linux-low.c: Update.
3066 * linux-mips-low.c: Update.
3067 * lynx-low.c: Update.
3068 * nto-low.c: Update.
3069 * remote-utils.c: Update.
3071 * spu-low.c: Update.
3073 * thread-db.c: Update.
3075 2018-07-03 Tom Tromey <tom@tromey.com>
3077 * linux-low.c: Update.
3078 * linux-mips-low.c: Update.
3079 * lynx-low.c: Update.
3080 * mem-break.c: Update.
3081 * nto-low.c: Update.
3082 * remote-utils.c: Update.
3084 * spu-low.c: Update.
3086 * tracepoint.c: Update.
3088 2018-07-03 Tom Tromey <tom@tromey.com>
3090 * linux-low.c: Update.
3091 * linux-ppc-low.c: Update.
3092 * linux-x86-low.c: Update.
3093 * proc-service.c: Update.
3095 * spu-low.c: Update.
3096 * thread-db.c: Update.
3097 * win32-low.c: Update.
3099 2018-07-03 Tom Tromey <tom@tromey.com>
3101 * linux-low.c: Update.
3102 * lynx-low.c: Update.
3103 * nto-low.c: Update.
3104 * remote-utils.c: Update.
3105 * spu-low.c: Update.
3106 * thread-db.c: Update.
3107 * win32-low.c: Update.
3109 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3111 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3112 parameter in call to 'amd64_create_target_description'.
3114 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3116 * x86-tdesc.h: Remove executable permission flag.
3118 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3120 * configure.ac: Remove AC_PREREQ, add missing quoting.
3121 * configure: Re-generate.
3122 * config.in: Re-generate.
3123 * aclocal.m4: Re-generate.
3125 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3127 * tracepoint.h (current_traceframe): Remove declaration.
3129 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3131 * linux-aarch64-low.c (is_sve_tdesc): New function.
3132 (aarch64_sve_regs_copy_to_regcache): Likewise.
3133 (aarch64_sve_regs_copy_from_regcache): Likewise.
3134 (aarch64_regs_info): Add SVE checks.
3135 (initialize_low_arch): Initialize SVE.
3137 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3139 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3141 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3143 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3144 (initialize_low_tracepoint): Likewise
3145 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3146 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3148 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3150 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3152 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3154 * server.h (PBUFSIZ): Increase size
3156 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3158 * regcache.c (regcache::raw_compare): New function.
3159 * regcache.h (regcache::raw_compare): New declaration.
3161 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3163 * regcache.c (new_register_cache): Use new.
3164 (free_register_cache): Use delete.
3165 (register_data): Use const.
3166 (supply_register): Move body inside regcache.
3167 (regcache::raw_supply): New override function.
3168 (collect_register): Move body inside regcache.
3169 (regcache::raw_collect): New override function.
3170 (regcache::get_register_status): New override function.
3171 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3173 2018-06-09 Tom Tromey <tom@tromey.com>
3175 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3177 (event_queue): Use std::queue.
3178 (gdb_event_xfree): Remove.
3179 (initialize_event_loop, process_event, wait_for_event): Update.
3181 2018-06-08 Stan Cox <scox@redhat.com>
3183 * win32-low.c (win32_create_inferior): last_ptid and last_status
3184 moved to client_state.
3186 2018-06-08 Pedro Alves <palves@redhat.com>
3188 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3189 common/common-exceptions.o, common/common-utils.o,
3190 common/errors.o, common/print-utils.o and utils.o.
3191 * gdbreplay.c: Include "common-defs.h" instead of the two
3192 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3193 string.h or alloca.h.
3194 (perror_with_name): Delete.
3195 (remote_open): Use xstrdup instead of strdup.
3196 (main): Rename to ...
3197 (captured_main): ... this.
3200 2018-06-08 Tom Tromey <tom@tromey.com>
3202 * linux-low.c (linux_low_read_btrace): Update.
3204 2018-06-04 Stan Cox <scox@redhat.com>
3206 * server.h (struct client_state): New.
3207 * server.c (cont_thread, general_thread, multi_process)
3208 (report_fork_events, report_vfork_events, report_exec_events)
3209 (report_thread_events, swbreak_feature, hwbreak_feature)
3210 (vCont_supported, disable_randomization, pass_signals)
3211 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3212 Moved to client_state.
3213 * remote-utils.c (remote_debug, noack_mode)
3214 (transport_is_reliable): Moved to client_state.
3215 * tracepoint.c (current_traceframe): Moved to client_state.
3218 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3219 linux-low.c, remote-utils.h, target.c: Use client_state.
3221 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3223 * configure.srv: Add new c/h file.
3225 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3227 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3230 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3232 * gdb.arch/mips-fpregset-core.exp: New test.
3233 * gdb.arch/mips-fpregset-core.c: New test source.
3235 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3238 * hostio.c (require_int): Do not report overflow for integers
3239 between 0xfffffff and 0x7fffffff.
3241 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3243 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3244 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3245 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3247 (the_low_target): Wire them.
3249 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3251 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3252 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3253 mode. Call collect_register_by_name with vscr using
3254 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3255 (ppc_store_vrregset): Add and set vscr_offset variable as in
3256 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3259 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3261 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3262 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3263 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3265 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3267 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3268 (ppc_store_vsxregset): Likewise.
3269 (ppc_fill_vrregset): Likewise.
3270 (ppc_store_vrregset): Likewise.
3271 (ppc_fill_evrregset): Likewise.
3272 (ppc_store_evrregset): Likewise.
3273 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3274 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3277 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3279 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3280 wordsize of the inferior. Call ppc_linux_target_wordsize.
3282 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3284 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3285 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3286 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3287 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3288 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3289 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3290 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3291 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3292 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3293 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3294 (tdesc_powerpc_e500l): Remove.
3295 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3296 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3297 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3298 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3300 (ppc_arch_setup): Remove target description matching code. Fill a
3301 ppc_linux_features struct and call ppc_linux_match_description
3304 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3306 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3307 width of the requested register exceeds the width of the
3309 (mips_cannot_store_register): Likewise.
3311 2018-05-21 Maciej W. Rozycki <macro@mips.com>
3313 * linux-mips-low.c (mips_fetch_register): New function. Update
3315 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3316 (the_low_target): Wire `mips_fetch_register'.
3318 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3320 * lynx-i386-low.c (LYNXOS_178): New macro.
3321 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3322 the layout on LynxOS-178.
3323 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3324 handle floating point registers that are not supported by
3327 2018-05-10 Tom Tromey <tom@tromey.com>
3329 * configure: Rebuild.
3331 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3334 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3335 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3336 Use it to set the expedite_regs field in the given tdesc.
3337 * x86-tdesc.h: New file.
3338 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3339 Adjust following the addition of the new expedite_regs parameter
3340 to init_target_desc.
3341 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3342 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3343 (i386_linux_read_description, amd64_linux_read_description):
3344 Adjust following the addition of the new expedite_regs parameter
3345 to init_target_desc.
3346 * lynx-i386-low.c: #include "x86-tdesc.h".
3347 (lynx_i386_arch_setup): Adjust following the addition of the new
3348 expedite_regs parameter to init_target_desc.
3349 * nto-x86-low.c: #include "x86-tdesc.h".
3350 (nto_x86_arch_setup): Adjust following the addition of the new
3351 expedite_regs parameter to init_target_desc.
3352 * win32-i386-low.c: #include "x86-tdesc.h".
3353 (i386_arch_setup): Adjust following the addition of the new
3354 expedite_regs parameter to init_target_desc.
3356 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3359 * win32-low.c (win32_create_inferior): Add call to my_wait
3360 setting last_status global.
3362 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3365 * win32-low.c (create_process): Only call gdb_tilde_expand if
3366 inferior_cwd is not NULL.
3368 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3370 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3371 registers to the cache if their values have changed.
3372 (i387_xsave_to_cache): Provide default values for x87 control
3373 registers when these features are available, but disabled.
3374 * regcache.c (supply_register_by_name_zeroed): New function.
3375 * regcache.h (supply_register_by_name_zeroed): Declare new
3378 2018-05-07 Tom Tromey <tom@tromey.com>
3380 * configure: Rebuild.
3382 2018-05-04 Tom Tromey <tom@tromey.com>
3384 * configure: Rebuild.
3386 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3387 Pedro Alves <palves@redhat.com>
3389 * linux-aarch64-low.c (aarch64_stopped_data_address):
3392 2018-04-27 Tom Tromey <tom@tromey.com>
3394 * configure: Rebuild.
3396 2018-04-23 Tom Tromey <tom@tromey.com>
3398 * configure: Rebuild.
3400 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3402 * Makefile.in (depcomp): Add "..".
3403 (all_deps_files): New and use it.
3405 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3407 * configure.srv (aarch64*-*-linux*): Don't include xml.
3408 (i[34567]86-*-cygwin*): Likewise.
3409 (i[34567]86-*-linux*): Likewise.
3410 (i[34567]86-*-lynxos*): Likewise.
3411 (i[34567]86-*-mingw32ce*): Likewise.
3412 (i[34567]86-*-mingw*): Likewise.
3413 (i[34567]86-*-nto*): Likewise.
3414 (tic6x-*-uclinux): Likewise.
3415 (x86_64-*-linux*): Likewise.
3416 (x86_64-*-mingw*): Likewise.
3417 (x86_64-*-cygwin*): Likewise.
3419 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3421 * tdesc.c: Remove xml parameter.
3423 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3425 * server.c (get_features_xml): Remove cast.
3426 * tdesc.c (void target_desc::accept): Fill in function.
3427 (tdesc_get_features_xml): Remove old xml creation.
3428 (print_xml_feature::visit_pre): Add xml vistor.
3429 * tdesc.h (struct target_desc): Make xmltarget mutable.
3430 (tdesc_get_features_xml): Remove declaration.
3432 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3434 * tdesc.c (tdesc_architecture_name): Add new function.
3435 (tdesc_osabi_name): Likewise.
3436 (tdesc_get_features_xml): Use new functions.
3438 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3440 * tdesc.c (tdesc_create_flags): Remove.
3441 (tdesc_add_flag): Likewise.
3442 (tdesc_named_type): Likewise.
3443 (tdesc_create_union): Likewise.
3444 (tdesc_create_struct): Likewise.
3445 (tdesc_create_vector): Likewise.
3446 (tdesc_add_bitfield): Likewise.
3447 (tdesc_add_field): Likewise.
3448 (tdesc_set_struct_size): Likewise.
3450 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3452 * tdesc.c (~target_desc): Remove implictly deleted items.
3453 (init_target_desc): Iterate all features.
3454 (tdesc_get_features_xml): Use vector.
3455 (tdesc_create_feature): Create feature.
3456 * tdesc.h (tdesc_feature) Remove
3457 (target_desc): Add features.
3459 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3461 * Makefile.in: Add common/tdesc.c
3462 * tdesc.c (init_target_desc): init all reg_defs from register
3464 (tdesc_create_reg): Create tdesc_reg.
3465 * tdesc.h (tdesc_feature): Add register vector.
3467 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3469 * tdesc.h (struct target_desc) <features>: Change type to
3470 std::vector<std::string>.
3471 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3473 (tdesc_get_features_xml): Likewise.
3474 (tdesc_create_feature): Likewise.
3476 2018-03-26 Alan Hayward <alan.hayward@arm.com>
3478 * regcache.c (find_register_by_number): Return a ref.
3479 (find_regno): Use references.
3480 (register_size): Likewise.
3481 (register_data): Likewise.
3482 * tdesc.c (target_desc::~target_desc): Remove free calls.
3483 (target_desc::operator==): Use std::vector compare.
3484 (init_target_desc): Use reference.
3485 (tdesc_create_reg): Use reg constructors.
3486 * tdesc.h (struct target_desc): Replace pointer with object.
3488 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3490 * regcache.c (find_register_by_number): Make static.
3491 (find_regno): Use find_register_by_number
3492 * regcache.h (struct reg): Remove declaration.
3494 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3496 * tdesc.c (target_desc::~target_desc): Move to here.
3497 (target_desc::operator==): Likewise.
3498 * tdesc.h (target_desc::~target_desc): Move from here.
3499 (target_desc::operator==): Likewise.
3501 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3503 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3505 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3507 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3509 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3510 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3511 and init_registers_s390_gs_linux64.
3513 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3515 * linux-s390-low.c (s390_fill_gs): Remove function.
3516 (s390_fill_gsbc): Remove function.
3517 (s390_regsets): Set fill functions for the guarded storage regsets
3520 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3522 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3523 the word size. Add comment.
3524 (s390_get_wordsize): New function.
3525 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3526 pswm with it. Instead, use s390_get_wordsize to determine the
3527 word size first and derive the correct tdesc from that directly.
3529 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3531 * Makefile.in: Include silent-rules.mk.
3532 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3533 (COMPILE): Add ECHO_CXX.
3534 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3535 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3536 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3537 (version-generated.c): Add ECHO_GEN.
3538 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3539 (IPAGENT_COMPILE): Add ECHO_CXX.
3540 (%-generated.c): Add ECHO_REGDAT.
3542 2018-03-14 Tom Tromey <tom@tromey.com>
3545 * ax.c (ax_printf): Special case for NULL.
3547 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3549 * linux-low.c (linux_qxfer_libraries_svr4): Use
3550 xml_escape_text_append.
3552 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3554 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3556 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3558 * server.c (handle_general_set): Remove unnecessary xstrdup.
3560 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3562 * server.c (parse_debug_format_options): Adjust to
3563 delim_string_to_char_ptr_vec changes.
3564 * thread-db.c (thread_db_load_search): Adjust to
3565 dirnames_to_char_ptr_vec changes.
3567 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3569 * target.h (target_enable_btrace, target_disable_btrace)
3570 (target_read_btrace, target_read_btrace_conf): Turn macro into
3571 inline function. Throw error if target method is not defined.
3572 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3573 check for btrace target method. Be prepared to handle exceptions
3574 from btrace target methods.
3576 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3578 * server.c (captured_main): Change order of error message printed
3579 when the current working directory cannot be found.
3581 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3583 * server.c: Include "filenames.h" and "pathstuff.h".
3584 (program_name): Delete variable.
3585 (program_path): New anonymous class.
3586 (get_exec_wrapper): Use "program_path" instead of
3588 (handle_v_run): Likewise.
3589 (captured_main): Likewise.
3590 (process_serial_event): Likewise.
3592 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3594 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3595 (OBJS): Add "pathstuff.o".
3596 * server.c (current_directory): New global variable.
3597 (captured_main): Initialize "current_directory".
3599 2018-02-26 Alan Hayward <alan.hayward@arm.com>
3601 * tdesc.c: Use common/tdesc.h.
3602 * tdesc.h: Likewise.
3604 2018-02-20 Alan Hayward <alan.hayward@arm.com>
3605 Simon Marchi <simon.marchi@ericsson.com>
3607 * Makefile.in: Switch order of make rules.
3609 2018-02-19 Alan Hayward <alan.hayward@arm.com>
3611 * Makefile.in: Add common directory in build.
3612 * configure.ac: Add common reference.
3613 * configure: Regenerate.
3615 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3617 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3618 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3619 * spu-low.c (spu_target_ops): Likewise.
3620 * win32-low.c (win32_target_ops): Likewise.
3621 * server.c (supported_btrace_packets): Report packets unconditionally.
3622 * target.h (target_ops) <supports_btrace>: Remove.
3623 (target_supports_btrace): Remove.
3625 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3627 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3628 (handle_btrace_disable): Change return type to void. Use exceptions
3630 (handle_btrace_general_set): Catch exception and copy message to
3633 2018-02-08 Tom Tromey <tom@tromey.com>
3635 * linux-low.c (install_software_single_step_breakpoints): Use
3636 make_scoped_restore.
3637 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3638 (do_restore_current_thread_cleanup): Remove.
3639 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3642 2018-02-08 Tom Tromey <tom@tromey.com>
3644 * mem-break.c (set_raw_breakpoint_at): Use
3645 gdb::unique_xmalloc_ptr.
3647 2018-01-30 Pedro Alves <palves@redhat.com>
3650 * target.c (target_terminal::terminal_state): Rename to ...
3651 (target_terminal::m_terminal_state): ... this.
3653 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3655 * linux-low.c (handle_extended_wait): Surround call to
3656 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3658 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3660 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3661 linux_ptrace_attach_fail_reason_string now returning an
3663 (linux_attach): Likewise.
3664 * thread-db.c (attach_thread): Likewise.
3666 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3669 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3670 checking for fs_base/gs_base fields in struct user_regs_struct.
3671 * configure: Regenerate.
3673 2018-01-16 Yao Qi <yao.qi@linaro.org>
3676 * linux-low.c (fetch_register): Call supply_register instead of
3679 2018-01-08 Yao Qi <yao.qi@linaro.org>
3680 Simon Marchi <simon.marchi@ericsson.com>
3682 * Makefile.in (OBS): Remove selftest.o.
3683 * configure.ac: Set srv_selftest_objs if $development is true.
3684 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3685 * configure: Re-generated.
3686 * server.c (captured_main): Wrap variable selftest_filter with
3689 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3691 * server.c (parse_debug_format_options): Return std::string.
3692 (handle_monitor_command, captured_main): Adjust.
3694 2018-01-05 Pedro Alves <palves@redhat.com>
3697 * server.c (captured_main): Pass quiet=false to
3698 save_original_signals_state.
3700 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3702 * gdbreplay.c (gdbreplay_version): Update copyright year in
3704 * server.c (gdbserver_version): Likewise.
3706 2017-12-08 Tom Tromey <tom@tromey.com>
3708 * ax.c (ax_printf): Update.
3710 2017-12-07 Yao Qi <yao.qi@linaro.org>
3712 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3713 aarch64_linux_read_description.
3714 * linux-amd64-ipa.c (idx2mask): New array.
3715 (get_ipa_tdesc): Move idx2mask out.
3716 (initialize_low_tracepoint): Initialize target descriptions.
3717 * linux-i386-ipa.c (idx2mask): New array.
3718 (get_ipa_tdesc): Move idx2mask out.
3719 (initialize_low_tracepoint): Initialize target descriptions.
3721 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3723 * tdesc.c (struct tdesc_type): Change return type.
3724 (tdesc_add_flag): Change parameter type.
3725 (tdesc_add_bitfield): Likewise.
3726 (tdesc_add_field): Likewise.
3727 (tdesc_set_struct_size): Likewise.
3729 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3731 * regcache.c (registers_to_string): Remove unused variable.
3733 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3735 * inferiors.c (for_each_inferior_with_data): Remove.
3736 * inferiors.h (for_each_inferior_with_data): Remove.
3737 * server.c (handle_qxfer_threads_worker): Change parameter type.
3738 (handle_qxfer_threads_proper): Use for_each_thread.
3740 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3742 * inferiors.c (for_each_inferior): Remove.
3743 (clear_inferiors): Use for_each_thread.
3744 * inferiors.h (for_each_inferior): Remove.
3745 * linux-low.c (linux_wait_for_event_filtered): Use
3747 (linux_stabilize_threads): Likewise.
3748 * regcache.c (regcache_release): Likewise.
3749 * server.c (gdb_wants_all_threads_stopped): Likewise.
3750 (clear_pending_status_callback): Remove.
3751 (handle_status): Use for_each_thread.
3752 (captured_main): Likewise.
3753 * win32-low.c (child_init_thread_list): Likewise.
3754 (win32_clear_inferiors): Likewise.
3755 (fake_breakpoint_event): Likewise.
3757 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3759 * inferiors.h (find_inferior): Remove.
3760 * inferiors.c (find_inferior): Remove.
3762 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3764 * linux-low.c (resume_status_pending_p): Update comment.
3765 (need_step_over_p): Update comment.
3767 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3769 * linux-low.c (proceed_one_lwp): Return void, change parameter
3771 (unsuspend_and_proceed_one_lwp): Likewise.
3772 (proceed_all_lwps): Use for_each_thread.
3773 (unstop_all_lwps): Likewise.
3775 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3777 * linux-low.c (linux_resume_one_thread): Return void, take
3779 (linux_resume): Use for_each_thread.
3781 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3783 * linux-low.c (send_sigstop_callback): Return void, change
3784 parameter type. Rename to...
3785 (send_sigstop): ... this.
3786 (suspend_and_send_sigstop_callback): Return void, change parameter
3788 (suspend_and_send_sigstop): ... this.
3789 (stop_all_lwps): Use for_each_thread.
3791 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3793 * linux-low.c (lwp_running): Return bool, remove unused
3795 (linux_stabilize_threads): Use find_thread.
3797 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3799 * linux-low.c (select_singlestep_lwp_callback): Remove.
3800 (count_events_callback): Remove.
3801 (select_event_lwp_callback): Remove.
3802 (select_event_lwp): Use find_thread/for_each_thread.
3804 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3806 * linux-low.c (not_stopped_callback): Return bool, take filter
3808 (linux_wait_for_event_filtered): Use find_thread.
3809 (linux_wait_1): Likewise.
3811 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3813 * linux-low.c (same_lwp): Remove.
3814 (find_lwp_pid): Use find_thread.
3816 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3818 * linux-low.c (delete_lwp_callback): Remove.
3819 (linux_mourn): Use for_each_thread.
3821 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3823 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3824 args parameter, don't check for pid.
3825 (linux_detach): Use for_each_thread.
3827 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3829 * linux-low.c (struct counter): Remove.
3830 (second_thread_of_pid_p): Remove.
3831 (last_thread_of_process_p): Use find_thread.
3833 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3835 * inferiors.c (find_inferior_in_random): Remove.
3836 * inferiors.h (find_inferior_in_random): Remove.
3837 * linux-low.c (status_pending_p_callback): Return bool, accept
3838 parameter ptid directly.
3839 (linux_wait_for_event_filtered): Use find_thread_in_random.
3840 (linux_wait_1): Likewise.
3842 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3844 * inferiors.c (find_inferior_id): Remove.
3845 (find_thread_ptid): Move implemention from find_inferior_id to
3847 * inferiors.h (find_inferior_id): Remove.
3848 * server.c (handle_status): Use find_thread_ptid.
3849 (process_serial_event): Likewise.
3850 * thread-db.c (find_one_thread): Likewise.
3851 (thread_db_thread_handle): Likewise.
3852 * win32-low.c (thread_rec): Likewise.
3853 (child_delete_thread): Likewise.
3854 (win32_thread_alive): Likewise.
3855 (get_child_debug_event): Likewise.
3857 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3859 * linux-mips-low.c (update_watch_registers_callback): Return
3860 void, remove pid_p parameter, don't check for pid.
3861 (mips_insert_point, mips_remove_point): Use for_each_thread.
3863 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3865 * lynx.low (lynx_delete_thread_callback): Remove.
3866 (lynx_mourn): Use for_each_thread.
3868 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3870 * regcache.c (regcache_invalidate_one): Remove.
3871 (regcache_invalidate_pid): use for_each_thread.
3873 2017-11-26 Tom Tromey <tom@tromey.com>
3875 * linux-low.c (linux_create_inferior): Update.
3877 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3879 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3881 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3883 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3884 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3885 * linux-aarch64-tdesc-selftest.c: New file.
3886 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3888 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3890 * configure.srv: Add new file.
3891 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3892 * linux-aarch64-tdesc-selftest.c: New file.
3893 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3895 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3897 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3898 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3899 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3901 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3903 * configure.srv: Add new files.
3904 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3905 aarch64_linux_read_description.
3906 * linux-aarch64-low.c (aarch64_linux_read_description):
3907 Merge with aarch64_arch_setup.
3908 (aarch64_arch_setup): Call aarch64_linux_read_description.
3909 * linux-aarch64-tdesc.c: New file.
3910 * linux-aarch64-tdesc.h: New file.
3912 2017-11-24 Yao Qi <yao.qi@linaro.org>
3914 * configure.srv: Set $srv_regobj for tic6x-linux.
3915 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3916 (tic6x_read_description): Move some code to tic6x_arch_setup.
3917 (tic6x_tdesc_test): New function.
3918 (initialize_low_arch): Call selftests::register_test.
3920 2017-11-22 Yao Qi <yao.qi@linaro.org>
3922 * remote-utils.c (prepare_resume_reply): Use memcpy.
3924 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3926 * linux-low.c (kill_one_lwp_callback): Return void, take
3927 argument directly, don't filter on pid.
3928 (linux_kill): Use for_each_thread.
3930 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3932 * linux-low.c (need_step_over_p): Return bool, remove dummy
3934 (linux_resume, proceed_all_lwps): Use find_thread.
3936 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3938 * linux-low.c (resume_status_pending_p): Return bool, remove
3940 (linux_resume): Use find_thread.
3942 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3944 * linux-low.c (struct thread_resume_array): Remove.
3945 (linux_set_resume_request): Return void, take arguments
3947 (linux_resume): Use for_each_thread.
3949 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3951 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3952 return bool, remove data argument.
3953 (linux_stabilize_threads): Use find_thread.
3955 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3957 * linux-low.c (unsuspend_one_lwp): Remove.
3958 (unsuspend_all_lwps): Use for_each_thread, inline code from
3961 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3963 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3964 * linux-low.c (struct iterate_over_lwps_args): Remove.
3965 (iterate_over_lwps_filter): Remove.
3966 (iterate_over_lwps): Use find_thread.
3968 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3970 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
3971 (linux_handle_new_gdb_connection): Use for_each_thread, inline
3972 code from reset_lwp_ptrace_options_callback.
3974 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3976 * linux-arm-low.c (struct update_registers_data): Remove.
3977 (update_registers_callback): Return void, take arguments
3978 directly, don't check thread's pid.
3979 (arm_insert_point, arm_remove_point): Use for_each_thread.
3981 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3983 * win32-low.c (continue_one_thread): Return void, take argument
3985 (child_continue): Use for_each_thread.
3987 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3989 * win32-i386-low.c (update_debug_registers_callback): Rename
3991 (update_debug_registers): ... this, return void, remove pid_p arg.
3992 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3994 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3996 * inferiors.h (struct process_info): Add constructor, initialize
3998 <syscalls_to_catch>: Change type to std::vector<int>.
3999 * inferiors.c (add_process): Allocate process_info with new.
4000 (remove_process): Free process_info with delete.
4001 * linux-low.c (handle_extended_wait): Adjust.
4002 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4003 * server.c (handle_general_set): Adjust.
4005 2017-11-16 Pedro Alves <palves@redhat.com>
4007 * remote-utils.c (remote_close): Block SIGIO signals instead of
4008 uninstalling the SIGIO handler.
4010 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4012 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4014 2017-11-16 Yao Qi <yao.qi@linaro.org>
4016 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4017 (tic6x_store_gregset): Likewise.
4018 (tic6x_usrregs_info): Move it up.
4020 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4022 * Makefile.in: Update arch rules.
4023 * configure.srv: Explicitly mark arch/ files.
4025 2017-11-13 Andreas Schwab <schwab@suse.de>
4027 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4029 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4031 2017-11-06 Pedro Alves <palves@redhat.com>
4033 * config.in, configure: Regenerate.
4035 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4037 * target.c (struct thread_search): Remove.
4038 (thread_search_callback): Remove.
4039 (prepare_to_access_memory): Use for_each_thread instead of
4040 find_inferior. Inline code from thread_search_callback.
4042 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4044 * server.c (struct visit_actioned_threads_data): Remove.
4045 (visit_actioned_threads): Change prototype to take arguments
4047 (resume): Use find_thread instead of find_inferior.
4049 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4051 * server.c (queue_stop_reply_callback): Change prototype, return
4053 (find_status_pending_thread_callback): Remove.
4054 (handle_status): Replace find_inferior with find_thread and
4057 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4059 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4061 (aarch64_store_gregset): Likewise.
4062 (aarch64_fill_fpregset): Likewise.
4063 (aarch64_store_fpregset): Likewise.
4065 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4067 * gdbthread.h (find_thread, for_each_thread): New functions.
4068 * inferiors.c (thread_of_pid): Remove.
4069 (find_any_thread_of_pid): Use find_thread.
4070 * linux-low.c (num_lwps): Use for_each_thread.
4072 2017-10-17 Yao Qi <yao.qi@linaro.org>
4074 * Makefile.in: Remove one rule.
4075 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4077 2017-10-17 Yao Qi <yao.qi@linaro.org>
4079 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4080 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4082 2017-10-17 Yao Qi <yao.qi@linaro.org>
4084 * configure.srv: Rename arm.o with arch/arm.o.
4086 2017-10-17 Yao Qi <yao.qi@linaro.org>
4088 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4089 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4090 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4091 (arch-i386.o, arch-amd64.o): Remove rules.
4092 (arch/%.o): New rule.
4093 Update POSTCOMPILE and COMPILE.pre.
4094 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4095 * configure: Re-generated.
4096 * configure.srv: Replace arch-i386.o with arch/i386.o.
4097 Replace arch-amd64.o with arch/amd64.o.
4099 2017-10-16 Yao Qi <yao.qi@linaro.org>
4101 * configure: Regenerated.
4103 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4105 * inferiors.h: (struct inferior_list): Remove.
4106 (struct inferior_list_entry); Remove.
4107 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4108 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4109 get_first_inferior): Remove.
4110 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4111 find_inferior_id, find_inferior_in_random): Change signature.
4112 * inferiors.c (all_threads): Change type to
4113 std::list<thread_info *>.
4114 (get_thread): Remove macro.
4115 (find_inferior, find_inferior_id): Change signature, implement
4117 (find_inferior_in_random): Change signature, implement using
4118 find_thread_in_random.
4119 (for_each_inferior, for_each_inferior_with_data): Change
4120 signature, implement using for_each_thread.
4121 (add_inferior_to_list, remove_inferior): Remove.
4122 (add_thread, get_first_thread, thread_of_pid,
4123 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4124 (get_first_inferior, one_inferior_p, clear_inferior_list):
4126 (clear_inferiors, get_thread_process): Update.
4127 * gdbthread.h: Include <list>.
4128 (struct thread_info) <entry>: Remove field.
4130 (all_threads): Change type to std::list<thread_info *>.
4131 (get_first_inferior): Add doc.
4132 (find_thread, for_each_thread, find_thread_in_random): New
4134 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4135 * linux-arm-low.c (update_registers_callback): Update.
4136 * linux-low.c (second_thread_of_pid_p): Update.
4137 (kill_one_lwp_callback, linux_detach_lwp_callback,
4138 delete_lwp_callback, status_pending_p_callback, same_lwp,
4139 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4140 iterate_over_lwps, not_stopped_callback,
4141 resume_stopped_resumed_lwps, count_events_callback,
4142 select_singlestep_lwp_callback, select_event_lwp_callback,
4143 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4144 suspend_and_send_sigstop_callback, wait_for_sigstop,
4145 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4146 lwp_running, linux_set_resume_request, resume_status_pending_p,
4147 need_step_over_p, start_step_over, linux_resume_one_thread,
4148 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4149 reset_lwp_ptrace_options_callback): Update.
4150 * linux-mips-low.c (update_watch_registers_callback): Update.
4151 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4153 (free_register_cache_thread_one): Remove.
4154 (regcache_release): Update.
4155 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4156 handle_qxfer_threads_worker): Update.
4157 (handle_query): Update, use list iterator.
4158 (visit_actioned_threads, handle_pending_status,
4159 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4160 clear_pending_status_callback, set_pending_status_callback,
4161 find_status_pending_thread_callback, handle_status,
4162 process_serial_event): Update.
4163 * target.c (thread_search_callback): Update.
4164 * thread-db.c (thread_db_get_tls_address): Update.
4165 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4167 * win32-i386-low.c (update_debug_registers_callback): Update.
4168 * win32-low.c (delete_thread_info, child_delete_thread,
4169 continue_one_thread, suspend_one_thread,
4170 get_child_debug_event): Adjust.
4172 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4174 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4175 * inferiors.h: Include <list>.
4176 (struct process_info) <entry>: Remove field.
4178 (pid_of): Change macro to function.
4179 (ptid_of, lwpid_of): Remove macro.
4180 (all_processes): Change type to std::list<process_info *>.
4181 (ALL_PROCESSES): Remove macro.
4182 (for_each_process, find_process): New function.
4183 * inferiors.c (all_processes): Change type to
4184 std::list<process_info *>.
4185 (find_thread_process): Adjust.
4186 (add_process): Likewise.
4187 (remove_process): Likewise.
4188 (find_process_pid): Likewise.
4189 (get_first_process): Likewise.
4190 (started_inferior_callback): Remove.
4191 (have_started_inferiors_p): Adjust.
4192 (attached_inferior_callback): Remove.
4193 (have_attached_inferiors_p): Adjust.
4194 * linux-low.c (check_zombie_leaders): Likewise.
4195 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4196 (x86_linux_update_xmltarget): Adjust.
4197 * server.c (handle_query): Likewise.
4198 (gdb_reattached_process): Remove.
4199 (handle_status): Adjust.
4200 (kill_inferior_callback): Likewise.
4201 (detach_or_kill_inferior): Remove.
4202 (print_started_pid): Likewise.
4203 (print_attached_pid): Likewise.
4204 (detach_or_kill_for_exit): Update.
4205 (process_serial_event): Likewise.
4206 * linux-arm-low.c (arm_new_fork): Likewise.
4208 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4210 * dll.h: Include <list>.
4211 (struct dll_info): Add constructor.
4212 <entry>: Remove field.
4213 (all_dlls): Change type to std::list<dll_info>.
4214 * dll.c: Include <algorithm>.
4215 (get_dll): Remove macro.
4216 (all_dlls): Change type to std::list<dll_info *>.
4217 (free_one_dll): Remove.
4218 (match_dll): Likewise.
4219 (loaded_dll): Adjust.
4220 (unloaded_dll): Adjust to all_dlls type change, use
4221 std::find_if. Inline code from match_dll.
4222 (clear_dlls): Adjust to all_dlls type change.
4223 * server.c (emit_dll_description): Remove.
4224 (handle_qxfer_libraries): Adjust to all_dlls type change,
4225 integrate emit_dll_description's functionality.
4227 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4229 * linux-low.h (struct linux_target_ops) <delete_process>: New
4231 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4232 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4233 (struct linux_target_ops): Add delete_process callback.
4234 * linux-arm-low.c (arm_delete_process): New.
4235 (struct linux_target_ops): Add delete_process callback.
4236 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4237 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4238 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4239 * linux-mips-low.c (mips_linux_delete_process): New.
4240 (struct linux_target_ops): Add delete_process callback.
4241 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4242 * linux-s390-low.c (struct linux_target_ops): Likewise.
4243 * linux-sh-low.c (struct linux_target_ops): Likewise.
4244 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4245 * linux-tile-low.c (struct linux_target_ops): Likewise.
4246 * linux-x86-low.c (x86_linux_delete_process): New.
4247 (struct linux_target_ops): Add delete_process callback.
4248 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4250 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4252 * linux-aarch64-low.c (the_low_target): Add thread delete
4254 * linux-arm-low.c (arm_delete_thread): New function.
4255 (the_low_target): Add thread delete callback.
4256 * linux-bfin-low.c (the_low_target): Likewise.
4257 * linux-crisv32-low.c (the_low_target): Likewise.
4258 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4260 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4262 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4263 * linux-mips-low.c (mips_linux_delete_thread): New function.
4264 (the_low_target): Add thread delete callback.
4265 * linux-ppc-low.c (the_low_target): Likewise.
4266 * linux-s390-low.c (the_low_target): Likewise.
4267 * linux-sh-low.c (the_low_target): Likewise.
4268 * linux-tic6x-low.c (the_low_target): Likewise.
4269 * linux-tile-low.c (the_low_target): Likewise.
4270 * linux-x86-low.c (the_low_target): Likewise.
4271 * linux-xtensa-low.c (the_low_target): Likewise.
4273 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4275 * win32-low.c: Include "common-inferior.h".
4277 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4279 * inferiors.c (set_inferior_cwd): New function.
4280 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4281 (handle_query): Inform that QSetWorkingDir is supported.
4282 * win32-low.c (create_process): Pass the inferior's cwd to
4285 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4287 * inferiors.c (current_inferior_cwd): New global variable.
4288 (get_inferior_cwd): New function.
4289 * inferiors.h (struct process_info) <cwd>: New field.
4291 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4293 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4294 (OBS): Add gdb_tilde_expand.o.
4296 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4298 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4299 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4301 2017-09-29 Pedro Alves <palves@redhat.com>
4303 * ax.c (gdb_parse_agent_expr): Constify.
4304 * ax.h (gdb_parse_agent_expr): Constify.
4305 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4307 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4308 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4309 * remote-utils.h (read_ptid): Constify.
4310 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4311 (process_point_options, process_serial_event): Constify.
4312 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4313 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4314 (cmd_qtbuffer): Constify.
4316 2017-09-29 Pedro Alves <palves@redhat.com>
4318 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4321 2017-09-29 Pedro Alves <palves@redhat.com>
4323 * linux-low.c (handle_extended_wait): Pass parent thread instead
4324 of process to thread_db_notice_clone.
4325 * linux-low.h (thread_db_notice_clone): Replace parent process
4326 parameter with parent thread parameter.
4327 * thread-db.c (find_one_thread): Add comment.
4328 (thread_db_notice_clone): Replace parent process parameter with
4329 parent thread parameter. Temporarily switch to the parent thread.
4331 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4333 * gdbthread.h: Include "common-gdbthread.h".
4334 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4335 "if" when validating the ptid.
4336 * remote-utils.c: Include "gdbthread.h".
4337 (prepare_resume_reply): Use "switch_to_thread".
4338 * target.c (done_accessing_memory): Likewise.
4340 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4342 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4343 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4344 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4345 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4346 s390x-gs-linux64-ipa.o to ipa_obj.
4347 * linux-s390-low.c (HWCAP_S390_GS): New define.
4348 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4350 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4351 (s390_arch_setup): Check for guarded-storage support and choose
4353 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4354 init_registers_s390x_gs_linux64.
4355 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4357 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4358 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4360 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4362 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4364 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4366 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4367 (thread_db_thread_handle): Declare.
4368 * linux-low.c (linux_target_ops): Initialize thread_handle.
4369 * server.c (handle_qxfer_threads_worker): Add support for
4371 * target.h (struct target_ops): Add new function pointer,
4373 (target_thread_handle): Define.
4374 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4376 (thread_db_thread_handle): New function.
4378 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4380 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4381 * linux-low.h (thread_db_notice_clone): Declare.
4382 * thread-db.c (thread_db_notice_clone): New function.
4384 2017-09-21 Pedro Alves <palves@redhat.com>
4386 * server.c (gdb_read_memory, handle_status, process_serial_event)
4387 (handle_serial_event, handle_target_event): Adjust to
4388 set_desired_thread prototype change.
4389 * target.c (set_desired_thread): Remove 'use_general' parameter
4391 * target.h (set_desired_thread): Remove 'use_general' parameter.
4393 2017-09-20 Tom Tromey <tom@tromey.com>
4395 * target.c (target_terminal::terminal_state): Define.
4396 (target_terminal::init): Rename from target_terminal_init.
4397 (target_terminal::inferior): Rename from
4398 target_terminal_inferior.
4399 (target_terminal::ours): Rename from target_terminal_ours.
4400 (target_terminal::ours_for_output, target_terminal::info): New.
4402 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4404 * server.c (accumulate_file_name_length): Remove.
4405 (emit_dll_description): Adjust to std::string change.
4406 (handle_qxfer_libraries): Use std::string to hold document.
4408 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4410 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4411 return type of xml_escape_text.
4412 * server.c (emit_dll_description): Likewise.
4414 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4416 * server.c (captured_main): Accept argument for --selftest.
4417 Update run_tests call.
4418 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4419 when registering selftests.
4421 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4423 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4424 instead of "VEC" for "target_desc.reg_defs".
4425 (regcache_cpy): Likewise.
4426 (registers_to_string): Likewise.
4427 (registers_from_string): Likewise.
4428 (find_regno): Likewise.
4429 (supply_regblock): Likewise.
4430 (regcache_raw_read_unsigned): Likewise.
4431 * tdesc.c (init_target_desc): Likewise.
4432 (tdesc_create_reg): Likewise.
4433 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4434 (struct target_desc) <reg_defs>: Convert to "std::vector".
4435 (target_desc): Do not initialize "reg_defs".
4436 (~target_desc): Update code to use "std::vector" instead of "VEC"
4437 for "target_desc.reg_defs".
4438 (operator==): Likewise.
4440 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4442 * inferiors.h (thread_to_gdb_id): Remove.
4443 * inferiors.c (thread_to_gdb_id): Remove.
4444 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4445 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4446 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4448 * nto-low.c (nto_fetch_registers, nto_store_registers,
4449 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4451 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4453 * inferiors.h (gdb_id_to_thread_id): Remove.
4454 * inferiors.c (gdb_id_to_thread_id): Remove.
4455 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4456 removal. Move pid declaration closer to where it's used.
4458 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4460 * server.c (handle_detach): New function.
4461 (process_serial_event): Move code out, call handle_detach.
4463 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4465 * server.c (require_running): Rename to ...
4466 (require_running_or_return): ... this ...
4467 (require_running_or_break): ... and this.
4468 (handle_query, process_serial_event): Adjust.
4470 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4472 * linux-low.c (linux_set_resume_request): Remove unused
4475 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4477 * server.c (first_thread_of): Remove.
4478 (process_serial_event): Replace usage of first_thread_of with
4479 find_any_thread_of_pid.
4480 * tracepoint.c (same_process_p): Remove.
4481 (gdb_agent_about_to_close): Replace usage of same_process_p with
4482 find_any_thread_of_pid.
4483 * linux-x86-low.c (same_process_callback): Remove.
4484 (x86_arch_setup_process_callback): Replace usage of
4485 same_process_callback with find_any_thread_of_pid.
4486 * thread-db.c (any_thread_of): Remove.
4487 (switch_to_process): Replace usage of any_thread_of with
4488 find_any_thread_of_pid.
4489 * inferiors.c (thread_pid_matches_callback): Remove.
4490 (find_thread_process): Adjust to use find_any_thread_of_pid.
4492 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4494 * regcache.c (get_thread_regcache): Guard calls to "memset"
4497 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4499 * linux-low.c (handle_extended_wait): Use
4500 "allocate_target_description" instead of "XNEW".
4501 * linux-x86-low.c (initialize_low_arch): Likewise.
4503 2017-09-05 Yao Qi <yao.qi@linaro.org>
4505 * configure.srv (srv_i386_regobj): Remove.
4506 (srv_amd64_regobj): Remove.
4507 (srv_regobj): Set it to "" for x86 non-linux targets.
4508 * linux-x86-tdesc.c (i386_linux_read_description):
4509 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4510 (init_registers_i386): Remove the declaration.
4511 (tdesc_i386): Remove the declaration.
4512 (lynx_i386_arch_setup): Call i386_create_target_description.
4513 * nto-x86-low.c: Likewise.
4514 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4515 [!__x86_64__]: include arch/i386.h.
4516 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4518 2017-09-05 Yao Qi <yao.qi@linaro.org>
4520 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4521 i386/amd64-XXX-linux from it.
4523 2017-09-05 Yao Qi <yao.qi@linaro.org>
4525 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4527 (ipa_amd64_linux_regobj): Remove.
4528 (ipa_x32_linux_regobj): Remove.
4530 2017-09-05 Yao Qi <yao.qi@linaro.org>
4532 * Makefile.in (arch-amd64.o): New rule.
4533 * configure.srv: Append arch-amd64.o.
4534 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4535 (get_ipa_tdesc): Call amd64_linux_read_description.
4536 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4537 and init_registers_amd64_XXX.
4538 * linux-x86-low.c (x86_linux_read_description): Call
4539 amd64_linux_read_description.
4540 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4541 (initialize_low_arch): Don't call init_registers_x32_XXX and
4542 init_registers_amd64_XXX.
4543 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4544 and tdesc_amd64_XXX.
4545 [__x86_64__] (amd64_tdesc_test): New function.
4546 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4547 and init_registers_amd64_XXX.
4548 * linux-x86-tdesc.c: Include arch/amd64.h.
4549 (xcr0_to_tdesc_idx): New function.
4550 (i386_linux_read_description): New function.
4551 (amd64_get_ipa_tdesc_idx): New function.
4552 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4553 (amd64_get_ipa_tdesc): Declare.
4555 2017-09-05 Yao Qi <yao.qi@linaro.org>
4557 * configure.srv (srv_i386_linux_xmlfiles): Remove
4558 i386/i386-XXX-linux.xml from it.
4560 2017-09-05 Yao Qi <yao.qi@linaro.org>
4562 * configure.srv: Set srv_i386_linux_regobj empty if $development
4564 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4565 initialize_low_tdesc.
4566 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4567 with #if initialize_low_tdesc.
4568 * linux-x86-tdesc-selftest.c: New file.
4569 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4571 2017-09-05 Yao Qi <yao.qi@linaro.org>
4573 * Makefile.in (arch-i386.o): New rule.
4574 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4575 (x86_64-*-linux*): Likewise.
4576 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4577 include arch/i386.h.
4578 (i386_linux_read_description): Remove code and call
4579 i386_create_target_description.
4580 * tdesc.c (allocate_target_description): New function.
4581 * tdesc.h (set_tdesc_architecture): Remove declaration.
4582 (set_tdesc_osabi): Likewise.
4584 2017-09-05 Yao Qi <yao.qi@linaro.org>
4586 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4587 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4588 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4590 * server.c (get_features_xml): Call tdesc_get_features_xml.
4591 * tdesc.c (set_tdesc_architecture): New function.
4592 (set_tdesc_osabi): New function.
4593 (tdesc_get_features_xml): New function.
4594 (tdesc_create_feature): Add an argument.
4595 * tdesc.h (struct target_desc) <features>: New field.
4596 <arch, osabi>: New field.
4597 (~target_desc): xfree features, arch, and osabi.
4598 (target_desc::oerator==): Don't compare .xmltarget.
4599 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4600 (set_tdesc_osabi): Likewise.
4601 (tdesc_get_features_xml): Likewise.
4603 2017-09-05 Yao Qi <yao.qi@linaro.org>
4605 * linux-x86-tdesc.c: Include selftest.h.
4606 (i386_tdesc_test): New function.
4607 (initialize_low_tdesc): Call selftests::register_test.
4608 * tdesc.h: Include regdef.h.
4609 (target_desc): Override operator == and !=.
4611 2017-09-05 Yao Qi <yao.qi@linaro.org>
4613 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4614 (ipa_obj): Likewise.
4615 * linux-i386-ipa.c: Include common/x86-xstate.h
4616 (get_ipa_tdesc): Call i386_linux_read_description.
4617 (initialize_low_tracepoint): Don't call init_registers_XXX
4618 functions, call initialize_low_tdesc instead.
4619 * linux-x86-low.c (x86_linux_read_description): Call
4620 i386_linux_read_description.
4621 (initialize_low_arch): Don't call init_registers_i386_XXX
4622 functions, call initialize_low_tdesc.
4623 * linux-x86-tdesc.c: New file.
4624 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4625 (i386_get_ipa_tdesc_idx): Declare.
4626 (i386_get_ipa_tdesc): Declare.
4627 (initialize_low_tdesc): Declare.
4629 2017-09-05 Yao Qi <yao.qi@linaro.org>
4631 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4634 2017-09-05 Yao Qi <yao.qi@linaro.org>
4636 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4637 * regcache.c (get_thread_regcache): Use VEC_length.
4638 (init_register_cache): Likewise.
4639 (regcache_cpy): Likewise.
4640 (registers_to_string): Iterate reg_defs via VEC_iterate.
4641 (find_regno): Likewise.
4642 (find_register_by_number): Use VEC_index.
4643 (register_size): Call find_register_by_number.
4644 (register_data): Call find_register_by_number.
4645 (supply_regblock): Use VEC_length.
4646 (regcache_raw_read_unsigned): Likewise.
4647 * tdesc.c (init_target_desc): Iterate reg_defs via
4649 (default_description): Update initializer.
4650 (copy_target_description): Don't update field num_registers.
4651 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4652 <num_registers>: Remove.
4654 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4656 * Makefile.in (.SECONDARY): Define target.
4658 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4660 * linux-low.c (linux_wait_1): Adjust.
4661 * server.c (queue_stop_reply_callback): Adjust.
4663 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4665 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4666 QEnvironmentUnset and QEnvironmentReset packets.
4667 (handle_query): Inform remote that QEnvironmentHexEncoded,
4668 QEnvironmentUnset and QEnvironmentReset are supported.
4670 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4672 * inferiors.h (inferior_target_data): Rename to ...
4673 (thread_target_data): ... this.
4674 (inferior_regcache_data): Rename to ...
4675 (thread_regcache_data): ... this.
4676 (set_inferior_regcache_data): Rename to ...
4677 (set_thread_regcache_data): ... this.
4678 * inferiors.c (inferior_target_data): Rename to ...
4679 (thread_target_data): ... this.
4680 (inferior_regcache_data): Rename to ...
4681 (thread_regcache_data): ... this.
4682 (set_inferior_regcache_data): Rename to ...
4683 (set_thread_regcache_data): ... this.
4684 (free_one_thread): Update.
4685 * linux-low.h (get_thread_lwp): Update.
4686 * regcache.c (get_thread_regcache): Update.
4687 (regcache_invalidate_thread): Update.
4688 (free_register_cache_thread): Update.
4689 * win32-i386-low.c (update_debug_registers_callback): Update.
4690 (win32_get_current_dr): Update.
4691 * win32-low.c (thread_rec): Update.
4692 (delete_thread_info): Update.
4693 (continue_one_thread): Update.
4694 (suspend_one_thread): Update.
4696 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4698 * inferiors.c (set_inferior_target_data): Remove.
4699 * inferiors.h (set_inferior_target_data): Remove.
4701 2017-08-18 Yao Qi <yao.qi@linaro.org>
4703 * Makefile.in (OBS): Add selftest.o.
4704 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4705 * configure, config.in: Re-generated.
4706 * server.c: Include common/sefltest.h.
4707 (captured_main): Handle option --selftest.
4709 2017-08-09 Yao Qi <yao.qi@linaro.org>
4711 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4712 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4713 i386-avx-mpx.o and i386-mmx.o.
4714 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4715 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4716 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4717 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4718 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4719 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4720 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4721 i386/amd64-avx-mpx.xml.
4723 2017-08-09 Yao Qi <yao.qi@linaro.org>
4725 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4726 and x32-avx-avx512.o.
4727 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4728 i386/x32-avx-avx512.xml.
4730 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4732 * tracepoint.h (enum class fast_tpoint_collect_result): New
4734 (fast_tracepoint_collecting): Change return type to
4735 fast_tpoint_collect_result.
4736 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4737 * linux-low.h: Include tracepoint.h.
4738 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4739 fast_tpoint_collect_result.
4740 * linux-low.c (handle_tracepoints): Adjust.
4741 (linux_fast_tracepoint_collecting): Change return type to
4742 fast_tpoint_collect_result.
4743 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4744 linux_wait_1, stuck_in_jump_pad_callback,
4745 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4746 proceed_one_lwp): Adjust to type change.
4748 2017-07-10 Yao Qi <yao.qi@linaro.org>
4750 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4752 2017-06-29 Yao Qi <yao.qi@linaro.org>
4754 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4756 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4758 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4760 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4762 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4764 * linux-low.c (linux_create_inferior): Adjust code to access the
4765 environment information via 'gdb_environ' class.
4766 * lynx-low.c (lynx_create_inferior): Likewise.
4767 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4768 (get_environ): Return a pointer to 'our_environ'.
4769 (captured_main): Initialize 'our_environ'.
4770 * server.h (get_environ): Adjust prototype.
4771 * spu-low.c (spu_create_inferior): Adjust code to access the
4772 environment information via 'gdb_environ' class.
4774 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4776 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4777 usage of "register" keyword.
4779 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4781 * configure: Re-generate.
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 * Makefile.in (COMPILE.pre): Add "-x c++".
4791 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4793 * fork-child.c: Conditionally include <signal.h>.
4795 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4797 * server.c (handle_general_set): Handle new packet
4798 "QStartupWithShell".
4799 (handle_query): Add "QStartupWithShell" to the list of supported
4801 (gdbserver_usage): Add help text explaining the
4802 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4804 (captured_main): Recognize and act upon the presence of the new
4807 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4808 Pedro Alves <palves@redhat.com>
4810 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4811 * configure: Regenerate.
4812 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4814 (i[34567]86-*-lynxos*): Likewise.
4815 (spu*-*-*): Likewise.
4816 * fork-child.c: New file.
4817 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4819 (linux_ptrace_fun): New function.
4820 (linux_create_inferior): Adjust function prototype to reflect
4821 change on "target.h". Adjust function code to use
4823 (linux_request_interrupt): Delete "signal_pid".
4824 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4825 (lynx_ptrace_fun): New function.
4826 (lynx_create_inferior): Adjust function prototype to reflect
4827 change on "target.h". Adjust function code to use
4829 * nto-low.c (nto_create_inferior): Adjust function prototype and
4830 code to reflect change on "target.h". Update comments.
4831 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4832 "common-terminal.h" and "environ.h".
4833 (terminal_fd): Moved to fork-child.c.
4834 (old_foreground_pgrp): Likewise.
4835 (restore_old_foreground_pgrp): Likewise.
4836 (last_status): Make it global.
4837 (last_ptid): Likewise.
4838 (our_environ): New variable.
4839 (startup_with_shell): Likewise.
4840 (program_name): Likewise.
4841 (program_argv): Rename to...
4842 (program_args): ...this.
4843 (wrapper_argv): New variable.
4844 (start_inferior): Delete function.
4845 (get_exec_wrapper): New function.
4846 (get_exec_file): Likewise.
4847 (get_environ): Likewise.
4848 (prefork_hook): Likewise.
4849 (post_fork_inferior): Likewise.
4850 (postfork_hook): Likewise.
4851 (postfork_child_hook): Likewise.
4852 (handle_v_run): Update code to deal with arguments coming from the
4853 remote host. Update calls from "start_inferior" to
4855 (captured_main): Likewise. Initialize environment variable. Call
4857 * server.h (post_fork_inferior): New prototype.
4858 (get_environ): Likewise.
4859 (last_status): Declare.
4860 (last_ptid): Likewise.
4861 (signal_pid): Likewise.
4862 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4863 (spu_ptrace_fun): New function.
4864 (spu_create_inferior): Adjust function prototype to reflect change
4865 on "target.h". Adjust function code to use "fork_inferior".
4866 * target.c (target_terminal_init): New function.
4867 (target_terminal_inferior): Likewise.
4868 (target_terminal_ours): Likewise.
4869 * target.h: Include <vector>.
4870 (struct target_ops) <create_inferior>: Update prototype.
4871 (create_inferior): Update macro.
4872 * utils.c (gdb_flush_out_err): New function.
4873 * win32-low.c (win32_create_inferior): Adjust function prototype
4874 and code to reflect change on "target.h".
4876 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4878 * inferiors.c (switch_to_thread): New function.
4880 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4882 * Makefile.in (SFILE): Add "common/job-control.c".
4883 (OBS): Add "job-control.o".
4885 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4887 * Makefile: Remove "@host_makefile_frag@".
4889 2017-05-05 Pedro Alves <palves@redhat.com>
4891 * configure: Regenerate.
4893 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4895 * configure: Regenerate.
4897 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4899 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4900 software_single_step change of return type to
4901 std::vector<CORE_ADDR>.
4902 * linux-low.c (install_software_single_step_breakpoints):
4904 * linux-low.h (install_software_single_step_breakpoints):
4907 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4909 * remote-utils.c: Include "gdb_termios.h" instead of
4911 * terminal.h: Delete file.
4913 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4915 * server.c: Include <vector>.
4916 <program_argv, wrapper_argv>: Convert to std::vector.
4917 (start_inferior): Rewrite function to use C++.
4918 (handle_v_run): Likewise. Update code that calculates the argv
4919 based on the vRun packet; use C++.
4920 (captured_main): Likewise.
4922 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4924 * server.c (handle_v_cont): Initialize thread_resume::thread
4927 2017-04-05 Pedro Alves <palves@redhat.com>
4929 * configure: Regenerate.
4931 2017-04-05 Pedro Alves <palves@redhat.com>
4933 * gdbreplay.c (sync_error): Constify.
4934 * linux-x86-low.c (push_opcode): Constify.
4936 2017-04-05 Pedro Alves <palves@redhat.com>
4938 * win32-low.c (get_child_debug_event)
4939 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4940 Report TARGET_WAITKIND_SPURIOUS instead.
4942 2017-04-05 Pedro Alves <palves@redhat.com>
4944 * remote-utils.c (remote_prepare, remote_open): Constify.
4945 * remote-utils.h (remote_prepare, remote_open): Constify.
4946 * server.c (captured_main): Constify 'port' handling.
4948 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4950 * Makefile.in (clean): Clear .deps.
4952 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4954 * .gitignore: Remove generated files, replace with wildcard.
4955 * (clean): Replace removal of generated files with wildcard.
4956 (version.c): Replace with...
4957 (version-generated.c): ...this.
4958 (xml-builtin.c): Replace with...
4959 (xml-builtin-generated.c): ...this.
4960 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4961 (%.c: *regformats*): Replace with...
4962 (%-generated.c: *regformats*): ...this.
4964 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4966 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4967 (xtensa_fill_gregset): Call collect_register_by_name for
4969 (xtensa_store_gregset): Call supply_register_by_name for
4972 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4974 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
4975 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
4976 (xtensa_store_gregset): Call supply_register for all registers in
4977 a0_regnum..a0_regnum + C0_NREGS range.
4979 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4981 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4982 (ax-ipa.o: ax.c): Remove.
4983 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4984 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4985 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4986 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4987 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4989 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4991 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4992 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4993 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4994 (errors-ipa.o: ../common/errors.c): Remove.
4995 (format-ipa.o: ../common/format.c): Remove.
4996 (common-utils-ipa.o: ../common/common-utils.c): Remove.
4998 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5000 * Makefile.in (%-ipa.o: %.c): New rule.
5001 (tracepoint-ipa.o: tracepoint.c): Remove.
5002 (utils-ipa.o: utils.c): Remove.
5003 (remote-utils-ipa.o: remote-utils.c): Remove.
5004 (regcache-ipa.o: regcache.c): Remove.
5005 (i386-linux-ipa.o: i386-linux.c): Remove.
5006 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5007 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5008 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5009 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5010 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5011 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5012 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5013 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5014 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5015 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5016 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5017 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5018 (aarch64-ipa.o: aarch64.c): Remove.
5019 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5020 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5021 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5022 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5023 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5024 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5025 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5026 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5027 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5028 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5029 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5030 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5031 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5032 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5033 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5034 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5035 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5036 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5037 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5038 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5039 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5040 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5041 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5042 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5043 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5044 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5045 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5046 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5047 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5048 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5049 (tdesc-ipa.o: tdesc.c): Remove.
5050 (x32-linux-ipa.o: x32-linux.c): Remove.
5051 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5052 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5054 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5056 * Makefile.in (%.o: ../arch/%.c): New rule.
5057 (arm.o: ../arch/arm.c): Remove.
5058 (arm-linux.o: ../arch/arm-linux.c): Remove.
5059 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5060 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5062 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5064 * Makefile.in (%.o: ../nat/%.c): New rule.
5065 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5066 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5067 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5068 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5069 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5070 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5071 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5072 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5073 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5074 (linux-personality.o: ../nat/linux-personality.c): Remove.
5075 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5076 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5077 (x86-linux.o: ../nat/x86-linux.c): Remove.
5078 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5079 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5081 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5083 * Makefile.in (%.o: ../common/%.c): New rule.
5084 (signals.o: ../common/signals.c): Remove.
5085 (print-utils.o: ../common/print-utils.c): Remove.
5086 (rsp-low.o: ../common/rsp-low.c): Remove.
5087 (common-utils.o: ../common/common-utils.c): Remove.
5088 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5089 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5090 (vec.o: ../common/vec.c): Remove.
5091 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5092 (xml-utils.o: ../common/xml-utils.c): Remove.
5093 (ptid.o: ../common/ptid.c): Remove.
5094 (buffer.o: ../common/buffer.c): Remove.
5095 (format.o: ../common/format.c): Remove.
5096 (filestuff.o: ../common/filestuff.c): Remove.
5097 (agent.o: ../common/agent.c): Remove.
5098 (errors.o: ../common/errors.c): Remove.
5099 (environ.o: ../common/environ.c): Remove.
5100 (common-debug.o: ../common/common-debug.c): Remove.
5101 (cleanups.o: ../common/cleanups.c): Remove.
5102 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5103 (fileio.o: ../common/fileio.c): Remove.
5104 (common-regcache.o: ../common/common-regcache.c): Remove.
5105 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5106 (new-op.o: ../common/new-op.c): Remove.
5107 (btrace-common.o: ../common/btrace-common.c): Remove.
5109 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5111 * Makefile.in (%.o: ../target/%.c): New rule.
5112 (waitstatus.o: ../target/waitstatus.c): Remove.
5114 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5117 (%.c: ../regformats/%.dat,
5118 (%.c: ../regformats/arm/%.dat,
5119 (%.c: ../regformats/i386/%.dat,
5120 (%.c: ../regformats/rs6000/%.dat): New rules.
5121 (aarch64.c): Remove.
5122 (reg-arm.c): Remove.
5123 (arm-with-iwmmxt.c): Remove.
5124 (arm-with-vfpv2.c): Remove.
5125 (arm-with-vfpv3.c): Remove.
5126 (arm-with-neon.c): Remove.
5127 (reg-bfin.c): Remove.
5128 (reg-cris.c): Remove.
5129 (reg-crisv32.c): Remove.
5131 (i386-linux.c): Remove.
5132 (i386-avx.c): Remove.
5133 (i386-avx-linux.c): Remove.
5134 (i386-avx-avx512.c): Remove.
5135 (i386-avx-avx512-linux.c): Remove.
5136 (i386-mpx.c): Remove.
5137 (i386-mpx-linux.c): Remove.
5138 (i386-avx-mpx-avx512-pku.c): Remove.
5139 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5140 (i386-avx-mpx.c): Remove.
5141 (i386-avx-mpx-linux.c): Remove.
5142 (i386-mmx.c): Remove.
5143 (i386-mmx-linux.c): Remove.
5144 (reg-ia64.c): Remove.
5145 (reg-m32r.c): Remove.
5146 (reg-m68k.c): Remove.
5148 (mips-linux.c): Remove.
5149 (mips-dsp-linux.c): Remove.
5150 (mips64-linux.c): Remove.
5151 (mips64-dsp-linux.c): Remove.
5152 (nios2-linux.c): Remove.
5153 (powerpc-32.c): Remove.
5154 (powerpc-32l.c): Remove.
5155 (powerpc-altivec32l.c): Remove.
5156 (powerpc-cell32l.c): Remove.
5157 (powerpc-vsx32l.c): Remove.
5158 (powerpc-isa205-32l.c): Remove.
5159 (powerpc-isa205-altivec32l.c): Remove.
5160 (powerpc-isa205-vsx32l.c): Remove.
5161 (powerpc-e500l.c): Remove.
5162 (powerpc-64l.c): Remove.
5163 (powerpc-altivec64l.c): Remove.
5164 (powerpc-cell64l.c): Remove.
5165 (powerpc-vsx64l.c): Remove.
5166 (powerpc-isa205-64l.c): Remove.
5167 (powerpc-isa205-altivec64l.c): Remove.
5168 (powerpc-isa205-vsx64l.c): Remove.
5169 (s390-linux32.c): Remove.
5170 (s390-linux32v1.c): Remove.
5171 (s390-linux32v2.c): Remove.
5172 (s390-linux64.c): Remove.
5173 (s390-linux64v1.c): Remove.
5174 (s390-linux64v2.c): Remove.
5175 (s390-te-linux64.c): Remove.
5176 (s390-vx-linux64.c): Remove.
5177 (s390-tevx-linux64.c): Remove.
5178 (s390x-linux64.c): Remove.
5179 (s390x-linux64v1.c): Remove.
5180 (s390x-linux64v2.c): Remove.
5181 (s390x-te-linux64.c): Remove.
5182 (s390x-vx-linux64.c): Remove.
5183 (s390x-tevx-linux64.c): Remove.
5184 (tic6x-c64xp-linux.c): Remove.
5185 (tic6x-c64x-linux.c): Remove.
5186 (tic6x-c62x-linux.c): Remove.
5188 (reg-sparc64.c): Remove.
5189 (reg-spu.c): Remove.
5191 (amd64-linux.c): Remove.
5192 (amd64-avx.c): Remove.
5193 (amd64-avx-linux.c): Remove.
5194 (amd64-avx-avx512.c): Remove.
5195 (amd64-avx-avx512-linux.c): Remove.
5196 (amd64-mpx.c): Remove.
5197 (amd64-mpx-linux.c): Remove.
5198 (amd64-avx-mpx-avx512-pku.c): Remove.
5199 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5200 (amd64-avx-mpx.c): Remove.
5201 (amd64-avx-mpx-linux.c): Remove.
5203 (x32-linux.c): Remove.
5204 (x32-avx.c): Remove.
5205 (x32-avx-linux.c): Remove.
5206 (x32-avx-avx512.c): Remove.
5207 (x32-avx-avx512-linux.c): Remove.
5208 (reg-xtensa.c): Remove.
5209 (reg-tilegx.c): Remove.
5210 (reg-tilegx32.c): Remove.
5212 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5214 * Makefile.in (SFILES): Add "common/environ.c".
5215 (OBJS): Add "common/environ.h".
5217 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5219 * configure.ac: Check if the fs_base and gs_base members of
5220 `struct user_regs_struct' exist.
5221 * config.in: Regenerated.
5222 * configure: Likewise.
5224 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5226 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5228 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5229 (get_next_pcs_syscall_next_pc): Likewise.
5231 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5233 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5234 * nto-x86-low.c: Likewise.
5236 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5238 * Makefile.in: Include disable-implicit-rules.mk.
5240 2016-11-23 Pedro Alves <palves@redhat.com>
5242 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5243 (debug_vprintf): Use std::chrono::steady_clock instead of
5244 gettimeofday. Use '.' instead of ':'.
5245 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5246 (get_timestamp): Use std::chrono::steady_clock instead of
5249 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5251 * Makefile.in: Fix whitespace formatting.
5253 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5255 * Makefile.in (SFILES, OBS): Flatten list and order
5258 2016-11-23 Pedro Alves <palves@redhat.com>
5260 * event-loop.c (handle_file_event): Use warning.
5261 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5262 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5265 2016-11-23 Pedro Alves <palves@redhat.com>
5267 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5269 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5270 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5271 debug_printf and debug_flush for debug output.
5272 * server.c (handle_general_set): Likewise.
5273 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5276 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5278 * Makefile.in (.c.o): Replace rule with ...
5279 (%.o: %.c): ... this one.
5281 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5283 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5284 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5286 * configure.ac: Remove checks for the make program.
5287 * configure: Re-generate.
5289 2016-10-28 Pedro Alves <palves@redhat.com>
5291 * Makefile.in (CXX_DIALECT): Get from configure.
5292 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5293 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5294 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5295 * config.in: Regenerate.
5296 * configure: Regenerate.
5298 2016-10-27 Yao Qi <yao.qi@linaro.org>
5300 * linux-low.c (linux_supports_range_stepping): Return true if
5301 can_software_single_step return true.
5303 2016-10-27 Yao Qi <yao.qi@linaro.org>
5305 * inferiors.c (find_inferior_in_random): New function.
5306 * inferiors.h (find_inferior_in_random): Declare.
5307 * linux-low.c (linux_wait_for_event_filtered): Call
5308 find_inferior_in_random instead of find_inferior.
5310 2016-10-27 Yao Qi <yao.qi@linaro.org>
5312 * linux-low.c (linux_wait_1): If single-step breakpoints are
5313 inserted, remove them.
5315 2016-10-26 Pedro Alves <palves@redhat.com>
5317 * linux-low.c (handle_extended_wait): Link parent/child fork
5319 (linux_wait_1): Unlink them.
5320 (linux_set_resume_request): Ignore resume requests for
5321 already-resumed and unhandled fork child threads.
5322 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5323 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5325 (handle_v_requests) <vCont>: Don't call require_running.
5326 * server.h (in_queued_stop_replies): New declaration.
5328 2016-10-24 Yao Qi <yao.qi@linaro.org>
5331 * linux-aarch64-low.c (append_insns): Cast the return value to
5334 2016-10-10 Yao Qi <yao.qi@linaro.org>
5336 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5338 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5340 * target.c (target_supports_multi_process): New function, moved
5342 * target.h (target_supports_multi_process): ... here. Remove
5345 2016-10-05 Tom Tromey <tom@tromey.com>
5348 * tracepoint.c (handle_tracepoint_bkpts): Check
5349 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5351 2016-10-05 Yao Qi <yao.qi@linaro.org>
5353 * configure.srv: Update the path of arm-*.xml files.
5355 2016-10-05 Terry Guo <terry.guo@arm.com>
5356 Yao Qi <yao.qi@linaro.org>
5358 * Makefile.in: Adjust the path of rules.
5359 * configure.srv: Update the path of xml files.
5360 * regformats/arm-with-iwmmxt.dat: Regenerated.
5361 * regformats/arm-with-neon.dat: Likewise.
5362 * regformats/arm-with-vfpv2.dat: Likewise.
5363 * regformats/arm-with-vfpv3.dat Likewise.
5365 2016-09-30 Yao Qi <yao.qi@linaro.org>
5368 * target.c (target_stop_and_wait): Don't call
5369 target_continue_no_signal, use resume_stop instead.
5371 2016-09-26 Yao Qi <yao.qi@linaro.org>
5373 * linux-low.c (linux_wait_1): Call debug_exit.
5375 2016-09-23 Pedro Alves <palves@redhat.com>
5377 * Makefile.in (SFILES): Add common/new-op.c.
5378 (OBS): Add common/new-op.o.
5379 (new-op.o): New rule.
5381 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5383 * .gitinore: Ignore more files.
5385 2016-09-21 Yao Qi <yao.qi@linaro.org>
5387 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5390 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5392 * server.c (start_inferior): Call target_mourn_inferior instead of
5393 mourn_inferior; pass ptid_t argument to it.
5395 (handle_target_event): Likewise.
5396 * target.c (target_mourn_inferior): New function.
5397 * target.h (mourn_inferior): Delete macro.
5399 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5401 * linux-low.c (lwp_is_stepping): New function.
5403 2016-09-06 Carl Love <cel@us.ibm.com>
5405 * server.c (start_inferior): Fixed comment, requested comment change
5406 didn't get updated correctly. Removed reference to ptrace () call as
5407 it is only true on Linux systems.
5409 2016-09-06 Carl Love <cel@us.ibm.com>
5411 * server.c (start_inferior): Do not call
5412 function target_post_create_inferior () if the
5413 inferior process has already exited.
5415 2016-09-05 Pedro Alves <palves@redhat.com>
5417 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5418 (COMPILE.pre, CC_LD): Use CXX directly.
5419 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5420 * acinclude.m4: Don't include build-with-cxx.m4.
5421 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5422 * configure: Regenerate.
5424 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5427 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5428 call writing data to own_buf.
5430 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5432 * target.c (mywait): Call target_wait instead of
5434 (target_wait): New function.
5436 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5438 * server.c (start_inferior): New variable 'ptid'. Replace calls
5439 to the_target->resume by target_continue{,_no_signal}, depending
5441 * target.c (target_stop_and_wait): Call target_continue_no_signal
5442 instead of the_target->resume.
5443 (target_continue): New function.
5445 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5447 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5449 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5452 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5454 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5455 * linux-arm-low.c (ps_get_thread_area): Likewise.
5456 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5457 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5458 * linux-mips-low.c (ps_get_thread_area): Likewise.
5459 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5460 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5461 * linux-x86-low.c (ps_get_thread_area): Likewise.
5462 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5464 2016-08-19 Pedro Alves <palves@redhat.com>
5466 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5468 2016-08-19 Pedro Alves <palves@redhat.com>
5470 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5471 comment. Use memcpy instead of casting through unsigned long.
5473 2016-08-19 Pedro Alves <palves@redhat.com>
5475 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5476 allocating around 0x80000000.
5478 2016-08-19 Pedro Alves <palves@redhat.com>
5481 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5482 (x32-avx512-linux-ipa.o): New rules.
5483 * configure.ac (x86_64-*-linux*): New x32 check.
5484 * configure.srv (ipa_x32_linux_regobj): New.
5485 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5486 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5488 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5490 * configure: Regenerate.
5492 2016-08-09 Pedro Alves <palves@redhat.com>
5495 * Makefile.in (OBS): Add signals-state-save-restore.o.
5496 (signals-state-save-restore.o): New rule.
5497 * config.in: Regenerate.
5498 * configure: Regenerate.
5499 * linux-low.c: Include "signals-state-save-restore.h".
5500 (linux_create_inferior): Call
5501 restore_original_signals_state.
5502 * server.c: Include "dispositions-save-restore.h".
5503 (captured_main): Call save_original_signals_state.
5505 2016-08-05 Pedro Alves <palves@redhat.com>
5507 * configure: Regenerate.
5509 2016-08-04 Yao Qi <yao.qi@linaro.org>
5511 * linux-low.c (regsets_fetch_inferior_registers): Check
5512 errno is ESRCH or not.
5514 2016-08-02 Yao Qi <yao.qi@linaro.org>
5516 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5517 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5518 (thread_db_load_search): Update.
5519 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5520 td_ta_set_event and td_ta_event_getmsg.
5522 2016-07-26 Pedro Alves <palves@redhat.com>
5525 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5526 of unsigned long for 64-bit registers and use uint32_t instead of
5527 unsigned int for 32-bit registers.
5529 2016-07-26 Pedro Alves <palves@redhat.com>
5531 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5534 2016-07-21 Tom Tromey <tom@tromey.com>
5536 * configure: Rebuild.
5538 2016-07-21 Yao Qi <yao.qi@linaro.org>
5540 * mem-break.c (find_gdb_breakpoint): Cast bp to
5541 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5543 2016-07-21 Yao Qi <yao.qi@linaro.org>
5545 * server.c (handle_v_requests): Support s and S actions
5546 if target_supports_software_single_step return true.
5548 2016-07-21 Yao Qi <yao.qi@linaro.org>
5550 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5551 is resume_step, call maybe_hw_step.
5552 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5554 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5556 (proceed_one_lwp): If resume request is resume_step, install
5557 reinsert breakpoints and call maybe_hw_step.
5559 2016-07-21 Yao Qi <yao.qi@linaro.org>
5561 * linux-low.c (proceed_one_lwp): Declare.
5562 (linux_resume_one_thread): Remove local variable 'step'.
5563 Lift code enqueue signal. Call proceed_one_lwp instead of
5564 linux_resume_one_lwp.
5566 2016-07-21 Yao Qi <yao.qi@linaro.org>
5568 * linux-low.c (linux_resume_one_thread): Call
5569 enqueue_pending_signal.
5571 2016-07-21 Yao Qi <yao.qi@linaro.org>
5573 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5574 * inferiors.c (do_restore_current_thread_cleanup): New function.
5575 (make_cleanup_restore_current_thread): Likewise.
5576 * linux-low.c (install_software_single_step_breakpoints): Call
5577 make_cleanup_restore_current_thread. Switch current_thread to
5580 2016-07-21 Yao Qi <yao.qi@linaro.org>
5582 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5583 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5584 (clone_one_breakpoint): Likewise.
5585 (delete_reinsert_breakpoints): Change parameter to thread.
5587 (has_reinsert_breakpoints): Likewise.
5588 (uninsert_reinsert_breakpoints): Likewise.
5589 (reinsert_reinsert_breakpoints): Likewise.
5590 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5591 (delete_reinsert_breakpoints): Likewise.
5592 (reinsert_reinsert_breakpoints): Likewise.
5593 (uninsert_reinsert_breakpoints): Likewise.
5594 (has_reinsert_breakpoints): Likewise.
5596 2016-07-21 Yao Qi <yao.qi@linaro.org>
5598 * inferiors.c (get_thread_process): Make parameter const.
5599 * inferiors.h (get_thread_process): Update declaration.
5600 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5601 Add new parameters child_thread and parent_thread. Callers
5603 * mem-break.h (clone_all_breakpoints): Update declaration.
5605 2016-07-21 Yao Qi <yao.qi@linaro.org>
5607 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5608 <command_list, handler>: Remove.
5609 (struct gdb_breakpoint): New.
5610 (struct other_breakpoint): New.
5611 (struct reinsert_breakpoint): New.
5612 (is_gdb_breakpoint): New function.
5613 (any_persistent_commands): Update command_list if
5614 is_gdb_breakpoint returns true.
5615 (set_breakpoint): Create breakpoints according to their types.
5616 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5617 (set_gdb_breakpoint_1): Likewise.
5618 (set_gdb_breakpoint): Likewise.
5619 (clear_breakpoint_conditions): Change parameter type to
5620 'struct gdb_breakpoint *'.
5621 (clear_breakpoint_commands): Likewise.
5622 (clear_breakpoint_conditions_and_commands): Likewise.
5623 (add_condition_to_breakpoint): Likewise.
5624 (add_breakpoint_condition): Likewise.
5625 (add_commands_to_breakpoint): Likewise.
5626 (check_breakpoints): Check other_breakpoint.
5627 (clone_one_breakpoint): Clone breakpopint according to its type.
5628 * mem-break.h (struct gdb_breakpoint): Declare.
5629 (set_gdb_breakpoint): Update declaration.
5630 (clear_breakpoint_conditions_and_commands): Likewise.
5631 (add_breakpoint_condition): Likewise.
5632 (add_breakpoint_commands): Likewise.
5633 * server.c (process_point_options): Change parameter type to
5634 'struct gdb_breakpoint *'.
5636 2016-07-21 Yao Qi <yao.qi@linaro.org>
5638 * mem-break.c (set_breakpoint_at): Rename it to ...
5639 (set_breakpoint_type_at): ... it.
5640 (set_breakpoint_at): Call set_breakpoint_type_at.
5641 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5642 * mem-break.h (set_breakpoint_at): Update comments.
5644 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5646 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5648 (nios2_store_gregset): Likewise.
5650 2016-07-01 Pedro Alves <palves@redhat.com>
5651 Antoine Tremblay <antoine.tremblay@ericsson.com>
5653 * linux-low.c: Change interface to take the target lwp_info
5654 pointer directly and return void. Handle detaching from a zombie
5656 (linux_detach_lwp_callback): New function.
5657 (linux_detach): Detach from the leader thread after detaching from
5660 2016-06-28 Yao Qi <yao.qi@linaro.org>
5662 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5663 for variable new_offset.
5664 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5665 (aarch64_ftrace_insn_reloc_cb): Likewise.
5666 (aarch64_ftrace_insn_reloc_tb): Likewise.
5667 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5668 PRIx64 instead of PRIx32.
5670 2016-06-28 Yao Qi <yao.qi@linaro.org>
5672 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5673 (the_low_target): Install arm_get_syscall_trapinfo.
5675 2016-06-28 Yao Qi <yao.qi@linaro.org>
5677 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5679 (the_low_target): Install aarch64_get_syscall_trapinfo.
5681 2016-06-28 Yao Qi <yao.qi@linaro.org>
5683 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5685 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5686 Remove parameter sysno.
5687 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5690 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5692 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5693 (s390_emit_ne_goto): Likewise.
5694 (s390_emit_lt_goto): Likewise.
5695 (s390_emit_le_goto): Likewise.
5696 (s390_emit_gt_goto): Likewise.
5697 (s390_emit_ge_goto): Likewise.
5698 (s390x_emit_eq_goto): Likewise.
5699 (s390x_emit_ne_goto): Likewise.
5700 (s390x_emit_lt_goto): Likewise.
5701 (s390x_emit_le_goto): Likewise.
5702 (s390x_emit_gt_goto): Likewise.
5703 (s390x_emit_ge_goto): Likewise.
5704 (s390_emit_ops_impl): Mark variable static.
5705 (s390x_emit_ops): Likewise.
5707 2016-06-17 Yao Qi <yao.qi@linaro.org>
5709 * linux-low.c (handle_extended_wait): Call
5710 uninsert_reinsert_breakpoints for the parent process. Remove
5711 reinsert breakpoints from the child process. Reinsert them to
5712 the parent process when vfork is done.
5713 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5714 (reinsert_reinsert_breakpoints): New function.
5715 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5716 (reinsert_reinsert_breakpoints): Declare.
5718 2016-06-17 Yao Qi <yao.qi@linaro.org>
5720 * linux-low.c (handle_extended_wait): If the parent is doing
5721 step-over, remove the reinsert breakpoints from the forked child.
5723 2016-06-17 Yao Qi <yao.qi@linaro.org>
5725 * linux-low.c (unsuspend_all_lwps): Declare.
5726 (linux_low_filter_event): If thread exited, call finish_step_over.
5727 If step-over is finished, unsuspend other threads.
5729 2016-06-17 Yao Qi <yao.qi@linaro.org>
5731 * linux-low.c (linux_resume_one_lwp_throw): Assert
5732 has_reinsert_breakpoints returns false.
5733 * mem-break.c (delete_disabled_breakpoints): Assert
5734 bp type isn't reinsert_breakpoint.
5736 2016-06-17 Yao Qi <yao.qi@linaro.org>
5738 * linux-low.c (maybe_hw_step): New function.
5739 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5740 (finish_step_over): Switch current_thread to lwp temporarily,
5741 and assert has_reinsert_breakpoints returns true.
5742 (proceed_one_lwp): Call maybe_hw_step.
5743 * mem-break.c (has_reinsert_breakpoints): New function.
5744 * mem-break.h (has_reinsert_breakpoints): Declare.
5746 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5748 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5750 2016-05-17 Yao Qi <yao.qi@linaro.org>
5752 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5753 instead of find_inferior.
5755 2016-05-05 Yao Qi <yao.qi@linaro.org>
5757 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5758 Initialize res to zero.
5760 2016-05-05 Yao Qi <yao.qi@linaro.org>
5762 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5765 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5767 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5768 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5769 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5771 2016-04-28 Par Olsson <par.olsson@windriver.com>
5772 Simon Marchi <simon.marchi@ericsson.com>
5774 * tracepoint.c (write_inferior_int8): New function.
5775 (cmd_qtenable_disable): Write enable flag using
5776 write_inferior_int8.
5778 2016-04-25 Yao Qi <yao.qi@linaro.org>
5780 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5781 (need_step_over_p): Return zero if the LWP has pending signals
5782 can be delivered on software single step target.
5784 2016-04-25 Yao Qi <yao.qi@linaro.org>
5786 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5787 return instead of error.
5789 2016-04-22 Yao Qi <yao.qi@linaro.org>
5791 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5794 2016-04-22 Yao Qi <yao.qi@linaro.org>
5796 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5797 signal when stepping over breakpoint with software single
5800 2016-04-21 Pedro Alves <palves@redhat.com>
5802 * linux-s390-low.c (s390_collect_ptrace_register)
5803 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5805 (s390_check_regset): Use void * instead of gdb_byte *.
5807 2016-04-20 Pedro Alves <palves@redhat.com>
5809 * configure: Renegerate.
5811 2016-04-20 Yao Qi <yao.qi@linaro.org>
5813 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5814 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5816 (arm_store_gregset): Likewise.
5818 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5820 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5821 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5822 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5823 (amd64-avx-mpx-linux.c): New rules.
5824 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5825 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5826 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5827 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5828 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5829 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5830 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5831 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5832 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5833 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5834 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5835 * linux-x86-low.c (x86_linux_read_description): Add case for
5836 X86_XSTATE_AVX_MPX_MASK.
5837 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5838 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5839 init_registers_i386_avx_mpx_linux.
5840 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5841 (initialize_low_tracepoint): Call
5842 init_registers_i386_avx_mpx_linux.
5843 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5844 (initialize_low_tracepoint): Call
5845 init_registers_amd64_avx_mpx_linux.
5846 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5847 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5848 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5851 2016-04-18 Pedro Alves <palves@redhat.com>
5853 * configure: Regenerate.
5855 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5857 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5858 (aarch64_emit_sub): Likewise.
5860 2016-04-12 Pedro Alves <palves@redhat.com>
5862 * utils.c (prepare_to_throw_exception): Delete.
5864 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5866 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5868 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5870 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5872 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5874 * linux-aarch64-ipa.c: Add <elf.h> include.
5875 * linux-ppc-ipa.c: Add <elf.h> include.
5876 * linux-s390-ipa.c: Add <elf.h> include.
5878 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5880 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5881 (get_raw_reg_ptr): Likewise.
5882 (get_trace_state_variable_value_ptr): Likewise.
5883 (set_trace_state_variable_value_ptr): Likewise.
5884 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5887 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5888 Marcin Kościelnicki <koriakin@0x04.net>
5891 * linux-ppc-low.c (emit_insns): New function.
5892 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5893 (ppc_emit_prologue): New function.
5894 (ppc_emit_epilogue): New function.
5895 (ppc_emit_add): New function.
5896 (ppc_emit_sub): New function.
5897 (ppc_emit_mul): New function.
5898 (ppc_emit_lsh): New function.
5899 (ppc_emit_rsh_signed): New function.
5900 (ppc_emit_rsh_unsigned): New function.
5901 (ppc_emit_ext): New function.
5902 (ppc_emit_zero_ext): New function.
5903 (ppc_emit_log_not): New function.
5904 (ppc_emit_bit_and): New function.
5905 (ppc_emit_bit_or): New function.
5906 (ppc_emit_bit_xor): New function.
5907 (ppc_emit_bit_not): New function.
5908 (ppc_emit_equal): New function.
5909 (ppc_emit_less_signed): New function.
5910 (ppc_emit_less_unsigned): New function.
5911 (ppc_emit_ref): New function.
5912 (ppc_emit_const): New function.
5913 (ppc_emit_reg): New function.
5914 (ppc_emit_pop): New function.
5915 (ppc_emit_stack_flush): New function.
5916 (ppc_emit_swap): New function.
5917 (ppc_emit_stack_adjust): New function.
5918 (ppc_emit_call): New function.
5919 (ppc_emit_int_call_1): New function.
5920 (ppc_emit_void_call_2): New function.
5921 (ppc_emit_if_goto): New function.
5922 (ppc_emit_goto): New function.
5923 (ppc_emit_eq_goto): New function.
5924 (ppc_emit_ne_goto): New function.
5925 (ppc_emit_lt_goto): New function.
5926 (ppc_emit_le_goto): New function.
5927 (ppc_emit_gt_goto): New function.
5928 (ppc_emit_ge_goto): New function.
5929 (ppc_write_goto_address): New function.
5930 (ppc_emit_ops_impl): New static variable.
5931 (ppc64v1_emit_prologue): New function.
5932 (ppc64v2_emit_prologue): New function.
5933 (ppc64_emit_epilogue): New function.
5934 (ppc64_emit_add): New function.
5935 (ppc64_emit_sub): New function.
5936 (ppc64_emit_mul): New function.
5937 (ppc64_emit_lsh): New function.
5938 (ppc64_emit_rsh_signed): New function.
5939 (ppc64_emit_rsh_unsigned): New function.
5940 (ppc64_emit_ext): New function.
5941 (ppc64_emit_zero_ext): New function.
5942 (ppc64_emit_log_not): New function.
5943 (ppc64_emit_bit_and): New function.
5944 (ppc64_emit_bit_or): New function.
5945 (ppc64_emit_bit_xor): New function.
5946 (ppc64_emit_bit_not): New function.
5947 (ppc64_emit_equal): New function.
5948 (ppc64_emit_less_signed): New function.
5949 (ppc64_emit_less_unsigned): New function.
5950 (ppc64_emit_ref): New function.
5951 (ppc64_emit_const): New function.
5952 (ppc64v1_emit_reg): New function.
5953 (ppc64v2_emit_reg): New function.
5954 (ppc64_emit_pop): New function.
5955 (ppc64_emit_stack_flush): New function.
5956 (ppc64_emit_swap): New function.
5957 (ppc64v1_emit_call): New function.
5958 (ppc64v2_emit_call): New function.
5959 (ppc64v1_emit_int_call_1): New function.
5960 (ppc64v2_emit_int_call_1): New function.
5961 (ppc64v1_emit_void_call_2): New function.
5962 (ppc64v2_emit_void_call_2): New function.
5963 (ppc64_emit_if_goto): New function.
5964 (ppc64_emit_eq_goto): New function.
5965 (ppc64_emit_ne_goto): New function.
5966 (ppc64_emit_lt_goto): New function.
5967 (ppc64_emit_le_goto): New function.
5968 (ppc64_emit_gt_goto): New function.
5969 (ppc64_emit_ge_goto): New function.
5970 (ppc64v1_emit_ops_impl): New static variable.
5971 (ppc64v2_emit_ops_impl): New static variable.
5972 (ppc_emit_ops): New function.
5973 (linux_low_target): Wire in ppc_emit_ops.
5975 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5976 Marcin Kościelnicki <koriakin@0x04.net>
5979 * Makefile.in: Add powerpc-*-ipa.o
5980 * configure.srv: Add ipa_obj for powerpc*-linux.
5981 * linux-ppc-ipa.c: New file.
5982 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5984 (PPC_FIELD): New macro.
5985 (PPC_SEXT): New macro.
5986 (PPC_OP6): New macro.
5987 (PPC_BO): New macro.
5988 (PPC_LI): New macro.
5989 (PPC_BD): New macro.
5990 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5991 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5992 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5993 (ppc_get_thread_area): New function.
5994 (is_elfv2_inferior): New function.
5995 (gen_ds_form): New function.
5996 (GEN_STD): New macro.
5997 (GEN_STDU): New macro.
5998 (GEN_LD): New macro.
5999 (GEN_LDU): New macro.
6000 (gen_d_form): New function.
6001 (GEN_ADDI): New macro.
6002 (GEN_ADDIS): New macro.
6003 (GEN_LI): New macro.
6004 (GEN_LIS): New macro.
6005 (GEN_ORI): New macro.
6006 (GEN_ORIS): New macro.
6007 (GEN_LWZ): New macro.
6008 (GEN_STW): New macro.
6009 (GEN_STWU): New macro.
6010 (gen_xfx_form): New function.
6011 (GEN_MFSPR): New macro.
6012 (GEN_MTSPR): New macro.
6013 (GEN_MFCR): New macro.
6014 (GEN_MTCR): New macro.
6015 (GEN_SYNC): New macro.
6016 (GEN_LWSYNC): New macro.
6017 (gen_x_form): New function.
6018 (GEN_OR): New macro.
6019 (GEN_MR): New macro.
6020 (GEN_LWARX): New macro.
6021 (GEN_STWCX): New macro.
6022 (GEN_CMPW): New macro.
6023 (gen_md_form): New function.
6024 (GEN_RLDICL): New macro.
6025 (GEN_RLDICR): New macro.
6026 (gen_i_form): New function.
6028 (GEN_BL): New macro.
6029 (gen_b_form): New function.
6030 (GEN_BNE): New macro.
6031 (GEN_LOAD): New macro.
6032 (GEN_STORE): New macro.
6033 (gen_limm): New function.
6034 (gen_atomic_xchg): New function.
6035 (gen_call): New function.
6036 (ppc_relocate_instruction): New function.
6037 (ppc_install_fast_tracepoint_jump_pad): New function.
6038 (ppc_get_min_fast_tracepoint_insn_len): New function.
6039 (ppc_get_ipa_tdesc_idx): New function.
6040 (the_low_target): Wire in the new functions.
6041 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6043 * linux-ppc-tdesc.h: New file.
6045 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6047 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6048 (alloc_jump_pad_buffer): New function.
6049 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6050 (alloc_jump_pad_buffer): New function.
6051 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6052 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6053 (alloc_jump_pad_buffer): New function.
6054 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6055 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6056 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6057 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6059 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6061 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6062 * linux-amd64-ipa.c: Likewise.
6063 * linux-i386-ipa.c: Likewise.
6064 * linux-s390-ipa.c: Likewise.
6065 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6066 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6067 set_trace_state_variable_value_ptr.
6068 (struct ipa_sym_addresses): Likewise.
6069 (symbol_list): Likewise.
6070 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6071 accessing gdb_collect directly.
6072 (gdb_collect_ptr_type): New typedef.
6073 (get_raw_reg_ptr_type): New typedef.
6074 (get_trace_state_variable_value_ptr_type): New typedef.
6075 (set_trace_state_variable_value_ptr_type): New typedef.
6076 (gdb_collect_ptr): New global.
6077 (get_raw_reg_ptr): New global.
6078 (get_trace_state_variable_value_ptr): New global.
6079 (set_trace_state_variable_value_ptr): New global.
6080 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6081 accessing get_raw_reg directly.
6082 (get_get_tsv_func_addr): Likewise for
6083 get_trace_state_variable_value_ptr.
6084 (get_set_tsv_func_addr): Likewise for
6085 set_trace_state_variable_value_ptr.
6086 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6088 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6090 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6092 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6094 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6096 (relocate_instruction): Remove own_buf.
6097 * server.c (own_buf): Make global.
6098 (handle_v_requests): Make global.
6099 * server.h (own_buf): New declaration.
6100 (handle_v_requests): New prototype.
6102 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6105 * linux-s390-low.c (add_insns): New function.
6106 (s390_emit_prologue): New function.
6107 (s390_emit_epilogue): New function.
6108 (s390_emit_add): New function.
6109 (s390_emit_sub): New function.
6110 (s390_emit_mul): New function.
6111 (s390_emit_lsh): New function.
6112 (s390_emit_rsh_signed): New function.
6113 (s390_emit_rsh_unsigned): New function.
6114 (s390_emit_ext): New function.
6115 (s390_emit_log_not): New function.
6116 (s390_emit_bit_and): New function.
6117 (s390_emit_bit_or): New function.
6118 (s390_emit_bit_xor): New function.
6119 (s390_emit_bit_not): New function.
6120 (s390_emit_equal): New function.
6121 (s390_emit_less_signed): New function.
6122 (s390_emit_less_unsigned): New function.
6123 (s390_emit_ref): New function.
6124 (s390_emit_if_goto): New function.
6125 (s390_emit_goto): New function.
6126 (s390_write_goto_address): New function.
6127 (s390_emit_litpool): New function.
6128 (s390_emit_const): New function.
6129 (s390_emit_call): New function.
6130 (s390_emit_reg): New function.
6131 (s390_emit_pop): New function.
6132 (s390_emit_stack_flush): New function.
6133 (s390_emit_zero_ext): New function.
6134 (s390_emit_swap): New function.
6135 (s390_emit_stack_adjust): New function.
6136 (s390_emit_set_r2): New function.
6137 (s390_emit_int_call_1): New function.
6138 (s390_emit_void_call_2): New function.
6139 (s390_emit_eq_goto): New function.
6140 (s390_emit_ne_goto): New function.
6141 (s390_emit_lt_goto): New function.
6142 (s390_emit_le_goto): New function.
6143 (s390_emit_gt_goto): New function.
6144 (s390_emit_ge_goto): New function.
6145 (s390x_emit_prologue): New function.
6146 (s390x_emit_epilogue): New function.
6147 (s390x_emit_add): New function.
6148 (s390x_emit_sub): New function.
6149 (s390x_emit_mul): New function.
6150 (s390x_emit_lsh): New function.
6151 (s390x_emit_rsh_signed): New function.
6152 (s390x_emit_rsh_unsigned): New function.
6153 (s390x_emit_ext): New function.
6154 (s390x_emit_log_not): New function.
6155 (s390x_emit_bit_and): New function.
6156 (s390x_emit_bit_or): New function.
6157 (s390x_emit_bit_xor): New function.
6158 (s390x_emit_bit_not): New function.
6159 (s390x_emit_equal): New function.
6160 (s390x_emit_less_signed): New function.
6161 (s390x_emit_less_unsigned): New function.
6162 (s390x_emit_ref): New function.
6163 (s390x_emit_if_goto): New function.
6164 (s390x_emit_const): New function.
6165 (s390x_emit_call): New function.
6166 (s390x_emit_reg): New function.
6167 (s390x_emit_pop): New function.
6168 (s390x_emit_stack_flush): New function.
6169 (s390x_emit_zero_ext): New function.
6170 (s390x_emit_swap): New function.
6171 (s390x_emit_stack_adjust): New function.
6172 (s390x_emit_int_call_1): New function.
6173 (s390x_emit_void_call_2): New function.
6174 (s390x_emit_eq_goto): New function.
6175 (s390x_emit_ne_goto): New function.
6176 (s390x_emit_lt_goto): New function.
6177 (s390x_emit_le_goto): New function.
6178 (s390x_emit_gt_goto): New function.
6179 (s390x_emit_ge_goto): New function.
6180 (s390_emit_ops): New function.
6181 (struct linux_target_ops): Fill in emit_ops hook.
6183 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6186 * Makefile.in: Add s390 IPA files.
6187 * configure.srv: Build IPA for s390.
6188 * linux-s390-ipa.c: New file.
6189 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6190 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6191 (tdesc_s390_linux32): Likewise.
6192 (init_registers_s390_linux32v1): Likewise.
6193 (tdesc_s390_linux32v1): Likewise.
6194 (init_registers_s390_linux32v2): Likewise.
6195 (tdesc_s390_linux32v2): Likewise.
6196 (init_registers_s390_linux64): Likewise.
6197 (tdesc_s390_linux64): Likewise.
6198 (init_registers_s390_linux64v1): Likewise.
6199 (tdesc_s390_linux64v1): Likewise.
6200 (init_registers_s390_linux64v2): Likewise.
6201 (tdesc_s390_linux64v2): Likewise.
6202 (init_registers_s390_te_linux64): Likewise.
6203 (tdesc_s390_te_linux64): Likewise.
6204 (init_registers_s390_vx_linux64): Likewise.
6205 (tdesc_s390_vx_linux64): Likewise.
6206 (init_registers_s390_tevx_linux64): Likewise.
6207 (tdesc_s390_tevx_linux64): Likewise.
6208 (init_registers_s390x_linux64): Likewise.
6209 (tdesc_s390x_linux64): Likewise.
6210 (init_registers_s390x_linux64v1): Likewise.
6211 (tdesc_s390x_linux64v1): Likewise.
6212 (init_registers_s390x_linux64v2): Likewise.
6213 (tdesc_s390x_linux64v2): Likewise.
6214 (init_registers_s390x_te_linux64): Likewise.
6215 (tdesc_s390x_te_linux64): Likewise.
6216 (init_registers_s390x_vx_linux64): Likewise.
6217 (tdesc_s390x_vx_linux64): Likewise.
6218 (init_registers_s390x_tevx_linux64): Likewise.
6219 (tdesc_s390x_tevx_linux64): Likewise.
6220 (have_hwcap_s390_vx): New static variable.
6221 (s390_arch_setup): Fill have_hwcap_s390_vx.
6222 (s390_get_thread_area): New function.
6223 (s390_ft_entry_gpr_esa): New const.
6224 (s390_ft_entry_gpr_zarch): New const.
6225 (s390_ft_entry_misc): New const.
6226 (s390_ft_entry_fr): New const.
6227 (s390_ft_entry_vr): New const.
6228 (s390_ft_main_31): New const.
6229 (s390_ft_main_64): New const.
6230 (s390_ft_exit_fr): New const.
6231 (s390_ft_exit_vr): New const.
6232 (s390_ft_exit_misc): New const.
6233 (s390_ft_exit_gpr_esa): New const.
6234 (s390_ft_exit_gpr_zarch): New const.
6235 (append_insns): New function.
6236 (s390_relocate_instruction): New function.
6237 (s390_install_fast_tracepoint_jump_pad): New function.
6238 (s390_get_min_fast_tracepoint_insn_len): New function.
6239 (s390_get_ipa_tdesc_idx): New function.
6240 (struct linux_target_ops): Wire in the above functions.
6241 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6242 * linux-s390-tdesc.h: New file.
6244 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6246 * linux-s390-low.c (s390_supports_tracepoints): New function.
6247 (struct linux_target_ops): Fill supports_tracepoints hook.
6249 2016-03-18 Yao Qi <yao.qi@linaro.org>
6251 * linux-low.c (lwp_signal_can_be_delivered): New function.
6252 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6254 2016-03-18 Yao Qi <yao.qi@linaro.org>
6256 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6257 0 if signal is enqueued. Remove 'signal' from one debugging
6258 message. Move one debugging message to some lines below.
6259 Remove code setting 'signal' to 0.
6261 2016-03-18 Yao Qi <yao.qi@linaro.org>
6263 * linux-low.c (linux_low_filter_event): Remove redundant
6264 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6266 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6268 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6269 (struct linux_target_ops): Wire in the above.
6271 2016-03-03 Yao Qi <yao.qi@linaro.org>
6273 * linux-low.c: Update comments to start_step_over.
6275 2016-03-03 Yao Qi <yao.qi@linaro.org>
6278 * linux-low.c (handle_extended_wait): Set child suspended
6279 if event_lwp->bp_reinsert isn't zero.
6281 2016-03-02 Yao Qi <yao.qi@linaro.org>
6283 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6284 enqueue_pending_signal.
6286 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6288 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6291 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6293 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6294 (s390_regmap_3264) [!__s390x__]: New global.
6295 (s390_collect_ptrace_register): Skip map entries containing -1.
6296 (s390_supply_ptrace_register): Ditto.
6297 (s390_fill_gprs_high): New function.
6298 (s390_store_gprs_high): New function.
6299 (s390_regsets): Add NT_S390_HIGH_GPRS.
6300 (s390_get_hwcap): Enable on 31-bit.
6301 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6302 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6303 Detect NT_S390_HIGH_GPRS.
6304 (s390_usrregs_info_3264): Enable on 31-bit.
6305 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6306 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6308 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6311 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6312 * configure.srv: Ditto.
6313 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6314 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6315 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6316 (init_registers_amd64_linux): Remove prototype.
6317 (tdesc_amd64_linux): Remove declaration.
6318 (get_ipa_tdesc): New function.
6319 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6320 initialize remaining tdescs.
6321 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6322 (init_registers_i386_linux): Remove prototype.
6323 (tdesc_i386_linux): Remove declaration.
6324 (get_ipa_tdesc): New function.
6325 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6326 initialize remaining tdescs.
6327 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6328 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6329 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6330 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6331 (x86_get_ipa_tdesc_idx): New function.
6332 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6333 * linux-x86-tdesc.h: New file.
6334 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6335 (target_get_ipa_tdesc_idx): New macro.
6336 * tracepoint.c (ipa_tdesc_idx): New macro.
6337 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6338 (symbol_list): Add ipa_tdesc_idx.
6339 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6340 (ipa_tdesc): Remove.
6341 (ipa_tdesc_idx): New variable.
6342 (get_context_regcache): Use get_ipa_tdesc.
6343 (gdb_collect): Ditto.
6345 * tracepoint.h (get_ipa_tdesc): New prototype.
6346 (ipa_tdesc): Remove.
6348 2016-02-24 Pedro Alves <palves@redhat.com>
6350 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6351 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6352 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6353 Factor out common code between the USE_SIGTRAP_SIGINFO and
6354 !USE_SIGTRAP_SIGINFO blocks.
6355 (linux_low_filter_event): Call save_stop_reason instead of
6356 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6358 (linux_wait_1): Update comments.
6360 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6362 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6363 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6364 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6365 ppc_insert_point, ppc_remove_point.
6367 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6369 * linux-s390-low.c (s390_supports_z_point_type): New function.
6370 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6372 2016-02-16 Yao Qi <yao.qi@linaro.org>
6374 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6375 PC. Get pc from regcache_read_pc.
6377 2016-02-12 Yao Qi <yao.qi@linaro.org>
6379 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6380 or linux_get_pc_32bit.
6381 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6383 2016-02-12 Yao Qi <yao.qi@linaro.org>
6385 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6386 arm_linux_get_next_pcs_fixup.
6388 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6390 * tracepoint.c (x_tracepoint_action_download): Change
6391 write_inferior_data_ptr to write_inferior_data_pointer.
6392 (cmd_qtstart): Likewise.
6393 (write_inferior_data_ptr): Remove.
6394 (download_agent_expr): Change write_inferior_data_ptr to
6395 write_inferior_data_pointer.
6396 (download_tracepoint_1): Likewise.
6397 (download_tracepoint): Likewise.
6398 (download_trace_state_variables): Likewise.
6400 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6401 Marcin Kościelnicki <koriakin@0x04.net>
6403 * tracepoint.c (struct tracepoint_action_ops): Remove.
6404 (struct tracepoint_action): Remove ops.
6405 (m_tracepoint_action_download, r_tracepoint_action_download)
6406 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6407 size and offset accordingly.
6408 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6409 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6410 (tracepoint_action_send, tracepoint_action_download): New functions.
6411 Helpers for trace action handlers.
6412 (add_tracepoint_action): Remove setup actions ops.
6413 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6415 2016-02-10 Yao Qi <yao.qi@linaro.org>
6417 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6419 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6421 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6423 * configure: Regenerate.
6425 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6427 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6428 void * to gdb_byte *.
6429 * linux-low.c (siginfo_fixup): Likewise.
6430 (linux_xfer_siginfo): Likewise.
6431 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6433 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6435 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6437 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6439 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6441 * linux-x86-low.c [__x86_64__]: Include
6442 "nat/amd64-linux-siginfo.h".
6443 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6444 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6445 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6446 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6447 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6448 (cpt_si_fd, si_timerid, si_overrun): Move from
6449 nat/amd64-linux-siginfo.c.
6450 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6452 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6454 * server.c (skip_to_semicolon): Remove.
6455 (process_point_options): Use strchrnul instead of
6458 2016-01-26 Yao Qi <yao.qi@linaro.org>
6460 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6461 * linux-low.c (install_software_single_step_breakpoints): Don't
6462 call regcache_read_pc.
6463 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6466 2016-01-26 Yao Qi <yao.qi@linaro.org>
6468 * linux-low.c (install_software_single_step_breakpoints): Call
6469 regcache_read_pc instead of get_pc.
6471 2016-01-26 Yao Qi <yao.qi@linaro.org>
6473 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6474 (unblock_async_io): Rename to ...
6475 (block_unblock_async_io): ... it. New function.
6476 (enable_async_io): Don't install SIGIO handler. Unblock it
6478 (disable_async_io): Don't ignore SIGIO. Block it instead.
6479 (initialize_async_io): Install SIGIO handler. Don't call
6482 2016-01-26 Yao Qi <yao.qi@linaro.org>
6484 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6485 first character is '\003', call *the_target->request_interrupt.
6487 2016-01-25 Yao Qi <yao.qi@linaro.org>
6489 * remote-utils.c (new_thread_notify): Remove.
6490 (dead_thread_notify): Likewise.
6491 * remote-utils.h (new_thread_notify): Remove declaration.
6492 (dead_thread_notify): Likewise.
6494 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6496 * gdb.trace/pending.exp: Fix expected message on continue.
6498 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6500 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6501 it works properly on big-endian machines where sizeof (CORE_ADDR)
6504 2016-01-21 Pedro Alves <palves@redhat.com>
6506 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6507 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6508 * configure: Regenerate.
6510 2016-01-21 Yao Qi <yao.qi@linaro.org>
6512 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6513 is_thumb and set it according to CPSR saved on the stack.
6514 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6515 arm_sigreturn_next_pc.
6517 2016-01-18 Yao Qi <yao.qi@linaro.org>
6519 * linux-low.c (linux_set_pc_64bit): New function.
6520 (linux_get_pc_64bit): New function.
6521 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6523 * linux-sparc-low.c (debug_threads): Remove declaration.
6524 (sparc_get_pc): Remove.
6525 (the_low_target): Use linux_get_pc_64bit instead of
6527 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6528 (the_low_target): Use linux_get_pc_64bit and
6531 2016-01-18 Yao Qi <yao.qi@linaro.org>
6533 * linux-arm-low.c (debug_threads): Remove declaration.
6534 (arm_get_pc, arm_set_pc): Remove.
6535 (the_low_target): Use linux_get_pc_32bit and
6537 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6538 (the_low_target): Use linux_get_pc_32bit and
6540 * linux-cris-low.c (debug_threads): Remove declaration.
6541 (cris_get_pc, cris_set_pc,): Remove.
6542 (the_low_target): Use linux_get_pc_32bit and
6544 * linux-crisv32-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-low.c: Include inttypes.h.
6549 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6550 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6551 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6552 (the_low_target): Use linux_get_pc_32bit and
6554 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6555 (the_low_target): Use linux_get_pc_32bit and
6557 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6558 (the_low_target): Use linux_get_pc_32bit and
6560 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6561 (the_low_target): Use linux_get_pc_32bit and
6563 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6564 (the_low_target): Use linux_get_pc_32bit and
6567 2016-01-18 Gary Benson <gbenson@redhat.com>
6569 * configure.ac (AC_FUNC_FORK): New check.
6570 * config.in: Regenerate.
6571 * configure: Likewise.
6573 2016-01-14 Yao Qi <yao.qi@linaro.org>
6575 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6576 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6577 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6578 arm_get_next_pcs_ctor.
6580 2016-01-12 Josh Stone <jistone@redhat.com>
6581 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6583 * inferiors.h: Include "gdb_vecs.h".
6584 (struct process_info): Add syscalls_to_catch.
6585 * inferiors.c (remove_process): Free syscalls_to_catch.
6586 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6587 syscall_return stops.
6588 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6589 * server.c (handle_general_set): Handle QCatchSyscalls.
6590 (handle_query): Report support for QCatchSyscalls.
6591 * target.h (struct target_ops): Add supports_catch_syscall.
6592 (target_supports_catch_syscall): New macro.
6593 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6594 (struct lwp_info): Add syscall_state.
6595 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6596 Maintain syscall_state and syscalls_to_catch across exec.
6597 (get_syscall_trapinfo): New function, proxy to the_low_target.
6598 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6599 (linux_low_filter_event): Toggle syscall_state entry/return for
6600 syscall traps, and set it ignored for all others.
6601 (gdb_catching_syscalls_p): New function.
6602 (gdb_catch_this_syscall_p): New function.
6603 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6604 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6605 (linux_supports_catch_syscall): New function.
6606 (linux_target_ops): Install it.
6607 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6608 (the_low_target): Install it.
6610 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6612 * acinclude.m4: Include new ../warning.m4 file.
6613 * configure: Regenerated.
6614 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6616 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6618 * ax.c (is_goto_target): Mark static.
6619 * linux-low.c (register_addr): Likewise.
6620 (linux_fetch_registers, linux_store_registers): Likewise.
6621 * mem-break.c (any_persistent_commands): Fix old prototype.
6622 (add_commands_to_breakpoint): Mark static.
6623 * regcache.c (find_register_by_name): Delete unused func.
6624 * remote-utils.c (hex_or_minus_one): Mark static.
6625 * server.c (monitor_show_help): Mark static.
6626 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6627 handle_v_requests): Likewise.
6629 2016-01-12 Pedro Alves <palves@redhat.com>
6631 Remove use of the registered trademark symbol throughout.
6633 2016-01-08 Yao Qi <yao.qi@linaro.org>
6635 * remote-utils.c (getpkt): If c is '\003', call target hook
6638 2016-01-06 Yao Qi <yao.qi@linaro.org>
6640 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6641 linux-aarch32-low.c.
6642 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6643 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6644 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6645 (thumb2_breakpoint): Declare.
6646 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6647 linux-aarch32-low.h.
6648 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6649 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6650 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6652 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6654 * gdbreplay.c (gdbreplay_version): Change copyright year in
6656 * server.c (gdbserver_version): Likewise.
6658 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6660 * server.c (crc32_table): Delete.
6661 (crc32): Use libiberty's xcrc32 function.
6663 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6665 * lynx-low.c (lynx_delete_thread_callback): New function.
6666 (lynx_mourn): Properly delete our process and all of its
6667 threads. Remove call to clear_inferiors.
6669 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6671 * target.c (thread_search_callback): Add check that
6672 the thread_stopped target callback is not NULL before
6675 2015-12-21 Yao Qi <yao.qi@linaro.org>
6677 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6680 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6682 * server.c (handle_query): Call target_supports_software_single_step.
6684 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6686 * linux-low.c (single_step): New function.
6687 (linux_resume_one_lwp_throw): Call single_step.
6688 (start_step_over): Likewise.
6690 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6692 * Makefile.in (SFILES): Append arch/arm-linux.c,
6693 arch/arm-get-next-pcs.c.
6694 (arm-linux.o): New rule.
6695 (arm-get-next-pcs.o): New rule.
6696 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6698 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6699 to linux-aarch32-low.c.
6700 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6701 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6702 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6703 (thumb2_breakpoint_len): Likewise.
6704 (arm_is_thumb_mode): Make non-static.
6705 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6706 from linux-aarch32-low.c.
6707 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6708 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6709 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6710 (thumb2_breakpoint_len): Likewise.
6711 (arm_is_thumb_mode): New declaration.
6712 * linux-arm-low.c: Include arch/arm-linux.h
6713 aarch/arm-get-next-pcs.h, sys/syscall.h.
6714 (get_next_pcs_ops): New struct.
6715 (get_next_pcs_addr_bits_remove): New function.
6716 (get_next_pcs_is_thumb): New function.
6717 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6718 (arm_sigreturn_next_pc): Likewise.
6719 (get_next_pcs_syscall_next_pc): Likewise.
6720 (arm_gdbserver_get_next_pcs): Likewise.
6721 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6723 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6724 * server.h: Include gdb_vecs.h.
6726 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6728 * Makefile.in (SFILES): Append common/common-regcache.c.
6729 (OBS): Append common-regcache.o.
6730 (common-regcache.o): New rule.
6731 * regcache.c (init_register_cache): Initialize cache to
6733 (regcache_raw_read_unsigned): New function.
6734 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6735 register_status enum.
6737 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6739 * linux-aarch64-low.c (the_low_targets): Rename
6740 breakpoint_reinsert_addr to get_next_pcs.
6741 * linux-arm-low.c (the_low_targets): Likewise.
6742 * linux-bfin-low.c (the_low_targets): Likewise.
6743 * linux-cris-low.c (the_low_targets): Likewise.
6744 * linux-crisv32-low.c (the_low_targets): Likewise.
6745 * linux-low.c (can_software_single_step): Likewise.
6746 (install_software_single_step_breakpoints): New function.
6747 (start_step_over): Use install_software_single_step_breakpoints.
6748 * linux-low.h: New CORE_ADDR vector.
6749 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6751 * linux-mips-low.c (the_low_targets): Likewise.
6752 * linux-nios2-low.c (the_low_targets): Likewise.
6753 * linux-sparc-low.c (the_low_targets): Likewise.
6755 2015-12-17 Pedro Alves <palves@redhat.com>
6757 * linux-low.c (linux_kill_one_lwp): Remove references to
6759 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6761 (linux_init_signals): Delete.
6762 (initialize_low): Adjust.
6763 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6765 2015-12-16 Pedro Alves <palves@redhat.com>
6767 * configure.ac (compiler warning flags): When testing a
6768 -Wno-foo option, check whether -Wfoo works instead.
6769 * configure: Regenerate.
6771 2015-12-11 Don Breazeal <donb@codesourcery.com>
6773 * server.c (process_serial_event): Don't exit from gdbserver
6774 in remote mode if there are still active inferiors.
6776 2015-12-11 Yao Qi <yao.qi@linaro.org>
6778 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6779 arm_breakpoint_at if the process is 32-bit.
6781 2015-12-11 Yao Qi <yao.qi@linaro.org>
6783 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6786 2015-12-07 Yao Qi <yao.qi@linaro.org>
6788 * configure.srv: Append arm.o to srv_tgtobj for
6789 aarch64*-*-linux* target.
6790 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6791 from linux-arm-low.c.
6792 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6793 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6794 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6795 (thumb2_breakpoint_len): Likewise.
6796 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6797 (arm_breakpoint_kinds): Likewise.
6798 (arm_breakpoint_kind_from_pc): Likewise.
6799 (arm_sw_breakpoint_from_kind): Likewise.
6800 (arm_breakpoint_kind_from_current_state): Likewise.
6801 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6802 (arm_sw_breakpoint_from_kind): Declare.
6803 (arm_breakpoint_kind_from_current_state): Declare.
6804 (arm_breakpoint_at): Declare.
6805 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6806 arm_sw_breakpoint_from_kind if process is 32-bit.
6807 (aarch64_breakpoint_kind_from_pc): New function.
6808 (aarch64_breakpoint_kind_from_current_state): New function.
6809 (the_low_target): Initialize fields breakpoint_kind_from_pc
6810 and breakpoint_kind_from_current_state.
6811 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6812 linux-aarch32-low.c.
6813 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6814 (arm_breakpoint, arm_breakpoint_len): Likewise.
6815 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6816 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6817 (arm_is_thumb_mode): Likewise.
6818 (arm_breakpoint_at): Likewise.
6819 (arm_breakpoint_kind_from_pc): Likewise.
6820 (arm_sw_breakpoint_from_kind): Likewise.
6821 (arm_breakpoint_kind_from_current_state): Likewise.
6824 2015-08-04 Yao Qi <yao.qi@linaro.org>
6826 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6827 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6828 * server.c (extended_protocol): Remove "static".
6829 * server.h (extended_protocol): Declare it.
6831 2015-12-04 Josh Stone <jistone@redhat.com>
6833 * target.h (struct target_ops) <arch_setup>: Rename to ...
6834 (struct target_ops) <post_create_inferior>: ... this.
6835 (target_arch_setup): Rename to ...
6836 (target_post_create_inferior): ... this, calling post_create_inferior.
6837 * server.c (start_inferior): Update target_arch_setup calls to
6838 target_post_create_inferior.
6839 * linux-low.c (linux_low_ptrace_options): Forward declare.
6840 (linux_arch_setup): Update its comment for general use.
6841 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6842 (struct linux_target_ops): Use linux_post_create_inferior.
6843 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6844 to post_create_inferior.
6845 * nto-low.c (struct nto_target_ops): Likewise.
6846 * spu-low.c (struct spu_target_ops): Likewise.
6847 * win32-low.c (struct win32_target_ops): Likewise.
6849 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6851 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6853 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6855 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6856 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6857 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6858 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6859 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6860 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6861 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6862 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6863 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6864 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6865 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6866 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6868 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6870 * linux-low.c (linux_look_up_symbols): Don't call
6871 linux_supports_traceclone.
6872 * linux-low.h (thread_db_init): Remove use_events argument.
6873 * thread-db.c (thread_db_use_event): Remove global variable.
6874 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6875 (struct thread_db) <td_create_bp>: Remove field.
6876 (thread_db_create_event): Remove function.
6877 (thread_db_enable_reporting): Likewise.
6878 (find_one_thread): Don't check for thread_db_use_events.
6879 (attach_thread): Likewise.
6880 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6881 (try_thread_db_load_1): Don't check for thread_db_use_events.
6882 (thread_db_init): Remove use_events argument and thread events
6884 (remove_thread_event_breakpoints): Remove function.
6885 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6887 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6889 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6891 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6892 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6893 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6894 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6895 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6897 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6899 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6900 * linux-low.c (can_hardware_single_step): Use
6901 supports_hardware_single_step.
6902 (can_software_single_step): New function.
6903 (start_step_over): Call can_software_single_step.
6904 (linux_supports_hardware_single_step): New function.
6905 (struct target_ops) <supports_software_single_step>: Initialize.
6906 * linux-low.h (struct linux_target_ops)
6907 <supports_hardware_single_step>: Initialize.
6908 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6909 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6910 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6911 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6912 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6913 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6914 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6915 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6916 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6917 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6919 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6920 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6922 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6923 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6924 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6926 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6927 * target.h (struct target_ops): <supports_software_single_step>:
6929 (target_supports_software_single_step): New macro.
6931 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6933 * linux-low.c (linux_wait_1): Fix pc advance condition.
6934 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6935 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6937 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6939 * linux-arm-low.c (arm_is_thumb_mode): New function.
6940 (arm_breakpoint_at): Use arm_is_thumb_mode.
6941 (arm_breakpoint_kind_from_current_state): New function.
6942 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6944 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6945 (linux_breakpoint_kind_from_current_state): New function.
6946 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6947 * linux-low.h (struct linux_target_ops)
6948 <breakpoint_kind_from_current_state>: New field.
6949 * target.h (struct target_ops): Likewise.
6950 (target_breakpoint_kind_from_current_state): New macro.
6952 2015-11-30 Pedro Alves <palves@redhat.com>
6954 * linux-low.c (linux_resume): Wake up the event loop before
6957 2015-11-30 Pedro Alves <palves@redhat.com>
6959 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6961 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6963 * target.c (struct thread_search): New structure.
6964 (thread_search_callback): New function.
6965 (prev_general_thread): New global.
6966 (prepare_to_access_memory, done_accessing_memory): New functions.
6967 * target.h (prepare_to_access_memory, done_accessing_memory):
6968 Replace macros with function declarations.
6970 2015-11-30 Pedro Alves <palves@redhat.com>
6973 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
6974 report TARGET_WAITKIND_NO_RESUMED.
6975 * remote-utils.c (prepare_resume_reply): Handle
6976 TARGET_WAITKIND_NO_RESUMED.
6977 * server.c (report_no_resumed): New global.
6978 (handle_query) <qSupported>: Handle "no-resumed+". Report
6979 "no-resumed+" support.
6980 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6981 return error if the client doesn't support no-resumed events.
6982 (push_stop_notification): New function.
6983 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6984 events if the client supports them.
6986 2015-11-30 Pedro Alves <palves@redhat.com>
6988 * linux-low.c (thread_still_has_status_pending_p): Don't check
6990 (lwp_resumed): New function.
6991 (status_pending_p_callback): Return early if the LWP is not
6992 supposed to be resumed.
6994 2015-11-30 Pedro Alves <palves@redhat.com>
6996 * linux-low.c (handle_extended_wait): Assert that the LWP's
6997 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
6998 thread create events, leave the new child's status pending.
6999 (linux_low_filter_event): If GDB wants to hear about thread exit
7000 events, leave the LWP marked dead and don't delete it.
7001 (linux_wait_for_event_filtered): Don't check for thread exit.
7002 (filter_exit_event): New function.
7003 (linux_wait_1): Use it, when returning an exit event.
7004 (linux_resume_one_lwp_throw): Assert that the LWP's
7005 waitstatus is TARGET_WAITKIND_IGNORE.
7006 * remote-utils.c (prepare_resume_reply): Handle
7007 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7008 * server.c (report_thread_events): New global.
7009 (handle_general_set): Handle QThreadEvents.
7010 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7011 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7012 TARGET_WAITKIND_THREAD_EXITED.
7013 * server.h (report_thread_events): Declare.
7015 2015-11-30 Pedro Alves <palves@redhat.com>
7017 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7018 the thread's last_resume_kind was resume_stop.
7020 2015-11-30 Pedro Alves <palves@redhat.com>
7022 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7025 2015-11-30 Pedro Alves <palves@redhat.com>
7027 * server.c (handle_v_requests): Handle vCtrlC.
7029 2015-11-30 Pedro Alves <palves@redhat.com>
7031 * gdbthread.h (find_any_thread_of_pid): Declare.
7032 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7034 * server.c (handle_query): If current_thread is NULL, look for
7035 another thread of the selected process.
7037 2015-11-26 Daniel Colascione <dancol@dancol.org>
7038 Simon Marchi <simon.marchi@ericsson.com>
7040 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7041 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7043 * target.h (struct target_ops) <thread_name>: New field.
7044 (target_thread_name): New macro.
7046 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7048 * regcache.h (regcache_invalidate_pid): Add declaration.
7049 * regcache.c (regcache_invalidate_pid): New function, extracted
7050 from regcache_invalidate.
7051 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7052 Add trivial documentation comment.
7053 * lynx-low.c: Use regcache_invalidate_pid instead of
7054 regcache_invalidate.
7056 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7058 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7059 and Elf64_auxv_t if the target is Android.
7061 2015-11-22 Doug Evans <xdje42@gmail.com>
7063 * target.h: #include <sys/types.h>.
7065 2015-11-19 Pedro Alves <palves@redhat.com>
7067 * linux-low.c (linux_process_qsupported): Change prototype.
7069 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7071 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7072 and adjust to loop over all features.
7073 * server.c (handle_query) <qSupported>: Adjust to call
7074 target_process_qsupported once, passing it a vector of unprocessed
7076 * target.h (struct target_ops) <process_qsupported>: Change
7078 (target_process_qsupported): Adjust.
7080 2015-11-19 Pedro Alves <palves@redhat.com>
7082 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7084 * configure: Regenerate.
7086 2015-11-19 Pedro Alves <palves@redhat.com>
7088 * configure: Regenerate.
7090 2015-11-19 Yao Qi <yao.qi@linaro.org>
7092 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7095 2015-11-19 Yao Qi <yao.qi@linaro.org>
7097 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7098 (struct aarch64_operand): Move enum out.
7100 2015-11-19 Yao Qi <yao.qi@linaro.org>
7102 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7103 struct user_fpsimd_state *.
7104 (aarch64_store_fpregset): Likewise.
7106 2015-11-19 Yao Qi <yao.qi@linaro.org>
7108 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7109 struct user_pt_regs *.
7110 (aarch64_store_gregset): Likewise.
7112 2015-11-18 Pedro Alves <palves@redhat.com>
7114 * Makefile.in (all_object_files): Add $IPA_OBJS.
7116 2015-11-17 Pedro Alves <palves@redhat.com>
7118 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7119 GDB_SIGNAL_0 and gdb_signal_to_string.
7121 2015-11-17 Pedro Alves <palves@redhat.com>
7123 * win32-low.c (handle_output_debug_string): Remove parameter.
7124 (win32_kill): Remove our_status local and adjust call to
7125 handle_output_debug_string.
7126 (get_child_debug_event): Adjust call to
7127 handle_output_debug_string.
7129 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7131 * linux-mips-low.c (mips_fill_gregset): Add cast.
7132 (mips_store_gregset): Likewise.
7133 (mips_fill_fpregset): Likewise.
7134 (mips_store_fpregset): Likewise.
7136 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7138 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7141 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7143 * linux-mips-low.c (mips_linux_new_thread): Change type of
7144 watch_type to enum target_hw_bp_type.
7146 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7148 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7149 Change return type to arm_hwbp_type.
7151 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7153 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7154 (arm_store_gregset): Likewise.
7155 * linux-arm-low.c (arm_get_hwcap): Likewise.
7156 (arm_read_description): Likewise.
7158 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7160 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7162 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7164 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7165 (ppc_fill_vsxregset): Likewise.
7166 (ppc_store_vsxregset): Likewise.
7167 (ppc_fill_vrregset): Likewise.
7168 (ppc_store_vrregset): Likewise.
7169 (ppc_fill_evrregset): Likewise.
7170 (ppc_store_evrregset): Likewise.
7172 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7174 * linux-ppc-low.c (ppc_usrregs_info): Remove
7175 forward-declaration.
7176 (ppc_arch_setup): Move lower in file.
7178 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7180 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7181 (ps_pdwrite): Likewise.
7183 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7185 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7186 to after assert checks.
7188 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7190 * proc-service.c (ps_pdread): Add/adjust casts.
7191 (ps_pdwrite): Add/adjust casts.
7193 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7195 * server.c (handle_search_memory_1): Cast return value of
7198 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7200 * server.c (write_qxfer_response): Change type of data to
7203 2015-10-29 Pedro Alves <palves@redhat.com>
7205 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7207 2015-10-29 Pedro Alves <palves@redhat.com>
7209 * tracepoint.c (clear_installed_tracepoints): Add casts.
7211 2015-10-29 Pedro Alves <palves@redhat.com>
7213 * server.c (handle_v_cont, process_serial_event): Add enum
7214 gdb_signal casts to signal parsing code.
7216 2015-10-29 Pedro Alves <palves@redhat.com>
7218 * linux-low.h (NULL_REGSET): Define.
7219 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7220 * linux-arm-low.c (arm_regsets): Likewise.
7221 * linux-crisv32-low.c (cris_regsets): Likewise.
7222 * linux-m68k-low.c (m68k_regsets): Likewise.
7223 * linux-mips-low.c (mips_regsets): Likewise.
7224 * linux-nios2-low.c (nios2_regsets): Likewise.
7225 * linux-ppc-low.c (ppc_regsets): Likewise.
7226 * linux-s390-low.c (s390_regsets): Likewise.
7227 * linux-sh-low.c (sh_regsets): Likewise.
7228 * linux-sparc-low.c (sparc_regsets): Likewise.
7229 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7230 * linux-tile-low.c (tile_regsets): Likewise.
7231 * linux-x86-low.c (x86_regsets): Likewise.
7232 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7234 2015-10-29 Pedro Alves <palves@redhat.com>
7236 * linux-low.h (NULL_REGSET): Define.
7237 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7238 * linux-arm-low.c (arm_regsets): Likewise.
7239 * linux-crisv32-low.c (cris_regsets): Likewise.
7240 * linux-m68k-low.c (m68k_regsets): Likewise.
7241 * linux-mips-low.c (mips_regsets): Likewise.
7242 * linux-nios2-low.c (nios2_regsets): Likewise.
7243 * linux-ppc-low.c (ppc_regsets): Likewise.
7244 * linux-s390-low.c (s390_regsets): Likewise.
7245 * linux-sh-low.c (sh_regsets): Likewise.
7246 * linux-sparc-low.c (sparc_regsets): Likewise.
7247 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7248 * linux-tile-low.c (tile_regsets): Likewise.
7249 * linux-x86-low.c (x86_regsets): Likewise.
7250 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7252 2015-10-26 Doug Evans <dje@google.com>
7254 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7256 2015-10-26 Doug Evans <dje@google.com>
7258 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7260 2015-10-26 Doug Evans <dje@google.com>
7262 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7264 (attach_thread, find_new_threads_callback): Ditto.
7266 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7268 * mem-break.h (set_breakpoint_data): Remove.
7270 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7272 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7273 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7274 (initialize_low): Remove set_breakpoint_data call.
7275 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7276 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7277 (initialize_low): Remove set_breakpoint_data call.
7278 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7279 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7280 (initialize_low): Remove set_breakpoint_data call.
7282 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7284 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7285 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7286 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7287 * target.h (target_breakpoint_kind_from_pc): New macro.
7289 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7291 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7292 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7293 the default breakpoint kind.
7295 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7297 * linux-arm-low.c (arm_supports_z_point_type): Add software
7300 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7302 * linux-arm-low.c: Refactor breakpoint definitions.
7303 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7304 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7306 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7308 * Makefile.in: Add arm.c/o.
7309 * configure.srv: Likewise.
7310 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7311 (arm_breakpoint_kind_from_pc): New function.
7312 (arm_sw_breakpoint_from_kind): Return proper kind.
7313 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7315 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7317 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7319 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7320 (struct raw_breakpoint) <size>: Remove.
7321 (struct raw_breakpoint) <kind>: Add.
7322 (bp_size): New function.
7323 (bp_opcode): Likewise.
7324 (find_raw_breakpoint_at): Adjust for kind.
7325 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7326 (remove_memory_breakpoint): Adjust for kind call bp_size.
7327 (set_raw_breakpoint_at): Adjust for kind.
7328 (set_breakpoint): Likewise.
7329 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7330 (delete_raw_breakpoint): Adjust for kind.
7331 (delete_breakpoint): Likewise.
7332 (find_gdb_breakpoint): Likewise.
7333 (set_gdb_breakpoint_1): Likewise.
7334 (set_gdb_breakpoint): Likewise.
7335 (delete_gdb_breakpoint_1): Likewise.
7336 (delete_gdb_breakpoint): Likewise.
7337 (uninsert_raw_breakpoint): Likewise.
7338 (reinsert_raw_breakpoint): Likewise.
7339 (set_breakpoint_data): Remove.
7340 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7341 (check_mem_read): Adjust for kind call bp_size.
7342 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7343 (clone_one_breakpoint): Adjust for kind.
7344 * mem-break.h (set_gdb_breakpoint): Likewise.
7345 (delete_gdb_breakpoint): Likewise.
7346 * server.c (process_serial_event): Likewise.
7348 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7350 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7351 (struct linux_target_ops) <breakpoint>: Remove.
7352 (struct linux_target_ops) <breakpoint_len>: Remove.
7353 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7354 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7355 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7356 (arm_sw_breakpoint_from_kind): New function.
7357 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7358 (struct linux_target_ops) <breakpoint>: Remove.
7359 (struct linux_target_ops) <breakpoint_len>: Remove.
7360 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7361 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7362 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7363 (struct linux_target_ops) <breakpoint>: Remove.
7364 (struct linux_target_ops) <breakpoint_len>: Remove.
7365 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7366 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7367 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7368 (struct linux_target_ops) <breakpoint>: Remove.
7369 (struct linux_target_ops) <breakpoint_len>: Remove.
7370 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7371 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7372 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7373 and sw_breakpoint_from_kind to increment the pc.
7374 (linux_breakpoint_kind_from_pc): New function.
7375 (linux_sw_breakpoint_from_kind): New function.
7376 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7377 (initialize_low): Call breakpoint_kind_from_pc and
7378 sw_breakpoint_from_kind to replace breakpoint_data/len.
7379 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7381 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7382 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7383 (struct linux_target_ops) <breakpoint>: Remove.
7384 (struct linux_target_ops) <breakpoint_len>: Remove.
7385 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7386 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7387 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7388 (struct linux_target_ops) <breakpoint>: Remove.
7389 (struct linux_target_ops) <breakpoint_len>: Remove.
7390 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7391 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7392 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7393 (struct linux_target_ops) <breakpoint>: Remove.
7394 (struct linux_target_ops) <breakpoint_len>: Remove.
7395 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7396 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7397 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7398 (struct linux_target_ops) <breakpoint>: Remove.
7399 (struct linux_target_ops) <breakpoint_len>: Remove.
7400 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7401 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7402 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7403 (struct linux_target_ops) <breakpoint>: Remove.
7404 (struct linux_target_ops) <breakpoint_len>: Remove.
7405 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7406 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7407 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7408 (struct linux_target_ops) <breakpoint>: Remove.
7409 (struct linux_target_ops) <breakpoint_len>: Remove.
7410 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7411 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7412 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7413 (struct linux_target_ops) <breakpoint>: Remove.
7414 (struct linux_target_ops) <breakpoint_len>: Remove.
7415 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7416 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7417 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7418 (struct linux_target_ops) <breakpoint>: Remove.
7419 (struct linux_target_ops) <breakpoint_len>: Remove.
7420 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7421 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7422 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7423 (struct linux_target_ops) <breakpoint>: Remove.
7424 (struct linux_target_ops) <breakpoint_len>: Remove.
7425 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7426 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7427 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7428 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7429 (struct linux_target_ops) <breakpoint>: Remove.
7430 (struct linux_target_ops) <breakpoint_len>: Remove.
7431 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7432 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7433 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7434 (struct linux_target_ops) <breakpoint>: Remove.
7435 (struct linux_target_ops) <breakpoint_len>: Remove.
7436 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7437 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7439 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7441 * linux-cris-low.c (cris_get_pc): Remove void arg.
7443 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7445 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7448 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7450 * inferiors.c (thread_pid_matches_callback): New function.
7451 (find_thread_process): New function.
7452 (remove_thread): Reset current_thread.
7453 (remove_process): Assert threads have been removed first.
7455 2015-10-15 Yao Qi <yao.qi@linaro.org>
7457 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7459 (aarch64_remove_point): Likewise.
7460 * regcache.c (regcache_register_size): New function.
7462 2015-10-12 Yao Qi <yao.qi@linaro.org>
7464 * linux-aarch64-low.c: Update all callers as emit_load_store
7465 is renamed to aarch64_emit_load_store.
7467 2015-10-12 Yao Qi <yao.qi@linaro.org>
7469 * linux-aarch64-low.c: Update all callers of function renaming
7470 from emit_insn to aarch64_emit_insn.
7472 2015-10-12 Yao Qi <yao.qi@linaro.org>
7474 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7475 arch/aarch64-insn.h.
7476 (struct aarch64_memory_operand): Likewise.
7478 (emit_insn): Move to arch/aarch64-insn.c.
7479 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7480 (emit_load_store): Move to arch/aarch64-insn.c.
7481 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7482 (can_encode_int32): Remove.
7484 2015-10-12 Yao Qi <yao.qi@linaro.org>
7486 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7487 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7488 (aarch64_relocate_instruction): Likewise.
7489 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7490 (struct aarch64_insn_visitor): Likewise.
7492 2015-10-12 Yao Qi <yao.qi@linaro.org>
7494 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7495 (struct aarch64_insn_visitor): New.
7496 (struct aarch64_insn_relocation_data): New.
7497 (aarch64_ftrace_insn_reloc_b): New function.
7498 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7499 (aarch64_ftrace_insn_reloc_cb): Likewise.
7500 (aarch64_ftrace_insn_reloc_tb): Likewise.
7501 (aarch64_ftrace_insn_reloc_adr): Likewise.
7502 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7503 (aarch64_ftrace_insn_reloc_others): Likewise.
7505 (aarch64_relocate_instruction): Use visitor.
7507 2015-10-12 Yao Qi <yao.qi@linaro.org>
7509 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7510 int. Add argument buf.
7511 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7512 aarch64_relocate_instruction.
7514 2015-10-12 Yao Qi <yao.qi@linaro.org>
7516 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7517 argument insn. Remove local variable insn. Don't call
7519 (aarch64_install_fast_tracepoint_jump_pad): Call
7522 2015-09-30 Yao Qi <yao.qi@linaro.org>
7524 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7525 (emit_load_store_pair): Likewise.
7527 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7529 * dll.c (match_dll): Add cast(s).
7530 (unloaded_dll): Likewise.
7531 * linux-low.c (second_thread_of_pid_p): Likewise.
7532 (delete_lwp_callback): Likewise.
7533 (count_events_callback): Likewise.
7534 (select_event_lwp_callback): Likewise.
7535 (linux_set_resume_request): Likewise.
7536 * server.c (accumulate_file_name_length): Likewise.
7537 (emit_dll_description): Likewise.
7538 (handle_qxfer_threads_worker): Likewise.
7539 (visit_actioned_threads): Likewise.
7540 * thread-db.c (any_thread_of): Likewise.
7541 * tracepoint.c (same_process_p): Likewise.
7542 (match_blocktype): Likewise.
7543 (build_traceframe_info_xml): Likewise.
7545 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7547 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7549 (gdb_unparse_agent_expr): Likewise.
7550 * hostio.c (require_data): Likewise.
7551 (handle_pread): Likewise.
7552 * linux-low.c (disable_regset): Likewise.
7553 (fetch_register): Likewise.
7554 (store_register): Likewise.
7555 (get_dynamic): Likewise.
7556 (linux_qxfer_libraries_svr4): Likewise.
7557 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7558 (set_fast_tracepoint_jump): Likewise.
7559 (uninsert_fast_tracepoint_jumps_at): Likewise.
7560 (reinsert_fast_tracepoint_jumps_at): Likewise.
7561 (validate_inserted_breakpoint): Likewise.
7562 (clone_agent_expr): Likewise.
7563 * regcache.c (init_register_cache): Likewise.
7564 * remote-utils.c (putpkt_binary_1): Likewise.
7565 (decode_M_packet): Likewise.
7566 (decode_X_packet): Likewise.
7567 (look_up_one_symbol): Likewise.
7568 (relocate_instruction): Likewise.
7569 (monitor_output): Likewise.
7570 * server.c (handle_search_memory): Likewise.
7571 (handle_qxfer_exec_file): Likewise.
7572 (handle_qxfer_libraries): Likewise.
7573 (handle_qxfer): Likewise.
7574 (handle_query): Likewise.
7575 (handle_v_cont): Likewise.
7576 (handle_v_run): Likewise.
7577 (captured_main): Likewise.
7578 * target.c (write_inferior_memory): Likewise.
7579 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7580 * tracepoint.c (init_trace_buffer): Likewise.
7581 (add_tracepoint_action): Likewise.
7582 (add_traceframe): Likewise.
7583 (add_traceframe_block): Likewise.
7584 (cmd_qtdpsrc): Likewise.
7585 (cmd_qtdv): Likewise.
7586 (cmd_qtstatus): Likewise.
7587 (response_source): Likewise.
7588 (response_tsv): Likewise.
7589 (cmd_qtnotes): Likewise.
7590 (gdb_collect): Likewise.
7591 (initialize_tracepoint): Likewise.
7593 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7595 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7596 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7597 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7599 (enum aarch64_condition_codes): New enum.
7600 (w0): New static global.
7603 (struct aarch64_memory_operand) <type>: New
7604 MEMORY_OPERAND_POSTINDEX type.
7605 (postindex_memory_operand): New helper function.
7606 (emit_ret): New function.
7607 (emit_load_store_pair): New function, factored out of emit_stp
7608 with support for MEMORY_OPERAND_POSTINDEX.
7609 (emit_stp): Rewrite using emit_load_store_pair.
7610 (emit_ldp): New function.
7611 (emit_load_store): Likewise.
7612 (emit_ldr): Mention post-index instruction in comment.
7613 (emit_ldrh): New function.
7614 (emit_ldrb): New function.
7615 (emit_ldrsw): Mention post-index instruction in comment.
7616 (emit_str): Likewise.
7617 (emit_subs): New function.
7618 (emit_cmp): Likewise.
7619 (emit_and): Likewise.
7620 (emit_orr): Likewise.
7621 (emit_orn): Likewise.
7622 (emit_eor): Likewise.
7623 (emit_mvn): Likewise.
7624 (emit_lslv): Likewise.
7625 (emit_lsrv): Likewise.
7626 (emit_asrv): Likewise.
7627 (emit_mul): Likewise.
7628 (emit_sbfm): Likewise.
7629 (emit_sbfx): Likewise.
7630 (emit_ubfm): Likewise.
7631 (emit_ubfx): Likewise.
7632 (emit_csinc): Likewise.
7633 (emit_cset): Likewise.
7634 (emit_nop): Likewise.
7635 (emit_ops_insns): New helper function.
7636 (emit_pop): Likewise.
7637 (emit_push): Likewise.
7638 (aarch64_emit_prologue): New function.
7639 (aarch64_emit_epilogue): Likewise.
7640 (aarch64_emit_add): Likewise.
7641 (aarch64_emit_sub): Likewise.
7642 (aarch64_emit_mul): Likewise.
7643 (aarch64_emit_lsh): Likewise.
7644 (aarch64_emit_rsh_signed): Likewise.
7645 (aarch64_emit_rsh_unsigned): Likewise.
7646 (aarch64_emit_ext): Likewise.
7647 (aarch64_emit_log_not): Likewise.
7648 (aarch64_emit_bit_and): Likewise.
7649 (aarch64_emit_bit_or): Likewise.
7650 (aarch64_emit_bit_xor): Likewise.
7651 (aarch64_emit_bit_not): Likewise.
7652 (aarch64_emit_equal): Likewise.
7653 (aarch64_emit_less_signed): Likewise.
7654 (aarch64_emit_less_unsigned): Likewise.
7655 (aarch64_emit_ref): Likewise.
7656 (aarch64_emit_if_goto): Likewise.
7657 (aarch64_emit_goto): Likewise.
7658 (aarch64_write_goto_address): Likewise.
7659 (aarch64_emit_const): Likewise.
7660 (aarch64_emit_call): Likewise.
7661 (aarch64_emit_reg): Likewise.
7662 (aarch64_emit_pop): Likewise.
7663 (aarch64_emit_stack_flush): Likewise.
7664 (aarch64_emit_zero_ext): Likewise.
7665 (aarch64_emit_swap): Likewise.
7666 (aarch64_emit_stack_adjust): Likewise.
7667 (aarch64_emit_int_call_1): Likewise.
7668 (aarch64_emit_void_call_2): Likewise.
7669 (aarch64_emit_eq_goto): Likewise.
7670 (aarch64_emit_ne_goto): Likewise.
7671 (aarch64_emit_lt_goto): Likewise.
7672 (aarch64_emit_le_goto): Likewise.
7673 (aarch64_emit_gt_goto): Likewise.
7674 (aarch64_emit_ge_got): Likewise.
7675 (aarch64_emit_ops_impl): New static global variable.
7676 (aarch64_emit_ops): New target function, return
7677 &aarch64_emit_ops_impl.
7678 (struct linux_target_ops): Install it.
7680 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7682 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7683 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7685 * linux-aarch64-ipa.c: New file.
7686 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7688 (aarch64_get_thread_area): New target method.
7689 (extract_signed_bitfield): New helper function.
7690 (aarch64_decode_ldr_literal): New function.
7691 (enum aarch64_opcodes): New enum.
7692 (struct aarch64_register): New struct.
7693 (struct aarch64_operand): New struct.
7694 (x0): New static global.
7703 (aarch64_register): New helper function.
7704 (register_operand): Likewise.
7705 (immediate_operand): Likewise.
7706 (struct aarch64_memory_operand): New struct.
7707 (offset_memory_operand): New helper function.
7708 (preindex_memory_operand): Likewise.
7709 (enum aarch64_system_control_registers): New enum.
7710 (ENCODE): New macro.
7711 (emit_insn): New helper function.
7712 (emit_b): New function.
7713 (emit_bcond): Likewise.
7714 (emit_cb): Likewise.
7715 (emit_tb): Likewise.
7716 (emit_blr): Likewise.
7717 (emit_stp): Likewise.
7718 (emit_ldp_q_offset): Likewise.
7719 (emit_stp_q_offset): Likewise.
7720 (emit_load_store): Likewise.
7721 (emit_ldr): Likewise.
7722 (emit_ldrsw): Likewise.
7723 (emit_str): Likewise.
7724 (emit_ldaxr): Likewise.
7725 (emit_stxr): Likewise.
7726 (emit_stlr): Likewise.
7727 (emit_data_processing_reg): Likewise.
7728 (emit_data_processing): Likewise.
7729 (emit_add): Likewise.
7730 (emit_sub): Likewise.
7731 (emit_mov): Likewise.
7732 (emit_movk): Likewise.
7733 (emit_mov_addr): Likewise.
7734 (emit_mrs): Likewise.
7735 (emit_msr): Likewise.
7736 (emit_sevl): Likewise.
7737 (emit_wfe): Likewise.
7738 (append_insns): Likewise.
7739 (can_encode_int32_in): New helper function.
7740 (aarch64_relocate_instruction): New function.
7741 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7742 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7743 (struct linux_target_ops): Install aarch64_get_thread_area,
7744 aarch64_install_fast_tracepoint_jump_pad and
7745 aarch64_get_min_fast_tracepoint_insn_len.
7747 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7749 * Makefile.in (aarch64-insn.o): New rule.
7750 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7752 2015-09-21 Yao Qi <yao.qi@linaro.org>
7754 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7756 2015-09-21 Yao Qi <yao.qi@linaro.org>
7758 * tracepoint.c (max_jump_pad_size): Remove.
7760 2015-09-18 Yao Qi <yao.qi@linaro.org>
7762 * linux-aarch64-low.c: Don't include sys/uio.h.
7763 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7765 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
7767 * tracepoint.c (eval_result_type): Change prototype.
7768 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7770 2015-09-15 Pedro Alves <palves@redhat.com>
7772 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7773 Check whether to report exec events instead of checking whether
7774 multiprocess is enabled.
7776 2015-09-15 Pedro Alves <palves@redhat.com>
7779 * remote-utils.c (prepare_resume_reply): Merge
7780 TARGET_WAITKIND_VFORK_DONE switch case with the
7781 TARGET_WAITKIND_FORKED case.
7783 2015-09-15 Yao Qi <yao.qi@linaro.org>
7785 * server.c (handle_query): Check string comparison using
7786 "else if" instead of "if".
7788 2015-09-15 Yao Qi <yao.qi@linaro.org>
7790 * server.c (vCont_supported): New global variable.
7791 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7792 matches. Append ";vContSupported+" to own_buf.
7793 (handle_v_requests): Append ";s;S" to own_buf if target supports
7794 hardware single step or vCont_supported is false.
7795 (capture_main): Set vCont_supported to zero.
7797 2015-09-15 Yao Qi <yao.qi@linaro.org>
7799 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7801 (linux_supports_hardware_single_step): ... New function.
7802 (linux_target_ops): Update.
7803 * lynx-low.c (lynx_target_ops): Set field
7804 supports_hardware_single_step to target_can_do_hardware_single_step.
7805 * nto-low.c (nto_target_ops): Likewise.
7806 * spu-low.c (spu_target_ops): Likewise.
7807 * win32-low.c (win32_target_ops): Likewise.
7808 * target.c (target_can_do_hardware_single_step): New function.
7809 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7810 Remove. <supports_hardware_single_step>: New field.
7811 (target_supports_conditional_breakpoints): Remove.
7812 (target_supports_hardware_single_step): New macro.
7813 (target_can_do_hardware_single_step): Declare.
7814 * server.c (handle_query): Use target_supports_hardware_single_step
7815 instead of target_supports_conditional_breakpoints.
7817 2015-09-15 Yao Qi <yao.qi@linaro.org>
7819 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7821 (struct linux_target_ops the_low_target): Install
7822 aarch64_linux_siginfo_fixup.
7824 2015-09-11 Don Breazeal <donb@codesourcery.com>
7825 Luis Machado <lgustavo@codesourcery.com>
7827 * linux-low.c (linux_mourn): Static declaration.
7828 (linux_arch_setup): Move in front of
7829 handle_extended_wait.
7830 (linux_arch_setup_thread): New function.
7831 (handle_extended_wait): Handle exec events. Call
7832 linux_arch_setup_thread. Make event_lwp argument a
7833 pointer-to-a-pointer.
7834 (check_zombie_leaders): Do not check stopped threads.
7835 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7836 (linux_low_filter_event): Add lwp and thread for exec'ing
7837 non-leader thread if leader thread has been deleted.
7838 Refactor code into linux_arch_setup_thread and call it.
7839 Pass child lwp pointer by reference to handle_extended_wait.
7840 (linux_wait_for_event_filtered): Update comment.
7841 (linux_wait_1): Prevent clobbering exec event status.
7842 (linux_supports_exec_events): New function.
7843 (linux_target_ops) <supports_exec_events>: Initialize new member.
7844 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7846 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7847 * server.c (report_exec_events): New global variable.
7848 (handle_query): Handle qSupported query for exec-events feature.
7849 (captured_main): Initialize report_exec_events.
7850 * server.h (report_exec_events): Declare new global variable.
7851 * target.h (struct target_ops) <supports_exec_events>: New
7853 (target_supports_exec_events): New macro.
7854 * win32-low.c (win32_target_ops) <supports_exec_events>:
7855 Initialize new member.
7857 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7859 * linux-low.c (linux_low_enable_btrace): Remove.
7860 (linux_target_ops): Replace linux_low_enable_btrace with
7861 linux_enable_btrace.
7863 2015-09-03 Yao Qi <yao.qi@linaro.org>
7865 * linux-aarch64-low.c (aarch64_insert_point): Call
7866 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7869 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7871 * linux-low.c (check_stopped_by_breakpoint): Use
7872 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7874 2015-08-27 Pedro Alves <palves@redhat.com>
7876 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7878 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7880 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7881 the XNEW-family equivalent.
7882 (compile_bytecodes): Likewise.
7883 * dll.c (loaded_dll): Likewise.
7884 * event-loop.c (append_callback_event): Likewise.
7885 (create_file_handler): Likewise.
7886 (create_file_event): Likewise.
7887 * hostio.c (handle_open): Likewise.
7888 * inferiors.c (add_thread): Likewise.
7889 (add_process): Likewise.
7890 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7891 * linux-arm-low.c (arm_new_process): Likewise.
7892 (arm_new_thread): Likewise.
7893 * linux-low.c (add_to_pid_list): Likewise.
7894 (linux_add_process): Likewise.
7895 (handle_extended_wait): Likewise.
7896 (add_lwp): Likewise.
7897 (enqueue_one_deferred_signal): Likewise.
7898 (enqueue_pending_signal): Likewise.
7899 (linux_resume_one_lwp_throw): Likewise.
7900 (linux_resume_one_thread): Likewise.
7901 (linux_read_memory): Likewise.
7902 (linux_write_memory): Likewise.
7903 * linux-mips-low.c (mips_linux_new_process): Likewise.
7904 (mips_linux_new_thread): Likewise.
7905 (mips_add_watchpoint): Likewise.
7906 * linux-x86-low.c (initialize_low_arch): Likewise.
7907 * lynx-low.c (lynx_add_process): Likewise.
7908 * mem-break.c (set_raw_breakpoint_at): Likewise.
7909 (set_breakpoint): Likewise.
7910 (add_condition_to_breakpoint): Likewise.
7911 (add_commands_to_breakpoint): Likewise.
7912 (clone_agent_expr): Likewise.
7913 (clone_one_breakpoint): Likewise.
7914 * regcache.c (new_register_cache): Likewise.
7915 * remote-utils.c (look_up_one_symbol): Likewise.
7916 * server.c (queue_stop_reply): Likewise.
7917 (start_inferior): Likewise.
7918 (queue_stop_reply_callback): Likewise.
7919 (handle_target_event): Likewise.
7920 * spu-low.c (fetch_ppc_memory): Likewise.
7921 (store_ppc_memory): Likewise.
7922 * target.c (set_target_ops): Likewise.
7923 * thread-db.c (thread_db_load_search): Likewise.
7924 (try_thread_db_load_1): Likewise.
7925 * tracepoint.c (add_tracepoint): Likewise.
7926 (add_tracepoint_action): Likewise.
7927 (create_trace_state_variable): Likewise.
7928 (cmd_qtdpsrc): Likewise.
7929 (cmd_qtro): Likewise.
7930 (add_while_stepping_state): Likewise.
7931 * win32-low.c (child_add_thread): Likewise.
7932 (get_image_name): Likewise.
7934 2015-08-25 Yao Qi <yao.qi@linaro.org>
7936 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7938 2015-08-25 Yao Qi <yao.qi@linaro.org>
7940 * Makefile.in (aarch64-linux.o): New rule.
7941 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7943 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7944 (aarch64_init_debug_reg_state): Make it extern.
7945 (aarch64_linux_prepare_to_resume): Remove.
7947 2015-08-25 Yao Qi <yao.qi@linaro.org>
7949 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7950 lwp_arch_private_info and ptid_of_lwp.
7952 2015-08-25 Yao Qi <yao.qi@linaro.org>
7954 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7955 Find proc_info by find_process_pid. All callers updated.
7957 2015-08-25 Yao Qi <yao.qi@linaro.org>
7959 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7961 (debug_reg_change_callback): Remove.
7962 (aarch64_notify_debug_reg_change): Remove.
7964 2015-08-25 Yao Qi <yao.qi@linaro.org>
7966 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7967 Call current_lwp_ptid.
7969 2015-08-25 Yao Qi <yao.qi@linaro.org>
7971 * linux-aarch64-low.c (debug_reg_change_callback): Use
7974 2015-08-25 Yao Qi <yao.qi@linaro.org>
7976 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7978 2015-08-25 Yao Qi <yao.qi@linaro.org>
7980 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7982 2015-08-25 Yao Qi <yao.qi@linaro.org>
7984 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7987 2015-08-25 Yao Qi <yao.qi@linaro.org>
7989 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7991 (debug_reg_change_callback): Remove argument entry and add argument
7992 lwp. Remove local variable thread. Don't print thread id in the
7993 debugging output. Don't check whether pid of thread equals to pid.
7994 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7995 iterate_over_lwps instead find_inferior.
7997 2015-08-24 Pedro Alves <palves@redhat.com>
7999 * inferiors.c (get_first_process): New function.
8000 * inferiors.h (get_first_process): New declaration.
8001 * remote-utils.c (read_ptid): Default to the first process in the
8002 list, instead of to the current thread's process.
8004 2015-08-24 Pedro Alves <palves@redhat.com>
8006 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8007 * event-loop.c: Likewise.
8008 * remote-utils.c: Likewise.
8009 * tracepoint.c: Likewise.
8011 2015-08-24 Pedro Alves <palves@redhat.com>
8013 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8016 2015-08-21 Pedro Alves <palves@redhat.com>
8018 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8019 instead of literal 1.
8021 2015-08-21 Pedro Alves <palves@redhat.com>
8023 * tdesc.c (default_description): Explicitly zero-initialize.
8025 2015-08-21 Pedro Alves <palves@redhat.com>
8028 * inferiors.c (remove_thread): Discard any pending stop reply for
8030 * server.c (remove_all_on_match_pid): Rename to ...
8031 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8033 (discard_queued_stop_replies): Change parameter to a ptid. Now
8035 (handle_v_kill, kill_inferior_callback, captured_main)
8036 (process_serial_event): Adjust.
8037 * server.h (discard_queued_stop_replies): Declare.
8039 2015-08-21 Pedro Alves <palves@redhat.com>
8041 * linux-low.c (wait_for_sigstop): Always switch to no thread
8042 selected if the previously current thread dies.
8043 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8044 process instead of the current thread's.
8045 * remote-utils.c (input_interrupt): Don't check if there's no
8047 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8048 current thread to the general thread fails, error out.
8049 (handle_qxfer_auxv, handle_qxfer_libraries)
8050 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8051 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8052 (handle_query): Check if there's a thread selected instead of
8053 checking whether there's any thread in the thread list.
8054 (handle_qxfer_threads, handle_qxfer_btrace)
8055 (handle_qxfer_btrace_conf): Don't error out early if there's no
8056 thread in the thread list.
8057 (handle_v_cont, myresume): Don't set the current thread to the
8059 (process_serial_event) <Hg handling>: Also set thread_id if the
8060 previous general thread is still alive.
8061 (process_serial_event) <g/G handling>: If setting the current
8062 thread to the general thread fails, error out.
8063 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8064 thread's lwp instead of the current thread's.
8065 * target.c (set_desired_thread): If the desired thread was not
8066 found, leave the current thread pointing to NULL. Return an int
8067 (boolean) indicating success.
8068 * target.h (set_desired_thread): Change return type to int.
8070 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8072 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8073 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8075 (ps_get_thread_area): New function.
8077 2015-08-19 Gary Benson <gbenson@redhat.com>
8079 * hostio.c (handle_pread): Do not attempt to read more data
8080 than hostio_reply_with_data can fit in a packet.
8082 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8084 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8086 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8088 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8090 2015-08-06 Pedro Alves <palves@redhat.com>
8092 * tracepoint.c (expr_eval_result): Now an int.
8094 2015-08-06 Pedro Alves <palves@redhat.com>
8096 * gdbthread.h (struct regcache): Forward declare.
8097 (struct thread_info) <regcache_data>: Now a struct regcache
8099 * inferiors.c (inferior_regcache_data)
8100 (set_inferior_regcache_data): Now work with struct regcache
8102 * inferiors.h (struct regcache): Forward declare.
8103 (inferior_regcache_data, set_inferior_regcache_data): Now work
8104 with struct regcache pointers.
8105 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8106 (free_register_cache_thread): Remove struct regcache pointer
8109 2015-08-06 Pedro Alves <palves@redhat.com>
8111 * server.c (captured_main): On error, print the exception message
8112 to stderr, and if run_once is set, throw a quit.
8114 2015-08-06 Pedro Alves <palves@redhat.com>
8116 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8119 2015-08-06 Pedro Alves <palves@redhat.com>
8121 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8122 reading beyond the passed in buffer length.
8124 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8126 * tracepoint.c (symbol_list) <required>: Remove.
8128 2015-08-06 Pedro Alves <palves@redhat.com>
8130 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8131 count if stopping and suspending threads.
8132 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8133 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8134 (linux_detach): Complete an ongoing step-over.
8135 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8137 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8138 (linux_wait_1): If passing a signal to the inferior after
8139 finishing a step-over, unsuspend and re-resume all lwps. If we
8140 see a single-step event but the thread should be continuing, don't
8141 pass the trap to gdb.
8142 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8143 internal_error instead of gdb_assert.
8144 (enqueue_pending_signal): New function.
8145 (check_ptrace_stopped_lwp_gone): Add debug output.
8146 (start_step_over): Use internal_error instead of gdb_assert.
8147 (complete_ongoing_step_over): New function.
8148 (linux_resume_one_thread): Don't resume a suspended thread.
8149 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8152 2015-08-06 Pedro Alves <palves@redhat.com>
8154 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8155 (linux_thread_alive): Use lwp_is_marked_dead.
8156 (extended_event_reported): Delete.
8157 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8158 instead of extended_event_reported.
8159 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8161 (lwp_is_marked_dead): New function.
8162 (lwp_running): Use lwp_is_marked_dead.
8163 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8166 2015-08-06 Pedro Alves <palves@redhat.com>
8168 * linux-low.c (linux_wait_1): Move fork event output out of the
8169 !report_to_gdb check. Pass event_child->waitstatus to
8170 target_waitstatus_to_string instead of ourstatus.
8172 2015-08-04 Yao Qi <yao.qi@linaro.org>
8174 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8175 if current_thread is 32 bit.
8177 2015-08-04 Yao Qi <yao.qi@linaro.org>
8179 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8180 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8181 * server.c (extended_protocol): Remove "static".
8182 * server.h (extended_protocol): Declare it.
8184 2015-08-04 Yao Qi <yao.qi@linaro.org>
8186 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8187 both aarch64 and aarch32.
8188 (aarch64_set_pc): Likewise.
8190 2015-08-04 Yao Qi <yao.qi@linaro.org>
8192 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8193 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8194 arm-with-neon.xml to srv_xmlfiles.
8195 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8196 (is_64bit_tdesc): New function.
8197 (aarch64_linux_read_description): New function.
8198 (aarch64_arch_setup): Call aarch64_linux_read_description.
8199 (regs_info): Rename to regs_info_aarch64.
8200 (aarch64_regs_info): Return right regs_info.
8201 (initialize_low_arch): Call initialize_low_arch_aarch32.
8203 2015-08-04 Yao Qi <yao.qi@linaro.org>
8205 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8206 * linux-aarch32-low.c: New file.
8207 * linux-aarch32-low.h: New file.
8208 * linux-arm-low.c (arm_fill_gregset): Move it to
8209 linux-aarch32-low.c.
8210 (arm_store_gregset): Likewise.
8211 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8212 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8213 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8214 (regs_info): Rename to regs_info_arm.
8215 (arm_regs_info): Return regs_info_aarch32 if
8216 have_ptrace_getregset is 1 and target description is
8217 arm_with_neon or arm_with_vfpv3.
8218 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8219 Call initialize_low_arch_aarch32 instead.
8221 2015-08-04 Yao Qi <yao.qi@linaro.org>
8223 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8224 * linux-low.c: ... here.
8225 * linux-low.h (have_ptrace_getregset): Declare it.
8227 2015-08-04 Pedro Alves <palves@redhat.com>
8229 * thread-db.c (struct thread_db): Use new typedefs.
8230 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8232 (disable_thread_event_reporting): Cast result of dlsym to
8233 destination function pointer type.
8234 (thread_db_mourn): Use td_ta_delete_ftype.
8236 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8238 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8240 (CDX_BREAKPOINT): Define for R2.
8241 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8242 (the_low_target): Add comments.
8244 2015-07-30 Yao Qi <yao.qi@linaro.org>
8246 * linux-arm-low.c (arm_hwcap): Remove it.
8247 (arm_read_description): New local variable arm_hwcap. Don't
8248 set arm_hwcap to zero.
8250 2015-07-30 Yao Qi <yao.qi@linaro.org>
8252 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8253 Use regcache->tdesc instead.
8254 (arm_store_wmmxregset): Likewise.
8255 (arm_fill_vfpregset): Likewise.
8256 (arm_store_vfpregset): Likewise.
8258 2015-07-30 Yao Qi <yao.qi@linaro.org>
8260 * linux-arm-low.c: Include arch/arm.h.
8261 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8262 (arm_store_gregset): Likewise.
8264 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8266 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8267 ptrace's 4th parameter.
8269 2015-07-27 Yao Qi <yao.qi@linaro.org>
8271 * configure.srv (case aarch64*-*-linux*): Don't set
8274 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8276 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8278 * linux-arm-low.c: Likewise.
8279 * linux-cris-low.c: Likewise.
8280 * linux-crisv32-low.c: Likewise.
8281 * linux-low.c: Likewise.
8282 * linux-m68k-low.c: Likewise.
8283 * linux-mips-low.c: Likewise.
8284 * linux-nios2-low.c: Likewise.
8285 * linux-s390-low.c: Likewise.
8286 * linux-sparc-low.c: Likewise.
8287 * linux-tic6x-low.c: Likewise.
8288 * linux-tile-low.c: Likewise.
8289 * linux-x86-low.c: Likewise.
8291 2015-07-24 Pedro Alves <palves@redhat.com>
8293 * config.in: Regenerate.
8294 * configure: Regenerate.
8296 2015-07-24 Pedro Alves <palves@redhat.com>
8298 * acinclude.m4: Include ../ptrace.m4.
8299 * configure.ac: Call GDB_AC_PTRACE.
8300 * config.in, configure: Regenerate.
8302 2015-07-24 Yao Qi <yao.qi@linaro.org>
8304 * linux-low.c (linux_create_inferior): Remove setting to
8305 proc->priv->new_inferior.
8306 (linux_attach): Likewise.
8307 (linux_low_filter_event): Likewise.
8308 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8310 2015-07-24 Yao Qi <yao.qi@linaro.org>
8312 * linux-low.c (linux_arch_setup): New function.
8313 (linux_low_filter_event): If proc->tdesc is NULL and
8314 proc->attached is true, call the_low_target.arch_setup.
8315 Otherwise, keep status pending, and return.
8316 (linux_resume_one_lwp_throw): Don't call get_pc if
8317 thread->while_stepping isn't NULL. Don't call
8318 get_thread_regcache if proc->tdesc is NULL.
8319 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8320 (linux_target_ops): Install arch_setup.
8321 * server.c (start_inferior): Call the_target->arch_setup.
8322 * target.h (struct target_ops) <arch_setup>: New field.
8323 (target_arch_setup): New marco.
8324 * lynx-low.c (lynx_target_ops): Update.
8325 * nto-low.c (nto_target_ops): Update.
8326 * spu-low.c (spu_target_ops): Update.
8327 * win32-low.c (win32_target_ops): Update.
8329 2015-07-24 Yao Qi <yao.qi@linaro.org>
8331 * linux-low.c (linux_add_process): Don't set
8332 proc->priv->new_inferior.
8333 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8334 (linux_attach): Likewise.
8336 2015-07-24 Yao Qi <yao.qi@linaro.org>
8338 * server.c (start_inferior): Code refactor.
8340 2015-07-24 Yao Qi <yao.qi@linaro.org>
8342 * server.c (process_serial_event): Set general_thread.
8344 2015-07-21 Yao Qi <yao.qi@linaro.org>
8346 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8347 aarch64_linux_get_debug_reg_capacity.
8349 2015-07-17 Yao Qi <yao.qi@linaro.org>
8351 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8352 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8353 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8354 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8355 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8356 (AARCH64_HWP_ALIGNMENT): Likewise.
8357 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8358 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8359 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8360 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8361 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8362 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8363 (struct aarch64_debug_reg_state): Likewise.
8364 (struct arch_lwp_info): Likewise.
8365 (aarch64_align_watchpoint): Likewise.
8366 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8367 (aarch64_watchpoint_length): Likewise.
8368 (aarch64_point_encode_ctrl_reg): Likewise
8369 (aarch64_point_is_aligned): Likewise.
8370 (aarch64_align_watchpoint): Likewise.
8371 (aarch64_linux_set_debug_regs):
8372 (aarch64_dr_state_insert_one_point): Likewise.
8373 (aarch64_dr_state_remove_one_point): Likewise.
8374 (aarch64_handle_breakpoint): Likewise.
8375 (aarch64_handle_aligned_watchpoint): Likewise.
8376 (aarch64_handle_unaligned_watchpoint): Likewise.
8377 (aarch64_handle_watchpoint): Likewise.
8379 2015-07-17 Yao Qi <yao.qi@linaro.org>
8381 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8382 and don't aarch64_get_debug_reg_state. All callers update.
8383 (aarch64_handle_aligned_watchpoint): Likewise.
8384 (aarch64_handle_unaligned_watchpoint): Likewise.
8385 (aarch64_handle_watchpoint): Likewise.
8386 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8387 (aarch64_remove_point): Likewise.
8389 2015-07-17 Yao Qi <yao.qi@linaro.org>
8391 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8393 (aarch64_handle_unaligned_watchpoint): Likewise.
8395 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8397 Revert the previous 3 commits:
8398 Move gdb_regex* to common/
8399 Move linux_find_memory_regions_full & co.
8400 gdbserver build-id attribute generator
8402 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8403 Jan Kratochvil <jan.kratochvil@redhat.com>
8405 gdbserver build-id attribute generator.
8406 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8407 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8408 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8410 (get_dynamic): Use find_pdhr to traverse program headers.
8411 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8412 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8413 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8414 (get_hex_build_id): New.
8415 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8416 to reply XML document.
8418 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8419 Jan Kratochvil <jan.kratochvil@redhat.com>
8421 * target.c: Include target/target-utils.h and fcntl.h.
8422 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8423 (target_fileio_read_stralloc): New functions.
8425 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8427 * Makefile.in (OBS): Add gdb_regex.o.
8429 * config.in: Rebuilt.
8430 * configure: Rebuilt.
8432 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8433 Jan Kratochvil <jan.kratochvil@redhat.com>
8435 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8436 * Makefile.in (OBS): Add target-utils.o.
8437 (linux-maps.o, target-utils.o): New.
8438 * configure.srv (srv_linux_obj): Add linux-maps.o.
8440 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8442 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8444 (the_low_target): Install it.
8446 2015-07-14 Pedro Alves <palves@redhat.com>
8448 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8449 Instead, ignore ECHILD, and throw an error for other errnos.
8451 2015-07-10 Pedro Alves <palves@redhat.com>
8453 * event-loop.c (struct callback_event) <data>: Change type to
8454 gdb_client_data instance instead of gdb_client_data pointer.
8455 (append_callback_event): Adjust.
8457 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8459 * linux-aarch64-low.c: Add comments for each linux_target_ops
8460 method. Remove comments already covered in target_ops and
8461 linux_target_ops definitions.
8462 (the_low_target): Add comments for each unimplemented method.
8464 2015-07-09 Yao Qi <yao.qi@linaro.org>
8466 * linux-aarch64-low.c (aarch64_regmap): Remove.
8467 (aarch64_usrregs_info): Remove.
8468 (regs_info): Set field usrregs to NULL.
8470 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8472 * linux-low.c: Include "rsp-low.h"
8473 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8474 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8475 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8476 (handle_btrace_enable_pt): New.
8477 (handle_btrace_general_set): Support "pt".
8478 (handle_btrace_conf_general_set): Support "pt:size".
8480 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8482 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8485 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8487 * linux-aarch64-low.c: Remove comment about endianness.
8488 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8489 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8492 2015-06-24 Gary Benson <gbenson@redhat.com>
8494 * linux-i386-ipa.c (stdint.h): Do not include.
8495 * lynx-i386-low.c (stdint.h): Likewise.
8496 * lynx-ppc-low.c (stdint.h): Likewise.
8497 * mem-break.c (stdint.h): Likewise.
8498 * thread-db.c (stdint.h): Likewise.
8499 * tracepoint.c (stdint.h): Likewise.
8500 * win32-low.c (stdint.h): Likewise.
8502 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8504 * server.c (write_qxfer_response): Update call to
8505 remote_escape_output.
8507 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8508 Jan Kratochvil <jan.kratochvil@redhat.com>
8510 Merge multiple hex conversions.
8511 * gdbreplay.c (tohex): Rename to 'fromhex'.
8512 (logchar): Use fromhex.
8514 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8516 * server.c (handle_qxfer_libraries): Set `version' attribute for
8519 2015-06-10 Gary Benson <gbenson@redhat.com>
8521 * target.h (struct target_ops) <multifs_open>: New field.
8522 <multifs_unlink>: Likewise.
8523 <multifs_readlink>: Likewise.
8524 * linux-low.c (nat/linux-namespaces.h): New include.
8525 (linux_target_ops): Initialize the_target->multifs_open,
8526 the_target->multifs_unlink and the_target->multifs_readlink.
8527 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8528 * hostio.c (hostio_fs_pid): New static variable.
8529 (hostio_handle_new_gdb_connection): New function.
8530 (handle_setfs): Likewise.
8531 (handle_open): Use the_target->multifs_open as appropriate.
8532 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8533 (handle_readlink): Use the_target->multifs_readlink as
8535 (handle_vFile): Handle vFile:setfs packets.
8536 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8537 after target_handle_new_gdb_connection.
8539 2015-06-10 Gary Benson <gbenson@redhat.com>
8541 * configure.ac (AC_CHECK_FUNCS): Add setns.
8542 * config.in: Regenerate.
8543 * configure: Likewise.
8544 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8545 (linux-namespaces.o): New rule.
8546 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8548 2015-06-09 Gary Benson <gbenson@redhat.com>
8550 * hostio.c (handle_open): Process mode argument with
8551 fileio_to_host_mode.
8553 2015-06-01 Yao Qi <yao.qi@linaro.org>
8555 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8556 * linux-x86-low.c: Likewise.
8558 2015-05-28 Don Breazeal <donb@codesourcery.com>
8560 * linux-low.c (handle_extended_wait): Initialize
8561 thread_info.last_resume_kind for new fork children.
8563 2015-05-15 Pedro Alves <palves@redhat.com>
8565 * target.h (target_handle_new_gdb_connection): Rewrite using if
8566 wrapped in do/while.
8568 2015-05-14 Joel Brobecker <brobecker@adacore.com>
8570 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8571 * configure, config.in: Regenerate.
8572 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8575 2015-05-12 Don Breazeal <donb@codesourcery.com>
8577 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8578 PTRACE_EVENT_VFORK_DONE.
8579 (linux_low_ptrace_options, extended_event_reported): Add vfork
8581 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8582 and "vforkdone" for RSP 'T' Stop Reply Packet.
8583 * server.h (report_vfork_events): Declare
8586 2015-05-12 Don Breazeal <donb@codesourcery.com>
8588 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8589 (the_low_target) <new_fork>: Initialize new member.
8590 * linux-arm-low.c (arm_new_fork): New function.
8591 (the_low_target) <new_fork>: Initialize new member.
8592 * linux-low.c (handle_extended_wait): Call new target function
8594 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8595 * linux-mips-low.c (mips_add_watchpoint): New function
8596 extracted from mips_insert_point.
8597 (the_low_target) <new_fork>: Initialize new member.
8598 (mips_linux_new_fork): New function.
8599 (mips_insert_point): Call mips_add_watchpoint.
8600 * linux-x86-low.c (x86_linux_new_fork): New function.
8601 (the_low_target) <new_fork>: Initialize new member.
8603 2015-05-12 Don Breazeal <donb@codesourcery.com>
8605 * linux-low.c (handle_extended_wait): Implement return value,
8606 rename argument 'event_child' to 'event_lwp', handle
8607 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8608 (linux_low_ptrace_options): New function.
8609 (linux_low_filter_event): Call linux_low_ptrace_options,
8610 use different argument fo linux_enable_event_reporting,
8611 use return value from handle_extended_wait.
8612 (extended_event_reported): New function.
8613 (linux_wait_1): Call extended_event_reported and set
8614 status to report fork events.
8615 (linux_write_memory): Add pid to debug message.
8616 (reset_lwp_ptrace_options_callback): New function.
8617 (linux_handle_new_gdb_connection): New function.
8618 (linux_target_ops): Initialize new structure member.
8619 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8620 * lynx-low.c: Initialize new structure member.
8621 * remote-utils.c (prepare_resume_reply): Implement stop reason
8622 "fork" for "T" stop message.
8623 * server.c (handle_query): Call handle_new_gdb_connection.
8624 * server.h (report_fork_events): Declare global flag.
8625 * target.h (struct target_ops) <handle_new_gdb_connection>:
8627 (target_handle_new_gdb_connection): New macro.
8628 * win32-low.c: Initialize new structure member.
8630 2015-05-12 Don Breazeal <donb@codesourcery.com>
8632 * mem-break.c (APPEND_TO_LIST): Define macro.
8633 (clone_agent_expr): New function.
8634 (clone_one_breakpoint): New function.
8635 (clone_all_breakpoints): New function.
8636 * mem-break.h: Declare new functions.
8638 2015-05-12 Don Breazeal <donb@codesourcery.com>
8640 * linux-low.c (linux_supports_fork_events): New function.
8641 (linux_supports_vfork_events): New function.
8642 (linux_target_ops): Initialize new structure members.
8643 (initialize_low): Call linux_check_ptrace_features.
8644 * lynx-low.c (lynx_target_ops): Initialize new structure
8646 * server.c (report_fork_events, report_vfork_events):
8648 (handle_query): Add new features to qSupported packet and
8650 (captured_main): Initialize new global variables.
8651 * target.h (struct target_ops) <supports_fork_events>:
8653 <supports_vfork_events>: New member.
8654 (target_supports_fork_events): New macro.
8655 (target_supports_vfork_events): New macro.
8656 * win32-low.c (win32_target_ops): Initialize new structure
8659 2015-05-12 Gary Benson <gbenson@redhat.com>
8661 * server.c (handle_qxfer_exec_file): Use current process
8664 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8666 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8667 Remove HAVE_PTRACE_GETREGS conditionals.
8668 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8669 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8671 2015-05-08 Yao Qi <yao.qi@linaro.org>
8673 * linux-low.c (linux_supports_conditional_breakpoints): New
8675 (linux_target_ops): Install new target method.
8676 * lynx-low.c (lynx_target_ops): Install NULL hook for
8677 supports_conditional_breakpoints.
8678 * nto-low.c (nto_target_ops): Likewise.
8679 * spu-low.c (spu_target_ops): Likewise.
8680 * win32-low.c (win32_target_ops): Likewise.
8681 * server.c (handle_query): Check
8682 target_supports_conditional_breakpoints.
8683 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8685 (target_supports_conditional_breakpoints): New macro.
8687 2015-05-06 Pedro Alves <palves@redhat.com>
8690 * server.c (start_inferior): If the process exits, mourn it.
8692 2015-04-21 Gary Benson <gbenson@redhat.com>
8694 * hostio.c (fileio_open_flags_to_host): Factored out to
8695 fileio_to_host_openflags in common/fileio.c. Single use
8698 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8700 * linux-xtensa-low.c (xtensa_fill_gregset)
8701 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8704 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8706 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8707 (regs_info): Replace usrregs pointer with NULL.
8709 2015-04-17 Gary Benson <gbenson@redhat.com>
8711 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8712 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8713 * server.c (handle_qxfer_exec_file): New function.
8714 (qxfer_packets): Add exec-file entry.
8715 (handle_query): Report qXfer:exec-file:read as supported packet.
8717 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8719 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8721 2015-04-09 Gary Benson <gbenson@redhat.com>
8723 * hostio-errno.c (errno_to_fileio_error): Remove function.
8724 Update caller to use remote_fileio_to_fio_error.
8726 2015-04-09 Yao Qi <yao.qi@linaro.org>
8728 * linux-low.c (linux_insert_point): Call
8729 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8730 (linux_remove_point): Call remove_memory_breakpoint if type is
8732 * linux-x86-low.c (x86_insert_point): Don't call
8733 insert_memory_breakpoint.
8734 (x86_remove_point): Don't call remove_memory_breakpoint.
8736 2015-04-01 Pedro Alves <palves@redhat.com>
8737 Cleber Rosa <crosa@redhat.com>
8739 * server.c (gdbserver_usage): Reorganize and extend the usage
8742 2015-03-24 Pedro Alves <palves@redhat.com>
8744 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8745 output. Also dump TRAP_TRACE.
8746 (linux_low_filter_event): In debug output, distinguish a
8747 resume_stop SIGSTOP from a delayed SIGSTOP.
8749 2015-03-24 Gary Benson <gbenson@redhat.com>
8751 * linux-x86-low.c (x86_linux_new_thread): Moved to
8753 (x86_linux_prepare_to_resume): Likewise.
8755 2015-03-24 Gary Benson <gbenson@redhat.com>
8757 * Makefile.in (x86-linux-dregs.o): New rule.
8758 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8759 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8760 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8761 (x86_linux_dr_get): Likewise.
8762 (x86_linux_dr_set): Likewise.
8763 (update_debug_registers_callback): Likewise.
8764 (x86_linux_dr_set_addr): Likewise.
8765 (x86_linux_dr_get_addr): Likewise.
8766 (x86_linux_dr_set_control): Likewise.
8767 (x86_linux_dr_get_control): Likewise.
8768 (x86_linux_dr_get_status): Likewise.
8769 (x86_linux_update_debug_registers): Likewise.
8771 2015-03-24 Gary Benson <gbenson@redhat.com>
8773 * linux-x86-low.c (x86_linux_update_debug_registers):
8774 New function, factored out from...
8775 (x86_linux_prepare_to_resume): ...this.
8777 2015-03-24 Gary Benson <gbenson@redhat.com>
8779 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8780 (x86_linux_dr_set): Likewise.
8781 (update_debug_registers_callback): Likewise.
8782 (x86_linux_dr_set_addr): Likewise.
8783 (x86_linux_dr_get_addr): Likewise.
8784 (x86_linux_dr_set_control): Likewise.
8785 (x86_linux_dr_get_control): Likewise.
8786 (x86_linux_dr_get_status): Likewise.
8787 (x86_linux_prepare_to_resume): Likewise.
8789 2015-03-24 Gary Benson <gbenson@redhat.com>
8791 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8792 Use perror_with_name. Pass string through gettext.
8793 (x86_linux_dr_set): Likewise.
8795 2015-03-24 Gary Benson <gbenson@redhat.com>
8797 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8798 (x86_linux_dr_set_addr): ...this.
8799 (x86_dr_low_get_addr): Rename to...
8800 (x86_linux_dr_get_addr): ...this.
8801 (x86_dr_low_set_control): Rename to...
8802 (x86_linux_dr_set_control): ...this.
8803 (x86_dr_low_get_control): Rename to...
8804 (x86_linux_dr_get_control): ...this.
8805 (x86_dr_low_get_status): Rename to...
8806 (x86_linux_dr_get_status): ...this.
8807 (x86_dr_low): Update with new function names.
8809 2015-03-24 Gary Benson <gbenson@redhat.com>
8811 * Makefile.in (x86-linux.o): New rule.
8812 * configure.srv: Add x86-linux.o to relevant targets.
8813 * linux-low.c (lwp_set_arch_private_info): New function.
8814 (lwp_arch_private_info): Likewise.
8815 * linux-x86-low.c: Include nat/x86-linux.h.
8816 (arch_lwp_info): Removed structure.
8817 (update_debug_registers_callback):
8818 Use lwp_set_debug_registers_changed.
8819 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8820 and lwp_set_debug_registers_changed.
8821 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8823 2015-03-24 Gary Benson <gbenson@redhat.com>
8825 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8826 * linux-arm-low.c (arm_new_thread): Likewise.
8827 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8828 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8829 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8830 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8832 2015-03-24 Gary Benson <gbenson@redhat.com>
8834 * linux-low.c (ptid_of_lwp): New function.
8835 (lwp_is_stopped): Likewise.
8836 (lwp_stop_reason): Likewise.
8837 * linux-x86-low.c (update_debug_registers_callback):
8839 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8842 2015-03-24 Gary Benson <gbenson@redhat.com>
8844 * linux-low.h (linux_stop_lwp): Remove declaration.
8846 2015-03-24 Gary Benson <gbenson@redhat.com>
8848 * linux-low.h: Include nat/linux-nat.h.
8849 * linux-low.c (iterate_over_lwps_args): New structure.
8850 (iterate_over_lwps_filter): New function.
8851 (iterate_over_lwps): Likewise.
8852 * linux-x86-low.c (update_debug_registers_callback):
8853 Update signature to what iterate_over_lwps expects.
8854 Remove PID check that iterate_over_lwps now performs.
8855 (x86_dr_low_set_addr): Use iterate_over_lwps.
8856 (x86_dr_low_set_control): Likewise.
8858 2015-03-24 Gary Benson <gbenson@redhat.com>
8860 * linux-x86-low.c (x86_debug_reg_state): New function.
8861 (x86_linux_prepare_to_resume): Use the above.
8863 2015-03-24 Gary Benson <gbenson@redhat.com>
8865 * linux-low.c (current_lwp_ptid): New function.
8866 * linux-x86-low.c: Include nat/linux-nat.h.
8867 (x86_dr_low_get_addr): Use current_lwp_ptid.
8868 (x86_dr_low_get_control): Likewise.
8869 (x86_dr_low_get_status): Likewise.
8871 2015-03-20 Pedro Alves <palves@redhat.com>
8873 * tracepoint.c (cmd_qtstatus): Make "str" const.
8875 2015-03-20 Pedro Alves <palves@redhat.com>
8877 * server.c (handle_general_set): Make "req_str" const.
8879 2015-03-19 Pedro Alves <palves@redhat.com>
8881 * linux-low.c (linux_resume_one_lwp): Rename to ...
8882 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8883 instead call perror_with_name.
8884 (check_ptrace_stopped_lwp_gone): New function.
8885 (linux_resume_one_lwp): Reimplement as wrapper around
8886 linux_resume_one_lwp_throw that swallows errors if the LWP is
8889 2015-03-19 Pedro Alves <palves@redhat.com>
8891 * linux-low.c (count_events_callback, select_event_lwp_callback):
8892 No longer check whether the thread has resume_stop as last resume
8895 2015-03-19 Pedro Alves <palves@redhat.com>
8897 * linux-low.c (count_events_callback, select_event_lwp_callback):
8898 Use the lwp's status_pending_p field, not the thread's.
8900 2015-03-19 Pedro Alves <palves@redhat.com>
8902 * linux-low.c (select_event_lwp_callback): Update comments to
8903 no longer mention SIGTRAP.
8905 2015-03-18 Gary Benson <gbenson@redhat.com>
8907 * server.c (handle_query): Do not report vFile:fstat as supported.
8909 2015-03-11 Gary Benson <gbenson@redhat.com>
8911 * hostio.c (sys/types.h): New include.
8912 (sys/stat.h): Likewise.
8913 (common-remote-fileio.h): Likewise.
8914 (handle_fstat): New function.
8915 (handle_vFile): Handle vFile:fstat packets.
8917 2015-03-11 Gary Benson <gbenson@redhat.com>
8919 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8920 struct stat.st_blocks and struct stat.st_blksize.
8921 * configure: Regenerate.
8922 * config.in: Likewise.
8923 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8924 (OBS): Add common-remote-fileio.o.
8925 (common-remote-fileio.o): New rule.
8927 2015-03-09 Pedro Alves <palves@redhat.com>
8929 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8930 'struct sockaddr' pointer in 'accept' call.
8932 2015-03-09 Pedro Alves <palves@redhat.com>
8935 2015-03-07 Pedro Alves <palves@redhat.com>
8936 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8937 or <winsock2.h> here. Instead include "gdb_socket.h".
8938 (remote_open): Use union gdb_sockaddr_u.
8939 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8940 or <winsock2.h> here. Instead include "gdb_socket.h".
8941 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8942 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8944 (init_named_socket, gdb_agent_helper_thread): Use union
8947 2015-03-07 Pedro Alves <palves@redhat.com>
8949 * configure.ac (build_warnings): Move
8950 -Wdeclaration-after-statement to the C-specific set.
8951 * configure: Regenerate.
8953 2015-03-07 Pedro Alves <palves@redhat.com>
8955 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8956 or <winsock2.h> here. Instead include "gdb_socket.h".
8957 (remote_open): Use union gdb_sockaddr_u.
8958 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8959 or <winsock2.h> here. Instead include "gdb_socket.h".
8960 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8961 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8963 (init_named_socket, gdb_agent_helper_thread): Use union
8966 2015-03-07 Pedro Alves <palves@redhat.com>
8968 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8971 2015-03-06 Yao Qi <yao.qi@linaro.org>
8973 * linux-aarch64-low.c (aarch64_insert_point): Use
8974 show_debug_regs as a boolean.
8975 (aarch64_remove_point): Likewise.
8977 2015-03-05 Pedro Alves <palves@redhat.com>
8979 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8980 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8981 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8982 * nto-low.c (nto_target_ops): Likewise.
8983 * spu-low.c (spu_target_ops): Likewise.
8984 * win32-low.c (win32_target_ops): Likewise.
8986 2015-03-04 Pedro Alves <palves@redhat.com>
8988 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
8989 Decide whether a breakpoint triggered based on the SIGTRAP's
8991 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8992 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
8993 (linux_low_filter_event): Check for breakpoints before checking
8995 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
8997 (linux_stopped_by_sw_breakpoint)
8998 (linux_supports_stopped_by_sw_breakpoint)
8999 (linux_stopped_by_hw_breakpoint)
9000 (linux_supports_stopped_by_hw_breakpoint): New functions.
9001 (linux_target_ops): Install new target methods.
9003 2015-03-04 Pedro Alves <palves@redhat.com>
9005 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9006 * server.c (swbreak_feature, hwbreak_feature): New globals.
9007 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9008 (captured_main): Clear swbreak_feature and hwbreak_feature.
9009 * server.h (swbreak_feature, hwbreak_feature): Declare.
9010 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9011 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9012 supports_stopped_by_hw_breakpoint>: New fields.
9013 (target_supports_stopped_by_sw_breakpoint)
9014 (target_stopped_by_sw_breakpoint)
9015 (target_supports_stopped_by_hw_breakpoint)
9016 (target_stopped_by_hw_breakpoint): Declare.
9018 2015-03-04 Pedro Alves <palves@redhat.com>
9020 enum lwp_stop_reason -> enum target_stop_reason
9021 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9022 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9023 (linux_wait_1, stuck_in_jump_pad_callback)
9024 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9025 (linux_stopped_by_watchpoint):
9026 * linux-low.h (enum lwp_stop_reason): Delete.
9027 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9028 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9030 2015-03-04 Yao Qi <yao.qi@linaro.org>
9032 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9034 2015-03-03 Gary Benson <gbenson@redhat.com>
9036 * hostio.c (handle_vFile): Fix prefix lengths.
9038 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9040 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9043 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9045 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9046 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9047 (clean): Add "rm -f" for above C files.
9048 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9049 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9050 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9051 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9052 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9053 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9054 (init_registers_s390x_vx_linux64)
9055 (init_registers_s390x_tevx_linux64)
9056 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9057 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9059 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9060 (s390_store_vxrs_high): New functions.
9061 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9063 (s390_arch_setup): Add logic for selecting one of the new target
9064 descriptions. Activate the new vector regsets if applicable.
9065 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9066 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9067 and init_registers_s390x_tevx_linux64.
9069 2015-03-01 Pedro Alves <palves@redhat.com>
9071 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9074 2015-02-27 Pedro Alves <palves@redhat.com>
9076 * linux-x86-low.c (u_debugreg_offset): New function.
9077 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9079 2015-02-27 Pedro Alves <palves@redhat.com>
9081 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9082 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9083 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9084 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9085 (ps_lsetfpregs, ps_getpid)
9086 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9087 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9088 (ps_lsetxregs, ps_plog): Declare.
9090 2015-02-27 Pedro Alves <palves@redhat.com>
9092 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9093 IP_AGENT_EXPORT_FUNC.
9094 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9095 IP_AGENT_EXPORT_FUNC.
9096 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9097 (IP_AGENT_EXPORT): Delete.
9098 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9099 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9100 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9101 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9102 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9103 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9104 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9105 (traceframe_read_count, traceframe_write_count)
9106 (traceframes_created, trace_state_variables, get_raw_reg)
9107 (get_trace_state_variable_value, set_trace_state_variable_value)
9108 (ust_loaded, helper_thread_id, cmd_buf): Use
9109 IPA_SYM_EXPORTED_NAME.
9110 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9111 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9112 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9113 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9114 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9115 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9116 EXTERN_C_PUSH/EXTERN_C_POP.
9117 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9118 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9119 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9120 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9121 (traceframe_write_count, traceframe_read_count)
9122 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9123 (about_to_request_buffer_space, get_trace_state_variable_value)
9124 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9125 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9126 EXTERN_C_PUSH/EXTERN_C_POP.
9127 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9128 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9129 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9130 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9131 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9132 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9133 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9134 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9136 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9137 (IP_AGENT_EXPORT_VAR_DECL): Define.
9139 (gdb_agent_get_raw_reg): Declare.
9141 2015-02-27 Tom Tromey <tromey@redhat.com>
9142 Pedro Alves <palves@redhat.com>
9144 Rename symbols whose names are reserved C++ keywords throughout.
9146 2015-02-27 Pedro Alves <palves@redhat.com>
9148 * Makefile.in (COMPILER): New, get it from autoconf.
9149 (CXX): Get from autoconf instead.
9150 (COMPILE.pre): Use COMPILER.
9151 (CC-LD): Rename to ...
9152 (CC_LD): ... this. Use COMPILER.
9153 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9154 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9155 * acinclude.m4: Include build-with-cxx.m4.
9156 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9157 Disable -Werror by default if building in C++ mode.
9158 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9159 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9160 the C++ compiler. Save/restore CXXFLAGS too.
9161 * configure: Regenerate.
9163 2015-02-27 Pedro Alves <palves@redhat.com>
9165 * acinclude.m4: Include libiberty.m4.
9166 * configure.ac: Call libiberty_INIT.
9167 * config.in, configure: Regenerate.
9169 2015-02-26 Pedro Alves <palves@redhat.com>
9171 * linux-low.c (linux_wait_1): When incrementing the PC past a
9172 program breakpoint always use the_low_target.breakpoint_len as
9173 increment, rather than the maximum between that and
9174 the_low_target.decr_pc_after_break.
9176 2015-02-23 Pedro Alves <palves@redhat.com>
9178 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9179 thread was doing a step-over; always adjust the PC if
9180 we stepped over a permanent breakpoint.
9181 (linux_wait_1): If we stepped over breakpoint that was on top of a
9182 permanent breakpoint, manually advance the PC past it.
9184 2015-02-23 Pedro Alves <palves@redhat.com>
9186 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9188 (x86_fill_gregset, x86_store_gregset): Use it when handling
9191 2015-02-20 Pedro Alves <palves@redhat.com>
9193 * thread-db.c: Include "nat/linux-procfs.h".
9194 (thread_db_init): Skip listing new threads if the kernel supports
9195 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9197 2015-02-20 Pedro Alves <palves@redhat.com>
9199 * linux-low.c (status_pending_p_callback): Use ptid_match.
9201 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9203 PR breakpoints/16812
9204 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9205 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9206 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9208 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9210 PR breakpoints/15956
9211 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9213 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9215 * linux-low.c (linux_low_btrace_conf): Print size.
9216 * server.c (handle_btrace_conf_general_set): New.
9217 (hanle_general_set): Call handle_btrace_conf_general_set.
9218 (handle_query): Report Qbtrace-conf:bts:size as supported.
9220 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9222 * linux-low.c (linux_low_enable_btrace): Update parameters.
9223 (linux_low_btrace_conf): New.
9224 (linux_target_ops)<to_btrace_conf>: Initialize.
9225 * server.c (current_btrace_conf): New.
9226 (handle_btrace_enable): Rename to ...
9227 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
9228 to target_enable_btrace. Update comment. Update users.
9229 (handle_qxfer_btrace_conf): New.
9230 (qxfer_packets): Add btrace-conf entry.
9231 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9232 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9233 (target_ops)<read_btrace_conf>: New.
9234 (target_enable_btrace): Update parameters.
9235 (target_read_btrace_conf): New.
9237 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9239 * server.c (handle_btrace_general_set): Remove call to
9240 target_supports_btrace.
9241 (supported_btrace_packets): New.
9242 (handle_query): Call supported_btrace_packets.
9243 * target.h: include btrace-common.h.
9244 (btrace_target_info): Removed.
9245 (supports_btrace, target_supports_btrace): Update parameters.
9247 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9249 * Makefile.in (SFILES): Add common/btrace-common.c.
9250 (OBS): Add common/btrace-common.o.
9251 (btrace-common.o): Add build rules.
9252 * linux-low: Include btrace-common.h.
9253 (linux_low_read_btrace): Use struct btrace_data. Call
9254 btrace_data_init and btrace_data_fini.
9256 2015-02-06 Pedro Alves <palves@redhat.com>
9258 * thread-db.c (find_new_threads_callback): Add debug output.
9260 2015-02-04 Pedro Alves <palves@redhat.com>
9262 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9263 (resume_stopped_resumed_lwps): New function.
9264 (linux_wait_for_event_filtered): Use it.
9266 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9268 * Makefile.in (SFILES): Add linux-personality.c.
9269 (linux-personality.o): New rule.
9270 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9271 list of objects to be built.
9272 * linux-low.c: Include nat/linux-personality.h.
9273 (linux_create_inferior): Remove code to disable address space
9274 randomization (moved to ../nat/linux-personality.c). Create
9275 cleanup to disable address space randomization.
9277 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9279 * Makefile.in (posix-strerror.o): New rule.
9280 (mingw-strerror.o): Likewise.
9281 * configure: Regenerated.
9282 * configure.ac: Source file ../common/common.host. Initialize new
9283 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9285 2015-01-14 Yao Qi <yao@codesourcery.com>
9287 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9288 (ppc-linux.o): New rule.
9289 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9290 * configure.ac: AC_CHECK_FUNCS(getauxval).
9291 * config.in: Re-generated.
9292 * configure: Re-generated.
9293 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9294 ppc64_64bit_inferior_p
9296 2015-01-14 Yao Qi <yao@codesourcery.com>
9298 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9299 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9300 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9301 (PT_ORIG_R3, PT_TRAP): Likewise.
9302 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9303 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9304 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9306 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9308 * i387-fp.c (i387_cache_to_xsave): In look over
9309 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9310 zmmh_low_space field by use of zmmh_high_space.
9312 2015-01-09 Pedro Alves <palves@redhat.com>
9314 * linux-low.c (step_over_bkpt): Move higher up in the file.
9315 (handle_extended_wait): Don't store the stop_pc here.
9316 (get_stop_pc): Adjust comments and rename to ...
9317 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9318 stopped for a software breakpoint or hardware breakpoint.
9319 (thread_still_has_status_pending_p): New function.
9320 (status_pending_p_callback): Use
9321 thread_still_has_status_pending_p. If the event is no longer
9322 interesting, resume the LWP.
9323 (handle_tracepoints): Add assert.
9324 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9325 (wstatus_maybe_breakpoint): New function.
9326 (cancel_breakpoint): Delete function.
9327 (check_stopped_by_watchpoint): New function, factored out from
9328 linux_low_filter_event.
9329 (lp_status_maybe_breakpoint): Delete function.
9330 (linux_low_filter_event): Remove filter_ptid argument.
9331 Leave thread group exits pending here. Store the LWP's stop PC.
9332 Always leave events pending.
9333 (linux_wait_for_event_filtered): Pull all events out of the
9334 kernel, and leave them all pending.
9335 (count_events_callback, select_event_lwp_callback): Consider all
9337 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9338 (select_event_lwp): Only give preference to the stepping LWP in
9339 all-stop mode. Adjust comments.
9340 (ignore_event): New function.
9341 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9342 references to cancel_breakpoints. Adjust to renames. Also give
9343 equal priority to all LWPs that have had events in non-stop mode.
9344 If reporting a software breakpoint event, unadjust the LWP's PC.
9345 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9346 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9348 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9349 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9350 (linux_stopped_by_watchpoint): Adjust.
9351 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9352 * linux-low.h (enum lwp_stop_reason): New.
9353 (struct lwp_info) <stop_pc>: Adjust comment.
9354 <stopped_by_watchpoint>: Delete field.
9355 <stop_reason>: New field.
9356 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9357 * mem-break.c (software_breakpoint_inserted_here)
9358 (hardware_breakpoint_inserted_here): New function.
9359 * mem-break.h (software_breakpoint_inserted_here)
9360 (hardware_breakpoint_inserted_here): Declare.
9361 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9362 (cancel_breakpoints): Delete.
9363 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9364 (upload_fast_traceframes): Remove references to
9367 2015-01-09 Pedro Alves <palves@redhat.com>
9369 * thread-db.c (find_new_threads_callback): Ignore thread if the
9370 kernel thread ID is -1.
9372 2015-01-09 Pedro Alves <palves@redhat.com>
9374 * linux-low.c (linux_attach_fail_reason_string): Move to
9375 nat/linux-ptrace.c, and rename.
9376 (linux_attach_lwp): Update comment.
9377 (attach_proc_task_lwp_callback): New function.
9378 (linux_attach): Adjust to rename and use
9379 linux_proc_attach_tgid_threads.
9380 (linux_attach_fail_reason_string): Delete declaration.
9382 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9384 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9385 * server.c (gdbserver_version): Likewise.
9387 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9389 * remote-utils.c: Include ctype.h.
9390 (input_interrupt): Explicitly handle the case when the char
9391 received is the NUL byte. Improve the printing of non-ASCII
9394 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9396 * linux-low.c (linux_low_filter_event): Update call to
9397 linux_enable_event_reporting following the addition of
9398 a new parameter to that function.
9400 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9403 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9404 (AARCH64_FPCR_REGNO): Likewise.
9405 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9406 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9407 (aarch64_store_fpregset): Likewise.
9409 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9411 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9412 Remove FIXME comment about assumption about N.
9414 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9416 * configure.ac: If large-file support is disabled in GDBserver,
9417 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9418 * configure: Regenerate.
9420 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9422 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9423 warning upon ENODATA from ptrace.
9424 * linux-s390-low.c (s390_store_tdb): New.
9425 (s390_regsets): Add regset for NT_S390_TDB.
9427 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9429 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9430 without a fill_function.
9431 * linux-s390-low.c (s390_fill_last_break): Remove.
9432 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9433 (s390_arch_setup): Use regset's size instead of fill_function for
9436 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9438 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9439 the regset's store function when ptrace returned an error.
9440 * regcache.c (get_thread_regcache): Invalidate register cache
9441 before fetching inferior's registers.
9443 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9445 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9446 while-loop as for-loop.
9447 (regsets_store_inferior_registers): Likewise.
9449 2014-11-28 Yao Qi <yao@codesourcery.com>
9451 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9452 * config.in, configure: Re-generate.
9453 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9456 2014-11-21 Yao Qi <yao@codesourcery.com>
9458 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9459 (AC_CHECK_HEADERS): Remove malloc.h.
9460 * configure: Re-generated.
9461 * config.in: Re-generated.
9462 * server.h: Don't include alloca.h and malloc.h.
9463 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9464 Don't include malloc.h.
9466 2014-11-17 Joel Brobecker <brobecker@adacore.com>
9468 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9469 corresponding ERRNO check in same block.
9471 2014-11-12 Pedro Alves <palves@redhat.com>
9473 * server.c (cont_thread): Update comment.
9474 (start_inferior, attach_inferior): No longer clear cont_thread.
9475 (handle_v_cont): No longer set cont_thread.
9476 (captured_main): Clear cont_thread each time a GDB connects.
9478 2014-11-12 Pedro Alves <palves@redhat.com>
9480 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9481 thread, and don't resume all threads if the Hc thread has exited.
9483 2014-11-12 Pedro Alves <palves@redhat.com>
9485 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9486 the process group instead of to a specific LWP.
9488 2014-10-15 Pedro Alves <palves@redhat.com>
9491 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9493 (arm_set_thread_context): Delete.
9494 (the_low_target): Adjust.
9495 * win32-i386-low.c (debug_registers_changed)
9496 (debug_registers_used): Delete.
9497 (update_debug_registers_callback): New function.
9498 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9499 needing to update their debug registers.
9500 (win32_get_current_dr): New function.
9501 (x86_dr_low_get_addr, x86_dr_low_get_control)
9502 (x86_dr_low_get_status): Fetch the debug register from the thread
9504 (i386_initial_stuff): Adjust.
9505 (i386_get_thread_context): Remove current_event parameter. Don't
9506 clear debug_registers_changed nor copy DR values to
9508 (i386_set_thread_context): Delete.
9509 (i386_prepare_to_resume): New function.
9510 (i386_thread_added): Mark the thread as needing to update irs
9512 (the_low_target): Remove i386_set_thread_context and install
9513 i386_prepare_to_resume.
9514 * win32-low.c (win32_get_thread_context): Adjust.
9515 (win32_set_thread_context): Use SetThreadContext
9517 (win32_prepare_to_resume): New function.
9518 (win32_require_context): New function, factored out from ...
9519 (thread_rec): ... this.
9520 (continue_one_thread): Call win32_prepare_to_resume on each thread
9521 we're about to continue.
9522 (win32_resume): Call win32_prepare_to_resume on the event thread.
9523 * win32-low.h (struct win32_thread_info)
9524 <debug_registers_changed>: New field.
9525 (struct win32_target_ops): Change prototype of set_thread_context,
9526 delete set_thread_context and add prepare_to_resume.
9527 (win32_require_context): New declaration.
9529 2014-10-08 Gary Benson <gbenson@redhat.com>
9531 * server.h: Do not include common-exceptions.h.
9533 2014-10-08 Gary Benson <gbenson@redhat.com>
9535 * server.h: Do not include cleanups.h.
9537 2014-09-30 James Hogan <james.hogan@imgtec.com>
9539 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9542 2014-09-23 Yao Qi <yao@codesourcery.com>
9544 * linux-low.c (lp_status_maybe_breakpoint): New function.
9545 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9546 (count_events_callback): Likewise.
9547 (select_event_lwp_callback): Likewise.
9548 (cancel_breakpoints_callback): Likewise.
9550 2014-09-19 Don Breazeal <donb@codesourcery.com>
9552 * linux-low.c (handle_extended_wait): Call
9553 linux_ptrace_get_extended_event.
9554 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9555 linux_is_extended_waitstatus.
9557 2014-09-16 Joel Brobecker <brobecker@adacore.com>
9559 * Makefile.in (CPPFLAGS): Define.
9560 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9561 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9563 2014-09-16 Gary Benson <gbenson@redhat.com>
9565 * inferiors.h (current_inferior): Renamed as...
9566 (current_thread): New variable. All uses updated.
9567 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9568 (maybe_move_out_of_jump_pad): Likewise.
9569 (cancel_breakpoint): Likewise.
9570 (linux_low_filter_event): Likewise.
9571 (wait_for_sigstop): Likewise.
9572 (linux_resume_one_lwp): Likewise.
9573 (need_step_over_p): Likewise.
9574 (start_step_over): Likewise.
9575 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9576 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9577 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9578 and save_inferior as saved_thread.
9579 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9581 (regcache_invalidate_thread): Likewise.
9582 * remote-utils.c (prepare_resume_reply): Likewise.
9583 * thread-db.c (thread_db_get_tls_address): Likewise.
9584 (disable_thread_event_reporting): Likewise.
9585 (remove_thread_event_breakpoints): Likewise.
9586 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9588 * target.h (set_desired_inferior): Renamed as...
9589 (set_desired_thread): New declaration. All uses updated.
9590 * server.c (myresume): Updated comment to reference thread instead
9592 (handle_serial_event): Likewise.
9593 (handle_target_event): Likewise.
9595 2014-09-12 Tom Tromey <tromey@redhat.com>
9596 Gary Benson <gbenson@redhat.com>
9598 * regcache.h: Include common-regcache.h.
9599 (regcache_read_pc): Don't declare.
9600 * regcache.c (get_thread_regcache_for_ptid): New function.
9602 2014-09-11 Tom Tromey <tromey@redhat.com>
9603 Gary Benson <gbenson@redhat.com>
9605 * symbol.c: New file.
9606 * Makefile.in (SFILES): Add symbol.c.
9607 (OBS): Add symbol.o.
9609 2014-09-11 Gary Benson <gbenson@redhat.com>
9611 * target.c (target_stop_ptid, target_continue_ptid): New
9614 2014-09-11 Tom Tromey <tromey@redhat.com>
9615 Gary Benson <gbenson@redhat.com>
9617 * target.h: Include target/target.h.
9618 * target.c (target_read_memory, target_read_uint32)
9619 (target_write_memory): New functions.
9621 2014-09-11 Gary Benson <gbenson@redhat.com>
9623 * server.h (debug_hw_points): Don't declare.
9624 * server.c (debug_hw_points): Don't define. Replace all uses
9625 with show_debug_regs.
9626 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9627 all uses with show_debug_regs.
9629 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9631 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9632 endianness into account.
9633 (ppc_supply_ptrace_register): Likewise.
9635 2014-09-03 James Hogan <james.hogan@imgtec.com>
9637 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9638 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9640 2014-09-03 Gary Benson <gbenson@redhat.com>
9642 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9643 ALL_DEBUG_ADDRESS_REGISTERS.
9645 2014-09-02 Gary Benson <gbenson@redhat.com>
9647 * i386-low.h: Renamed as...
9648 * x86-low.h: New file. All type, function and variable name
9649 prefixes changed from "i386_" to "x86_". All references updated.
9650 * i386-low.c: Renamed as...
9651 * x86-low.c: New file. All type, function and variable name
9652 prefixes changed from "i386_" to "x86_". All references updated.
9654 2014-09-02 Gary Benson <gbenson@redhat.com>
9656 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9657 (x86_linux_new_thread): Likewise.
9659 2014-08-29 Gary Benson <gbenson@redhat.com>
9661 * server.h (setjmp.h): Do not include.
9662 (toplevel): Do not declare.
9663 (common-exceptions.h): Include.
9664 (cleanups.h): Likewise.
9665 * server.c (toplevel): Do not define.
9666 (exit_code): New static global.
9667 (detach_or_kill_for_exit_cleanup): New function.
9668 (main): New function. Original main renamed to...
9669 (captured_main): New function.
9670 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9672 2014-08-29 Gary Benson <gbenson@redhat.com>
9674 * Makefile.in (SFILES): Add common/common-exceptions.c.
9675 (OBS): Add common-exceptions.o.
9676 (common-exceptions.o): New rule.
9677 * utils.c (prepare_to_throw_exception): New function.
9679 2014-08-29 Gary Benson <gbenson@redhat.com>
9681 * config.in: Regenerate.
9682 * configure: Likewise.
9684 2014-08-29 Gary Benson <gbenson@redhat.com>
9686 * Makefile.in (SFILES): Add common/cleanups.c.
9688 (cleanups.o): New rule.
9690 2014-08-29 Gary Benson <gbenson@redhat.com>
9692 * utils.c (internal_vwarning): New function.
9694 2014-08-28 Gary Benson <gbenson@redhat.com>
9696 * utils.h (fatal): Remove declaration.
9697 * utils.c (fatal): Remove function.
9699 2014-08-28 Gary Benson <gbenson@redhat.com>
9701 * tracepoint.c (gdb_agent_init): Replace fatal with
9703 (initialize_tracepoint): Likewise.
9705 2014-08-28 Gary Benson <gbenson@redhat.com>
9707 * remote-utils.c (remote_prepare): Replace fatal with error.
9709 2014-08-28 Gary Benson <gbenson@redhat.com>
9711 * linux-low.c (linux_async): Replace fatal with warning.
9713 (linux_start_non_stop): Return -1 if linux_async failed.
9715 2014-08-28 Gary Benson <gbenson@redhat.com>
9717 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9719 (i386_dr_low_get_addr): Remove vague comment.
9720 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9723 2014-08-28 Gary Benson <gbenson@redhat.com>
9725 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9726 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9728 (linux_resume_one_lwp): Likewise.
9729 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9731 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9732 with internal_error.
9733 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9734 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9735 (find_register_by_name): Replace fatal with internal_error.
9736 (find_regno): Likewise.
9737 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9738 * thread-db.c (thread_db_create_event): Likewise.
9739 (thread_db_load_search): Likewise.
9740 (try_thread_db_load_1): Likewise.
9741 * tracepoint.c (get_jump_space_head): Replace fatal with
9743 (claim_trampoline_space): Likewise.
9744 (have_fast_tracepoint_trampoline_buffer): Likewise.
9745 (cmd_qtstart): Likewise.
9746 (stop_tracing): Likewise.
9747 (fast_tracepoint_collecting): Likewise.
9748 (target_malloc): Likewise.
9749 (download_tracepoint): Likewise.
9750 (download_trace_state_variables): Replace check with gdb_assert.
9751 (upload_fast_traceframes): Replace fatal with internal_error.
9753 2014-08-19 Tom Tromey <tromey@redhat.com>
9754 Gary Benson <gbenson@redhat.com>
9756 * Makefile.in (SFILES): Add common/common-debug.c.
9757 (OBS): Add common-debug.o.
9758 (common-debug.o): New rule.
9759 * debug.h (debug_printf): Don't declare.
9760 * debug.c (debug_printf): Renamed and rewritten as...
9761 (debug_vprintf): New function.
9763 2014-08-19 Gary Benson <gbenson@redhat.com>
9765 * utils.h: Do not include print-utils.h.
9767 2014-08-19 Tom Tromey <tromey@redhat.com>
9768 Gary Benson <gbenson@redhat.com>
9770 * server.h: Add static assertion.
9771 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9773 2014-08-19 Tom Tromey <tromey@redhat.com>
9774 Gary Benson <gbenson@redhat.com>
9776 * Makefile.in (SFILES): Add common/errors.c.
9777 (OBS): Add errors.o.
9778 (IPA_OBS): Add errors-ipa.o.
9779 (errors.o): New rule.
9780 (errors-ipa.o): Likewise.
9781 * utils.h (perror_with_name, error, warning): Don't declare.
9782 * utils.c (warning): Renamed and rewritten as...
9783 (vwarning): New function.
9784 (error): Renamed and rewritten as...
9785 (verror): New function.
9786 (internal_error): Renamed and rewritten as...
9787 (internal_verror): New function.
9789 2014-08-07 Gary Benson <gbenson@redhat.com>
9791 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9792 * configure: Regenerate.
9793 * config.in: Likewise.
9794 * server.h: Do not include errno.h.
9795 * event-loop.c: Likewise.
9796 * hostio-errno.c: Likewise.
9797 * linux-low.c: Likewise.
9798 * remote-utils.c: Likewise.
9799 * spu-low.c: Likewise.
9800 * utils.c: Likewise.
9801 * gdbreplay.c: Unconditionally include errno.h.
9803 2014-08-07 Gary Benson <gbenson@redhat.com>
9805 * server.h: Do not include string.h.
9806 * event-loop.c: Likewise.
9807 * linux-low.c: Likewise.
9808 * regcache.c: Likewise.
9809 * remote-utils.c: Likewise.
9810 * spu-low.c: Likewise.
9811 * utils.c: Likewise.
9813 2014-08-07 Gary Benson <gbenson@redhat.com>
9815 * server.h: Do not include gdb_assert.h.
9817 2014-08-07 Gary Benson <gbenson@redhat.com>
9819 * server.h: Do not include common-utils.h.
9821 2014-08-07 Gary Benson <gbenson@redhat.com>
9823 * server.h: Do not include ptid.h.
9824 * notif.h: Likewise.
9826 2014-08-07 Gary Benson <gbenson@redhat.com>
9828 * server.h: Do not include gdb_locale.h.
9830 2014-08-07 Gary Benson <gbenson@redhat.com>
9832 * server.h: Do not include gdb/signals.h.
9833 * win32-low.c: Likewise.
9835 2014-08-07 Gary Benson <gbenson@redhat.com>
9837 * server.h: Do not include pathmax.h.
9839 2014-08-07 Gary Benson <gbenson@redhat.com>
9841 * server.h: Do not include libiberty.h.
9842 * linux-bfin-low.c: Likewise.
9844 2014-08-07 Gary Benson <gbenson@redhat.com>
9846 * server.h: Do not include ansidecl.h.
9848 2014-08-07 Gary Benson <gbenson@redhat.com>
9850 * linux-x86-low.c: Do not include stddef.h.
9851 * lynx-ppc-low.c: Likewise.
9852 * tracepoint.c: Likewise.
9854 2014-08-07 Gary Benson <gbenson@redhat.com>
9856 * server.h: Do not include stdarg.h.
9857 * nto-low.c: Likewise.
9859 2014-08-07 Gary Benson <gbenson@redhat.com>
9861 * server.h: Do not include stdlib.h.
9862 * inferiors.c: Likewise.
9863 * linux-low.c: Likewise.
9864 * regcache.c: Likewise.
9865 * spu-low.c: Likewise.
9866 * tracepoint.c: Likewise.
9867 * utils.c: Likewise.
9869 2014-08-07 Gary Benson <gbenson@redhat.com>
9871 * server.h: Do not include stdio.h.
9872 * linux-low.c: Likewise.
9873 * remote-utils.c: Likewise.
9874 * spu-low.c: Likewise.
9875 * utils.c: Likewise.
9876 * wincecompat.c: Likewise.
9878 2014-08-06 Gary Benson <gbenson@redhat.com>
9880 * regcache.c (init_register_cache): Move conditionals inside if.
9882 2014-08-06 Gary Benson <gbenson@redhat.com>
9884 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9886 2014-07-31 Gary Benson <gbenson@redhat.com>
9888 * ax.h: Do not include server.h.
9889 * gdbthread.h: Likewise.
9890 * lynx-low.h: Likewise.
9891 * notif.h: Likewise.
9893 2014-07-30 Gary Benson <gbenson@redhat.com>
9895 * server.h: Include common-defs.h.
9896 Do not include config.h or build-gnulib-gdbserver/config.h.
9898 2014-07-30 Gary Benson <gbenson@redhat.com>
9900 * hostio-errno.c: Move server.h to top of includes list.
9901 * inferiors.c: Likewise.
9902 * linux-x86-low.c: Likewise.
9903 * notif.c: Include server.h.
9905 2014-07-24 Tom Tromey <tromey@redhat.com>
9906 Gary Benson <gbenson@redhat.com>
9908 * server.h (CORE_ADDR): Now unsigned.
9910 2014-07-16 Pedro Alves <palves@redhat.com>
9912 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9914 2014-07-15 Pedro Alves <palves@redhat.com>
9916 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9919 2014-07-11 Pedro Alves <palves@redhat.com>
9921 * linux-low.c (kill_wait_lwp): New function, based on
9922 kill_one_lwp_callback, but use my_waitpid directly.
9923 (kill_one_lwp_callback, linux_kill): Use it.
9925 2014-06-23 Pedro Alves <palves@redhat.com>
9927 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9928 before setting DR0..DR3.
9930 2014-06-20 Gary Benson <gbenson@redhat.com>
9932 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9933 * configure: Regenerated.
9934 * config.in: Likewise.
9936 2014-06-20 Gary Benson <gbenson@redhat.com>
9938 * Makefile.in (SFILES): Update locations for files moved
9940 (object file files): Reordered.
9942 2014-06-20 Gary Benson <gbenson@redhat.com>
9944 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9945 (i386_dr_low_set_addr): Likewise.
9946 (i386_dr_low_get_addr): Likewise.
9947 (i386_dr_low_can_set_control): Likewise.
9948 (i386_dr_low_set_control): Likewise.
9949 (i386_dr_low_get_control): Likewise.
9950 (i386_dr_low_get_status): Likewise.
9951 (i386_get_debug_register_length): Likewise.
9952 * linux-x86-low.c (i386_dr_low_set_addr):
9953 Changed signature. Made static.
9954 (i386_dr_low_get_addr): Likewise.
9955 (i386_dr_low_set_control): Likewise.
9956 (i386_dr_low_get_control): Likewise.
9957 (i386_dr_low_get_status): Likewise.
9958 (i386_dr_low): New global variable.
9959 * win32-i386-low.c (i386_dr_low_set_addr):
9960 Changed signature. Made static.
9961 (i386_dr_low_get_addr): Likewise.
9962 (i386_dr_low_set_control): Likewise.
9963 (i386_dr_low_get_control): Likewise.
9964 (i386_dr_low_get_status): Likewise.
9965 (i386_dr_low): New global variable.
9967 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9969 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9970 * Makefile.in (AR, AR_FLAGS): Define.
9971 * configure: Regenerate.
9973 2014-06-19 Gary Benson <gbenson@redhat.com>
9975 * Makefile.in (i386-dregs.o): New rule.
9976 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
9977 * i386-low.c (target.h): Remove include.
9978 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
9979 (DR_CONTROL_SHIFT): Likewise.
9980 (DR_CONTROL_SIZE): Likewise.
9981 (DR_RW_EXECUTE): Likewise.
9982 (DR_RW_WRITE): Likewise.
9983 (DR_RW_READ): Likewise.
9984 (DR_RW_IORW): Likewise.
9985 (DR_LEN_1): Likewise.
9986 (DR_LEN_2): Likewise.
9987 (DR_LEN_4): Likewise.
9988 (DR_LEN_8): Likewise.
9989 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9990 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9991 (DR_ENABLE_SIZE): Likewise.
9992 (DR_LOCAL_SLOWDOWN): Likewise.
9993 (DR_GLOBAL_SLOWDOWN): Likewise.
9994 (DR_CONTROL_RESERVED): Likewise.
9995 (I386_DR_CONTROL_MASK): Likewise.
9996 (I386_DR_VACANT): Likewise.
9997 (I386_DR_LOCAL_ENABLE): Likewise.
9998 (I386_DR_GLOBAL_ENABLE): Likewise.
9999 (I386_DR_DISABLE): Likewise.
10000 (I386_DR_SET_RW_LEN): Likewise.
10001 (I386_DR_GET_RW_LEN): Likewise.
10002 (I386_DR_WATCH_HIT): Likewise.
10003 (i386_wp_op_t): Likewise.
10004 (i386_show_dr): Likewise.
10005 (i386_length_and_rw_bits): Likewise.
10006 (i386_insert_aligned_watchpoint): Likewise.
10007 (i386_remove_aligned_watchpoint): Likewise.
10008 (i386_handle_nonaligned_watchpoint): Likewise.
10009 i386_update_inferior_debug_regs(): Likewise.
10010 (i386_dr_insert_watchpoint): Likewise.
10011 (i386_dr_remove_watchpoint): Likewise.
10012 (i386_dr_region_ok_for_watchpoint): Likewise.
10013 (i386_dr_stopped_data_address): Likewise.
10014 (i386_dr_stopped_by_watchpoint): Likewise.
10016 2014-06-19 Gary Benson <gbenson@redhat.com>
10018 * i386-low.c (i386_dr_show): Renamed to
10019 i386_show_dr and made static. All uses updated.
10020 (i386_dr_length_and_rw_bits): Renamed to
10021 i386_length_and_rw_bits and made static.
10023 (i386_dr_insert_aligned_watchpoint): Renamed to
10024 i386_insert_aligned_watchpoint and made static.
10026 (i386_dr_remove_aligned_watchpoint): Renamed to
10027 i386_remove_aligned_watchpoint and made static.
10029 (i386_dr_update_inferior_debug_regs): Renamed to
10030 i386_update_inferior_debug_regs and made static.
10033 2014-06-18 Gary Benson <gbenson@redhat.com>
10035 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10036 (i386_dr_low_can_set_control): Likewise.
10037 (i386_get_debug_register_length): Likewise.
10038 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10039 (i386_dr_low_can_set_control): Likewise.
10040 (i386_get_debug_register_length): Likewise.
10042 2014-06-17 Gary Benson <gbenson@redhat.com>
10044 * i386-low.h (i386-dregs.h): New include.
10045 (DR_FIRSTADDR): Now in i386-dregs.h.
10046 (DR_LASTADDR): Likewise.
10047 (DR_NADDR): Likewise.
10048 (DR_STATUS): Likewise.
10049 (DR_CONTROL): Likewise.
10050 (i386_debug_reg_state): Likewise.
10051 (i386_dr_insert_watchpoint): Likewise.
10052 (i386_dr_remove_watchpoint): Likewise.
10053 (i386_dr_region_ok_for_watchpoint): Likewise.
10054 (i386_dr_stopped_data_address): Likewise.
10055 (i386_dr_stopped_by_watchpoint): Likewise.
10056 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10058 2014-06-18 Gary Benson <gbenson@redhat.com>
10060 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10061 i386_dr_insert_watchpoint.
10062 (i386_low_remove_watchpoint): Renamed to
10063 i386_dr_remove_watchpoint.
10064 (i386_low_region_ok_for_watchpoint): Renamed to
10065 i386_dr_region_ok_for_watchpoint.
10066 (i386_low_stopped_data_address): Renamed to
10067 i386_dr_stopped_data_address.
10068 (i386_low_stopped_by_watchpoint): Renamed to
10069 i386_dr_stopped_by_watchpoint.
10070 * i386-low.c (i386_show_dr): Renamed to
10071 i386_dr_show and made nonstatic. All uses updated.
10072 (i386_length_and_rw_bits): Renamed to
10073 i386_dr_length_and_rw_bits and made nonstatic.
10075 (i386_insert_aligned_watchpoint): Renamed to
10076 i386_dr_insert_aligned_watchpoint and made nonstatic.
10078 (i386_remove_aligned_watchpoint): Renamed to
10079 i386_dr_remove_aligned_watchpoint and made nonstatic.
10081 (i386_update_inferior_debug_regs): Renamed to
10082 i386_dr_update_inferior_debug_regs and made nonstatic.
10084 (i386_low_insert_watchpoint): Renamed to
10085 i386_dr_insert_watchpoint. All uses updated.
10086 (i386_low_remove_watchpoint): Renamed to
10087 i386_dr_remove_watchpoint. All uses updated.
10088 (i386_low_region_ok_for_watchpoint): Renamed to
10089 i386_dr_region_ok_for_watchpoint. All uses updated.
10090 (i386_low_stopped_data_address): Renamed to
10091 i386_dr_stopped_data_address. All uses updated.
10092 (i386_low_stopped_by_watchpoint): Renamed to
10093 i386_dr_stopped_by_watchpoint. All uses updated.
10095 2014-06-18 Gary Benson <gbenson@redhat.com>
10097 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10098 (i386_dr_low_can_set_control): Likewise.
10099 (i386_insert_aligned_watchpoint): New check.
10101 2014-06-18 Gary Benson <gbenson@redhat.com>
10103 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10106 2014-06-18 Gary Benson <gbenson@redhat.com>
10108 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10109 instead of fatal and error.
10110 (i386_handle_nonaligned_watchpoint): Likewise.
10112 2014-06-18 Gary Benson <gbenson@redhat.com>
10114 * i386-low.c (i386_get_debug_register_length): New macro.
10115 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10116 (i386_show_dr): Use debug_printf instead of fprintf. Use
10117 phex to format values.
10119 2014-06-18 Gary Benson <gbenson@redhat.com>
10121 * i386-low.h: Comment changes.
10122 * i386-low.c: Likewise.
10124 2014-06-18 Gary Benson <gbenson@redhat.com>
10126 * i386-low.c: Whitespace changes.
10128 2014-06-12 Tom Tromey <tromey@redhat.com>
10130 * utils.c (freeargv): Remove.
10132 2014-06-12 Tom Tromey <tromey@redhat.com>
10134 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10135 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10136 (parse_debug_format_options): Likewise.
10137 (gdbserver_usage): Likewise.
10138 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10139 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10140 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10142 ($(LIBGNU)): Depend on libiberty.
10143 (all-lib): Recurse into all subdirs.
10144 (install-only): Invoke "install" target in subdirs.
10145 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10147 * configure: Rebuild.
10148 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10149 for vasprintf, vsnprintf, or gettimeofday.
10150 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10153 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10155 * development.sh: Delete.
10156 * Makefile.in (config.status): Adjust dependency on development.sh.
10157 * configure.ac: Adjust development.sh source call.
10158 * configure: Regenerate.
10160 2014-06-02 Pedro Alves <palves@redhat.com>
10162 * ax.c (gdb_free_agent_expr): New function.
10163 * ax.h (gdb_free_agent_expr): New declaration.
10164 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10166 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10168 (clear_breakpoint_conditions_and_commands): New function.
10169 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10170 (clear_breakpoint_conditions_and_commands): New declaration.
10172 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10174 * linux-aarch64-low.c (asm/ptrace.h): Include.
10176 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10178 Fix TLS access for -static -pthread.
10179 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10180 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10181 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10183 2014-05-20 Pedro Alves <palves@redhat.com>
10185 * linux-aarch64-low.c (aarch64_insert_point)
10186 (aarch64_remove_point): No longer check whether the type is
10187 supported here. Adjust to new interface.
10188 (the_low_target): Install aarch64_supports_z_point_type as
10189 supports_z_point_type method.
10190 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10191 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10192 instead of a Z packet char. Adjust.
10193 (arm_supports_z_point_type): New function.
10194 (arm_insert_point, arm_remove_point): Adjust to new interface.
10195 (the_low_target): Install arm_supports_z_point_type.
10196 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10197 (cris_insert_point, cris_remove_point): Adjust to new interface.
10198 Don't check whether the type is supported here.
10199 (the_low_target): Install cris_supports_z_point_type.
10200 * linux-low.c (linux_supports_z_point_type): New function.
10201 (linux_insert_point, linux_remove_point): Adjust to new interface.
10202 * linux-low.h (struct linux_target_ops) <insert_point,
10203 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10204 raw_breakpoint pointer parameter.
10205 <supports_z_point_type>: New method.
10206 * linux-mips-low.c (mips_supports_z_point_type): New function.
10207 (mips_insert_point, mips_remove_point): Adjust to new interface.
10208 Use mips_supports_z_point_type.
10209 (the_low_target): Install mips_supports_z_point_type.
10210 * linux-ppc-low.c (the_low_target): Install NULL as
10211 supports_z_point_type method.
10212 * linux-s390-low.c (the_low_target): Install NULL as
10213 supports_z_point_type method.
10214 * linux-sparc-low.c (the_low_target): Install NULL as
10215 supports_z_point_type method.
10216 * linux-x86-low.c (x86_supports_z_point_type): New function.
10217 (x86_insert_point): Adjust to new insert_point interface. Use
10218 insert_memory_breakpoint. Adjust to new
10219 i386_low_insert_watchpoint interface.
10220 (x86_remove_point): Adjust to remove_point interface. Use
10221 remove_memory_breakpoint. Adjust to new
10222 i386_low_remove_watchpoint interface.
10223 (the_low_target): Install x86_supports_z_point_type.
10224 * lynx-low.c (lynx_target_ops): Install NULL as
10225 supports_z_point_type callback.
10226 * nto-low.c (nto_supports_z_point_type): New.
10227 (nto_insert_point, nto_remove_point): Adjust to new interface.
10228 (nto_target_ops): Install nto_supports_z_point_type.
10229 * mem-break.c: Adjust intro comment.
10230 (struct raw_breakpoint) <raw_type, size>: New fields.
10231 <inserted>: Update comment.
10232 <shlib_disabled>: Delete field.
10233 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10234 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10235 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10236 (raw_bkpt_type_to_target_hw_bp_type): New function.
10237 (find_enabled_raw_code_breakpoint_at): New function.
10238 (find_raw_breakpoint_at): New type and size parameters. Use them.
10239 (insert_memory_breakpoint): New function, based off
10240 set_raw_breakpoint_at.
10241 (remove_memory_breakpoint): New function.
10242 (set_raw_breakpoint_at): Reimplement.
10243 (set_breakpoint): New, based on set_breakpoint_at.
10244 (set_breakpoint_at): Reimplement.
10245 (delete_raw_breakpoint): Go through the_target->remove_point
10246 instead of assuming memory breakpoints.
10247 (find_gdb_breakpoint_at): Delete.
10248 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10249 (find_gdb_breakpoint): New function.
10250 (set_gdb_breakpoint_at): Delete.
10251 (z_type_supported): New function.
10252 (set_gdb_breakpoint_1): New function, loosely based off
10253 set_gdb_breakpoint_at.
10254 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10255 (delete_gdb_breakpoint_at): Delete.
10256 (delete_gdb_breakpoint_1): New function, loosely based off
10257 delete_gdb_breakpoint_at.
10258 (delete_gdb_breakpoint): New function.
10259 (clear_gdb_breakpoint_conditions): Rename to ...
10260 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10262 (add_condition_to_breakpoint): Make static.
10263 (add_breakpoint_condition): Take a struct breakpoint pointer
10264 instead of an address. Adjust.
10265 (gdb_condition_true_at_breakpoint): Rename to ...
10266 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10268 (gdb_condition_true_at_breakpoint): Reimplement.
10269 (add_breakpoint_commands): Take a struct breakpoint pointer
10270 instead of an address. Adjust.
10271 (gdb_no_commands_at_breakpoint): Rename to ...
10272 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10273 parameter. Return true if no breakpoint was found. Change debug
10275 (gdb_no_commands_at_breakpoint): Reimplement.
10276 (run_breakpoint_commands): Rename to ...
10277 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10278 and change return type to boolean.
10279 (run_breakpoint_commands): New function.
10280 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10281 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10282 breakpoint. Go through the_target->remove_point instead of
10283 assuming memory breakpoint.
10284 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10285 software and hardware breakpoints.
10286 (reinsert_raw_breakpoint): Go through the_target->insert_point
10287 instead of assuming memory breakpoint.
10288 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10289 software and hardware breakpoints.
10290 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10291 Check both software and hardware breakpoints.
10292 (validate_inserted_breakpoint): Assert the breakpoint is a
10293 software breakpoint. Set the inserted flag to -1 instead of
10294 setting shlib_disabled.
10295 (delete_disabled_breakpoints): Adjust.
10296 (validate_breakpoints): Only validate software breakpoints.
10297 Adjust to inserted flag change.
10298 (check_mem_read, check_mem_write): Skip breakpoint types other
10299 than software breakpoints. Adjust to inserted flag change.
10300 * mem-break.h (enum raw_bkpt_type): New enum.
10301 (raw_breakpoint, struct process_info): Forward declare.
10302 (Z_packet_to_target_hw_bp_type): Delete declaration.
10303 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10304 (set_gdb_breakpoint, delete_gdb_breakpoint)
10305 (clear_breakpoint_conditions): New declarations.
10306 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10307 (breakpoint_inserted_here): Update comment.
10308 (add_breakpoint_condition, add_breakpoint_commands): Replace
10309 address parameter with a breakpoint pointer parameter.
10310 (gdb_breakpoint_here): Update comment.
10311 (delete_gdb_breakpoint_at): Delete.
10312 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10313 * server.c (process_point_options): Take a struct breakpoint
10314 pointer instead of an address. Adjust.
10315 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10316 delete_gdb_breakpoint.
10317 * spu-low.c (spu_target_ops): Install NULL as
10318 supports_z_point_type method.
10319 * target.h: Include mem-break.h.
10320 (struct target_ops) <prepare_to_access_memory>: Update comment.
10321 <supports_z_point_type>: New field.
10322 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10323 instead of a char. Also take a raw breakpoint pointer.
10324 * win32-arm-low.c (the_low_target): Install NULL as
10325 supports_z_point_type.
10326 * win32-i386-low.c (i386_supports_z_point_type): New function.
10327 (i386_insert_point, i386_remove_point): Adjust to new interface.
10328 (the_low_target): Install i386_supports_z_point_type.
10329 * win32-low.c (win32_supports_z_point_type): New function.
10330 (win32_insert_point, win32_remove_point): Adjust to new interface.
10331 (win32_target_ops): Install win32_supports_z_point_type.
10332 * win32-low.h (struct win32_target_ops):
10333 <supports_z_point_type>: New method.
10334 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10335 instead of a char. Also take a raw breakpoint pointer.
10337 2014-05-20 Pedro Alves <palves@redhat.com>
10339 * mem-break.h: Include break-common.h.
10340 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10341 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10342 (Z_packet_to_target_hw_bp_type): New declaration.
10343 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10344 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10345 (Z_PACKET_ACCESS_WP): Delete macros.
10346 (Z_packet_to_hw_type): Delete function.
10347 * i386-low.h: Don't include break-common.h here.
10348 (Z_packet_to_hw_type): Delete declaration.
10349 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10350 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10351 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10352 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10353 * linux-aarch64-low.c: Don't include break-common.h here.
10354 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10355 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10356 (Z_packet_to_target_hw_bp_type): Delete function.
10357 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10359 (mips_insert_point, mips_remove_point): Use
10360 Z_packet_to_target_hw_bp_type.
10362 2014-05-20 Pedro Alves <palves@redhat.com>
10364 * linux-aarch64-low.c: Include break-common.h.
10365 (enum target_point_type): Delete.
10366 (Z_packet_to_point_type): Rename to ...
10367 (Z_packet_to_target_hw_bp_type): ... this, and return a
10368 target_hw_bp_type instead.
10369 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10370 instead of an enum target_point_type.
10371 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10373 (aarch64_dr_state_insert_one_point)
10374 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10375 (aarch64_handle_aligned_watchpoint)
10376 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10377 Take an enum target_hw_bp_type instead of an enum
10379 (aarch64_supports_z_point_type): New function.
10380 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10381 use Z_packet_to_target_hw_bp_type.
10383 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10385 * configure.ac: Only use -Werror by default when DEVELOPMENT
10387 * configure: Regenerate.
10389 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10391 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10392 * linux-x86-low.c (X86_64_USER_REGS): New.
10393 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10395 2014-04-28 Yao Qi <yao@codesourcery.com>
10397 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10400 2014-04-25 Pedro Alves <palves@redhat.com>
10403 * linux-low.c (linux_attach_fail_reason_string): New function.
10404 (linux_attach_lwp): Delete.
10405 (linux_attach_lwp_1): Rename to ...
10406 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10407 argument. Remove "initial" parameter. Return int instead of
10408 void. Don't error or warn here.
10409 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10410 failure to attach to the tgid. Call warning when failing to
10412 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10413 argument. Remove "initial" parameter. Return int instead of
10414 void. Don't error or warn here.
10415 (linux_attach_fail_reason_string): New declaration.
10416 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10417 interface change. Use linux_attach_fail_reason_string.
10419 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
10420 Walfred Tedeschi <walfred.tedeschi@intel.com>
10422 * Makefile.in: Added rules to handle new files
10423 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10424 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10425 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10426 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10427 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10428 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10429 x32-avx512-linux.o.
10430 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10431 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10432 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10433 i386/x32-avx512.xml.
10434 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10435 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10436 i386/x32-avx512-linux.xml.
10437 * i387-fp.c (num_avx512_k_registers): New constant for number
10439 (num_avx512_zmmh_low_registers): New constant for number of
10440 lower ZMM registers (0-15).
10441 (num_avx512_zmmh_high_registers): New constant for number of
10442 higher ZMM registers (16-31).
10443 (num_avx512_ymmh_registers): New contant for number of higher
10444 YMM registers (ymm16-31 added by avx521 on x86_64).
10445 (num_avx512_xmm_registers): New constant for number of higher
10446 XMM registers (xmm16-31 added by AVX512 on x86_64).
10447 (struct i387_xsave): Add space for AVX512 registers.
10448 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10449 Add code to handle AVX512 registers.
10450 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10451 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10452 prototypei from generated file.
10453 (tdesc_amd64_avx512_linux): Likewise.
10454 (init_registers_x32_avx512_linux): Likewise.
10455 (tdesc_x32_avx512_linux): Likewise.
10456 (init_registers_i386_avx512_linux): Likewise.
10457 (tdesc_i386_avx512_linux): Likewise.
10458 (x86_64_regmap): Add AVX512 registers.
10459 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10461 (initialize_low_arch): Add code to initialize AVX512 registers.
10463 2014-04-23 Pedro Alves <palves@redhat.com>
10465 * mem-break.c (find_gdb_breakpoint_at): Make static.
10466 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10468 2014-04-23 Pedro Alves <palves@redhat.com>
10470 * i386-low.c: Don't include break-common.h here.
10471 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10472 prototype to take target_hw_bp_type as argument instead of a Z
10474 * i386-low.h: Include break-common.h here.
10475 (Z_packet_to_hw_type): Declare.
10476 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10478 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10479 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10480 (x86_remove_point): Convert the packet number to a
10481 target_hw_bp_type before calling i386_low_remove_watchpoint.
10482 * win32-i386-low.c (i386_insert_point): Convert the packet number
10483 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10484 (i386_remove_point): Convert the packet number to a
10485 target_hw_bp_type before calling i386_low_remove_watchpoint.
10487 2014-04-23 Pedro Alves <palves@redhat.com>
10489 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10491 2014-04-10 Pedro Alves <palves@redhat.com>
10493 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10494 Check if the condition or command is NULL before checking if the
10495 breakpoint is known. On success, return true.
10496 * mem-break.h (add_breakpoint_condition): Document return.
10497 (add_breakpoint_commands): Add describing comment.
10498 * server.c (skip_to_semicolon): New function.
10499 (process_point_options): Use it.
10501 2014-04-09 Pedro Alves <palves@redhat.com>
10503 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10506 2014-02-27 Pedro Alves <palves@redhat.com>
10509 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10511 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10513 (last_thread_of_process_p): Take a PID argument instead of a
10515 (linux_wait_for_lwp): Delete.
10516 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10518 (linux_low_filter_event): New function, party factored out from
10519 linux_wait_for_event.
10520 (linux_wait_for_event): Rename to ...
10521 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10522 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10523 sigsuspend. Check for zombie leaders.
10524 (linux_wait_for_event): Reimplement as wrapper around
10525 linux_wait_for_event_filtered.
10526 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10527 a normal or signal exit is seen, it's the whole process exiting.
10528 (wait_for_sigstop): No longer a for_each_inferior callback.
10529 Rewrite on top of linux_wait_for_event_filtered.
10530 (stop_all_lwps): Call wait_for_sigstop directly.
10531 * server.c (resume, handle_target_event): Handle
10532 TARGET_WAITKIND_NO_RESUMED.
10534 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10536 * win32-low.c (psapi_get_dll_name,
10537 * win32_CreateToolhelp32Snapshot): Delete.
10538 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10539 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10541 (handle_load_dll): Add function description.
10542 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10544 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10546 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10548 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10549 base address when calling win32_add_one_solib.
10550 (handle_load_dll): Delete local variable load_addr.
10551 Remove 0x1000 offset applied to DLL base address when calling
10552 win32_add_one_solib.
10553 (handle_unload_dll): Add comment.
10555 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10557 * win32-low.c (win32_add_all_dlls): Renames
10558 win32_ensure_ntdll_loaded. Rewrite function documentation.
10559 Adjust implementation to always load all DLLs.
10560 Add 0x1000 offset to DLL base address when calling
10561 win32_add_one_solib.
10562 (child_initialization_done): New static global.
10563 (do_initial_child_stuff): Set child_initialization_done to
10564 zero during child initialization, and 1 after. Replace call
10565 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10567 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10568 (handle_unload_dll): Add function documentation.
10569 (get_child_debug_event): Ignore load and unload DLL events
10570 during child initialization.
10572 2014-02-20 Doug Evans <dje@google.com>
10574 Remove global all_lwps.
10575 * inferiors.h (ptid_of): Move here from linux-low.h.
10576 (pid_of, lwpid_of): Ditto.
10577 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10578 parameter is a struct thread_info * now.
10579 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10580 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10581 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10583 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10584 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10585 * linux-arm-low.c (update_registers_callback): Update, "entry"
10586 parameter is a struct thread_info * now.
10587 Fetch lwpid from current_inferior directly.
10588 (arm_insert_point): Pass &all_threads to find_inferior instead of
10590 (arm_remove_point): Ditto.
10591 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10592 (arm_prepare_to_resume): Fetch pid from thread.
10593 (arm_read_description): Fetch lwpid from current_inferior directly.
10594 * linux-low.c (all_lwps): Delete.
10595 (delete_lwp): Delete call to remove_inferior.
10596 (handle_extended_wait): Fetch lwpid from thread.
10597 (add_lwp): Don't set lwp->entry.id. Remove call to
10598 add_inferior_to_list.
10599 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10600 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10601 (kill_one_lwp_callback): Ditto.
10602 (linux_kill): Don't dereference NULL pointer.
10603 Fetch ptid,lwpid from thread.
10604 (get_detach_signal): Fetch ptid from thread.
10605 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10606 Simplify call to regcache_invalidate_thread.
10607 (delete_lwp_callback): Update, "entry" parameter is a
10608 struct thread_info * now. Fetch pid from thread.
10609 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10610 (status_pending_p_callback): Update, "entry" parameter is a
10611 struct thread_info * now. Fetch ptid from thread.
10612 (find_lwp_pid): Update, "entry" parameter is a
10613 struct thread_info * now.
10614 (linux_wait_for_lwp): Fetch pid from thread.
10615 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10616 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10617 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10618 (dequeue_one_deferred_signal): Ditto.
10619 (cancel_breakpoint): Fetch ptid from current_inferior.
10620 (linux_wait_for_event): Pass &all_threads to find_inferior,
10621 not &all_lwps. Fetch ptid, lwpid from thread.
10622 (count_events_callback): Update, "entry" parameter is a
10623 struct thread_info * now.
10624 (select_singlestep_lwp_callback): Ditto.
10625 (select_event_lwp_callback): Ditto.
10626 (cancel_breakpoints_callback): Ditto.
10627 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10629 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10630 (unsuspend_one_lwp): Update, "entry" parameter is a
10631 struct thread_info * now.
10632 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10634 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10635 Fetch lwpid from thread, not lwp.
10636 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10637 Pass &all_threads to find_inferior, not &all_lwps.
10638 (send_sigstop): Fetch lwpid from thread, not lwp.
10639 (send_sigstop_callback): Update, "entry" parameter is a
10640 struct thread_info * now.
10641 (suspend_and_send_sigstop_callback): Ditto.
10642 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10643 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10644 struct thread_info * now.
10645 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10647 (lwp_running): Update, "entry" parameter is a
10648 struct thread_info * now.
10649 (stop_all_lwps): Fetch ptid from thread.
10650 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10651 (linux_resume_one_lwp): Fetch lwpid from thread.
10652 (linux_set_resume_request): Update, "entry" parameter is a
10653 struct thread_info * now. Fetch pid, lwpid from thread.
10654 (resume_status_pending_p): Update, "entry" parameter is a
10655 struct thread_info * now.
10656 (need_step_over_p): Ditto. Fetch lwpid from thread.
10657 (start_step_over): Fetch lwpid from thread.
10658 (linux_resume_one_thread): Update, "entry" parameter is a
10659 struct thread_info * now. Fetch lwpid from thread.
10660 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10661 (proceed_one_lwp): Update, "entry" parameter is a
10662 struct thread_info * now. Fetch lwpid from thread.
10663 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10664 struct thread_info * now.
10665 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10666 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10667 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10669 (regsets_store_inferior_registers): Ditto.
10670 (fetch_register, store_register): Ditto.
10671 (linux_read_memory, linux_write_memory): Ditto.
10672 (linux_request_interrupt): Ditto.
10673 (linux_read_auxv): Ditto.
10674 (linux_xfer_siginfo): Ditto.
10675 (linux_qxfer_spu): Ditto.
10676 (linux_qxfer_libraries_svr4): Ditto.
10677 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10678 moved to inferiors.h.
10680 (get_thread_lwp): Update.
10681 (struct lwp_info): Delete member "entry". Simplify comment for
10683 (all_lwps): Delete.
10684 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10685 current_inferior directly.
10686 (update_watch_registers_callback): Update, "entry" parameter is a
10687 struct thread_info * now. Fetch pid from thread.
10688 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10689 (mips_insert_point): Fetch lwpid from current_inferior.
10690 Pass &all_threads to find_inferior, not &all_lwps.
10691 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10692 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10694 (mips_stopped_data_address): Ditto.
10695 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10697 * linux-tile-low.c (tile_arch_setup): Ditto.
10698 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10699 (update_debug_registers_callback): Update, "entry" parameter is a
10700 struct thread_info * now. Fetch pid from thread.
10701 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10702 Pass &all_threads to find_inferior, not &all_lwps.
10703 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10704 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10705 Pass &all_threads to find_inferior, not &all_lwps.
10706 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10707 (i386_dr_low_get_status): Ditto.
10708 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10709 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10710 (x86_linux_read_description): Ditto.
10711 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10713 2014-02-20 Doug Evans <dje@google.com>
10715 * inferiors.c (get_first_inferior): Fix buglet.
10717 2014-02-19 Doug Evans <dje@google.com>
10719 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10720 * inferiors.c (add_thread): Change result type to struct thread_info *.
10721 All callers updated.
10722 (add_lwp): Call add_thread here instead of in callers.
10723 All callers updated.
10724 * linux-low.h (get_lwp_thread): Rewrite.
10725 (struct lwp_info): New member "thread".
10727 2014-02-19 Doug Evans <dje@google.com>
10729 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10730 All callers updated.
10732 2014-02-19 Doug Evans <dje@google.com>
10734 * inferiors.c (add_thread): Fix whitespace.
10736 2014-02-19 Doug Evans <dje@google.com>
10738 * dll.c (clear_dlls): Replace accessing list implemention details
10740 * gdbthread.h (get_first_thread): Declare.
10741 * inferiors.c (for_each_inferior_with_data): New function.
10742 (get_first_thread): New function.
10743 (find_thread_ptid): Simplify.
10744 (get_first_inferior): New function.
10745 (clear_list): Delete.
10746 (one_inferior_p): New function.
10747 (clear_inferior_list): New function.
10748 (clear_inferiors): Update.
10749 * inferiors.h (for_each_inferior_with_data): Declare.
10750 (clear_inferior_list): Declare.
10751 (one_inferior_p): Declare.
10752 (get_first_inferior): Declare.
10753 * linux-low.c (linux_wait_for_event): Replace accessing list
10754 implemention details with API function.
10755 * server.c (target_running): Ditto.
10756 (accumulate_file_name_length): New function.
10757 (emit_dll_description): New function.
10758 (handle_qxfer_libraries): Replace accessing list implemention
10759 details with API function.
10760 (handle_qxfer_threads_worker): New function.
10761 (handle_qxfer_threads_proper): Replace accessing list implemention
10762 details with API function.
10763 (handle_query): Ditto.
10764 (visit_actioned_threads_callback_ftype): New typedef.
10765 (visit_actioned_threads_data): New struct.
10766 (visit_actioned_threads): Rewrite to be find_inferior callback.
10767 (resume): Call find_inferior.
10768 (handle_status): Replace accessing list implemention
10769 details with API function.
10770 (process_serial_event): Replace accessing list implemention details
10772 * target.c (set_desired_inferior): Replace accessing list implemention
10773 details with API function.
10774 * tracepoint.c (same_process_p): New function.
10775 (gdb_agent_about_to_close): Replace accessing list implemention
10776 details with API function.
10777 * win32-low.c (child_delete_thread): Replace accessing list
10778 implemention details with API function.
10779 (match_dll_by_basename): New function.
10780 (dll_is_loaded_by_basename): New function.
10781 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10782 details call to dll_is_loaded_by_basename.
10784 2014-02-19 Doug Evans <dje@google.com>
10786 * dll.h (struct dll_info): Add comment.
10787 * gdbthread.h (struct thread_info): Add comment.
10788 (current_ptid): Simplify.
10789 * inferiors.c (add_process): Update.
10790 (remove_process): Update.
10791 * inferiors.h (struct process_info): Rename member "head" to "entry".
10792 * linux-low.c (delete_lwp): Update.
10794 (last_thread_of_process_p): Update.
10795 (kill_one_lwp_callback, linux_kill): Update.
10796 (status_pending_p_callback): Update.
10797 (wait_for_sigstop): Update. Simplify read of ptid.
10798 (start_step_over): Update.
10799 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10800 (get_lwp_thread): Update.
10801 (struct lwp_info): Rename member "head" to "entry".
10802 * regcache.h (inferior_list_entry): Delete.
10803 * server.c (kill_inferior_callback): Update.
10804 (detach_or_kill_inferior_callback): Update.
10805 (print_started_pid): Update.
10806 (print_attached_pid): Update.
10807 (process_serial_event): Simplify read of ptid.
10808 * thread-db.c (thread_db_create_event): Update.
10809 (thread_db_get_tls_address): Update.
10810 * win32-low.c (current_inferior_ptid): Simplify.
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10814 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10816 (target_supports_btrace): Update.
10818 2014-02-14 Yao Qi <yao@codesourcery.com>
10820 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10821 (rsp-low-ipa.o): New target.
10823 2014-02-12 Tom Tromey <tromey@redhat.com>
10825 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10826 convert_ascii_to_int.
10827 * regcache.c (registers_to_string): Likewise.
10828 * remote-utils.c (decode_M_packet): Likewise.
10829 * server.c (process_serial_event): Likewise.
10831 2014-02-12 Tom Tromey <tromey@redhat.com>
10833 * server.c (handle_query, handle_v_run): Use hex2bin, not
10835 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10837 2014-02-12 Tom Tromey <tromey@redhat.com>
10839 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10840 convert_int_to_ascii.
10841 * regcache.c (registers_to_string, collect_register_as_string):
10843 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10845 * server.c (process_serial_event): Likewise.
10846 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10847 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10849 2014-02-12 Tom Tromey <tromey@redhat.com>
10851 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10852 bin2hex, not hexify.
10853 * tracepoint.c (cmd_qtstatus): Likewise.
10855 2014-02-12 Tom Tromey <tromey@redhat.com>
10857 * remote-utils.c (monitor_output): Pass explicit length to
10860 2014-02-12 Tom Tromey <tromey@redhat.com>
10862 * tracepoint.c: Include rsp-low.h.
10863 * server.c: Include rsp-low.h.
10864 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10865 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10867 * remote-utils.c: Include rsp-low.h.
10868 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10869 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10870 (convert_int_to_ascii, convert_ascii_to_int): Move to
10872 * regcache.c: Include rsp-low.h.
10873 * ax.c: Include rsp-low.h.
10874 * Makefile.in (SFILES): Add common/rsp-low.c.
10875 (OBS): Add rsp-low.o.
10876 (rsp-low.o): New target.
10878 2014-02-12 Tom Tromey <tromey@redhat.com>
10880 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10881 Include print-utils.h.
10882 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10883 (plongest, thirty_two, phex_nz): Remove.
10884 * Makefile.in (SFILES): Add common/print-utils.c.
10885 (OBS): Add print-utils.o.
10886 (print-utils-ipa.o): New target.
10887 (print-utils.o): New target.
10888 (IPA_OBJS): Add print-utils-ipa.o.
10890 2014-02-06 Tom Tromey <tromey@redhat.com>
10892 * Makefile.in (SFILES): Fix indentation.
10894 2014-02-05 Doug Evans <dje@google.com>
10896 * linux-low.c (linux_wait_for_event): Improve comment.
10897 (linux_wait_1): Keep current_inferior in sync with event_child.
10899 2014-01-22 Doug Evans <dje@google.com>
10901 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10903 2014-01-22 Doug Evans <dje@google.com>
10905 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10906 * configure: Regenerate.
10907 * config.in: Regenerate.
10908 * Makefile.in (SFILES): Add debug.c.
10909 (OBS): Add debug.o.
10910 * debug.c: New file.
10911 * debug.h: New file.
10912 * linux-aarch64-low.c (*): Update all debugging printfs to use
10913 debug_printf instead of fprintf.
10914 * linux-arm-low.c (*): Ditto.
10915 * linux-cris-low.c (*): Ditto.
10916 * linux-crisv32-low.c (*): Ditto.
10917 * linux-m32r-low.c (*): Ditto.
10918 * linux-sparc-low.c (*): Ditto.
10919 * linux-x86.c (*): Ditto.
10920 * linux-low.c (*): Ditto.
10921 (linux_wait_1): Add calls to debug_enter, debug_exit.
10922 (linux_wait): Remove redundant debugging printf.
10923 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10924 (linux_resume, unstop_all_lwps): Ditto.
10925 * mem-break.c (*): Update all debugging printfs to use
10926 debug_printf instead of fprintf.
10927 * remote-utils.c (*): Ditto.
10928 * thread-db.c (*): Ditto.
10929 * server.c #include <ctype.h>, "gdb_vecs.h".
10930 (debug_threads): Moved to debug.c.
10931 (*): Update all debugging printfs to use debug_printf instead of
10933 (start_inferior): Replace call to fflush with call to debug_flush.
10934 (monitor_show_help): Mention set debug-format.
10935 (parse_debug_format_options): New function.
10936 (handle_monitor_command): Handle "monitor set debug-format".
10937 (gdbserver_usage): Mention --debug-format.
10938 (main): Parse --debug-format.
10939 * server.h (debug_threads): Declaration moved to debug.h.
10940 #include "debug.h".
10941 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10942 trace_debug_1 that uses debug_printf.
10943 (tracepoint_look_up_symbols): Update all debugging printfs to use
10944 debug_printf instead of fprintf.
10946 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10948 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10951 2014-01-17 Pedro Alves <palves@redhat.com>
10954 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10955 defined after including gdb_proc_service.h.
10957 2014-01-16 Doug Evans <dje@google.com>
10959 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10960 (match_dll): Use it.
10962 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10964 * target.h (target_ops) <read_btrace>: Change parameters and
10965 return type to allow error reporting.
10966 * server.c (handle_qxfer_btrace): Support delta reads. Pass
10967 trace reading errors on.
10968 * linux-low.c (linux_low_read_btrace): Pass trace reading
10970 (linux_low_disable_btrace): New.
10972 2014-01-15 Doug Evans <dje@google.com>
10974 * inferiors.c (thread_id_to_gdb_id): Delete.
10975 * inferiors.h (thread_id_to_gdb_id): Delete.
10977 2014-01-13 Eli Zaretskii <eliz@gnu.org>
10979 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10980 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10983 2014-01-08 Pedro Alves <palves@redhat.com>
10985 * server.c (handle_status): Don't discard previous queued stop
10986 replies or thread's pending status here.
10987 (main) <disconnection>: Do it here instead.
10989 2014-01-08 Pedro Alves <palves@redhat.com>
10991 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10992 * server.c (visit_actioned_threads, handle_pending_status): New
10994 (handle_v_cont): Factor out parts to ...
10995 (resume): ... this new function. If in all-stop, and a thread
10996 being resumed has a pending status, report it without actually
10998 (myresume): Adjust to use the new 'resume' function.
10999 (clear_pending_status_callback, set_pending_status_callback)
11000 (find_status_pending_thread_callback): New functions.
11001 (handle_status): Handle the case of multiple threads having
11002 interesting statuses to report. Report threads' real last signal
11003 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11004 with an interesting thread to report the status for, instead of
11005 always reporting the status of the first thread.
11007 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11009 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11010 * gdbreplay.c (gdbreplay_version): Likewise.
11012 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11014 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11015 iov.iov_len with the real length in use.
11017 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11019 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11020 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11021 for all targets that use win32-low.c.
11022 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11023 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11025 2013-12-13 Pedro Alves <palves@redhat.com>
11027 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11028 if equal to TARGET_WAITKIND_LOADED.
11029 * win32-low.c (cached_status): New static global.
11030 (win32_wait): Add declaration.
11031 (do_initial_child_stuff): Flush all initial pending debug events
11032 up to the initial breakpoint.
11033 (win32_wait): If CACHED_STATUS was set, return that instead
11034 of doing a real wait. Remove the code resuming the execution
11035 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11036 during the initial phase. Also remove the code changing
11037 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11038 TARGET_WAITKIND_STOPPED.
11040 2013-12-11 Yao Qi <yao@codesourcery.com>
11042 * notif.c (handle_notif_ack): Return 0 if no notification
11045 2013-11-20 Doug Evans <dje@google.com>
11047 * linux-low.c (linux_set_resume_request): Fix comment.
11049 2013-11-20 Doug Evans <dje@google.com>
11051 * linux-low.c (resume_status_pending_p): Tweak comment.
11053 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11055 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11056 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11057 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11058 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11059 (srv_amd64_regobj): Add amd64-mpx.o.
11060 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11061 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11062 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11063 * i387-fp.c (num_pl_bnd_register) Added constant.
11064 (num_pl_bnd_cfg_registers) Added constant.
11065 (struct i387_xsave) Added reserved area and MPX fields.
11066 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11067 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11069 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11070 (init_registers_amd64_mpx_linux): Declare new function.
11071 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11072 (x86_64_regmap): Add MPX registers.
11073 (x86_linux_read_description): Add MPX case.
11074 (initialize_low_arch): Initialize MPX targets.
11076 2013-11-18 Tom Tromey <tromey@redhat.com>
11078 * configure: Rebuild.
11079 * configure.ac: Don't check for stdlib.h.
11080 * gdbreplay.c: Unconditionally include stdlib.h.
11082 2013-11-18 Tom Tromey <tromey@redhat.com>
11084 * config.in: Rebuild.
11085 * configure: Rebuild.
11086 * configure.ac: Don't use AC_HEADER_DIRENT.
11088 2013-11-18 Tom Tromey <tromey@redhat.com>
11090 * server.h: Don't check HAVE_STRING_H.
11091 * gdbreplay.c: Don't check HAVE_STRING_H.
11092 * configure: Rebuild.
11094 2013-11-18 Tom Tromey <tromey@redhat.com>
11096 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11099 2013-11-08 Tom Tromey <tromey@redhat.com>
11101 * configure, config.in: Rebuild.
11102 * configure.ac: Remove unused configury.
11104 2013-11-08 Tom Tromey <tromey@redhat.com>
11106 * acinclude.m4: Include common.m4, codeset.m4.
11107 * configure, config.in: Rebuild.
11108 * configure.ac: Use GDB_AC_COMMON.
11110 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11112 * linux-s390-low.c (HWCAP_S390_TE): New define.
11113 (s390_arch_setup): Consider the TE field in the HWCAP for
11114 determining 'have_regset_tdb'.
11116 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11119 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11122 2013-10-02 Pedro Alves <palves@redhat.com>
11124 * server.c (process_serial_event): Don't output "GDBserver
11125 exiting" if GDB is connected through stdio.
11126 * target.c (mywait): Likewise, be silent if GDB is connected
11129 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11131 * lynx-low.c (lynx_add_threads_after_attach): New function.
11132 (lynx_attach): Remove call to add_thread. Add call to
11133 lynx_add_threads_after_attach instead.
11135 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11137 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11138 * config.in, configure: Regenerated.
11140 2013-09-18 Yao Qi <yao@codesourcery.com>
11143 * server.c (start_inferior): Clear 'resume_info'.
11145 2013-09-16 Jiong Wang <jiwang@tilera.com>
11147 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11150 2013-09-16 Jiong Wang <jiwang@tilera.com>
11152 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11153 linux-tile-low.o to srv_tgtobj.
11155 2013-09-16 Will Newton <will.newton@linaro.org>
11157 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11160 2013-09-06 Pedro Alves <palves@redhat.com>
11162 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11163 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11164 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11165 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11166 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11167 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11169 2013-09-06 Pedro Alves <palves@redhat.com>
11171 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11172 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11174 2013-09-06 Pedro Alves <palves@redhat.com>
11176 * linux-amd64-ipa.c: Include tracepoint.h.
11177 * linux-i386-ipa.c: Include tracepoint.h.
11179 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11181 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11182 (ps_get_thread_area): New function.
11184 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11186 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11187 (initialize_low_arch): Call init_registers_crisv32 rather than
11188 init_register_crisv32.
11190 2013-09-05 Pedro Alves <palves@redhat.com>
11192 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11194 * hostio.h: ... this new file.
11195 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11196 win32-low.c: Include hostio.h.
11198 2013-09-05 Pedro Alves <palves@redhat.com>
11200 * server.h (gdb_client_data, handler_func, callback_handler_func)
11201 (delete_file_handler, add_file_handler, append_callback_event)
11202 (delete_callback_event, start_event_loop, initialize_event_loop):
11203 Move to event-loop.h and include it.
11204 * event-loop.h: New file.
11206 2013-09-05 Pedro Alves <palves@redhat.com>
11208 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11209 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11210 (loaded_dll, unloaded_dll): Move to ...
11211 * dll.h: ... this new file.
11212 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11214 2013-09-05 Pedro Alves <palves@redhat.com>
11216 * server.h (current_process, get_thread_process, all_processes)
11217 (add_inferior_to_list, for_each_inferior, current_inferior)
11218 (remove_inferior, add_process, remove_process, find_process_pid)
11219 (have_started_inferiors_p, have_attached_inferiors_p)
11220 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11221 (clear_inferiors, find_inferior, find_inferior_id)
11222 (inferior_target_data, set_inferior_target_data)
11223 (inferior_regcache_data, set_inferior_regcache_data): Move to
11224 inferiors.h, and include it.
11225 * inferiors.h: New file.
11227 2013-09-05 Pedro Alves <palves@redhat.com>
11229 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11233 2013-09-05 Pedro Alves <palves@redhat.com>
11235 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11237 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11238 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11239 (handle_tracepoint_general_set, handle_tracepoint_query)
11240 (tracepoint_finished_step, tracepoint_was_hit)
11241 (release_while_stepping_state_list, current_traceframe)
11242 (in_readonly_region, traceframe_read_mem)
11243 (fetch_traceframe_registers, traceframe_read_sdata)
11244 (traceframe_read_info, struct fast_tpoint_collect_status)
11245 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11246 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11247 (supply_fast_tracepoint_registers)
11248 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11249 (ipa_tdesc, claim_trampoline_space)
11250 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11251 (agent_mem_read, agent_get_trace_state_variable_value)
11252 (agent_set_trace_state_variable_value, agent_tsv_read)
11253 (agent_mem_read_string, get_raw_reg_func_addr)
11254 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11255 * tracepoint.h: ... this new file.
11257 2013-09-05 Pedro Alves <palves@redhat.com>
11259 * server.h (perror_with_name, error, fatal, warning, paddress)
11260 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11262 * utils.h: New file.
11264 2013-09-05 Pedro Alves <palves@redhat.com>
11266 * server.h (remote_debug, noack_mode, transport_is_reliable)
11267 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11268 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11269 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11270 (write_enn, initialize_async_io, enable_async_io)
11271 (disable_async_io, check_remote_input_interrupt_request)
11272 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11273 (dead_thread_notify, prepare_resume_reply)
11274 (decode_address_to_semicolon, decode_address, decode_m_packet)
11275 (decode_M_packet, decode_X_packet, decode_xfer_write)
11276 (decode_search_memory_packet, unhexify, hexify)
11277 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11278 (look_up_one_symbol, relocate_instruction)
11279 (monitor_output): Move to remote-utils.h, and include it.
11280 * remote-utils.h: New file.
11282 2013-09-05 Pedro Alves <palves@redhat.com>
11284 * server.h (_): Delete.
11286 2013-09-02 Pedro Alves <palves@redhat.com>
11288 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11289 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11291 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11293 2013-09-02 Pierre Muller <muller@sourceware.org>
11295 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11296 or WriteProcessMemory complete successfully and handle
11297 ERROR_PARTIAL_COPY error.
11299 2013-09-02 Pedro Alves <palves@redhat.com>
11301 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11302 error instead of EIO.
11304 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11307 * linux-low.c: Include filestuff.h.
11308 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11309 * lynx-low.c: Include filestuff.h.
11310 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11311 * server.c: Include filestuff.h.
11312 (main): Call notice_open_fds.
11313 * spu-low.c: Include filestuff.h.
11314 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11316 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11318 * Makefile.in: Explain why ../target and ../nat are not
11319 listed as include file search paths.
11320 (linux-waitpid.o): New object file rule.
11321 * configure.srv (srv_native_linux_obj): New variable.
11322 Replace all occurrences of linux native object files with
11323 $srv_native_linux_obj.
11324 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11325 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11326 (linux_enable_event_reporting): Remove declaration.
11327 (my_waitpid): Moved to common/linux-waitpid.c.
11328 (linux_wait_for_event): Pass ptid when calling
11329 linux_enable_event_reporting.
11330 (linux_supports_tracefork_flag): Remove.
11331 (linux_enable_event_reporting): Likewise.
11332 (linux_tracefork_grandchild): Remove.
11333 (STACK_SIZE): Moved to common/linux-ptrace.c.
11334 (linux_tracefork_child): Remove.
11335 (linux_test_for_tracefork): Remove.
11336 (linux_look_up_symbols): Call linux_supports_traceclone.
11337 (initialize_low): Remove call to linux_test_for_tracefork.
11338 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11339 common/linux-ptrace.h.
11340 (PTRACE_TYPE_ARG4): Likewise.
11341 Include linux-ptrace.h.
11343 2013-08-21 Pedro Alves <palves@redhat.com>
11345 * config.in: Renegerate.
11347 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11349 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11350 (SFILES): Remove $(srcdir)/common/target-common.c and
11351 add $(srcdir)/target/waitstatus.c.
11352 (OBS): Remove target-common.o and add waitstatus.o.
11353 (server_h): Remove $(srcdir)/../common/target-common.h and
11354 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11355 and $(srcdir)/../target/waitstatus.h.
11356 (target-common.o): Remove.
11357 (waitstatus.o): New target object file.
11358 * target.h: Do not include target-common.h and
11359 include target/resume.h, target/wait.h and
11360 target/waitstatus.h.
11362 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11364 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11365 to PTRACE_TYPE_ARG3.
11366 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11367 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11369 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11370 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11372 2013-07-27 Jie Zhang <jie@codesourcery.com>
11373 Daniel Jacobowitz <dan@codesourcery.com>
11374 Yao Qi <yao@codesourcery.com>
11376 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11377 (mips-linux-watch.o): New rule.
11378 (mips_linux_watch_h): New variable.
11379 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11381 * linux-mips-low.c: Include mips-linux-watch.h.
11382 (struct arch_process_info, struct arch_lwp_info): New.
11383 (update_watch_registers_callback): New function.
11384 (mips_linux_new_process, mips_linux_new_thread) New functions.
11385 (mips_linux_prepare_to_resume, mips_insert_point): New
11387 (mips_remove_point, mips_stopped_by_watchpoint): New
11389 (rsp_bp_type_to_target_hw_bp_type): New function.
11390 (mips_stopped_data_address): New function.
11391 (the_low_target): Add watchpoint support functions.
11393 2013-07-27 Yao Qi <yao@codesourcery.com>
11395 * i386-low.c: Include break-common.h.
11396 (enum target_hw_bp_type): Remove.
11398 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11400 * Makefile.in (SFILES): /common/target-common.c.
11401 (OBS): Add target-common.o.
11402 (server_h): Add $(srcdir)/../common/target-common.h.
11403 (target-common.o): New target.
11404 * server.c (queue_stop_reply_callback): Free
11405 status string after use.
11406 * target.c (target_waitstatus_to_string): Remove.
11407 * target.h: Include target-common.h.
11408 (resume_kind): Likewise.
11409 (target_waitkind): Likewise.
11410 (target_waitstatus): Likewise.
11411 (TARGET_WNOHANG): Likewise.
11413 2013-07-04 Yao Qi <yao@codesourcery.com>
11415 * Makefile.in (host_alias): Use @host_noncanonical@.
11416 (target_alias): Use @target_noncanonical@.
11417 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11418 ACX_NONCANONICAL_HOST.
11419 * configure: Regenerated.
11422 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11424 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11425 * configure: Rebuild.
11426 * Makefile.in (version_host, version_target): Get from configure.
11427 (version.c): Use $(version_host) and $(version_target).
11429 2013-07-03 Pedro Alves <palves@redhat.com>
11431 * Makefile.in (config.status): Depend on development.sh.
11432 * acinclude.m4: Include libmcheck.m4.
11433 * configure: Regenerate.
11435 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11437 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11438 attribute inside the parentheses.
11439 (winapi_DebugSetProcessKillOnExit): Ditto.
11440 (winapi_DebugBreakProcess): Ditto.
11441 (winapi_GenerateConsoleCtrlEvent): Ditto.
11443 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11445 * notif.h (notif_event): Add a dummy member to avoid compiler
11448 2013-07-01 Pedro Alves <palves@redhat.com>
11450 * hostio.c (HOSTIO_PATH_MAX): Define.
11451 (require_filename, handle_open, handle_unlink, handle_readlink):
11454 2013-07-01 Pedro Alves <palves@redhat.com>
11456 * server.h: Include "pathmax.h".
11457 * linux-low.c: Don't include sys/param.h.
11458 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11460 * win32-low.c: Don't include sys/param.h.
11461 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11463 2013-07-01 Pedro Alves <palves@redhat.com>
11465 * event-loop.c: Don't check HAVE_UNISTD_H before including
11467 * gdbreplay.c: Likewise.
11468 * remote-utils.c: Likewise.
11469 * server.c: Likewise.
11470 * configure.ac: Don't check for unistd.h.
11471 * configure: Regenerate.
11473 2013-06-28 Tom Tromey <tromey@redhat.com>
11475 * Makefile.in (version.c): Use version.in, not
11478 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11480 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11481 * configure: Rebuild.
11482 * Makefile.in (version_host, version_target): Get from configure.
11483 (version.c): Use $(version_host) and $(version_target).
11485 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11487 Fix trace-status to output user name without trailing colon.
11488 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11490 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11492 Fix trace-status to output proper start-time and stop-time.
11493 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11494 output start time and stop time in hex as gdb expects.
11496 2013-06-26 Pedro Alves <pedro@codesourcery.com>
11498 * tracepoint.c (build_traceframe_info_xml): Output trace state
11499 variables present in the trace buffer.
11501 2013-06-24 Tom Tromey <tromey@redhat.com>
11503 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11505 (version.o): Remove.
11506 * gdbreplay.c: Include version.h.
11507 (version, host_name): Don't declare.
11508 * server.h: Include version.h.
11509 (version, host_name): Don't declare.
11511 2013-06-12 Pedro Alves <palves@redhat.com>
11513 * linux-x86-low.c (linux_is_elf64): Delete global.
11514 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11515 with local linux_pid_exe_is_elf_64_file use.
11517 2013-06-11 Pedro Alves <palves@redhat.com>
11519 * linux-low.c (regset_disabled, disable_regset): New functions.
11520 (regsets_fetch_inferior_registers)
11521 (regsets_store_inferior_registers): Use them.
11522 (initialize_regsets_info); Don't allocate the disabled_regsets
11524 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11527 2013-06-11 Pedro Alves <palves@redhat.com>
11529 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11532 2013-06-11 Pedro Alves <palves@redhat.com>
11534 * linux-x86-low.c (initialize_low_arch): Call
11535 init_registers_x32_avx_linux.
11537 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11539 Fix compatibility with Android Bionic.
11540 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11543 2013-06-07 Pedro Alves <palves@redhat.com>
11546 * Makefile.in (OBS): Add tdesc.o.
11547 (IPA_OBJS): Add tdesc-ipa.o.
11548 (tdesc-ipa.o): New rule.
11549 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11551 * linux-low.c (new_inferior): Delete.
11552 (disabled_regsets, num_regsets): Delete.
11553 (linux_add_process): Adjust to set the new per-process
11555 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11556 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11557 was a stop. When calling arch_setup, switch the current inferior
11558 to the thread that got an event.
11559 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11560 (regsets_fetch_inferior_registers)
11561 (regsets_store_inferior_registers): New regsets_info parameter.
11563 (linux_register_in_regsets): New regs_info parameter. Adjust to
11565 (register_addr, fetch_register, store_register): New usrregs_info
11566 parameter. Adjust to use it.
11567 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11568 parameter regs_info. Adjust to use it.
11569 (linux_fetch_registers): Get the current inferior's regs_info, and
11571 (linux_store_registers): Ditto.
11572 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11573 (initialize_low): Don't initialize the target_regsets here. Call
11574 initialize_low_arch.
11575 * linux-low.h (target_regsets): Delete declaration.
11576 (struct regsets_info): New.
11577 (struct usrregs_info): New.
11578 (struct regs_info): New.
11579 (struct process_info_private) <new_inferior>: New field.
11580 (struct linux_target_ops): Delete the num_regs, regmap, and
11581 regset_bitmap fields. New field regs_info.
11582 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11583 * i387-fp.c (num_xmm_registers): Delete.
11584 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11585 calls to new interface.
11586 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11587 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11588 Infer the number of xmm registers from the regcache's target
11590 * i387-fp.h (num_xmm_registers): Delete.
11591 * inferiors.c (add_thread): Don't install the thread's regcache
11593 * proc-service.c (gregset_info): Fetch the current inferior's
11594 regs_info. Adjust to use it.
11595 * regcache.c: Include tdesc.h.
11596 (register_bytes, reg_defs, num_registers)
11597 (gdbserver_expedite_regs): Delete.
11598 (get_thread_regcache): If the thread doesn't have a regcache yet,
11599 create one, instead of aborting gdbserver.
11600 (regcache_invalidate_one): Rename to ...
11601 (regcache_invalidate_thread): ... this.
11602 (regcache_invalidate_one): New.
11603 (regcache_invalidate): Only invalidate registers of the current
11605 (init_register_cache): Add target_desc parameter, and use it.
11606 (new_register_cache): Ditto. Assert the target description has a
11607 non zero registers_size.
11608 (regcache_cpy): Add assertions. Adjust.
11609 (realloc_register_cache, set_register_cache): Delete.
11610 (registers_to_string, registers_from_string): Adjust.
11611 (find_register_by_name, find_regno, find_register_by_number)
11612 (register_cache_size): Add target_desc parameter, and use it.
11613 (free_register_cache_thread, free_register_cache_thread_one)
11614 (regcache_release, register_cache_size): New.
11615 (register_size): Add target_desc parameter, and use it.
11616 (register_data, supply_register, supply_register_zeroed)
11617 (supply_regblock, supply_register_by_name, collect_register)
11618 (collect_register_as_string, collect_register_by_name): Adjust.
11619 * regcache.h (struct target_desc): Forward declare.
11620 (struct regcache) <tdesc>: New field.
11621 (init_register_cache, new_register_cache): Add target_desc
11623 (regcache_invalidate_thread): Declare.
11624 (regcache_invalidate_one): Delete declaration.
11625 (regcache_release): Declare.
11626 (find_register_by_number, register_cache_size, register_size)
11627 (find_regno): Add target_desc parameter.
11628 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11630 * remote-utils.c: Include tdesc.h.
11631 (outreg, prepare_resume_reply): Adjust.
11632 * server.c: Include tdesc.h.
11633 (gdbserver_xmltarget): Delete declaration.
11634 (get_features_xml, process_serial_event): Adjust.
11635 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11637 (struct process_info) <tdesc>: New field.
11638 (ipa_tdesc): Declare.
11639 * tdesc.c: New file.
11640 * tdesc.h: New file.
11641 * tracepoint.c: Include tdesc.h.
11642 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11643 (get_context_regcache): Adjust to pass ipa_tdesc down.
11644 (do_action_at_tracepoint): Adjust to get the register cache size
11645 from the context regcache's description.
11646 (traceframe_walk_blocks): Adjust to get the register cache size
11647 from the current trace frame's description.
11648 (traceframe_get_pc): Adjust to get current trace frame's
11649 description and pass it down.
11650 (gdb_collect): Adjust to get the register cache size from the
11652 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11653 (gdbserver_xmltarget): Delete.
11654 (initialize_low_tracepoint): Set the ipa's target description.
11655 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11656 (initialize_low_tracepoint): Set the ipa's target description.
11657 * linux-x86-low.c: Include tdesc.h.
11658 [__x86_64__] (is_64bit_tdesc): New.
11659 (ps_get_thread_area, x86_get_thread_area): Use it.
11660 (i386_cannot_store_register): Rename to ...
11661 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11662 (i386_cannot_fetch_register): Rename to ...
11663 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11664 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11666 (target_regsets): Rename to ...
11667 (x86_regsets): ... this.
11668 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11670 (x86_siginfo_fixup): Use is_64bit_tdesc.
11671 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11672 (tdesc_x32_avx_linux, tdesc_x32_linux)
11673 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11675 (x86_linux_update_xmltarget): Delete.
11676 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11677 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11678 (AMD64_LINUX_USER64_CS): New.
11679 (x86_linux_read_description): New, based on
11680 x86_linux_update_xmltarget.
11681 (same_process_callback): New.
11682 (x86_arch_setup_process_callback): New.
11683 (x86_linux_update_xmltarget): New.
11684 (x86_regsets_info): New.
11685 (amd64_linux_regs_info): New.
11686 (i386_linux_usrregs_info): New.
11687 (i386_linux_regs_info): New.
11688 (x86_linux_regs_info): New.
11689 (x86_arch_setup): Reimplement.
11690 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11691 (x86_emit_ops): Ditto.
11692 (the_low_target): Adjust. Install x86_linux_regs_info,
11693 x86_cannot_fetch_register, and x86_cannot_store_register.
11694 (initialize_low_arch): New.
11695 * linux-ia64-low.c (tdesc_ia64): Declare.
11696 (ia64_fetch_register): Adjust.
11697 (ia64_usrregs_info, regs_info): New globals.
11698 (ia64_regs_info): New function.
11699 (the_low_target): Adjust.
11700 (initialize_low_arch): New function.
11701 * linux-sparc-low.c (tdesc_sparc64): Declare.
11702 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11704 (sparc_arch_setup): New function.
11705 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11706 (the_low_target): Adjust.
11707 (initialize_low_arch): New function.
11708 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11709 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11710 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11711 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11712 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11713 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11714 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11715 (tdesc_powerpc_isa205_vsx64l): Declare.
11716 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11717 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11718 (ppc_set_pc, ppc_get_hwcap): Adjust.
11719 (ppc_usrregs_info): Forward declare.
11720 (!__powerpc64__) ppc_regmap_adjusted: New global.
11721 (ppc_arch_setup): Adjust to the current process'es target
11723 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11724 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11725 (ppc_store_evrregset): Adjust.
11726 (target_regsets): Rename to ...
11727 (ppc_regsets): ... this, and make static.
11728 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11729 (ppc_regs_info): New function.
11730 (the_low_target): Adjust.
11731 (initialize_low_arch): New function.
11732 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11733 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11734 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11735 (tdesc_s390x_linux64v2): Declare.
11736 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11737 (s390_fill_gregset, s390_store_last_break): Adjust.
11738 (target_regsets): Rename to ...
11739 (s390_regsets): ... this, and make static.
11740 (s390_get_pc, s390_set_pc): Adjust.
11741 (s390_get_hwcap): New target_desc parameter, and use it.
11742 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11743 (s390_arch_setup): Adjust to set the current process'es target
11744 description. Don't adjust the regmap.
11745 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11746 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11747 (regs_info_3264): New globals.
11748 (s390_regs_info): New function.
11749 (the_low_target): Adjust.
11750 (initialize_low_arch): New function.
11751 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11752 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11753 [__mips64] (init_registers_mips_linux)
11754 (init_registers_mips_dsp_linux): Delete defines.
11755 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11756 (have_dsp): New global.
11757 (mips_read_description): New, based on mips_arch_setup.
11758 (mips_arch_setup): Reimplement.
11759 (get_usrregs_info): New function.
11760 (mips_cannot_fetch_register, mips_cannot_store_register)
11761 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11762 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11763 (target_regsets): Rename to ...
11764 (mips_regsets): ... this, and make static.
11765 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11766 (dsp_regs_info, regs_info): New globals.
11767 (mips_regs_info): New function.
11768 (the_low_target): Adjust.
11769 (initialize_low_arch): New function.
11770 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11771 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11773 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11774 (arm_read_description): New, with bits factored from
11776 (arm_arch_setup): Reimplement.
11777 (target_regsets): Rename to ...
11778 (arm_regsets): ... this, and make static.
11779 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11780 (arm_regs_info): New function.
11781 (the_low_target): Adjust.
11782 (initialize_low_arch): New function.
11783 * linux-m68k-low.c (tdesc_m68k): Declare.
11784 (target_regsets): Rename to ...
11785 (m68k_regsets): ... this, and make static.
11786 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11787 (m68k_regs_info): New function.
11788 (m68k_arch_setup): New function.
11789 (the_low_target): Adjust.
11790 (initialize_low_arch): New function.
11791 * linux-sh-low.c (tdesc_sharch): Declare.
11792 (target_regsets): Rename to ...
11793 (sh_regsets): ... this, and make static.
11794 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11795 (sh_regs_info, sh_arch_setup): New functions.
11796 (the_low_target): Adjust.
11797 (initialize_low_arch): New function.
11798 * linux-bfin-low.c (tdesc_bfin): Declare.
11799 (bfin_arch_setup): New function.
11800 (bfin_usrregs_info, regs_info): New globals.
11801 (bfin_regs_info): New function.
11802 (the_low_target): Adjust.
11803 (initialize_low_arch): New function.
11804 * linux-cris-low.c (tdesc_cris): Declare.
11805 (cris_arch_setup): New function.
11806 (cris_usrregs_info, regs_info): New globals.
11807 (cris_regs_info): New function.
11808 (the_low_target): Adjust.
11809 (initialize_low_arch): New function.
11810 * linux-cris-low.c (tdesc_crisv32): Declare.
11811 (cris_arch_setup): New function.
11812 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11813 (cris_regs_info): New function.
11814 (the_low_target): Adjust.
11815 (initialize_low_arch): New function.
11816 * linux-m32r-low.c (tdesc_m32r): Declare.
11817 (m32r_arch_setup): New function.
11818 (m32r_usrregs_info, regs_info): New globals.
11819 (m32r_regs_info): Adjust.
11820 (initialize_low_arch): New function.
11821 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11822 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11823 (tic6x_usrregs_info): Forward declare.
11824 (tic6x_read_description): New function, based on ...
11825 (tic6x_arch_setup): ... this. Reimplement.
11826 (target_regsets): Rename to ...
11827 (tic6x_regsets): ... this, and make static.
11828 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11829 (tic6x_regs_info): New function.
11830 (the_low_target): Adjust.
11831 (initialize_low_arch): New function.
11832 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11833 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11834 (target_regsets): Rename to ...
11835 (xtensa_regsets): ... this, and make static.
11836 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11838 (xtensa_arch_setup, xtensa_regs_info): New functions.
11839 (the_low_target): Adjust.
11840 (initialize_low_arch): New function.
11841 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11842 (nios2_arch_setup): Set the current process'es tdesc.
11843 (target_regsets): Rename to ...
11844 (nios2_regsets): ... this.
11845 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11846 (nios2_regs_info): New function.
11847 (the_low_target): Adjust.
11848 (initialize_low_arch): New function.
11849 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11850 (aarch64_arch_setup): Set the current process'es tdesc.
11851 (target_regsets): Rename to ...
11852 (aarch64_regsets): ... this.
11853 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11854 (aarch64_regs_info): New function.
11855 (the_low_target): Adjust.
11856 (initialize_low_arch): New function.
11857 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11859 (target_regsets): Rename to ...
11860 (tile_regsets): ... this.
11861 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11862 (tile_regs_info): New function.
11863 (tile_arch_setup): Set the current process'es tdesc.
11864 (the_low_target): Adjust.
11865 (initialize_low_arch): New function.
11866 * spu-low.c (tdesc_spu): Declare.
11867 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11868 * win32-arm-low.c (tdesc_arm): Declare.
11869 (arm_arch_setup): New function.
11870 (the_low_target): Install arm_arch_setup instead of
11871 init_registers_arm.
11872 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11873 (init_windows_x86): Rename to ...
11874 (i386_arch_setup): ... this. Set `win32_tdesc'.
11875 (the_low_target): Adjust.
11876 * win32-low.c (win32_tdesc): New global.
11877 (child_add_thread): Don't create the thread cache here.
11878 (do_initial_child_stuff): Set the new process'es tdesc.
11879 * win32-low.h (struct target_desc): Forward declare.
11880 (win32_tdesc): Declare.
11881 * lynx-i386-low.c (tdesc_i386): Declare global.
11882 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11883 * lynx-low.c (lynx_tdesc): New global.
11884 (lynx_add_process): Set the new process'es tdesc.
11885 * lynx-low.h (struct target_desc): Forward declare.
11886 (lynx_tdesc): Declare global.
11887 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11888 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11889 * nto-low.c (nto_tdesc): New global.
11890 (do_attach): Set the new process'es tdesc.
11891 * nto-low.h (struct target_desc): Forward declare.
11892 (nto_tdesc): Declare.
11893 * nto-x86-low.c (tdesc_i386): Declare.
11894 (nto_x86_arch_setup): Set `nto_tdesc'.
11896 2013-06-04 Gary Benson <gbenson@redhat.com>
11898 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11899 to qSupported response when appropriate.
11900 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11901 with nonzero-length annex.
11902 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11903 arguments supplied in annex.
11905 2013-05-31 Doug Evans <dje@google.com>
11908 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11909 64 bits in 64-cross-32 environment.
11911 2013-05-28 Pedro Alves <palves@redhat.com>
11913 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11914 (aarch64-without-fpu.c): Delete rule.
11915 * configure.srv (aarch64*-*-linux*): Remove references to
11916 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11917 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11920 2013-05-24 Pedro Alves <palves@redhat.com>
11922 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11923 instead of strchr/decode_address. Error if the range isn't split
11924 with a ','. Don't assume there's be a ':' in the action.
11926 2013-05-23 Yao Qi <yao@codesourcery.com>
11927 Pedro Alves <palves@redhat.com>
11929 * linux-low.c (lwp_in_step_range): New function.
11930 (linux_wait_1): If the thread was range stepping and stopped
11931 outside the stepping range, report the stop to GDB. Otherwise,
11932 continue stepping. Add range stepping debug output.
11933 (linux_set_resume_request): Copy the step range from the resume
11934 request to the lwp.
11935 (linux_supports_range_stepping): New.
11936 (linux_target_ops) <supports_range_stepping>: Set to
11937 linux_supports_range_stepping.
11938 * linux-low.h (struct linux_target_ops)
11939 <supports_range_stepping>: New field.
11940 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11941 * linux-x86-low.c (x86_supports_range_stepping): New.
11942 (the_low_target) <supports_range_stepping>: Set to
11943 x86_supports_range_stepping.
11944 * server.c (handle_v_cont): Handle 'r' action.
11945 (handle_v_requests): Append ";r" if the target supports range
11947 * target.h (struct thread_resume) <step_range_start,
11948 step_range_end>: New fields.
11949 (struct target_ops) <supports_range_stepping>:
11951 (target_supports_range_stepping): New macro.
11953 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11955 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11956 confusion in comment.
11958 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11960 * lynx-low.c (struct process_info_private): New type.
11961 (lynx_add_process): New function.
11962 (lynx_create_inferior, lynx_attach): Replace calls to
11963 add_process by calls to lynx_add_process.
11964 (lynx_resume): If PTID is null, then try using
11965 current_process()->private->last_wait_event_ptid.
11967 (lynx_clear_inferiors): Delete. The contents of that function
11968 has been inlined in lynx_mourn;
11969 (lynx_wait_1): Save the ptid in the process's private data.
11970 (lynx_mourn): Free the process' private data. Replace call
11971 to lynx_clear_inferiors by call to clear_inferiors.
11973 2013-05-17 Yao Qi <yao@codesourcery.com>
11975 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11978 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
11980 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11981 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11982 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11983 PT_TEXT_END_ADDR guards. Update comments.
11984 (linux_target_op) <read_offsets>: Conditionally define to
11985 linux_read_offsets if the target is UCLIBC and if it defines
11986 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11988 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11989 Andrew Jenner <andrew@codesourcery.com>
11991 * Makefile.in (SFILES): Add linux-nios2-low.c.
11992 (clean): Add action to delete nios2-linux.c.
11993 (nios2-linux.c): New rule.
11994 * configure.srv: Add nios2*-*-linux*.
11995 * linux-nios2-low.c: New.
11997 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
11999 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12001 2013-04-25 Hui Zhu <hui@codesourcery.com>
12004 * ax.c (ax_printf): Add fflush.
12006 2013-04-22 Tom Tromey <tromey@redhat.com>
12008 * Makefile.in (SFILES): Add filestuff.c.
12009 (OBS): Add filestuff.o.
12010 (filestuff.o): New target.
12011 * config.in, configure: Rebuild.
12012 * configure.ac: Check for fdwalk, pipe2.
12014 2013-04-17 Pedro Alves <palves@redhat.com>
12016 * configure.ac (USE_THREAD_DB): Delete variable.
12017 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12018 Don't AC_SUBST USE_THREAD_DB.
12019 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12020 * config.in, configure: Regenerate.
12022 2013-04-16 Pedro Alves <palves@redhat.com>
12024 * linux-low.h (struct lwp_info) <thread_known>: Move under
12025 the USE_THREAD_DB #ifdef.
12027 2013-04-16 Pedro Alves <palves@redhat.com>
12029 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12030 (linux-low.o): Delete rule.
12031 * linux-low.h: Always include "gdb_thread_db.h" instead of
12032 conditionally including thread_db.h.
12033 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12036 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12038 * Makefile.in (install-only): Fix make install regression.
12040 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12042 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12043 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12045 * gdbserver.1: Remove.
12047 2013-03-22 Pedro Alves <palves@redhat.com>
12049 * linux-low.c (handle_extended_wait): Don't call
12050 linux_enable_event_reporting.
12052 2013-03-15 Tony Theodore <tonyt@logyst.com>
12055 * Makefile.in (SHELL): Use @SHELL@.
12057 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12059 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12062 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12064 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12065 Remove extraneous NULL element.
12067 2013-03-13 Yao Qi <yao@codesourcery.com>
12069 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12070 'V' block in trace frame.
12072 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12074 * target.h (struct target_ops): Add btrace ops.
12075 (target_supports_btrace): New macro.
12076 (target_enable_btrace): New macro.
12077 (target_disable_btrace): New macro.
12078 (target_read_btrace): New macro.
12079 * gdbthread.h (struct thread_info): Add btrace field.
12080 * server.c: Include btrace-common.h.
12081 (handle_btrace_general_set): New function.
12082 (handle_btrace_enable): New function.
12083 (handle_btrace_disable): New function.
12084 (handle_general_set): Call handle_btrace_general_set.
12085 (handle_qxfer_btrace): New function.
12086 (struct qxfer qxfer_packets[]): Add btrace entry.
12087 * inferiors.c (remove_thread): Disable btrace.
12088 * linux-low: Include linux-btrace.h.
12089 (linux_low_enable_btrace): New function.
12090 (linux_low_read_btrace): New function.
12091 (linux_target_ops): Add btrace ops.
12092 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12093 Add srv_linux_btrace=yes.
12094 (x86_64-*-linux*): Add linux-btrace.o.
12095 Add srv_linux_btrace=yes.
12096 * configure.ac: Define HAVE_LINUX_BTRACE.
12097 * config.in: Regenerated.
12098 * configure: Regenerated.
12100 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12102 * server.c (handle_qxfer): Preserve error message if -3 is
12104 (qxfer): Document the -3 return value.
12106 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12108 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12109 (linux_btrace_h): New variable.
12110 (linux-btrace.o): New rule.
12112 2013-03-08 Stan Shebs <stan@codesourcery.com>
12113 Hafiz Abid Qadeer <abidh@codesourcery.com>
12115 * tracepoint.c (trace_buffer_size): New global.
12116 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12117 (init_trace_buffer): Change to one-argument function. Allocate
12118 trace buffer memory.
12119 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12120 handle QTBuffer:size packet.
12121 (cmd_bigqtbuffer_size): New function.
12122 (initialize_tracepoint): Call init_trace_buffer with
12123 DEFAULT_TRACE_BUFFER_SIZE.
12124 * server.c (handle_query): Add QTBuffer:size in the
12127 2013-03-07 Yao Qi <yao@codesourcery.com>
12129 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12130 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12132 (cmd_qtsp): Adjust condition. Do post increment.
12133 Set cur_action and cur_step_action back to 0.
12135 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12138 * linux-low.c (linux_write_memory): Return early success if LEN is
12141 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12143 * configure.srv: Add x86_64-*-cygwin* as target.
12145 2013-02-28 Tom Tromey <tromey@redhat.com>
12147 * configure.ac: Invoke AC_SYS_LARGEFILE.
12148 * configure, config.in: Rebuild.
12150 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12152 * win32-low.c: Throughout, fix format strings and casts of
12153 printf-like functions to avoid type related warnings on all
12155 (get_child_debug_event): Print dwDebugEventCode as hex since
12156 that's how it's usually documented.
12158 2013-02-28 Yao Qi <yao@codesourcery.com>
12160 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12163 2013-02-27 Jiong Wang <jiwang@tilera.com>
12165 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12166 (reg-tilegx32.c): New rule.
12167 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12168 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12169 different register info initializer according to elf class.
12170 (init_registers_tilgx32): New function. The tilegx32 register info
12172 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12173 (tile_store_gregset): Likewise.
12175 2013-02-27 Yao Qi <yao@codesourcery.com>
12177 * server.c (process_point_options): Print debug message when
12178 debug_threads is true.
12180 2013-02-26 Yao Qi <yao@codesourcery.com>
12182 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12184 2013-02-19 Pedro Alves <palves@redhat.com>
12185 Kai Tietz <ktietz@redhat.com>
12189 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12190 instead of strtoul to extract address from packet.
12191 (process_serial_event) <'z'>: Likewise.
12193 2013-02-18 Yao Qi <yao@codesourcery.com>
12195 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12197 2013-02-14 Pedro Alves <palves@redhat.com>
12201 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12202 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12204 2013-02-14 Pedro Alves <palves@redhat.com>
12206 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12208 2013-02-14 Pedro Alves <palves@redhat.com>
12210 * tracepoint.c (save_string): Delete.
12211 (add_tracepoint_action): Use savestring instead of save_string.
12213 2013-02-12 Pedro Alves <palves@redhat.com>
12215 * linux-xtensa-low.c: Ditto.
12216 * xtensa-xtregs.c: Ditto.
12218 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12220 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12223 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12225 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12226 aarch64_num_wp_regs and aarch64_num_bp_regs to
12227 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12229 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12231 * linux-aarch64-low.c (ps_get_thread_area): Replace
12232 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12234 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12235 Marcus Shawcroft <marcus.shawcroft@arm.com>
12236 Nigel Stephens <nigel.stephens@arm.com>
12237 Yufeng Zhang <yufeng.zhang@arm.com>
12239 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12240 (aarch64.c, aarch64-without-fpu.c): New targets.
12241 * configure.srv (aarch64*-*-linux*): New.
12242 * linux-aarch64-low.c: New file.
12244 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12246 * linux-low.c (handle_extended_wait, linux_create_inferior)
12247 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12248 (dequeue_one_deferred_signal, linux_resume_one_thread)
12249 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12250 (linux_tracefork_grandchild, linux_test_for_tracefork)
12251 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12252 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12253 where the argument is 0.
12255 2013-01-25 Yao Qi <yao@codesourcery.com>
12257 * event-loop.c: Include "queue.h".
12258 (gdb_event_p): New typedef.
12259 (struct gdb_event) <next_event>: Remove.
12260 (event_queue): Change to QUEUE(gdb_event_p).
12261 (async_queue_event): Remove.
12262 (gdb_event_xfree): New.
12263 (initialize_event_loop): New.
12264 (process_event): Use API from QUEUE.
12265 (wait_for_event): Likewise.
12266 * server.c (main): Call initialize_event_loop.
12267 * server.h (initialize_event_loop): Declare.
12269 2013-01-18 Yao Qi <yao@codesourcery.com>
12271 * ax.h (struct eval_agent_expr_context): New.
12272 (gdb_eval_agent_expr): Update declaration.
12273 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12274 TFRAME. Add new argument CTX.
12275 * server.h (struct eval_agent_expr_context): Declare.
12276 (agent_mem_read, agent_tsv_read): Update declaration.
12277 (agent_mem_read_string): Likewise.
12278 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12279 (add_traceframe_block): Add new argument TPOINT.
12280 Increase TPOINT->traceframe_usage.
12281 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12282 eval_tracepoint_agent_expr.
12283 (condition_true_at_tracepoint): Likewise.
12284 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12285 (agent_mem_read_string, agent_tsv_read): Likewise.
12287 2013-01-16 Yao Qi <yao@codesourcery.com>
12289 * linux-low.c (linux_resume_one_lwp): Don't check
12290 'lwp->bp_reinsert != 0'.
12292 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12293 Pedro Alves <palves@redhat.com>
12295 * lynx-low.c (ptrace_request_to_str): Define a temporary
12296 macro and use it to simplify this function's implementation.
12298 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12300 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12303 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12305 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12307 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12309 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12311 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12313 * lynx-low.c (lynx_resume): Use the resume_info parameter
12314 to determine the ptid for the lynx_ptrace call, unless
12315 it is equal to minus_one_ptid, in which case we use the
12316 ptid of the current_inferior.
12317 (lynx_wait_1): After having received a thread create/exit
12318 event, resume the inferior's execution using the signaling
12319 thread's ptid, rather than the old ptid.
12321 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12323 * lynx-low.c (lynx_resume): Delete variable ret.
12325 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12327 * gdbreplay.c (gdbreplay_version): Update copyright year.
12328 * server.c (gdbserver_version): Likewise.
12330 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12332 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12335 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12337 * lynx-low.c (ptrace_request_to_str): Add handling for
12338 PTRACE_GETTRACESIG.
12340 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12342 * lynx-low.c (lynx_attach): Delete variable new_process.
12344 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12346 * lynx-low.c (lynx_create_inferior): Delete variable
12349 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12351 * lynx-low.c (ptrace_request_to_str): Do not handle
12352 PTRACE_GETTHREADLIST if this macro does not exist.
12354 2012-12-15 Yao Qi <yao@codesourcery.com>
12356 * Makefile.in (OBS): Add notif.o.
12357 * notif.c, notif.h: New.
12358 * server.c: Include "notif.h".
12359 (struct vstop_notif) <next>: Remove.
12361 (queue_stop_reply): Update.
12362 (push_event, send_next_stop_reply): Remove.
12363 (discard_queued_stop_replies): Update.
12364 (notif_stop): New variable.
12365 (handle_v_stopped): Remove.
12366 (handle_v_requests): Don't call handle_v_stopped. Call
12367 handle_ack_notif instead.
12368 (queue_stop_reply_callback): Call notif_event_enque instead
12369 of queue_stop_reply.
12370 (handle_status): Don't call send_next_stop_reply, call
12371 notif_write_event instead.
12372 (kill_inferior_callback): Likewise.
12373 (detach_or_kill_inferior_callback): Likewise.
12374 (main): Call initialize_notif.
12375 (process_serial_event): Call QUEUE_is_empty.
12376 (handle_target_event): Call notif_push instead of push event.
12377 * server.h (push_event): Remove declaration.
12379 2012-12-10 Tom Tromey <tromey@redhat.com>
12381 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12382 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12385 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12386 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12387 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12388 (amd64-linux-ipa.o, ax.o): Rewrite.
12389 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12390 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12391 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12392 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12393 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12394 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12395 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12396 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12397 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12398 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12399 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12400 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12401 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12402 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12403 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12404 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12405 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12406 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12407 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12408 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12409 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12410 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12411 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12412 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12413 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12414 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12415 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12416 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12417 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12418 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12419 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12420 (reg-tilegx.o): Remove.
12421 (all_object_files): New macro.
12422 Include .deps files.
12423 * aclocal.m4, configure: Rebuild.
12424 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12425 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12426 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12428 2012-12-05 Tom Tromey <tromey@redhat.com>
12431 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12433 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
12435 * configure.ac: Check for linux/perf_event.h.
12436 * config.in: Regenerated.
12437 * configure: Regenerated.
12439 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12441 * hostio.c (handle_readlink): Decrease buffer size
12442 parameter passed to readlink by one byte.
12444 2012-11-26 Yao Qi <yao@codesourcery.com>
12446 * configure.ac (build_warnings): Append '-Wempty-body'.
12447 * configure: Regenerated.
12448 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12451 2012-11-15 Pierre Muller <muller@sourceware.org>
12453 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12454 * config.in: Regenerate.
12455 * configure: Regenerate.
12456 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12457 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12458 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12459 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12461 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12462 instead of <sys/wait.h> header.
12463 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12465 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
12467 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12468 (various make rules): Remove -DGDBSERVER
12470 2012-11-09 Yao Qi <yao@codesourcery.com>
12472 * spu-low.c (current_ptid): Move it to ..
12473 * gdbthread.h: ... here. New.
12474 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12475 * server.c (myresume, process_serial_event): Likewise.
12476 * thread-db.c (thread_db_find_new_threads): Likewise.
12477 * tracepoint.c (run_inferior_command): Likewise.
12479 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
12481 * server.c (handle_search_memory_1): Include access length in
12484 2012-09-05 Michael Brandt <michael.brandt@axis.com>
12486 * linux-crisv32-low.c: Fix compile errors.
12488 2012-09-04 Yao Qi <yao@codesourcery.com>
12490 * tracepoint.c (cmd_qtsv): Adjust debug message.
12491 Don't check CUR_TPOINT.
12493 2012-08-28 Yao Qi <yao@codesourcery.com>
12495 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12496 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12497 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12498 Remove declarations of xmalloc, xreallloc, xstrdup and
12500 * Makefile.in (libiberty_h): New.
12501 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12502 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12504 2012-08-23 Yao Qi <yao@codesourcery.com>
12506 * server.h: Remove declaration of 'xsnprintf'.
12508 2012-08-22 Keith Seitz <keiths@redhat.com>
12510 * server.h: Include build-gnulib-gbserver/config.h.
12511 * gdbreplay.c: Likewise.
12513 2012-08-08 Doug Evans <dje@google.com>
12515 * Makefile.in (SFILES): Add gdb_vecs.c.
12516 (OBS): Add gdb_vecs.o.
12517 (gdb_vecs_h, host_defs_h): New variables.
12518 (thread-db.o): Add $(gdb_vecs_h) dependency.
12519 (gdb_vecs.o): New rule.
12520 * thread-db.c: #include "gdb_vecs.h".
12521 (thread_db_load_search): Use a vector to iterate over path elements.
12522 Handle text appearing after "$pdir".
12524 * configure.ac: Add check for strstr.
12525 * config.in: Regenerate.
12526 * configure: Regenerate.
12528 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12530 * hostio.c (handle_pread): If pread fails, fall back to attempting
12532 (handle_pwrite): Likewise for pwrite.
12534 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12536 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12537 between unsupported TYPE and unimplementable ADDR/LEN combination.
12538 (arm_insert_point): Act on new return value.
12540 2012-07-31 Pedro Alves <palves@redhat.com>
12542 * server.c (process_point_options): Only skip tokens if we find
12543 one that is unrecognized. Don't treat 'X' specially while
12544 skipping unrecognized tokens.
12546 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12548 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12549 to 4-byte-align HW breakpoint addresses for Thumb.
12551 2012-07-27 Yao Qi <yao@codesourcery.com>
12555 * server.h: Declare gdb_agent_about_to_close.
12556 * target.c (kill_inferior): Include "agent.h".
12557 New. Send command 'kill'.
12558 * target.h (kill_inferior): Removed macro.
12559 * tracepoint.c (gdb_agent_about_to_close): New.
12560 (gdb_agent_helper_thread): Handle command 'close'.
12561 Wait endlessly until the inferior stops.
12562 Install gdb_agent_remove_socket to atexit hook.
12563 (agent_socket_name): New static variable.
12564 (gdb_agent_socket_init): Replace local variable 'name' with
12565 'agent_socket_name'.
12566 (gdb_agent_remove_socket): New.
12568 2012-07-27 Yao Qi <yao@codesourcery.com>
12570 * server.c (process_point_options): Stop at 'X' when parsing.
12572 2012-07-19 Michael Eager <eager@eagercon.com>
12574 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
12576 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12577 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12578 hardware breakpoint.
12580 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12582 * gdbserver/linux-low.c (initialize_low): Call
12583 linux_ptrace_init_warnings.
12585 2012-07-02 Doug Evans <dje@google.com>
12587 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12590 2012-07-02 Stan Shebs <stan@codesourcery.com>
12592 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12593 (ax.o): Add it to build rule.
12595 (OBS): Add format.o.
12596 (IPA_OBS): Add format.o.
12597 * server.c (handle_query): Claim support for breakpoint commands.
12598 (process_point_options): Add command case.
12599 (process_serial_event): Leave running if there are printfs in
12601 * mem-break.h (any_persistent_commands): Declare.
12602 (add_breakpoint_commands): Declare.
12603 (gdb_no_commands_at_breakpoint): Declare.
12604 (run_breakpoint_commands): Declare.
12605 * mem-break.c (struct point_command_list): New struct.
12606 (struct breakpoint): New field command_list.
12607 (any_persistent_commands): New function.
12608 (add_commands_to_breakpoint): New function.
12609 (add_breakpoint_commands): New function.
12610 (gdb_no_commands_at_breakpoint): New function.
12611 (run_breakpoint_commands): New function.
12612 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12614 * ax.c: Include format.h.
12615 (ax_printf): New function.
12616 (gdb_eval_agent_expr): Add printf opcode.
12618 2012-06-13 Yao Qi <yao@codesourcery.com>
12620 * server.c (start_inferior): Remove duplicated writes to fields
12621 'last_resume_kind' and 'last_status' of 'current_inferior'.
12623 2012-06-12 Yao Qi <yao@codesourcery.com>
12624 Pedro Alves <palves@redhat.com>
12626 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12628 * server.c (handle_v_cont): Extend comment.
12630 2012-06-11 Yao Qi <yao@codesourcery.com>
12632 * linux-low.c (linux_attach): Add 'static'.
12634 2012-06-06 Yao Qi <yao@codesourcery.com>
12636 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12638 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12640 Fix gcc -flto compilation warning.
12641 * server.c (main): Make variable multi_mode and attach volatile.
12643 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12645 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12646 if the platform doesn't know about it.
12648 2012-05-30 Jeff Kenton <jkenton@tilera.com>
12650 * Makefile.in (SFILES): Add linux-tile-low.c.
12651 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12652 * configure.srv: Handle tilegx-*-linux*.
12653 * linux-tile-low.c: New file.
12655 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12657 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12659 2012-05-24 Pedro Alves <palves@redhat.com>
12663 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
12665 2012-05-24 Pedro Alves <palves@redhat.com>
12669 Replace target_signal with gdb_signal throughout.
12671 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12673 * linux-low.c (linux_store_registers): Avoid the copying sequence
12674 when no data has been retrieved by ptrace.
12676 2012-05-22 Will Deacon <will.deacon@arm.com>
12678 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12679 Include asm/ptrace.h.
12680 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12683 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12685 * linux-low.c (linux_store_registers): Don't re-retrieve data
12686 with ptrace that has already been obtained from /proc. Always
12687 copy any data retrieved with ptrace to the buffer supplied.
12689 2012-05-11 Yao Qi <yao@codesourcery.com>
12690 Pedro Alves <palves@redhat.com>
12692 * linux-low.c (enum stopping_threads_kind): New.
12693 (stopping_threads): Change type to `enum stopping_threads_kind'.
12694 (handle_extended_wait): If stopping and suspending threads, leave
12695 the new_lwp suspended too.
12696 (linux_wait_for_event): Adjust.
12697 (stop_all_lwps): Set `stopping_threads' to
12698 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12699 whether we're suspending threads or just stopping them. Assert no
12702 2012-04-29 Yao Qi <yao@codesourcery.com>
12704 * server.h: Move some code to ...
12705 * gdbthread.h: ... here. New.
12706 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12707 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12708 (nto-low.o, win32-low.o): Likewise.
12709 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12710 * regcache.c, remote-utils.c, server.c: Likewise.
12711 * target.c, tracepoint.c, win32-low.c: Likewise.
12713 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12715 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12716 (PTRACE_ARG4_TYPE): Likewise.
12717 (PTRACE_XFER_TYPE): Likewise.
12718 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12719 ptrace to PTRACE_ARG3_TYPE.
12720 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12721 (PTRACE_ARG4_TYPE): Likewise.
12722 (PTRACE_XFER_TYPE): Likewise.
12723 (linux_detach_one_lwp): Cast fourth argument of
12724 ptrace to long then PTRACE_ARG4_TYPE.
12725 (regsets_fetch_inferior_registers): Cast third argument of
12726 ptrace to long then PTRACE_ARG3_TYPE.
12727 (regsets_store_inferior_registers): Likewise.
12729 2012-04-20 Pedro Alves <palves@redhat.com>
12731 * configure: Regenerate.
12733 2012-04-19 Pedro Alves <palves@redhat.com>
12735 * Makefile.in (GNULIB_BUILDDIR): New.
12736 (LIBGNU, INCGNU, GNULIB_H): Adjust.
12737 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12738 (all, install-only, uninstall, clean-info, all-lib, clean): No
12739 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12740 (maintainer-clean realclean distclean): Use subdir_do.
12742 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
12743 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
12744 * acinclude.m4: Include acx_configure_dir.m4.
12745 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12746 calls. Call AC_PROG_RANLIB. Configure gnulib using
12749 (GNULIB_STDINT_H): Adjust.
12750 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12751 * gdbreplay.c: Include build-gnulib/config.h.
12752 * server.h: Likewise.
12753 * aclocal.m4: Regenerate.
12754 * config.in: Regenerate.
12755 * configure: Regenerate.
12757 2012-04-19 Pedro Alves <palves@redhat.com>
12759 * Makefile.in (LIBGNU, INCGNU): Adjust.
12760 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12761 (all, install-only, uninstall, clean-info, all-lib, clean)
12762 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12763 * configure.ac: Adjust AC_OUTPUT output.
12764 * aclocal.m4: Regenerate.
12765 * configure: Regenerate.
12767 2012-04-19 Pedro Alves <palves@redhat.com>
12769 * Makefile.in (generated_files): New.
12770 (server_h): Remove the explicit dependency on config.h, and depend
12771 on $generated_files.
12773 2012-04-19 Pedro Alves <palves@redhat.com>
12775 * Makefile.in (INCGNU): Add -Ignulib.
12777 2012-04-19 Pedro Alves <palves@redhat.com>
12779 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12780 (INCGNU): ... this, and spell out -I here.
12781 (GNULIB_LIB): Rename to ...
12782 (LIBGNU): ... this.
12783 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12785 2012-04-19 Pedro Alves <palves@redhat.com>
12787 * config.in: Regenerate.
12789 2012-04-19 Pedro Alves <palves@redhat.com>
12791 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12792 * server.h (memmem): Remove declaration.
12793 * config.in: Regenerate.
12794 * configure: Regenerate.
12796 2012-04-19 Yao Qi <yao@codesourcery.com>
12798 * Makefile.in (SFILES): Add common/vec.c.
12802 2012-04-19 Yao Qi <yao@codesourcery.com>
12804 * remote-utils.c (prepare_resume_reply): Replace with macro
12805 target_core_of_thread.
12806 * server.c (handle_qxfer_threads_proper): Likewise.
12807 * target.h (traget_core_of_thread): New macro.
12809 2012-04-18 Pedro Alves <palves@redhat.com>
12811 * aclocal.m4: Regenerate.
12812 * configure: Regenerate.
12814 2012-04-16 Yao Qi <yao@codesourcery.com>
12816 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12817 duplicated on address.
12819 2012-04-16 Yao Qi <yao@codesourcery.com>
12821 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12822 (struct tracepoint_action_ops) <send>: New field.
12823 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12824 (agent_expr_send, x_tracepoint_action_send): New.
12825 (l_tracepoint_action_send): New.
12826 (cmd_qtdp): Download and install tracepoint
12827 according to `use_agent'.
12828 (run_inferior_command): Add one more parameter `len'.
12830 (tracepoint_send_agent): New.
12831 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12833 2012-04-16 Yao Qi <yao@codesourcery.com>
12835 * tracepoint.c (download_tracepoints): Moved to ...
12836 (cmd_qtstart): ... here.
12838 2012-04-14 Yao Qi <yao@codesourcery.com>
12840 * tracepoint.c: Include inttypes.h.
12841 (struct collect_memory_action): Use sized types.
12842 (struct tracepoint): Likewise.
12843 (cmd_qtdp, stop_tracing): Update print specifiers.
12844 (cmd_qtp, response_tracepoint): Likewise.
12845 (collect_data_at_tracepoint): Likewise.
12846 (collect_data_at_step): Likewise.
12848 2012-04-14 Yao Qi <yao@codesourcery.com>
12850 Import gnulib module inttypes.
12851 * aclocal.m4, config.in, configure: Regenerated.
12853 2012-04-14 Yao Qi <yao@codesourcery.com>
12855 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12856 Makefile and config.status at last.
12858 2012-04-13 Yao Qi <yao@codesourcery.com>
12860 * tracepoint.c: Include stdint.h unconditionally.
12862 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12864 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12865 on BFD_HAVE_SYS_PROCFS_TYPE.
12866 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12867 * configure: Regenerate.
12868 * config.in: Likewise.
12870 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12872 * Makefile.in (clean): Also remove x32.c x32-linux.c
12873 x32-avx.c x32-avx-linux.c.
12874 (x32.o): New target.
12876 (x32-linux.o): Likewise.
12877 (x32-linux.c): Likewise.
12878 (x32-avx.o): Likewise.
12879 (x32-avx.c): Likewise.
12880 (x32-avx-linux.o): Likewise.
12881 (x32-avx-linux.c): Likewise.
12883 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12884 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12885 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12886 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12887 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12888 i386/x32-avx-linux.xml.
12890 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12891 (init_registers_x32_avx_linux): Likwise.
12892 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12893 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12895 2012-04-13 Pedro Alves <palves@redhat.com>
12897 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12898 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12899 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12900 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12903 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12905 * linux-x86-low.c (compat_x32_clock_t): New.
12906 (compat_x32_siginfo_t): Likewise.
12907 (compat_x32_siginfo_from_siginfo): Likewise.
12908 (siginfo_from_compat_x32_siginfo): Likewise.
12909 (linux_is_elf64): Likewise.
12910 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12911 and siginfo_from_compat_x32_siginfo for x32.
12912 (x86_arch_setup): Set linux_is_elf64.
12914 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12917 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12919 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12920 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12921 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12922 compatible with process.
12924 2012-04-12 Yao Qi <yao@codesourcery.com>
12926 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12927 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12928 (install-only, install-info, clean): Handle sub dir gnulib.
12929 (all-lib, am--refresh): New targets.
12930 (memmem.o): Remove target.
12931 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12932 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12933 (AC_REPLACE_FUNCS): Remove memmem.
12934 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12935 (AC_OUTPUT): Generate Makefile in gnulib/.
12936 * aclocal.m4, config.in, configure: Regenerated.
12938 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12940 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12942 2012-04-05 Pedro Alves <palves@redhat.com>
12944 -Werror=strict-aliasing
12946 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12949 2012-04-04 Pedro Alves <palves@redhat.com>
12951 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12952 (sparc_store_gregset_from_stack, sparc_store_gregset)
12953 (sparc_breakpoint_at): Fix formatting.
12955 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12957 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12959 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12960 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12961 * config.in: Regenerate.
12962 * configure: Likewise.
12964 2012-03-29 Pedro Alves <palves@redhat.com>
12966 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12967 Correct ptrace arguments.
12969 2012-03-28 Pedro Alves <palves@redhat.com>
12971 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
12972 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
12973 (IA64_FR1_REGNUM): New defines.
12974 (ia64_fetch_register): New.
12975 (the_low_target): Install it.
12976 * linux-low.h (struct linux_target_ops) <fetch_register>: New
12978 * linux-low.c (linux_fetch_registers): Try the
12979 the_low_target.fetch_register hook first.
12981 * linux-arm-low.c (the_low_target): Adjust.
12982 * linux-bfin-low.c (the_low_target): Adjust.
12983 * linux-cris-low.c (the_low_target): Adjust.
12984 * linux-crisv32-low.c (the_low_target): Adjust.
12985 * linux-m32r-low.c (the_low_target): Adjust.
12986 * linux-m68k-low.c (the_low_target): Adjust.
12987 * linux-mips-low.c (the_low_target): Adjust.
12988 * linux-ppc-low.c (the_low_target): Adjust.
12989 * linux-s390-low.c (the_low_target): Adjust.
12990 * linux-sh-low.c (the_low_target): Adjust.
12991 * linux-sparc-low.c (the_low_target): Adjust.
12992 * linux-tic6x-low.c (the_low_target): Adjust.
12993 * linux-x86-low.c (the_low_target): Adjust.
12994 * linux-xtensa-low.c (the_low_target): Adjust.
12996 2012-03-26 Pedro Alves <palves@redhat.com>
12998 * server.c (handle_qxfer_libraries): Don't bail early if
12999 the_target->qxfer_libraries_svr4 is not NULL.
13001 2012-03-26 Pedro Alves <palves@redhat.com>
13003 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13005 2012-03-23 Pedro Alves <palves@redhat.com>
13007 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13008 "library-list-svr4" element's start tag when the the DSO list is
13011 2012-03-23 Pedro Alves <palves@redhat.com>
13013 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13014 a variable whose type size is the same as the inferior's pointer
13017 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13019 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13021 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13022 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13023 * linux-low.h: Include <signal.h>.
13024 (struct siginfo): Remove forward declaration.
13025 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13028 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13030 * .gitignore: Ignore more files.
13032 2012-03-19 Pedro Alves <palves@redhat.com>
13033 Jan Kratochvil <jan.kratochvil@redhat.com>
13035 * server.c (cont_thread, general_thread): Add describing comments.
13036 (start_inferior): Clear `cont_thread'.
13037 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13040 2012-03-15 Yao Qi <yao@codesourcery.com>
13042 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13044 (cmd_qtdp): ... here.
13046 2012-03-15 Yao Qi <yao@codesourcery.com>
13048 * tracepoint.c (struct tracepoint_action_ops): New.
13049 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13050 (m_tracepoint_action_download): New.
13051 (r_tracepoint_action_download): New.
13052 (x_tracepoint_action_download): New.
13053 (l_tracepoint_action_download): New.
13054 (add_tracepoint_action): Install `action->ops' according type.
13055 (download_tracepoint_1): Move code `download' function pointer
13056 of various tracepoint_action_ops.
13058 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13060 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13061 linux_ptrace_attach_warnings.
13063 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13065 * Makefile.in (linux-ptrace.o): New.
13066 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13067 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13068 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13069 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13070 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13072 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13074 2012-03-08 Yao Qi <yao@codesourcery.com>
13075 Pedro Alves <palves@redhat.com>
13077 Fix PR server/13392.
13078 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13079 offset of JMP insn.
13080 * tracepoint.c (remove_tracepoint): New.
13081 (cmd_qtdp): Call remove_tracepoint when failed to install.
13083 2012-03-07 Pedro Alves <palves@redhat.com>
13085 * linux-low.c (get_detach_signal): New.
13086 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13087 Pass on pending signals to PTRACE_DETACH. Check the result of the
13089 * server.c (program_signals, program_signals_p): New.
13090 (handle_general_set): Handle QProgramSignals.
13091 * server.h (program_signals, program_signals_p): Declare.
13093 2012-03-05 Pedro Alves <palves@redhat.com>
13094 Jan Kratochvil <jan.kratochvil@redhat.com>
13096 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13099 2012-03-03 Yao Qi <yao@codesourcery.com>
13101 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13102 agent_look_up_symbols.
13104 2012-03-03 Yao Qi <yao@codesourcery.com>
13106 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13107 (linux-x86-low.o): Likewise.
13108 * server.h: Remove in_process_agent_loaded.
13109 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13113 2012-03-03 Yao Qi <yao@codesourcery.com>
13115 * tracepoint.c (gdb_agent_capability): New global.
13116 (in_process_agent_loaded_ust): Renamed to
13117 `in_process_agent_supports_ust'.
13119 (in_process_agent_supports_ust): Call agent_capability_check.
13120 (clear_installed_tracepoints): Assert that agent supports
13123 2012-03-03 Yao Qi <yao@codesourcery.com>
13125 * linux-low.c (linux_supports_agent): New.
13126 (linux_target_ops): Initialize field `supports_agent' with
13127 linux_supports_agent.
13128 * target.h (struct target_ops) <supports_agent>: New.
13129 (target_supports_agent): New macro.
13130 * server.c (handle_general_set): Handle packet 'QAgent'.
13131 (handle_query): Send `QAgent+'.
13132 * Makefile.in (server.o): Depends on agent.h.
13134 2012-03-03 Yao Qi <yao@codesourcery.com>
13136 * Makefile.in (OBS): Add agent.o.
13137 Add new rule for agent.o.
13138 Track dependence of tracepoint.c on agent.h.
13139 * tracepoint.c (run_inferior_command_1):
13140 (run_inferior_command): Call agent_run_command.
13141 (gdb_ust_connect_sync_socket): Deleted. Move it to
13143 (resume_thread, stop_thread): Likewise.
13144 (gdb_ust_socket_init): Renamed to ...
13145 (gdb_agent_socket_init): ... New.
13146 (gdb_ust_thread): Renamed to ...
13147 (gdb_agent_helper_thread): ... New.
13148 (gdb_ust_init): Move some code to ...
13149 (gdb_agent_init): ... here. New.
13150 [HAVE_UST]: Call gdb_ust_init.
13151 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13152 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13153 * config.in, configure: Regenerated.
13155 2012-03-02 Pedro Alves <palves@redhat.com>
13157 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13158 * linux-low.c (struct simple_pid_list): New.
13159 (stopped_pids): New a struct simple_pid_list pointer.
13160 (add_to_pid_list, pull_pid_from_list): New.
13161 (handle_extended_wait): Don't assume the first signal new children
13162 report is SIGSTOP. Adjust call to pull_pid_from_list.
13163 (linux_wait_for_lwp): Adjust.
13165 2012-03-02 Yao Qi <yao@codesourcery.com>
13167 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13170 2012-03-02 Yao Qi <yao@codesourcery.com>
13172 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13173 `stop_pc' and `tpoint'. Update caller.
13175 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13177 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13178 * linux-low.c (use_linux_regsets): New macro.
13179 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13180 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13181 (linux_register_in_regsets): New function.
13182 (usr_fetch_inferior_registers): Skip registers covered by
13184 (usr_store_inferior_registers): Likewise.
13185 (usr_fetch_inferior_registers): New macro.
13186 (usr_store_inferior_registers): Likewise.
13187 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13188 (linux_store_registers): Likewise.
13189 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13191 (init_registers_mips64_dsp_linux): Likewise.
13192 (init_registers_mips_linux): New macro.
13193 (init_registers_mips_dsp_linux): Likewise.
13194 (mips_dsp_num_regs): Likewise.
13195 (DSP_BASE, DSP_CONTROL): New fallback macros.
13196 (mips_base_regs): New macro.
13197 (mips_regmap): Use it. Fix the size.
13198 (mips_dsp_regmap): New variable.
13199 (mips_dsp_regset_bitmap): Likewise.
13200 (mips_arch_setup): New function.
13201 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13203 (mips_cannot_store_register): Likewise.
13204 (the_low_target): Update .arch_setup, .num_regs and .regmap
13205 initializers. Add .regset_bitmap initializer.
13206 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13208 * linux-bfin-low.c (the_low_target): Likewise.
13209 * linux-cris-low.c (the_low_target): Likewise.
13210 * linux-crisv32-low.c (the_low_target): Likewise.
13211 * linux-ia64-low.c (the_low_target): Likewise.
13212 * linux-m32r-low.c (the_low_target): Likewise.
13213 * linux-m68k-low.c (the_low_target): Likewise.
13214 * linux-ppc-low.c (the_low_target): Likewise.
13215 * linux-s390-low.c (the_low_target): Likewise.
13216 * linux-sh-low.c (the_low_target): Likewise.
13217 * linux-sparc-low.c (the_low_target): Likewise.
13218 * linux-tic6x-low.c (the_low_target): Likewise.
13219 * linux-x86-low.c (the_low_target): Likewise.
13220 * linux-xtensa-low.c (the_low_target): Likewise.
13221 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13222 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13223 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13225 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13226 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13228 2012-02-29 Yao Qi <yao@codesourcery.com>
13229 Pedro Alves <palves@redhat.com>
13231 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13232 `step_over_finished' is true.
13234 2012-02-27 Pedro Alves <palves@redhat.com>
13236 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13237 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13239 2012-02-27 Pedro Alves <palves@redhat.com>
13242 * linux-low.c (pid_is_stopped): New.
13243 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13245 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13247 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13250 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13252 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13254 2012-02-24 Luis Machado <lgustavo@codesourcery>
13256 * server.c (handle_query): Advertise support for target-side
13257 breakpoint condition evaluation.
13258 (process_point_options): New function.
13259 (process_serial_event): When inserting a breakpoint, check for
13260 a target-side condition that should be evaluated.
13262 * mem-break.c: Include regcache.h and ax.h.
13263 (point_cond_list_t): New data structure.
13264 (breakpoint) <cond_list>: New field.
13265 (find_gdb_breakpoint_at): Make non-static.
13266 (delete_gdb_breakpoint_at): Clear any target-side
13268 (clear_gdb_breakpoint_conditions): New function.
13269 (add_condition_to_breakpoint): Likewise.
13270 (add_breakpoint_condition): Likewise.
13271 (gdb_condition_true_at_breakpoint): Likewise.
13272 (gdb_breakpoint_here): Return result directly instead
13273 of going through a local variable.
13275 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13276 (clear_gdb_breakpoint_conditions): Likewise.
13277 (add_breakpoint_condition): Likewise.
13278 (gdb_condition_true_at_breakpoint): Likewise.
13280 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13281 (need_step_over_p): Take target-side breakpoint condition into
13284 2012-02-24 Luis Machado <lgustavo@codesourcery>
13286 * server.h: Include tracepoint.h.
13287 (agent_mem_read, agent_get_trace_state_variable_value,
13288 agent_set_trace_state_variable_value,
13289 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13290 get_set_tsv_func_addr): New prototypes.
13292 * ax.h: New include file.
13293 * ax.c: New source file.
13295 * tracepoint.c: Include ax.h.
13296 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13297 agent_expr, eval_result_type): Move to ax.h.
13298 (parse_agent_expr): Rename to ...
13299 (gdb_parse_agent_expr): ... this, make it non-static and move
13301 (unparse_agent_expr) Rename to ...
13302 (gdb_unparse_agent_expr): ... this, make it non-static and move
13304 (eval_agent_expr): Rename to ...
13305 (eval_tracepoint_agent_expr): ... this.
13306 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13307 forward declarations.
13308 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13309 (agent_get_trace_state_variable_value): New function.
13310 (agent_set_trace_state_variable_value): New function.
13311 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13312 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13313 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13314 (condition_true_at_tracepoint): Likewise.
13315 (parse_agent_expr): Rename to ...
13316 (gdb_parse_agent_expr): ... this and move to ax.c.
13317 (unparse_agent_expr): Rename to ...
13318 (gdb_unparse_agent_expr): ... this and move to ax.c.
13319 (gdb_agent_op_name): Move to ax.c.
13320 (eval_agent_expr): Rename to ...
13321 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13323 (eval_tracepoint_agent_expr): New function.
13324 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13326 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13328 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13329 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13330 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13331 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13332 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13333 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13334 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13335 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13336 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13337 (compile_bytecodes): Remove forward declaration.
13338 (is_goto_target): Move to ax.c.
13339 (compile_bytecodes): Move to ax.c and call
13340 agent_get_trace_state_variable_value (...) and
13341 agent_set_trace_state_variable_value (...).
13343 * Makefile.in: Update ax.c and IPA dependencies.
13345 2012-02-24 Pedro Alves <palves@redhat.com>
13347 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13348 (cmd_bigqtbuffer_circular): ... this. Only handle
13349 'QTBuffer:circular:'.
13350 (handle_tracepoint_general_set): Adjust.
13352 2012-02-16 Yao Qi <yao@codesourcery.com>
13354 * inferiors.c: Move code to ...
13355 * dll.c: .... here. New.
13356 * server.h: Declare clear_dlls.
13357 * Makefile.in (SFILES): Add dll.c.
13361 2012-02-11 Yao Qi <yao@codesourcery.com>
13363 * server.c: (handle_monitor_command): Add a new parameter
13365 (handle_query): Update caller.
13367 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13369 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13370 * configure, config.in: Regenerate.
13371 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13374 2012-02-02 Pedro Alves <palves@redhat.com>
13376 Try SIGKILL first, then PTRACE_KILL.
13377 * linux-low.c (linux_kill_one_lwp): New.
13378 (linux_kill_one_lwp): Rename to ...
13379 (kill_one_lwp_callback): ... this. Use the new
13380 linux_kill_one_lwp.
13382 2012-02-02 Pedro Alves <palves@redhat.com>
13384 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13387 2012-01-27 Pedro Alves <palves@redhat.com>
13389 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13390 (elf_64_file_p): Make static.
13391 (linux_pid_exe_is_elf_64_file): New.
13392 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13393 Delete declarations.
13394 (linux_pid_exe_is_elf_64_file): Declare.
13395 * linux-x86-low.c (x86_arch_setup): Use
13396 linux_pid_exe_is_elf_64_file.
13398 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13400 * linux-low.c (linux_wait_for_event_1): Rename to ...
13401 (linux_wait_for_event): ... here and merge it with former
13402 linux_wait_for_event - new variable wait_ptid, use it.
13403 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13405 2012-01-23 Pedro Alves <palves@redhat.com>
13407 * server.c (main): Avoid yet another case of infinite loop while
13408 detaching/killing after a longjmp.
13410 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13413 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13415 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13417 * hostio.c (handle_readlink): New function.
13418 (handle_vFile): Call it to handle "vFile:readlink" packets.
13420 2012-01-20 Pedro Alves <palves@redhat.com>
13421 Ulrich Weigand <ulrich.weigand@linaro.org>
13423 * server.c (handle_v_requests): Only support vAttach and vRun to
13424 start multiple processes when in extended protocol mode.
13426 2012-01-17 Pedro Alves <palves@redhat.com>
13428 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13429 memalign plus mprotect to allocate the scratch buffer.
13431 2012-01-13 Pedro Alves <palves@redhat.com>
13433 * server.c (attach_inferior): Clear `cont_thread'.
13435 2012-01-13 Pedro Alves <palves@redhat.com>
13437 * server.c (main): Avoid infinite loop while detaching/killing
13440 2012-01-09 Doug Evans <dje@google.com>
13442 * server.c (start_inferior): Set last_ptid in --wrapper case.
13444 2012-01-06 Yao Qi <yao@codesourcery.com>
13446 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13448 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13450 2012-01-04 Yao Qi <yao@codesourcery.com>
13452 * tracepoint.c (cmd_qtdp): Print debug message
13453 for static tracepoint.
13455 2012-01-04 Yao Qi <yao@codesourcery.com>
13457 * tracepoint.c (trace_vdebug): Differentiate debug message
13458 between gdbserver and IPA.
13460 2012-01-03 Yao Qi <yao@codesourcery.com>
13462 * tracepoint.c (tracepoint_was_hit): Don't collect for
13465 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13467 * terminal.h: Reformat copyright header.
13469 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13471 * server.c (gdbserver_version): Update copyright year.
13472 * gdbreplay.c (gdbreplay_version): Likewise.
13474 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13476 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13479 2011-12-18 Hui Zhu <teawater@gmail.com>
13480 * linux-low.c (linux_create_inferior): Save return value to ret.
13482 2011-12-18 Hui Zhu <teawater@gmail.com>
13484 * linux-low.c (linux_create_inferior): Save return value to ret.
13486 2011-12-16 Doug Evans <dje@google.com>
13488 * linux-low.c (linux_create_inferior): If stdio connection,
13489 redirect stdin from /dev/null, stdout to stderr.
13490 * remote-utils.c (remote_is_stdio): New static global.
13491 (remote_connection_is_stdio): New function.
13492 (remote_prepare): Handle stdio connection.
13493 (remote_open): Ditto.
13494 (remote_close): Don't close stdin for stdio connections.
13495 (read_prim,write_prim): New functions. Replace all calls to
13496 read/write to these.
13497 * server.c (main): Watch for "-" argument. Move call to
13498 remote_prepare before start_inferior.
13499 * server.h (STDIO_CONNECTION_NAME): New macro.
13500 (remote_connection_is_stdio): Declare.
13502 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13503 in debugging output.
13505 2011-12-15 Yao Qi <yao@codesourcery.com>
13507 * tracepoint.c: Include sys/syscall.h.
13508 (gdb_ust_thread): Remove preprocessor conditional.
13510 2011-12-14 Pedro Alves <pedro@codesourcery.com>
13512 * linux-low.c (linux_detach_one_lwp): Call
13513 the_low_target.prepare_to_resume before detaching.
13515 2011-12-14 Yao Qi <yao@codesourcery.com>
13517 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13520 2011-12-14 Yao Qi <yao@codesourcery.com>
13522 * i386-low.c (i386_low_stopped_data_address): Initialize local
13523 variable `control'.
13525 2011-12-13 Pedro Alves <pedro@codesourcery.com>
13529 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13530 DR_CONTROL unless necessary. Extend comments.
13531 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13532 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13534 2011-12-13 Yao Qi <yao@codesourcery.com>
13536 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13538 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13540 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13542 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13543 Print new debug message for such case.
13545 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13547 Fix overlapping memcpy.
13548 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13549 the read_inferior_memory transfer.
13550 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13551 write_inferior_memory transfer.
13552 (set_fast_tracepoint_jump): New variable buf. Use it for the
13553 read_inferior_memory and write_inferior_memory transfers.
13554 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13555 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13556 Use it for the write_inferior_memory transfer.
13557 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13560 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13562 * linux-low.c (fetch_register, store_register): Make code
13563 consistent, fix formatting.
13565 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13567 * linux-low.c (usr_store_inferior_registers): Factor out code
13568 to handle individual registers into...
13569 (store_register): ... this new function.
13571 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13573 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13574 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13575 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13576 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13577 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13578 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13579 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13580 (srv_xmlfiles): Add new XML files.
13582 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13584 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13585 (init_registers_s390_linux32v1): Add prototype.
13586 (init_registers_s390_linux32v2): Likewise.
13587 (init_registers_s390_linux64v1): Likewise.
13588 (init_registers_s390_linux64v2): Likewise.
13589 (init_registers_s390x_linux64v1): Likewise.
13590 (init_registers_s390x_linux64v2): Likewise.
13591 (s390_num_regs): Increment to 52.
13592 (s390_regmap): Add orig_r2 register.
13593 (s390_num_regs_3264): Increment to 68.
13594 (s390_regmap_3264): Add orig_r2 register.
13595 (s390_collect_ptrace_register): Handle orig_r2 register.
13596 (s390_supply_ptrace_register): Likewise.
13597 (s390_fill_last_break): New function.
13598 (s390_store_last_break): Likewise.
13599 (s390_fill_system_call): New function.
13600 (s390_store_system_call): Likewise.
13601 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13603 (s390_check_regset): New function.
13604 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13605 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13606 Update target_regsets for available register sets.
13608 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13609 Jan Kratochvil <jan.kratochvil@redhat.com>
13611 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13612 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13614 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13615 * linux-low.h (struct process_info_private): New member r_debug.
13616 * server.c (handle_qxfer_libraries): Call
13617 the_target->qxfer_libraries_svr4.
13618 (handle_qxfer_libraries_svr4): New function.
13619 (qxfer_packets): New entry "libraries-svr4".
13620 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13621 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13622 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13623 PACKET_qXfer_libraries_svr4.
13625 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13627 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13628 PSW address/mask between 8-byte and 16-byte formats.
13629 (s390_supply_ptrace_register): Likewise.
13630 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13631 basic addressing mode bit.
13633 2011-11-24 Stan Shebs <stan@codesourcery.com>
13635 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13637 2011-11-17 Stan Shebs <stan@codesourcery.com>
13639 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13640 (tracing_start_time): New global.
13641 (tracing_stop_time): New global.
13642 (tracing_user_name): New global.
13643 (tracing_notes): New global.
13644 (tracing_stop_note): New global.
13645 (cmd_qtstart): Set traceframe_usage, start_time.
13646 (stop_tracing): Set stop_time.
13647 (cmd_qtstatus): Report additional status.
13648 (cmd_qtp): New function.
13649 (handle_tracepoint_query): Call it.
13650 (cmd_qtnotes): New function.
13651 (handle_tracepoint_general_set): Call it.
13652 (get_timestamp): Rename from tsv_get_timestamp.
13654 2011-11-14 Stan Shebs <stan@codesourcery.com>
13655 Kwok Cheung Yeung <kcy@codesourcery.com>
13657 * linux-x86-low.c (small_jump_insn): New.
13658 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13659 trampoline and error message, build a trampoline and issue a small
13660 jump instruction to it.
13661 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13662 trampoline and error message.
13663 (x86_get_min_fast_tracepoint_insn_len): New.
13664 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13665 * linux-low.h (struct linux_target_ops): Add arguments to
13666 install_fast_tracepoint_jump_pad operation, add new operation.
13667 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13669 (linux_get_min_fast_tracepoint_insn_len): New function.
13670 (linux_target_op): Add new operation.
13671 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13672 (gdb_trampoline_buffer_end): Ditto.
13673 (gdb_trampoline_buffer_error): Ditto.
13674 (struct ipa_sym_addresses): Add fields for new IPA variables.
13675 (symbol_list): Add entries for new IPA variables.
13676 (struct tracepoint): Add fields to hold the address range of the
13677 trampoline used by the tracepoint.
13678 (trampoline_buffer_head): New static variable.
13679 (trampoline_buffer_tail): Ditto.
13680 (claim_trampoline_space): New function.
13681 (have_fast_tracepoint_trampoline_buffer): New function.
13682 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13684 (install_fast_tracepoint): Ditto, also add error buffer argument.
13685 (cmd_qtminftpilen): New function.
13686 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13687 (fast_tracepoint_from_trampoline_address): New function.
13688 (fast_tracepoint_collecting): Handle trampoline as part of jump
13690 (set_trampoline_buffer_space): New function.
13691 (initialize_tracepoint): Initialize new IPA variables.
13692 * target.h (struct target_ops): Add arguments to
13693 install_fast_tracepoint_jump_pad operation, add new
13694 get_min_fast_tracepoint_insn_len operation.
13695 (target_get_min_fast_tracepoint_insn_len): New.
13696 (install_fast_tracepoint_jump_pad): Add arguments.
13697 * server.h (IPA_BUFSIZ): Define.
13698 * linux-i386-ipa.c: Include extra header files.
13699 (initialize_fast_tracepoint_trampoline_buffer): New function.
13700 (initialize_low_tracepoint): Call it.
13701 * server.h (set_trampoline_buffer_space): Declare.
13702 (claim_trampoline_space): Ditto.
13703 (have_fast_tracepoint_trampoline_buffer): Ditto.
13705 2011-11-14 Yao Qi <yao@codesourcery.com>
13707 * server.c (handle_query): Handle InstallInTrace for qSupported.
13708 * tracepoint.c (add_tracepoint): Sort list.
13709 (install_tracepoint, download_tracepoint): New.
13710 (cmd_qtdp): Call them to install and download tracepoints.
13711 (sort_tracepoints): Removed.
13712 (cmd_qtstart): Update.
13714 2011-11-14 Yao Qi <yao@codesourcery.com>
13716 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13717 * mem-break.h: Declare.
13718 * tracepoint.c (cmd_qtstart): Move some code to ...
13719 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13721 (download_tracepoints): Move some code to ...
13722 (download_tracepoint_1): ... here. New.
13724 2011-11-08 Yao Qi <yao@codesourcery.com>
13726 * remote-utils.c (relocate_instruction): A comment fix.
13728 2011-11-07 Joel Brobecker <brobecker@adacore.com>
13730 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13731 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13732 dr_status_mirror and dr_control_mirror from debug_reg_state.
13733 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13734 (i386_initial_stuff): Remove use of deleted globals.
13735 (i386_get_thread_context, i386_set_thread_context,
13736 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13737 from debug_reg_state.
13739 2011-11-05 Yao Qi <yao@codesourcery.com>
13741 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13742 address as TPOINT's.
13744 2011-11-02 Stan Shebs <stan@codesourcery.com>
13746 * tracepoint.c (agent_mem_read_string): New function.
13747 (eval_agent_expr): Call it for tracenz.
13748 * server.c (handle_query): Report support for tracenz.
13750 2011-11-02 Yao Qi <yao@codesourcery.com>
13752 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13754 2011-11-02 Yao Qi <yao@codesourcery.com>
13756 * target.h: Fix a typo in comment.
13758 2011-10-31 Pedro Alves <pedro@codesourcery.com>
13760 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13761 clobber the breakpoints' shadows with fast tracepoint jumps.
13762 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13763 * target.c (write_inferior_memory): Also pass MYADDR down to
13766 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13768 * configure.ac: Check support for personality routine.
13769 * configure: Regenerate.
13770 * config.in: Likewise.
13771 * linux-low.c: Include <sys/personality.h>.
13772 Define ADDR_NO_RANDOMIZE if necessary.
13773 (linux_create_inferior): Disable address space randomization when
13774 forking inferior, if requested.
13775 (linux_supports_disable_randomization): New function.
13776 (linux_target_ops): Install it.
13777 * server.h (disable_randomization): Declare.
13778 * server.c (disable_randomization): New global variable.
13779 (handle_general_set): Handle QDisableRandomization.
13780 (handle_query): Likewise for qSupported.
13781 (main): Support --disable-randomization and --no-disable-randomization
13782 command line arguments.
13783 * target.h (struct target_ops): Add supports_disable_randomization.
13784 (target_supports_disable_randomization): New macro.
13786 2011-09-29 Mike Frysinger <vapier@gentoo.org>
13788 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13790 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13791 [!PT_GETDSBT] (target_loadmap): New definition.
13792 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13793 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13794 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13795 and PT_GETDSBT to LINUX_LOADMAP.
13796 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13797 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13799 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13801 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13802 (arm_linux_hwbp_cap): New static variable.
13803 (arm_linux_get_hwbp_cap): Replace by ...
13804 (arm_linux_init_hwbp_cap): ... this new function.
13805 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13806 (arm_linux_get_hw_watchpoint_count): Likewise.
13807 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13808 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13809 (arm_prepare_to_resume): Use perror_with_name instead of error.
13811 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13813 * linux-arm-low.c: Include <signal.h>.
13814 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13815 (struct arm_linux_hwbp_cap): New data type.
13816 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13817 (struct arm_linux_hw_breakpoint): New data type.
13818 (MAX_BPTS, MAX_WPTS): Define.
13819 (struct arch_process_info, struct arch_lwp_info): New data types.
13820 (arm_linux_get_hwbp_cap): New function.
13821 (arm_linux_get_hw_breakpoint_count): Likewise.
13822 (arm_linux_get_hw_watchpoint_count): Likewise.
13823 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13824 (arm_hwbp_control_initialize): Likewise.
13825 (arm_hwbp_control_is_enabled): Likewise.
13826 (arm_hwbp_control_is_initialized): Likewise.
13827 (arm_hwbp_control_disable): Likewise.
13828 (arm_linux_hw_breakpoint_equal): Likewise.
13829 (arm_linux_hw_point_initialize): Likewise.
13830 (struct update_registers_data): New data structure.
13831 (update_registers_callback: New function.
13832 (arm_insert_point): Likewise.
13833 (arm_remove_point): Likewise.
13834 (arm_stopped_by_watchpoint): Likewise.
13835 (arm_stopped_data_address): Likewise.
13836 (arm_new_process): Likewise.
13837 (arm_new_thread): Likewise.
13838 (arm_prepare_to_resume): Likewise.
13839 (the_low_target): Register arm_insert_point, arm_remove_point,
13840 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13841 arm_new_thread, and arm_prepare_to_resume.
13843 2011-09-15 Stan Shebs <stan@codesourcery.com>
13845 * server.h (struct emit_ops): Add compare-goto fields.
13846 * tracepoint.c (gdb_agent_op_sizes): New table.
13847 (emit_eq_goto): New function.
13848 (emit_ne_goto): New function.
13849 (emit_lt_goto): New function.
13850 (emit_le_goto): New function.
13851 (emit_gt_goto): New function.
13852 (emit_ge_goto): New function.
13853 (is_goto_target): New function.
13854 (compile_bytecodes): Recognize special cases of compare-goto
13855 combinations and call specialized emitters for them.
13856 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13857 (amd64_emit_ne_goto): New function.
13858 (amd64_emit_lt_goto): New function.
13859 (amd64_emit_le_goto): New function.
13860 (amd64_emit_gt_goto): New function.
13861 (amd64_emit_ge_goto): New function.
13862 (amd64_emit_ops): Add the new functions.
13863 (i386_emit_eq_goto): New function.
13864 (i386_emit_ne_goto): New function.
13865 (i386_emit_lt_goto): New function.
13866 (i386_emit_le_goto): New function.
13867 (i386_emit_gt_goto): New function.
13868 (i386_emit_ge_goto): New function.
13869 (i386_emit_ops): Add the new functions.
13871 2011-09-08 Stan Shebs <stan@codesourcery.com>
13873 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13874 (i386_emit_epilogue): Restore %ebx.
13876 2011-08-31 Jie Zhang <jzhang918@gmail.com>
13878 * server.c (step_thread): Remove definition.
13879 (process_serial_event): Don't handle Hs.
13880 * server.h (step_thread): Remove declaration.
13881 * target.c (set_desired_inferior): Remove use of step_thread.
13883 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13885 * linux-low.c: Include linux-procfs.h.
13886 (linux_attach_lwp_1): Update comments.
13887 (linux_attach): Scan for existing threads when attaching to a
13888 process that is the tgid.
13889 * Makefile.in: Update dependencies.
13891 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13893 * configure.srv: Add linux-procfs.o dependencies.
13895 2011-08-14 Yao Qi <yao@codesourcery.com>
13897 * target.h (struct target_ops): Fix indent.
13898 * win32-low.c (win32_target_ops): Fix comment.
13900 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
13901 Yao Qi <yao@codesourcery.com>
13903 * Makefile.in (clean): Remove tic6x-*.c files.
13904 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13905 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13906 (tic6x-c64xp-linux.c): Likewise.
13907 * configure.srv: Add support for tic6x-*-uclinux.
13908 * linux-tic6x-low.c: New.
13909 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13911 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
13912 Yao Qi <yao@codesourcery.com>
13914 * target.h (struct target_ops): Add read_loadmap.
13915 * linux-low.c (struct target_loadseg): New type.
13916 (struct target_loadmap): New type.
13917 (linux_read_loadmap): New function.
13918 (linux_target_ops): Add linux_read_loadmap.
13919 * server.c (handle_query): Support qXfer:fdpic:read packet.
13920 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13923 2011-08-05 Eli Zaretskii <eliz@gnu.org>
13925 * win32-low.c: Include <stdint.h>.
13927 2011-07-22 Pedro Alves <pedro@codesourcery.com>
13929 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13930 to the inferior here.
13931 (i386_remove_aligned_watchpoint): Ditto.
13932 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13933 fit part of the watchpoint in the debug registers.
13934 (i386_update_inferior_debug_regs): New.
13935 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13936 registers, and only update the inferior on success.
13937 (i386_low_remove_watchpoint): Ditto.
13939 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13941 * linux-low.c (compare_ints, unique, list_threads, show_process,
13942 linux_core_of_thread): Delete.
13943 (linux_target_ops): Change linux_core_of_thread to
13944 linux_common_core_of_thread.
13945 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13946 * utils.c (malloc_failure): Change type of argument.
13947 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13948 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13949 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13950 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13951 (IPA_OBJS): Add common-utils-ipa.o.
13952 (ptid_h, linux_osdata_h): New macros.
13953 (server_h): Add common/common-utils.h, common/xml-utils.h,
13954 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13956 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13957 ptid.o, buffer.o): New rules.
13958 (linux-low.o): Add common/linux-osdata.h as a dependency.
13959 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13960 * configure.ac: Add AC_HEADER_DIRENT check.
13961 * config.in: Regenerate.
13962 * configure: Regenerate.
13963 * remote-utils.c (xml_escape_text): Delete.
13964 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13965 buffer_xml_printf): Move to common/buffer.c.
13966 * server.c (main): Remove call to initialize_inferiors.
13967 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
13968 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
13969 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
13970 internal_error, gdb_assert, gdb_assert_fail): Delete.
13971 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
13972 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
13974 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
13975 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
13976 initialize_inferiors): Delete.
13978 2011-07-20 Pedro Alves <pedro@codesourcery.com>
13980 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13983 2011-05-31 Pedro Alves <pedro@codesourcery.com>
13985 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13987 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13989 2011-05-26 Yao Qi <yao@codesourcery.com>
13991 * Makefile.in (thread-db.o): Track dependence to
13992 common/gdb_thread_db.h.
13993 * thread-db.c: include gdb_thread_db.h from right place.
13995 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
13997 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
13998 __FILE__ and __LINE__ to internal_error.
14000 2011-05-13 Doug Evans <dje@google.com>
14002 * thread-db.c (try_thread_db_load_from_sdir): New function.
14003 (try_thread_db_load_from_dir): New function.
14004 (thread_db_load_search): Handle $sdir, ignore $pdir.
14005 Remove trying of system directories if search of
14006 libthread-db-search-path fails, that is now done via $sdir.
14008 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14010 * server.c (handle_query): Add EnableDisableTracepoints to the list
14011 of supported features.
14012 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14014 (cmd_qtenable_disable): New.
14015 (cmd_qtstart): Install tracepoints even if disabled.
14016 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14017 receiving a QTEnable or QTDisable packet.
14018 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14019 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14021 (gdb_probe): Skip data collection if static tracepoint is disabled.
14023 2011-05-10 Doug Evans <dje@google.com>
14025 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14027 2011-05-04 Doug Evans <dje@google.com>
14029 * linux-low.c (linux_join): Skip process lookup.
14030 * spu-low.c (spu_join): Ditto.
14031 * server.c (join_inferiors_callback): Delete.
14032 (process_serial_event): For 'D' packet (detach) call join_inferior
14035 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14037 * README: Don't mention xscale*-*-linux*.
14038 * configure.srv (xscale*-*-linux*): Don't handle target.
14040 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14042 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14044 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14045 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14046 (i386_emit_void_call_2): Likewise.
14048 2011-04-26 Yao Qi <yao@codesourcery.com>
14050 * linux-low.c: Move common macros to linux-ptrace.h.
14051 Include linux-ptrace.h.
14052 * Makefile.in (linux_ptrace_h): New.
14053 (linux-low.o): Depends on linux-ptrace.h.
14055 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14057 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14058 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14059 (remote_prepare): New function with most of the TCP code from ...
14060 (remote_open): ... here. Detect PORT here unconditionally. Move also
14061 setting transport_is_reliable.
14062 * server.c (run_once): New variable.
14063 (gdbserver_usage): Document it.
14064 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14065 the first run if RUN_ONCE.
14066 * server.h (run_once, remote_prepare): New declarations.
14068 2011-04-19 Tom Tromey <tromey@redhat.com>
14070 * win32-low.c (handle_load_dll): Remove duplicate "the".
14072 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14074 Remove support for old Cygwin 1.5 versions.
14075 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14076 function to avoid warning.
14077 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14080 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14082 * gdbserver/server.h (Macro _): Define it if not available.
14084 2011-03-14 Michael Snyder <msnyder@vmware.com>
14086 * hostio.c (handle_close): Remove unnecessary null test.
14088 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14090 * Makefile.in (maintainer-clean realclean distclean): Remove
14091 "make ... subdir_do" command.
14093 2011-03-10 Michael Snyder <msnyder@vmware.com>
14095 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14097 * server.c (handle_v_run): Free alloced buffer on early return.
14099 2011-03-09 Yao Qi <yao@codesourcery.com>
14102 2011-03-04 Yao Qi <yao@codesourcery.com>
14104 * Makefile.in: Remove GNU make feature --directory.
14106 2011-03-05 Yao Qi <yao@codesourcery.com>
14108 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14109 (subdir_do): New make target. Copied from gdb/Makefile.
14110 (maintainer-clean, realclean, distclean, clean): Call corresponding
14111 make targets in common/Makefile.
14113 2011-02-11 Yao Qi <yao@codesourcery.com>
14115 * configure.ac: Call AC_PROG_RANLIB.
14116 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14117 * configure: Regenerate.
14119 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14121 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14123 2011-03-06 Yao Qi <yao@codesourcery.com>
14125 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14127 2011-03-05 Yao Qi <yao@codesourcery.com>
14129 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14130 (subdir_do): New make target. Copied from gdb/Makefile.
14131 (maintainer-clean, realclean, distclean, clean): Call corresponding
14132 make targets in common/Makefile.
14134 2011-03-04 Yao Qi <yao@codesourcery.com>
14136 * Makefile.in: Remove GNU make feature --directory.
14138 2011-03-04 Michael Snyder <msnyder@vmware.com>
14140 * server.c (queue_stop_reply): Call xmalloc not malloc.
14142 2011-03-02 Michael Snyder <msnyder@vmware.com>
14144 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14146 2011-02-28 Michael Snyder <msnyder@vmware.com>
14148 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14149 (cmd_qtframe): Ditto.
14150 (cmd_qtbuffer): Ditto.
14151 (cmd_bigqtbuffer): Ditto.
14153 * utils.c (decimal2str): Initialize 'width' to nine, then
14154 don't mess with it.
14156 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14158 * hostio.c (require_data): Free *data, not data.
14160 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14162 * hostio.c (require_data): Use free, not xfree.
14164 2011-02-27 Michael Snyder <msnyder@vmware.com>
14166 * server.c (handle_query): Discard unused value.
14168 * hostio.c (require_data): Free malloc memory before returning
14171 2011-02-26 Michael Snyder <msnyder@vmware.com>
14173 * linux-low.c (list_threads): Call closedir for dirent.
14175 2011-02-27 Michael Snyder <msnyder@vmware.com>
14177 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14178 a case statement falls through.
14180 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14182 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14185 2011-02-26 Michael Snyder <msnyder@vmware.com>
14187 * utils.c (decimal2str): Eliminate dead code and dead param.
14188 (pulongest): Drop dead param from call to decimal2str.
14191 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14193 Revert the following patch (not approved yet):
14194 2011-02-21 Hui Zhu <teawater@gmail.com>
14195 * tracepoint.c (tp_printf): New function.
14196 (eval_agent_expr): Handle gdb_agent_op_printf.
14198 2011-02-21 Hui Zhu <teawater@gmail.com>
14200 * tracepoint.c (tp_printf): New function.
14201 (eval_agent_expr): Handle gdb_agent_op_printf.
14203 2011-02-18 Tom Tromey <tromey@redhat.com>
14205 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14206 (tracepoint.o): Likewise.
14207 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14208 (gdb_agent_op_names): Likewise.
14210 2011-02-18 Tom Tromey <tromey@redhat.com>
14212 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14213 gdb_agent_op_rot>: New constants.
14214 (gdb_agent_op_names): Add pick and roll.
14215 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14218 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14220 * aclocal.m4: Regenerated with aclocal-1.11.1.
14222 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14224 * server.c (handle_qxfer_traceframe_info): New.
14225 (qxfer_packets): Register "traceframe-info".
14226 (handle_query): Report support for qXfer:traceframe-info:read+.
14227 * tracepoint.c (match_blocktype): New.
14228 (traceframe_find_block_type): Rename to ...
14229 (traceframe_walk_blocks): ... this. Add callback filter argument,
14231 (traceframe_find_block_type): New, reimplemented on top of
14232 traceframe_walk_blocks.
14233 (build_traceframe_info_xml): New.
14234 (traceframe_read_info): New.
14235 * server.h (traceframe_read_info): Declare.
14237 2011-02-11 Yao Qi <yao@codesourcery.com>
14239 * configure.ac: Call AC_PROG_RANLIB.
14240 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14241 * configure: Regenerate.
14243 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14245 * server.c (gdb_read_memory): Change return semantics to allow
14247 (handle_search_memory_1): Adjust.
14248 (process_serial_event) <'m' packet>: Handle partial transfers.
14249 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14251 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14253 * regcache.c (init_register_cache): Initialize
14254 regcache->register_status.
14255 (free_register_cache): Release regcache->register_status.
14256 (regcache_cpy): Copy register_status.
14257 (registers_to_string): Print 'x's for unavailable registers.
14258 (supply_register): Mark the register's status valid or
14259 unavailable, depending on whether a buffer was passed in or not.
14260 (supply_register_zeroed): New.
14261 (supply_regblock): Mark the registers' status valid or
14262 unavailable, depending on whether a buffer was passed in or not.
14263 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14264 (struct regcache): New `register_status' field.
14265 (supply_register_zeroed): Declare.
14266 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14267 supply_register_zeroed, rather than passing a NULL buffer to
14269 * tracepoint.c (fetch_traceframe_registers): Update comment.
14271 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14273 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14276 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14278 * server.h (decode_xfer_write): Change prototype.
14279 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14280 and don't extract the annex here.
14281 * server.c (decode_xfer_read): Remove `annex' parameter,
14282 and don't extract the annex here.
14283 (decode_xfer): New.
14284 (struct qxfer): New.
14285 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14286 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14287 (handle_qxfer_statictrace): New functions, abstracted out from
14288 handle_query, and made to use the struct qxfer interface.
14289 (handle_threads_qxfer_proper): Rename to ...
14290 (handle_qxfer_threads_proper): ... this.
14291 (handle_threads_qxfer): Rename to ...
14292 (handle_qxfer_threads): ... this. Adjust.
14293 (qxfer_packets): New array.
14294 (handle_qxfer): New function.
14295 (handle_query): Use handle_qxfer.
14297 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14299 * gdbreplay.c: Shorten lines of >= 80 columns.
14300 * linux-low.c: Ditto.
14301 * linux-ppc-low.c: Ditto.
14302 * linux-s390-low.c: Ditto.
14303 * linux-sparc-low.c: Ditto.
14304 * linux-x86-low.c: Ditto.
14305 * linux-xtensa-low.c: Ditto.
14306 * mem-break.c: Ditto.
14307 * nto-low.c: Ditto.
14308 * regcache.h: Ditto.
14309 * remote-utils.c: Ditto.
14312 * thread-db.c: Ditto.
14313 * tracepoint.c: Ditto.
14315 * win32-low.h: Ditto.
14317 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14319 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14322 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14324 * server.c (gdbserver_version): Update copyright year in version
14326 * gdbreplay.c (gdbreplay_version): Ditto.
14328 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14330 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14331 * linux-bfin-low.c: New file.
14332 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14333 PT_DATA_ADDR for BFIN targets.
14334 * Makefile.in (SFILES): Add linux-bfin-low.c.
14335 (clean): Remove reg-bfin.c.
14336 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14337 * README: Mention supported Blackfin targets.
14339 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14341 * .gitignore: New file.
14343 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14345 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14347 2010-10-22 Jie Zhang <jie@codesourcery.com>
14349 * Makefile.in: Add FLAGS_TO_PASS variable.
14350 (install): Remove dependency of install-only and recursively
14351 invoke make for install-only.
14353 2010-10-04 Doug Evans <dje@google.com>
14355 * Makefile.in (uninstall): Use $(DESTDIR).
14357 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14361 * linux-x86-low.c (compat_siginfo_from_siginfo)
14362 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14363 si_code is < 0. Check for si_code == SI_TIMER before checking for
14366 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14368 * lynx-i386-low.c: New file.
14369 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14371 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14373 * lynx-low.c (ptrace_request_to_str): Remove handling for
14374 request values that have been removed in LynxOS 5.x.
14376 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14378 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14381 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14383 * configure.ac: Add --enable-inprocess-agent option.
14384 * configure: Rebuilt.
14386 2010-09-06 Yao Qi <yao@codesourcery.com>
14388 * linux-low.c (linux_kill): Remove unused variable.
14389 (linux_stabilize_threads): Likewise.
14390 * server.c (start_inferior): Likewise.
14391 (queue_stop_reply_callback): Likewise.
14392 * tracepoint.c (do_action_at_tracepoint): Likewise.
14394 2010-09-06 Yao Qi <yao@codesourcery.com>
14396 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14399 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14401 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14403 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14405 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14408 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14410 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14411 gdbserver/lynx-ppc-low.c: New files.
14412 * Makefile.in (lynx_low_h): New variable.
14413 (lynx-low.o, lynx-ppc-low.o): New rules.
14414 * configure.ac: On LynxOS, link with -lnetinet.
14415 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14416 * configure: regenerate.
14418 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14420 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14421 * configure.ac: Add check for vasprintf and vsnprintf.
14422 * configure, config.in: Regenerate.
14423 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14425 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14427 * gdbreplay.c: Move include of alloca.h up, next to include of
14429 * server.h: Add include of malloc.h.
14430 * mem-break.c: Remove include of malloc.h.
14431 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14433 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14435 * Makefile.in (memmem.o): Build with -Wno-error.
14437 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14439 * utils.c (xsnprintf): Make non-static.
14440 * server.h: Add xsnprintf declaration.
14441 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14442 replace calls to snprintf by calls to xsnprintf throughout.
14444 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14446 * configure.ac: Add configure check for alloca.
14447 * configure, config.in: Regenerate.
14448 * server.h: Include alloca.h if it exists.
14449 * gdbreplay.c: Include alloca.h if it exists.
14451 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14453 * linux-low.c (__SIGRTMIN): Define if not already defined.
14454 (linux_create_inferior): Check for __ANDROID__ rather than
14456 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14457 are already deferred.
14458 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14459 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14460 stopped and already has a pending signal to report.
14461 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14462 a pending signal to report or is moving out of a jump pad.
14463 (linux_init_signals): Check for __ANDROID__ rather than
14466 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14468 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14469 debug_threads check. Avoid a linear search when not doing debug
14472 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14474 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14475 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14476 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14477 (process_event): Change local fd's type to gdb_fildes_t.
14478 (create_file_handler): Adjust prototype.
14479 (delete_file_handler): Adjust prototype.
14480 (handle_file_event): Adjust prototype. Use pfildes.
14481 (create_file_event): Adjsut prototype.
14482 * remote-utils.c (remote_desc, listen_desc): Change type to
14484 * server.h: New gdb_fildes_t typedef.
14485 [USE_WIN32API]: Include winsock2.h.
14486 (delete_file_handler, add_file_handler): Adjust prototypes.
14487 (pfildes): Declare.
14488 * utils.c (pfildes): New.
14490 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14492 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14493 * configure: Regenerate.
14495 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14497 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14498 (linux_done_accessing_memory): ... this.
14499 (linux_target_ops): Adjust.
14500 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14501 * nto-low.c (nto_target_ops): Adjust comment.
14502 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14503 * spu-low.c (spu_target_ops): Adjust comment.
14504 * target.h (target_ops): Rename unprepare_to_access_memory field
14505 to done_accessing_memory.
14506 (unprepare_to_access_memory): Rename to ...
14507 (done_accessing_memory): ... this.
14509 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14511 * linux-low.c (linux_prepare_to_access_memory): New.
14512 (linux_unprepare_to_access_memory): New.
14513 (linux_target_ops): Install them.
14514 * server.c (read_memory): Rename to ...
14515 (gdb_read_memory): ... this. Use
14516 prepare_to_access_memory/prepare_to_access_memory.
14517 (write_memory): Rename to ...
14518 (gdb_write_memory): ... this. Use
14519 prepare_to_access_memory/prepare_to_access_memory.
14520 (handle_search_memory_1): Adjust.
14521 (process_serial_event): Adjust.
14522 * target.h (struct target_ops): New fields
14523 prepare_to_access_memory and unprepare_to_access_memory.
14524 (prepare_to_access_memory, unprepare_to_access_memory): New.
14525 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14526 prepare_to_access_memory/prepare_to_access_memory.
14527 * nto-low.c (nto_target_ops): Adjust.
14528 * spu-low.c (spu_target_ops): Adjust.
14529 * win32-low.c (win32_target_ops): Adjust.
14531 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14533 * Makefile.in (WARN_CFLAGS): Get it from configure.
14534 (WERROR_CFLAGS): New.
14535 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14536 * configure.ac: Introduce --enable-werror, which adds -Werror to
14537 the compiler command line. Enabled by default. Disable with
14538 --disable-werror. Add -Wdeclaration-after-statement
14539 Wpointer-arith and -Wformat-nonliteral to warning flags.
14540 * configure: Regenerate.
14542 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14544 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14546 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14548 * gdbreplay.c (remote_error): New.
14550 (expect): Use gdbchar. Check for error reading from GDB.
14551 Clarify sync error output.
14552 (play): Check for errors writing to GDB.
14553 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14554 * remote-utils.c (getpkt): Check for errors writing to the remote
14557 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14559 * linux-low.c (linux_wait_1): Move non-debugging code out of
14560 `debug_threads' control.
14562 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14564 * linux-low.c (linux_wait_1): Don't set last_status here.
14565 * server.c (push_event, queue_stop_reply_callback): Assert we're
14566 not pushing a TARGET_WAITKIND_IGNORE event.
14567 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14568 (myresume, handle_target_event): Set the thread's last_resume_kind
14569 and last_status from the target returned status.
14571 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14575 * linux-x86-low.c (update_debug_registers_callback): New.
14576 (i386_dr_low_set_addr): Use it.
14577 (i386_dr_low_get_addr): New.
14578 (i386_dr_low_set_control): Use update_debug_registers_callback.
14579 (i386_dr_low_get_control): New.
14580 (i386_dr_low_get_status): Adjust.
14581 * linux-low.c (linux_stop_lwp): New.
14582 * linux-low.h (linux_stop_lwp): Declare.
14584 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14585 argument instead of a i386_debug_reg_state.
14586 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14587 a i386_debug_reg_state.
14588 (i386_insert_aligned_watchpoint): Adjust.
14589 (i386_remove_aligned_watchpoint): Adjust.
14590 (i386_low_stopped_data_address): Read the debug registers from the
14591 inferior instead of from the mirrors.
14592 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14593 (i386_dr_low_get_addr): Declare.
14594 (i386_dr_low_get_control): Declare.
14595 (i386_dr_low_get_status): Change prototype.
14597 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14598 (i386_dr_low_get_addr): New.
14599 (i386_dr_low_get_control): New.
14600 (i386_dr_low_get_status): Adjust prototype. Return
14602 (i386_initial_stuff): Clear dr_status_mirror and
14604 (i386_get_thread_context): Adjust.
14605 (i386_set_thread_context): Adjust.
14606 (i386_thread_added): Adjust.
14608 2010-08-24 Pedro Alves <pedro@codesourcery.com>
14610 * linux-low.h (linux_thread_area): Delete declaration.
14612 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14614 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14615 after its termination.
14617 2010-08-09 Pedro Alves <pedro@codesourcery.com>
14619 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14620 (gdb_wants_all_stopped): Delete.
14621 (linux_wait_1): Don't call them.
14622 * server.c (handle_v_cont): Tag all threads as want-stopped.
14623 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14624 stopped as "client-wants-stopped".
14626 2010-07-31 Pedro Alves <pedro@codesourcery.com>
14628 * Makefile.in (signals_h): New.
14629 (server_h): Depend on it.
14630 (server.o): Don't depend on $(signals_def).
14631 (signals.o): Depend on $(signals_def).
14633 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14635 * Makefile.in (signals_def): New.
14636 (server_h): Append include/gdb/signals.h and signals_def.
14637 (server.o): Append signals_def.
14639 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14641 * server.c (handle_target_event): Use target_signal_to_host for
14642 resume_info.sig initialization.
14643 * target.h (struct thread_resume) <sig>: New comment.
14645 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14647 * server.c (handle_query): strcpy() the returned string from paddress()
14648 instead of sprintf().
14649 * utils.c (paddress): Return phex_nz().
14651 2010-07-07 Joel Brobecker <brobecker@adacore.com>
14653 * server.c (handle_v_cont): Call mourn_inferior if process
14655 (myresume): Likewise.
14657 2010-07-01 Pedro Alves <pedro@codesourcery.com>
14659 Static tracepoints, and integration with UST.
14661 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14662 * mem-break.c (uninsert_all_breakpoints)
14663 (reinsert_all_breakpoints): New.
14664 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14665 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14666 (gdb_agent_ust_loaded, helper_thread_id)
14667 (gdb_agent_helper_thread_id): New macros.
14668 (struct ipa_sym_addresses): Add addr_ust_loaded,
14669 addr_helper_thread_id, addr_cmd_buf.
14670 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14671 (in_process_agent_loaded_ust): New.
14672 (write_e_ust_not_loaded): New.
14673 (maybe_write_ipa_ust_not_loaded): New.
14674 (struct collect_static_trace_data_action): New.
14675 (enum tracepoint_type) <static_tracepoint>: New.
14676 (struct tracepoint) <handle>: Mention static tracepoints.
14677 (struct static_tracepoint_ctx): New.
14678 (CMD_BUF_SIZE): New.
14679 (add_tracepoint_action): Handle static tracepoint actions.
14680 (unprobe_marker_at): New.
14681 (clear_installed_tracepoints): Handle static tracepoints.
14682 (cmd_qtdp): Handle static tracepoints.
14683 (probe_marker_at): New.
14684 (cmd_qtstart): Handle static tracepoints.
14685 (response_tracepoint): Handle static tracepoints.
14686 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14687 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14688 (get_context_regcache): Handle static tracepoints.
14689 (do_action_at_tracepoint): Handle static tracepoint actions.
14690 (traceframe_find_block_type): Handle static trace data blocks.
14691 (traceframe_read_sdata): New.
14692 (download_tracepoints): Download static tracepoint actions.
14693 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14694 (GDB_PROBE_NAME): New.
14696 (GET_UST_SYM): New.
14699 (ust_marker_to_static_tracepoint): New.
14701 (collect_ust_data_at_tracepoint): New.
14702 (gdb_ust_probe): New.
14703 (UNIX_PATH_MAX, SOCK_DIR): New.
14704 (gdb_ust_connect_sync_socket): New.
14705 (resume_thread, stop_thread): New.
14706 (run_inferior_command): New.
14707 (init_named_socket): New.
14708 (gdb_ust_socket_init): New.
14709 (cstr_to_hexstr): New.
14711 (first_marker, next_marker): New.
14712 (response_ust_marker): New.
14713 (cmd_qtfstm, cmd_qtsstm): New.
14714 (unprobe_marker_at, probe_marker_at): New.
14715 (cmd_qtstmat, gdb_ust_thread): New.
14716 (gdb_ust_init): New.
14717 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14718 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14719 (ST_REGENTRY): New.
14720 (x86_64_st_collect_regmap): New.
14721 (X86_64_NUM_ST_COLLECT_GREGS): New.
14722 (AMD64_RIP_REGNUM): New.
14723 (supply_static_tracepoint_registers): New.
14724 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14725 (ST_REGENTRY): New.
14726 (i386_st_collect_regmap): New.
14727 (i386_NUM_ST_COLLECT_GREGS): New.
14728 (supply_static_tracepoint_registers): New.
14729 * server.c (handle_query): Handle qXfer:statictrace:read.
14730 <qSupported>: Report support for StaticTracepoints, and
14731 qXfer:statictrace:read features.
14732 * server.h (traceframe_read_sdata)
14733 (supply_static_tracepoint_registers): Declare.
14734 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14735 (unpack_varlen_hex): Include in IPA build.
14736 * Makefile.in (ustlibs, ustinc): New.
14737 (IPA_OBJS): Add remote-utils-ipa.o.
14738 ($(IPA_LIB)): Link -ldl and -lpthread.
14740 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14741 * config.in, configure: Regenerate.
14743 2010-06-20 Ian Lance Taylor <iant@google.com>
14744 Pedro Alves <pedro@codesourcery.com>
14746 * linux-x86-low.c (always_true): Delete.
14747 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14748 trying to fool the compiler with always_true.
14750 2010-06-20 Pedro Alves <pedro@codesourcery.com>
14752 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14753 conditions in gdbserver.
14755 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14757 * spu-low.c (spu_read_memory): Wrap around local store limit.
14758 (spu_write_memory): Likewise.
14760 2010-06-15 Pedro Alves <pedro@codesourcery.com>
14762 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14763 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14765 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14767 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14768 uses with LONGEST uses.
14770 2010-06-14 Stan Shebs <stan@codesourcery.com>
14771 Pedro Alves <pedro@codesourcery.com>
14775 * linux-x86-low.c: Include limits.h.
14777 (always_true): New.
14780 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14781 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14782 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14783 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14784 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14785 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14786 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14787 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14788 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14789 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14790 (amd64_emit_void_call_2): New.
14791 (amd64_emit_ops): New.
14792 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14793 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14794 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14795 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14796 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14797 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14798 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14799 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14800 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14801 (i386_emit_stack_adjust, i386_emit_int_call_1)
14802 (i386_emit_void_call_2): New.
14803 (i386_emit_ops): New.
14804 (x86_emit_ops): New.
14805 (the_low_target): Install x86_emit_ops.
14806 * server.h (struct emit_ops): New.
14807 (get_raw_reg_func_addr): Declare.
14808 (current_insn_ptr, emit_error): Declare.
14809 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14810 (set_trace_state_variable_value): New defines.
14811 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14812 addr_get_trace_state_variable_value and
14813 addr_set_trace_state_variable_value.
14814 (symbol_list): New fields for get_raw_reg,
14815 get_trace_state_variable_value and set_trace_state_variable_value.
14816 (condfn): New typedef.
14817 (struct tracepoint): New field `compiled_cond'.
14818 (do_action_at_tracepoint): Clear compiled_cond.
14819 (get_trace_state_variable_value, set_trace_state_variable_value):
14821 (condition_true_at_tracepoint): If there's a compiled condition,
14823 (current_insn_ptr, emit_error): New globals.
14824 (struct bytecode_address): New.
14825 (get_raw_reg_func_addr): New.
14826 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14827 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14828 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14829 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14830 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14831 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14832 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14833 (compile_tracepoint_condition, compile_bytecodes): New.
14834 * target.h (emit_ops): Forward declare.
14835 (struct target_ops): New field emit_ops.
14836 (target_emit_ops): New.
14837 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14838 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14839 * linux-low.c (linux_emit_ops): New.
14840 (linux_target_ops): Install it.
14841 * linux-low.h (struct linux_target_ops): New field emit_ops.
14843 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14845 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14846 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14848 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14849 Stan Shebs <stan@codesourcery.com>
14851 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14852 (all): Depend on $(extra_libraries).
14853 (install-only): Install the IPA.
14854 (IPA_OBJS, IPA_LIB): New.
14855 (clean): Remove the IPA lib.
14856 (IPAGENT_CFLAGS): New.
14857 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14858 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14859 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14860 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14861 * configure.ac: Check for atomic builtins support in the compiler.
14862 (IPA_DEPFILES, extra_libraries): Define.
14863 * configure.srv (ipa_obj): Add description.
14864 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14865 (i[34567]86-*-linux*): Set ipa_obj.
14866 (x86_64-*-linux*): Set ipa_obj.
14867 * linux-low.c (stabilizing_threads): New.
14868 (supports_fast_tracepoints): New.
14869 (linux_detach): Stabilize threads before detaching.
14870 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14871 the lwp is either not stabilizing, or is moving out of a jump pad.
14872 (linux_fast_tracepoint_collecting): New.
14873 (maybe_move_out_of_jump_pad): New.
14874 (enqueue_one_deferred_signal): New.
14875 (dequeue_one_deferred_signal): New.
14876 (linux_wait_for_event_1): If moving out of a jump pad, defer
14877 pending signals to later.
14878 (linux_stabilize_threads): New.
14879 (linux_wait_1): Check if threads need moving out of jump pads, and
14881 (stuck_in_jump_pad_callback): New.
14882 (move_out_of_jump_pad_callback): New.
14883 (lwp_running): New.
14884 (linux_resume_one_lwp): Handle moving out of jump pads.
14885 (linux_set_resume_request): Dequeue deferred signals.
14886 (need_step_over_p): Also step over fast tracepoint jumps.
14887 (start_step_over): Also uninsert fast tracepoint jumps.
14888 (finish_step_over): Also reinsert fast tracepoint jumps.
14889 (linux_install_fast_tracepoint_jump): New.
14890 (linux_target_ops): Install linux_stabilize_threads and
14891 linux_install_fast_tracepoint_jump_pad.
14892 * linux-low.h (linux_target_ops) <get_thread_area,
14893 install_fast_tracepoint_jump_pad>: New fields.
14894 (struct lwp_info) <collecting_fast_tracepoint,
14895 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14896 (linux_get_thread_area): Declare.
14897 * linux-x86-low.c (jump_insn): New.
14898 (x86_get_thread_area): New.
14899 (append_insns): New.
14900 (push_opcode): New.
14901 (amd64_install_fast_tracepoint_jump_pad): New.
14902 (i386_install_fast_tracepoint_jump_pad): New.
14903 (x86_install_fast_tracepoint_jump_pad): New.
14904 (the_low_target): Install x86_get_thread_area and
14905 x86_install_fast_tracepoint_jump_pad.
14906 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14907 (struct fast_tracepoint_jump): New.
14908 (fast_tracepoint_jump_insn): New.
14909 (fast_tracepoint_jump_shadow): New.
14910 (find_fast_tracepoint_jump_at): New.
14911 (fast_tracepoint_jump_here): New.
14912 (delete_fast_tracepoint_jump): New.
14913 (set_fast_tracepoint_jump): New.
14914 (uninsert_fast_tracepoint_jumps_at): New.
14915 (reinsert_fast_tracepoint_jumps_at): New.
14916 (set_breakpoint_at): Use write_inferior_memory.
14917 (uninsert_raw_breakpoint): Use write_inferior_memory.
14918 (check_mem_read): Mask out fast tracepoint jumps.
14919 (check_mem_write): Mask out fast tracepoint jumps.
14920 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14921 (set_fast_tracepoint_jump): Declare.
14922 (delete_fast_tracepoint_jump)
14923 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14924 (reinsert_fast_tracepoint_jumps_at): Declare.
14925 * regcache.c: Don't compile many functions when building the
14926 in-process agent library.
14927 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14928 the register buffer in the heap.
14929 (free_register_cache): If the register buffer isn't owned by the
14930 regcache, don't free it.
14931 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14932 pre-existing register caches.
14933 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14935 (convert_ascii_to_int): : Constify `from' parameter type.
14936 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14937 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14938 the needed buffer in-place.
14939 (relocate_instruction): New.
14940 * server.c (handle_query) <qSymbols>: If the target supports
14941 tracepoints, give it a chance of looking up symbols. Report
14942 support for fast tracepoints.
14943 (handle_status): Stabilize threads.
14944 (process_serial_event): Adjust.
14945 * server.h (struct fast_tracepoint_jump): Forward declare.
14946 (struct process_info) <fast_tracepoint_jumps>: New field.
14947 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14948 (decode_X_packet, decode_M_packet): Adjust.
14949 (relocate_instruction): Declare.
14950 (in_process_agent_loaded): Declare.
14951 (tracepoint_look_up_symbols): Declare.
14952 (struct fast_tpoint_collect_status): Declare.
14953 (fast_tracepoint_collecting): Declare.
14954 (force_unlock_trace_buffer): Declare.
14955 (handle_tracepoint_bkpts): Declare.
14956 (initialize_low_tracepoint)
14957 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14958 * target.h (struct target_ops) <stabilize_threads,
14959 install_fast_tracepoint_jump_pad>: New fields.
14960 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14961 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14962 [HAVE_STDINT_H]: Include stdint.h.
14963 (trace_debug_1): Rename to ...
14964 (trace_vdebug): ... this.
14965 (trace_debug): Rename to ...
14966 (trace_debug_1): ... this. Add `level' parameter.
14967 (trace_debug): New.
14968 (ATTR_USED, ATTR_NOINLINE): New.
14969 (IP_AGENT_EXPORT): New.
14970 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
14971 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
14972 (about_to_request_buffer_space, trace_buffer_is_full)
14973 (stopping_tracepoint, expr_eval_result, error_tracepoint)
14974 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
14975 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
14976 (traceframe_write_count, traceframes_created)
14977 (trace_state_variables)
14978 New renaming defines.
14979 (struct ipa_sym_addresses): New.
14980 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14981 (symbol_list): New.
14982 (ipa_sym_addrs): New.
14983 (all_tracepoint_symbols_looked_up): New.
14984 (in_process_agent_loaded): New.
14985 (write_e_ipa_not_loaded): New.
14986 (maybe_write_ipa_not_loaded): New.
14987 (tracepoint_look_up_symbols): New.
14988 (debug_threads) [IN_PROCESS_AGENT]: New.
14989 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14990 (UNKNOWN_SIDE_EFFECTS): New.
14991 (stop_tracing): New.
14992 (flush_trace_buffer): New.
14993 (stop_tracing_bkpt): New.
14994 (flush_trace_buffer_bkpt): New.
14995 (read_inferior_integer): New.
14996 (read_inferior_uinteger): New.
14997 (read_inferior_data_pointer): New.
14998 (write_inferior_data_pointer): New.
14999 (write_inferior_integer): New.
15000 (write_inferior_uinteger): New.
15001 (struct collect_static_trace_data_action): Delete.
15002 (enum tracepoint_type): New.
15003 (struct tracepoint) <type>: New field `type'.
15004 <actions_str, step_actions, step_actions_str>: Only include in
15006 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15007 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15008 (tracepoints): Use IP_AGENT_EXPORT.
15009 (last_tracepoint): Don't include in the IPA.
15010 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15011 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15012 (alloced_trace_state_variables): New.
15013 (trace_state_variables): Use IP_AGENT_EXPORT.
15014 (traceframe_t): Delete unused variable.
15015 (circular_trace_buffer): Don't include in the IPA.
15016 (trace_buffer_start): Delete.
15017 (struct trace_buffer_control): New.
15018 (trace_buffer_free): Delete.
15019 (struct ipa_trace_buffer_control): New.
15020 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15021 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15023 (trace_buffer_ctrl): New.
15024 (TRACE_BUFFER_CTRL_CURR): New.
15025 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15026 Reimplement as macros.
15027 (trace_buffer_wrap): Delete.
15028 (traceframe_write_count, traceframe_read_count)
15029 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15030 (struct tracepoint_hit_ctx) <type>: New field.
15031 (struct fast_tracepoint_ctx): New.
15032 (memory_barrier): New.
15034 (record_tracepoint_error): Update atomically in the IPA.
15035 (clear_inferior_trace_buffer): New.
15036 (about_to_request_buffer_space): New.
15037 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15038 updating the same buffer.
15039 (add_tracepoint): Default the tracepoint's type to trap
15040 tracepoint, and orig_size to -1.
15041 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15042 internal variables.
15043 (create_trace_state_variable): New parameter `gdb'. Handle it.
15044 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15045 (cmd_qtdp): Handle fast tracepoints.
15046 (cmd_qtdv): Adjust.
15047 (max_jump_pad_size): New.
15048 (gdb_jump_pad_head): New.
15049 (get_jump_space_head): New.
15050 (claim_jump_space): New.
15051 (sort_tracepoints): New.
15052 (MAX_JUMP_SIZE): New.
15053 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15055 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15056 support. Upload fast traceframes, and delete internal IPA
15058 (stop_tracing_handler): New.
15059 (flush_trace_buffer_handler): New.
15060 (cmd_qtstop): Upload fast tracepoints.
15061 (response_tracepoint): Handle fast tracepoints.
15062 (tracepoint_finished_step): Upload fast traceframes. Set the
15063 tracepoint hit context's tracepoint type.
15064 (handle_tracepoint_bkpts): New.
15065 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15066 type. Add comment about fast tracepoints.
15067 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15068 non-existing action_str field.
15069 (get_context_regcache): Handle fast tracepoints.
15070 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15072 (fast_tracepoint_from_jump_pad_address): New.
15073 (fast_tracepoint_from_ipa_tpoint_address): New.
15074 (collecting_t): New.
15075 (force_unlock_trace_buffer): New.
15076 (fast_tracepoint_collecting): New.
15078 (gdb_collect): New.
15079 (write_inferior_data_ptr): New.
15080 (target_tp_heap): New.
15081 (target_malloc): New.
15082 (download_agent_expr): New.
15084 (download_tracepoints): New.
15085 (download_trace_state_variables): New.
15086 (upload_fast_traceframes): New.
15087 (IPA_FIRST_TRACEFRAME): New.
15088 (IPA_NEXT_TRACEFRAME_1): New.
15089 (IPA_NEXT_TRACEFRAME): New.
15090 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15091 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15092 (gdb_jump_pad_buffer_end): New.
15093 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15094 (initialize_tracepoint): Adjust.
15095 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15096 buffer. Initialize the low module.
15097 * utils.c (PREFIX, TOOLNAME): New.
15098 (malloc_failure): Use PREFIX.
15099 (error): In the IPA, an error causes an exit.
15100 (fatal, warning): Use PREFIX.
15101 (internal_error): Use TOOLNAME.
15102 (NUMCELLS): Increase to 10.
15103 * configure, config.in: Regenerate.
15105 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15107 * server.c (handle_query) <qSupported>: Do two passes over the
15108 qSupported string to avoid nesting strtok.
15110 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15112 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15114 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15115 -Wl,--dynamic-list.
15116 * configure: Regenerate.
15117 * proc-service.list: New.
15119 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15121 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15124 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15126 * gdbreplay.c (remote_open): Check error return from socket() call by
15127 its equality to -1 not by it being negative.
15128 * remote-utils.c (remote_open): Likewise.
15130 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15132 * config.h: Regenerate.
15134 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15136 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15137 doesn't provide PTRACE_GET_THREAD_AREA.
15139 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15141 * linux-m68k-low.c: Include <asm/ptrace.h>
15142 (ps_get_thread_area): Implement.
15144 2010-05-03 Doug Evans <dje@google.com>
15146 * event-loop.c (struct callback_event): New struct.
15147 (callback_list): New global.
15148 (append_callback_event, delete_callback_event): New functions.
15149 (process_callback): New function.
15150 (start_event_loop): Call it.
15151 * remote-utils.c (NOT_SCHEDULED): Define.
15152 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15153 moved out of readchar.
15154 (readchar): Rewrite. Call reschedule before returning.
15155 (reset_readchar): New function.
15156 (remote_close): Call it.
15157 (process_remaining, reschedule): New functions.
15158 * server.h (callback_handler_func): New typedef.
15159 (append_callback_event, delete_callback_event): Declare.
15161 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15163 * proc-service.c (ps_pglobal_lookup): Use
15164 thread_db_look_up_one_symbol.
15165 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15166 parameter. Use it instead of all_symbols_looked_up.
15167 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15169 (all_symbols_looked_up): Don't declare.
15170 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15171 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15173 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15174 Set all_symbols_looked_up here.
15175 (thread_db_look_up_one_symbol): New.
15176 (thread_db_get_tls_address): Adjust.
15177 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15178 thread_db object on the heap, and tentatively set it in the
15180 (thread_db_init): Don't set all_symbols_looked_up here.
15181 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15183 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15185 * linux-low.c (linux_kill, linux_detach): Adjust.
15186 (status_pending_p_callback): Remove redundant statement. Check
15187 for !TARGET_WAITIKIND_IGNORE, instead of
15188 TARGET_WAITKIND_STOPPED.
15189 (handle_tracepoints): Make sure LWP is locked. Adjust.
15190 (linux_wait_for_event_1): Adjust.
15191 (linux_cancel_breakpoints): New.
15192 (unsuspend_one_lwp): New.
15193 (unsuspend_all_lwps): New.
15194 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15195 (send_sigstop_callback): Change return type to int, add new
15196 `except' parameter and handle it.
15197 (suspend_and_send_sigstop_callback): New.
15198 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15199 pass them down. If SUSPEND, also increment the lwp's suspend
15201 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15202 (need_step_over_p): Don't consider suspended LWPs.
15203 (start_step_over): Adjust.
15204 (proceed_one_lwp): Change return type to int, add new `except'
15205 parameter and handle it.
15206 (unsuspend_and_proceed_one_lwp): New.
15207 (proceed_all_lwps): Use find_inferior instead of
15209 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15210 also decrement the suspend count of LWPs. Pass `except' down,
15211 instead of hacking its suspend count.
15212 (linux_pause_all): Add `freeze' parameter. Adjust.
15213 (linux_unpause_all): New.
15214 (linux_target_ops): Install linux_unpause_all.
15215 * server.c (handle_status): Adjust.
15216 * target.h (struct target_ops): New fields `unpause_all' and
15217 `cancel_breakpoints'. Add new parameter to `pause_all'.
15218 (pause_all): Add new `freeze' parameter.
15219 (unpause_all): New.
15220 (cancel_breakpoints): New.
15221 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15222 cancel breakpoints.
15223 (cmd_qtstart): Pause threads.
15224 (stop_tracing): Pause threads, and cancel breakpoints.
15225 * win32-low.c (win32_target_ops): Adjust.
15227 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15229 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15230 the inferior right away from here...
15231 (linux_wait_1): ... to here, and adjust to check the thread's
15232 last_resume_kind instead of the lwp's step or stop_expected flags.
15234 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15236 * README: Use consistent `GDB' and `GDBserver' spellings.
15238 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15240 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15241 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15242 (linux_detach_one_lwp): Assume the lwp is stopped.
15243 (any_thread_of): Delete.
15244 (linux_detach): Stop all lwps here. Don't blindly delete all
15246 (delete_lwp_callback): New.
15247 (linux_mourn): Delete all lwps of the process that is gone.
15248 (linux_wait_1): Don't delete the last lwp of the process here.
15249 * mem-break.h (mark_breakpoints_out): Declare.
15250 * mem-break.c (mark_breakpoints_out): New.
15251 (free_all_breakpoints): Use it.
15252 * server.c (handle_target_event): If the process is gone, mark
15254 * thread-db.c (struct thread_db) <create_bp>: New field.
15255 (thread_db_enable_reporting): Fix prototype. Store a thread event
15256 breakpoint reference in the thread_db struct.
15257 (thread_db_load_search): Clear the thread_db object.
15258 (try_thread_db_load_1): Ditto.
15259 (switch_to_process): New.
15260 (disable_thread_event_reporting): Use it.
15261 (remove_thread_event_breakpoints): New.
15262 (thread_db_detach, thread_db_mourn): Use it.
15264 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15266 * linux-low.c (linux_enable_event_reporting): New.
15267 (linux_wait_for_event_1, handle_extended_wait): Use it.
15269 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15271 * linux-low.c (linux_kill_one_lwp, linux_kill)
15272 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15273 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15274 SIGSTOP even if the LWP is stopped.
15275 (send_sigstop_callback): New.
15276 (stop_all_lwps): Use send_sigstop_callback instead.
15277 (linux_resume_one_thread): Adjust.
15278 (proceed_one_lwp): Still proceed an LWP that the client has
15279 requested to stop, if we haven't reported it as stopped yet. Make
15280 sure that LWPs the client want stopped, have a pending SIGSTOP.
15282 2010-04-26 Doug Evans <dje@google.com>
15284 * server.c (handle_general_set): Make static.
15286 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15287 Print received char after testing for error/eof instead of before.
15288 (input_interrupt): Tweak comment.
15290 2010-04-23 Doug Evans <dje@google.com>
15292 * server.c (start_inferior): Print inferior argv if --debug.
15294 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15296 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15297 * nto-x86-low.c: Include server.h
15299 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15301 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15302 be consistent with other sources of this directory.
15303 (init_registers_amd64): Correct name of source file of this function
15306 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15308 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15309 64-bit executables.
15311 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15313 * win32-i386-low.c: Add 64-bit support.
15314 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15315 (init_registers_amd64): Declare.
15316 (mappings): Add 64-bit version of array.
15317 (init_windows_x86): New function.
15318 (the_low_target): Change init_arch field to init_windows_x86.
15320 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15322 * win32-low.c: Adapt to support also 64-bit architecture.
15323 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15324 (get_image_name): Use SIZE_T type for local variable `done'.
15325 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15326 (toolhelp_get_dll_name): Idem.
15327 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15328 Use uintptr_t typecast to avoid warning.
15329 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15330 (handle_exception): Use phex_nz to avoid warning.
15331 (win32_wait): Remove unused local variable `process'.
15333 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15335 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15338 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15340 * configure.ac: Use `ws2_32' library for srv_mingw.
15341 * configure: Regenerate.
15342 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15343 * remote-utils.c: Likewise.
15345 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15347 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15348 if __x86_64__ is defined.
15350 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15352 * configure: Regenerate.
15354 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15356 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15357 * target.h (target_ops): New get_tib_address field.
15358 * win32-low.h (win32_thread_info): Add thread_local_base field.
15359 * win32-low.c (child_add_thread): Add tlb argument.
15360 Set thread_local_base field to TLB.
15361 (get_child_debug_event): Adapt to child_add_thread change.
15362 (win32_get_tib_address): New function.
15363 (win32_target_ops): Set get_tib_address field to
15364 win32_get_tib_address.
15365 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15367 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15369 * linux-low.c (linux_mourn): Also remove the process.
15370 * server.c (handle_target_event): Don't remove the process here.
15371 * nto-low.c (nto_mourn): New.
15372 (nto_target_ops): Install it.
15373 * spu-low.c (spu_mourn): New.
15374 (spu_target_ops): Install it.
15375 * win32-low.c (win32_mourn): New.
15376 (win32_target_ops): Install it.
15378 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15380 * server.h (buffer_xml_printf): Remove redundant `;'.
15382 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15384 * regcache.c (set_register_cache): Invalidate regcaches before
15385 changing the register cache layout.
15386 (regcache_invalidate_one): Allow a NULL regcache.
15387 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15388 regcaches before changing the register cache layout or the target
15391 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15393 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15394 variable warning on Linux/x86-64.
15396 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15398 GDBserver disconnected tracing support.
15400 * linux-low.c (linux_remove_process): Delete.
15401 (add_lwp): Don't set last_resume_kind here.
15402 (linux_kill): Use `mourn'.
15403 (linux_detach): Use `thread_db_detach', and `mourn'.
15404 (linux_mourn): New.
15405 (linux_attach_lwp_1): Adjust comment.
15406 (linux_attach): last_resume_kind moved the thread_info; adjust.
15407 (status_pending_p_callback): Adjust.
15408 (linux_wait_for_event_1): Adjust.
15409 (count_events_callback, select_singlestep_lwp_callback)
15410 (select_event_lwp_callback, cancel_breakpoints_callback)
15411 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15412 (proceed_one_lwp): Adjust.
15413 (linux_async): Add debug output.
15414 (linux_thread_stopped): New.
15415 (linux_pause_all): New.
15416 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15418 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15419 (thread_db_free): Delete declaration.
15420 (thread_db_detach, thread_db_mourn): Declare.
15421 * thread-db.c (thread_db_init): Use thread_db_mourn.
15422 (thread_db_free): Delete, split in two.
15423 (disable_thread_event_reporting): New.
15424 (thread_db_detach): New.
15425 (thread_db_mourn): New.
15427 * server.h (struct thread_info) <last_resume_kind>: New field.
15428 <attached>: Add comment.
15429 <gdb_detached>: New field.
15430 (handler_func): Change return type to int.
15431 (handle_serial_event, handle_target_event): Ditto.
15432 (gdb_connected): Declare.
15434 (disconnected_tracing): Declare.
15435 (stop_tracing): Declare.
15437 * server.c (handle_query) <qSupported>: Report support for
15438 disconnected tracing.
15439 (queue_stop_reply_callback): Account for running threads.
15440 (gdb_wants_thread_stopped): New.
15441 (gdb_wants_all_threads_stopped): New.
15442 (gdb_reattached_process): New.
15443 (handle_status): Clear the `gdb_detached' flag of all processes.
15444 In all-stop, stop all threads.
15445 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15446 (process_serial_event): If the remote connection breaks, or if an
15447 exit was forced with "monitor exit", force an event loop exit.
15448 Handle disconnected tracing on detach.
15449 (handle_serial_event): Adjust.
15450 (handle_target_event): If GDB isn't connected, forward events back
15451 to the inferior, unless the last process exited, in which case,
15452 exit gdbserver. Adjust interface.
15454 * remote-utils.c (remote_open): Don't block in accept. Instead
15455 register an event loop source on the listen socket file
15456 descriptor. Refactor bits into ...
15457 (listen_desc): ... this new global.
15458 (gdb_connected): ... this new function.
15459 (enable_async_notification): ... this new function.
15460 (handle_accept_event): ... this new function.
15461 (remote_close): Clear remote_desc.
15463 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15465 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15467 (mourn_inferior): Define.
15468 (target_process_qsupported): Avoid the dangling else problem.
15469 (thread_stopped): Define.
15470 (pause_all): Define.
15471 (target_waitstatus_to_string): Declare.
15472 * target.c (target_waitstatus_to_string): New.
15474 * tracepoint.c (tracing): Make extern.
15475 (disconnected_tracing): New.
15476 (stop_tracing): Make extern. Handle tracing stops due to GDB
15478 (cmd_qtdisconnected): New.
15479 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15480 (handle_tracepoint_general_set): Handle QTDisconnected.
15482 * event-loop.c (event_handler_func): Change return type to int.
15483 (process_event): Bail out if the event handler wants the event
15485 (handle_file_event): Ditto.
15486 (start_event_loop): Bail out if the event handler wants the event
15489 * nto-low.c (nto_target_ops): Adjust.
15490 * spu-low.c (spu_wait): Don't remove the process here.
15491 (spu_target_ops): Adjust.
15492 * win32-low.c (win32_wait): Don't remove the process here.
15493 (win32_target_ops): Adjust.
15495 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15497 * regcache.c (realloc_register_cache): Invalidate inferior's
15498 regcache before recreating it.
15500 2010-04-09 Pedro Alves <pedro@codesourcery.com>
15502 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15504 2010-04-09 Stan Shebs <stan@codesourcery.com>
15505 Pedro Alves <pedro@codesourcery.com>
15507 * server.h (LONGEST): New.
15508 (struct thread_info) <while_stepping>: New field.
15509 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15511 (initialize_tracepoint, handle_tracepoint_general_set)
15512 (handle_tracepoint_query, tracepoint_finished_step)
15513 (tracepoint_was_hit, release_while_stepping_state_list):
15514 (current_traceframe): Declare.
15515 * server.c (handle_general_set): Handle tracepoint packets.
15516 (read_memory): New.
15517 (write_memory): New.
15518 (handle_search_memory_1): Use read_memory.
15519 (handle_query): Report support for conditional tracepoints, trace
15520 state variables, and tracepoint sources. Handle tracepoint
15522 (main): Initialize the tracepoints module.
15523 (process_serial_event): Handle traceframe reads/writes.
15525 * linux-low.c (handle_tracepoints): New.
15526 (linux_wait_1): Call it.
15527 (linux_resume_one_lwp): Handle while-stepping.
15528 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15529 (linux_target_ops): Install them.
15530 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15532 * linux-x86-low.c (x86_supports_tracepoints): New.
15533 (the_low_target). Install it.
15535 * mem-break.h (delete_breakpoint): Declare.
15536 * mem-break.c (delete_breakpoint): Make external.
15538 * target.h (struct target_ops): Add `supports_tracepoints',
15539 `read_pc', and `write_pc' fields.
15540 (target_supports_tracepoints): Define.
15541 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15544 * regcache.h (struct regcache) <registers_owned>: New field.
15545 (init_register_cache, regcache_cpy): Declare.
15546 (regcache_read_pc, regcache_write_pc): Declare.
15547 (register_cache_size): Declare.
15548 (supply_regblock): Declare.
15549 * regcache.c (init_register_cache): New.
15550 (new_register_cache): Use it.
15551 (regcache_cpy): New.
15552 (register_cache_size): New.
15553 (supply_regblock): New.
15554 (regcache_read_pc, regcache_write_pc): New.
15556 * tracepoint.c: New.
15558 * Makefile.in (OBS): Add tracepoint.o.
15559 (tracepoint.o): New rule.
15561 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15563 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15565 (i386-mmx.c): Likewise.
15566 (i386-mmx-linux.o): Likewise.
15567 (i386-mmx-linux.c): Likewise.
15569 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15570 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15571 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15572 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15574 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15575 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15576 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15578 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15580 * Makefile.in (clean): Updated.
15582 (i386-avx.c): Likewise.
15583 (i386-avx-linux.o): Likewise.
15584 (i386-avx-linux.c): Likewise.
15585 (amd64-avx.o): Likewise.
15586 (amd64-avx.c): Likewise.
15587 (amd64-avx-linux.o): Likewise.
15588 (amd64-avx-linux.c): Likewise.
15590 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15591 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15592 (srv_amd64_regobj): Add amd64-avx.o.
15593 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15594 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15595 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15596 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15597 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15598 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15599 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15601 * i387-fp.c: Include "i386-xstate.h".
15603 (i387_cache_to_xsave): Likewise.
15604 (i387_xsave_to_cache): Likewise.
15605 (x86_xcr0): Likewise.
15607 * i387-fp.h (i387_cache_to_xsave): Likewise.
15608 (i387_xsave_to_cache): Likewise.
15609 (x86_xcr0): Likewise.
15611 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15612 * linux-crisv32-low.c (target_regsets): Likewise.
15613 * linux-m68k-low.c (target_regsets): Likewise.
15614 * linux-mips-low.c (target_regsets): Likewise.
15615 * linux-ppc-low.c (target_regsets): Likewise.
15616 * linux-s390-low.c (target_regsets): Likewise.
15617 * linux-sh-low.c (target_regsets): Likewise.
15618 * linux-sparc-low.c (target_regsets): Likewise.
15619 * linux-xtensa-low.c (target_regsets): Likewise.
15621 * linux-low.c: Include <sys/uio.h>.
15622 (regsets_fetch_inferior_registers): Support nt_type.
15623 (regsets_store_inferior_registers): Likewise.
15624 (linux_process_qsupported): New.
15625 (linux_target_ops): Add linux_process_qsupported.
15627 * linux-low.h (regset_info): Add nt_type.
15628 (linux_target_ops): Add process_qsupported.
15630 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15632 (init_registers_i386_avx_linux): New.
15633 (init_registers_amd64_avx_linux): Likewise.
15634 (xmltarget_i386_linux_no_xml): Likewise.
15635 (xmltarget_amd64_linux_no_xml): Likewise.
15636 (PTRACE_GETREGSET): Likewise.
15637 (PTRACE_SETREGSET): Likewise.
15638 (x86_fill_xstateregset): Likewise.
15639 (x86_store_xstateregset): Likewise.
15640 (use_xml): Likewise.
15641 (x86_linux_update_xmltarget): Likewise.
15642 (x86_linux_process_qsupported): Likewise.
15643 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15644 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15645 init_registers_i386_linux here. Call
15646 x86_linux_update_xmltarget.
15647 (the_low_target): Add x86_linux_process_qsupported.
15649 * server.c (handle_query): Call target_process_qsupported.
15651 * target.h (target_ops): Add process_qsupported.
15652 (target_process_qsupported): New.
15654 2010-04-03 Pedro Alves <pedro@codesourcery.com>
15656 * inferiors.c (add_thread): Set last_status kind to
15657 TARGET_WAITKIND_IGNORE.
15658 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15659 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15660 (linux_wait_1): Move `thread' local definition to block that uses
15661 it. Don't NULL initialize `event_child'.
15662 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15663 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15664 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15666 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15668 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15669 an extended waitstatus, or by a watchpoint.
15670 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15671 thread was stepping or has been stopped by a watchpoint.
15673 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15675 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15676 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15677 of another, then delete the previous, and validate all
15679 (validate_inserted_breakpoint): New.
15680 (delete_disabled_breakpoints): New.
15681 (validate_breakpoints): New.
15682 (check_mem_read): Validate breakpoints before trusting their
15683 shadow. Delete disabled breakpoints.
15684 (check_mem_write): Validate breakpoints before trusting they
15685 should be inserted. Delete disabled breakpoints.
15686 * mem-break.h (validate_breakpoints):
15687 * server.c (handle_query): Validate breakpoints when we see a
15690 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15692 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15693 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15694 if we could tell there's a GDB breakpoint at stop_pc.
15695 (need_step_over_p): Don't do a step over if we find a GDB
15696 breakpoint at the resume PC.
15698 * mem-break.c (struct raw_breakpoint): New.
15699 (enum bkpt_type): New type `gdb_breakpoint'.
15700 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15701 fields. New field `raw'.
15702 (find_raw_breakpoint_at): New.
15703 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15704 breakpoint instead.
15705 (set_breakpoint_at): Adjust.
15706 (delete_raw_breakpoint): New.
15707 (release_breakpoint): New.
15708 (delete_breakpoint): Rename to...
15709 (delete_breakpoint_1): ... this. Add proc parameter. Use
15710 release_breakpoint. Return ENOENT.
15711 (delete_breakpoint): Reimplement.
15712 (find_breakpoint_at): Delete.
15713 (find_gdb_breakpoint_at): New.
15714 (delete_breakpoint_at): Delete.
15715 (set_gdb_breakpoint_at): New.
15716 (delete_gdb_breakpoint_at): New.
15717 (gdb_breakpoint_here): New.
15718 (set_reinsert_breakpoint): Use release_breakpoint.
15719 (uninsert_breakpoint): Rename to ...
15720 (uninsert_raw_breakpoint): ... this.
15721 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15722 (reinsert_raw_breakpoint): Change parameter type to
15724 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15726 (check_breakpoints): Adjust. Use release_breakpoint.
15727 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15728 (breakpoint_inserted_here): Ditto.
15729 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15730 Don't trust the breakpoint's shadow if it is not inserted.
15731 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15732 (delete_all_breakpoints): Adjust.
15733 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15734 use delete_breakpoint_1.
15736 * mem-break.h (breakpoints_supported): Delete declaration.
15737 (set_gdb_breakpoint_at): Declare.
15738 (gdb_breakpoint_here): Declare.
15739 (delete_breakpoint_at): Delete.
15740 (delete_gdb_breakpoint_at): Declare.
15742 * server.h (struct raw_breakpoint): Forward declare.
15743 (struct process_info): New field `raw_breakpoints'.
15745 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15748 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15750 * linux-low.c (status_pending_p_callback): Fix comment.
15751 (linux_wait_for_event_1): Move most of the internal breakpoint
15752 handling from here...
15753 (linux_wait_1): ... to here.
15754 (count_events_callback): New.
15755 (select_singlestep_lwp_callback): New.
15756 (select_event_lwp_callback): New.
15757 (cancel_breakpoints_callback): New.
15758 (select_event_lwp): New.
15759 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15760 priority to all LWPs that have had events that should be reported
15761 to the client. Cancel breakpoints when about to reporting the
15762 event to the client, not while stopping lwps. No longer cancel
15763 finished single-steps here.
15764 (cancel_finished_single_step): Delete.
15765 (cancel_finished_single_steps): Delete.
15767 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15769 * mem-break.c (enum bkpt_type): New.
15770 (struct breakpoint): New field `type'.
15771 (set_breakpoint_at): Change return type to struct breakpoint
15772 pointer. Set type to `other_breakpoint' by default.
15773 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15774 in the breakpoint list.
15775 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15776 (reinsert_breakpoint): Rename to ...
15777 (reinsert_raw_breakpoint): ... this.
15778 (reinsert_breakpoints_at): Adjust.
15779 * mem-break.h (struct breakpoint): Declare.
15780 (set_breakpoint_at): Change return type to struct breakpoint
15783 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15785 * server.c (handle_query): Assign, not compare.
15787 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15789 Teach linux gdbserver to step-over-breakpoints.
15791 * linux-low.c (can_hardware_single_step): New.
15792 (supports_breakpoints): New.
15793 (handle_extended_wait): If stopping threads, read the stop pc of
15794 the new cloned LWP.
15796 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15797 low target doesn't support retrieving the PC.
15798 (add_lwp): Set last_resume_kind to resume_continue.
15799 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15800 (linux_attach): Don't clear stop_expected. Set the lwp's
15801 last_resume_kind to resume_stop.
15802 (linux_detach_one_lwp): Don't check for removed breakpoints.
15803 (check_removed_breakpoint): Delete.
15804 (status_pending_p): Rename to ...
15805 (status_pending_p_callback): ... this. Don't check for removed
15806 breakpoints. Don't consider threads that are stopped from GDB's
15808 (linux_wait_for_lwp): Always read the stop_pc here.
15809 (cancel_breakpoint): New.
15810 (step_over_bkpt): New global.
15811 (linux_wait_for_event_1): Implement stepping over breakpoints.
15812 (gdb_wants_lwp_stopped): New.
15813 (gdb_wants_all_stopped): New.
15814 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15815 single-step traps here. Store the thread's last reported target
15817 (send_sigstop): Don't clear stop_expected. Always set it,
15819 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15820 (cancel_finished_single_step): New.
15821 (cancel_finished_single_steps): New.
15822 (wait_for_sigstop): Don't cancel finished single-step traps here.
15823 (linux_resume_one_lwp): Don't check for removed breakpoints.
15824 Don't set `step' on non-hardware step archs.
15825 (linux_set_resume_request): Ignore resume_stop requests if already
15826 stopping or stopped. Set the lwp's last_resume_kind.
15827 (resume_status_pending_p): Don't check for removed breakpoints.
15828 (need_step_over_p): New.
15829 (start_step_over): New.
15830 (finish_step_over): New.
15831 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15832 requests. Clear the thread's last reported target waitstatus.
15833 Don't use the `suspended' flag. Don't consider pending breakpoints.
15834 (linux_resume): Start a step-over if necessary.
15835 (proceed_one_lwp): New.
15836 (proceed_all_lwps): New.
15837 (unstop_all_lwps): New.
15838 * linux-low.h (struct lwp_info): Rewrite comment for the
15839 `suspended' flag. Add the `stop_pc' field. Delete the
15840 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15841 Add `'last_resume_kind' and `need_step_over' fields.
15842 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15843 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15844 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15845 (set_raw_breakpoint_at): New.
15846 (set_breakpoint_at): Rewrite to use it.
15847 (reinsert_breakpoint_handler): Delete.
15848 (set_reinsert_breakpoint): New.
15849 (reinsert_breakpoint_by_bp): Delete.
15850 (delete_reinsert_breakpoints): New.
15851 (uninsert_breakpoint): Rewrite.
15852 (uninsert_breakpoints_at): New.
15853 (reinsert_breakpoint): Rewrite.
15854 (reinsert_breakpoints_at): New.
15855 (check_breakpoints): Rewrite.
15856 (breakpoint_here): New.
15857 (breakpoint_inserted_here): New.
15858 (check_mem_read): Adjust.
15859 * mem-break.h (breakpoints_supported, breakpoint_here)
15860 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15861 (reinsert_breakpoint_by_bp): Delete declaration.
15862 (delete_reinsert_breakpoints): Declare.
15863 (reinsert_breakpoint): Delete declaration.
15864 (reinsert_breakpoints_at): Declare.
15865 (uninsert_breakpoint): Delete declaration.
15866 (uninsert_breakpoints_at): Declare.
15867 (check_breakpoints): Adjust prototype.
15868 * server.h: Adjust include order.
15869 (struct thread_info): Declare here. Add a `last_status' field.
15871 2010-03-23 Michael Snyder <msnyder@vmware.com>
15873 * server.c (crc32): New function.
15874 (handle_query): Add handling for 'qCRC:' request.
15876 2010-03-23 Pedro Alves <pedro@codesourcery.com>
15878 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15879 lwp had been stopped by a watchpoint.
15881 2010-03-16 Pedro Alves <pedro@codesourcery.com>
15883 * server.h (internal_error): Declare.
15884 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15885 * utils.c (internal_error): New function.
15887 2010-03-15 Andreas Schwab <schwab@redhat.com>
15889 * configure.srv: Fix typo setting srv_regobj.
15891 2010-03-15 Pedro Alves <pedro@codesourcery.com>
15893 * linux-low.c (fetch_register): Avoid passing a non string literal
15895 (usr_store_inferior_registers): Ditto.
15897 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15899 * linux-low.c (linux_write_memory): Bail out early if peeking
15902 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15904 * linux-low.h (struct lwp_info): New fields
15905 `stopped_by_watchpoint' and `stopped_data_address'.
15906 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15907 here, and cache them in the lwp object.
15908 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15910 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15912 (linux_stopped_by_watchpoint): Rewrite.
15913 (linux_stopped_data_address): Rewrite.
15915 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
15917 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15918 switching the current inferior, not before.
15920 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15922 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15923 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15924 i386-linux.c and amd64-linux.c.
15925 (reg-i386.o): Removed.
15926 (reg-i386.c): Likewise.
15927 (reg-i386-linux.o): Likewise.
15928 (reg-i386-linux.c): Likewise.
15929 (reg-x86-64.o): Likewise.
15930 (reg-x86-64.c): Likewise.
15931 (reg-x86-64-linux.o): Likewise.
15932 (reg-x86-64-linux.c): Likewise.
15934 (i386.c): Likewise.
15935 (i386-linux.o): Likewise.
15936 (i386-linux.c): Likewise.
15937 (amd64.o): Likewise.
15938 (amd64.c): Likewise.
15939 (amd64-linux.o): Likewise.
15940 (amd64-linux.c): Likewise.
15942 * configure.srv (srv_i386_regobj): New.
15943 (srv_i386_linux_regobj): Likewise.
15944 (srv_amd64_regobj): Likewise.
15945 (srv_amd64_linux_regobj): Likewise.
15946 (srv_i386_32bit_xmlfiles): Likewise.
15947 (srv_i386_64bit_xmlfiles): Likewise.
15948 (srv_i386_xmlfiles): Likewise.
15949 (srv_amd64_xmlfiles): Likewise.
15950 (srv_i386_linux_xmlfiles): Likewise.
15951 (srv_amd64_linux_xmlfiles): Likewise.
15952 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15953 srv_xmlfiles to $srv_i386_xmlfiles.
15954 (i[34567]86-*-mingw32ce*): Likewise.
15955 (i[34567]86-*-mingw*): Likewise.
15956 (i[34567]86-*-nto*): Likewise.
15957 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15958 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15959 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15960 (x86_64-*-linux*): Likewise.
15962 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15963 (init_registers_amd64_linux): New.
15964 (x86_arch_setup): Replace init_registers_x86_64_linux with
15965 init_registers_amd64_linux.
15967 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15969 * configure.ac: Check for libdl. If it is not available link against
15970 static libthread_db.
15971 * configure: Regenerate.
15973 2010-02-22 Pedro Alves <pedro@codesourcery.com>
15977 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
15978 handing a read watchpoint.
15979 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15981 2010-02-12 Doug Evans <dje@google.com>
15983 * linux-low.c (linux_supports_tracefork_flag): Document.
15984 (linux_look_up_symbols): Add comment.
15986 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15988 * regcache.c (supply_register): Clear regcache if buf is NULL.
15990 2010-02-02 Nicolas Roche <roche@sourceware.org>
15991 Joel Brobecker <brobecker@adacore.com>
15993 * inferiors.c (find_inferior): Add function documentation.
15994 (unloaded_dll): Handle the case where the unloaded dll has not
15995 been previously registered in the dll list.
15997 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15999 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16000 (thumb2_breakpoint): New.
16001 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16003 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16005 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16006 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16009 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16011 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16013 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16015 * linux-s390-low.c (s390_collect_ptrace_register)
16016 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16018 2010-01-21 Doug Evans <dje@google.com>
16020 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16021 (PTRACE_ARG4_TYPE): New macro.
16022 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16023 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16024 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16025 (usr_store_inferior_registers): Ditto.
16026 (linux_read_memory, linux_write_memory): Ditto.
16027 (linux_test_for_tracefork): Ditto.
16029 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16030 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16032 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16034 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16037 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16039 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16040 prototype to take a regcache. Adjust.
16042 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16044 * regcache.h (struct thread_info): Forward declare.
16045 (struct regcache): New.
16046 (new_register_cache): Adjust prototype.
16047 (get_thread_regcache): Declare.
16048 (free_register_cache): Adjust prototype.
16049 (registers_to_string, registers_from_string): Ditto.
16050 (supply_register, supply_register_by_name, collect_register)
16051 (collect_register_as_string, collect_register_by_name): Ditto.
16052 * regcache.c (struct inferior_regcache_data): Delete.
16053 (get_regcache): Rename to ...
16054 (get_thread_regcache): ... this. Adjust. Switch inferior before
16055 fetching registers.
16056 (regcache_invalidate_one): Adjust.
16057 (regcache_invalidate): Fix prototype.
16058 (new_register_cache): Return the new register cache.
16059 (free_register_cache): Change prototype.
16060 (realloc_register_cache): Adjust.
16061 (registers_to_string): Change prototype to take a regcache. Adjust.
16062 (registers_from_string): Ditto.
16063 (register_data): Ditto.
16064 (supply_register): Ditto.
16065 (supply_register_by_name): Ditto.
16066 (collect_register): Ditto.
16067 (collect_register_as_string): Ditto.
16068 (collect_register_by_name): Ditto.
16069 * server.c (process_serial_event): Adjust.
16070 * linux-low.h (regset_fill_func, regset_store_func): Change
16072 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16074 * linux-low.c (get_stop_pc): Adjust.
16075 (check_removed_breakpoint): Adjust.
16076 (linux_wait_for_event): Adjust.
16077 (linux_resume_one_lwp): Adjust.
16078 (fetch_register): Add regcache parameter. Adjust.
16079 (usr_store_inferior_registers): Ditto.
16080 (regsets_fetch_inferior_registers): Ditto.
16081 (regsets_store_inferior_registers): Ditto.
16082 (linux_fetch_registers, linux_store_registers): Ditto.
16083 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16085 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16087 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16088 prototype to take a regcache.
16089 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16090 * remote-utils.c (convert_ascii_to_int, outreg)
16091 (prepare_resume_reply): Change prototype to take a regcache.
16093 * target.h (struct target_ops) <fetch_registers, store_registers>:
16094 Change prototype to take a regcache.
16095 (fetch_inferior_registers, store_inferior_registers): Change
16096 prototype to take a regcache. Adjust.
16097 * proc-service.c (ps_lgetregs): Adjust.
16098 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16099 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16100 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16101 take a regcache. Adjust.
16102 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16103 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16104 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16105 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16106 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16107 (cris_cannot_fetch_register):
16108 (cris_breakpoint_at): Change prototype to take a regcache.
16110 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16111 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16112 to take a regcache. Adjust.
16113 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16115 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16116 take a regcache. Adjust.
16117 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16118 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16119 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16120 * linux-mips-low.c (mips_get_pc):
16121 (mips_set_pc): Change prototype to take a regcache. Adjust.
16122 (mips_reinsert_addr): Adjust.
16123 (mips_collect_register): Change prototype to take a regcache.
16125 (mips_supply_register):
16126 (mips_collect_register_32bit, mips_supply_register_32bit)
16127 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16128 (mips_store_fpregset): Ditto.
16129 * linux-ppc-low.c (ppc_supply_ptrace_register)
16130 (ppc_supply_ptrace_register): Ditto.
16131 (parse_spufs_run): Adjust.
16132 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16133 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16134 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16135 take a regcache. Adjust.
16136 * linux-s390-low.c (s390_collect_ptrace_register)
16137 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16138 (s390_set_pc): Change prototype to take a regcache. Adjust.
16139 (s390_arch_setup): Adjust.
16140 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16141 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16142 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16143 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16144 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16146 (sparc_breakpoint_at): Adjust.
16147 * linux-xtensa-low.c (xtensa_fill_gregset):
16148 (xtensa_store_gregset):
16149 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16150 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16151 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16152 prototype to take a regcache. Adjust.
16153 * win32-arm-low.c (arm_fetch_inferior_register)
16154 (arm_store_inferior_register): Change prototype to take a
16156 * win32-i386-low.c (i386_fetch_inferior_register)
16157 (i386_store_inferior_register): Change prototype to take a
16159 * win32-low.c (child_fetch_inferior_registers)
16160 (child_store_inferior_registers): Change prototype to take a
16162 (win32_wait): Adjust.
16163 (win32_fetch_inferior_registers): Change prototype to take a
16165 (win32_store_inferior_registers): Adjust.
16166 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16167 store_inferior_register>: Change prototype to take a regcache.
16169 2010-01-20 Doug Evans <dje@google.com>
16171 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16173 (linux_wait_for_event1, linux_init_signals): Ditto.
16174 (W_STOPCODE): Provide definition if missing.
16176 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16178 * linux-low.c (linux_core_of_thread): New.
16179 (compare_ints, show_process, list_threads): New.
16180 (linux_qxfer_osdata): Report threads and cores.
16181 (linux_target_op): Register linux_core_of_thread.
16182 * remote-utils.c (prepare_resume_reply): Report the core.
16183 (buffer_xml_printf): Support %d specifier.
16184 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16186 (handle_query): Handle qXfer:threads. Announce availability
16188 * target.h (struct target_ops): New field core_of_thread.
16190 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16192 * Makefile.in (clean): Remove new generated files.
16193 (reg-s390.o, reg-s390.c): Remove rules.
16194 (reg-s390x.o, reg-s390x.c): Likewise.
16195 (s390-linux32.o, s390-linux32.c): Add rules.
16196 (s390-linux64.o, s390-linux64.c): Likewise.
16197 (s390x-linux64.o, s390x-linux64.c): Likewise.
16198 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16199 * linux-s390-low.c: Include <elf.h>.
16200 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16201 (init_registers_s390): Remove prototype.
16202 (init_registers_s390x): Likewise.
16203 (init_registers_s390_linux32): Add prototype.
16204 (init_registers_s390_linux64): Likewise.
16205 (init_registers_s390x_linux64): Likewise.
16206 (s390_num_regs_3264): New define.
16207 (s390_regmap_3264): New global variable.
16208 (s390_cannot_fetch_register): Remove obsolete check.
16209 (s390_cannot_store_register): Likewise.
16210 (s390_collect_ptrace_register): Handle upper/lower register halves.
16211 (s390_supply_ptrace_register): Likewise.
16212 (s390_fill_gregset): Update to register number changes.
16213 (s390_get_hwcap): New routine.
16214 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16215 Install appropriate regmap and register set.
16217 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16219 * server.c (gdbserver_version): Update copyright year to 2010.
16220 * gdbreplay.c (gdbreplay_version): Likewise.
16222 2009-12-28 Doug Evans <dje@google.com>
16224 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16225 elf/external.h. Include <elf.h> instead but only if necessary.
16227 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16229 * linux-low.c (linux_remove_process): Remove `detaching'
16230 parameter. Don't release/detach from thread_db here.
16231 (linux_kill): Release/detach from thread_db here, ...
16232 (linux_detach): ... and here, before actually detaching.
16233 (linux_wait_1): ... and here, when a process exits.
16234 * thread-db.c (any_thread_of): New.
16235 (thread_db_free): Switch the current inferior to a thread of the
16238 2009-12-21 Doug Evans <dje@google.com>
16240 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16242 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16243 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16244 warning ifndef __NR_tkill. Move setting of errno there too.
16245 Delete unnecessary resetting of errno after syscall.
16246 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16248 * configure.ac: Check for dladdr.
16249 * config.in: Regenerate.
16250 * configure: Regenerate.
16251 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16252 (try_thread_db_load): Update.
16254 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16256 2009-12-18 Doug Evans <dje@google.com>
16258 * event-loop.c: Include unistd.h if it exists.
16260 * linux-low.c (my_waitpid): Move definition away from being in
16261 between linux_tracefork_child/linux_test_for_tracefork.
16263 * gdb_proc_service.h (psaddr_t): Fix type.
16264 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16265 signature to match glibc.
16267 2009-12-16 Doug Evans <dje@google.com>
16269 * linux-low.c (linux_read_memory): Fix argument to read.
16271 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16273 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16274 events, don't leave current_inferior pointing at null.
16276 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16278 * win32-low.c (LOG): Delete.
16279 (OUTMSG): Output to stderr.
16280 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16281 on compile time LOG macro.
16282 (win32_wait): Fix debug output.
16284 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16286 * win32-low.c (win32_add_one_solib): If the dll name is
16287 "ntdll.dll", prepend the system directory to the dll path.
16289 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16291 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16293 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16294 Vladimir Prus <vladimir@codesourcery.com>
16296 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16297 * configure.ac: Check for __mcoldfire__ and set
16298 gdb_cv_m68k_is_coldfire.
16299 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16300 reg-cf.o and reg-m68k.o.
16301 * configure: Regenerated.
16303 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16305 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16306 Pass it to thread_db_free.
16307 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16308 proper `detaching' argument to linux_remove_process.
16309 * linux-low.h (thread_db_free): Add `detaching' parameter.
16310 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16312 (thread_db_free): Add `detaching' parameter. Only
16313 call td_ta_clear_event if detaching from process.
16315 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16317 * thread-db.c (thread_db_free): Fix typo.
16319 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16322 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16324 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16326 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16327 with an i686 compiler.
16328 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16330 * configure: Rebuilt.
16332 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16336 * server.c (handle_search_memory_1): Correct read_addr initialization
16337 in loop for searching subsequent chunks.
16339 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16341 * configure.ac: New --with-libthread-db option.
16342 * thread-db.c: Allow direct dependence on libthread_db.
16343 (thread_db_free): Adjust.
16344 * config.in: Regenerate.
16345 * configure: Likewise.
16347 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16350 * thread-db.c (attach_thread): New function.
16351 (maybe_attach_thread): Return success/failure.
16352 (find_new_threads_callback): Adjust.
16353 (thread_db_find_new_threads): Loop until no new threads.
16355 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16357 * proc-service.c (ps_lgetregs): Formatting.
16359 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16361 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16362 * configure.ac: Adjust.
16363 * linux-low.h (struct process_info_private): Move members to struct
16365 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16366 * linux-low.c (linux_remove_process): Adjust.
16367 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16368 * server.c (handle_query): Move code ...
16369 (handle_monitor_command): ... here. New function.
16370 * target.h (struct target_ops): New member.
16371 * thread-db.c (struct thread_db): New.
16372 (libthread_db_search_path): New variable.
16373 (thread_db_create_event, thread_db_enable_reporting)
16374 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16375 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16376 (try_thread_db_load_1, dladdr_to_soname): New functions.
16377 (try_thread_db_load, thread_db_load_search): New functions.
16378 (thread_db_init): Search for libthread_db.
16379 (thread_db_free): New function.
16380 (thread_db_handle_monitor_command): Likewise.
16381 * config.in: Regenerate.
16382 * configure: Regenerate.
16384 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16386 * spu-low.c (spu_kill): Wait for inferior to terminate.
16387 Call clear_inferiors.
16388 (spu_detach): Call clear_inferiors.
16390 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16392 * aclocal.m4: Regenerate.
16393 * config.in: Likewise.
16394 * configure: Likewise.
16396 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16398 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16399 (parse_spufs_run): New function.
16400 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16401 (ppc_breakpoint_at): Handle SPU breakpoints.
16403 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16405 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16406 (SPUFS_MAGIC): Define.
16407 (spu_enumerate_spu_ids): New function.
16408 (linux_qxfer_spu): New function.
16409 (linux_target_ops): Install linux_qxfer_spu.
16411 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16413 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16414 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16415 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16416 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16417 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16418 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16419 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16420 (init_registers_powerpc_cell32l): Add prototype.
16421 (init_registers_powerpc_cell64l): Likewise.
16422 (ppc_arch_setup): Detect Cell/B.E. architecture.
16424 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16426 * Makefile.in (datarootdir): New variable.
16428 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16430 * linux-low.c (linux_write_memory): Update debugging output.
16431 * Makefile.in (clean): Add new descriptions.
16432 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16433 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16434 * configure.srv: Add new files for arm*-*-linux*.
16435 * linux-arm-low.c: Add new declarations.
16436 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16437 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16438 (HWCAP_VFPv3D16): New.
16439 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16440 instead of __IWMMXT__.
16441 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16442 (arm_arch_setup): New.
16443 (target_regsets): Remove #ifdef. Add VFP regset.
16444 (the_low_target): Use arm_arch_setup.
16446 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16448 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16449 the main thread again.
16451 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16453 Adding Neutrino gdbserver.
16454 * configure: Regenerated.
16455 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16456 * configure.srv (i[34567]86-*-nto*): New target.
16457 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16458 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16459 (nto_comctrl) [__QNX__]: New function.
16460 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16462 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
16464 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16467 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16468 Pedro Alves <pedro@codesourcery.com>
16470 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16471 don't support CONTEXT_EXTENDED_REGISTERS.
16472 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16473 (the_low_target): Install them.
16474 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16475 failing with ERROR_PIPE_NOT_CONNECTED.
16477 2009-06-30 Doug Evans <dje@google.com>
16478 Pierre Muller <muller@ics.u-strasbg.fr>
16480 Add h/w watchpoint support to x86-linux, win32-i386.
16481 * Makefile.in (SFILES): Add i386-low.c
16482 (i386_low_h): Define.
16483 (i386-low.o): Add dependencies.
16484 (linux-x86-low.o): Add i386-low.h dependency.
16485 (win32-i386-low.o): Ditto.
16486 * i386-low.c: New file.
16487 * i386-low.h: New file.
16488 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16489 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16490 * linux-low.c (linux_add_process): Initialize arch_private.
16491 (linux_remove_process): Free arch_private.
16492 (add_lwp): Initialize arch_private.
16493 (delete_lwp): Free arch_private.
16494 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16496 * linux-low.h (process_info_private): New member arch_private.
16497 (lwp_info): New member arch_private.
16498 (linux_target_ops): New members new_process, new_thread,
16500 (ptid_of): New macro.
16501 * linux-x86-low.c: Include stddef.h, i386-low.h.
16502 (arch_process_info): New struct.
16503 (arch_lwp_info): New struct.
16504 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16505 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16506 (i386_dr_low_get_status): New function.
16507 (x86_insert_point, x86_remove_point): New functions.
16508 (x86_stopped_by_watchpoint): New function.
16509 (x86_stopped_data_address): New function.
16510 (x86_linux_new_process, x86_linux_new_thread): New functions.
16511 (x86_linux_prepare_to_resume): New function.
16512 (the_low_target): Add entries for insert_point, remove_point,
16513 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16515 * server.c (debug_hw_points): New global.
16516 (monitor_show_help): Document set debug-hw-points.
16517 (handle_query): Process "set debug-hw-points".
16518 * server.h (debug_hw_points): Declare.
16519 (paddress): Declare.
16520 * utils.c (NUMCELLS, CELLSIZE): New macros.
16521 (get_sell, xsnprintf, paddress): New functions.
16522 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16523 remove_point, stopped_by_watchpoint, stopped_data_address.
16524 * win32-i386-low.c: Include i386-low.h.
16525 (debug_reg_state): Replaces dr.
16526 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16527 (i386_dr_low_get_status): New function.
16528 (i386_insert_point, i386_remove_point): New functions.
16529 (i386_stopped_by_watchpoint): New function.
16530 (i386_stopped_data_address): New function.
16531 (i386_initial_stuff): Update.
16532 (get_thread_context,set_thread_context,i386_thread_added): Update.
16533 (the_low_target): Add entries for insert_point,
16534 remove_point, stopped_by_watchpoint, stopped_data_address.
16535 * win32-low.c (win32_insert_watchpoint): New function.
16536 (win32_remove_watchpoint): New function.
16537 (win32_stopped_by_watchpoint): New function.
16538 (win32_stopped_data_address): New function.
16539 (win32_target_ops): Add entries for insert_watchpoint,
16540 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16541 * win32-low.h (win32_target_ops): New members insert_point,
16542 remove_point, stopped_by_watchpoint, stopped_data_address.
16544 2009-06-25 Pedro Alves <pedro@codesourcery.com>
16546 * server.c (process_serial_event): Re-return unsupported, not
16547 error, if the type isn't recognized. Re-allow supporting only
16548 insert or remove packets. Also call require_running for
16549 breakpoints. Add missing break statement to default case. Tidy.
16550 * target.h (struct target_ops): Rename insert_watchpoint to
16551 insert_point, and remove_watchpoint to remove_point.
16553 * linux-low.h (struct linux_target_ops): Likewise.
16554 * linux-low.c (linux_insert_watchpoint): Rename to ...
16555 (linux_insert_point): ... this. Adjust.
16556 (linux_remove_watchpoint): Rename to ...
16557 (linux_remove_point): ... this. Adjust.
16558 (linux_target_ops): Adjust.
16559 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16560 (cris_insert_point): ... this.
16561 (cris_remove_watchpoint): Rename to ...
16562 (cris_remove_point): ... this.
16563 (the_low_target): Adjust.
16565 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16567 * server.c (handle_v_kill): Pass signal_pid to
16568 kill_inferior if multi_process is zero.
16570 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16572 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16573 * target.h (target_ops): Comment for *_watchpoint to make it clear
16574 the functions can get types '0' and '1'.
16576 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16578 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16579 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16580 * regcache.c (get_regcache): Likewise.
16581 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16582 * win32-low.c (child_fetch_inferior_registers): Remove check for
16585 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16586 Pedro Alves <pedro@codesourcery.com>
16588 * target.h (struct target_ops) <supports_multi_process>: New
16590 (target_supports_multi_process): New.
16591 * server.c (handle_query): Even if GDB reports support, only
16592 enable multi-process if the target also supports it. Report
16593 multi-process support only if the target backend supports it.
16594 * linux-low.c (linux_supports_multi_process): New function.
16595 (linux_target_ops): Install it as target_supports_multi_process
16598 2009-05-24 Doug Evans <dje@google.com>
16600 Global renaming of find_thread_pid to find_thread_ptid.
16601 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16602 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16603 All callers updated.
16605 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16606 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16609 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16610 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16611 (linux_resume_one_lwp): Ditto.
16613 2009-05-23 Doug Evans <dje@google.com>
16615 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16616 from struct inferior_list_entry * to struct lwp_info *.
16617 All callers updated.
16619 2009-05-13 Doug Evans <dje@google.com>
16621 * linux-x86-low.c: Don't include assert.h.
16622 (x86_siginfo_fixup): Use fatal, not assert.
16623 (x86_arch_setup): Fix comment.
16625 2009-05-12 Doug Evans <dje@google.com>
16627 Biarch support for i386/amd64 gdbserver.
16628 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16629 Add linux-x86-low.c.
16630 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16631 (linux-x86-low.o): Add.
16632 * linux-x86-64-low.c: Delete.
16633 * linux-i386-low.c: Delete.
16634 * linux-x86-low.c: New file.
16635 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16637 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16639 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16640 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16641 (linux_child_pid_to_exec_file): New function.
16642 (elf_64_header_p, elf_64_file_p): New functions.
16643 (siginfo_fixup): New function.
16644 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16645 give target a chance to convert layout.
16646 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16647 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16649 2009-05-07 Doug Evans <dje@google.com>
16651 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16652 (regsets_store_inferior_registers): Ditto.
16654 2009-05-06 Pedro Alves <pedro@codesourcery.com>
16658 * linux-low.c (must_set_ptrace_flags): Delete.
16659 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16661 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16662 `lwp->must_set_ptrace_flags' instead.
16663 (linux_wait_for_event_1): Set ptrace options here.
16664 (linux_wait_1): ... not here.
16666 2009-04-30 Doug Evans <dje@google.com>
16668 * inferiors.c (started_inferior_callback): New function.
16669 (attached_inferior_callback): New function.
16670 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16671 * server.c (print_started_pid, print_attached_pid): New functions.
16672 (detach_or_kill_for_exit): New function.
16673 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16674 * server.h (have_started_inferiors_p): Declare.
16675 (have_attached_inferiors_p): Declare.
16677 * inferiors.c (remove_process): Fix memory leak, free process.
16678 * linux-low.c (linux_remove_process): New function.
16679 (linux_kill): Call it instead of remove_process.
16680 (linux_detach, linux_wait_1): Ditto.
16682 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16684 * configure.srv: Add x86 Windows CE target.
16686 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16688 * inferiors.c (get_thread_process): Make global.
16689 * server.h (get_thread_process): Add prototype.
16690 * thread-db.c (find_one_thread): Use get_thread_process
16691 instead of current_process.
16692 (thread_db_get_tls_address): Do not crash if called when
16693 thread layer is not yet initialized.
16695 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16697 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16698 * spu-low.c (current_tid): Rename to ...
16699 (current_ptid): ... this.
16700 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16701 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16702 ptid_get_lwp (current_ptid) instead of current_tid.
16703 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16704 instead of current_tid. Use find_process_pid to verify pid
16705 argument is valid. Pass proper argument to remove_process.
16706 (spu_thread_alive): Compare current_ptid instead of current_tid.
16707 (spu_resume): Likewise.
16709 2009-04-02 Pedro Alves <pedro@codesourcery.com>
16711 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16714 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16716 Implement the multiprocess extensions, and add linux multiprocess
16719 * server.h (ULONGEST): Declare.
16720 (struct ptid, ptid_t): New.
16721 (minus_one_ptid, null_ptid): Declare.
16722 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16723 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16724 (struct inferior_list_entry): Change `id' type from unsigned from
16726 (struct sym_cache, struct breakpoint, struct
16727 process_info_private): Forward declare.
16728 (struct process_info): Declare.
16729 (current_process): Declare.
16730 (all_processes): Declare.
16731 (initialize_inferiors): Declare.
16732 (add_thread): Adjust to use ptid_t.
16733 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16734 (add_process, remove_process, find_thread_pid): Declare.
16735 (find_inferior_id): Adjust to use ptid_t.
16736 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16737 (multi_process): Declare.
16738 (push_event): Adjust to use ptid_t.
16739 (read_ptid, write_ptid): Declare.
16740 (prepare_resume_reply): Adjust to use ptid_t.
16741 (clear_symbol_cache): Declare.
16742 * inferiors.c (all_processes): New.
16743 (null_ptid, minus_one_ptid): New.
16744 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16745 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16746 (add_thread): Change unsigned long to ptid. Remove gdb_id
16748 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16749 (gdb_id_to_thread): Rename to ...
16750 (find_thread_pid): ... this. Change unsigned long to ptid.
16751 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16752 (loaded_dll, pull_pid_from_list): Adjust.
16753 (add_process, remove_process, find_process_pid)
16754 (get_thread_process, current_process, initialize_inferiors): New.
16755 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16756 (struct target_waitstatus) <related_pid>: Ditto.
16757 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16758 return type to int.
16759 (struct target_ops) <join>: Add `pid' argument.
16760 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16761 (struct target_ops) <wait>: Add `ptid' field. Change return type
16763 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16764 (mywait): Add `ptid' argument. Change return type to ptid_t.
16765 (target_pid_to_str): Declare.
16766 * target.c (set_desired_inferior): Adjust to use ptids.
16767 (mywait): Add new `ptid' argument. Adjust.
16768 (target_pid_to_str): New.
16769 * mem-break.h (free_all_breakpoints): Declare.
16770 * mem-break.c (breakpoints): Delelete.
16771 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16772 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16773 to use per-process breakpoint list.
16774 (free_all_breakpoints): New.
16775 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16776 (symbol_cache, all_symbols_looked_up): Delete.
16778 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16780 (prepare_resume_reply): Change ptid argument's type from unsigned
16781 long to ptid_t. Adjust. Implement W;process and X;process.
16782 (free_sym_cache, clear_symbol_cache): New.
16783 (look_up_one_symbol): Adjust to per-process symbol cache. *
16784 * server.c (cont_thread, general_thread, step_thread): Change type
16786 (attached): Delete.
16787 (multi_process): New.
16788 (last_ptid): Change type to ptid_t.
16789 (struct vstop_notif) <ptid>: Change type to ptid_t.
16790 (queue_stop_reply, push_event): Change `ptid' argument's type to
16792 (discard_queued_stop_replies): Add `pid' argument.
16793 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16794 changes. Don't reference the `attached' global.
16795 (attach_inferior): Adjust to mywait interface changes.
16796 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16797 features. Handle and report "multiprocess+". Handle
16799 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16801 (handle_v_kill): New.
16802 (handle_v_stopped): Adjust to use target_pid_to_str.
16803 (handle_v_requests): Allow multiple attaches and runs when
16804 multiprocess extensions are in effect. Handle "vKill".
16805 (myresume): Adjust to use ptids.
16806 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16807 (handle_status): Adjust to discard_queued_stop_replies interface
16809 (first_thread_of, kill_inferior_callback)
16810 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16811 (main): Call initialize_inferiors. Adjust to use ptids, killing
16812 and detaching from all inferiors. Handle multiprocess packet
16814 * linux-low.h: Include gdb_proc_service.h.
16815 (struct process_info_private): New.
16816 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16817 <lwpid_of>: Use ptid_get_lwp.
16818 (get_lwp_thread): Adjust.
16819 (struct lwp_info): Add `dead' member.
16820 (find_lwp_pid): Declare.
16821 * linux-low.c (thread_db_active): Delete.
16822 (new_inferior): Adjust comment.
16823 (inferior_pid): Delete.
16824 (linux_add_process): New.
16825 (handle_extended_wait): Adjust.
16826 (add_lwp): Change unsigned long to ptid.
16827 (linux_create_inferior): Add process to processes table. Adjust
16828 to use ptids. Don't set new_inferior here.
16829 (linux_attach_lwp): Rename to ...
16830 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16831 it. Adjust to use ptids.
16832 (linux_attach_lwp): New.
16833 (linux_attach): Add process to processes table. Don't set
16835 (struct counter): New.
16836 (second_thread_of_pid_p, last_thread_of_process_p): New.
16837 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16838 multiple processes.
16839 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16840 processes. Remove process from process table.
16841 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16842 to multiple processes.
16843 (any_thread_of): New.
16844 (linux_detach): Add `pid' argument, and handle it. Remove process
16845 from processes table.
16846 (linux_join): Add `pid' argument. Handle it.
16847 (linux_thread_alive): Change unsighed long argument to ptid_t.
16848 Consider dead lwps as not being alive.
16849 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16850 threads we're not interested in.
16851 (same_lwp, find_lwp_pid): New.
16852 (linux_wait_for_lwp): Change `pid' argument's type from int to
16854 (linux_wait_for_event): Rename to ...
16855 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16856 from int to ptid_t. Adjust.
16857 (linux_wait_for_event): New.
16858 (linux_wait_1): Add `ptid' argument. Change return type to
16859 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16860 that exit from the process table.
16861 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16863 (mark_lwp_dead): New.
16864 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16865 stopping all threads, mark its main lwp as dead.
16866 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16868 (fetch_register, usr_store_inferior_registers)
16869 (regsets_fetch_inferior_registers)
16870 (regsets_store_inferior_registers, linux_read_memory)
16871 (linux_write_memory): Inline `inferior_pid'.
16872 (linux_look_up_symbols): Adjust to use per-process
16873 `thread_db_active'.
16874 (linux_request_interrupt): Adjust to use ptids.
16875 (linux_read_auxv): Inline `inferior_pid'.
16876 (initialize_low): Don't reference thread_db_active.
16877 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16878 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16879 (ps_getpid): Return the pid of the current inferior.
16880 * thread-db.c (proc_handle, thread_agent): Delete.
16881 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16883 (find_one_thread): Change argument type to ptid_t. Adjust to
16885 (maybe_attach_thread): Adjust to per-process data and ptids.
16886 (thread_db_find_new_threads): Ditto.
16887 (thread_db_init): Ditto.
16888 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16889 processes table. Adjust to use ptids.
16890 (spu_kill, spu_detach): Adjust interface. Remove process from
16892 (spu_join, spu_thread_alive): Adjust interface.
16893 (spu_wait): Adjust interface. Remove process from processes
16894 table. Adjust to use ptids.
16895 * win32-low.c (current_inferior_tid): Delete.
16896 (current_inferior_ptid): New.
16897 (debug_event_ptid): New.
16898 (thread_rec): Take a ptid. Adjust.
16899 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16900 (child_delete_thread): Ditto.
16901 (do_initial_child_stuff): Add `attached' argument. Add process to
16903 (child_fetch_inferior_registers, child_store_inferior_registers):
16905 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16906 (win32_attach): Pass 1 to do_initial_child_stuff.
16907 (win32_kill): Adjust interface. Remove process from processes
16909 (win32_detach): Ditto.
16910 (win32_join): Adjust interface.
16911 (win32_thread_alive): Take a ptid.
16912 (win32_resume): Adjust to use ptids.
16913 (get_child_debug_event): Ditto.
16914 (win32_wait): Adjust interface. Remove exiting process from
16917 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16919 Non-stop mode support.
16921 * server.h (non_stop): Declare.
16922 (gdb_client_data, handler_func): Declare.
16923 (delete_file_handler, add_file_handler, start_event_loop):
16925 (handle_serial_event, handle_target_event, push_event)
16926 (putpkt_notif): Declare.
16927 * target.h (enum resume_kind): New.
16928 (struct thread_resume): Replace `step' field by `kind' field.
16929 (TARGET_WNOHANG): Define.
16930 (struct target_ops) <wait>: Add `options' argument.
16931 <supports_non_stop, async, start_non_stop>: New fields.
16932 (target_supports_non_stop, target_async): New.
16933 (start_non_stop): Declare.
16934 (mywait): Add `options' argument.
16935 * target.c (mywait): Add `options' argument. Print child exit
16936 notifications here.
16937 (start_non_stop): New.
16938 * server.c (non_stop, own_buf, mem_buf): New globals.
16939 (struct vstop_notif): New.
16940 (notif_queue): New global.
16941 (queue_stop_reply, push_event, discard_queued_stop_replies)
16942 (send_next_stop_reply): New.
16943 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16945 (attach_inferior): In non-stop mode, don't wait for the target
16947 (handle_general_set): Handle QNonStop.
16948 (handle_query): When handling qC, return the current general
16949 thread, instead of the first thread of the list.
16950 (handle_query): If the backend supports non-stop mode, include
16951 QNonStop+ in the qSupported query response.
16952 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16954 (handle_v_attach, handle_v_run): Handle non-stop mode.
16955 (handle_v_stopped): New.
16956 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16957 (myresume): Adjust to use resume_kind. Handle non-stop.
16958 (queue_stop_reply_callback): New.
16959 (handle_status): Handle non-stop mode.
16960 (main): Clear non_stop flag on reconnection. Use the event-loop.
16961 Refactor serial protocol handling from here ...
16962 (process_serial_event): ... to this new function. When GDB
16963 selects any thread, select one here. In non-stop mode, wait until
16964 GDB acks all pending events before exiting.
16965 (handle_serial_event, handle_target_event): New.
16966 * remote-utils.c (remote_open): Install remote_desc in the event
16968 (remote_close): Remove remote_desc from the event loop.
16969 (putpkt_binary): Rename to...
16970 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
16971 (putpkt_binary): New as wrapper around putpkt_binary_1.
16972 (putpkt_notif): New.
16973 (prepare_resume_reply): In non-stop mode, don't change the
16975 * event-loop.c: New.
16976 * Makefile.in (OBJ): Add event-loop.o.
16977 (event-loop.o): New rule.
16979 * linux-low.h (pid_of): Moved here.
16981 (get_lwp_thread): Use lwpid_of.
16982 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16983 * linux-low.c (pid_of): Delete.
16984 (inferior_pid): Use lwpid_of.
16985 (linux_event_pipe): New.
16986 (target_is_async_p): New.
16988 (handle_extended_wait): Use lwpid_of.
16989 (add_lwp): Don't set lwpid field.
16990 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16991 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16992 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16993 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16994 first. Adjust to linux_wait_for_event interface changes. Use
16996 (linux_detach): Don't delete the main lwp here.
16997 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
16998 (status_pending_p): Don't consider explicitly suspended lwps.
16999 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17000 pointer. Add OPTIONS argument. Change return type to int. Use
17001 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17002 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17003 pointer. Add status pointer argument. Return a pid instead of a
17004 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17005 changes. In non-stop mode, don't switch to a random thread.
17006 (linux_wait): Rename to...
17007 (linux_wait_1): ... this. Add target_options argument, and handle
17008 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17009 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17010 clean exit and signal exit code. Don't stop all threads in
17011 non-stop mode. In all-stop mode, only stop all threads when
17012 reporting a stop to GDB. Handle explicit thread stop requests.
17013 (async_file_flush, async_file_mark): New.
17015 (send_sigstop): Use lwpid_of.
17016 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17017 interface changes. In non-stop mode, don't switch to a random
17019 (linux_resume_one_lwp): Use lwpid_of.
17020 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17021 (linux_resume_one_thread): ... this. Handle resume_stop. In
17022 non-stop mode, don't look for pending flag in all threads.
17023 (resume_status_pending_p): Don't consider explicitly suspended
17025 (my_waitpid): Reimplement. Emulate __WALL.
17026 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17028 (sigchld_handler, linux_supports_non_stop, linux_async)
17029 (linux_start_non_stop): New.
17030 (linux_target_ops): Register linux_supports_non_stop, linux_async
17031 and linux_start_non_stop.
17032 (initialize_low): Install SIGCHLD handler.
17033 * thread-db.c (thread_db_create_event, find_one_thread)
17034 (thread_db_get_tls_address): Use lwpid_of.
17035 * win32-low.c (win32_detach): Adjust to use resume_kind.
17036 (win32_wait): Add `options' argument.
17037 * spu-low.c (spu_resume): Adjust to use resume_kind.
17038 (spu_wait): Add `options' argument.
17040 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17042 Decouple target code from remote protocol.
17044 * target.h (enum target_waitkind): New.
17045 (struct target_waitstatus): New.
17046 (struct target_ops) <wait>: Return an unsigned long. Take a
17047 target_waitstatus pointer instead of a char pointer.
17048 (mywait): Likewise.
17049 * target.c (mywait): Change prototype to return an unsigned long.
17050 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17051 * server.h (thread_from_wait, old_thread_from_wait): Delete
17053 (prepare_resume_reply): Change prototype to take a
17055 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17056 (last_status, last_ptid): New.
17057 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17058 pid instead of a signal.
17059 (attach_inferior): Remove "status" and "signal" parameters.
17061 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17063 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17064 (handle_v_requests, myresume): Remove "status" and "signal"
17065 parameters. Adjust.
17066 (handle_status): New.
17067 (main): Delete local `status'. Adjust.
17068 * remote-utils.c: Include target.h.
17069 (prepare_resume_reply): Change prototype to take a
17070 target_waitstatus. Adjust.
17072 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17074 * spu-low.c (spu_wait): Adjust.
17075 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17077 (win32_wait): Adjust.
17079 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17081 * target.h (struct thread_resume): Delete leave_stopped member.
17082 (struct target_ops): Add a `n' argument to the `resume' callback.
17083 * server.c (start_inferior): Adjust.
17084 (handle_v_cont, myresume): Adjust.
17085 * linux-low.c (check_removed_breakpoint): Adjust to resume
17086 interface change, and to removed leave_stopped field.
17087 (resume_ptr): Delete.
17088 (struct thread_resume_array): New.
17089 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17090 resume interface change.
17091 (linux_continue_one_thread, linux_queue_one_thread)
17092 (resume_status_pending_p): Check if the resume field is NULL
17093 instead of checking the leave_stopped member.
17094 (linux_resume): Adjust to the target resume interface change.
17095 * spu-low.c (spu_resume): Adjust to the target resume interface
17097 * win32-low.c (win32_detach, win32_resume): Ditto.
17099 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17101 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17103 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17105 (linux_continue_one_thread): Only preserve the stepping flag if
17106 there's a pending breakpoint.
17108 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17110 * server.c (main): After the inferior having exited, call
17111 remote_close before exiting gdbserver.
17113 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17115 Fix size of FPSCR in Power 7 processors.
17116 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17117 (PPC_FEATURE_HAS_DFP): New #define.
17118 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17121 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17123 * server.c (handle_query) Whitespace and formatting.
17125 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17127 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17128 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17129 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17130 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17131 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17132 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17133 Makefile.in, configure.ac: Fix whitespace throughout.
17134 * configure: Regenerate.
17136 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17138 * inferiors.c (find_inferior): Make it safe for the callback
17139 function to delete the currently iterated inferior.
17141 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17143 * Makefile.in (linuw_low_h): Move higher.
17144 (thread-db.o): Depend on $(linux_low_h).
17146 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17148 Rename "process" to "lwp" throughout.
17150 * linux-low.c (all_processes): Rename to...
17151 (all_lwps): ... this.
17152 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17153 (add_process): Rename to ...
17154 (add_lwp): ... this. Adjust.
17155 (linux_create_inferior): Adjust.
17156 (linux_attach_lwp): Adjust.
17157 (linux_attach): Adjust.
17158 (linux_kill_one_process): Rename to ...
17159 (linux_kill_one_lwp): ... this. Adjust.
17160 (linux_kill): Adjust.
17161 (linux_detach_one_process): Rename to ...
17162 (linux_detach_one_lwp): ... this. Adjust.
17163 (linux_detach): Adjust.
17164 (check_removed_breakpoint): Adjust.
17165 (status_pending_p): Adjust.
17166 (linux_wait_for_process): Rename to ...
17167 (linux_wait_for_lwp): ... this. Adjust.
17168 (linux_wait_for_event): Adjust.
17169 (send_sigstop): Adjust.
17170 (wait_for_sigstop): Adjust.
17171 (stop_all_processes): Rename to ...
17172 (stop_all_lwps): ... this.
17173 (linux_resume_one_process): Rename to ...
17174 (linux_resume_one_lwp): ... this. Adjust.
17175 (linux_set_resume_request, linux_continue_one_thread)
17176 (linux_queue_one_thread, resume_status_pending_p)
17177 (usr_store_inferior_registers, regsets_store_inferior_registers)
17178 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17180 * linux-low.h (get_process): Rename to ...
17181 (get_lwp): ... this. Adjust.
17182 (get_thread_process): Rename to ...
17183 (get_thread_lwp): ... this. Adjust.
17184 (get_process_thread): Rename to ...
17185 (get_lwp_thread): ... this. Adjust.
17186 (struct process_info): Rename to ...
17187 (struct lwp_info): ... this.
17188 (all_processes): Rename to ...
17189 (all_lwps): ... this.
17190 * proc-service.c (ps_lgetregs): Adjust.
17191 * thread-db.c (thread_db_create_event, find_one_thread)
17192 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17194 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17196 * server.c (handle_query): Handle "qAttached".
17198 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17200 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17201 GPLv3, update license URL.
17203 2009-03-01 Doug Evans <dje@google.com>
17205 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17206 (server_h): Add gdb_signals.h.
17207 (signals.o): Update.
17208 * server.h (target_signal_from_host,target_signal_to_host_p)
17209 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17211 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17213 * remote-utils.c (getpkt): Also generate remote-debug
17214 information if noack_mode is set.
17216 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17218 * server.c (handle_query): Report qXfer:siginfo:read and
17219 qXfer:siginfo:write as supported and handle them.
17220 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17221 * linux-low.c (linux_xfer_siginfo): New.
17222 (linux_target_ops): Set it.
17224 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17226 * server.c (gdbserver_usage): Mention --remote-debug.
17227 (main): Accept '--remote-debug' switch.
17229 2009-01-18 Doug Evans <dje@google.com>
17231 * regcache.c (new_register_cache): No need to check result of xcalloc.
17232 * server.c (handle_search_memory): Back out calls to xmalloc,
17233 result is checked and error is returned to user upon failure.
17234 (handle_query): Ditto. Add more checks for result of malloc.
17235 (handle_v_cont): Check result of malloc, report error back to
17237 (handle_v_run): Ditto. Call freeargv.
17238 * server.h (freeargv): Declare.
17239 * utils.c (freeargv): New fn.
17241 2009-01-15 Doug Evans <dje@google.com>
17243 * gdbreplay.c (perror_with_name): Make arg const char *.
17244 * server.h (target_signal_to_name): Make return type const char *.
17245 * thread-db.c (thread_db_err_str): Make return type const char *.
17246 * utils.c (perror_with_name): Make arg const char *.
17248 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17250 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17251 when handling a EXIT_PROCESS_DEBUG_EVENT.
17253 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17255 * gdbreplay.c (gdbreplay_version): Update copyright year.
17256 * server.c (gdbserver_version): Likewise.
17258 2009-01-05 Doug Evans <dje@google.com>
17260 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17261 (handle_extended_wait): Improve comment.
17263 2008-12-13 Doug Evans <dje@google.com>
17265 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17266 * server.h (ATTR_MALLOC): New macro.
17267 (xmalloc,xcalloc,xstrdup): Declare.
17268 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17269 * inferiors.c: Ditto.
17270 * linux-low.c: Ditto.
17271 * mem-break.c: Ditto.
17272 * regcache.c: Ditto.
17273 * remote-utils.c: Ditto.
17276 * win32-low.c: Ditto.
17278 2008-12-12 Doug Evans <dje@google.com>
17280 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17281 in debugging printf.
17283 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17285 2008-12-09 Doug Evans <dje@google.com>
17287 * linux-low.h (struct process_info): Delete member tid, unused.
17288 * thread-db.c (find_one_thread): Update.
17289 (maybe_attach_thread): Update.
17291 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17293 * target.h (struct target_ops): Add qxfer_osdata member.
17294 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17296 (linux_qxfer_osdata): New functions.
17297 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17299 * server.c (handle_query): Handle "qXfer:osdata:read:".
17300 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17301 (buffer_xml_printf): New functions.
17302 * server.h (struct buffer): New.
17303 (buffer_grow_str, buffer_grow_str0): New macros.
17304 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17305 (buffer_xml_printf): Declare.
17307 2008-11-24 Doug Evans <dje@google.com>
17309 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17311 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17313 * server.c (handle_v_run): Always use the supplied argument list.
17315 2008-11-19 Bob Wilson <bob.wilson@acm.org>
17317 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17318 (xtensa_regmap_table): Add entry for scompare1.
17320 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17322 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17323 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17324 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17325 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17326 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17327 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17328 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17329 XML target descriptions.
17330 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17331 when inferior is running on an ISA 2.05 or later processor. Add
17332 special case to return offset for full 64-bit slot of FPSCR when
17335 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17337 * Makefile.in (SFILES, clean): Added sparc64 files.
17338 (reg-sparc64.o, reg-sparc64.c): New.
17339 * configure.srv (sparc*-*-linux*): New configuration.
17340 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17341 syscall arguments for SPARC.
17342 (regsets_store_inferior_registers): Likewise.
17343 * linux-sparc-low.c: New file.
17345 2008-10-21 Doug Evans <dje@google.com>
17347 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17348 (READLINE_DIR,READLINE_DEP): Delete.
17349 (INTERNAL_CFLAGS): Update.
17350 (LINTFLAGS): Update.
17352 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17354 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17355 whole argv from the last run, not just argv[0].
17357 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17359 * regcache.c (new_register_cache): Return NULL if the register
17360 cache size isn't known yet.
17361 (free_register_cache): Avoid dereferencing a NULL regcache.
17363 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17365 * configure.srv: Merge MIPS and MIPS64.
17367 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17369 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17371 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17373 * Makefile.in: Add required vsx dependencies.
17375 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17376 Declare init_registers_powerpc_vsx32l.
17377 Declare init_registers_powerpc_vsx64l.
17378 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17379 (ppc_arch_setup): Check for VSX in hwcap.
17380 (ppc_fill_vsxregset): New function.
17381 (ppc_store_vsxregset): New function.
17382 Add new VSX entry in regset_info target_regsets.
17384 * configure.srv: Add new VSX dependencies.
17386 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17388 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17389 (remote_open): Set or clear transport_is_reliable.
17390 (putpkt_binary): Don't expect acks in noack mode.
17391 (getpkt): Don't send ack/nac in noack mode.
17392 * server.c (handle_general_set): Handle QStartNoAckMode.
17393 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17395 (main): Reset noack_mode on every connection.
17396 * server.h (noack_mode): Declare.
17398 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17400 * Makefile.in (GDBREPLAY_OBS): New variable.
17401 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17403 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17404 Daniel Jacobowitz <dan@codesourcery.com>
17406 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17407 (usr_store_inferior_registers): Likewise.
17408 (regsets_store_inferior_registers): Likewise.
17410 2008-07-31 Rolf Jansen <rj@surtec.com>
17411 Pedro Alves <pedro@codesourcery.com>
17413 * configure.ac: Check for memmem declaration.
17414 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17415 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17416 (disable_packet_qfThreadInfo): Unconditionally compile.
17417 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17418 * configure, config.in: Regenerate.
17420 2008-07-28 Doug Kwan <dougkwan@google.com>
17422 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17423 (linux_write_memory): Remove declaration of errno.
17425 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17427 * linux-low.c (handle_extended_wait): Do not use "status"
17428 variable uninitialized.
17430 2008-07-07 Pedro Alves <pedro@codesourcery.com>
17432 * server.c (handle_v_attach): Inhibit reporting dll changes.
17434 2008-06-27 Pedro Alves <pedro@codesourcery.com>
17436 * remote-utils.c (prepare_resume_reply): If requested, don't
17437 output "thread:TID" in the T stop reply.
17439 * server.c (disable_packet_vCont, disable_packet_Tthread)
17440 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17441 (handle_query): If requested, disable support for qC, qfThreadInfo
17443 (handle_v_requests): If requested, disable support for vCont.
17444 (gdbserver_show_disableable): New.
17445 (main): Handle --disable-packet and --disable-packet=LIST.
17447 * server.h (disable_packet_vCont, disable_packet_Tthread)
17448 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17450 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17452 * server.c (gdbserver_usage): Mention --version.
17454 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17456 * Makefile.in (gdbreplay.o): New rule.
17458 2008-06-06 Joseph Myers <joseph@codesourcery.com>
17460 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17461 message, not gdbserver.
17463 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
17464 Nathan Sidwell <nathan@codesourcery.com>
17465 Joseph Myers <joseph@codesourcery.com>
17467 * acinclude.m4: Include ../../config/acx.m4.
17468 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17469 * configure, config.in: Regenerate.
17470 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17471 * server.c (gdbserver_version): Print PKGVERSION.
17472 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17473 (main): Adjust gdbserver_usage calls.
17474 * gdbreplay.c (version, host_name): Add declarations.
17475 (gdbreplay_version, gdbreplay_usage): New.
17476 (main): Accept --version and --help options.
17478 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17480 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17481 (arm_breakpoint_at): Handle Thumb.
17482 (the_low_target): Add comment.
17484 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17486 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17488 2008-05-09 Doug Evans <dje@google.com>
17490 * server.h (decode_search_memory_packet): Declare.
17491 * remote-utils.c (decode_search_memory_packet): New fn.
17492 * server.c (handle_search_memory_1): New fn.
17493 (handle_search_memory): New fn.
17494 (handle_query): Process qSearch:memory packets.
17496 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17498 * regcache.c (registers_length): Remove.
17499 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17500 full register packet.
17501 * regcache.h (registers_length): Remove prototype.
17502 * server.h (PBUFSIZ): Define to 16384.
17504 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17506 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17507 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17508 powerpc-64l.o, and powerpc-altivec64l.o.
17509 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17510 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17511 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17512 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17513 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17516 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17517 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17518 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17519 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17520 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17521 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17522 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17523 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17524 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17525 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17528 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17529 (init_registers_powerpc_32l): ... this new prototype.
17530 (init_registers_powerpc_32): Remove, replace by ...
17531 (init_registers_powerpc_altivec32l): ... this new prototype.
17532 (init_registers_powerpc_e500): Remove, replace by ...
17533 (init_registers_powerpc_e500l): ... this new prototype.
17534 (init_registers_ppc64): Remove, replace by ...
17535 (init_registers_powerpc_64l): ... this new prototype.
17536 (init_registers_powerpc_64): Remove, replace by ...
17537 (init_registers_powerpc_altivec64l): ... this new prototype.
17538 (ppc_num_regs): Set to 73.
17539 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17540 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17541 (ppc_cannot_store_register): Handle orig_r3 and trap.
17542 (ppc_arch_setup): Update init_registers_... calls.
17543 (ppc_fill_gregset): Handle orig_r3 and trap.
17545 * inferiors.c (clear_inferiors): Reset current_inferior.
17547 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17549 * acinclude.m4: Add override.m4.
17550 * configure: Regenerate.
17552 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17554 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17555 initial call to init_register_ppc64.
17557 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17559 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17560 single powerpc*-*-linux* case.
17561 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17563 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17565 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
17566 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
17568 * linux-ppc-low.c: Include <elf.h>.
17569 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17570 (ppc_hwcap): New global variable.
17571 (ppc_regmap): Remove __SPE__ #ifdef sections.
17572 (ppc_regmap_e500): New global variable.
17573 (ppc_cannot_store_register): Update __SPE__ special case.
17574 (ppc_get_hwcap): New function.
17575 (ppc_arch_setup): Use it to determine whether inferior supports
17576 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17577 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17578 Do not access registers if target does not support AltiVec.
17579 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17580 Do not access registers if target does not support SPE.
17581 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17583 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17585 * linux-low.c (disabled_regsets, num_regsets): New.
17586 (use_regsets_p): Delete.
17587 (linux_wait_for_process): Clear disabled_regsets.
17588 (regsets_fetch_inferior_registers): Check and set it.
17589 (regsets_store_inferior_registers): Likewise.
17590 (linux_fetch_registers, linux_store_registers): Do not use
17592 (initialize_low): Allocate disabled_regsets.
17594 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17596 * Makefile.in (LIBOBJS): New.
17597 (OBS): Use LIBOBJS.
17598 (memmem.o): New rule.
17599 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17600 * configure: Regenerated.
17602 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17604 * server.c (handle_query): Never return "unsupported" for
17605 qXfer:features:read queries.
17607 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17609 * server.c (get_features_xml): Fix inverted condition.
17610 (handle_query): Always support qXfer:feature:read.
17612 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17614 * server.c (wrapper_argv): New.
17615 (start_inferior): Handle wrapper_argv. If set, expect an extra
17617 (gdbserver_usage): Document --wrapper.
17618 (main): Parse --wrapper.
17620 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17622 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17623 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17624 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17625 (ppc_set_pc): Likewise.
17626 (ppc_arch_setup): New function.
17627 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17628 of collect_register.
17629 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
17631 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17633 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17634 instead of linux-ppc64-low.o.
17635 * linux-ppc64-low.c: Remove file.
17636 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17637 (linux-ppc64-low.o): Remove rule.
17639 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17640 (init_registers_powerpc_64): Likewise.
17641 (ppc_regmap): Conditionally define depending on __powerpc64__.
17642 (ppc_cannot_store_register): Do not special-case "fpscr" when
17643 compiled on __powerpc64__.
17644 (ppc_collect_ptrace_register): New function.
17645 (ppc_supply_ptrace_register): New function.
17646 (ppc_breakpoint): Change type to "unsigned int".
17647 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17648 (the_low_target): Conditionally provide initializers for the
17649 arch_setup member depending on __powerpc64__. Install
17650 collect_ptrace_register and supply_ptrace_register members.
17652 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17654 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17655 * server.c (gdbserver_xmltarget): Define.
17656 (get_features_xml): Use it to replace "target.xml" and arch_string.
17658 * configure.srv: Remove srv_xmltarget. Add XML files that were
17659 mentioned there to srv_xmlfiles instead. Remove conditional tests
17660 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17661 srv_xmlfiles and srv_regobj to include all possible choices.
17662 * configure.ac (srv_xmltarget): Remove.
17663 (srv_xmlfiles): Do not add "target.xml".
17664 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17665 checks for supplementary target information.
17666 * configure: Regenerate.
17667 * Makefile.in (XML_TARGET): Remove.
17668 (target.xml): Remove rule.
17669 (clean): Do not clean up target.xml.
17670 (.PRECIOUS): Do not mention target.xml.
17672 * target.h (struct target_ops): Remove arch_string member.
17673 * linux-low.c (linux_arch_string): Remove.
17674 (linux_target_ops): Remove arch_string initializer.
17675 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17676 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17677 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17678 * spu-low.c (spu_arch_string): Remove.
17679 (spu_target_ops): Remove arch_string initializer.
17680 * win32-low.c (win32_arch_string): Remove.
17681 (win32_target_ops): Remove arch_string initializer.
17682 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17683 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17684 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17686 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17688 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17689 by collect_ptrace_register and supply_ptrace_register hooks.
17690 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17691 instead of checking for the_low_target.left_pad_xfer.
17692 (usr_store_inferior_registers): Use collect_ptrace_register callback
17693 instead of checking for the_low_target.left_pad_xfer.
17695 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17696 (s390_supply_ptrace_register): Likewise.
17697 (s390_fill_gregset): Call s390_collect_ptrace_register.
17698 (the_low_target): Update.
17700 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17701 (ppc_supply_ptrace_register): Likewise.
17702 (the_low_target): Update.
17704 * linux-i386-low.c (the_low_target): Update.
17705 * linux-x86-64-low.c (the_low_target): Update.
17707 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17709 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17710 reg-s390.o and reg-s390x.o.
17712 * linux-low.c (new_inferior): New global variable.
17713 (linux_create_inferior, linux_attach): Set it.
17714 (linux_wait_for_process): Call the_low_target.arch_setup after the
17715 target has stopped for the first time.
17716 (initialize_low): Do not call the_low_target.arch_setup.
17718 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17719 (s390_set_pc): Likewise.
17720 (s390_arch_setup): New function.
17721 (the_low_target): Use s390_arch_setup as arch_setup routine.
17723 * regcache.c (realloc_register_cache): New function.
17724 (set_register_cache): Call it for each existing regcache.
17726 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17728 * server.h (init_registers): Remove prototype.
17730 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17731 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17732 instead of init_registers ().
17733 * linux-arm-low.c (init_registers_arm): Add prototype.
17734 (init_registers_arm_with_iwmmxt): Likewise.
17735 (the_low_target): Add initializer for arch_setup field.
17736 * linux-cris-low.c (init_registers_cris): Add prototype.
17737 (the_low_target): Add initializer for arch_setup field.
17738 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17739 (the_low_target): Add initializer for arch_setup field.
17740 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17741 (the_low_target): Add initializer for arch_setup field.
17742 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17743 (the_low_target): Add initializer for arch_setup field.
17744 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17745 (the_low_target): Add initializer for arch_setup field.
17746 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17747 (the_low_target): Add initializer for arch_setup field.
17748 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17749 (init_registers_mips64_linux): Likewise.
17750 (the_low_target): Add initializer for arch_setup field.
17751 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17752 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17753 (the_low_target): Add initializer for arch_setup field.
17754 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17755 (init_registers_powerpc_64): Likewise.
17756 (the_low_target): Add initializer for arch_setup field.
17757 * linux-s390-low.c (init_registers_s390): Add prototype.
17758 (init_registers_s390x): Likewise.
17759 (the_low_target): Add initializer for arch_setup field.
17760 * linux-sh-low.c (init_registers_sh): Add prototype.
17761 (the_low_target): Add initializer for arch_setup field.
17762 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17763 (the_low_target): Add initializer for arch_setup field.
17764 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17765 (the_low_target): Add initializer for arch_setup field.
17767 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17768 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17769 instead of init_registers ().
17770 * win32-arm-low.c (init_registers_arm): Add prototype.
17771 (the_low_target): Add initializer for arch_setup field.
17772 * win32-i386-low.c (init_registers_i386): Add prototype.
17773 (the_low_target): Add initializer for arch_setup field.
17775 * spu-low.c (init_registers_spu): Add prototype.
17776 (initialize_low): Call initialie_registers_spu () instead of
17777 initialize_registers ().
17779 2008-02-19 Pedro Alves <pedro@codesourcery.com>
17781 * server.c (handle_v_requests): When handling the vRun and vAttach
17782 packets, if already debugging a process, don't kill it. Return an
17785 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17787 * server.c (handle_query): Correct length check.
17789 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17791 * win32-low.c (do_initial_child_stuff): Add process handle
17792 parameter. Set current_process_handle and current_process_id from the
17793 parameters. Clear globals.
17794 (win32_create_inferior): Don't set current_process_handle and
17795 current_process_id here. Instead pass them on the call to
17796 do_initial_child_stuff.
17797 (win32_attach): Likewise.
17798 (win32_clear_inferiors): New.
17799 (win32_kill): Don't close the current process handle or the
17800 current thread handle here. Instead call win32_clear_inferiors.
17801 (win32_detach): Don't open a new handle to the process. Call
17802 win32_clear_inferiors.
17803 (win32_join): Don't rely on current_process_handle; open a new
17804 handle using the process id.
17805 (win32_wait): Call win32_clear_inferiors when the inferior process
17808 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17810 * server.c (monitor_show_help): Add "exit".
17812 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17814 * Makefile.in (SFILES): Add linux-xtensa-low.c.
17815 (clean): Add reg-xtensa.c.
17816 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
17817 * configure.srv (xtensa*-*-linux*) New target.
17818 * linux-xtensa-low.c: New.
17819 * xtensa-xtregs.c: New.
17821 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17823 * hostio.c: Don't include errno.h.
17824 (errno_to_fileio_errno): Move to hostio-errno.
17825 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17826 error number outputting to the target->hostio_last_error callback.
17827 (hostio_packet_error): Use FILEIO_EINVAL directly.
17828 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17829 calls to hostio_error.
17830 * hostio-errno.c: New.
17831 * server.h (hostio_last_error_from_errno): Declare.
17832 * target.h (target_ops): Add hostio_last_error member.
17833 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17834 as hostio_last_error handler.
17835 * spu-low.c (spu_target_ops): Likewise.
17836 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17837 (wince_hostio_last_error): New functions.
17838 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17839 as hostio_last_error handler.
17840 (win32_target_ops) [!_WIN32_WCE]: Register
17841 hostio_last_error_from_errno as hostio_last_error handler.
17842 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17843 (hostio-errno.o): New rule.
17844 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17845 * configure.srv (srv_hostio_err_objs): New variable. Default to
17847 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17848 * configure: Regenerate.
17850 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17852 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17853 (linux_kill, linux_detach): Clean up the process list.
17854 * remote-utils.c (remote_open): Improve port number parsing.
17855 (putpkt_binary, input_interrupt): Only send interrupts if the target
17857 * server.c (extended_protocol): Make static.
17858 (attached): Define earlier.
17859 (exit_requested, response_needed, program_argv): New variables.
17860 (target_running): New.
17861 (start_inferior): Clear attached here.
17862 (attach_inferior): Set attached here.
17863 (require_running): Define.
17864 (handle_query): Use require_running and target_running. Implement
17866 (handle_v_attach, handle_v_run): New.
17867 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17868 (gdbserver_usage): Update.
17869 (main): Redo argument parsing. Handle --debug and --multi. Handle
17870 --attach along with other options or after the port. Save
17871 program_argv. Support no initial program. Resynchronize
17872 communication with GDB after an error. Handle "monitor exit".
17873 Use require_running and target_running. Always allow the extended
17874 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17875 restart in extended mode.
17876 * README: Refer to the GDB manual. Update --attach usage.
17878 2007-12-20 Andreas Schwab <schwab@suse.de>
17880 * linux-low.c (STACK_SIZE): Define.
17881 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17882 (linux_test_for_tracefork): Likewise.
17884 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17886 * linux-low.c (linux_wait_for_event): Update messages. Do not
17887 reinsert auto-delete breakpoints.
17888 * mem-break.c (struct breakpoint): Change return type of handler to
17890 (set_breakpoint_at): Update handler type.
17891 (reinsert_breakpoint_handler): Return 1 instead of calling
17893 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17895 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17896 * mem-break.h (set_breakpoint_at): Update handler type.
17897 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17898 * win32-low.c (auto_delete_breakpoint): New.
17899 (get_child_debug_event): Use it.
17901 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17903 * configure.ac: Check for pread and pwrite.
17904 * hostio.c (handle_pread): Fall back to lseek and read.
17905 (handle_pwrite): Fall back to lseek and write.
17906 * config.in, configure: Regenerated.
17908 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17910 * server.c (myresume): Add own_buf argument.
17911 (main): Update calls.
17913 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17915 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17916 * remote-utils.c (remote_open): Do not call disable_async_io.
17917 (block_async_io): Delete.
17918 (unblock_async_io): Make static.
17919 (initialize_async_io): New.
17920 * server.c (handle_v_cont): Handle async I/O here.
17921 (myresume): Likewise. Move other common resume tasks here...
17922 (main): ... from here. Call initialize_async_io. Disable async
17923 I/O before the main loop.
17924 * server.h (initialize_async_io): Declare.
17925 (block_async_io, unblock_async_io): Delete prototypes.
17926 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17928 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17930 * remote-utils.c (readchar): Allow binary data in received messages.
17932 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17934 * win32-low.c (attaching): New global.
17935 (win32_create_inferior): Clear the `attaching' global.
17936 (win32_attach): Set the `attaching' global.
17937 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17938 attaching. Only set a breakpoint at the entry point if not
17941 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17943 * server.c (main): Don't report dll events on the initial
17944 connection on attaches.
17946 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17948 * server.c (main): Relax numerical bases supported for the pid of
17949 the --attach command line argument.
17951 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17953 * win32-low.c (win32_attach): Call OpenProcess before
17954 DebugActiveProcess, not after. Add last error output to error
17957 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17959 * win32-low.c (win32_get_thread_context)
17960 (win32_set_thread_context): New functions.
17961 (thread_rec): Use win32_get_thread_context.
17962 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17963 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17966 2007-12-03 Leo Zayas
17967 Pedro Alves <pedro_alves@portugalmail.pt>
17969 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17971 (child_add_thread): Minor cleanup.
17972 (child_continue): Resume artificially suspended threads before
17973 calling ContinueDebugEvent.
17974 (suspend_one_thread): New.
17975 (fake_breakpoint_event): New.
17976 (get_child_debug_event): Change return type to int. Check here if
17977 gdb sent an interrupt request. If a soft interrupt was requested,
17978 fake a breakpoint event. Return 0 if there is no event to handle,
17980 (win32_wait): Don't check here if gdb sent an interrupt request.
17981 Ensure there is a valid event to handle.
17982 (win32_request_interrupt): Add soft interruption method as last
17985 2007-12-03 Leo Zayas
17986 Pedro Alves <pedro_alves@portugalmail.pt>
17988 * win32-low.h (win32_thread_info): Add descriptions to the
17989 structure members. Replace `suspend_count' counter by a
17991 * win32-low.c (thread_rec): Update condition of when to get the
17992 context from the inferior. Rely on ContextFlags being set if it
17993 has already been retrieved. Only suspend the inferior thread if
17994 we haven't already. Warn if that fails.
17995 (continue_one_thread): s/suspend_count/suspended/. Only call
17996 ResumeThread once. Warn if that fails.
17998 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18000 * win32-low.c (win32_wait): Don't read from the inferior when it
18001 has already exited.
18003 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18005 * Makefile.in (win32_low_h): New variable.
18006 (win32-low.o): Add dependency on $(win32_low_h).
18007 (win32-arm-low.o, win32-i386-low.o): New rules.
18009 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18011 * hostio.c: Correct copyright year.
18013 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18015 * Makefile.in (OBS): Add hostio.o.
18016 (hostio.o): New rule.
18017 * server.h (handle_vFile): Declare.
18018 * hostio.c: New file.
18019 * server.c (handle_v_requests): Take packet_len and new_packet_len
18020 for binary packets. Call handle_vFile.
18021 (main): Update call to handle_v_requests.
18023 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18025 * linux-low.c: Include <sched.h>.
18027 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18029 * linux-low.c (linux_tracefork_grandchild): New.
18030 (linux_tracefork_child): Use clone.
18031 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18033 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18035 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18037 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18039 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18041 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18043 * inferiors.c (change_inferior_id): Delete.
18044 (add_pid_to_list, pull_pid_from_list): New.
18045 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18046 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18047 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18048 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18049 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18050 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18051 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18052 (using_threads): Always set to 1.
18053 (handle_extended_wait): New.
18054 (add_process): Do not set TID.
18055 (linux_create_inferior): Set must_set_ptrace_flags.
18056 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18057 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18058 (linux_thread_alive): Rename TID argument to LWPID.
18059 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18060 (linux_wait_for_event): Do not use TID or check using_threads. Update
18061 call to dead_thread_notify. Call handle_extended_wait.
18062 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18063 (send_sigstop): Delete sigstop_sent.
18064 (wait_for_sigstop): Avoid TID.
18065 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18066 (linux_test_for_tracefork): New.
18067 (linux_lookup_signals): Use thread_db_active and
18068 linux_supports_tracefork_flag.
18069 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18070 * linux-low.h (get_process_thread): Avoid TID.
18071 (struct process_ifo): Move thread_known and tid to the end. Remove
18073 (linux_attach_lwp, thread_db_init): Update prototypes.
18074 * server.h (change_inferior_id): Delete prototype.
18075 (add_pid_to_list, pull_pid_from_list): New prototypes.
18076 * thread-db.c (thread_db_use_events): New.
18077 (find_first_thread): Rename to...
18078 (find_one_thread): ...this. Update callers and messages. Do not
18079 call fatal. Check thread_db_use_events. Do not call
18080 change_inferior_id or new_thread_notify.
18081 (maybe_attach_thread): Update. Do not call new_thread_notify.
18082 (thread_db_init): Set thread_db_use_events. Check use_events.
18083 * utils.c (fatal, warning): Correct message prefix.
18085 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18087 * Makefile.in (clean): Remove new files.
18088 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18089 (powerpc-64.o, powerpc-64.c): New rules.
18090 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18091 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18093 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18095 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18096 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18097 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18098 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18099 (target_regsets): Add AltiVec and SPE register sets.
18100 * configure.ac: Check for AltiVec and SPE.
18101 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18102 (ppc_fill_vrregset, ppc_store_vrregset): New.
18103 (target_regsets): Add AltiVec register set.
18104 * configure: Regenerated.
18106 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18108 * linux-low.c (O_LARGEFILE): Define.
18109 (linux_read_memory): Use /proc/PID/mem.
18110 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18111 * configure, config.in: Regenerated.
18113 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18115 * linux-low.c (linux_wait_for_event): Do not pass signals while
18118 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18120 * win32-low.c (create_process): New.
18121 (win32_create_inferior): Use create_process instead of
18122 CreateProcess. If create_process failed retry appending an ".exe"
18123 suffix. Store the GetLastError result immediatelly after
18124 create_process calls and use it on the call to error.
18126 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18128 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18130 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18132 * configure.ac: Switch license to GPLv3.
18134 2007-08-01 Michael Snyder <msnyder@access-company.com>
18136 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18138 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18140 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18142 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18143 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18144 CloseToolhelp32Snapshot.
18145 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18146 CloseToolhelp32Snapshot.
18148 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18150 * server.c (main): Check for inferior exit before main loop.
18152 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18154 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18155 instead of on tmp_desc.
18157 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18158 Daniel Jacobowitz <dan@codesourcery.com>
18160 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18161 (add_thread): Minor cleanups.
18162 (clear_inferiors): Move lower in the file. Clear the DLL
18164 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18165 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18166 (xml_escape_text): New.
18167 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18169 (handle_v_cont): Report errors.
18170 (gdbserver_version): Update.
18171 (main): Correct size of own_buf. Do not report initial DLL events.
18172 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18173 (unloaded_dll, xml_escape_text): New.
18174 * win32-low.c (enum target_waitkind): Update comments.
18175 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18176 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18177 (win32_EnumProcessModules, win32_GetModuleInformation)
18178 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18179 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18180 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18181 (win32_Module32First, win32_Module32Next, load_toolhelp)
18182 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18183 (get_child_debug_event): Handle DLL events.
18184 (win32_wait): Likewise.
18186 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18188 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18189 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18191 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18193 * win32-low.c (handle_output_debug_string): Ignore event if not
18196 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18198 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18200 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18202 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18204 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18206 * inferiors.c (change_inferior_id): Add comment.
18207 * linux-low.c (check_removed_breakpoint): Add an early
18208 prototype. Improve debug output.
18209 (linux_attach): Doc update.
18210 (linux_detach_one_process, linux_detach): Clean up before releasing
18212 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18213 * linux-low.h (struct process_info): Doc improvement.
18214 * mem-break.c (delete_all_breakpoints): New.
18215 * mem-break.h (delete_all_breakpoints): New prototype.
18216 * thread-db.c (find_first_thread): New.
18217 (thread_db_create_event): Call it instead of
18218 thread_db_find_new_threads. Clean up unused variables.
18219 (maybe_attach_thread): Remove first thread handling.
18220 (thread_db_find_new_threads): Use find_first_thread.
18221 (thread_db_get_tls_address): Likewise.
18223 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18225 * thread-db.c (thread_db_find_new_threads): Add prototype.
18226 (thread_db_create_event): Check for the main thread before adding
18228 (maybe_attach_thread): Only enable event reporting if TID == 0.
18229 (thread_db_get_tls_address): Check for new threads.
18231 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18233 * linux-low.c (linux_create_inferior): Try execv before execvp.
18234 * spu-low.c (spu_create_inferior): Likewise.
18236 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18238 * linux-low.c (linux_create_inferior): Change execv to execvp.
18239 * spu-low.c (spu_create_inferior): Likewies.
18241 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18243 * Makefile.in (clean): Clean new files instead of deleted ones.
18244 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18245 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18247 * configure.srv: Specify XML files and new regformats for MIPS and
18249 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18250 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18251 an entry for the restart register.
18252 (mips_cannot_fetch_register, mips_cannot_store_register)
18253 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18254 register names to match the XML descriptions.
18255 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18256 restart register instead of $0.
18258 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18259 Markus Deuling <deuling@de.ibm.com>
18261 * remote-utils.c (decode_xfer_write): New function.
18262 * server.h (decode_xfer_write): Add prototype.
18263 * server.c (handle_query): Add PACKET_LEN argument. Support
18264 qXfer:spu:read and qXfer:spu:write packets.
18265 (main): Pass packet_len to handle_query.
18266 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18267 * target.h (target_ops): Add qxfer_spu.
18269 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18271 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18272 accessing non-seekable spufs files.
18274 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18276 * server.c (handle_query): Add reply for qC packet.
18278 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18279 Leo Zayas <lerele@champenstudios@com>
18281 * server.h (check_remote_input_interrupt_request): New function.
18282 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18283 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18284 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18285 (check_remote_input_interrupt_request): New function.
18286 * server.h (check_remote_input_interrupt_request): Declare.
18287 * win32-low.c (winapi_DebugBreakProcess,
18288 winapi_GenerateConsoleCtrlEvent): New typedefs.
18289 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18291 (win32_wait): Check for remote interrupt request
18292 with check_remote_input_interrupt_request.
18293 (win32_request_interrupt): New function.
18294 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18296 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18298 * win32-low.c (debug_registers_changed,
18299 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18300 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18301 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18302 (thread_rec): Get context using the low target.
18303 (child_add_thread): Call thread_added on the low target,
18304 which does the same thing.
18306 (do_initial_child_stuff): Remove debug registers references.
18307 Set context using the low target. Resume threads after
18308 setting the contexts.
18309 (child_continue): Remove dead variable. Remove debug
18310 registers references.
18311 (child_fetch_inferior_registers): Go through the low target.
18312 (do_child_store_inferior_registers): Remove.
18313 (child_store_inferior_registers): Go through the low target.
18314 (win32_resume): Remove debug registers references.
18315 Set context using the low target.
18316 (handle_exception): Change return type to void. Don't record
18317 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18318 first chance exception.
18319 (get_child_debug_event): Change return type to void. Remove
18320 goto loop. Always return after waiting for debug event.
18321 (win32_wait): Convert to switch statement. Handle spurious
18324 * win32-i386-low.c (debug_registers_changed,
18325 debug_registers_used): New.
18326 (initial_stuff): Rename to ...
18327 (i386_initial_stuff): ... this. Clear debug registers
18329 (store_debug_registers): Delete.
18330 (i386_get_thread_context): New.
18331 (load_debug_registers): Delete.
18332 (i386_set_thread_context): New.
18333 (i386_thread_added): New.
18334 (single_step): Rename to ...
18335 (i386_single_step): ... this.
18336 (do_fetch_inferior_registers): Rename to ...
18337 (i386_fetch_inferior_register): ... this.
18338 (i386_store_inferior_register): New.
18339 (the_low_target): Adapt to new interface.
18341 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18342 (arm_get_thread_context): New.
18343 (arm_set_thread_context): New.
18345 (do_fetch_inferior_registers): Rename to ...
18346 (arm_fetch_inferior_register): ... this.
18347 (arm_store_inferior_register): New.
18348 (arm_wince_breakpoint): Reimplement as unsigned long.
18349 (arm_wince_breakpoint_len): Define.
18350 (the_low_target): Adapt to new interface.
18352 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18353 load_debug_registers. Add get_thread_context, set_thread_context,
18354 thread_added and store_inferior_register. Rename
18355 fetch_inferior_registers to fetch_inferior_register.
18356 (regptr): Remove declaration.
18358 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18360 * linux-low.c (linux_detach): Change return type to int. Return 0.
18361 * spu-low.c (spu_detach): Likewise.
18363 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18365 * target.h (target_ops): Change return type of detach to int.
18367 (join_inferior): New.
18368 * server.c (main): Don't skip detach support on mingw32.
18369 If the inferior doesn't support detaching return error.
18370 Call join_inferior instead of using waitpid.
18371 * linux-low.c (linux_join): New.
18372 (linux_target_op): Add linux_join.
18373 * spu-low.c (spu_join): New.
18374 (spu_target_ops): Add spu_join.
18375 * win32-low.c (win32_detach): Adapt to new interface.
18376 Reopen current_process_handle before detaching. Issue a child
18377 resume before detaching.
18379 (win32_target_op): Add win32_join.
18381 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18383 * win32-low.c (win32-attach): Fix return value.
18384 * target.h (target_ops): Describe ATTACH return values.
18386 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18388 * win32-low.c (GETPROCADDRESS): Define.
18389 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18390 (winapi_DebugSetProcessKillOnExit): Likewise.
18391 (win32_create_inferior): Force usage of ansi CreateProcessA.
18392 (win32_attach): Use GETPROCADDRESS.
18393 (win32_detach): Likewise.
18395 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18397 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18399 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18401 * win32-low.c: Commit leftover changes from 2007-03-29.
18403 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18405 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18406 fields short instead of int. Add explicit padding.
18407 (i387_cache_to_fsave): Remove unnecessary casts.
18408 (i387_fsave_to_cache): Doc fix.
18409 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18411 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18413 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18414 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18416 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18418 * configure.srv (arm*-*-mingw32ce*): Move near the other
18421 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18423 * configure.ac: Add errno checking.
18424 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18425 sys/file.h and malloc.h.
18426 (AC_CHECK_DECLS): Add perror.
18427 (srv_mingwce): Handle.
18428 * configure.srv (i[34567]86-*-cygwin*): Add
18429 win32-i386-low.o to srv_tgtobj.
18430 (i[34567]86-*-mingw*): Likewise.
18431 (arm*-*-mingw32ce*): Add case.
18432 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18433 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18434 [__MINGW32CE__] (strerror): New function.
18435 [__MINGW32CE__] (errno): Define to GetLastError.
18436 [__MINGW32CE__] (COUNTOF): New macro.
18437 (remote_open): Remove extra close call.
18438 * mem-break.c (delete_breakpoint_at): New function.
18439 * mem-break.h (delete_breakpoint_at): Declare.
18440 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18441 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18442 [USE_WIN32API] (read, write): Add char* casts.
18443 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18444 * server.h: Include wincecompat.h on Windows CE.
18445 [HAVE_ERRNO_H]: Check.
18446 (perror): Declare if not declared.
18447 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18448 (perror_with_name): Remove errno declaration.
18449 * wincecompat.h: New.
18450 * wincecompat.c: New.
18451 * win32-low.h: New.
18452 * win32-arm-low.c: New.
18453 * win32-i386-low.c: New.
18454 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18455 (OUTMSG2): Make it safe.
18457 (COUNTOF): New macro.
18458 (NUM_REGS): Get it from the low target.
18459 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18460 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18461 (thread_rec): Let low target handle debug registers.
18462 (child_add_thread): Likewise.
18463 (child_init_thread_list): Likewise.
18464 (continue_one_thread): Likewise.
18466 (do_child_fetch_inferior_registers): Move to ...
18467 * win32-i386-low.c: ... here, and rename to ...
18468 (do_fetch_inferior_registers): ... this.
18469 * win32-low.c (child_fetch_inferior_registers):
18470 Go through the low target.
18471 (do_child_store_inferior_registers): Use regptr.
18472 (strwinerror): New function.
18473 (win32_create_inferior): Handle Windows CE.
18474 Use strwinerror instead of strerror on Windows error
18475 codes. Add program to the error output.
18476 Don't close the main thread handle on Windows CE.
18477 (win32_attach): Use coredll.dll on Windows CE.
18478 (win32_kill): Close current process and current
18480 (win32_detach): Use coredll.dll on Windows CE.
18481 (win32_resume): Let low target handle debug registers, and
18483 (handle_exception): Add/Remove initial breakpoint. Avoid
18484 non-existant WSTOPSIG on Windows CE.
18485 (win32_read_inferior_memory): Cast to remove warning.
18486 (win32_arch_string): Go through the low target.
18487 (initialize_low): Call set_breakpoint_data with the low
18488 target's breakpoint.
18489 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18490 FOP_REGNUM, mappings): Move to ...
18491 * win32-i386-low.c: ... here.
18492 * win32-low.c (win32_thread_info): Move to ...
18493 * win32-low.h: ... here.
18494 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18495 win32-arm-low.c and wincecompat.c.
18496 (all:): Add $EXEEXT.
18497 (install-only:): Likewise.
18498 (gdbserver:): Likewise.
18499 (gdbreplay:): Likewise.
18500 * config.in: Regenerate.
18501 * configure: Regenerate.
18503 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18505 * win32-low.c: Rename typedef thread_info to
18506 win32_thread_info throughout.
18508 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18510 * win32-i386-low.c: Rename to ...
18511 * win32-low.c: ... this.
18512 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18513 * Makefile.in: Likewise.
18515 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18517 * remote-utils.c (monitor_output): Constify msg parameter.
18518 * server.h (monitor_output): Likewise.
18519 * win32-i386-low.c (handle_output_debug_string): New.
18520 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18521 handle_output_debug_string.
18522 (get_child_debug_event): Likewise.
18524 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18526 * server.c (main): Correct strtoul check.
18528 2007-03-27 Jon Ringle <jon@ringle.org>
18530 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18532 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18534 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18536 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18538 * terminal.h: Check HAVE_SGTTY_H.
18540 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
18542 * remote-utils.c (remote_open): Print out the assigned port number.
18544 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18546 * remote-utils.c (monitor_output): New function.
18547 * server.c (debug_threads): Define here.
18548 (monitor_show_help): New function.
18549 (handle_query): Handle qRcmd.
18550 (main): Do not handle 'd' packet.
18551 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18552 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18555 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18557 * Makefile.in (EXEEXT): New.
18558 (clean): Use $(EXEEXT).
18560 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18562 * target.h (target_ops): Rename send_signal to request_interrupt,
18563 and remove enum target_signal parameter.
18564 * linux-low.c (linux_request_interrupt): Rename from
18565 linux_send_signal, and always send SIGINT.
18566 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18567 and always send SIGINT.
18568 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18570 (input_interrupt): Likewise.
18572 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18574 * server.c (get_features_xml): Check if target implemented
18576 * win32-i386-low.c (win32_arch_string): New.
18577 (win32_target_ops): Add win32_arch_string as arch_string member.
18579 2007-02-22 Markus Deuling <deuling@de.ibm.com>
18581 * spu-low.c (spu_arch_string): New.
18582 (spu_target_ops): Add spu_arch_string.
18584 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18586 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18587 * configure.ac: Do not check for terminal.h.
18588 * configure, config.in: Regenerated.
18590 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18592 * Makefile.in (OBS): Add $(XML_BUILTIN).
18593 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18595 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18596 (arm-with-iwmmxt.c): New.
18597 * config.in, configure: Regenerate.
18598 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18599 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18600 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18601 (arm*-*-linux*): Add iWMMXt and regset support.
18602 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18603 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18604 (arm_store_wmmxregset, target_regsets): New.
18605 * server.c (get_features_xml): Take annex argument. Check builtin
18607 (handle_query): Handle multiple annexes.
18609 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18611 * remote-utils.c [USE_WIN32API] (read, write): Define.
18612 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18615 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18617 * linux-i386-low.c (the_low_target): Set arch_string.
18618 * linux-x86-64-low.c (the_low_target): Likewise.
18619 * linux-low.c (linux_arch_string): New.
18620 (linux_target_ops): Add it.
18621 * linux-low.h (struct linux_target_ops): Add arch_string.
18622 * server.c (write_qxfer_response): Use const void * for DATA.
18623 (get_features_xml): New.
18624 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18625 * target.h (struct target_ops): Add arch_string method.
18627 2007-01-03 Denis Pilat <denis.pilat@st.com>
18628 Daniel Jacobowitz <dan@codesourcery.com>
18630 * linux-low.c (linux_kill): Handle being called with no threads.
18631 * win32-i386-low.c (win32_kill): Likewise.
18632 (get_child_debug_event): Clear current_process_handle.
18634 2006-12-30 Denis PILAT <denis.pilat@st.com>
18635 Daniel Jacobowitz <dan@codesourcery.com>
18637 * remote-utils.c (remote_open): Check the type of specified
18638 serial port devices before opening them.
18639 * server.c (main): Kill the inferior if an error occurs during
18640 the first remote_open.
18642 2006-12-05 Markus Deuling <deuling@de.ibm.com>
18644 * README: Update supported targets.
18646 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18648 * Makefile.in (clean): Remove reg-mips64.c.
18649 (reg-mips64.c, reg-mips64.o): New rules.
18650 * configure.srv: Handle mips64. Include regset support for mips.
18651 * linux-mips-low.c (union mips_register): New.
18652 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18653 (mips_breakpoint, mips_breakpoint_at): Use int.
18654 (mips_collect_register, mips_supply_register)
18655 (mips_collect_register_32bit, mips_supply_register_32bit)
18656 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18657 (mips_store_fpregset, target_regsets): New.
18658 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18660 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18662 * configure.srv: Add target "spu*-*-*".
18663 * Makefile.in (clean): Remove reg-spu.c.
18664 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18665 * spu-low.c: New file.
18667 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18669 * configure.ac: Correct td_thr_tls_get_addr test.
18670 * configure: Regenerated.
18672 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18674 * linux-low.c (linux_wait_for_event): Reformat. Use the
18675 pass_signals array.
18676 * remote-utils.c (decode_address_to_semicolon): New.
18677 * server.c (pass_signals, handle_general_set): New.
18678 (handle_query): Mention QPassSignals for qSupported.
18679 (main): Call handle_general_set.
18680 * server.h (pass_signals, decode_address_to_semicolon): New.
18682 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18684 * server.c (handle_query): Correct error handling for read_auxv.
18686 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18688 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18689 and srv_linux_thread_db to yes.
18690 * linux-s390-low.c (s390_fill_gregset): New function.
18691 (target_regsets): Define data structure.
18693 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18695 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18696 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18697 * config.in, configure: Regenerated.
18698 * inferiors.c (gdb_id_to_thread): New function.
18699 (gdb_id_to_thread_id): Use it.
18700 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18701 * linux-low.h (struct process_info): Add th member.
18702 (thread_db_get_tls_address): New prototype.
18703 * remote-utils.c (decode_address): Make non-static.
18704 * server.c (handle_query): Handle qGetTLSAddr.
18705 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18706 * target.h (struct target_ops): Add get_tls_address.
18707 * thread-db.c (maybe_attach_thread): Save the thread handle.
18708 (thread_db_get_tls_address): New.
18710 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18712 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18713 (linux_resume_one_process): Take a siginfo_t *. Update all
18714 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18715 (struct pending_signals): Add a siginfo_t.
18716 (linux_wait_for_process): Always set last_status.
18717 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18718 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18719 * linux-low.h (struct process_info): Add last_status.
18721 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18723 * remote-utils.c (try_rle): New function.
18724 (putpkt_binary): Use it.
18726 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18728 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18729 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18730 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18731 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18732 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18735 2006-08-08 Richard Sandiford <richard@codesourcery.com>
18737 * server.c (terminal_fd): New variable.
18738 (old_foreground_pgrp): Likewise.
18739 (restore_old_foreground_pgrp): New function.
18740 (start_inferior): Record the terminal file descriptor in terminal_fd
18741 and its original foreground group in old_foreground_pgrp. Register
18742 restore_old_foreground_pgrp with atexit().
18744 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18746 * server.c (handle_query): Correct qPart to qXfer.
18748 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18750 * configure.ac: Check for more headers which are missing on
18751 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18752 * configure.srv: Add Cygwin and mingw32.
18753 * remote-utils.c: Don't include headers unconditionally which
18754 are missing on mingw32. Include <winsock.h> for mingw32.
18755 (remote_open): Adjust for mingw32 support. Flush
18756 standard error after writing to it.
18757 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18758 (unblock_async_io, enable_async_io, disable_async_io)
18759 (readchar, getpkt): Update for Winsock support.
18760 (prepare_resume_reply): Expect a protocol signal number.
18761 * server.c: Disable <sys/wait.h> on mingw32.
18762 (start_inferior): Adjust for mingw32 support. Flush
18763 standard error after writing to it.
18764 (attach_inferior): Likewise. Use protocol signal
18766 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18768 * win32-i386-low.c: New file.
18769 * Makefile.in (XM_CLIBS): Set.
18770 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18771 (win32-i386-low.o): New dependency rule.
18772 * linux-low.c (linux_wait): Use target signal numbers.
18773 * target.h (struct target_ops): Doc fix.
18774 * server.h (target_signal_to_name): New prototype.
18775 * gdbreplay.c: Don't include headers unconditionally which
18776 are missing on mingw32. Include <winsock.h> for mingw32.
18777 (remote_close, remote_open): Adjust for Winsock support.
18778 * configure, config.in: Regenerated.
18780 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18782 * server.c (decode_xfer_read, write_qxfer_response): New.
18783 (handle_query): Take a packet length argument. Handle
18784 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18785 the qSupported response.
18786 (main): Update call to handle_query.
18788 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18790 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18791 (putpkt_binary): Renamed from putpkt and adjusted for binary
18793 (putpkt): New wrapper for putpkt_binary.
18794 (readchar): Don't mask off the high bit.
18795 (decode_X_packet): New function.
18796 * server.c (main): Call putpkt_binary if a handler sets the packet
18797 length. Save the length of the incoming packet. Handle 'X'.
18798 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18800 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18802 * server.c (handle_query): Handle qSupported.
18804 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18806 * remote-utils.c (all_symbols_looked_up): New variable.
18807 (look_up_one_symbol): Check it.
18808 * server.h (look_up_one_symbol): New declaration.
18809 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18811 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18813 * Makefile.in (linux-arm-low.o): Update dependencies.
18814 * linux-arm-low.c: Include "gdb_proc_service.h".
18815 (PTRACE_GET_THREAD_AREA): Define.
18816 (ps_get_thread_area): New function.
18818 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18820 * configure.srv (m68k*-*-uclinux*): New target.
18821 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18822 (linux_resume_one_process): Remove extraneous cast.
18823 (linux_read_offsets): New.
18824 (linux_target_op): Add linux_read_offsets on mmuless systems.
18825 * server.c (handle_query): Add qOffsets logic.
18826 * target.h (struct target_ops): Add read_offsets.
18828 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18830 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18831 (PTRACE_GET_THREAD_AREA): Define.
18832 (ps_get_thread_area): New function.
18833 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18834 (linux-x86-64-low.o): Update.
18836 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18838 * configure.ac: Remove checks for prfpregset_t.
18839 * gdb_proc_service.h: New file.
18840 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18841 new "gdb_proc_service.h".
18842 * proc-service.c: Likewise.
18843 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18844 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18845 * Makefile.in (gdb_proc_service_h): Updated.
18846 * configure, config.in: Regenerated.
18848 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18850 * remote-utils.c (prepare_resume_reply): Move declaration
18851 of gdb_id_from_wait to the top of the block.
18853 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18855 * linux-low.c (regsets_store_inferior_registers): Read the regset
18856 from the target before filling it.
18858 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18860 * server.c (attach_inferior): Return SIGTRAP for a successful
18863 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18865 * Makefile.in (OBS): Add version.o.
18866 (STAGESTUFF): Delete.
18867 (version.o): Add dependencies.
18868 (version.c): Replace rule.
18869 (clean): Remove version.c.
18870 * server.c (gdbserver_version): New.
18871 (gdbserver_usage): Use printf.
18872 (main): Handle --version and --help.
18873 * server.h (version, host_name): Add declarations.
18875 2005-12-23 Eli Zaretskii <eliz@gnu.org>
18887 * linux-x86-64-low.c:
18889 * linux-s390-low.c:
18890 * linux-ppc64-low.c:
18892 * linux-mips-low.c:
18893 * linux-m68k-low.c:
18894 * linux-m32r-low.c:
18897 * linux-ia64-low.c:
18898 * linux-i386-low.c:
18899 * linux-crisv32-low.c:
18911 * gdbserver.1: Add (C) after Copyright. Update the FSF
18914 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18916 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18917 (arm_breakpoint_at): Recognize both breakpoints.
18918 (the_low_target): Use the correct breakpoint instruction.
18920 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18922 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18923 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18924 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18925 (the_low_target): Update.
18927 2005-10-25 Andreas Schwab <schwab@suse.de>
18929 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18931 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18932 (ia64_num_regs): Reduce to 462.
18934 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18936 * acinclude.m4: Correct quoting.
18937 * aclocal.m4: Regenerated.
18939 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18940 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18941 (thread_db_init): Call thread_db_err_str.
18942 * configure.ac: Check for TD_VERSION.
18943 * config.in, configure: Regenerated.
18945 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18947 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18949 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18951 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18952 is not available. Define HAVE_PTRACE_GETREGS if it is.
18953 * config.in, configure: Regenerated.
18954 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18955 * linux-i386-low.c, linux-m68k-low.c: Update to use
18956 HAVE_PTRACE_GETREGS.
18957 * linux-low.c (regsets_fetch_inferior_registers)
18958 (regsets_store_inferior_registers): Only return 0 if we processed
18960 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18961 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18963 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18965 * inferiors.c (struct thread_info): Add gdb_id.
18966 (add_thread): Add gdb_id argument.
18967 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
18968 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
18969 calls to add_thread.
18970 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
18971 * server.c (handle_query): Use thread_to_gdb_id.
18972 (handle_v_cont, main): Use gdb_id_to_thread_id.
18973 * server.h (add_thread): Update prototype.
18974 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
18977 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18979 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18980 left-padded registers.
18981 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18982 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18984 2005-07-01 Steve Ellcey <sje@cup.hp.com>
18986 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18987 * configure: Regenerate.
18988 * config.in: Regenerate.
18989 * server.h (NEED_DECLARATION_STRERROR):
18990 Replace with !HAVE_DECL_STRERROR.
18992 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18994 * linux-low.c (linux_wait, linux_send_signal): Don't test
18995 an unsigned long variable for > 0 if it could be MAX_ULONG.
18996 * server.c (myresume): Likewise.
18997 * target.c (set_desired_inferior): Likewise.
18999 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19001 * configure.ac: Simplify and improve check for socklen_t.
19002 * configure, config.in: Regenerate.
19004 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19006 * acconfig.h: Remove.
19007 * configure.ac: Add a test for socklen_t. Use three-argument
19008 AC_DEFINE throughout.
19009 * config.in: Regenerated using autoheader 2.59.
19010 * configure: Regenerated.
19012 * gdbreplay.c (socklen_t): Provide a default.
19013 (remote_open): Use socklen_t.
19014 * remote-utils.c (socklen_t): Provide a default.
19015 (remote_open): Use socklen_t.
19016 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19019 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19021 * linux-low.c (linux_read_memory, linux_write_memory)
19022 (linux_read_auxv): Likewise.
19023 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19024 (check_mem_write): Likewise.
19025 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19027 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19028 (registers_from_string, register_data): Likewise.
19029 * server.c (handle_query, main): Likewise.
19030 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19031 (decode_M_packet): Likewise.
19032 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19033 * target.h (struct target_ops): Update read_memory, write_memory,
19035 (read_inferior_memory, write_inferior_memory): Update.
19036 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19037 to unsigned char *.
19038 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19039 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19040 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19041 linux-s390-low.c, linux-sh-low.c: Update for changes in
19042 read_inferior_memory and the_low_target->breakpoint.
19044 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19046 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19047 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19048 * configure.srv: Add powerpc64-*-linux*.
19049 * linux-ppc64-low.c: New file.
19051 2005-05-23 Orjan Friberg <orjanf@axis.com>
19053 * linux-cris-low.c: New file with support for CRIS.
19054 * linux-crisv32-low.c: Ditto for CRISv32.
19055 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19056 (clean): Add reg-cris.c and reg-crisv32.c.
19057 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19058 reg-crisv32.o, and reg-crisv32.c to make rules.
19059 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19060 recognized targets.
19062 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19064 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19065 of sizeof (PTRACE_XFER_TYPE).
19066 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19068 2005-05-12 Orjan Friberg <orjanf@axis.com>
19070 * target.h (struct target_ops): Add insert_watchpoint,
19071 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19072 pointers for hardware watchpoint support.
19073 * linux-low.h (struct linux_target_ops): Ditto.
19074 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19075 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19076 to linux_target_ops.
19077 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19079 * server.c (main): Recognize 'Z' and 'z' packets.
19081 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19083 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19084 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19085 (the_low_target): Add new members.
19087 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19089 * proc-service.c (ps_lgetregs): Search all_processes instead of
19092 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19094 * server.c (start_inferior): Change return type to int.
19095 (attach_inferior): Change sigptr to int *.
19096 (handle_v_cont, handle_v_requests): Change signal to int *.
19097 (main): Change signal to int.
19099 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19101 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19102 * configure.srv: Add m32r*-*-linux*.
19103 * linux-m32r-low.c: New file.
19105 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19107 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19109 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19111 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19112 Take unsigned long arguments for PIDs.
19113 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19114 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19115 (wait_for_sigstop, linux_resume_one_process)
19116 (regsets_fetch_inferior_registers, linux_send_signal)
19117 (linux_read_auxv): Likewise. Update the types of variables holding
19118 PIDs. Update format string specifiers.
19119 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19120 * remote-utils.c (prepare_resume_reply): Likewise.
19121 * server.c (cont_thread, general_thread, step_thread)
19122 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19124 (handle_query): Update format specifiers.
19125 (handle_v_cont, main): Use strtoul for thread IDs.
19126 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19127 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19128 (general_thread, step_thread, thread_from_wait)
19129 (old_thread_from_wait): Update.
19130 * target.h (struct thread_resume): Use unsigned long for THREAD.
19131 (struct target_ops): Use unsigned long for arguments to attach and
19134 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19136 * acinclude.m4: Include bfd/bfd.m4 directly.
19137 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19138 <agriffis@toolchain.org>.
19139 * aclocal.m4, configure: Regenerated.
19141 2005-01-07 Andrew Cagney <cagney@gnu.org>
19143 * configure.ac: Rename configure.in, require autoconf 2.59.
19144 * configure: Re-generate.
19146 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19148 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19149 LIBS when finished.
19150 * aclocal.m4: Regenerated.
19151 * configure: Regenerated.
19153 2004-11-21 Andreas Schwab <schwab@suse.de>
19155 * linux-m68k-low.c (m68k_num_gregs): Define.
19156 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19157 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19158 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19159 (m68k_breakpoint_at): New. Add to the_low_target.
19161 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19162 srv_linux_thread_db to yes.
19164 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19166 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19167 (ARCH_SET_FS): Likewise.
19168 (ARCH_GET_FS): Likewise.
19169 (ARCH_GET_GS): Likewise.
19171 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19173 * linux-i386-low.c (ps_get_thread_area): New.
19174 * linux-x86-64-low.c (ps_get_thread_area): New.
19175 * linux-low.c: Include <sys/syscall.h>.
19176 (linux_kill_one_process): Don't kill the first thread here.
19177 (linux_kill): Kill the first thread here.
19178 (kill_lwp): New function.
19179 (send_sigstop, linux_send_signal): Use it.
19180 * proc-service.c: Clean up #ifdefs.
19181 (fpregset_info): Delete.
19182 (ps_lgetregs): Update and enable implementation.
19183 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19185 * remote-utils.c (struct sym_cache, symbol_cache): New.
19186 (input_interrupt): Print a clearer message.
19187 (async_io_enabled): New variable.
19188 (enable_async_io, disable_async_io): Use it. Update comments.
19189 (look_up_one_symbol): Use the symbol cache.
19190 * thread-db.c (thread_db_look_up_symbols): New function.
19191 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19193 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19195 * configure.in: Test for -rdynamic.
19196 * configure: Regenerated.
19197 * Makefile (INTERNAL_LDFLAGS): New.
19198 (gdbserver, gdbreplay): Use it.
19200 2004-09-02 Andrew Cagney <cagney@gnu.org>
19202 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19204 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19206 * linux-low.c (linux_wait): Clear all_processes list also.
19208 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19210 * linux-low.c: Include <errno.h>. Remove extern declaration of
19213 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19215 * gdbreplay.c, server.h, utils.c: Update copyright years.
19217 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19219 * server.c (main): Print child status or termination signal from
19220 variable 'signal', not 'sig'.
19222 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19224 * linux-low.c (linux_read_memory): Change return type to
19225 int. Check for and return error from ptrace().
19226 * target.c (read_inferior_memory): Change return type to int. Pass
19227 back return status from the_target->read_memory().
19228 * target.h (struct target_ops): Adapt *read_memory() prototype.
19230 (read_inferior_memory): Adapt prototype.
19231 * server.c (main): Return an error packet if
19232 read_inferior_memory() returns an error.
19234 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19236 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19237 Unify with other clean targets.
19239 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19241 * server.c (handle_v_cont): Call set_desired_inferior.
19243 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19245 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19247 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19249 * linux-low.c (linux_wait): Unblock async I/O.
19250 (linux_resume): Block and enable async I/O.
19251 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19252 * server.h (block_async_io, unblock_async_io): Add prototypes.
19254 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19256 * remote-utils.c (remote_open): Print a status notice after
19257 opening a TCP port.
19258 * server.c (attach_inferior): Print a status notice after
19261 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19263 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19265 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19267 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19269 * server.c, target.h: Update copyright years.
19271 2004-02-25 Roland McGrath <roland@redhat.com>
19273 * target.h (struct target_ops): New member `read_auxv'.
19274 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19275 * linux-low.c (linux_read_auxv): New function.
19276 (linux_target_ops): Initialize `read_auxv' member to that.
19278 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19280 Committed by Jim Blandy <jimb@redhat.com>.
19282 * linux-s390-low.c (s390_num_regs): Update.
19283 (s390_regmap): Remove control registers. Use __s390x__ predefine
19284 instead of GPR_SIZE to distiguish s390 and s390x targets.
19286 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19288 * linux-low.c: Update copyright year.
19289 (check_removed_breakpoint): Clear pending_is_breakpoint.
19290 (linux_set_resume_request, linux_queue_one_thread)
19291 (resume_status_pending_p): New functions.
19292 (linux_continue_one_thread): Use process->resume.
19293 (linux_resume): Only resume threads if there are no pending events.
19294 * linux-low.h (struct process_info): Add resume request
19297 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19299 * regcache.c (new_register_cache): Clear the allocated register
19300 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19302 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19304 * linux-low.c (linux_resume): Take a struct thread_resume *
19306 (linux_wait): Update call.
19307 (resume_ptr): New static variable.
19308 (linux_continue_one_thread): Renamed from
19309 linux_continue_one_process. Use resume_ptr.
19310 (linux_resume): Use linux_continue_one_thread.
19311 * server.c (handle_v_cont, handle_v_requests): New functions.
19312 (myresume): New function.
19313 (main): Handle 'v' case.
19314 * target.h (struct thread_resume): New type.
19315 (struct target_ops): Change argument of "resume" to struct
19317 (myresume): Delete macro.
19319 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19321 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19322 (uninstall): Support DESTDIR.
19324 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19326 * configure.srv: Add xscale*linux copy of arm*linux entry.
19328 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19330 * linux-arm-low.c (arm_reinsert_addr): New function.
19331 (the_low_target): Add arm_reinsert_addr.
19333 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19335 * mem-break.c: Remove whitespace at end of file.
19337 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19339 * configure.in: Check whether we need to prototype strerror.
19340 * server.h: Optionally prototype strerror.
19341 * gdbreplay.c (perror_with_name): Use strerror.
19342 * linux-low.c (linux_attach_lwp): Use strerror.
19343 * utils.c (perror_with_name): Use strerror.
19344 * config.in, configure: Regenerated.
19346 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19348 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19349 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19351 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19353 * Makefile.in (SFILES): Update.
19354 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19355 low-sun3.c: Remove files.
19357 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19359 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19360 (linux_detach_one_process, linux_detach): New functions.
19361 (linux_target_ops): Add linux_detach.
19362 * server.c (main): Handle 'D' packet.
19363 * target.h (struct target_ops): Add "detach" member.
19364 (detach_inferior): Define.
19366 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19368 From Kelley Cook <kelleycook@wideopenwest.com>:
19369 * configure.srv: Accept i[34567]86 variants.
19371 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19373 * linux-low.c (linux_wait_for_event): Correct comment typos.
19374 (linux_resume_one_process): Call check_removed_breakpoint.
19375 (linux_send_signal): New function.
19376 (linux_target_ops): Add linux_send_signal.
19377 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19379 * target.h (struct target_ops): Add send_signal.
19381 2003-05-29 Jim Blandy <jimb@redhat.com>
19383 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19384 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19385 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19386 away part of the register's value.
19388 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19390 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19391 (linux_wait_for_event, linux_init_signals): Likewise.
19393 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19395 * configure.in: Check for stdlib.h.
19396 * configure: Regenerated.
19397 * config.in: Regenerated.
19399 2003-01-04 Andreas Schwab <schwab@suse.de>
19401 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19403 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19405 * Makefile.in: Remove obsolete code.
19407 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19409 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19410 defined(PT_FPR0_HI).
19412 2002-11-17 Stuart Hughes <seh@zee2.com>
19414 * linux-arm-low.c (arm_num_regs): Increase.
19415 (arm_regmap): Include status register.
19417 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
19419 * linux-low.c (register_addr): Remove incorrect -1 check.
19421 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
19423 * linux-low.c (linux_create_inferior): Call setpgid. Return
19425 (unstopped_p, linux_signal_pid): Remove.
19426 (linux_target_ops): Remove linux_signal_pid.
19427 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19428 global instead of target method.
19429 * target.h (struct target_ops): Remove signal_pid. Update comment
19430 for create_inferior.
19431 * server.c (signal_pid): New variable.
19432 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
19433 gdbserver. Set the child to be the foreground process group.
19434 (attach_inferior): Set signal_pid.
19436 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
19438 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19440 2002-08-20 Jim Blandy <jimb@redhat.com>
19442 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19445 2002-08-01 Andrew Cagney <cagney@redhat.com>
19447 * Makefile.in: Make chill references obsolete.
19449 2002-07-24 Kevin Buettner <kevinb@redhat.com>
19451 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19452 * configure: Regenerate.
19453 * config.in: Regenerate.
19455 2002-07-09 David O'Brien <obrien@FreeBSD.org>
19457 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19458 (perror_with_name, remote_close, remote_open, expect, play): Static.
19460 2002-07-04 Michal Ludvig <mludvig@suse.cz>
19462 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
19463 byte offsets instead of an array of indexes.
19464 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19466 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
19468 * regcache.c: Add comment.
19470 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
19472 * thread-db.c: New file.
19473 * proc-service.c: New file.
19474 * acinclude.m4: New file.
19475 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19476 proc-service.o, and thread-db.o.
19477 (linux-low.o): Add USE_THREAD_DB.
19478 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19479 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19480 * aclocal.m4: Regenerated.
19481 * config.in: Regenerated.
19482 * configure: Regenerated.
19483 * configure.in: Check for proc_service.h, sys/procfs.h,
19484 thread_db.h, and linux/elf.h headrs.
19485 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19486 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19487 Check for -lthread_db and thread support.
19488 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19489 PowerPC, and SuperH.
19490 * i387-fp.c: Constify arguments.
19491 * i387-fp.h: Likewise.
19492 * inferiors.c: (struct thread_info): Renamed from
19493 `struct inferior_info'. Remove PID member. Use generic inferior
19494 list header. All uses updated.
19495 (inferiors, signal_pid): Removed.
19496 (all_threads): New variable.
19497 (get_thread): Define.
19498 (add_inferior_to_list): New function.
19499 (for_each_inferior): New function.
19500 (change_inferior_id): New function.
19501 (add_inferior): Removed.
19502 (remove_inferior): New function.
19503 (add_thread): New function.
19504 (free_one_thread): New function.
19505 (remove_thread): New function.
19506 (clear_inferiors): Use for_each_inferior and free_one_thread.
19507 (find_inferior): New function.
19508 (find_inferior_id): New function.
19509 (inferior_target_data): Update argument type.
19510 (set_inferior_target_data): Likewise.
19511 (inferior_regcache_data): Likewise.
19512 (set_inferior_regcache_data): Likewise.
19513 * linux-low.c (linux_bp_reinsert): Remove.
19514 (all_processes, stopping_threads, using_thrads)
19515 (struct pending_signals, debug_threads, pid_of): New.
19516 (inferior_pid): Replace with macro.
19517 (struct inferior_linux_data): Remove.
19518 (get_stop_pc, add_process): New functions.
19519 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19520 Use add_process and add_thread.
19521 (linux_attach_lwp): New function, based on old linux_attach. Use
19522 add_process and add_thread. Set stop_expected for new threads.
19523 (linux_attach): New function.
19524 (linux_kill_one_process): New function.
19525 (linux_kill): Kill all LWPs.
19526 (linux_thread_alive): Use find_inferior_id.
19527 (check_removed_breakpoints, status_pending_p): New functions.
19528 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19529 Update. Use WNOHANG. Wait for cloned processes also. Update process
19530 struct for the found process.
19531 (linux_wait_for_event): New function.
19532 (linux_wait): Use it. Support LWPs.
19533 (send_sigstop, wait_for_sigstop, stop_all_processes)
19534 (linux_resume_one_process, linux_continue_one_process): New functions.
19535 (linux_resume): Support LWPs.
19536 (REGISTER_RAW_SIZE): Remove.
19537 (fetch_register): Use register_size instead. Call supply_register.
19538 (usr_store_inferior_registers): Likewise. Call collect_register.
19539 Fix recursive case.
19540 (regsets_fetch_inferior_registers): Improve error message.
19541 (regsets_store_inferior_registers): Add debugging.
19542 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19543 (unstopped_p, linux_signal_pid): New functions.
19544 (linux_target_ops): Add linux_signal_pid.
19545 (linux_init_signals): New function.
19546 (initialize_low): Call it. Initialize using_threads.
19547 * regcache.c (inferior_regcache_data): Add valid
19549 (get_regcache): Fetch registers lazily. Add fetch argument
19550 and update all callers.
19551 (regcache_invalidate_one, regcache_invalidate): New
19553 (new_register_cache): Renamed from create_register_cache.
19554 Return the new regcache.
19555 (free_register_cache): Change argument to a void *.
19556 (registers_to_string, registers_from_string): Call get_regcache
19557 with fetch flag set.
19558 (register_data): Make static. Pass fetch flag to get_regcache.
19559 (supply_register): Call get_regcache with fetch flag clear.
19560 (collect_register): Call get_regcache with fetch flag set.
19561 (collect_register_as_string): New function.
19562 * regcache.h: Update.
19563 * remote-utils.c (putpkt): Flush after debug output and use
19565 Handle input interrupts while waiting for an ACK.
19566 (input_interrupt): Use signal_pid method.
19567 (getpkt): Flush after debug output and use stderr.
19568 (outreg): Use collect_register_as_string.
19569 (new_thread_notify, dead_thread_notify): New functions.
19570 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19571 and general_thread.
19572 (look_up_one_symbol): Flush after debug output.
19573 * server.c (step_thread, server_waiting): New variables.
19574 (start_inferior): Don't use signal_pid. Update call to mywait.
19575 (attach_inferior): Update call to mywait.
19576 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19577 (main): Don't fetch/store registers explicitly. Use
19578 set_desired_inferior. Support proposed ``Hs'' packet. Update
19580 * server.h: Update.
19581 (struct inferior_list, struct_inferior_list_entry): New.
19582 * target.c (set_desired_inferior): New.
19583 (write_inferior_memory): Constify.
19584 (mywait): New function.
19585 * target.h: Update.
19586 (struct target_ops): New signal_pid method.
19587 (mywait): Removed macro, added prototype.
19589 * linux-low.h (regset_func): Removed.
19590 (regset_fill_func, regset_store_func): New.
19591 (enum regset_type): New.
19592 (struct regset_info): Add type field. Use new operation types.
19593 (struct linux_target_ops): stop_pc renamed to get_pc.
19594 Add decr_pc_after_break and breakpoint_at.
19595 (get_process, get_thread_proess, get_process_thread)
19596 (strut process_info, all_processes, linux_attach_lwp)
19597 (thread_db_init): New.
19599 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19600 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19601 (the_low_target): Add new members.
19602 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19603 (i386_store_fpxregset): Constify.
19604 (target_regsets): Add new kind identifier.
19605 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19606 (i386_set_pc): Add debugging.
19607 (i386_breakpoint_at): New function.
19608 (the_low_target): Add new members.
19609 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19610 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19611 (mips_breakpoint_at): New.
19612 (the_low_target): Add new members.
19613 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19614 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19615 (the_low_target): Add new members.
19616 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19617 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19618 (the_low_target): Add new members.
19619 * linux-x86-64-low.c (target_regsets): Add new kind
19622 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
19624 From Martin Pool <mbp@samba.org>:
19625 * server.c (gdbserver_usage): New function.
19628 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
19630 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19631 stop_at -> stop_pc.
19633 2002-05-04 Andrew Cagney <ac131313@redhat.com>
19635 * Makefile.in: Remove obsolete code.
19637 2002-04-24 Michal Ludvig <mludvig@suse.cz>
19639 * linux-low.c (regsets_fetch_inferior_registers),
19640 (regsets_store_inferior_registers): Removed cast to int from
19642 * regcache.h: Added declaration of struct inferior_info.
19644 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19646 * inferiors.c (struct inferior_info): Add regcache_data.
19647 (add_inferior): Call create_register_cache.
19648 (clear_inferiors): Call free_register_cache.
19649 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19650 * regcache.c (struct inferior_regcache_data): New.
19651 (registers): Remove.
19652 (get_regcache): New function.
19653 (create_register_cache, free_register_cache): New functions.
19654 (set_register_cache): Don't initialize the register cache here.
19655 (registers_to_string, registers_from_string, register_data): Call
19657 * regcache.h: Add prototypes.
19658 * server.h: Likewise.
19660 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19662 * mem-break.c: New file.
19663 * mem-break.h: New file.
19664 * Makefile.in: Add mem-break.o rule; update server.h
19666 * inferiors.c (struct inferior_info): Add target_data
19668 (clear_inferiors): Free target_data member if set.
19669 (inferior_target_data, set_inferior_target_data): New functions.
19670 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19671 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19672 * linux-low.c (linux_bp_reinsert): New variable.
19673 (struct inferior_linux_data): New.
19674 (linux_create_inferior): Use set_inferior_target_data.
19675 (linux_attach): Likewise. Call add_inferior.
19676 (linux_wait_for_one_inferior): New function.
19677 (linux_wait): Call it.
19678 (linux_write_memory): Add const.
19679 (initialize_low): Call set_breakpoint_data.
19680 * linux-low.h (struct linux_target_ops): Add breakpoint
19682 * server.c (attach_inferior): Remove extra add_inferior
19684 * server.h: Include mem-break.h. Update inferior.c
19686 * target.c (read_inferior_memory)
19687 (write_inferior_memory): New functions.
19688 * target.h (read_inferior_memory)
19689 (write_inferior_memory): Change macros to prototypes.
19690 (struct target_ops): Update comments. Add const to write_memory
19693 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
19695 * linux-low.c (usr_store_inferior_registers): Support
19696 registers which are allowed to fail to store.
19697 * linux-low.h (linux_target_ops): Likewise.
19698 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19699 (ppc_cannot_store_register): FPSCR may not be storable.
19701 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19703 * server.h: Include <string.h> if HAVE_STRING_H.
19704 * ChangeLog: Correct paths in last ChangeLog entry.
19706 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19708 * linux-low.h: Remove obsolete prototypes.
19709 (struct linux_target_ops): New.
19710 (extern the_low_target): New.
19711 * linux-low.c (num_regs, regmap): Remove declarations.
19712 (register_addr): Use the_low_target explicitly.
19713 (fetch_register): Likewise.
19714 (usr_fetch_inferior_registers): Likewise.
19715 (usr_store_inferior_registers): Likewise.
19716 * linux-arm-low.c (num_regs): Remove.
19717 (arm_num_regs): Define.
19718 (arm_regmap): Renamed from regmap, made static.
19719 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19721 (arm_cannot_store_register): Renamed from cannot_store_register,
19723 (the_low_target): New.
19724 * linux-i386-low.c (num_regs): Remove.
19725 (i386_num_regs): Define.
19726 (i386_regmap): Renamed from regmap, made static.
19727 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19729 (i386_cannot_store_register): Renamed from cannot_store_register,
19731 (the_low_target): New.
19732 * linux-ia64-low.c (num_regs): Remove.
19733 (ia64_num_regs): Define.
19734 (ia64_regmap): Renamed from regmap, made static.
19735 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19737 (ia64_cannot_store_register): Renamed from cannot_store_register,
19739 (the_low_target): New.
19740 * linux-m68k-low.c (num_regs): Remove.
19741 (m68k_num_regs): Define.
19742 (m68k_regmap): Renamed from regmap, made static.
19743 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19745 (m68k_cannot_store_register): Renamed from cannot_store_register,
19747 (the_low_target): New.
19748 * linux-mips-low.c (num_regs): Remove.
19749 (mips_num_regs): Define.
19750 (mips_regmap): Renamed from regmap, made static.
19751 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19753 (mips_cannot_store_register): Renamed from cannot_store_register,
19755 (the_low_target): New.
19756 * linux-ppc-low.c (num_regs): Remove.
19757 (ppc_num_regs): Define.
19758 (ppc_regmap): Renamed from regmap, made static.
19759 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19761 (ppc_cannot_store_register): Renamed from cannot_store_register,
19763 (the_low_target): New.
19764 * linux-s390-low.c (num_regs): Remove.
19765 (s390_num_regs): Define.
19766 (s390_regmap): Renamed from regmap, made static.
19767 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19769 (s390_cannot_store_register): Renamed from cannot_store_register,
19771 (the_low_target): New.
19772 * linux-sh-low.c (num_regs): Remove.
19773 (sh_num_regs): Define.
19774 (sh_regmap): Renamed from regmap, made static.
19775 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19777 (sh_cannot_store_register): Renamed from cannot_store_register,
19779 (the_low_target): New.
19780 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19781 (the_low_target): New.
19783 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19785 * Makefile.in: Add stamp-h target.
19786 * configure.in: Create stamp-h.
19787 * configure: Regenerated.
19789 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19791 * inferiors.c: New file.
19792 * target.c: New file.
19793 * target.h: New file.
19794 * Makefile.in: Add target.o and inferiors.o. Update
19796 * linux-low.c (inferior_pid): New static variable,
19797 moved from server.c.
19798 (linux_create_inferior): Renamed from create_inferior.
19799 Call add_inferior. Return 0 on success instead of a PID.
19800 (linux_attach): Renamed from myattach.
19801 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19802 (linux_thread_alive): Renamed from mythread_alive.
19803 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19805 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19806 (regsets_store_inferior_registers): Correct error message.
19807 Add missing ``return 0''.
19808 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19809 (linux_store_registers): Renamed from store_inferior_registers.
19810 (linux_read_memory): Renamed from read_inferior_memory.
19811 (linux_write_memory): Renamed from write_inferior_memory.
19812 (linux_target_ops): New structure.
19813 (initialize_low): Call set_target_ops ().
19814 * remote-utils.c (unhexify): New function.
19815 (hexify): New function.
19816 (input_interrupt): Send signals to ``signal_pid''.
19817 * server.c (inferior_pid): Remove.
19818 (start_inferior): Update create_inferior call.
19819 (attach_inferior): Call add_inferior.
19820 (handle_query): New function.
19821 (main): Call handle_query for `q' packets.
19822 * server.h: Include "target.h". Remove obsolete prototypes.
19823 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19825 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19827 * Makefile.in: Add WARN_CFLAGS. Update configury
19829 * configure.in: Check for <string.h>
19830 * configure: Regenerate.
19831 * config.in: Regenerate.
19832 * gdbreplay.c: Include needed system headers.
19833 (remote_open): Remove strchr prototype.
19834 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19835 * regcache.c (supply_register): Change buf argument to const void *.
19836 (supply_register_by_name): Likewise.
19837 (collect_register): Change buf argument to void *.
19838 (collect_register_by_name): Likewise.
19839 * regcache.h: Add missing prototypes.
19840 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19841 * server.c (handle_query): New function.
19842 (attached): New static variable, moved out of main.
19843 (main): Quiet longjmp clobber warnings.
19844 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19845 * utils.c (error): Remove NORETURN.