]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
52405d85
TBA
12020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
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
10 linux_process_target.
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
15 lynx_process_target.
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
20 nto_process_target.
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
25 win32_process_target.
26
27 Replace 'the_target->pt' with 'the_target' in the uses below.
28
29 * hostio.cc (hostio_error)
30 (handle_setfs)
31 (handle_open)
32 (handle_unlink)
33 (handle_readlink)
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)
37 (arm_get_hwcap)
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)
42 (linux_wait_1)
43 (linux_read_memory)
44 (linux_process_target::breakpoint_kind_from_pc)
45 (linux_get_auxv)
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)
54 (sparc_breakpoint_at)
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)
60 (bp_opcode)
61 (insert_memory_breakpoint)
62 (set_raw_breakpoint_at)
63 (delete_raw_breakpoint)
64 (z_type_supported)
65 (uninsert_raw_breakpoint)
66 (reinsert_raw_breakpoint)
67 (validate_inserted_breakpoint)
68 * regcache.cc (regcache_read_pc)
69 (regcache_write_pc)
70 * remote-utils.cc (putpkt_binary_1)
71 (input_interrupt)
72 (getpkt)
73 (prepare_resume_reply)
74 * server.cc (handle_general_set)
75 (handle_detach)
76 (handle_qxfer_auxv)
77 (handle_qxfer_exec_file)
78 (handle_qxfer_libraries_svr4)
79 (handle_qxfer_osdata)
80 (handle_qxfer_siginfo)
81 (handle_qxfer_fdpic)
82 (handle_query)
83 (resume)
84 (handle_v_requests)
85 (queue_stop_reply_callback)
86 (captured_main)
87 * target.cc (prepare_to_access_memory)
88 (done_accessing_memory)
89 (read_inferior_memory)
90 (target_write_memory)
91 (target_stop_and_wait)
92 (target_wait)
93 (target_mourn_inferior)
94 (target_continue_no_signal)
95 (target_continue)
96 (target_supports_multi_process)
97 (kill_inferior)
98 * target.h
99 (target_create_inferior)
100 (target_post_create_inferior)
101 (myattach)
102 (target_supports_fork_events)
103 (target_supports_vfork_events)
104 (target_supports_exec_events)
105 (target_handle_new_gdb_connection)
106 (detach_inferior)
107 (mythread_alive)
108 (fetch_inferior_registers)
109 (store_inferior_registers)
110 (join_inferior)
111 (target_supports_non_stop)
112 (target_async)
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)
120 (target_pause_all)
121 (target_unpause_all)
122 (target_stabilize_threads)
123 (target_install_fast_tracepoint_jump_pad)
124 (target_emit_ops)
125 (target_supports_disable_randomization)
126 (target_supports_agent)
127 (target_enable_btrace)
128 (target_disable_btrace)
129 (target_read_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)
141 (target_thread_name)
142 (target_thread_handle)
143 * win32-low.cc (do_initial_child_stuff)
144
145 Rename target op default definitions listed below.
146
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.
293
478f9adf
PA
2942020-02-20 Pedro Alves <palves@redhat.com>
295
296 * target.cc (set_target_ops): Simply copy the given target pointer
297 instead of creating a copy of the pointed object.
298
d633e831
TBA
2992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
300
301 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
302 of process_target.
303
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.
308
309 Update the derived classes and callers below.
310
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.
318
bc8d3ae4
TBA
3192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
320
321 Turn process_stratum_target's supports_catch_syscall op into a
322 method of process_target.
323
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.
328
329 Update the derived classes and callers below.
330
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.
338
5303a34f
TBA
3392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
340
341 Turn process_stratum_target's supports_software_single_step op
342 into a method of process_target.
343
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.
348
349 Update the derived classes and callers below.
350
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.
358
7f63b89b
TBA
3592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
360
361 Turn process_stratum_target's thread_name and thread_handle ops
362 into methods of process_target.
363
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.
370
371 Update the derived classes and callers below.
372
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.
380
d367006f
TBA
3812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
382
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.
386
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.
395
396 Update the derived classes and callers below.
397
398 * mem-break.cc (bp_size): Update.
399 (bp_opcode): 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.
420
c9b7b804
TBA
4212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
422
423 Turn process_stratum_target's multifs_open, multifs_readlink,
424 multifs_unlink ops into methods of process_target.
425
426 * target.h (struct process_stratum_target): Remove the target ops.
427 (class process_target): Add the target ops. Also add
428 'supports_multifs'.
429 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
430 "sys/stat.h".
431 (process_target::supports_multifs): Define.
432 (process_target::multifs_open): Define.
433 (process_target::multifs_readlink): Define.
434 (process_target::multifs_unlink): Define.
435
436 Update the derived classes and callers below.
437
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.
451
8247b823
TBA
4522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
453
454 Turn process_stratum_target's pid_to_exec_file op into a method
455 of process_target.
456
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.
462
463 Update the derived classes and callers below.
464
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.
474
2526e0cd
TBA
4752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
476
477 Turn process_stratum_target's supports_range_stepping op into a
478 method of process_target.
479
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.
484
485 Update the derived classes and callers below.
486
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.
494
79597bdd
TBA
4952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
496
497 Turn process_stratum_target's btrace-related ops (enable_btrace,
498 disable_btrace, read_btrace, read_btrace_conf) into methods of
499 process_target.
500
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.
511
512 Update the derived classes and callers below.
513
514 * linux-low.cc (linux_target_ops): Update.
515 (linux_process_target:enable_btrace): Define as a wrapper around
516 linux_enable_btrace.
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.
527
c0245cb9
TBA
5282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
529
530 Turn process_stratum_target's supports_agent op into a method of
531 process_target.
532
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.
537
538 Update the derived classes and callers below.
539
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.
547
974387bb
TBA
5482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
549
550 Turn process_stratum_target's qxfer_libraries_svr4 op into a
551 method of process_target.
552
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.
558
559 Update the derived classes and callers below.
560
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.
571
c756403b
TBA
5722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
573
574 Turn process_stratum_target's supports_disable_randomization op
575 into a method of process_target.
576
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.
581
582 Update the derived classes and callers below.
583
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.
591
345dafad
TBA
5922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
593
594 Turn process_stratum_target's emit_ops op into a method of
595 process_target.
596
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.
601
602 Update the derived classes and callers below.
603
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.
611
c23c9391
TBA
6122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
613
614 Turn process_stratum_target's install_fast_tracepoint_jump_pad
615 and get_min_fast_tracepoint_insn_len ops into methods of
616 process_target.
617
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
624 to ...
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.
629
630 Update the derived classes and callers below.
631
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.
643
5c9eb2f2
TBA
6442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
645
646 Turn process_stratum_target's stabilize_threads op into a
647 method of process_target.
648
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.
653
654 Update the derived classes and callers below.
655
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.
667
29e8dc09
TBA
6682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
669
670 Turn process_stratum_target's pause_all and unpause_all ops
671 into methods of process_target.
672
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.
681
682 Update the derived classes and callers below.
683
684 * server.cc (handle_status): Update.
685 * tracepoint.cc (clear_installed_tracepoints): Update.
686 (cmd_qtdp): 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.
703
4e2e869c
TBA
7042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
705
706 Turn process_stratum_target's get_tib_address op into a method of
707 process_target.
708
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.
714
715 Update the derived classes and callers below.
716
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.
726
68119632
TBA
7272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
728
729 Turn process_stratum_target's thread_stopped op into a method of
730 process_target.
731
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.
739
740 Update the derived classes and callers below.
741
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.
751
770d8f6a
TBA
7522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
753
754 Turn process_stratum_target's read_pc and write_pc ops into
755 methods of process_target.
756
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.
761
762 Update the derived classes and callers below.
763
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.
775
290732bf
TBA
7762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
777
778 Turn process_stratum_target's supports_tracepoints op into a
779 method of process_target.
780
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.
785
786 Update the derived classes and callers below.
787
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.
795
0df28b1b
TBA
7962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
797
798 Turn process_stratum_target's process_qsupported op into a method
799 of process_target.
800
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.
805
806 Update the derived classes and callers below.
807
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.
815
9da41fda
TBA
8162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
817
818 Turn process_stratum_target's read_loadmap op into a method of
819 process_target.
820
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.
826
827 Update the derived classes and callers below.
828
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.
839
95a45fc1
TBA
8402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
841
842 Turn process_stratum_target's core_of_thread op into a method of
843 process_target.
844
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.
849
850 Update the derived classes and callers below.
851
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.
858
55cf3021
TBA
8592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
860
861 Turn process_stratum_target's handle_monitor_command op into a
862 method of process_target.
863
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.
868
869 Update the derived classes and callers below.
870
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.
878
fb00dfce
TBA
8792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
880
881 Turn process_stratum_target's handle_new_gdb_connection op into a
882 method of process_target.
883
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.
888
889 Update the derived classes and callers below.
890
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.
898
9690a72a
TBA
8992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
900
901 Turn process_stratum_target's supports_fork_events,
902 supports_vfork_events, and supports_exec_events ops into methods
903 of process_target.
904
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.
913
914 Update the derived classes and callers below.
915
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.
927
652aef77
TBA
9282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
929
930 Turn process_stratum_target's supports_multi_process op into a
931 method of process_target.
932
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.
937
938 Update the derived classes and callers below.
939
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.
947
0dc587d4
TBA
9482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
949
950 Turn process_stratum_target's supports_non_stop, async, and
951 start_non_stop ops into methods of process_target.
952
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.
962
963 Update the derived classes and callers below.
964
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
978 instead.
979 * win32-low.cc (win32_target_ops): Update.
980
d7abedf7
TBA
9812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
982
983 Turn process_stratum_target's qxfer_siginfo op into a method of
984 process_target.
985
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.
991
992 Update the derived classes and callers below.
993
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.
1004
2d0795ee
TBA
10052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1006
1007 Turn process_stratum_target's qxfer_osdata op into a method of
1008 process_target.
1009
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.
1015
1016 Update the derived classes and callers below.
1017
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.
1028
ea06bbaa
TBA
10292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1030
1031 Turn process_stratum_target's hostio_last_error op into a
1032 method of process_target.
1033
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.
1038
1039 Update the derived classes and callers below.
1040
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.
1050
6e3fd7e9
TBA
10512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1052
1053 Turn process_stratum_target's get_tls_address op into a method of
1054 process_target.
1055
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.
1061
1062 Update the derived classes and callers below.
1063
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.
1072
5203ae1e
TBA
10732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1074
1075 Turn process_stratum_target's read_offsets op into a method of
1076 process_target.
1077
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.
1083
1084 Update the derived classes and callers below.
1085
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.
1096
6eeb5c55
TBA
10972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1098
1099 Turn process_stratum_target's stopped_by_watchpoint and
1100 stopped_data_address ops into methods of process_target.
1101
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.
1106
1107 Update the derived classes and callers below.
1108
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.
1129
22aa6223
TBA
11302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1131
1132 Turn process_stratum_target's supports_hardware_single_step op into
1133 a method of process_target.
1134
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.
1141
1142 Update the derived classes and callers below.
1143
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.
1157
93fe88b2
TBA
11582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1159
1160 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1161 ops into methods of process_target.
1162
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.
1169
1170 Update the derived classes and callers below.
1171
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.
1181
84320c4e
TBA
11822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183
1184 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1185 ops into methods of process_target.
1186
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.
1193
1194 Update the derived classes and callers below.
1195
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.
1205
7e0bde70
TBA
12062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1207
1208 Turn process_stratum_target's insert_point and remove_point ops
1209 into methods of process_target.
1210
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.
1215
1216 Update the derived classes and callers below.
1217
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.
1241
a2b2297a
TBA
12422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1243
1244 Turn process_stratum_target's supports_z_point_type op into a
1245 method of process_target.
1246
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.
1250
1251 Update the derived classes and callers below.
1252
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.
1267
eac215cc
TBA
12682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1269
1270 Turn process_stratum_target's read_auxv op into a method of
1271 process_target.
1272
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.
1278
1279 Update the derived classes and callers below.
1280
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.
1295
eb497a2a
TBA
12962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1297
1298 Turn process_stratum_target's request_interrupt op into a method of
1299 process_target.
1300
1301 * target.h (struct process_stratum_target): Remove the target op.
1302 (class process_target): Add the target op.
1303
1304 Update the derived classes and callers below.
1305
1306 * remote-utils.cc (putpkt_binary_1): Update.
1307 (input_interrupt): Update.
1308 (getpkt): 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.
1326
2a31c7aa
TBA
13272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1328
1329 Turn process_stratum_target's look_up_symbols op into a method of
1330 process_target.
1331
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.
1335
1336 Update the derived classes and callers below.
1337
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.
1346
e2558df3
TBA
13472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1348
1349 Turn process_stratum_target's read_memory and write_memory
1350 ops into methods of process_target.
1351
1352 * target.h (struct process_stratum_target): Remove the target ops.
1353 (class process_target): Add the target ops.
1354
1355 Update the derived classes and callers below.
1356
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
1381 op call.
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.
1404
79b44087
TBA
14052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1406
1407 Turn process_stratum_target's prepare_to_access_memory and
1408 done_accessing_memory ops into methods of process_target.
1409
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.
1416
1417 Update the derived classes and callers below.
1418
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.
1428
a5a4d4cd
TBA
14292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1430
1431 Turn process_stratum_target's fetch_registers and store_registers
1432 ops into methods of process_target.
1433
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.
1438
1439 Update the derived classes and callers below.
1440
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.
1465
6532e7e3
TBA
14662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1467
1468 Turn process_stratum_target's wait op into a method of
1469 process_target.
1470
1471 * target.h (struct process_stratum_target): Remove the target op.
1472 (class process_target): Add the target op.
1473
1474 Update the derived classes and callers below.
1475
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.
1494
0e4d7e35
TBA
14952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1496
1497 Turn process_stratum_target's resume op into a method of
1498 process_target.
1499
1500 * target.h (struct process_stratum_target): Remove the target op.
1501 (class process_target): Add the target op.
1502
1503 Update the derived classes and callers below.
1504
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.
1527
13d3d99b
TBA
15282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1529
1530 Turn process_stratum_target's thread_alive op into a method of
1531 process_target.
1532
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.
1536
1537 Update the derived classes and callers below.
1538
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.
1556
95a49a39
TBA
15572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1558
1559 Turn process_stratum_target's join op into a method of
1560 process_target.
1561
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.
1565
1566 Update the derived classes and callers below.
1567
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.
1583
8adb37b9
TBA
15842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1585
1586 Turn process_stratum_target's mourn op into a method of
1587 process_target.
1588
1589 * target.h (struct process_stratum_target): Remove the target op.
1590 (class process_target): Add the target op.
1591
1592 Update the derived classes and callers below.
1593
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.
1614
9061c9cf
TBA
16152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1616
1617 Turn process_stratum_target's detach op into a method of
1618 process_target.
1619
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.
1623
1624 Update the derived classes and callers below.
1625
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.
1642
c6885a57
TBA
16432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1644
1645 Turn process_stratum_target's kill op into a method of
1646 process_target.
1647
1648 * target.h (struct process_stratum_target): Remove the target op.
1649 (class process_target): Add the target op.
1650
1651 Update the derived classes and callers below.
1652
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.
1670
ef03dad8
TBA
16712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1672
1673 Turn process_stratum_target's attach op into a method of
1674 process_target.
1675
1676 * target.h (struct process_stratum_target): Remove the target op.
1677 (class process_target): Add the target op.
1678 (myattach): Update the macro.
1679
1680 Update the derived classes and callers below.
1681
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.
1698
6dee9afb
TBA
16992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1700
1701 Turn process_stratum_target's post_create_inferior op into a method
1702 of process_target.
1703
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.
1708
1709 Update the derived classes and callers below.
1710
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.
1718
15295543
TBA
17192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1720
1721 Turn process_stratum_target's create_inferior op into a method of
1722 process_target.
1723
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.
1728
1729 Update the derived classes and callers below.
1730
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.
1750
5ef9273d
TBA
17512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1752
1753 * target.h (class process_target): New class definition.
1754 (struct process_stratum_target) <pt>: New field with type
1755 'process_target*'.
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*
1759 as the 'pt' field.
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*
1763 as the 'pt' field.
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*
1767 as the 'pt' field.
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*
1771 as the 'pt' field.
1772
9f1528a1
AB
17732020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * configure: Regenerate.
1776
bf84f706
MR
17772020-02-19 Maciej W. Rozycki <macro@wdc.com>
1778 Andrew Burgess <andrew.burgess@embecosm.com>
1779
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):
1785 Define.
1786
1a627e7e
TT
17872020-02-14 Tom Tromey <tom@tromey.com>
1788
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.
1796 (GNULIB_H): Remove.
1797 (generated_files): Update.
1798 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1799 * configure: Rebuild.
1800 * configure.ac: Don't configure gnulib or libiberty.
1801 (GNULIB): Update.
1802
a9b34532
EZ
18032020-02-14 Eli Zaretskii <eliz@gnu.org>
1804
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.
1809
feacfcac
SM
18102020-02-13 Simon Marchi <simon.marchi@efficios.com>
1811
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.
1816
06b3c5bd
SM
18172020-02-13 Simon Marchi <simon.marchi@efficios.com>
1818
1819 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1820
052793ad
HD
18212020-02-12 Hannes Domani <ssbssa@yahoo.de>
1822
1823 * win32-low.c (win32_create_inferior): Set signal_pid.
1824
f20e3e82
MR
18252020-02-12 Maciej W. Rozycki <macro@wdc.com>
1826 Pedro Alves <palves@redhat.com>
1827
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.
1831
8ddd8e0e
SM
18322020-02-11 Simon Marchi <simon.marchi@efficios.com>
1833
1834 * configure: Re-generate.
1835
898e7f60
SM
18362020-02-11 Simon Marchi <simon.marchi@efficios.com>
1837
1838 * configure: Re-generate.
1839
58df732b
SM
18402020-02-11 Simon Marchi <simon.marchi@efficios.com>
1841
1842 * acinclude.m4: Update warning.m4 path.
1843
7928d571
HD
18442020-02-09 Hannes Domani <ssbssa@yahoo.de>
1845
1846 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1847 (handle_exception): Set siginfo_er.
1848 (win32_xfer_siginfo): New function.
1849
919adfe8
TT
18502020-02-07 Tom Tromey <tom@tromey.com>
1851 Pedro Alves <palves@redhat.com>
1852
1853 * README: Update build documentation.
1854 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1855 host, not target.
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.
1866
287c844a
MR
18672020-01-29 Maciej W. Rozycki <macro@wdc.com>
1868
1869 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1870
548a204f
PFC
18712020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1872
1873 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1874 assignment instead of srv_linux_obj.
1875
a2236a08
HD
18762020-01-28 Hannes Domani <ssbssa@yahoo.de>
1877
1878 * server.c (handle_qxfer_libraries): Write segment-address with
1879 paddress.
1880
bdaed379
HD
18812020-01-24 Hannes Domani <ssbssa@yahoo.de>
1882
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.
1888
42cd72aa
MR
18892020-01-24 Maciej W. Rozycki <macro@wdc.com>
1890
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.
1894 (%.o): Rename to...
1895 (nat/%.o): ... this pattern rule.
1896 (%.o): Rename to...
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.
1902
42ba50ec
MR
19032020-01-24 Maciej W. Rozycki <macro@wdc.com>
1904
1905 * Makefile.in (TAGS): Remove config files from the recipe.
1906
05ea2a05
TT
19072020-01-14 Tom Tromey <tom@tromey.com>
1908
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
1912 lib-link.m4.
1913
01027315
TT
19142020-01-14 Tom Tromey <tom@tromey.com>
1915
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.
1926
b2ceabe8
TT
19272020-01-14 Tom Tromey <tom@tromey.com>
1928
1929 * configure.ac (LIBS): Use WIN32APILIBS.
1930 (USE_WIN32API): Don't define.
1931 * configure: Rebuild.
1932
25c51f71
TT
19332020-01-14 Tom Tromey <tom@tromey.com>
1934
1935 * configure: Rebuild.
1936
c0bd321d
SM
19372020-01-13 Simon Marchi <simon.marchi@efficios.com>
1938
1939 * Makefile.in (%-generated.c): Remove rule for files from
1940 regformats/i386.
1941
bb564c58
SM
19422020-01-13 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * configure: Re-generate.
1945
6e37c371
SM
19462020-01-13 Simon Marchi <simon.marchi@efficios.com>
1947
1948 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1949 Define to static.
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.
1953
df4a0200
SM
19542020-01-13 Simon Marchi <simon.marchi@efficios.com>
1955
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
1961 static.
1962
89e94ec9
SM
19632020-01-13 Simon Marchi <simon.marchi@efficios.com>
1964
1965 * inferiors.c: Include gdbsupport/common-inferior.h.
1966
2552728a
SM
19672020-01-13 Simon Marchi <simon.marchi@efficios.com>
1968
1969 * hostio-errno.c: Include hostio.h.
1970
4025fa09
SM
19712020-01-13 Simon Marchi <simon.marchi@efficios.com>
1972
1973 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1974 prerequisite.
1975
c0b0a142
SM
19762020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1977
1978 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1979 * linux-arm-tdesc.h: Include arch/arm.h.
1980
bb1183e2
SM
19812020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1982
1983 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1984
f5df0b5f
SM
19852020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1986
1987 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1988 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1989
5b6d1e4f
PA
19902020-01-10 Pedro Alves <palves@redhat.com>
1991
1992 * fork-child.c (post_fork_inferior): Pass target down to
1993 startup_inferior.
1994 * inferiors.c (switch_to_thread): Add process_stratum_target
1995 parameter.
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
2000 switch_to_thread.
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.
2011
559e7e50
EZ
20122020-01-06 Eli Zaretskii <eliz@gnu.org>
2013 Pedro Alves <palves@redhat.com>
2014
2015 * win32-low.c (get_child_debug_event): Extract the fatal exception
2016 from the exit status and convert to the equivalent Posix signal
2017 number.
2018 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2019 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2020
48189bec
HD
20212020-01-01 Hannes Domani <ssbssa@yahoo.de>
2022
2023 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2024
5dd8bf88
JB
20252020-01-01 Joel Brobecker <brobecker@adacore.com>
2026
2027 * server.c (gdbserver_version): Change copyright year to 2020.
2028 * gdbreplay.c (gdbreplay_version): Likewise.
2029
0ad6b8ee
CB
20302019-12-19 Christian Biesinger <cbiesinger@google.com>
2031
2032 * configure: Regenerate.
2033 * configure.ac: Quote variable arguments of test.
2034
1ee7b812
BE
20352019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2036
2037 * Makefile.in: Fix build with GNU Make 3.81
2038
d9fa87f4
TT
20392019-12-16 Tom Tromey <tromey@adacore.com>
2040
2041 * server.c (get_exec_file): Constify result.
2042
ab7d13f0
CB
20432019-12-10 Christian Biesinger <cbiesinger@google.com>
2044
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
2054 strerror.
2055 (gdb_agent_helper_thread): Likewise.
2056 * utils.c (perror_with_name): Likewise.
2057
4da8c3a8
TT
20582019-11-26 Tom Tromey <tom@tromey.com>
2059
2060 * configure, config.in: Rebuild.
2061
21987b9c
TT
20622019-11-26 Tom Tromey <tom@tromey.com>
2063
2064 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2065 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2066 gdb_sigmask.
2067 * configure, config.in: Rebuild.
2068
5e030278
TT
20692019-11-26 Tom Tromey <tom@tromey.com>
2070
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.
2076
6d91ce9a
CB
20772019-11-26 Christian Biesinger <cbiesinger@google.com>
2078
2079 * debug.c (debug_set_output): Call safe_strerror instead of
2080 strerror.
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.
2095
6cdd651f
LM
20962019-11-20 Luis Machado <luis.machado@linaro.org>
2097
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.
2102
cd850b40
CB
21032019-11-15 Christian Biesinger <cbiesinger@google.com>
2104
2105 * Makefile.in: Add safe-strerror.c.
2106 * configure: Regenerate.
2107 * configure.ac: Don't source common.host.
2108
5abebf3c
CB
21092019-11-15 Christian Biesinger <cbiesinger@google.com>
2110
2111 * config.in: Regenerate.
2112 * configure: Regenerate.
2113
e06f3d6e
AB
21142019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2115
2116 * ax.c (ax_printf): Handle size_t_arg.
2117
ca3a04f6
CB
21182019-11-06 Christian Biesinger <cbiesinger@google.com>
2119
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.
2127
e48f6033
CB
21282019-11-01 Christian Biesinger <cbiesinger@google.com>
2129
2130 * configure: Regenerate.
2131 * configure.ac: Remove check for strerror_r.
2132
e7e97a2e
CB
21332019-10-31 Christian Biesinger <cbiesinger@google.com>
2134
2135 * config.in: Regenerate.
2136 * configure: Regenerate.
2137 * configure.ac: Also check for strerror_r.
2138
75cafaa6
CB
21392019-10-31 Christian Biesinger <cbiesinger@google.com>
2140
2141 * ax.h (debug_agent): Remove duplicate declaration.
2142
30baf67b
TV
21432019-10-26 Tom de Vries <tdevries@suse.de>
2144
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.
2150 * regcache.h: Same.
2151 * server.c: Same.
2152 * tracepoint.c: Same.
2153 * win32-low.c: Same.
2154
52c64cf7
TT
21552019-10-25 Tom Tromey <tromey@adacore.com>
2156
2157 * utils.c (xstrdup): Remove.
2158
c12d372d
TT
21592019-10-23 Tom Tromey <tom@tromey.com>
2160
2161 * configure, config.in: Rebuild.
2162
4d0b984b
TT
21632019-10-23 Tom Tromey <tom@tromey.com>
2164
2165 * configure: Rebuild.
2166 * acinclude.m4: Use m4_include, not sinclude.
2167
c5adaa19
TT
21682019-10-17 Tom Tromey <tromey@adacore.com>
2169
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
2174 invocation.
2175
fec4e896
CB
21762019-10-16 Christian Biesinger <cbiesinger@google.com>
2177
2178 * server.c: Include xml-builtin.h.
2179 (get_xml_features): Don't declare xml_builtins here.
2180
00975ff6
AB
21812019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2182
2183 * Makefile.in: Remove references to vec-ipa.o.
2184
0dc32745
AB
21852019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * Makefile.in: Remove references to vec.c.
2188
3e6ec53a
CB
21892019-10-02 Christian Biesinger <cbiesinger@google.com>
2190
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.
2216
80fd2826
TT
22172019-10-02 Tom Tromey <tromey@adacore.com>
2218
2219 * Makefile.in (SFILES): Add common-inferior.c.
2220 (OBS): Add common-inferior.o.
2221 * server.c (startup_with_shell): Don't define.
2222
46f29a9a
AB
22232019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * linux-low.c (linux_low_read_btrace): Update for change to
2226 std::vector.
2227
f9d949fb
CB
22282019-09-20 Christian Biesinger <cbiesinger@google.com>
2229
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
2234 debug_threads.
2235 * nto-low.c: Likewise.
2236 * remote-utils.c: Likewise.
2237 * thread-db.c: Likewise.
2238
abf516c6
UW
22392019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2240
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.
2246 (spu*-*-*): Remove.
2247
2248 * spu-low.c: Remove file.
2249
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.
2266
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.
2278
2d41fa11
SDJ
22792019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2280
2281 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2282 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2283 * config.in: Regenerate.
2284 * configure: Regenerate.
2285
d59b55f0
TT
22862019-08-15 Tom Tromey <tromey@adacore.com>
2287
2288 * target.c (target_write_memory): Use gdb::byte_vector.
2289
4196ab2a
TT
22902019-08-15 Tom Tromey <tromey@adacore.com>
2291
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):
2310 Update.
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.
2319
c6778d00
TT
23202019-08-15 Tom Tromey <tromey@adacore.com>
2321
2322 * target.c (write_inferior_memory): Use std::vector.
2323
404f2902
FCE
23242019-08-06 Frank Ch. Eigler <fche@redhat.com>
2325
2326 PR build/24886
2327 * configure.ac: Drop enable-libmcheck support.
2328 * configure, config.in: Rebuild.
2329 * acinclude.m4: Don't include it.
2330
4c5aa8e0
AH
23312019-07-19 Alan Hayward <alan.hayward@arm.com>
2332
2333 * configure.srv: Remove Arm xml files.
2334
7cc17433
AH
23352019-07-19 Alan Hayward <alan.hayward@arm.com>
2336
2337 * configure.srv: Add new files. Remove xml generated files.
2338 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2339 registers.
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.
2354
166a82be
AH
23552019-07-10 Alan Hayward <alan.hayward@arm.com>
2356
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.
2361
268a13a5
TT
23622019-07-09 Tom Tromey <tom@tromey.com>
2363
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.
2380
350fab54
AH
23812019-07-04 Alan Hayward <alan.hayward@arm.com>
2382
2383 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2384 defines.
2385 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2386
2b40fda7
AH
23872019-07-04 Alan Hayward <alan.hayward@arm.com>
2388
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.
2398
7d10623d
TV
23992019-06-20 Tom de Vries <tdevries@suse.de>
2400
2401 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2402 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2403
8d6a48df
TV
24042019-06-19 Tom de Vries <tdevries@suse.de>
2405
2406 * debug.h (debug_write): Change return type to ssize_t.
2407 * debug.c (debug_write): Same.
2408
73cc7272
TT
24092019-06-14 Tom Tromey <tom@tromey.com>
2410
2411 * configure.ac: Use new path to gnulib.
2412 * configure: Rebuild.
2413 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2414 to gnulib.
2415
08f10e02
TT
24162019-06-11 Tom Tromey <tom@tromey.com>
2417
2418 * Makefile.in (SFILES): Add alloc.c.
2419 (OBS): Add alloc.o.
2420 (IPA_OBJS): Add alloc-ipa.o.
2421 (alloc-ipa.o): New target.
2422 (%.o: ../%.c): New pattern rule.
2423
422186a9
TT
24242019-06-10 Tom Tromey <tromey@adacore.com>
2425
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
2429 newline.
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
2433 newline.
2434 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2435 end warning with a newline.
2436
b02f78f9
PA
24372019-06-04 Pedro Alves <palves@redhat.com>
2438
2439 * server.c (captured_main): Use make_unique_xstrdup.
2440
88ed7edb
TT
24412019-06-02 Tom Tromey <tom@tromey.com>
2442
2443 * gdbreplay.c (fromhex): Remove.
2444 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2445
33a6bc35
TT
24462019-05-29 Tom Tromey <tromey@adacore.com>
2447
2448 * configure: Rebuild.
2449
e90a813d
KB
24502019-05-06 Kevin Buettner <kevinb@redhat.com>
2451
2452 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2453 sign extension code on 32-bit builds.
2454
353ea2d1
EZ
24552019-05-03 Eli Zaretskii <eliz@gnu.org>
2456
2457 * remote-utils.c:
2458 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2459
b494cdff
TT
24602019-04-19 Tom Tromey <tom@tromey.com>
2461
2462 * server.c (struct vstop_notif): Derive from notif_event.
2463 <base>: Remove.
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
2477 "common/queue.h".
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.
2482
a7e559cc
AH
24832019-04-17 Alan Hayward <alan.hayward@arm.com>
2484
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.
2489
aeb2e706
AH
24902019-04-17 Alan Hayward <alan.hayward@arm.com>
2491
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.
2498
c1bc0935
AH
24992019-04-17 Alan Hayward <alan.hayward@arm.com>
2500
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.
2508
3f52fdbc
KB
25092019-04-10 Kevin Buettner <kevinb@redhat.com>
2510
2511 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2512 when using a 64-bit gdbserver.
2513
b0319eaa
TT
25142019-04-09 Tom Tromey <tromey@adacore.com>
2515
2516 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2517
eedc3f4f
TT
25182019-04-08 Tom Tromey <tom@tromey.com>
2519
2520 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2521 throw.
2522 (linux_resume_one_lwp): Likewise.
2523
230d2906
TT
25242019-04-08 Tom Tromey <tom@tromey.com>
2525
2526 * gdbreplay.c: Update.
2527 * linux-low.c: Update.
2528 * server.c: Update.
2529
a70b8144
TT
25302019-04-08 Tom Tromey <tom@tromey.com>
2531
2532 * server.c: Use C++ exception handling.
2533 * linux-low.c: Use C++ exception handling.
2534 * gdbreplay.c: Use C++ exception handling.
2535
3d6e9d23
TT
25362019-04-08 Tom Tromey <tom@tromey.com>
2537
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.
2542
0570503d
PFC
25432019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2544
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.
2551
227a9e65
TT
25522019-04-05 Tom Tromey <tromey@adacore.com>
2553
2554 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2555 variables.
2556
69f4c9cc
AH
25572019-03-28 Alan Hayward <alan.hayward@arm.com>
2558
2559 * linux-low.c (AT_HWCAP2): Add define if not already included.
2560
974c89e0
AH
25612019-03-26 Alan Hayward <alan.hayward@arm.com>
2562
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.
2576
1ef53e6b
AH
25772019-03-22 Alan Hayward <alan.hayward@arm.com>
2578 Jiong Wang <jiong.wang@arm.com>
2579
2580 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2581 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2582 to fail.
2583 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2584
ee4fbcfa
AH
25852019-03-22 Alan Hayward <alan.hayward@arm.com>
2586 Jiong Wang <jiong.wang@arm.com>
2587
2588 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2589 (aarch64_get_hwcap): New function.
2590 (aarch64_arch_setup): Read APIA hwcap.
2591
6dc0ebde
AH
25922019-03-22 Alan Hayward <alan.hayward@arm.com>
2593 Jiong Wang <jiong.wang@arm.com>
2594
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.
2602
1163a4b7
JB
26032019-03-12 John Baldwin <jhb@FreeBSD.org>
2604
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.
2610
d3a70e03
TT
26112019-03-12 Tom Tromey <tromey@adacore.com>
2612
2613 * linux-low.c (iterate_over_lwps): Update.
2614
37991b4f
TT
26152019-03-06 Tom Tromey <tom@tromey.com>
2616
2617 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2618 (captured_main): Use SCOPE_EXIT.
2619
45950eb6
SDJ
26202019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2621
2622 * configure.srv: Use '$enable_unittest' instead of '$development'
2623 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2624 case.
2625
43ac54fc
TT
26262019-02-27 Tom Tromey <tromey@adacore.com>
2627
2628 * gdbreplay.c (logchar): Handle \r\n.
2629
df0da8a2
AH
26302019-02-07 Alan Hayward <alan.hayward@arm.com>
2631
2632 * linux-low.c (linux_attach): Add process before lwp.
2633 * server.c (attach_inferior): Check if already attached.
2634
1a5c2598
TT
26352019-02-07 Tom Tromey <tom@tromey.com>
2636
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.
2667
956cc47c
SN
26682018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2669
2670 PR gdb/23985
2671 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2672 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2673
a0707f3c
TT
26742019-01-25 Tom Tromey <tom@tromey.com>
2675
2676 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2677
0747795c
TT
26782019-01-25 Tom Tromey <tom@tromey.com>
2679
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.
2708 * ax.c:
2709 (enum gdb_agent_op): Fix common/ includes.
2710
be6d4f74
TT
27112019-01-21 Tom Tromey <tom@tromey.com>
2712
2713 * tracepoint.c: Fix includes.
2714 * remote-utils.c: Fix includes.
2715 * linux-x86-low.c: Fix includes.
2716
66d91b39
JB
27172019-01-01 Joel Brobecker <brobecker@adacore.com>
2718
2719 * gdbreplay.c (gdbreplay_version): Update copyright year in
2720 version message.
2721 * server.c (gdbserver_version): Likewise.
2722
754e3168
AH
27232018-12-05 Alan Hayward <alan.hayward@arm.com>
2724
2725 * linux-low.c (add_lwp): Switch ordering.
2726
d105de22
TT
27272018-11-29 Tom Tromey <tom@tromey.com>
2728
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
2734 process.
2735 * lynx-low.c (lynx_join): Take pid, not process.
2736 * linux-low.c (linux_join): Take pid, not process.
2737
50138245
AH
27382018-11-23 Alan Hayward <alan.hayward@arm.com>
2739
2740 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2741 (aarch64_cannot_fetch_register): Likewise.
2742 (struct linux_target_ops): Update references.
2743
64f57f3d
PFC
27442018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2745
2746 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2747
8d619c01
EBM
27482018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2749
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.
2782
232bfb86
EBM
27832018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2784
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.
2792
f2cf6173
EBM
27932018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2794
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.
2817
7ca18ed6
EBM
28182018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2819 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2820
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.
2850
5c849b22
PFC
28512018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2852
2853 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2854
8ecfd7bd
SDJ
28552018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2856 Simon Marchi <simark@simark.ca>
2857
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
2863 enabled.
2864 * server.c (captured_main): Update message informing that
2865 selftests have been disabled.
2866
96643e35
TT
28672018-10-04 Tom Tromey <tom@tromey.com>
2868
2869 * configure: Rebuild.
2870
da4ae14a
TT
28712018-10-04 Tom Tromey <tom@tromey.com>
2872
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".
2879
7c619dbd
GB
28802018-10-01 Gary Benson <gbenson@redhat.com>
2881
2882 * gdb_proc_service.h: Moved common code to
2883 common/gdb_proc_service.h.
2884
3795e814
GB
28852018-10-01 Gary Benson <gbenson@redhat.com>
2886
2887 * gdb_proc_service.h: Synchronize comments and whitespace with
2888 GDB's version of this file.
2889
49b036f1
TT
28902018-09-25 Tom Tromey <tom@tromey.com>
2891
2892 * configure: Rebuild.
2893 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2894
8ff03f0b
SM
28952018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2896
2897 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2898 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2899 ($(IPA_LIB)): Sort IPA_OBJS.
2900
a1cd91dc
SM
29012018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2902
2903 * Makefile.in: Remove references to $(ADD_DEPS).
2904
752312ba
TT
29052018-09-16 Tom Tromey <tom@tromey.com>
2906
2907 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2908 variables.
2909 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2910 variables.
2911
f1628857
TT
29122018-09-05 Tom Tromey <tom@tromey.com>
2913
2914 * configure: Rebuild.
2915
ad202fcc
SM
29162018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2917
2918 PR build/23399
2919 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2920
d3d8724a
TT
29212018-08-27 Tom Tromey <tom@tromey.com>
2922
2923 PR build/23087:
2924 * configure: Rebuild.
2925
b4f183d2
TT
29262018-08-27 Tom Tromey <tom@tromey.com>
2927
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.
2933
4e2aa472
SM
29342018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2935
2936 PR gdb/23374
2937 PR gdb/23375
2938 * server.h (struct client_state) <disable_randomization>:
2939 Initialize to 1.
2940
cf4088a9
SM
29412018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2942
2943 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2944 variable.
2945 (mips_supply_ptrace_register): Likewise.
2946
a0de763e
TT
29472018-07-22 Tom Tromey <tom@tromey.com>
2948
2949 * configure: Rebuild.
2950
b0a7723d
TT
29512018-07-22 Tom Tromey <tom@tromey.com>
2952
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.
2961
a780ef4f
PA
29622018-07-13 Pedro Alves <palves@redhat.com>
2963
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
2976 and callers.
2977 (kill_inferior): Likewise.
2978
ef2ddb33
PA
29792018-07-13 Pedro Alves <palves@redhat.com>
2980
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
2990 and callers.
2991 (detach_inferior, join_inferior): Rename 'pid' parameter to
2992 'proc'.
2993
c7ab0aef
SDJ
29942018-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>
2998
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
3004 connections.
3005 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3006 and 'wspiapi.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
3011 IPv6 sources.
3012
31445d10
PA
30132018-07-11 Pedro Alves <palves@redhat.com>
3014
3015 PR gdb/23377
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.
3025
cb197132
PA
30262018-07-11 Pedro Alves <palves@redhat.com>
3027
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.
3033
1b919490
VB
30342018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3035 Pedro Alves <palves@redhat.com>
3036
3037 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3038
d7e15655
TT
30392018-07-03 Tom Tromey <tom@tromey.com>
3040
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.
3046 * server.c: Update.
3047 * spu-low.c: Update.
3048 * target.c: Update.
3049 * win32-low.c: Update.
3050
26a57c92
TT
30512018-07-03 Tom Tromey <tom@tromey.com>
3052
3053 * server.c: Update.
3054
0e998d96
TT
30552018-07-03 Tom Tromey <tom@tromey.com>
3056
3057 * linux-low.c: Update.
3058
cc6bcb54
TT
30592018-07-03 Tom Tromey <tom@tromey.com>
3060
3061 * target.c: Update.
3062
e38504b3
TT
30632018-07-03 Tom Tromey <tom@tromey.com>
3064
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.
3070 * server.c: Update.
3071 * spu-low.c: Update.
3072 * target.c: Update.
3073 * thread-db.c: Update.
3074
e99b03dc
TT
30752018-07-03 Tom Tromey <tom@tromey.com>
3076
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.
3083 * server.c: Update.
3084 * spu-low.c: Update.
3085 * target.c: Update.
3086 * tracepoint.c: Update.
3087
f2907e49
TT
30882018-07-03 Tom Tromey <tom@tromey.com>
3089
3090 * linux-low.c: Update.
3091 * linux-ppc-low.c: Update.
3092 * linux-x86-low.c: Update.
3093 * proc-service.c: Update.
3094 * server.c: Update.
3095 * spu-low.c: Update.
3096 * thread-db.c: Update.
3097 * win32-low.c: Update.
3098
fd79271b
TT
30992018-07-03 Tom Tromey <tom@tromey.com>
3100
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.
3108
c0867626
SDJ
31092018-06-29 Joel Brobecker <brobecker@adacore.com>
3110
3111 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3112 parameter in call to 'amd64_create_target_description'.
3113
2512d7ef
JK
31142018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3115
3116 * x86-tdesc.h: Remove executable permission flag.
3117
d0ac1c44
SM
31182018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3119
3120 * configure.ac: Remove AC_PREREQ, add missing quoting.
3121 * configure: Re-generate.
3122 * config.in: Re-generate.
3123 * aclocal.m4: Re-generate.
3124
c4eb05ff
SM
31252018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3126
3127 * tracepoint.h (current_traceframe): Remove declaration.
3128
02895270
AH
31292018-06-18 Alan Hayward <alan.hayward@arm.com>
3130
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.
3136
e9902bfc
AH
31372018-06-18 Alan Hayward <alan.hayward@arm.com>
3138
3139 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3140
fefa175e
AH
31412018-06-11 Alan Hayward <alan.hayward@arm.com>
3142
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
3147 param.
3148 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3149 checks.
3150 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3151
b91ad3ff
AH
31522018-06-11 Alan Hayward <alan.hayward@arm.com>
3153
3154 * server.h (PBUFSIZ): Increase size
3155
f868386e
AH
31562018-06-11 Alan Hayward <alan.hayward@arm.com>
3157
3158 * regcache.c (regcache::raw_compare): New function.
3159 * regcache.h (regcache::raw_compare): New declaration.
3160
9c861883
AH
31612018-06-11 Alan Hayward <alan.hayward@arm.com>
3162
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.
3172
40591844
TT
31732018-06-09 Tom Tromey <tom@tromey.com>
3174
3175 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3176 declare queue.
3177 (event_queue): Use std::queue.
3178 (gdb_event_xfree): Remove.
3179 (initialize_event_loop, process_event, wait_for_event): Update.
3180
6341380d
SC
31812018-06-08 Stan Cox <scox@redhat.com>
3182
3183 * win32-low.c (win32_create_inferior): last_ptid and last_status
3184 moved to client_state.
3185
03349c93
PA
31862018-06-08 Pedro Alves <palves@redhat.com>
3187
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.
3198 (main): New.
3199
8dcc53b3
TT
32002018-06-08 Tom Tromey <tom@tromey.com>
3201
3202 * linux-low.c (linux_low_read_btrace): Update.
3203
c12a5089
SC
32042018-06-04 Stan Cox <scox@redhat.com>
3205
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.
3216
3217 Update all callers.
3218 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3219 linux-low.c, remote-utils.h, target.c: Use client_state.
3220
122394f1
AH
32212018-05-31 Alan Hayward <alan.hayward@arm.com>
3222
3223 * configure.srv: Add new c/h file.
3224
95228a0d
AH
32252018-05-31 Alan Hayward <alan.hayward@arm.com>
3226
3227 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3228 null VQ.
3229
d8dab6c3
MR
32302018-05-25 Maciej W. Rozycki <macro@mips.com>
3231
3232 * gdb.arch/mips-fpregset-core.exp: New test.
3233 * gdb.arch/mips-fpregset-core.c: New test source.
3234
81e25b7c
EK
32352018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3236
3237 PR server/23198
3238 * hostio.c (require_int): Do not report overflow for integers
3239 between 0xfffffff and 0x7fffffff.
3240
7e947ad3
MR
32412018-05-22 Maciej W. Rozycki <macro@mips.com>
3242
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
3246 functions.
3247 (the_low_target): Wire them.
3248
1d75a658
PFC
32492018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3250
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
3257 vscr_offset.
3258
d078308a
PFC
32592018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3260
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.
3264
7273b5fc
PFC
32652018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3266
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
3275 needed.
3276
2e077f5e
PFC
32772018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3278
3279 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3280 wordsize of the inferior. Call ppc_linux_target_wordsize.
3281
bd64614e
PFC
32822018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3283
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
3299 linux-ppc-tdesc.h.
3300 (ppc_arch_setup): Remove target description matching code. Fill a
3301 ppc_linux_features struct and call ppc_linux_match_description
3302 with it.
3303
75d74cca
MR
33042018-05-22 Maciej W. Rozycki <macro@mips.com>
3305
3306 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3307 width of the requested register exceeds the width of the
3308 `ptrace' data type.
3309 (mips_cannot_store_register): Likewise.
3310
e4439e43
MR
33112018-05-21 Maciej W. Rozycki <macro@mips.com>
3312
3313 * linux-mips-low.c (mips_fetch_register): New function. Update
3314 preceding comment.
3315 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3316 (the_low_target): Wire `mips_fetch_register'.
3317
55271bf9
JB
33182018-05-10 Joel Brobecker <brobecker@adacore.com>
3319
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
3325 LynxOS-178.
3326
1a34f210
TT
33272018-05-10 Tom Tromey <tom@tromey.com>
3328
3329 * configure: Rebuild.
3330
190852c8
JB
33312018-05-10 Joel Brobecker <brobecker@adacore.com>
3332
3333 PR server/23158:
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.
3355
7dbac825
JB
33562018-05-10 Joel Brobecker <brobecker@adacore.com>
3357
3358 PR server/23158:
3359 * win32-low.c (win32_create_inferior): Add call to my_wait
3360 setting last_status global.
3361
906994d9
JB
33622018-05-10 Joel Brobecker <brobecker@adacore.com>
3363
3364 PR server/23158:
3365 * win32-low.c (create_process): Only call gdb_tilde_expand if
3366 inferior_cwd is not NULL.
3367
8ee22052
AB
33682018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3369
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
3376 function.
3377
aff689d3
TT
33782018-05-07 Tom Tromey <tom@tromey.com>
3379
3380 * configure: Rebuild.
3381
85e26832
TT
33822018-05-04 Tom Tromey <tom@tromey.com>
3383
3384 * configure: Rebuild.
3385
a3b60e45
JK
33862018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3387 Pedro Alves <palves@redhat.com>
3388
3389 * linux-aarch64-low.c (aarch64_stopped_data_address):
3390 Likewise.
3391
632e107b
TT
33922018-04-27 Tom Tromey <tom@tromey.com>
3393
3394 * configure: Rebuild.
3395
458412c3
TT
33962018-04-23 Tom Tromey <tom@tromey.com>
3397
3398 * configure: Rebuild.
3399
f31c089e
SM
34002018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3401
3402 * Makefile.in (depcomp): Add "..".
3403 (all_deps_files): New and use it.
3404
b319b098
AH
34052018-04-18 Alan Hayward <alan.hayward@arm.com>
3406
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.
3418
3b74854b
AH
34192018-04-18 Alan Hayward <alan.hayward@arm.com>
3420
3421 * tdesc.c: Remove xml parameter.
3422
e98577a9
AH
34232018-04-18 Alan Hayward <alan.hayward@arm.com>
3424
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.
3431
d278f585
AH
34322018-04-18 Alan Hayward <alan.hayward@arm.com>
3433
3434 * tdesc.c (tdesc_architecture_name): Add new function.
3435 (tdesc_osabi_name): Likewise.
3436 (tdesc_get_features_xml): Use new functions.
3437
eee8a18d
AH
34382018-04-18 Alan Hayward <alan.hayward@arm.com>
3439
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.
3449
82ec9bc7
AH
34502018-04-18 Alan Hayward <alan.hayward@arm.com>
3451
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.
3458
ea3e7d71
AH
34592018-04-18 Alan Hayward <alan.hayward@arm.com>
3460
3461 * Makefile.in: Add common/tdesc.c
3462 * tdesc.c (init_target_desc): init all reg_defs from register
3463 vector.
3464 (tdesc_create_reg): Create tdesc_reg.
3465 * tdesc.h (tdesc_feature): Add register vector.
3466
17d08cd4
SM
34672018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3468
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
3472 changes.
3473 (tdesc_get_features_xml): Likewise.
3474 (tdesc_create_feature): Likewise.
3475
5cd3e386
AH
34762018-03-26 Alan Hayward <alan.hayward@arm.com>
3477
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.
3487
dff7492c
AH
34882018-03-23 Alan Hayward <alan.hayward@arm.com>
3489
3490 * regcache.c (find_register_by_number): Make static.
3491 (find_regno): Use find_register_by_number
3492 * regcache.h (struct reg): Remove declaration.
3493
d80e5242
AH
34942018-03-23 Alan Hayward <alan.hayward@arm.com>
3495
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.
3500
f69c5afb
AA
35012018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3502
3503 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3504
ce29f843
AA
35052018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3506
3507 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3508 S390_TDESC_GS.
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.
3512
c49bd90b
AA
35132018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3514
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
3518 to NULL.
3519
7edb9bd3
AA
35202018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3521
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.
3528
39be3c7e
SM
35292018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3530
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.
3541
3ae9ce5d
TT
35422018-03-14 Tom Tromey <tom@tromey.com>
3543
3544 PR cli/14977:
3545 * ax.c (ax_printf): Special case for NULL.
3546
e6a58aa8
SM
35472018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3548
3549 * linux-low.c (linux_qxfer_libraries_svr4): Use
3550 xml_escape_text_append.
3551
f6e8a41e
SM
35522018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3553
3554 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3555
b9671caf
SM
35562018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * server.c (handle_general_set): Remove unnecessary xstrdup.
3559
e80aaf61
SM
35602018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3561
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.
3566
b1223e78
MM
35672018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3568
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.
3575
81561546
SDJ
35762018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3577
3578 * server.c (captured_main): Change order of error message printed
3579 when the current working directory cannot be found.
3580
25e3c82c
SDJ
35812018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3582
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
3587 "program_name".
3588 (handle_v_run): Likewise.
3589 (captured_main): Likewise.
3590 (process_serial_event): Likewise.
3591
b4987c95
SDJ
35922018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3593
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".
3598
f46cd62a
AH
35992018-02-26 Alan Hayward <alan.hayward@arm.com>
3600
3601 * tdesc.c: Use common/tdesc.h.
3602 * tdesc.h: Likewise.
3603
a543c5ca
AH
36042018-02-20 Alan Hayward <alan.hayward@arm.com>
3605 Simon Marchi <simon.marchi@ericsson.com>
3606
3607 * Makefile.in: Switch order of make rules.
3608
b5884fa7
AH
36092018-02-19 Alan Hayward <alan.hayward@arm.com>
3610
3611 * Makefile.in: Add common directory in build.
3612 * configure.ac: Add common reference.
3613 * configure: Regenerate.
3614
de6242d3
MM
36152018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3616
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.
3624
9ee23a85
MM
36252018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3626
3627 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3628 (handle_btrace_disable): Change return type to void. Use exceptions
3629 to report errors.
3630 (handle_btrace_general_set): Catch exception and copy message to
3631 return message.
3632
8ce47547
TT
36332018-02-08 Tom Tromey <tom@tromey.com>
3634
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
3640 declare.
3641
45dd3607
TT
36422018-02-08 Tom Tromey <tom@tromey.com>
3643
3644 * mem-break.c (set_raw_breakpoint_at): Use
3645 gdb::unique_xmalloc_ptr.
3646
e671cd59
PA
36472018-01-30 Pedro Alves <palves@redhat.com>
3648
3649 PR gdb/13211
3650 * target.c (target_terminal::terminal_state): Rename to ...
3651 (target_terminal::m_terminal_state): ... this.
3652
a0aad537
JC
36532018-01-19 James Clarke <jrtc27@jrtc27.com>
3654
3655 * linux-low.c (handle_extended_wait): Surround call to
3656 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3657
4d9b86e1
SM
36582018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3659
3660 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3661 linux_ptrace_attach_fail_reason_string now returning an
3662 std::string.
3663 (linux_attach): Likewise.
3664 * thread-db.c (attach_thread): Likewise.
3665
f517c180
EA
36662018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3667
3668 PR gdb/21559
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.
3672
9a70f35c
YQ
36732018-01-16 Yao Qi <yao.qi@linaro.org>
3674
3675 PR gdb/18749
3676 * linux-low.c (fetch_register): Call supply_register instead of
3677 error.
3678
605fd3c6
YQ
36792018-01-08 Yao Qi <yao.qi@linaro.org>
3680 Simon Marchi <simon.marchi@ericsson.com>
3681
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
3687 GDB_SELF_TEST.
3688
2cc05030
SM
36892018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3690
3691 * server.c (parse_debug_format_options): Return std::string.
3692 (handle_monitor_command, captured_main): Adjust.
3693
e379cee6
PA
36942018-01-05 Pedro Alves <palves@redhat.com>
3695
3696 PR gdb/18653
3697 * server.c (captured_main): Pass quiet=false to
3698 save_original_signals_state.
3699
82e1e79a
JB
37002018-01-01 Joel Brobecker <brobecker@adacore.com>
3701
3702 * gdbreplay.c (gdbreplay_version): Update copyright year in
3703 version message.
3704 * server.c (gdbserver_version): Likewise.
3705
8e481c3b
TT
37062017-12-08 Tom Tromey <tom@tromey.com>
3707
3708 * ax.c (ax_printf): Update.
3709
a8806230
YQ
37102017-12-07 Yao Qi <yao.qi@linaro.org>
3711
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.
3720
d4a0e8b5
SM
37212017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3722
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.
3728
798a7429
SM
37292017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3730
3731 * regcache.c (registers_to_string): Remove unused variable.
3732
c0e15c9b
SM
37332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3734
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.
3739
f0045347
SM
37402017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3741
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
3746 for_each_thread.
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.
3756
9521758b
SM
37572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3758
3759 * inferiors.h (find_inferior): Remove.
3760 * inferiors.c (find_inferior): Remove.
3761
8f86d7aa
SM
37622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3763
3764 * linux-low.c (resume_status_pending_p): Update comment.
3765 (need_step_over_p): Update comment.
3766
e2b44075
SM
37672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3768
3769 * linux-low.c (proceed_one_lwp): Return void, change parameter
3770 type.
3771 (unsuspend_and_proceed_one_lwp): Likewise.
3772 (proceed_all_lwps): Use for_each_thread.
3773 (unstop_all_lwps): Likewise.
3774
c80825ff
SM
37752017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3776
3777 * linux-low.c (linux_resume_one_thread): Return void, take
3778 parameter directly.
3779 (linux_resume): Use for_each_thread.
3780
df3e4dbe
SM
37812017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3782
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
3787 type. Rename to...
3788 (suspend_and_send_sigstop): ... this.
3789 (stop_all_lwps): Use for_each_thread.
3790
5a6b0a41
SM
37912017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3792
3793 * linux-low.c (lwp_running): Return bool, remove unused
3794 argument.
3795 (linux_stabilize_threads): Use find_thread.
3796
39a64da5
SM
37972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3798
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.
3803
a1385b7b
SM
38042017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3805
3806 * linux-low.c (not_stopped_callback): Return bool, take filter
3807 argument directly.
3808 (linux_wait_for_event_filtered): Use find_thread.
3809 (linux_wait_1): Likewise.
3810
454296a2
SM
38112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3812
3813 * linux-low.c (same_lwp): Remove.
3814 (find_lwp_pid): Use find_thread.
3815
6b2a85da
SM
38162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3817
3818 * linux-low.c (delete_lwp_callback): Remove.
3819 (linux_mourn): Use for_each_thread.
3820
798a38e8
SM
38212017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3822
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.
3826
e4eb0dec
SM
38272017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3828
3829 * linux-low.c (struct counter): Remove.
3830 (second_thread_of_pid_p): Remove.
3831 (last_thread_of_process_p): Use find_thread.
3832
83e1b6c1
SM
38332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3834
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.
3841
8dc7b443
SM
38422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3843
3844 * inferiors.c (find_inferior_id): Remove.
3845 (find_thread_ptid): Move implemention from find_inferior_id to
3846 here.
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.
3856
da25033c
SM
38572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3858
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.
3862
c91bb56b
SM
38632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3864
3865 * lynx.low (lynx_delete_thread_callback): Remove.
3866 (lynx_mourn): Use for_each_thread.
3867
634a3254
SM
38682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3869
3870 * regcache.c (regcache_invalidate_one): Remove.
3871 (regcache_invalidate_pid): use for_each_thread.
3872
41272101
TT
38732017-11-26 Tom Tromey <tom@tromey.com>
3874
3875 * linux-low.c (linux_create_inferior): Update.
3876
f5291a6f
UW
38772017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3878
3879 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3880
6654d750
AH
38812017-11-24 Alan Hayward <alan.hayward@arm.com>
3882
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.
3887
38882017-11-24 Alan Hayward <alan.hayward@arm.com>
3889
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.
3894
49bdb7ee
AH
38952017-11-24 Alan Hayward <alan.hayward@arm.com>
3896
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.
3900
d6d7ce56
AH
39012017-11-24 Alan Hayward <alan.hayward@arm.com>
3902
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.
3911
506fe5f4
YQ
39122017-11-24 Yao Qi <yao.qi@linaro.org>
3913
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.
3919
29f9a567
YQ
39202017-11-22 Yao Qi <yao.qi@linaro.org>
3921
3922 * remote-utils.c (prepare_resume_reply): Use memcpy.
3923
578290ec
SM
39242017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3925
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.
3929
eca55aec
SM
39302017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3931
3932 * linux-low.c (need_step_over_p): Return bool, remove dummy
3933 argument.
3934 (linux_resume, proceed_all_lwps): Use find_thread.
3935
25c28b4d
SM
39362017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3937
3938 * linux-low.c (resume_status_pending_p): Return bool, remove
3939 flag_p argument.
3940 (linux_resume): Use find_thread.
3941
5fdda392
SM
39422017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3943
3944 * linux-low.c (struct thread_resume_array): Remove.
3945 (linux_set_resume_request): Return void, take arguments
3946 directly.
3947 (linux_resume): Use for_each_thread.
3948
fcb056a5
SM
39492017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3950
3951 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3952 return bool, remove data argument.
3953 (linux_stabilize_threads): Use find_thread.
3954
139720c5
SM
39552017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3956
3957 * linux-low.c (unsuspend_one_lwp): Remove.
3958 (unsuspend_all_lwps): Use for_each_thread, inline code from
3959 unsuspend_one_lwp.
3960
6d1e5673
SM
39612017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3962
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.
3967
bbf550d5
SM
39682017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3969
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.
3973
00192f77
SM
39742017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3975
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.
3980
2bee2b6c
SM
39812017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3982
3983 * win32-low.c (continue_one_thread): Return void, take argument
3984 directly.
3985 (child_continue): Use for_each_thread.
3986
0b360f19
SM
39872017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3988
3989 * win32-i386-low.c (update_debug_registers_callback): Rename
3990 to ...
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.
3993
f27866ba
SM
39942017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3995
3996 * inferiors.h (struct process_info): Add constructor, initialize
3997 fields..
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.
4004
e849ea89
PA
40052017-11-16 Pedro Alves <palves@redhat.com>
4006
4007 * remote-utils.c (remote_close): Block SIGIO signals instead of
4008 uninstalling the SIGIO handler.
4009
1d0aa65c
AH
40102017-11-16 Alan Hayward <alan.hayward@arm.com>
4011
4012 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4013
3491a34c
YQ
40142017-11-16 Yao Qi <yao.qi@linaro.org>
4015
4016 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4017 (tic6x_store_gregset): Likewise.
4018 (tic6x_usrregs_info): Move it up.
4019
a602f924
AH
40202017-11-15 Alan Hayward <alan.hayward@arm.com>
4021
4022 * Makefile.in: Update arch rules.
4023 * configure.srv: Explicitly mark arch/ files.
4024
5616b6c3
AS
40252017-11-13 Andreas Schwab <schwab@suse.de>
4026
4027 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4028 function.
4029 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4030
d1928160
PA
40312017-11-06 Pedro Alves <palves@redhat.com>
4032
4033 * config.in, configure: Regenerate.
4034
bac608e7
SM
40352017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4036
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.
4041
eaddb425
SM
40422017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4043
4044 * server.c (struct visit_actioned_threads_data): Remove.
4045 (visit_actioned_threads): Change prototype to take arguments
4046 directly.
4047 (resume): Use find_thread instead of find_inferior.
4048
99078d34
SM
40492017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4050
4051 * server.c (queue_stop_reply_callback): Change prototype, return
4052 void.
4053 (find_status_pending_thread_callback): Remove.
4054 (handle_status): Replace find_inferior with find_thread and
4055 for_each_thread.
4056
cc628f3d
AH
40572017-10-25 Alan Hayward <alan.hayward@arm.com>
4058
4059 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4060 with REGNO.
4061 (aarch64_store_gregset): Likewise.
4062 (aarch64_fill_fpregset): Likewise.
4063 (aarch64_store_fpregset): Likewise.
4064
4d3bb80e
SM
40652017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4066
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.
4071
7a7cdfa0
YQ
40722017-10-17 Yao Qi <yao.qi@linaro.org>
4073
4074 * Makefile.in: Remove one rule.
4075 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4076
e675d170
YQ
40772017-10-17 Yao Qi <yao.qi@linaro.org>
4078
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.
4081
7eb4e0f9
YQ
40822017-10-17 Yao Qi <yao.qi@linaro.org>
4083
4084 * configure.srv: Rename arm.o with arch/arm.o.
4085
60d6cfc9
YQ
40862017-10-17 Yao Qi <yao.qi@linaro.org>
4087
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.
4098
5bfda255
YQ
40992017-10-16 Yao Qi <yao.qi@linaro.org>
4100
4101 * configure: Regenerated.
4102
9c80ecd6
SM
41032017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4104
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
4116 using find_thread.
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):
4125 Remove.
4126 (clear_inferiors, get_thread_process): Update.
4127 * gdbthread.h: Include <list>.
4128 (struct thread_info) <entry>: Remove field.
4129 <id>: New 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
4133 functions.
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):
4152 Update.
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):
4166 Update.
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.
4171
9179355e
SM
41722017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4173
4174 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4175 * inferiors.h: Include <list>.
4176 (struct process_info) <entry>: Remove field.
4177 <pid>: New 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.
4207
c9cb8905
SM
42082017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4209
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.
4226
04ec7890
SM
42272017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4228
4229 * linux-low.h (struct linux_target_ops) <delete_process>: New
4230 field.
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.
4249
466eecee
SM
42502017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4251
4252 * linux-aarch64-low.c (the_low_target): Add thread delete
4253 callback.
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
4259 set.
4260 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4261 field.
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.
4272
b79f7801
YZ
42732017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4274
4275 * win32-low.c: Include "common-inferior.h".
4276
bc3b087d
SDJ
42772017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4278
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
4283 CreateProcess.
4284
d092c5a2
SDJ
42852017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4286
4287 * inferiors.c (current_inferior_cwd): New global variable.
4288 (get_inferior_cwd): New function.
4289 * inferiors.h (struct process_info) <cwd>: New field.
4290
7da0a886
SDJ
42912017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4292
4293 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4294 (OBS): Add gdb_tilde_expand.o.
4295
289a6840
SM
42962017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4297
4298 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4299 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4300
256642e8
PA
43012017-09-29 Pedro Alves <palves@redhat.com>
4302
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):
4306 Constify.
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.
4315
5b9ca4d4
PA
43162017-09-29 Pedro Alves <palves@redhat.com>
4317
4318 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4319 fails.
4320
94c207e0
PA
43212017-09-29 Pedro Alves <palves@redhat.com>
4322
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.
4330
75352e28
SDJ
43312017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4332
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.
4339
ad339634
AA
43402017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4341
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):
4349 New functions.
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
4352 appropriate tdesc.
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
4356 enum value.
4357 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4358 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4359
cc4d742f
SM
43602017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4361
4362 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4363
f6327dcb
KB
43642017-09-21 Kevin Buettner <kevinb@redhat.com>
4365
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
4370 "handle" attribute.
4371 * target.h (struct target_ops): Add new function pointer,
4372 thread_handle.
4373 (target_thread_handle): Define.
4374 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4375 field in lwp.
4376 (thread_db_thread_handle): New function.
4377
86299109
KB
43782017-09-21 Kevin Buettner <kevinb@redhat.com>
4379
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.
4383
f557a88a
PA
43842017-09-21 Pedro Alves <palves@redhat.com>
4385
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
4390 and adjust.
4391 * target.h (set_desired_thread): Remove 'use_general' parameter.
4392
223ffa71
TT
43932017-09-20 Tom Tromey <tom@tromey.com>
4394
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.
4401
04fd3ba9
SM
44022017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4403
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.
4407
5e187554
SM
44082017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4409
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.
4413
1526853e
SM
44142017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4415
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.
4420
c4dfafab
SDJ
44212017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4422
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.
4439
124aceb4
SM
44402017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4441
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):
4447 Likewise.
4448 * nto-low.c (nto_fetch_registers, nto_store_registers,
4449 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4450
96cde54f
SM
44512017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4452
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.
4457
e8ca139e
SM
44582017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4459
4460 * server.c (handle_detach): New function.
4461 (process_serial_event): Move code out, call handle_detach.
4462
f8a4e119
SM
44632017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4464
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.
4469
0eb0a407
SM
44702017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4471
4472 * linux-low.c (linux_set_resume_request): Remove unused
4473 variables.
4474
785922a5
SM
44752017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4476
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.
4491
a059f00c
SDJ
44922017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4493
4494 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 4495 with "!VEC_empty".
a059f00c 4496
cc397f3a
SDJ
44972017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4498
4499 * linux-low.c (handle_extended_wait): Use
4500 "allocate_target_description" instead of "XNEW".
4501 * linux-x86-low.c (initialize_low_arch): Likewise.
4502
22916b07
YQ
45032017-09-05 Yao Qi <yao.qi@linaro.org>
4504
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.
4517
38602d55
YQ
45182017-09-05 Yao Qi <yao.qi@linaro.org>
4519
4520 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4521 i386/amd64-XXX-linux from it.
4522
44b886ff
YQ
45232017-09-05 Yao Qi <yao.qi@linaro.org>
4524
4525 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4526 false.
4527 (ipa_amd64_linux_regobj): Remove.
4528 (ipa_x32_linux_regobj): Remove.
4529
b4570e4b
YQ
45302017-09-05 Yao Qi <yao.qi@linaro.org>
4531
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.
4554
d1f28ea2
YQ
45552017-09-05 Yao Qi <yao.qi@linaro.org>
4556
4557 * configure.srv (srv_i386_linux_xmlfiles): Remove
4558 i386/i386-XXX-linux.xml from it.
4559
25a93583
YQ
45602017-09-05 Yao Qi <yao.qi@linaro.org>
4561
4562 * configure.srv: Set srv_i386_linux_regobj empty if $development
4563 is false.
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.
4570
5f035c07
YQ
45712017-09-05 Yao Qi <yao.qi@linaro.org>
4572
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.
4583
0abe8a89
YQ
45842017-09-05 Yao Qi <yao.qi@linaro.org>
4585
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
4589 .xmltarget.
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.
4602
0a188386
YQ
46032017-09-05 Yao Qi <yao.qi@linaro.org>
4604
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 !=.
4610
f49ff000
YQ
46112017-09-05 Yao Qi <yao.qi@linaro.org>
4612
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.
4628
2b68ef2f
YQ
46292017-09-05 Yao Qi <yao.qi@linaro.org>
4630
4631 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4632 instead of 0.
4633
f7000548
YQ
46342017-09-05 Yao Qi <yao.qi@linaro.org>
4635
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
4648 VEC_iterate.
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.
4653
50a421ac
SM
46542017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4655
4656 * Makefile.in (.SECONDARY): Define target.
4657
23fdd69e
SM
46582017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4659
4660 * linux-low.c (linux_wait_1): Adjust.
4661 * server.c (queue_stop_reply_callback): Adjust.
4662
0a2dde4a
SDJ
46632017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4664
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.
4669
6afd337d
SM
46702017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4671
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.
4695
a160cc46
SM
46962017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4697
4698 * inferiors.c (set_inferior_target_data): Remove.
4699 * inferiors.h (set_inferior_target_data): Remove.
4700
6d580b63
YQ
47012017-08-18 Yao Qi <yao.qi@linaro.org>
4702
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.
4708
f5a29eb0
YQ
47092017-08-09 Yao Qi <yao.qi@linaro.org>
4710
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.
4722
57757c2f
YQ
47232017-08-09 Yao Qi <yao.qi@linaro.org>
4724
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.
4729
229d26fc
SM
47302017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4731
4732 * tracepoint.h (enum class fast_tpoint_collect_result): New
4733 enumeration.
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.
4747
2e1e43e1
YQ
47482017-07-10 Yao Qi <yao.qi@linaro.org>
4749
4750 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4751
adc764e7
YQ
47522017-06-29 Yao Qi <yao.qi@linaro.org>
4753
4754 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4755 Remove.
4756 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4757
a206891a
SM
47582017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4759
4760 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4761
9a6c7d9c
SDJ
47622017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4763
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.
4773
ae3e2ccf
SM
47742017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4775
4776 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4777 usage of "register" keyword.
4778
3e019bdc
SM
47792017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4780
4781 * configure: Re-generate.
4782
8465943a
SM
47832017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4784
4785 * configure: Re-generate.
4786
cf0dd6f0
SM
47872017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4788
4789 * Makefile.in (COMPILE.pre): Add "-x c++".
4790
9845682b
SDJ
47912017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4792
4793 * fork-child.c: Conditionally include <signal.h>.
4794
aefd8b33
SDJ
47952017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4796
4797 * server.c (handle_general_set): Handle new packet
4798 "QStartupWithShell".
4799 (handle_query): Add "QStartupWithShell" to the list of supported
4800 packets.
4801 (gdbserver_usage): Add help text explaining the
4802 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4803 options.
4804 (captured_main): Recognize and act upon the presence of the new
4805 CLI options.
4806
2090129c
SDJ
48072017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4808 Pedro Alves <palves@redhat.com>
4809
4810 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4811 * configure: Regenerate.
4812 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4813 "fork-inferior.o".
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"
4818 and "environ.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
4822 "fork_inferior".
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
4828 "fork_inferior".
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
4854 "create_inferior".
4855 (captured_main): Likewise. Initialize environment variable. Call
4856 "have_job_control".
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".
4875
043a4934
SDJ
48762017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4877
4878 * inferiors.c (switch_to_thread): New function.
4879
15652511
SDJ
48802017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4881
4882 * Makefile.in (SFILE): Add "common/job-control.c".
4883 (OBS): Add "job-control.o".
4884
21ea5acd
SDJ
48852017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4886
4887 * Makefile: Remove "@host_makefile_frag@".
4888
e13cb306
PA
48892017-05-05 Pedro Alves <palves@redhat.com>
4890
4891 * configure: Regenerate.
4892
c94fee56
SDJ
48932017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4894
4895 * configure: Regenerate.
4896
a0ff9e1a
SM
48972017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4898
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):
4903 Likewise.
4904 * linux-low.h (install_software_single_step_breakpoints):
4905 Likewise.
4906
be628ab8
SDJ
49072017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4908
4909 * remote-utils.c: Include "gdb_termios.h" instead of
4910 "terminal.h".
4911 * terminal.h: Delete file.
4912
7c5ded6a
SDJ
49132017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4914
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.
4921
436252de
SM
49222017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4923
4924 * server.c (handle_v_cont): Initialize thread_resume::thread
4925 with null_ptid.
4926
9bf2a700
PA
49272017-04-05 Pedro Alves <palves@redhat.com>
4928
4929 * configure: Regenerate.
4930
a121b7c1
PA
49312017-04-05 Pedro Alves <palves@redhat.com>
4932
4933 * gdbreplay.c (sync_error): Constify.
4934 * linux-x86-low.c (push_opcode): Constify.
4935
21c8a587
PA
49362017-04-05 Pedro Alves <palves@redhat.com>
4937
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.
4941
fb32b4f7
PA
49422017-04-05 Pedro Alves <palves@redhat.com>
4943
e79be6e5
SM
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.
fb32b4f7 4947
65dd1e59
SM
49482017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4949
4950 * Makefile.in (clean): Clear .deps.
4951
8fa5b777
SM
49522017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4953
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.
4963
a12e714b
MF
49642017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4965
4966 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4967 (xtensa_fill_gregset): Call collect_register_by_name for
4968 threadptr register.
4969 (xtensa_store_gregset): Call supply_register_by_name for
4970 threadptr register.
4971
1a09b50a
MF
49722017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4973
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.
4978
1a01e7c6
SM
49792017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4980
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.
4988
36bc18a8
SM
49892017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4990
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.
4997
a8ebe3d5
SM
49982017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4999
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.
5053
50cfacb7
SM
50542017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5055
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.
5061
c5a22423
SM
50622017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5063
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.
5080
6bda016b
SM
50812017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5082
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.
5108
21122961
SM
51092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5110
5111 * Makefile.in (%.o: ../target/%.c): New rule.
5112 (waitstatus.o: ../target/waitstatus.c): Remove.
5113
c362e621
SM
51142017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5115
5116 * Makefile.in
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.
5130 (i386.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.
5147 (reg-cf.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.
5187 (reg-sh.c): Remove.
5188 (reg-sparc64.c): Remove.
5189 (reg-spu.c): Remove.
5190 (amd64.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.
5202 (x32.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.
5211
1672e0d9
SDJ
52122017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5213
5214 * Makefile.in (SFILES): Add "common/environ.c".
5215 (OBJS): Add "common/environ.h".
5216
239b6d10
WT
52172017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5218
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.
5223
694b382c
AT
52242017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5225
5226 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5227 target_read_memory.
5228 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5229 (get_next_pcs_syscall_next_pc): Likewise.
5230
7dc53023
LM
52312016-12-23 Luis Machado <lgustavo@codesourcery.com>
5232
5233 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5234 * nto-x86-low.c: Likewise.
5235
ad02e4fe
SM
52362016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5237
5238 * Makefile.in: Include disable-implicit-rules.mk.
5239
dcb07cfa
PA
52402016-11-23 Pedro Alves <palves@redhat.com>
5241
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
5247 gettimeofday.
5248
8629c02c
SM
52492016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5250
5251 * Makefile.in: Fix whitespace formatting.
5252
b593ecca
SM
52532016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5254
5255 * Makefile.in (SFILES, OBS): Flatten list and order
5256 alphabetically.
5257
9986ba08
PA
52582016-11-23 Pedro Alves <palves@redhat.com>
5259
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):
5263 Use warning.
5264
4eefa7bc
PA
52652016-11-23 Pedro Alves <palves@redhat.com>
5266
5267 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5268 output.
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
5274 output.
5275
5443506e
SM
52762016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5277
5278 * Makefile.in (.c.o): Replace rule with ...
5279 (%.o: %.c): ... this one.
5280
3b165252
SM
52812016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5282
5283 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5284 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5285 make.
5286 * configure.ac: Remove checks for the make program.
5287 * configure: Re-generate.
5288
0bcda685
PA
52892016-10-28 Pedro Alves <palves@redhat.com>
5290
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.
5297
c3805894
YQ
52982016-10-27 Yao Qi <yao.qi@linaro.org>
5299
5300 * linux-low.c (linux_supports_range_stepping): Return true if
5301 can_software_single_step return true.
5302
89342618
YQ
53032016-10-27 Yao Qi <yao.qi@linaro.org>
5304
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.
5309
e3652c84
YQ
53102016-10-27 Yao Qi <yao.qi@linaro.org>
5311
5312 * linux-low.c (linux_wait_1): If single-step breakpoints are
5313 inserted, remove them.
5314
5a04c4cf
PA
53152016-10-26 Pedro Alves <palves@redhat.com>
5316
5317 * linux-low.c (handle_extended_wait): Link parent/child fork
5318 threads.
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):
5324 New functions.
5325 (handle_v_requests) <vCont>: Don't call require_running.
5326 * server.h (in_queued_stop_replies): New declaration.
5327
cb93dc7f
YQ
53282016-10-24 Yao Qi <yao.qi@linaro.org>
5329
5330 PR server/20733
5331 * linux-aarch64-low.c (append_insns): Cast the return value to
5332 'uint32_t *'.
5333
a1078bea
YQ
53342016-10-10 Yao Qi <yao.qi@linaro.org>
5335
5336 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5337
1fb77080
SDJ
53382016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5339
5340 * target.c (target_supports_multi_process): New function, moved
5341 from...
5342 * target.h (target_supports_multi_process): ... here. Remove
5343 macro.
5344
39b5a3b9
TT
53452016-10-05 Tom Tromey <tom@tromey.com>
5346
5347 PR remote/20655:
5348 * tracepoint.c (handle_tracepoint_bkpts): Check
5349 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5350
c1d0b70a
YQ
53512016-10-05 Yao Qi <yao.qi@linaro.org>
5352
5353 * configure.srv: Update the path of arm-*.xml files.
5354
0a69eedb
YQ
53552016-10-05 Terry Guo <terry.guo@arm.com>
5356 Yao Qi <yao.qi@linaro.org>
5357
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.
5364
17e16485
YQ
53652016-09-30 Yao Qi <yao.qi@linaro.org>
5366
5367 PR gdbserver/20627
5368 * target.c (target_stop_and_wait): Don't call
5369 target_continue_no_signal, use resume_stop instead.
5370
edeeb602
YQ
53712016-09-26 Yao Qi <yao.qi@linaro.org>
5372
5373 * linux-low.c (linux_wait_1): Call debug_exit.
5374
503b1c39
PA
53752016-09-23 Pedro Alves <palves@redhat.com>
5376
5377 * Makefile.in (SFILES): Add common/new-op.c.
5378 (OBS): Add common/new-op.o.
5379 (new-op.o): New rule.
5380
74172ecf
SM
53812016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5382
5383 * .gitinore: Ignore more files.
5384
fc6cda2e
YQ
53852016-09-21 Yao Qi <yao.qi@linaro.org>
5386
5387 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5388 23.
5389
bc1e6c81
SDJ
53902016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5391
5392 * server.c (start_inferior): Call target_mourn_inferior instead of
5393 mourn_inferior; pass ptid_t argument to it.
5394 (resume): Likewise.
5395 (handle_target_event): Likewise.
5396 * target.c (target_mourn_inferior): New function.
5397 * target.h (mourn_inferior): Delete macro.
5398
0e00e962
AA
53992016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5400
5401 * linux-low.c (lwp_is_stepping): New function.
5402
1d8cb77d
CL
54032016-09-06 Carl Love <cel@us.ibm.com>
5404
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.
5408
7313bced
CL
54092016-09-06 Carl Love <cel@us.ibm.com>
5410
5411 * server.c (start_inferior): Do not call
5412 function target_post_create_inferior () if the
5413 inferior process has already exited.
5414
cf6de44d
PA
54152016-09-05 Pedro Alves <palves@redhat.com>
5416
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.
5423
c1da6748
AT
54242016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5425
5426 PR gdb/19495
5427 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5428 call writing data to own_buf.
5429
f2b9e3df
SDJ
54302016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5431
5432 * target.c (mywait): Call target_wait instead of
5433 the_target->wait.
5434 (target_wait): New function.
5435
049a8570
SDJ
54362016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5437
5438 * server.c (start_inferior): New variable 'ptid'. Replace calls
5439 to the_target->resume by target_continue{,_no_signal}, depending
5440 on the case.
5441 * target.c (target_stop_and_wait): Call target_continue_no_signal
5442 instead of the_target->resume.
5443 (target_continue): New function.
5444
3aa5cfa0
AT
54452016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5446
5447 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5448
754653a7
AZ
54492016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5450
5451 PR server/20491
5452 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5453 ps_prochandle.
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.
5463
ed036b40
PA
54642016-08-19 Pedro Alves <palves@redhat.com>
5465
5466 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5467
c8ef42ee
PA
54682016-08-19 Pedro Alves <palves@redhat.com>
5469
5470 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5471 comment. Use memcpy instead of casting through unsigned long.
5472
9c235a72
PA
54732016-08-19 Pedro Alves <palves@redhat.com>
5474
5475 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5476 allocating around 0x80000000.
5477
201506da
PA
54782016-08-19 Pedro Alves <palves@redhat.com>
5479
5480 PR gdb/20415
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
5487 descriptions.
5488 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5489 descriptions.
5490 * configure: Regenerate.
5491
f348d89a
PA
54922016-08-09 Pedro Alves <palves@redhat.com>
5493
5494 PR gdb/18653
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.
5504
1baf5149
PA
55052016-08-05 Pedro Alves <palves@redhat.com>
5506
5507 * configure: Regenerate.
5508
fcd4a73d
YQ
55092016-08-04 Yao Qi <yao.qi@linaro.org>
5510
5511 * linux-low.c (regsets_fetch_inferior_registers): Check
5512 errno is ESRCH or not.
5513
979659d0
YQ
55142016-08-02 Yao Qi <yao.qi@linaro.org>
5515
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.
5521
6598661d
PA
55222016-07-26 Pedro Alves <palves@redhat.com>
5523
5524 PR server/20414
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.
5528
9cf12d57
PA
55292016-07-26 Pedro Alves <palves@redhat.com>
5530
5531 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5532 to 'ptrace'.
5533
305450ed
TT
55342016-07-21 Tom Tromey <tom@tromey.com>
5535
5536 * configure: Rebuild.
5537
2583da7c
YQ
55382016-07-21 Yao Qi <yao.qi@linaro.org>
5539
5540 * mem-break.c (find_gdb_breakpoint): Cast bp to
5541 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5542
21536b36
YQ
55432016-07-21 Yao Qi <yao.qi@linaro.org>
5544
5545 * server.c (handle_v_requests): Support s and S actions
5546 if target_supports_software_single_step return true.
5547
8901d193
YQ
55482016-07-21 Yao Qi <yao.qi@linaro.org>
5549
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,
5553 and unstop them.
5554 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5555 breakpoints or not.
5556 (proceed_one_lwp): If resume request is resume_step, install
5557 reinsert breakpoints and call maybe_hw_step.
5558
0e9a339e
YQ
55592016-07-21 Yao Qi <yao.qi@linaro.org>
5560
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.
5565
4281b351
YQ
55662016-07-21 Yao Qi <yao.qi@linaro.org>
5567
5568 * linux-low.c (linux_resume_one_thread): Call
5569 enqueue_pending_signal.
5570
984a2c04
YQ
55712016-07-21 Yao Qi <yao.qi@linaro.org>
5572
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
5578 thread.
5579
bec903c9
YQ
55802016-07-21 Yao Qi <yao.qi@linaro.org>
5581
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.
5586 Callers updated.
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.
5595
63c40ec7
YQ
55962016-07-21 Yao Qi <yao.qi@linaro.org>
5597
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
5602 updated.
5603 * mem-break.h (clone_all_breakpoints): Update declaration.
5604
9aa76cd0
YQ
56052016-07-21 Yao Qi <yao.qi@linaro.org>
5606
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 *'.
5635
811f8301
YQ
56362016-07-21 Yao Qi <yao.qi@linaro.org>
5637
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.
5643
b1c51e36
CLT
56442016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5645
5646 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5647 to buf parameter.
5648 (nios2_store_gregset): Likewise.
5649
ced2dffb
PA
56502016-07-01 Pedro Alves <palves@redhat.com>
5651 Antoine Tremblay <antoine.tremblay@ericsson.com>
5652
5653 * linux-low.c: Change interface to take the target lwp_info
5654 pointer directly and return void. Handle detaching from a zombie
5655 thread.
5656 (linux_detach_lwp_callback): New function.
5657 (linux_detach): Detach from the leader thread after detaching from
5658 the clone threads.
5659
2ac09a5b
YQ
56602016-06-28 Yao Qi <yao.qi@linaro.org>
5661
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.
5669
79e7fd4f
YQ
56702016-06-28 Yao Qi <yao.qi@linaro.org>
5671
5672 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5673 (the_low_target): Install arm_get_syscall_trapinfo.
5674
061fc021
YQ
56752016-06-28 Yao Qi <yao.qi@linaro.org>
5676
5677 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5678 function.
5679 (the_low_target): Install aarch64_get_syscall_trapinfo.
5680
4cc32bec
YQ
56812016-06-28 Yao Qi <yao.qi@linaro.org>
5682
5683 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5684 Callers updated.
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
5688 sysret.
5689
782c1122
AA
56902016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5691
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.
5706
2e7b624b
YQ
57072016-06-17 Yao Qi <yao.qi@linaro.org>
5708
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.
5717
8a81c5d7
YQ
57182016-06-17 Yao Qi <yao.qi@linaro.org>
5719
5720 * linux-low.c (handle_extended_wait): If the parent is doing
5721 step-over, remove the reinsert breakpoints from the forked child.
5722
f50bf8e5
YQ
57232016-06-17 Yao Qi <yao.qi@linaro.org>
5724
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.
5728
8376a3cb
YQ
57292016-06-17 Yao Qi <yao.qi@linaro.org>
5730
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.
5735
f79b145d
YQ
57362016-06-17 Yao Qi <yao.qi@linaro.org>
5737
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.
5745
0ae534d2
JT
57462016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5747
5748 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5749
fcdad592
YQ
57502016-05-17 Yao Qi <yao.qi@linaro.org>
5751
5752 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5753 instead of find_inferior.
5754
9e784964
YQ
57552016-05-05 Yao Qi <yao.qi@linaro.org>
5756
5757 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5758 Initialize res to zero.
5759
cf2ebb6e
YQ
57602016-05-05 Yao Qi <yao.qi@linaro.org>
5761
5762 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5763 to uint32_t.
5764
c1aebf87
UW
57652016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5766
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.
5770
35fd2deb 57712016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 5772 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
5773
5774 * tracepoint.c (write_inferior_int8): New function.
5775 (cmd_qtenable_disable): Write enable flag using
5776 write_inferior_int8.
5777
484b3c32
YQ
57782016-04-25 Yao Qi <yao.qi@linaro.org>
5779
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.
5783
85ba7d86
YQ
57842016-04-25 Yao Qi <yao.qi@linaro.org>
5785
5786 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5787 return instead of error.
5788
3539aa13
YQ
57892016-04-22 Yao Qi <yao.qi@linaro.org>
5790
5791 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5792 to 23.
5793
5b061e98
YQ
57942016-04-22 Yao Qi <yao.qi@linaro.org>
5795
5796 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5797 signal when stepping over breakpoint with software single
5798 step.
5799
3451269c
PA
58002016-04-21 Pedro Alves <palves@redhat.com>
5801
5802 * linux-s390-low.c (s390_collect_ptrace_register)
5803 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5804 add casts.
5805 (s390_check_regset): Use void * instead of gdb_byte *.
5806
a2358508
PA
58072016-04-20 Pedro Alves <palves@redhat.com>
5808
5809 * configure: Renegerate.
5810
6885166d
YQ
58112016-04-20 Yao Qi <yao.qi@linaro.org>
5812
5813 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5814 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5815 number 16.
5816 (arm_store_gregset): Likewise.
5817
2b863f51
WT
58182016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5819
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
5849 declarations.
5850
9b30624b
PA
58512016-04-18 Pedro Alves <palves@redhat.com>
5852
5853 * configure: Regenerate.
5854
45e3745e
AT
58552016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5856
5857 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5858 (aarch64_emit_sub): Likewise.
5859
2afc13ff
PA
58602016-04-12 Pedro Alves <palves@redhat.com>
5861
5862 * utils.c (prepare_to_throw_exception): Delete.
5863
6e774b13
SM
58642016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5865
5866 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5867
4dca19f8
MK
58682016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5869
5870 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5871
d0a9981f
MK
58722016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5873
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.
5877
252db07e
MK
58782016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5879
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
5885 char *.
5886
14e2b6d9
MK
58872016-03-31 Wei-cheng Wang <cole945@gmail.com>
5888 Marcin Kościelnicki <koriakin@0x04.net>
5889
5890 PR/17221
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.
5974
a2174ba4
MK
59752016-03-31 Wei-cheng Wang <cole945@gmail.com>
5976 Marcin Kościelnicki <koriakin@0x04.net>
5977
5978 PR/17221
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
5983 includes.
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.
6027 (GEN_B): New macro.
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
6042 tdescs.
6043 * linux-ppc-tdesc.h: New file.
6044
a13c4696
MK
60452016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6046
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.
6058
1cda1512
MK
60592016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6060
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.
6087
72fb5488
SM
60882016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6089
6090 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6091
28170b88
MK
60922016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6093
6094 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6095 packets.
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.
6101
f39e8743
MK
61022016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6103
6104 PR 18377
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.
6182
abd9baf9
MK
61832016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6184
6185 PR 18377
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.
6243
a4105d04
MK
62442016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6245
6246 * linux-s390-low.c (s390_supports_tracepoints): New function.
6247 (struct linux_target_ops): Fill supports_tracepoints hook.
6248
35ac8b3e
YQ
62492016-03-18 Yao Qi <yao.qi@linaro.org>
6250
6251 * linux-low.c (lwp_signal_can_be_delivered): New function.
6252 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6253
94610ec4
YQ
62542016-03-18 Yao Qi <yao.qi@linaro.org>
6255
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.
6260
80aea927
YQ
62612016-03-18 Yao Qi <yao.qi@linaro.org>
6262
6263 * linux-low.c (linux_low_filter_event): Remove redundant
6264 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6265
b04fd3be
MK
62662016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6267
6268 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6269 (struct linux_target_ops): Wire in the above.
6270
c40c8d4b
YQ
62712016-03-03 Yao Qi <yao.qi@linaro.org>
6272
6273 * linux-low.c: Update comments to start_step_over.
6274
0f8288ae
YQ
62752016-03-03 Yao Qi <yao.qi@linaro.org>
6276
6277 PR server/19736
6278 * linux-low.c (handle_extended_wait): Set child suspended
6279 if event_lwp->bp_reinsert isn't zero.
6280
fdbd04a8
YQ
62812016-03-02 Yao Qi <yao.qi@linaro.org>
6282
6283 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6284 enqueue_pending_signal.
6285
6896a8fa
MK
62862016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6287
6288 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6289 is actually loaded.
6290
ab503087
MK
62912016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6292
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.
6307
ae91f625
MK
63082016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6309
6310 PR gdb/13808
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.
6344 (gdb_probe): Ditto.
6345 * tracepoint.h (get_ipa_tdesc): New prototype.
6346 (ipa_tdesc): Remove.
6347
e7ad2f14
PA
63482016-02-24 Pedro Alves <palves@redhat.com>
6349
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.
6357 Update comments.
6358 (linux_wait_1): Update comments.
6359
657f9cde
WW
63602016-02-24 Wei-cheng Wang <cole945@gmail.com>
6361
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.
6366
b00b61e1
MK
63672016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6368
6369 * linux-s390-low.c (s390_supports_z_point_type): New function.
6370 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6371
553cb527
YQ
63722016-02-16 Yao Qi <yao.qi@linaro.org>
6373
6374 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6375 PC. Get pc from regcache_read_pc.
6376
a5652c21
YQ
63772016-02-12 Yao Qi <yao.qi@linaro.org>
6378
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.
6382
ed443b61
YQ
63832016-02-12 Yao Qi <yao.qi@linaro.org>
6384
6385 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6386 arm_linux_get_next_pcs_fixup.
6387
020ecd38
MK
63882016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6389
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.
6399
7cae9051
WW
64002016-02-11 Wei-cheng Wang <cole945@gmail.com>
6401 Marcin Kościelnicki <koriakin@0x04.net>
6402
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.
6414
9f6a71b4
YQ
64152016-02-10 Yao Qi <yao.qi@linaro.org>
6416
6417 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6418
1e94266c
SM
64192016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6420
6421 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6422 to AC_OUTPUT.
6423 * configure: Regenerate.
6424
8adce034
SM
64252016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6426
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>:
6432 Likewise.
6433 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6434
93813b37
WT
64352016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6436
6437 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6438 to srv_tgtobj.
6439 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6440 to srv_tgtobj.
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.
6451
8424cc97
SM
64522016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6453
6454 * server.c (skip_to_semicolon): Remove.
6455 (process_point_options): Use strchrnul instead of
6456 skip_to_semicolon.
6457
4d18591b
YQ
64582016-01-26 Yao Qi <yao.qi@linaro.org>
6459
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
6464 argument pc.
6465
d8020970
YQ
64662016-01-26 Yao Qi <yao.qi@linaro.org>
6467
6468 * linux-low.c (install_software_single_step_breakpoints): Call
6469 regcache_read_pc instead of get_pc.
6470
8b207339
YQ
64712016-01-26 Yao Qi <yao.qi@linaro.org>
6472
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
6477 instead.
6478 (disable_async_io): Don't ignore SIGIO. Block it instead.
6479 (initialize_async_io): Install SIGIO handler. Don't call
6480 unblock_async_io.
6481
18879fef
YQ
64822016-01-26 Yao Qi <yao.qi@linaro.org>
6483
6484 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6485 first character is '\003', call *the_target->request_interrupt.
6486
a0f8e08a
YQ
64872016-01-25 Yao Qi <yao.qi@linaro.org>
6488
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.
6493
cc5fd9ab
MK
64942016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6495
6496 * gdb.trace/pending.exp: Fix expected message on continue.
6497
99e8eb11
MK
64982016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6499
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)
6502 != sizeof (void *).
6503
a994041d
PA
65042016-01-21 Pedro Alves <palves@redhat.com>
6505
6506 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6507 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6508 * configure: Regenerate.
6509
f7a6a40d
YQ
65102016-01-21 Yao Qi <yao.qi@linaro.org>
6511
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.
6516
6f69e520
YQ
65172016-01-18 Yao Qi <yao.qi@linaro.org>
6518
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):
6522 Declare.
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
6526 sparc_get_pc.
6527 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6528 (the_low_target): Use linux_get_pc_64bit and
6529 linux_set_pc_64bit.
6530
276d4552
YQ
65312016-01-18 Yao Qi <yao.qi@linaro.org>
6532
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
6536 linux_set_pc_32bit.
6537 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6538 (the_low_target): Use linux_get_pc_32bit and
6539 linux_set_pc_32bit.
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
6543 linux_set_pc_32bit.
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
6547 linux_set_pc_32bit.
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
6553 linux_set_pc_32bit.
6554 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6555 (the_low_target): Use linux_get_pc_32bit and
6556 linux_set_pc_32bit.
6557 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6558 (the_low_target): Use linux_get_pc_32bit and
6559 linux_set_pc_32bit.
6560 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6561 (the_low_target): Use linux_get_pc_32bit and
6562 linux_set_pc_32bit.
6563 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6564 (the_low_target): Use linux_get_pc_32bit and
6565 linux_set_pc_32bit.
6566
eb0edac8
GB
65672016-01-18 Gary Benson <gbenson@redhat.com>
6568
6569 * configure.ac (AC_FUNC_FORK): New check.
6570 * config.in: Regenerate.
6571 * configure: Likewise.
6572
1b451dda
YQ
65732016-01-14 Yao Qi <yao.qi@linaro.org>
6574
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.
6579
82075af2
JS
65802016-01-12 Josh Stone <jistone@redhat.com>
6581 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6582
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.
6609
8f13a3ce
MF
66102016-01-12 Mike Frysinger <vapier@gentoo.org>
6611
6612 * acinclude.m4: Include new ../warning.m4 file.
6613 * configure: Regenerated.
6614 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6615
5b3da067
MF
66162016-01-12 Mike Frysinger <vapier@gentoo.org>
6617
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.
6628
bc504a31
PA
66292016-01-12 Pedro Alves <palves@redhat.com>
6630
6631 Remove use of the registered trademark symbol throughout.
6632
5a0dd67a
YQ
66332016-01-08 Yao Qi <yao.qi@linaro.org>
6634
6635 * remote-utils.c (getpkt): If c is '\003', call target hook
6636 request_interrupt.
6637
b2ca446f
YQ
66382016-01-06 Yao Qi <yao.qi@linaro.org>
6639
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.
6651
edd88788
JB
66522016-01-01 Joel Brobecker <brobecker@adacore.com>
6653
6654 * gdbreplay.c (gdbreplay_version): Change copyright year in
6655 version message.
6656 * server.c (gdbserver_version): Likewise.
6657
65da7f14
PP
66582015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6659
6660 * server.c (crc32_table): Delete.
6661 (crc32): Use libiberty's xcrc32 function.
6662
4abd5ed2
JB
66632015-12-22 Joel Brobecker <brobecker@adacore.com>
6664
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.
6668
0e50fe5c
JB
66692015-12-22 Joel Brobecker <brobecker@adacore.com>
6670
6671 * target.c (thread_search_callback): Add check that
6672 the thread_stopped target callback is not NULL before
6673 calling it.
6674
35adc03f
YQ
66752015-12-21 Yao Qi <yao.qi@linaro.org>
6676
6677 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6678 arm breakpoint.
6679
bd2b2909
AT
66802015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6681
6682 * server.c (handle_query): Call target_supports_software_single_step.
6683
7fe5e27e
AT
66842015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6685
6686 * linux-low.c (single_step): New function.
6687 (linux_resume_one_lwp_throw): Call single_step.
6688 (start_step_over): Likewise.
6689
d9311bfa
AT
66902015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6691
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,
6697 arm-linux.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>:
6722 Initialize.
6723 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6724 * server.h: Include gdb_vecs.h.
6725
68ce2059
AT
67262015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6727
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
6732 REG_UNAVAILABLE.
6733 (regcache_raw_read_unsigned): New function.
6734 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6735 register_status enum.
6736
fa5308bd
AT
67372015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6738
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
6750 get_next_pcs.
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.
6754
4a6ed09b
PA
67552015-12-17 Pedro Alves <palves@redhat.com>
6756
6757 * linux-low.c (linux_kill_one_lwp): Remove references to
6758 LinuxThreads.
6759 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6760 to 'kill'.
6761 (linux_init_signals): Delete.
6762 (initialize_low): Adjust.
6763 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6764
7544db95
PA
67652015-12-16 Pedro Alves <palves@redhat.com>
6766
6767 * configure.ac (compiler warning flags): When testing a
6768 -Wno-foo option, check whether -Wfoo works instead.
6769 * configure: Regenerate.
6770
8020350c
DB
67712015-12-11 Don Breazeal <donb@codesourcery.com>
6772
6773 * server.c (process_serial_event): Don't exit from gdbserver
6774 in remote mode if there are still active inferiors.
6775
db91f502
YQ
67762015-12-11 Yao Qi <yao.qi@linaro.org>
6777
6778 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6779 arm_breakpoint_at if the process is 32-bit.
6780
b37a6290
YQ
67812015-12-11 Yao Qi <yao.qi@linaro.org>
6782
6783 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6784 arm breakpoint.
6785
17b1509a
YQ
67862015-12-07 Yao Qi <yao.qi@linaro.org>
6787
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.
6822
6823 Revert:
6824 2015-08-04 Yao Qi <yao.qi@linaro.org>
6825
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.
6830
ece66d65
JS
68312015-12-04 Josh Stone <jistone@redhat.com>
6832
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.
6848
e58c48b4
AT
68492015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6850
6851 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6852
fbec8956
AT
68532015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6854
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.
6867
9b4c5f87
AT
68682015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6869
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
6883 handling.
6884 (remove_thread_event_breakpoints): Remove function.
6885 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6886
7d00775e
AT
68872015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6888
6889 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6890 New function.
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>:
6896 Initialize.
6897 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6898 New function.
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>:
6918 Initialize.
6919 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6920 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6921 Initialize.
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):
6925 New function.
6926 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6927 * target.h (struct target_ops): <supports_software_single_step>:
6928 New field.
6929 (target_supports_software_single_step): New macro.
6930
2d97cd35
AT
69312015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6932
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.
6936
769ef81f
AT
69372015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6938
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>:
6943 Initialize.
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.
6951
1bebeeca
PA
69522015-11-30 Pedro Alves <palves@redhat.com>
6953
6954 * linux-low.c (linux_resume): Wake up the event loop before
6955 returning.
6956
a67a9fae
PA
69572015-11-30 Pedro Alves <palves@redhat.com>
6958
6959 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6960 check.
6961 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6962 to -1.
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.
6969
f2faf941
PA
69702015-11-30 Pedro Alves <palves@redhat.com>
6971
6972 PR 14618
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.
6985
a681f9c9
PA
69862015-11-30 Pedro Alves <palves@redhat.com>
6987
6988 * linux-low.c (thread_still_has_status_pending_p): Don't check
6989 vCont;t here.
6990 (lwp_resumed): New function.
6991 (status_pending_p_callback): Return early if the LWP is not
6992 supposed to be resumed.
6993
65706a29
PA
69942015-11-30 Pedro Alves <palves@redhat.com>
6995
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.
7014
56cf4bed
PA
70152015-11-30 Pedro Alves <palves@redhat.com>
7016
7017 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7018 the thread's last_resume_kind was resume_stop.
7019
500c1d85
PA
70202015-11-30 Pedro Alves <palves@redhat.com>
7021
7022 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7023 before returning.
7024
de979965
PA
70252015-11-30 Pedro Alves <palves@redhat.com>
7026
7027 * server.c (handle_v_requests): Handle vCtrlC.
7028
34c65914
PA
70292015-11-30 Pedro Alves <palves@redhat.com>
7030
7031 * gdbthread.h (find_any_thread_of_pid): Declare.
7032 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7033 functions.
7034 * server.c (handle_query): If current_thread is NULL, look for
7035 another thread of the selected process.
7036
79efa585 70372015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 7038 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
7039
7040 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7041 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7042 name in reply.
7043 * target.h (struct target_ops) <thread_name>: New field.
7044 (target_thread_name): New macro.
7045
80d82c19
JB
70462015-11-23 Joel Brobecker <brobecker@adacore.com>
7047
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.
7055
64da5dd5
JB
70562015-11-23 Joel Brobecker <brobecker@adacore.com>
7057
7058 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7059 and Elf64_auxv_t if the target is Android.
7060
37ce4055
DE
70612015-11-22 Doug Evans <xdje42@gmail.com>
7062
7063 * target.h: #include <sys/types.h>.
7064
06e03fff
PA
70652015-11-19 Pedro Alves <palves@redhat.com>
7066
7067 * linux-low.c (linux_process_qsupported): Change prototype.
7068 Adjust.
7069 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7070 Change prototype.
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
7075 features.
7076 * target.h (struct target_ops) <process_qsupported>: Change
7077 prototype.
7078 (target_process_qsupported): Adjust.
7079
9a084706
PA
70802015-11-19 Pedro Alves <palves@redhat.com>
7081
7082 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7083 mode.
7084 * configure: Regenerate.
7085
dad44a1f
PA
70862015-11-19 Pedro Alves <palves@redhat.com>
7087
7088 * configure: Regenerate.
7089
231c0592
YQ
70902015-11-19 Yao Qi <yao.qi@linaro.org>
7091
7092 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7093 type to uint32_t.
7094
6c1c9a8b
YQ
70952015-11-19 Yao Qi <yao.qi@linaro.org>
7096
7097 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7098 (struct aarch64_operand): Move enum out.
7099
9caa3311
YQ
71002015-11-19 Yao Qi <yao.qi@linaro.org>
7101
7102 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7103 struct user_fpsimd_state *.
7104 (aarch64_store_fpregset): Likewise.
7105
6a69a054
YQ
71062015-11-19 Yao Qi <yao.qi@linaro.org>
7107
7108 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7109 struct user_pt_regs *.
7110 (aarch64_store_gregset): Likewise.
7111
1798301e
PA
71122015-11-18 Pedro Alves <palves@redhat.com>
7113
7114 * Makefile.in (all_object_files): Add $IPA_OBJS.
7115
ce7715e2
PA
71162015-11-17 Pedro Alves <palves@redhat.com>
7117
7118 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7119 GDB_SIGNAL_0 and gdb_signal_to_string.
7120
c0879059
PA
71212015-11-17 Pedro Alves <palves@redhat.com>
7122
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.
7128
1996e237
SM
71292015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7130
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.
7135
cbec665b
SM
71362015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7137
7138 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7139 priv.
7140
eb3e3c67
SM
71412015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7142
7143 * linux-mips-low.c (mips_linux_new_thread): Change type of
7144 watch_type to enum target_hw_bp_type.
7145
171de4b8
SM
71462015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7147
7148 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7149 Change return type to arm_hwbp_type.
7150
04248ead
SM
71512015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7152
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.
7157
04b3479c
SM
71582015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7159
7160 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7161
2bc84e8a
SM
71622015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7163
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.
7171
e6c5bb05
SM
71722015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7173
7174 * linux-ppc-low.c (ppc_usrregs_info): Remove
7175 forward-declaration.
7176 (ppc_arch_setup): Move lower in file.
7177
7ea45d72
SM
71782015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7179
7180 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7181 (ps_pdwrite): Likewise.
7182
69291610
HW
71832015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7184
7185 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7186 to after assert checks.
7187
b42945fd
SM
71882015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7189
7190 * proc-service.c (ps_pdread): Add/adjust casts.
7191 (ps_pdwrite): Add/adjust casts.
7192
d6f85c84
SM
71932015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * server.c (handle_search_memory_1): Cast return value of
7196 memmem.
7197
f98cd059
SM
71982015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7199
7200 * server.c (write_qxfer_response): Change type of data to
7201 gdb_byte *.
7202
d2412fa5
PA
72032015-10-29 Pedro Alves <palves@redhat.com>
7204
7205 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7206
c17414a2
PA
72072015-10-29 Pedro Alves <palves@redhat.com>
7208
7209 * tracepoint.c (clear_installed_tracepoints): Add casts.
7210
e053fbc4
PA
72112015-10-29 Pedro Alves <palves@redhat.com>
7212
7213 * server.c (handle_v_cont, process_serial_event): Add enum
7214 gdb_signal casts to signal parsing code.
7215
add67df8
PA
72162015-10-29 Pedro Alves <palves@redhat.com>
7217
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.
7233
50bc912a
PA
72342015-10-29 Pedro Alves <palves@redhat.com>
7235
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.
7251
682b2546
DE
72522015-10-26 Doug Evans <dje@google.com>
7253
7254 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7255
963843d4
DE
72562015-10-26 Doug Evans <dje@google.com>
7257
7258 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7259
d41401ac
DE
72602015-10-26 Doug Evans <dje@google.com>
7261
7262 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7263 for debug_printf.
7264 (attach_thread, find_new_threads_callback): Ditto.
7265
3db28855
AT
72662015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7267
7268 * mem-break.h (set_breakpoint_data): Remove.
7269
fb78e89c
AT
72702015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7271
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.
7281
2e6ee069
AT
72822015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7283
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.
7288
1652a986
AT
72892015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7290
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.
7294
abeead09
AT
72952015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7296
7297 * linux-arm-low.c (arm_supports_z_point_type): Add software
7298 breakpoint support.
7299
b0b4b501
AT
73002015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7301
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.
7305
8689682c
AT
73062015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7307
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.
7314
27165294
AT
73152015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7316
7317 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7318 removal.
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.
7347
dd373349
AT
73482015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7349
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>:
7380 New field.
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.
7438
4cd98a19
AT
74392015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7440
7441 * linux-cris-low.c (cris_get_pc): Remove void arg.
7442
774ee6d2
AR
74432015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7444
7445 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7446 variable name.
7447
833dcd29
AR
74482015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7449
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.
7454
8d689ee5
YQ
74552015-10-15 Yao Qi <yao.qi@linaro.org>
7456
7457 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7458 if it is 3.
7459 (aarch64_remove_point): Likewise.
7460 * regcache.c (regcache_register_size): New function.
7461
1c2e1515
YQ
74622015-10-12 Yao Qi <yao.qi@linaro.org>
7463
7464 * linux-aarch64-low.c: Update all callers as emit_load_store
7465 is renamed to aarch64_emit_load_store.
7466
e1c587c3
YQ
74672015-10-12 Yao Qi <yao.qi@linaro.org>
7468
7469 * linux-aarch64-low.c: Update all callers of function renaming
7470 from emit_insn to aarch64_emit_insn.
7471
b6542f81
YQ
74722015-10-12 Yao Qi <yao.qi@linaro.org>
7473
7474 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7475 arch/aarch64-insn.h.
7476 (struct aarch64_memory_operand): Likewise.
7477 (ENCODE): 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.
7483
246994ce
YQ
74842015-10-12 Yao Qi <yao.qi@linaro.org>
7485
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.
7491
0badd99f
YQ
74922015-10-12 Yao Qi <yao.qi@linaro.org>
7493
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.
7504 (visitor): New.
7505 (aarch64_relocate_instruction): Use visitor.
7506
dfaffe9d
YQ
75072015-10-12 Yao Qi <yao.qi@linaro.org>
7508
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.
7513
70b439f0
YQ
75142015-10-12 Yao Qi <yao.qi@linaro.org>
7515
7516 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7517 argument insn. Remove local variable insn. Don't call
7518 target_read_uint32.
7519 (aarch64_install_fast_tracepoint_jump_pad): Call
7520 target_read_uint32.
7521
7781c06f
YQ
75222015-09-30 Yao Qi <yao.qi@linaro.org>
7523
7524 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7525 (emit_load_store_pair): Likewise.
7526
9a3c8263
SM
75272015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7528
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.
7544
224c3ddb
SM
75452015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7546
7547 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7548 assignment.
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.
7592
afbe19f8
PL
75932015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7594
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>,
7598 <NOP>: New.
7599 (enum aarch64_condition_codes): New enum.
7600 (w0): New static global.
7601 (fp): Likewise.
7602 (lr): Likewise.
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.
7679
bb903df0
PL
76802015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7681
7682 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7683 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7684 aarch64-ipa.o.
7685 * linux-aarch64-ipa.c: New file.
7686 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7687 and endian.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.
7695 (x1): Likewise.
7696 (x2): Likewise.
7697 (x3): Likewise.
7698 (x4): Likewise.
7699 (w2): Likewise.
7700 (ip0): Likewise.
7701 (sp): Likewise.
7702 (xzr): Likewise.
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.
7746
787749ea
PL
77472015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7748
7749 * Makefile.in (aarch64-insn.o): New rule.
7750 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7751
9812b2e6
YQ
77522015-09-21 Yao Qi <yao.qi@linaro.org>
7753
7754 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7755
18fe412b
YQ
77562015-09-21 Yao Qi <yao.qi@linaro.org>
7757
7758 * tracepoint.c (max_jump_pad_size): Remove.
7759
a0cc84cd
YQ
77602015-09-18 Yao Qi <yao.qi@linaro.org>
7761
7762 * linux-aarch64-low.c: Don't include sys/uio.h.
7763 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7764
d78908cf
WW
77652015-09-16 Wei-cheng Wang <cole945@gmail.com>
7766
7767 * tracepoint.c (eval_result_type): Change prototype.
7768 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7769
d57e0d50
PA
77702015-09-15 Pedro Alves <palves@redhat.com>
7771
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.
7775
5a676acc
PA
77762015-09-15 Pedro Alves <palves@redhat.com>
7777
7778 PR remote/18965
7779 * remote-utils.c (prepare_resume_reply): Merge
7780 TARGET_WAITKIND_VFORK_DONE switch case with the
7781 TARGET_WAITKIND_FORKED case.
7782
7c5d0fad
YQ
77832015-09-15 Yao Qi <yao.qi@linaro.org>
7784
7785 * server.c (handle_query): Check string comparison using
7786 "else if" instead of "if".
7787
750ce8d1
YQ
77882015-09-15 Yao Qi <yao.qi@linaro.org>
7789
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.
7796
70b90b91
YQ
77972015-09-15 Yao Qi <yao.qi@linaro.org>
7798
7799 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7800 it to ...
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.
7816
ade90bde
YQ
78172015-09-15 Yao Qi <yao.qi@linaro.org>
7818
7819 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7820 function.
7821 (struct linux_target_ops the_low_target): Install
7822 aarch64_linux_siginfo_fixup.
7823
94585166
DB
78242015-09-11 Don Breazeal <donb@codesourcery.com>
7825 Luis Machado <lgustavo@codesourcery.com>
7826
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
7845 new member.
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
7852 member.
7853 (target_supports_exec_events): New macro.
7854 * win32-low.c (win32_target_ops) <supports_exec_events>:
7855 Initialize new member.
7856
0568462b
MM
78572015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7858
7859 * linux-low.c (linux_low_enable_btrace): Remove.
7860 (linux_target_ops): Replace linux_low_enable_btrace with
7861 linux_enable_btrace.
7862
39edd165
YQ
78632015-09-03 Yao Qi <yao.qi@linaro.org>
7864
7865 * linux-aarch64-low.c (aarch64_insert_point): Call
7866 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7867 returns true.
7868
1db33b5a
UW
78692015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7870
7871 * linux-low.c (check_stopped_by_breakpoint): Use
7872 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7873
ab290430
PA
78742015-08-27 Pedro Alves <palves@redhat.com>
7875
7876 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7877
8d749320
SM
78782015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7879
6711b7f8
SM
7880 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7881 the XNEW-family equivalent.
8d749320
SM
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.
7933
ed8b7b42
YQ
79342015-08-25 Yao Qi <yao.qi@linaro.org>
7935
7936 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7937
db3cb7cb
YQ
79382015-08-25 Yao Qi <yao.qi@linaro.org>
7939
7940 * Makefile.in (aarch64-linux.o): New rule.
7941 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7942 srv_tgtobj.
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.
7946
f6011a1c
YQ
79472015-08-25 Yao Qi <yao.qi@linaro.org>
7948
7949 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7950 lwp_arch_private_info and ptid_of_lwp.
7951
88e2cf7e
YQ
79522015-08-25 Yao Qi <yao.qi@linaro.org>
7953
7954 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7955 Find proc_info by find_process_pid. All callers updated.
7956
5e35436e
YQ
79572015-08-25 Yao Qi <yao.qi@linaro.org>
7958
7959 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7960 Remove.
7961 (debug_reg_change_callback): Remove.
7962 (aarch64_notify_debug_reg_change): Remove.
7963
4a8a7965
YQ
79642015-08-25 Yao Qi <yao.qi@linaro.org>
7965
7966 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7967 Call current_lwp_ptid.
7968
32a271ee
YQ
79692015-08-25 Yao Qi <yao.qi@linaro.org>
7970
7971 * linux-aarch64-low.c (debug_reg_change_callback): Use
7972 debug_printf.
7973
0d51c8d7
YQ
79742015-08-25 Yao Qi <yao.qi@linaro.org>
7975
7976 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7977
31a43dd5
YQ
79782015-08-25 Yao Qi <yao.qi@linaro.org>
7979
7980 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7981
8ee52567
YQ
79822015-08-25 Yao Qi <yao.qi@linaro.org>
7983
7984 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7985 the code.
7986
ff3f0f45
YQ
79872015-08-25 Yao Qi <yao.qi@linaro.org>
7988
7989 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7990 Remove.
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.
7996
3d40fbb5
PA
79972015-08-24 Pedro Alves <palves@redhat.com>
7998
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.
8003
438e1e42
PA
80042015-08-24 Pedro Alves <palves@redhat.com>
8005
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.
8010
a8c6d4fc
PA
80112015-08-24 Pedro Alves <palves@redhat.com>
8012
8013 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8014 ptid_get_lwp.
8015
99b0bb12
PA
80162015-08-21 Pedro Alves <palves@redhat.com>
8017
8018 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8019 instead of literal 1.
8020
f8904751
PA
80212015-08-21 Pedro Alves <palves@redhat.com>
8022
8023 * tdesc.c (default_description): Explicitly zero-initialize.
8024
465a859e
PA
80252015-08-21 Pedro Alves <palves@redhat.com>
8026
8027 PR gdb/18749
8028 * inferiors.c (remove_thread): Discard any pending stop reply for
8029 this thread.
8030 * server.c (remove_all_on_match_pid): Rename to ...
8031 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8032 instead of a pid.
8033 (discard_queued_stop_replies): Change parameter to a ptid. Now
8034 extern.
8035 (handle_v_kill, kill_inferior_callback, captured_main)
8036 (process_serial_event): Adjust.
8037 * server.h (discard_queued_stop_replies): Declare.
8038
f0db101d
PA
80392015-08-21 Pedro Alves <palves@redhat.com>
8040
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
8046 current thread.
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
8058 continue thread.
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.
8069
40045d91
MF
80702015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8071
8072 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8073 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8074 #includes.
8075 (ps_get_thread_area): New function.
8076
45face3b
GB
80772015-08-19 Gary Benson <gbenson@redhat.com>
8078
8079 * hostio.c (handle_pread): Do not attempt to read more data
8080 than hostio_reply_with_data can fit in a packet.
8081
16d5f642
JB
80822015-08-18 Joel Brobecker <brobecker@adacore.com>
8083
8084 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8085
a738da3a
MF
80862015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8087
8088 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8089
33ebda9d
PA
80902015-08-06 Pedro Alves <palves@redhat.com>
8091
8092 * tracepoint.c (expr_eval_result): Now an int.
8093
a44892be
PA
80942015-08-06 Pedro Alves <palves@redhat.com>
8095
8096 * gdbthread.h (struct regcache): Forward declare.
8097 (struct thread_info) <regcache_data>: Now a struct regcache
8098 pointer.
8099 * inferiors.c (inferior_regcache_data)
8100 (set_inferior_regcache_data): Now work with struct regcache
8101 pointers.
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
8107 casts.
8108
608a1e46
PA
81092015-08-06 Pedro Alves <palves@redhat.com>
8110
8111 * server.c (captured_main): On error, print the exception message
8112 to stderr, and if run_once is set, throw a quit.
8113
f0ce0d3a
PA
81142015-08-06 Pedro Alves <palves@redhat.com>
8115
8116 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8117 the current thread.
8118
bf47e248
PA
81192015-08-06 Pedro Alves <palves@redhat.com>
8120
8121 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8122 reading beyond the passed in buffer length.
8123
b6b9ffcc
PL
81242015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8125
8126 * tracepoint.c (symbol_list) <required>: Remove.
8127
863d01bd
PA
81282015-08-06 Pedro Alves <palves@redhat.com>
8129
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
8136 throughout.
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
8150 it stepping.
8151
00db26fa
PA
81522015-08-06 Pedro Alves <palves@redhat.com>
8153
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
8160 as well.
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
8164 comment.
8165
ad071a30
PA
81662015-08-06 Pedro Alves <palves@redhat.com>
8167
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.
8171
524b57e6
YQ
81722015-08-04 Yao Qi <yao.qi@linaro.org>
8173
8174 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8175 if current_thread is 32 bit.
8176
6085d6f6
YQ
81772015-08-04 Yao Qi <yao.qi@linaro.org>
8178
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.
8183
8a7e4587
YQ
81842015-08-04 Yao Qi <yao.qi@linaro.org>
8185
8186 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8187 both aarch64 and aarch32.
8188 (aarch64_set_pc): Likewise.
8189
3b53ae99
YQ
81902015-08-04 Yao Qi <yao.qi@linaro.org>
8191
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.
8202
bd9e6534
YQ
82032015-08-04 Yao Qi <yao.qi@linaro.org>
8204
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.
8220
ded48a5e
YQ
82212015-08-04 Yao Qi <yao.qi@linaro.org>
8222
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.
8226
96e9210f
PA
82272015-08-04 Pedro Alves <palves@redhat.com>
8228
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
8231 CHK calls.
8232 (disable_thread_event_reporting): Cast result of dlsym to
8233 destination function pointer type.
8234 (thread_db_mourn): Use td_ta_delete_ftype.
8235
af60a1ef
SL
82362015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8237
8238 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8239 arch variant.
8240 (CDX_BREAKPOINT): Define for R2.
8241 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8242 (the_low_target): Add comments.
8243
e8b41681
YQ
82442015-07-30 Yao Qi <yao.qi@linaro.org>
8245
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.
8249
89abb039
YQ
82502015-07-30 Yao Qi <yao.qi@linaro.org>
8251
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.
8257
deca266c
YQ
82582015-07-30 Yao Qi <yao.qi@linaro.org>
8259
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.
8263
aa58a496
SM
82642015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8265
8266 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8267 ptrace's 4th parameter.
8268
50904b25
YQ
82692015-07-27 Yao Qi <yao.qi@linaro.org>
8270
8271 * configure.srv (case aarch64*-*-linux*): Don't set
8272 srv_linux_usrregs.
8273
5826e159
PA
82742015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8275
8276 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8277 sys/ptrace.h.
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.
8290
54019719
PA
82912015-07-24 Pedro Alves <palves@redhat.com>
8292
8293 * config.in: Regenerate.
8294 * configure: Regenerate.
8295
eb7aa561
PA
82962015-07-24 Pedro Alves <palves@redhat.com>
8297
8298 * acinclude.m4: Include ../ptrace.m4.
8299 * configure.ac: Call GDB_AC_PTRACE.
8300 * config.in, configure: Regenerate.
8301
55d7b841
YQ
83022015-07-24 Yao Qi <yao.qi@linaro.org>
8303
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.
8309
c06cbd92
YQ
83102015-07-24 Yao Qi <yao.qi@linaro.org>
8311
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.
8328
5ae3ebba
YQ
83292015-07-24 Yao Qi <yao.qi@linaro.org>
8330
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.
8335
eb97750b
YQ
83362015-07-24 Yao Qi <yao.qi@linaro.org>
8337
8338 * server.c (start_inferior): Code refactor.
8339
51aee833
YQ
83402015-07-24 Yao Qi <yao.qi@linaro.org>
8341
8342 * server.c (process_serial_event): Set general_thread.
8343
af1b22f3
YQ
83442015-07-21 Yao Qi <yao.qi@linaro.org>
8345
8346 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8347 aarch64_linux_get_debug_reg_capacity.
8348
554717a3
YQ
83492015-07-17 Yao Qi <yao.qi@linaro.org>
8350
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.
8378
c67ca4de
YQ
83792015-07-17 Yao Qi <yao.qi@linaro.org>
8380
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.
8388
25abf979
YQ
83892015-07-17 Yao Qi <yao.qi@linaro.org>
8390
8391 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8392 debug_printf.
8393 (aarch64_handle_unaligned_watchpoint): Likewise.
8394
db1ff28b
JK
83952015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8396
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
8401
700ca40f
JK
84022015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8403 Jan Kratochvil <jan.kratochvil@redhat.com>
8404
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.
8409 (find_phdr): 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.
8417
9904185c
JK
84182015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8419 Jan Kratochvil <jan.kratochvil@redhat.com>
8420
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.
8424
6e5b4429
JK
84252015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8426
8427 * Makefile.in (OBS): Add gdb_regex.o.
8428 (gdb_regex.o): New.
8429 * config.in: Rebuilt.
8430 * configure: Rebuilt.
8431
ddc98fbf
JK
84322015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8433 Jan Kratochvil <jan.kratochvil@redhat.com>
8434
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.
8439
e57bb7a0
PL
84402015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8441
8442 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8443 function, return 1.
8444 (the_low_target): Install it.
8445
586b02a9
PA
84462015-07-14 Pedro Alves <palves@redhat.com>
8447
8448 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8449 Instead, ignore ECHILD, and throw an error for other errnos.
8450
58c1b36c
PA
84512015-07-10 Pedro Alves <palves@redhat.com>
8452
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.
8456
421530db
PL
84572015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8458
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.
8463
c2d65f38
YQ
84642015-07-09 Yao Qi <yao.qi@linaro.org>
8465
8466 * linux-aarch64-low.c (aarch64_regmap): Remove.
8467 (aarch64_usrregs_info): Remove.
8468 (regs_info): Set field usrregs to NULL.
8469
b20a6524
MM
84702015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8471
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".
8479
96c97461
PL
84802015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8481
8482 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8483 Z_PACKET_SW_BP.
8484
37d66942
PL
84852015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8486
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
8490 memcmp.
8491
dc06243f
GB
84922015-06-24 Gary Benson <gbenson@redhat.com>
8493
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.
8501
124e13d9
SM
85022015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8503
8504 * server.c (write_qxfer_response): Update call to
8505 remote_escape_output.
8506
909c2cda
JK
85072015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8508 Jan Kratochvil <jan.kratochvil@redhat.com>
8509
8510 Merge multiple hex conversions.
8511 * gdbreplay.c (tohex): Rename to 'fromhex'.
8512 (logchar): Use fromhex.
8513
24c05f46
JK
85142015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8515
8516 * server.c (handle_qxfer_libraries): Set `version' attribute for
8517 <library-list>.
8518
14d2069a
GB
85192015-06-10 Gary Benson <gbenson@redhat.com>
8520
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
8534 appropriate.
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.
8538
4b8b5e72
GB
85392015-06-10 Gary Benson <gbenson@redhat.com>
8540
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.
8547
3ac2e371
GB
85482015-06-09 Gary Benson <gbenson@redhat.com>
8549
8550 * hostio.c (handle_open): Process mode argument with
8551 fileio_to_host_mode.
8552
ca9b78ce
YQ
85532015-06-01 Yao Qi <yao.qi@linaro.org>
8554
8555 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8556 * linux-x86-low.c: Likewise.
8557
bfacd19d
DB
85582015-05-28 Don Breazeal <donb@codesourcery.com>
8559
8560 * linux-low.c (handle_extended_wait): Initialize
8561 thread_info.last_resume_kind for new fork children.
8562
452003ef
PA
85632015-05-15 Pedro Alves <palves@redhat.com>
8564
8565 * target.h (target_handle_new_gdb_connection): Rewrite using if
8566 wrapped in do/while.
8567
1041a03c
JB
85682015-05-14 Joel Brobecker <brobecker@adacore.com>
8569
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):
8573 Declare typedef.
8574
c269dbdb
DB
85752015-05-12 Don Breazeal <donb@codesourcery.com>
8576
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
8580 events.
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
8584 global variable.
8585
3a8a0396
DB
85862015-05-12 Don Breazeal <donb@codesourcery.com>
8587
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
8593 new_fork.
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.
8602
de0d863e
DB
86032015-05-12 Don Breazeal <donb@codesourcery.com>
8604
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>:
8626 New member.
8627 (target_handle_new_gdb_connection): New macro.
8628 * win32-low.c: Initialize new structure member.
8629
ddcbc397
DB
86302015-05-12 Don Breazeal <donb@codesourcery.com>
8631
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.
8637
89245bc0
DB
86382015-05-12 Don Breazeal <donb@codesourcery.com>
8639
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
8645 members.
8646 * server.c (report_fork_events, report_vfork_events):
8647 New global flags.
8648 (handle_query): Add new features to qSupported packet and
8649 response.
8650 (captured_main): Initialize new global variables.
8651 * target.h (struct target_ops) <supports_fork_events>:
8652 New member.
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
8657 members.
8658
835205d0
GB
86592015-05-12 Gary Benson <gbenson@redhat.com>
8660
8661 * server.c (handle_qxfer_exec_file): Use current process
8662 if annex is empty.
8663
21e94bd9
SL
86642015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8665
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.
8670
45614f15
YQ
86712015-05-08 Yao Qi <yao.qi@linaro.org>
8672
8673 * linux-low.c (linux_supports_conditional_breakpoints): New
8674 function.
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>:
8684 New field.
8685 (target_supports_conditional_breakpoints): New macro.
8686
80ad801e
PA
86872015-05-06 Pedro Alves <palves@redhat.com>
8688
8689 PR server/18081
8690 * server.c (start_inferior): If the process exits, mourn it.
8691
819843c7
GB
86922015-04-21 Gary Benson <gbenson@redhat.com>
8693
8694 * hostio.c (fileio_open_flags_to_host): Factored out to
8695 fileio_to_host_openflags in common/fileio.c. Single use
8696 updated.
8697
a2d5a9d7
MF
86982015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8699
8700 * linux-xtensa-low.c (xtensa_fill_gregset)
8701 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8702 XCHAL_HAVE_LOOP.
8703
deb44829
MF
87042015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8705
8706 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8707 (regs_info): Replace usrregs pointer with NULL.
8708
e57f1de3
GB
87092015-04-17 Gary Benson <gbenson@redhat.com>
8710
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.
8716
62828379
RN
87172015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8718
8719 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8720
b88bb450
GB
87212015-04-09 Gary Benson <gbenson@redhat.com>
8722
8723 * hostio-errno.c (errno_to_fileio_error): Remove function.
8724 Update caller to use remote_fileio_to_fio_error.
8725
c8f4bfdd
YQ
87262015-04-09 Yao Qi <yao.qi@linaro.org>
8727
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
8731 raw_bkpt_type_sw.
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.
8735
41f98f02
PA
87362015-04-01 Pedro Alves <palves@redhat.com>
8737 Cleber Rosa <crosa@redhat.com>
8738
8739 * server.c (gdbserver_usage): Reorganize and extend the usage
8740 message.
8741
2bf6fb9d
PA
87422015-03-24 Pedro Alves <palves@redhat.com>
8743
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.
8748
369f6daa
GB
87492015-03-24 Gary Benson <gbenson@redhat.com>
8750
8751 * linux-x86-low.c (x86_linux_new_thread): Moved to
8752 nat/x86-linux.c.
8753 (x86_linux_prepare_to_resume): Likewise.
8754
8e5d4070
GB
87552015-03-24 Gary Benson <gbenson@redhat.com>
8756
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.
8770
2b95d440
GB
87712015-03-24 Gary Benson <gbenson@redhat.com>
8772
8773 * linux-x86-low.c (x86_linux_update_debug_registers):
8774 New function, factored out from...
8775 (x86_linux_prepare_to_resume): ...this.
8776
14b0bc68
GB
87772015-03-24 Gary Benson <gbenson@redhat.com>
8778
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.
8788
5dfe6ca8
GB
87892015-03-24 Gary Benson <gbenson@redhat.com>
8790
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.
8794
d33472ad
GB
87952015-03-24 Gary Benson <gbenson@redhat.com>
8796
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.
8808
4b134ca1
GB
88092015-03-24 Gary Benson <gbenson@redhat.com>
8810
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.
8822
34c703da
GB
88232015-03-24 Gary Benson <gbenson@redhat.com>
8824
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.
8831
cff068da
GB
88322015-03-24 Gary Benson <gbenson@redhat.com>
8833
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):
8838 Use lwp_is_stopped.
8839 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8840 lwp_stop_reason.
8841
b2f7c7e8
GB
88422015-03-24 Gary Benson <gbenson@redhat.com>
8843
8844 * linux-low.h (linux_stop_lwp): Remove declaration.
8845
6d4ee8c6
GB
88462015-03-24 Gary Benson <gbenson@redhat.com>
8847
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.
8857
70a0bb6b
GB
88582015-03-24 Gary Benson <gbenson@redhat.com>
8859
8860 * linux-x86-low.c (x86_debug_reg_state): New function.
8861 (x86_linux_prepare_to_resume): Use the above.
8862
7b669087
GB
88632015-03-24 Gary Benson <gbenson@redhat.com>
8864
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.
8870
eef49a3d
PA
88712015-03-20 Pedro Alves <palves@redhat.com>
8872
8873 * tracepoint.c (cmd_qtstatus): Make "str" const.
8874
b2333d22
PA
88752015-03-20 Pedro Alves <palves@redhat.com>
8876
8877 * server.c (handle_general_set): Make "req_str" const.
8878
23f238d3
PA
88792015-03-19 Pedro Alves <palves@redhat.com>
8880
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
8887 gone.
8888
91baf43f
PA
88892015-03-19 Pedro Alves <palves@redhat.com>
8890
8891 * linux-low.c (count_events_callback, select_event_lwp_callback):
8892 No longer check whether the thread has resume_stop as last resume
8893 kind.
8894
8bf3b159
PA
88952015-03-19 Pedro Alves <palves@redhat.com>
8896
8897 * linux-low.c (count_events_callback, select_event_lwp_callback):
8898 Use the lwp's status_pending_p field, not the thread's.
8899
b90fc188
PA
89002015-03-19 Pedro Alves <palves@redhat.com>
8901
8902 * linux-low.c (select_event_lwp_callback): Update comments to
8903 no longer mention SIGTRAP.
8904
464b0089
GB
89052015-03-18 Gary Benson <gbenson@redhat.com>
8906
8907 * server.c (handle_query): Do not report vFile:fstat as supported.
8908
aa9e327f
GB
89092015-03-11 Gary Benson <gbenson@redhat.com>
8910
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.
aa9e327f 8916
791c0056
GB
89172015-03-11 Gary Benson <gbenson@redhat.com>
8918
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.
8926
9a9df970
PA
89272015-03-09 Pedro Alves <palves@redhat.com>
8928
8929 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8930 'struct sockaddr' pointer in 'accept' call.
8931
9eb1356e
PA
89322015-03-09 Pedro Alves <palves@redhat.com>
8933
8934 Revert:
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>
8943 or <sys/un.h>.
8944 (init_named_socket, gdb_agent_helper_thread): Use union
8945 gdb_sockaddr_u.
8946
aac331e4
PA
89472015-03-07 Pedro Alves <palves@redhat.com>
8948
8949 * configure.ac (build_warnings): Move
8950 -Wdeclaration-after-statement to the C-specific set.
8951 * configure: Regenerate.
8952
366c75fc
PA
89532015-03-07 Pedro Alves <palves@redhat.com>
8954
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>
8962 or <sys/un.h>.
8963 (init_named_socket, gdb_agent_helper_thread): Use union
8964 gdb_sockaddr_u.
8965
492d29ea
PA
89662015-03-07 Pedro Alves <palves@redhat.com>
8967
8968 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8969 instead.
8970
60a191ed
YQ
89712015-03-06 Yao Qi <yao.qi@linaro.org>
8972
8973 * linux-aarch64-low.c (aarch64_insert_point): Use
8974 show_debug_regs as a boolean.
8975 (aarch64_remove_point): Likewise.
8976
f5771b1d
PA
89772015-03-05 Pedro Alves <palves@redhat.com>
8978
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.
8985
3e572f71
PA
89862015-03-04 Pedro Alves <palves@redhat.com>
8987
72f4393d 8988 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
8989 Decide whether a breakpoint triggered based on the SIGTRAP's
8990 siginfo.si_code.
72f4393d
L
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.
3e572f71
PA
8993 (linux_low_filter_event): Check for breakpoints before checking
8994 watchpoints.
8995 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
8996 siginfo.si_code.
72f4393d
L
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.
3e572f71 9002
1ec68e26
PA
90032015-03-04 Pedro Alves <palves@redhat.com>
9004
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.
9017
15c66dd6
PA
90182015-03-04 Pedro Alves <palves@redhat.com>
9019
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.
9029
98fc70d6
YQ
90302015-03-04 Yao Qi <yao.qi@linaro.org>
9031
9032 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9033
dd2ac174
GB
90342015-03-03 Gary Benson <gbenson@redhat.com>
9035
9036 * hostio.c (handle_vFile): Fix prefix lengths.
9037
d68e53f4
MM
90382015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9039
9040 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9041 ptr_bits.
9042
bf2d68ab
AA
90432015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9044
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
9058 declarations.
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
9062 NT_S390_VXRS_HIGH.
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.
9068
c966a859
PA
90692015-03-01 Pedro Alves <palves@redhat.com>
9070
9071 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9072 parameter.
9073
4180215b
PA
90742015-02-27 Pedro Alves <palves@redhat.com>
9075
9076 * linux-x86-low.c (u_debugreg_offset): New function.
9077 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9078
749bab01
PA
90792015-02-27 Pedro Alves <palves@redhat.com>
9080
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.
9089
3c14e5a3
PA
90902015-02-27 Pedro Alves <palves@redhat.com>
9091
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):
9135 Define.
9136 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9137 (IP_AGENT_EXPORT_VAR_DECL): Define.
9138 (tracing): Declare.
9139 (gdb_agent_get_raw_reg): Declare.
9140
fe978cb0
PA
91412015-02-27 Tom Tromey <tromey@redhat.com>
9142 Pedro Alves <palves@redhat.com>
9143
9144 Rename symbols whose names are reserved C++ keywords throughout.
9145
3bc3d82a
PA
91462015-02-27 Pedro Alves <palves@redhat.com>
9147
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.
9162
07697489
PA
91632015-02-27 Pedro Alves <palves@redhat.com>
9164
9165 * acinclude.m4: Include libiberty.m4.
9166 * configure.ac: Call libiberty_INIT.
9167 * config.in, configure: Regenerate.
9168
9beb7c4e
PA
91692015-02-26 Pedro Alves <palves@redhat.com>
9170
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.
9175
8090aef2
PA
91762015-02-23 Pedro Alves <palves@redhat.com>
9177
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.
9183
bc9540e8
PA
91842015-02-23 Pedro Alves <palves@redhat.com>
9185
9186 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9187 modes.
9188 (x86_fill_gregset, x86_store_gregset): Use it when handling
9189 $orig_eax.
9190
2db9a427
PA
91912015-02-20 Pedro Alves <palves@redhat.com>
9192
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.
9196
afa8d396
PA
91972015-02-20 Pedro Alves <palves@redhat.com>
9198
9199 * linux-low.c (status_pending_p_callback): Use ptid_match.
9200
c9587f88
AT
92012015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9202
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.
9207
b05ec7a5
AT
92082015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9209
9210 PR breakpoints/15956
9211 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9212
d33501a5
MM
92132015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9214
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.
9219
f4abbc16
MM
92202015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9221
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 &current_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.
9236
043c3577
MM
92372015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9238
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.
9246
734b0e4b
MM
92472015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9248
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.
9255
d6c146e9
PA
92562015-02-06 Pedro Alves <palves@redhat.com>
9257
9258 * thread-db.c (find_new_threads_callback): Add debug output.
9259
20ba1ce6
PA
92602015-02-04 Pedro Alves <palves@redhat.com>
9261
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.
9265
8cc73a39
SDJ
92662015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9267
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.
9276
fb23d554
SDJ
92772015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9278
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.
9284
cdf43629
YQ
92852015-01-14 Yao Qi <yao@codesourcery.com>
9286
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
9295
514c5338
YQ
92962015-01-14 Yao Qi <yao@codesourcery.com>
9297
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.
9305
3368c1e5
JB
93062015-01-10 Joel Brobecker <brobecker@adacore.com>
9307
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.
9311
582511be
PA
93122015-01-09 Pedro Alves <palves@redhat.com>
9313
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
9336 events.
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):
9347 Adjust.
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
9365 cancel_breakpoints.
9366
a33e3959
PA
93672015-01-09 Pedro Alves <palves@redhat.com>
9368
9369 * thread-db.c (find_new_threads_callback): Ignore thread if the
9370 kernel thread ID is -1.
9371
8784d563
PA
93722015-01-09 Pedro Alves <palves@redhat.com>
9373
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.
9381
76f2b779
JB
93822015-01-01 Joel Brobecker <brobecker@adacore.com>
9383
9384 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9385 * server.c (gdbserver_version): Likewise.
9386
fafcc06a
SDJ
93872014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9388
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
9392 characters.
9393
beed38b8
JB
93942014-12-16 Joel Brobecker <brobecker@adacore.com>
9395
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.
9399
bf330350
CU
94002014-12-16 Catalin Udma <catalin.udma@freescale.com>
9401
9402 PR server/17457
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.
9408
5227d625
JB
94092014-12-15 Joel Brobecker <brobecker@adacore.com>
9410
9411 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9412 Remove FIXME comment about assumption about N.
9413
f93b65a0
JB
94142014-12-13 Joel Brobecker <brobecker@adacore.com>
9415
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.
9419
e5a9158d
AA
94202014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9421
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.
9426
feea5f36
AA
94272014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9428
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
9434 loop end condition.
9435
098dbe61
AA
94362014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9437
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.
9442
28eef672
AA
94432014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9444
9445 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9446 while-loop as for-loop.
9447 (regsets_store_inferior_registers): Likewise.
9448
bdca27a2
YQ
94492014-11-28 Yao Qi <yao@codesourcery.com>
9450
9451 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9452 * config.in, configure: Re-generate.
9453 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9454 is defined.
9455
9c232dda
YQ
94562014-11-21 Yao Qi <yao@codesourcery.com>
9457
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.
9465
43968415
JB
94662014-11-17 Joel Brobecker <brobecker@adacore.com>
9467
9468 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9469 corresponding ERRNO check in same block.
9470
40e91bc7
PA
94712014-11-12 Pedro Alves <palves@redhat.com>
9472
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.
9477
c2c118cf
PA
94782014-11-12 Pedro Alves <palves@redhat.com>
9479
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.
9482
78708b7c
PA
94832014-11-12 Pedro Alves <palves@redhat.com>
9484
9485 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9486 the process group instead of to a specific LWP.
9487
a2abc7de
PA
94882014-10-15 Pedro Alves <palves@redhat.com>
9489
9490 PR server/17487
9491 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9492 parameter.
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
9503 record's context.
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
9507 debug_reg_state.
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
9511 debug registers.
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
9516 directly.
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.
9528
a442d071
GB
95292014-10-08 Gary Benson <gbenson@redhat.com>
9530
9531 * server.h: Do not include common-exceptions.h.
9532
6f1947e8
GB
95332014-10-08 Gary Benson <gbenson@redhat.com>
9534
9535 * server.h: Do not include cleanups.h.
9536
63b434a4
JH
95372014-09-30 James Hogan <james.hogan@imgtec.com>
9538
9539 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9540 mips64-dsp-linux.c.
9541
c4d9ceb6
YQ
95422014-09-23 Yao Qi <yao@codesourcery.com>
9543
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.
9549
89a5711c
DB
95502014-09-19 Don Breazeal <donb@codesourcery.com>
9551
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.
9556
bffc0964
JB
95572014-09-16 Joel Brobecker <brobecker@adacore.com>
9558
9559 * Makefile.in (CPPFLAGS): Define.
9560 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9561 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9562
0bfdf32f
GB
95632014-09-16 Gary Benson <gbenson@redhat.com>
9564
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
9580 saved_thread.
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
9587 as saved_thread.
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
9591 of inferior.
9592 (handle_serial_event): Likewise.
9593 (handle_target_event): Likewise.
9594
361c8ade
GB
95952014-09-12 Tom Tromey <tromey@redhat.com>
9596 Gary Benson <gbenson@redhat.com>
9597
9598 * regcache.h: Include common-regcache.h.
9599 (regcache_read_pc): Don't declare.
9600 * regcache.c (get_thread_regcache_for_ptid): New function.
9601
bd9269f7
GB
96022014-09-11 Tom Tromey <tromey@redhat.com>
9603 Gary Benson <gbenson@redhat.com>
9604
9605 * symbol.c: New file.
9606 * Makefile.in (SFILES): Add symbol.c.
9607 (OBS): Add symbol.o.
9608
f8c1d06b
GB
96092014-09-11 Gary Benson <gbenson@redhat.com>
9610
9611 * target.c (target_stop_ptid, target_continue_ptid): New
9612 functions.
9613
721ec300
GB
96142014-09-11 Tom Tromey <tromey@redhat.com>
9615 Gary Benson <gbenson@redhat.com>
9616
9617 * target.h: Include target/target.h.
9618 * target.c (target_read_memory, target_read_uint32)
9619 (target_write_memory): New functions.
9620
c5e92cca
GB
96212014-09-11 Gary Benson <gbenson@redhat.com>
9622
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.
9628
2e4bb98a
EBM
96292014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9630
9631 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9632 endianness into account.
9633 (ppc_supply_ptrace_register): Likewise.
9634
ac740bc7
JH
96352014-09-03 James Hogan <james.hogan@imgtec.com>
9636
9637 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9638 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9639
97ea6506
GB
96402014-09-03 Gary Benson <gbenson@redhat.com>
9641
9642 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9643 ALL_DEBUG_ADDRESS_REGISTERS.
9644
df7e5265
GB
96452014-09-02 Gary Benson <gbenson@redhat.com>
9646
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.
9653
ed859da7
GB
96542014-09-02 Gary Benson <gbenson@redhat.com>
9655
9656 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9657 (x86_linux_new_thread): Likewise.
9658
860789c7
GB
96592014-08-29 Gary Benson <gbenson@redhat.com>
9660
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.
9671
ff55e1b5
GB
96722014-08-29 Gary Benson <gbenson@redhat.com>
9673
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.
9678
e9bcb658
GB
96792014-08-29 Gary Benson <gbenson@redhat.com>
9680
9681 * config.in: Regenerate.
9682 * configure: Likewise.
9683
e3180625
GB
96842014-08-29 Gary Benson <gbenson@redhat.com>
9685
9686 * Makefile.in (SFILES): Add common/cleanups.c.
9687 (OBS): cleanups.o.
9688 (cleanups.o): New rule.
9689
e3d6ba5d
GB
96902014-08-29 Gary Benson <gbenson@redhat.com>
9691
9692 * utils.c (internal_vwarning): New function.
9693
7096e886
GB
96942014-08-28 Gary Benson <gbenson@redhat.com>
9695
9696 * utils.h (fatal): Remove declaration.
9697 * utils.c (fatal): Remove function.
9698
14ce3192
GB
96992014-08-28 Gary Benson <gbenson@redhat.com>
9700
9701 * tracepoint.c (gdb_agent_init): Replace fatal with
9702 perror_with_name.
9703 (initialize_tracepoint): Likewise.
9704
50278d59
GB
97052014-08-28 Gary Benson <gbenson@redhat.com>
9706
9707 * remote-utils.c (remote_prepare): Replace fatal with error.
9708
aa96c426
GB
97092014-08-28 Gary Benson <gbenson@redhat.com>
9710
9711 * linux-low.c (linux_async): Replace fatal with warning.
9712 Tidy up and return.
9713 (linux_start_non_stop): Return -1 if linux_async failed.
9714
f7160e97
GB
97152014-08-28 Gary Benson <gbenson@redhat.com>
9716
9717 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9718 gdb_assert.
9719 (i386_dr_low_get_addr): Remove vague comment.
9720 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9721 gdb_assert.
9722
38e08fca
GB
97232014-08-28 Gary Benson <gbenson@redhat.com>
9724
9725 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9726 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9727 internal_error.
9728 (linux_resume_one_lwp): Likewise.
9729 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9730 gdb_assert.
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
9742 internal_error.
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.
9752
34abf635
GB
97532014-08-19 Tom Tromey <tromey@redhat.com>
9754 Gary Benson <gbenson@redhat.com>
9755
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.
9762
f6e94d78
GB
97632014-08-19 Gary Benson <gbenson@redhat.com>
9764
9765 * utils.h: Do not include print-utils.h.
9766
9239eeab
GB
97672014-08-19 Tom Tromey <tromey@redhat.com>
9768 Gary Benson <gbenson@redhat.com>
9769
9770 * server.h: Add static assertion.
9771 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9772
ef87c8bb
GB
97732014-08-19 Tom Tromey <tromey@redhat.com>
9774 Gary Benson <gbenson@redhat.com>
9775
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.
9788
bb974a24
GB
97892014-08-07 Gary Benson <gbenson@redhat.com>
9790
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.
9802
6d3d12eb
GB
98032014-08-07 Gary Benson <gbenson@redhat.com>
9804
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.
9812
dccbb609
GB
98132014-08-07 Gary Benson <gbenson@redhat.com>
9814
9815 * server.h: Do not include gdb_assert.h.
9816
e76df0d0
GB
98172014-08-07 Gary Benson <gbenson@redhat.com>
9818
9819 * server.h: Do not include common-utils.h.
9820
4cb9c816
GB
98212014-08-07 Gary Benson <gbenson@redhat.com>
9822
9823 * server.h: Do not include ptid.h.
9824 * notif.h: Likewise.
9825
3995eeee
GB
98262014-08-07 Gary Benson <gbenson@redhat.com>
9827
9828 * server.h: Do not include gdb_locale.h.
9829
cb9f1a9b
GB
98302014-08-07 Gary Benson <gbenson@redhat.com>
9831
9832 * server.h: Do not include gdb/signals.h.
9833 * win32-low.c: Likewise.
9834
a5fceff8
GB
98352014-08-07 Gary Benson <gbenson@redhat.com>
9836
9837 * server.h: Do not include pathmax.h.
9838
b9391142
GB
98392014-08-07 Gary Benson <gbenson@redhat.com>
9840
9841 * server.h: Do not include libiberty.h.
9842 * linux-bfin-low.c: Likewise.
9843
0e443c87
GB
98442014-08-07 Gary Benson <gbenson@redhat.com>
9845
9846 * server.h: Do not include ansidecl.h.
9847
8ebb3f56
GB
98482014-08-07 Gary Benson <gbenson@redhat.com>
9849
9850 * linux-x86-low.c: Do not include stddef.h.
9851 * lynx-ppc-low.c: Likewise.
9852 * tracepoint.c: Likewise.
9853
8980bdf6
GB
98542014-08-07 Gary Benson <gbenson@redhat.com>
9855
9856 * server.h: Do not include stdarg.h.
9857 * nto-low.c: Likewise.
9858
d7096f71
GB
98592014-08-07 Gary Benson <gbenson@redhat.com>
9860
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.
9868
d02f550d
GB
98692014-08-07 Gary Benson <gbenson@redhat.com>
9870
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.
9877
87f6c4e3
GB
98782014-08-06 Gary Benson <gbenson@redhat.com>
9879
9880 * regcache.c (init_register_cache): Move conditionals inside if.
9881
7089dca4
GB
98822014-08-06 Gary Benson <gbenson@redhat.com>
9883
9884 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9885
462f517e
GB
98862014-07-31 Gary Benson <gbenson@redhat.com>
9887
9888 * ax.h: Do not include server.h.
9889 * gdbthread.h: Likewise.
9890 * lynx-low.h: Likewise.
9891 * notif.h: Likewise.
9892
976411d6
GB
98932014-07-30 Gary Benson <gbenson@redhat.com>
9894
9895 * server.h: Include common-defs.h.
9896 Do not include config.h or build-gnulib-gdbserver/config.h.
9897
d41f6d8e
GB
98982014-07-30 Gary Benson <gbenson@redhat.com>
9899
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.
9904
314c6a35
TT
99052014-07-24 Tom Tromey <tromey@redhat.com>
9906 Gary Benson <gbenson@redhat.com>
9907
9908 * server.h (CORE_ADDR): Now unsigned.
9909
69ff6be5
PA
99102014-07-16 Pedro Alves <palves@redhat.com>
9911
9912 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9913
ce9e3fe7
PA
99142014-07-15 Pedro Alves <palves@redhat.com>
9915
9916 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9917 copy.
9918
e76126e8
PA
99192014-07-11 Pedro Alves <palves@redhat.com>
9920
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.
9924
8e9db26e
PA
99252014-06-23 Pedro Alves <palves@redhat.com>
9926
9927 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9928 before setting DR0..DR3.
9929
698b3e08
GB
99302014-06-20 Gary Benson <gbenson@redhat.com>
9931
9932 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9933 * configure: Regenerated.
9934 * config.in: Likewise.
9935
125f8a3d
GB
99362014-06-20 Gary Benson <gbenson@redhat.com>
9937
9938 * Makefile.in (SFILES): Update locations for files moved
9939 from common to nat.
9940 (object file files): Reordered.
9941
42995dbd
GB
99422014-06-20 Gary Benson <gbenson@redhat.com>
9943
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.
9966
e1d2394b
MS
99672014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9968
9969 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9970 * Makefile.in (AR, AR_FLAGS): Define.
9971 * configure: Regenerate.
9972
3a8ee006
GB
99732014-06-19 Gary Benson <gbenson@redhat.com>
9974
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.
10015
8f26655c
GB
100162014-06-19 Gary Benson <gbenson@redhat.com>
10017
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.
10022 All uses updated.
10023 (i386_dr_insert_aligned_watchpoint): Renamed to
10024 i386_insert_aligned_watchpoint and made static.
10025 All uses updated.
10026 (i386_dr_remove_aligned_watchpoint): Renamed to
10027 i386_remove_aligned_watchpoint and made static.
10028 All uses updated.
10029 (i386_dr_update_inferior_debug_regs): Renamed to
10030 i386_update_inferior_debug_regs and made static.
10031 All uses updated.
10032
b9228891
GB
100332014-06-18 Gary Benson <gbenson@redhat.com>
10034
5171def3
GB
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.
10041
100422014-06-17 Gary Benson <gbenson@redhat.com>
10043
b9228891
GB
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.
10057
4be83cc2
GB
100582014-06-18 Gary Benson <gbenson@redhat.com>
10059
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.
10074 All uses updated.
10075 (i386_insert_aligned_watchpoint): Renamed to
10076 i386_dr_insert_aligned_watchpoint and made nonstatic.
10077 All uses updated.
10078 (i386_remove_aligned_watchpoint): Renamed to
10079 i386_dr_remove_aligned_watchpoint and made nonstatic.
10080 All uses updated.
10081 (i386_update_inferior_debug_regs): Renamed to
10082 i386_dr_update_inferior_debug_regs and made nonstatic.
10083 All uses updated.
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.
10094
131aa0d4
GB
100952014-06-18 Gary Benson <gbenson@redhat.com>
10096
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.
10100
d9305f7f
GB
101012014-06-18 Gary Benson <gbenson@redhat.com>
10102
10103 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10104 Renamed to state.
10105
e927c9fc
GB
101062014-06-18 Gary Benson <gbenson@redhat.com>
10107
10108 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10109 instead of fatal and error.
10110 (i386_handle_nonaligned_watchpoint): Likewise.
10111
1b6d4134
GB
101122014-06-18 Gary Benson <gbenson@redhat.com>
10113
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.
10118
6e62758f
GB
101192014-06-18 Gary Benson <gbenson@redhat.com>
10120
10121 * i386-low.h: Comment changes.
10122 * i386-low.c: Likewise.
10123
fc6e2f03
GB
101242014-06-18 Gary Benson <gbenson@redhat.com>
10125
10126 * i386-low.c: Whitespace changes.
10127
f9d1eeed
TT
101282014-06-12 Tom Tromey <tromey@redhat.com>
10129
10130 * utils.c (freeargv): Remove.
10131
0b04e523
TT
101322014-06-12 Tom Tromey <tromey@redhat.com>
10133
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
10141 against libiberty.
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
10146 targets.
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
10151 srv_tgtobj.
10152
270c9937
JB
101532014-06-05 Joel Brobecker <brobecker@adacore.com>
10154
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.
10159
0a261ed8
PA
101602014-06-02 Pedro Alves <palves@redhat.com>
10161
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
10165 list.
10166 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10167 static.
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.
10171
e9dae05e
RR
101722014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10173
10174 * linux-aarch64-low.c (asm/ptrace.h): Include.
10175
5876f503
JK
101762014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10177
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.
10182
802e8e6d
PA
101832014-05-20 Pedro Alves <palves@redhat.com>
10184
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
10261 breakpoint.
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
10267 z_type parameter.
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
10274 output.
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.
10336
932539e3
PA
103372014-05-20 Pedro Alves <palves@redhat.com>
10338
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
10358 function.
10359 (mips_insert_point, mips_remove_point): Use
10360 Z_packet_to_target_hw_bp_type.
10361
4ff0d3d8
PA
103622014-05-20 Pedro Alves <palves@redhat.com>
10363
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
10372 breakpoint type.
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
10378 target_point_type.
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.
10382
786dc519
JB
103832014-05-20 Joel Brobecker <brobecker@adacore.com>
10384
10385 * configure.ac: Only use -Werror by default when DEVELOPMENT
10386 is true.
10387 * configure: Regenerate.
10388
9e0aa64f
JK
103892014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10390
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.
10394
2b577b92
YQ
103952014-04-28 Yao Qi <yao@codesourcery.com>
10396
10397 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10398 name.
10399
94611da2
PA
104002014-04-25 Pedro Alves <palves@redhat.com>
10401
10402 PR server/16255
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
10411 attach to an lwp.
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.
10418
01f9f808
MS
104192014-04-24 Michael Sturm <michael.sturm@mintel.com>
10420 Walfred Tedeschi <walfred.tedeschi@intel.com>
10421
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
10438 of K registers.
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
10460 mask.
10461 (initialize_low_arch): Add code to initialize AVX512 registers.
10462
51aa91f9
PA
104632014-04-23 Pedro Alves <palves@redhat.com>
10464
10465 * mem-break.c (find_gdb_breakpoint_at): Make static.
10466 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10467
a4165e94
PA
104682014-04-23 Pedro Alves <palves@redhat.com>
10469
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
10473 packet char.
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
10477 prototypes.
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.
10486
b8acf843
PA
104872014-04-23 Pedro Alves <palves@redhat.com>
10488
10489 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10490
d708bcd1
PA
104912014-04-10 Pedro Alves <palves@redhat.com>
10492
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.
10500
2eec7d5b
PA
105012014-04-09 Pedro Alves <palves@redhat.com>
10502
10503 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10504 to lwpid_of.
10505
fa96cb38
PA
105062014-02-27 Pedro Alves <palves@redhat.com>
10507
10508 PR 12702
10509 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10510 macros.
10511 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10512 output.
10513 (last_thread_of_process_p): Take a PID argument instead of a
10514 thread pointer.
10515 (linux_wait_for_lwp): Delete.
10516 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10517 functions.
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.
10533
d763de10
JB
105342014-02-26 Joel Brobecker <brobecker@adacore.com>
10535
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):
10540 Delete.
10541 (handle_load_dll): Add function description.
10542 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10543
850a0f76
JB
105442014-02-26 Joel Brobecker <brobecker@adacore.com>
10545
10546 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10547 Add comment.
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.
10554
f25b3fc3
JB
105552014-02-26 Joel Brobecker <brobecker@adacore.com>
10556
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.
10566 Add comment.
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.
10571
d86d4aaf
DE
105722014-02-20 Doug Evans <dje@google.com>
10573
3bc32da3 10574 Remove global all_lwps.
d86d4aaf
DE
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
10582 directly.
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
10589 &all_lwps.
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,
10628 not &all_lwps.
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,
10633 not &all_lwps.
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
10646 from thread, lwp.
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
10668 directly.
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.
10679 (get_lwp): Delete.
10680 (get_thread_lwp): Update.
10681 (struct lwp_info): Delete member "entry". Simplify comment for
10682 member "thread".
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
10693 directly.
10694 (mips_stopped_data_address): Ditto.
10695 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10696 directly.
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.
10712
3b8361aa
DE
107132014-02-20 Doug Evans <dje@google.com>
10714
10715 * inferiors.c (get_first_inferior): Fix buglet.
10716
f7667f0d
DE
107172014-02-19 Doug Evans <dje@google.com>
10718
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".
10726
b3312d80
DE
107272014-02-19 Doug Evans <dje@google.com>
10728
10729 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10730 All callers updated.
10731
ecc6f45c
DE
107322014-02-19 Doug Evans <dje@google.com>
10733
10734 * inferiors.c (add_thread): Fix whitespace.
10735
649ebbca
DE
107362014-02-19 Doug Evans <dje@google.com>
10737
10738 * dll.c (clear_dlls): Replace accessing list implemention details
10739 with API function.
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
10771 with API function.
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.
10783
80894984
DE
107842014-02-19 Doug Evans <dje@google.com>
10785
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.
10793 (add_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.
10811
46917d26
TT
108122014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10815 argument.
10816 (target_supports_btrace): Update.
10817
0759a81e
YQ
108182014-02-14 Yao Qi <yao@codesourcery.com>
10819
10820 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10821 (rsp-low-ipa.o): New target.
10822
a7191e8b
TT
108232014-02-12 Tom Tromey <tromey@redhat.com>
10824
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.
10830
ff0e980e
TT
108312014-02-12 Tom Tromey <tromey@redhat.com>
10832
10833 * server.c (handle_query, handle_v_run): Use hex2bin, not
10834 unhexify.
10835 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10836
e9371aff
TT
108372014-02-12 Tom Tromey <tromey@redhat.com>
10838
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):
10842 Likewise.
10843 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10844 Likewise.
10845 * server.c (process_serial_event): Likewise.
10846 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10847 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10848
971dc0b8
TT
108492014-02-12 Tom Tromey <tromey@redhat.com>
10850
10851 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10852 bin2hex, not hexify.
10853 * tracepoint.c (cmd_qtstatus): Likewise.
10854
0a822afb
TT
108552014-02-12 Tom Tromey <tromey@redhat.com>
10856
10857 * remote-utils.c (monitor_output): Pass explicit length to
10858 hexify.
10859
9c3d6531
TT
108602014-02-12 Tom Tromey <tromey@redhat.com>
10861
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
10866 declare.
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
10871 common/rsp-low.c.
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.
10877
01fd3ea5
TT
108782014-02-12 Tom Tromey <tromey@redhat.com>
10879
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.
10889
e99dc820
TT
108902014-02-06 Tom Tromey <tromey@redhat.com>
10891
10892 * Makefile.in (SFILES): Fix indentation.
10893
ee1e2d4f
DE
108942014-02-05 Doug Evans <dje@google.com>
10895
10896 * linux-low.c (linux_wait_for_event): Improve comment.
10897 (linux_wait_1): Keep current_inferior in sync with event_child.
10898
f5a02773
DE
108992014-01-22 Doug Evans <dje@google.com>
10900
10901 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10902
87ce2a04
DE
109032014-01-22 Doug Evans <dje@google.com>
10904
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
10932 fprintf.
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.
10945
e671835b
BS
109462014-01-20 Baruch Siach <baruch@tkos.co.il>
10947
10948 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10949 sys/ptrace.h.
10950
b5737fa9
PA
109512014-01-17 Pedro Alves <palves@redhat.com>
10952
ea38d2a9 10953 PR build/16445
c7faa97a
PA
10954 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10955 defined after including gdb_proc_service.h.
b5737fa9 10956
40ed484e
DE
109572014-01-16 Doug Evans <dje@google.com>
10958
10959 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10960 (match_dll): Use it.
10961
969c39fb
MM
109622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10963
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
10969 errors on.
10970 (linux_low_disable_btrace): New.
10971
ab7f45ba
DE
109722014-01-15 Doug Evans <dje@google.com>
10973
10974 * inferiors.c (thread_id_to_gdb_id): Delete.
10975 * inferiors.h (thread_id_to_gdb_id): Delete.
10976
66af0f44
EZ
109772014-01-13 Eli Zaretskii <eliz@gnu.org>
10978
10979 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10980 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10981 versions.
10982
9939e131
PA
109832014-01-08 Pedro Alves <palves@redhat.com>
10984
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.
10988
b7ea362b
PA
109892014-01-08 Pedro Alves <palves@redhat.com>
10990
10991 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10992 * server.c (visit_actioned_threads, handle_pending_status): New
10993 function.
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
10997 resuming.
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.
11006
28498c42
JB
110072014-01-01 Joel Brobecker <brobecker@adacore.com>
11008
11009 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11010 * gdbreplay.c (gdbreplay_version): Likewise.
11011
f45c82da
YZ
110122013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11013
11014 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11015 iov.iov_len with the real length in use.
11016
379a5e2d
JB
110172013-12-13 Joel Brobecker <brobecker@adacore.com>
11018
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.
11024
4210d83e
PA
110252013-12-13 Pedro Alves <palves@redhat.com>
11026
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.
11039
e7f0d979
YQ
110402013-12-11 Yao Qi <yao@codesourcery.com>
11041
11042 * notif.c (handle_notif_ack): Return 0 if no notification
11043 matches.
11044
ebcf782c
DE
110452013-11-20 Doug Evans <dje@google.com>
11046
11047 * linux-low.c (linux_set_resume_request): Fix comment.
11048
20ad9378
DE
110492013-11-20 Doug Evans <dje@google.com>
11050
11051 * linux-low.c (resume_status_pending_p): Tweak comment.
11052
a196ebeb
WT
110532013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11054
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
11068 function.
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.
11075
0080a2f6
TT
110762013-11-18 Tom Tromey <tromey@redhat.com>
11077
11078 * configure: Rebuild.
11079 * configure.ac: Don't check for stdlib.h.
11080 * gdbreplay.c: Unconditionally include stdlib.h.
11081
2978b111
TT
110822013-11-18 Tom Tromey <tromey@redhat.com>
11083
11084 * config.in: Rebuild.
11085 * configure: Rebuild.
11086 * configure.ac: Don't use AC_HEADER_DIRENT.
11087
a3d08894
TT
110882013-11-18 Tom Tromey <tromey@redhat.com>
11089
11090 * server.h: Don't check HAVE_STRING_H.
11091 * gdbreplay.c: Don't check HAVE_STRING_H.
11092 * configure: Rebuild.
11093
0a5dd17d
TT
110942013-11-18 Tom Tromey <tromey@redhat.com>
11095
11096 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11097 LIBGNU.
11098
1bd2f0ba
TT
110992013-11-08 Tom Tromey <tromey@redhat.com>
11100
11101 * configure, config.in: Rebuild.
11102 * configure.ac: Remove unused configury.
11103
3266f10b
TT
111042013-11-08 Tom Tromey <tromey@redhat.com>
11105
11106 * acinclude.m4: Include common.m4, codeset.m4.
11107 * configure, config.in: Rebuild.
11108 * configure.ac: Use GDB_AC_COMMON.
11109
6682d959
AA
111102013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11111
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'.
11115
fd0a4d76
SDJ
111162013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11117
11118 PR gdb/16014
11119 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11120 call to sizeof.
11121
1a3d890b
PA
111222013-10-02 Pedro Alves <palves@redhat.com>
11123
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
11127 through stdio.
11128
97ad4581
JB
111292013-10-01 Joel Brobecker <brobecker@adacore.com>
11130
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.
11134
5b4e221c
MF
111352013-09-28 Mike Frysinger <vapier@gentoo.org>
11136
11137 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11138 * config.in, configure: Regenerated.
11139
ee47b2f8
YQ
111402013-09-18 Yao Qi <yao@codesourcery.com>
11141
11142 PR server/15959
11143 * server.c (start_inferior): Clear 'resume_info'.
11144
d6707650 111452013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 11146
d6707650
JW
11147 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11148 for each register.
11149
9243dd0e 111502013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 11151
9243dd0e
JW
11152 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11153 linux-tile-low.o to srv_tgtobj.
11154
c623a6ef
WN
111552013-09-16 Will Newton <will.newton@linaro.org>
11156
11157 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11158 out regs.
11159
fb71d39e
PA
111602013-09-06 Pedro Alves <palves@redhat.com>
11161
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.
11168
8e7e9910
PA
111692013-09-06 Pedro Alves <palves@redhat.com>
11170
11171 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11172 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11173
7c3a12ca
PA
111742013-09-06 Pedro Alves <palves@redhat.com>
11175
11176 * linux-amd64-ipa.c: Include tracepoint.h.
11177 * linux-i386-ipa.c: Include tracepoint.h.
11178
8eb3d7b6
RW
111792013-09-06 Ricard Wanderlof <ricardw@axis.com>
11180
11181 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11182 (ps_get_thread_area): New function.
11183
eddddb9d
RW
111842013-09-06 Ricard Wanderlof <ricardw@axis.com>
11185
11186 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11187 (initialize_low_arch): Call init_registers_crisv32 rather than
11188 init_register_crisv32.
11189
533b0600
PA
111902013-09-05 Pedro Alves <palves@redhat.com>
11191
11192 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11193 to ...
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.
11197
0ce3d3b5
PA
111982013-09-05 Pedro Alves <palves@redhat.com>
11199
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.
11205
799cdc37
PA
112062013-09-05 Pedro Alves <palves@redhat.com>
11207
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".
11213
6a6bbd9d
PA
112142013-09-05 Pedro Alves <palves@redhat.com>
11215
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.
11226
f699aaba
PA
112272013-09-05 Pedro Alves <palves@redhat.com>
11228
11229 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11230 Move ...
72f4393d 11231 * ax.h: ... here.
f699aaba 11232
c144c7a0
PA
112332013-09-05 Pedro Alves <palves@redhat.com>
11234
11235 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11236 tracepoint.h.
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.
11256
ff42e6ab
PA
112572013-09-05 Pedro Alves <palves@redhat.com>
11258
11259 * server.h (perror_with_name, error, fatal, warning, paddress)
11260 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11261 include it.
11262 * utils.h: New file.
11263
541af0f4
PA
112642013-09-05 Pedro Alves <palves@redhat.com>
11265
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.
11281
eebdf26b
PA
112822013-09-05 Pedro Alves <palves@redhat.com>
11283
11284 * server.h (_): Delete.
11285
3aafd2ff
PA
112862013-09-02 Pedro Alves <palves@redhat.com>
11287
11288 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11289 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11290 allocated.
11291 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11292
cee83bcb
PM
112932013-09-02 Pierre Muller <muller@sourceware.org>
11294
11295 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11296 or WriteProcessMemory complete successfully and handle
11297 ERROR_PARTIAL_COPY error.
11298
9a13b2fa
PA
112992013-09-02 Pedro Alves <palves@redhat.com>
11300
11301 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11302 error instead of EIO.
11303
602e3198
JK
113042013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11305
11306 PR server/15604
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.
11315
96d7229d
LM
113162013-08-22 Luis Machado <lgustavo@codesourcery.com>
11317
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.
11342
32940073
PA
113432013-08-21 Pedro Alves <palves@redhat.com>
11344
11345 * config.in: Renegerate.
11346
33b60d58 113472013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 11348
33b60d58
LM
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.
11361
b8e1b30e
LM
113622013-08-13 Luis Machado <lgustavo@codesourcery.com>
11363
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
11368 PTRACE_TYPE_ARG4.
11369 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11370 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11371
7a60ad40
YQ
113722013-07-27 Jie Zhang <jie@codesourcery.com>
11373 Daniel Jacobowitz <dan@codesourcery.com>
11374 Yao Qi <yao@codesourcery.com>
11375
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
11380 srv_tgtobj.
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
11386 functions.
11387 (mips_remove_point, mips_stopped_by_watchpoint): New
11388 functions.
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.
11392
de6f69ad
YQ
113932013-07-27 Yao Qi <yao@codesourcery.com>
11394
11395 * i386-low.c: Include break-common.h.
11396 (enum target_hw_bp_type): Remove.
11397
3360c0bf
LM
113982013-07-24 Luis Machado <lgustavo@codesourcery.com>
11399
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.
11412
bd885420
YQ
114132013-07-04 Yao Qi <yao@codesourcery.com>
11414
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.
11420
11421 Revert:
11422 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11423
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).
11428
17ef446e
PA
114292013-07-03 Pedro Alves <palves@redhat.com>
11430
11431 * Makefile.in (config.status): Depend on development.sh.
11432 * acinclude.m4: Include libmcheck.m4.
11433 * configure: Regenerate.
11434
7a9a7487
MG
114352013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11436
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.
a261b8f5 11442
49b64de6
MG
114432013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11444
11445 * notif.h (notif_event): Add a dummy member to avoid compiler
11446 errors.
11447
d5749ee7
PA
114482013-07-01 Pedro Alves <palves@redhat.com>
11449
11450 * hostio.c (HOSTIO_PATH_MAX): Define.
11451 (require_filename, handle_open, handle_unlink, handle_readlink):
11452 Use it.
11453
d8d2a3ee
PA
114542013-07-01 Pedro Alves <palves@redhat.com>
11455
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
11459 MAXPATHLEN.
11460 * win32-low.c: Don't include sys/param.h.
11461 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11462
bc7dea8d
PA
114632013-07-01 Pedro Alves <palves@redhat.com>
11464
11465 * event-loop.c: Don't check HAVE_UNISTD_H before including
11466 <unistd.h>.
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.
11472
d6c2da54
TT
114732013-06-28 Tom Tromey <tromey@redhat.com>
11474
11475 * Makefile.in (version.c): Use version.in, not
11476 common/version.in.
11477
257b6bec
MG
114782013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11479
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).
11484
86ebe149
DK
114852013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11486
11487 Fix trace-status to output user name without trailing colon.
11488 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11489
f30aa5af
DK
114902013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11491
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.
11495
28a93511
YQ
114962013-06-26 Pedro Alves <pedro@codesourcery.com>
11497
11498 * tracepoint.c (build_traceframe_info_xml): Output trace state
11499 variables present in the trace buffer.
11500
01208463
TT
115012013-06-24 Tom Tromey <tromey@redhat.com>
11502
11503 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11504 create-version.sh.
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.
11510
760256f9
PA
115112013-06-12 Pedro Alves <palves@redhat.com>
11512
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.
11516
030031ee
PA
115172013-06-11 Pedro Alves <palves@redhat.com>
11518
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
11523 array here.
11524 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11525 comment.
11526
5da6eb0a
PA
115272013-06-11 Pedro Alves <palves@redhat.com>
11528
11529 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11530 xmalloc.
11531
7e5aaa09
PA
115322013-06-11 Pedro Alves <palves@redhat.com>
11533
11534 * linux-x86-low.c (initialize_low_arch): Call
11535 init_registers_x32_avx_linux.
11536
d878444c
JK
115372013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11538
11539 Fix compatibility with Android Bionic.
11540 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11541 it is not empty.
11542
3aee8918
PA
115432013-06-07 Pedro Alves <palves@redhat.com>
11544
5f2b57b5 11545 PR server/14823
3aee8918
PA
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
11550 interface.
11551 * linux-low.c (new_inferior): Delete.
11552 (disabled_regsets, num_regsets): Delete.
11553 (linux_add_process): Adjust to set the new per-process
11554 new_inferior flag.
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.
11562 Adjust to use it.
11563 (linux_register_in_regsets): New regs_info parameter. Adjust to
11564 use it.
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
11570 adjust to use it.
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
11589 description.
11590 * i387-fp.h (num_xmm_registers): Delete.
11591 * inferiors.c (add_thread): Don't install the thread's regcache
11592 here.
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
11604 process.
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
11622 parameter.
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
11629 declarations.
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
11636 declare.
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
11651 IPA's description.
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
11665 to new interface.
11666 (target_regsets): Rename to ...
11667 (x86_regsets): ... this.
11668 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11669 interface.
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):
11674 Declare.
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):
11703 Adjust.
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
11722 description.
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):
11772 Declare.
11773 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11774 (arm_read_description): New, with bits factored from
11775 arm_arch_setup.
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
11837 globals.
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.
a261b8f5
PA
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.
3aee8918
PA
11857 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11858 globals.
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'.
11895
b1fbec62
GB
118962013-06-04 Gary Benson <gbenson@redhat.com>
11897
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.
11904
d1ec4ce7
DE
119052013-05-31 Doug Evans <dje@google.com>
11906
ac44adcb 11907 PR server/15594
d1ec4ce7
DE
11908 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11909 64 bits in 64-cross-32 environment.
11910
9b25f2d3
PA
119112013-05-28 Pedro Alves <palves@redhat.com>
11912
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
11918 declaration.
11919
6740dc9c
PA
119202013-05-24 Pedro Alves <palves@redhat.com>
11921
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.
11925
c2d6af84
PA
119262013-05-23 Yao Qi <yao@codesourcery.com>
11927 Pedro Alves <palves@redhat.com>
11928
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
11946 stepping.
11947 * target.h (struct thread_resume) <step_range_start,
11948 step_range_end>: New fields.
11949 (struct target_ops) <supports_range_stepping>:
11950 New field.
11951 (target_supports_range_stepping): New macro.
11952
58794e1a
JB
119532013-05-17 Joel Brobecker <brobecker@adacore.com>
11954
11955 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11956 confusion in comment.
11957
d631c5a7
JB
119582013-05-17 Joel Brobecker <brobecker@adacore.com>
11959
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.
11966 Add comments.
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.
11972
96f7a20f
YQ
119732013-05-17 Yao Qi <yao@codesourcery.com>
11974
11975 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11976 the right place.
11977
db0dfaa0
LM
119782013-05-16 Luis Machado <lgustavo@codesourcery.com>
11979
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.
11987
68f5f838
SL
119882013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11989 Andrew Jenner <andrew@codesourcery.com>
11990
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.
11996
1ebff1fd
HAQ
119972013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
11998
11999 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12000
f6150862
HZ
120012013-04-25 Hui Zhu <hui@codesourcery.com>
12002
12003 PR gdb/15186
f6150862
HZ
12004 * ax.c (ax_printf): Add fflush.
12005
614c279d
TT
120062013-04-22 Tom Tromey <tromey@redhat.com>
12007
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.
12013
7d4e5717
PA
120142013-04-17 Pedro Alves <palves@redhat.com>
12015
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.
12021
d5c93e41
PA
120222013-04-16 Pedro Alves <palves@redhat.com>
12023
12024 * linux-low.h (struct lwp_info) <thread_known>: Move under
12025 the USE_THREAD_DB #ifdef.
12026
04f5fe89
PA
120272013-04-16 Pedro Alves <palves@redhat.com>
12028
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
12034 HAVE_THREAD_DB_H.
12035
480b27bf
JK
120362013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12037
12038 * Makefile.in (install-only): Fix make install regression.
12039
43662968
JK
120402013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12041
12042 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12043 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12044 installation.
12045 * gdbserver.1: Remove.
12046
3e74e146
PA
120472013-03-22 Pedro Alves <palves@redhat.com>
12048
12049 * linux-low.c (handle_extended_wait): Don't call
12050 linux_enable_event_reporting.
12051
a8347a2a
TT
120522013-03-15 Tony Theodore <tonyt@logyst.com>
12053
12054 PR build/9098:
12055 * Makefile.in (SHELL): Use @SHELL@.
12056
eeb56fa7
SDJ
120572013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12058
12059 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12060 compiler warning.
12061
4fa7e2ff
JB
120622013-03-13 Joel Brobecker <brobecker@adacore.com>
12063
12064 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12065 Remove extraneous NULL element.
12066
8ddb1965
YQ
120672013-03-13 Yao Qi <yao@codesourcery.com>
12068
12069 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12070 'V' block in trace frame.
12071
9accd112
MM
120722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12073
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.
12099
5cc22e4c
MM
121002013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12101
12102 * server.c (handle_qxfer): Preserve error message if -3 is
12103 returned.
12104 (qxfer): Document the -3 return value.
12105
7c97f91e
MM
121062013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12107
12108 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12109 (linux_btrace_h): New variable.
12110 (linux-btrace.o): New rule.
12111
be9a119c 121122013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
12113 Hafiz Abid Qadeer <abidh@codesourcery.com>
12114
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
12125 supported packets.
12126
e64f7499
YQ
121272013-03-07 Yao Qi <yao@codesourcery.com>
12128
12129 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12130 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12131 of -1.
12132 (cmd_qtsp): Adjust condition. Do post increment.
12133 Set cur_action and cur_step_action back to 0.
12134
f0ae6fc3
PA
121352013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12136
12137 PR server/15236
12138 * linux-low.c (linux_write_memory): Return early success if LEN is
12139 zero.
12140
b5b0b0af
CV
121412013-03-05 Corinna Vinschen <vinschen@redhat.de>
12142
334ad4a8 12143 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 12144
589bc927
TT
121452013-02-28 Tom Tromey <tromey@redhat.com>
12146
12147 * configure.ac: Invoke AC_SYS_LARGEFILE.
12148 * configure, config.in: Rebuild.
12149
dfe07582
CV
121502013-02-28 Corinna Vinschen <vinschen@redhat.com>
12151
12152 * win32-low.c: Throughout, fix format strings and casts of
12153 printf-like functions to avoid type related warnings on all
12154 platforms.
12155 (get_child_debug_event): Print dwDebugEventCode as hex since
12156 that's how it's usually documented.
12157
736cd585
YQ
121582013-02-28 Yao Qi <yao@codesourcery.com>
12159
12160 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12161 pulongest.
12162
e1f58301
JW
121632013-02-27 Jiong Wang <jiwang@tilera.com>
12164
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
12171 initializer.
12172 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12173 (tile_store_gregset): Likewise.
12174
d171ca78
YQ
121752013-02-27 Yao Qi <yao@codesourcery.com>
12176
12177 * server.c (process_point_options): Print debug message when
12178 debug_threads is true.
12179
282bbdf3
YQ
121802013-02-26 Yao Qi <yao@codesourcery.com>
12181
12182 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12183
aca22551
PA
121842013-02-19 Pedro Alves <palves@redhat.com>
12185 Kai Tietz <ktietz@redhat.com>
12186
12187 PR gdb/15161
12188
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.
12192
4f3cee1c
YQ
121932013-02-18 Yao Qi <yao@codesourcery.com>
12194
12195 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12196
8e1d55a3
PA
121972013-02-14 Pedro Alves <palves@redhat.com>
12198
12199 Plug memory leak.
12200
12201 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12202 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12203
458820da
PA
122042013-02-14 Pedro Alves <palves@redhat.com>
12205
12206 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12207
baea0dae
PA
122082013-02-14 Pedro Alves <palves@redhat.com>
12209
12210 * tracepoint.c (save_string): Delete.
12211 (add_tracepoint_action): Use savestring instead of save_string.
12212
0b1afbb3
PA
122132013-02-12 Pedro Alves <palves@redhat.com>
12214
12215 * linux-xtensa-low.c: Ditto.
12216 * xtensa-xtregs.c: Ditto.
12217
8a4ac37e
PA
122182013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12219
12220 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12221 thread_db.
12222
148de6bb
MS
122232013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12224
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.
12228
55fac6e0
MS
122292013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12230
12231 * linux-aarch64-low.c (ps_get_thread_area): Replace
12232 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12233
176eb98c
MS
122342013-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>
12238
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.
12243
56f7af9c
MS
122442013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12245
43aaf8b6 12246 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
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.
12254
60f662b0
YQ
122552013-01-25 Yao Qi <yao@codesourcery.com>
12256
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.
12268
5ae4861a
YQ
122692013-01-18 Yao Qi <yao@codesourcery.com>
12270
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.
12286
85e00e85
YQ
122872013-01-16 Yao Qi <yao@codesourcery.com>
12288
12289 * linux-low.c (linux_resume_one_lwp): Don't check
12290 'lwp->bp_reinsert != 0'.
12291
4039cf45
JB
122922013-01-07 Joel Brobecker <brobecker@adacore.com>
12293 Pedro Alves <palves@redhat.com>
12294
12295 * lynx-low.c (ptrace_request_to_str): Define a temporary
12296 macro and use it to simplify this function's implementation.
12297
9044dee2
JB
122982013-01-07 Joel Brobecker <brobecker@adacore.com>
12299
12300 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12301 sets errno.
12302
e6352c8f
JB
123032013-01-07 Joel Brobecker <brobecker@adacore.com>
12304
12305 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12306
50681a27
JB
123072013-01-07 Joel Brobecker <brobecker@adacore.com>
12308
12309 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12310
3f6e77ef
JB
123112013-01-07 Joel Brobecker <brobecker@adacore.com>
12312
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.
12320
7fda33ae
JB
123212013-01-07 Joel Brobecker <brobecker@adacore.com>
12322
12323 * lynx-low.c (lynx_resume): Delete variable ret.
12324
b9786c74
JB
123252013-01-01 Joel Brobecker <brobecker@adacore.com>
12326
12327 * gdbreplay.c (gdbreplay_version): Update copyright year.
12328 * server.c (gdbserver_version): Likewise.
12329
8b93d60f
JB
123302012-12-17 Joel Brobecker <brobecker@adacore.com>
12331
12332 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12333 new thread.
12334
037335a7
JB
123352012-12-17 Joel Brobecker <brobecker@adacore.com>
12336
12337 * lynx-low.c (ptrace_request_to_str): Add handling for
12338 PTRACE_GETTRACESIG.
12339
52d4cbd8
JB
123402012-12-17 Joel Brobecker <brobecker@adacore.com>
12341
12342 * lynx-low.c (lynx_attach): Delete variable new_process.
12343
ab8f6ca9
JB
123442012-12-17 Joel Brobecker <brobecker@adacore.com>
12345
12346 * lynx-low.c (lynx_create_inferior): Delete variable
12347 new_process.
12348
78cbc024
JB
123492012-12-17 Joel Brobecker <brobecker@adacore.com>
12350
12351 * lynx-low.c (ptrace_request_to_str): Do not handle
12352 PTRACE_GETTHREADLIST if this macro does not exist.
12353
14a00470
YQ
123542012-12-15 Yao Qi <yao@codesourcery.com>
12355
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.
12360 <base>: New field.
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.
12378
61c125b9
TT
123792012-12-10 Tom Tromey <tromey@redhat.com>
12380
12381 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12382 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12383 macros.
12384 (.c.o): Rewrite.
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.
12427
e90e9ad9
TT
124282012-12-05 Tom Tromey <tromey@redhat.com>
12429
12430 PR gdb/14917:
12431 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12432
02d403bf 124332012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
12434
12435 * configure.ac: Check for linux/perf_event.h.
12436 * config.in: Regenerated.
12437 * configure: Regenerated.
12438
0270a750
PA
124392012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12440
12441 * hostio.c (handle_readlink): Decrease buffer size
12442 parameter passed to readlink by one byte.
12443
8c29b58e
YQ
124442012-11-26 Yao Qi <yao@codesourcery.com>
12445
12446 * configure.ac (build_warnings): Append '-Wempty-body'.
12447 * configure: Regenerated.
12448 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12449 body.
12450
8bdce1ff
PM
124512012-11-15 Pierre Muller <muller@sourceware.org>
12452
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>
12460 header.
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.
12464
02d403bf 124652012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
12466
12467 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12468 (various make rules): Remove -DGDBSERVER
12469
fbd5db48
YQ
124702012-11-09 Yao Qi <yao@codesourcery.com>
12471
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.
12478
b3dc46ff
AB
124792012-10-01 Andrew Burgess <aburgess@broadcom.com>
12480
12481 * server.c (handle_search_memory_1): Include access length in
12482 warning message.
12483
07c04788
HPN
124842012-09-05 Michael Brandt <michael.brandt@axis.com>
12485
12486 * linux-crisv32-low.c: Fix compile errors.
12487
918d227b
YQ
124882012-09-04 Yao Qi <yao@codesourcery.com>
12489
12490 * tracepoint.c (cmd_qtsv): Adjust debug message.
12491 Don't check CUR_TPOINT.
12492
18c1b81a
YQ
124932012-08-28 Yao Qi <yao@codesourcery.com>
12494
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
12499 freeargv.
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'.
12503
dc82f37b
YQ
125042012-08-23 Yao Qi <yao@codesourcery.com>
12505
12506 * server.h: Remove declaration of 'xsnprintf'.
12507
406b1477
KS
125082012-08-22 Keith Seitz <keiths@redhat.com>
12509
12510 * server.h: Include build-gnulib-gbserver/config.h.
12511 * gdbreplay.c: Likewise.
12512
e6712ff1
DE
125132012-08-08 Doug Evans <dje@google.com>
12514
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".
12523
12524 * configure.ac: Add check for strstr.
12525 * config.in: Regenerate.
12526 * configure: Regenerate.
12527
7c3270ae
UW
125282012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12529
12530 * hostio.c (handle_pread): If pread fails, fall back to attempting
12531 lseek/read.
12532 (handle_pwrite): Likewise for pwrite.
12533
b62e2b27
UW
125342012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12535
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.
12539
78a99e91
PA
125402012-07-31 Pedro Alves <palves@redhat.com>
12541
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.
12545
fcf303ab
UW
125462012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12547
12548 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12549 to 4-byte-align HW breakpoint addresses for Thumb.
12550
7255706c
YQ
125512012-07-27 Yao Qi <yao@codesourcery.com>
12552
12553 PR remote/14161.
12554
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.
12567
5a3f286f
YQ
125682012-07-27 Yao Qi <yao@codesourcery.com>
12569
12570 * server.c (process_point_options): Stop at 'X' when parsing.
12571
961bd387
ME
125722012-07-19 Michael Eager <eager@eagercon.com>
12573
a261b8f5 12574 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
12575 to hw_execute.
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.
12579
aa7c7447
JK
125802012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12581
12582 * gdbserver/linux-low.c (initialize_low): Call
12583 linux_ptrace_init_warnings.
12584
7f216e7c
DE
125852012-07-02 Doug Evans <dje@google.com>
12586
12587 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12588 pointer to int.
12589
d3ce09f5
SS
125902012-07-02 Stan Shebs <stan@codesourcery.com>
12591
12592 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12593 (ax.o): Add it to build rule.
12594 (ax-ipa.o): Ditto.
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
12600 effect.
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
12613 locally.
12614 * ax.c: Include format.h.
12615 (ax_printf): New function.
12616 (gdb_eval_agent_expr): Add printf opcode.
12617
2f8f6aed
YQ
126182012-06-13 Yao Qi <yao@codesourcery.com>
12619
12620 * server.c (start_inferior): Remove duplicated writes to fields
12621 'last_resume_kind' and 'last_status' of 'current_inferior'.
12622
0c9070b3
YQ
126232012-06-12 Yao Qi <yao@codesourcery.com>
12624 Pedro Alves <palves@redhat.com>
12625
12626 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12627 comment.
12628 * server.c (handle_v_cont): Extend comment.
12629
c52daf70
YQ
126302012-06-11 Yao Qi <yao@codesourcery.com>
12631
12632 * linux-low.c (linux_attach): Add 'static'.
12633
d38bbb0a
YQ
126342012-06-06 Yao Qi <yao@codesourcery.com>
12635
12636 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12637
89dc0afd
JK
126382012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12639
12640 Fix gcc -flto compilation warning.
12641 * server.c (main): Make variable multi_mode and attach volatile.
12642
75f62ce7
TJB
126432012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12644
12645 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12646 if the platform doesn't know about it.
12647
65f479b6
PA
126482012-05-30 Jeff Kenton <jkenton@tilera.com>
12649
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.
12654
0c5bf5a9
JK
126552012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12656
12657 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12658
a493e3e2
PA
126592012-05-24 Pedro Alves <palves@redhat.com>
12660
12661 PR gdb/7205
12662
43aaf8b6 12663 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 12664
2ea28649
PA
126652012-05-24 Pedro Alves <palves@redhat.com>
12666
12667 PR gdb/7205
12668
12669 Replace target_signal with gdb_signal throughout.
12670
8d409d16
MR
126712012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12672
12673 * linux-low.c (linux_store_registers): Avoid the copying sequence
12674 when no data has been retrieved by ptrace.
12675
23512c01
MGD
126762012-05-22 Will Deacon <will.deacon@arm.com>
12677
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
12681 already defined.
12682
4934b29e
MR
126832012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12684
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.
12688
bde24c0a
PA
126892012-05-11 Yao Qi <yao@codesourcery.com>
12690 Pedro Alves <palves@redhat.com>
12691
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
12700 recursion happens.
12701
623b6bdf
YQ
127022012-04-29 Yao Qi <yao@codesourcery.com>
12703
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.
12712
f15f9948
TJB
127132012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12714
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.
12728
38ea300a
PA
127292012-04-20 Pedro Alves <palves@redhat.com>
12730
12731 * configure: Regenerate.
12732
c971b7fa
PA
127332012-04-19 Pedro Alves <palves@redhat.com>
12734
43aaf8b6 12735 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 12736 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
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.
12741 (subdir_do): New.
12742 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 12743 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
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
12747 ACX_CONFIGURE_DIR.
12748 (GNULIB): New.
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.
c971b7fa 12756
809277f8
PA
127572012-04-19 Pedro Alves <palves@redhat.com>
12758
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.
12766
fd9bb8b8
PA
127672012-04-19 Pedro Alves <palves@redhat.com>
12768
12769 * Makefile.in (generated_files): New.
12770 (server_h): Remove the explicit dependency on config.h, and depend
12771 on $generated_files.
12772
1c298c66
PA
127732012-04-19 Pedro Alves <palves@redhat.com>
12774
12775 * Makefile.in (INCGNU): Add -Ignulib.
12776
57c4b50b
PA
127772012-04-19 Pedro Alves <palves@redhat.com>
12778
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.
12784
1030e047
PA
127852012-04-19 Pedro Alves <palves@redhat.com>
12786
12787 * config.in: Regenerate.
12788
447d4319
PA
127892012-04-19 Pedro Alves <palves@redhat.com>
12790
12791 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12792 * server.h (memmem): Remove declaration.
12793 * config.in: Regenerate.
12794 * configure: Regenerate.
12795
aad9eab9
YQ
127962012-04-19 Yao Qi <yao@codesourcery.com>
12797
12798 * Makefile.in (SFILES): Add common/vec.c.
12799 (OBS): Add vec.o.
12800 (vec.o): New rule.
12801
3e10640f
YQ
128022012-04-19 Yao Qi <yao@codesourcery.com>
12803
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.
12808
71622373
PA
128092012-04-18 Pedro Alves <palves@redhat.com>
12810
12811 * aclocal.m4: Regenerate.
12812 * configure: Regenerate.
12813
80d26939
YQ
128142012-04-16 Yao Qi <yao@codesourcery.com>
12815
12816 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12817 duplicated on address.
12818
42476b70
YQ
128192012-04-16 Yao Qi <yao@codesourcery.com>
12820
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'.
12829 Update callers.
12830 (tracepoint_send_agent): New.
12831 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12832
7bc83639
YQ
128332012-04-16 Yao Qi <yao@codesourcery.com>
12834
12835 * tracepoint.c (download_tracepoints): Moved to ...
12836 (cmd_qtstart): ... here.
12837
5f18041e
YQ
128382012-04-14 Yao Qi <yao@codesourcery.com>
12839
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.
12847
55a8c076
YQ
128482012-04-14 Yao Qi <yao@codesourcery.com>
12849
12850 Import gnulib module inttypes.
12851 * aclocal.m4, config.in, configure: Regenerated.
12852
dc750257
YQ
128532012-04-14 Yao Qi <yao@codesourcery.com>
12854
12855 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12856 Makefile and config.status at last.
12857
0ab5faf9
YQ
128582012-04-13 Yao Qi <yao@codesourcery.com>
12859
12860 * tracepoint.c: Include stdint.h unconditionally.
12861
18f5fd81
TJB
128622012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12863
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.
12869
4d47af5c
L
128702012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12871
12872 * Makefile.in (clean): Also remove x32.c x32-linux.c
12873 x32-avx.c x32-avx-linux.c.
12874 (x32.o): New target.
12875 (x32.c): Likewise.
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.
12882
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.
12889
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.
12894
ecedbe58
PA
128952012-04-13 Pedro Alves <palves@redhat.com>
12896
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
12901 the sub-make.
12902
c92b5177
L
129032012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12904
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.
12913
214d508e
L
129142012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12915
12916 PR gdb/13969
12917 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12918 e_machine field.
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.
12923
c9a1864a
YQ
129242012-04-12 Yao Qi <yao@codesourcery.com>
12925
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.
12937
367ba2c2
MR
129382012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12939
12940 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12941
9d236627
PA
129422012-04-05 Pedro Alves <palves@redhat.com>
12943
12944 -Werror=strict-aliasing
12945
12946 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12947 pointer.
12948
111217b3
PA
129492012-04-04 Pedro Alves <palves@redhat.com>
12950
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.
12954
8365dcf5
TJB
129552012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12956
12957 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12958 are available.
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.
12963
689cc2ae
PA
129642012-03-29 Pedro Alves <palves@redhat.com>
12965
12966 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12967 Correct ptrace arguments.
12968
c14dfd32
PA
129692012-03-28 Pedro Alves <palves@redhat.com>
12970
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
12977 field.
12978 * linux-low.c (linux_fetch_registers): Try the
12979 the_low_target.fetch_register hook first.
12980
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.
12995
63c88e13
PA
129962012-03-26 Pedro Alves <palves@redhat.com>
12997
12998 * server.c (handle_qxfer_libraries): Don't bail early if
12999 the_target->qxfer_libraries_svr4 is not NULL.
13000
fb723180
PA
130012012-03-26 Pedro Alves <palves@redhat.com>
13002
13003 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13004
0afae3cf
PA
130052012-03-23 Pedro Alves <palves@redhat.com>
13006
13007 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13008 "library-list-svr4" element's start tag when the the DSO list is
13009 empty.
13010
485f1ee4
PA
130112012-03-23 Pedro Alves <palves@redhat.com>
13012
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
13015 size.
13016
a5362b9a
TS
130172012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13018
13019 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13020 struct siginfo.
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
13026 struct siginfo.
13027
d226c142
MF
130282012-03-21 Mike Frysinger <vapier@gentoo.org>
13029
13030 * .gitignore: Ignore more files.
13031
122f36ef
PA
130322012-03-19 Pedro Alves <palves@redhat.com>
13033 Jan Kratochvil <jan.kratochvil@redhat.com>
13034
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
13038 of a process.
13039
fc3e5175
YQ
130402012-03-15 Yao Qi <yao@codesourcery.com>
13041
13042 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13043 handling to ...
13044 (cmd_qtdp): ... here.
13045
8d0d92cd
YQ
130462012-03-15 Yao Qi <yao@codesourcery.com>
13047
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.
13057
87b0bb13
JK
130582012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13059
13060 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13061 linux_ptrace_attach_warnings.
13062
5f572dec
JK
130632012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13064
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
13071 of these targets.
13072 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13073
f4647387
YQ
130742012-03-08 Yao Qi <yao@codesourcery.com>
13075 Pedro Alves <palves@redhat.com>
13076
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.
13082
9b224c5e
PA
130832012-03-07 Pedro Alves <palves@redhat.com>
13084
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
13088 ptrace call.
13089 * server.c (program_signals, program_signals_p): New.
13090 (handle_general_set): Handle QProgramSignals.
13091 * server.h (program_signals, program_signals_p): Declare.
13092
e237a7e2
JK
130932012-03-05 Pedro Alves <palves@redhat.com>
13094 Jan Kratochvil <jan.kratochvil@redhat.com>
13095
13096 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13097 New comment why.
13098
5808517f
YQ
130992012-03-03 Yao Qi <yao@codesourcery.com>
13100
13101 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13102 agent_look_up_symbols.
13103
58b4daa5
YQ
131042012-03-03 Yao Qi <yao@codesourcery.com>
13105
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
13110 common/agent.c.
13111 Update callers.
13112
8ffcbaaf
YQ
131132012-03-03 Yao Qi <yao@codesourcery.com>
13114
13115 * tracepoint.c (gdb_agent_capability): New global.
13116 (in_process_agent_loaded_ust): Renamed to
13117 `in_process_agent_supports_ust'.
13118 Update callers.
13119 (in_process_agent_supports_ust): Call agent_capability_check.
13120 (clear_installed_tracepoints): Assert that agent supports
13121 agent.
13122
d1feda86
YQ
131232012-03-03 Yao Qi <yao@codesourcery.com>
13124
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.
13133
2fa291ac
YQ
131342012-03-03 Yao Qi <yao@codesourcery.com>
13135
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
13142 common/agent.c.
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.
13154
05044653
PA
131552012-03-02 Pedro Alves <palves@redhat.com>
13156
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.
13164
8d00225b
YQ
131652012-03-02 Yao Qi <yao@codesourcery.com>
13166
13167 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13168 debug log.
13169
19560ba5
YQ
131702012-03-02 Yao Qi <yao@codesourcery.com>
13171
13172 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13173 `stop_pc' and `tpoint'. Update caller.
13174
1faeff08
MR
131752012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13176
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
13183 regsets.
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
13190 prototype.
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
13202 than mips_regmap.
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
13207 initializer.
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
13224 srv_xmlfiles.
13225 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13226 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13227
c03e6ccc
YQ
132282012-02-29 Yao Qi <yao@codesourcery.com>
13229 Pedro Alves <palves@redhat.com>
13230
13231 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13232 `step_over_finished' is true.
13233
644cebc9
PA
132342012-02-27 Pedro Alves <palves@redhat.com>
13235
13236 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13237 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13238
c14d7ab2
PA
132392012-02-27 Pedro Alves <palves@redhat.com>
13240
13241 PR server/9684
13242 * linux-low.c (pid_is_stopped): New.
13243 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13244
412c89dd
LM
132452012-02-25 Luis Machado <lgustavo@codesourcery.com>
13246
13247 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13248 of conditions.
13249
b745defe
MR
132502012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13251
13252 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13253
9f3a5c85
LM
132542012-02-24 Luis Machado <lgustavo@codesourcery>
13255
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.
13261
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
13267 conditions.
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.
13274
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.
13279
13280 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13281 (need_step_over_p): Take target-side breakpoint condition into
13282 consideration.
13283
5e1dc496
LM
132842012-02-24 Luis Machado <lgustavo@codesourcery>
13285
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.
13291
13292 * ax.h: New include file.
13293 * ax.c: New source file.
13294
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
13300 to ax.h.
13301 (unparse_agent_expr) Rename to ...
13302 (gdb_unparse_agent_expr): ... this, make it non-static and move
13303 to ax.h.
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
13322 and move to ax.c.
13323 (eval_tracepoint_agent_expr): New function.
13324 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 13325 non-static.
5e1dc496
LM
13326 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13327 ax.c.
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 (...).
13342
13343 * Makefile.in: Update ax.c and IPA dependencies.
13344
277e4e52
PA
133452012-02-24 Pedro Alves <palves@redhat.com>
13346
13347 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13348 (cmd_bigqtbuffer_circular): ... this. Only handle
13349 'QTBuffer:circular:'.
13350 (handle_tracepoint_general_set): Adjust.
13351
bf4c19f7
YQ
133522012-02-16 Yao Qi <yao@codesourcery.com>
13353
13354 * inferiors.c: Move code to ...
13355 * dll.c: .... here. New.
13356 * server.h: Declare clear_dlls.
13357 * Makefile.in (SFILES): Add dll.c.
13358 (OBS): Add dll.o
13359 (dll.o): New rule.
13360
d73f2619
YQ
133612012-02-11 Yao Qi <yao@codesourcery.com>
13362
13363 * server.c: (handle_monitor_command): Add a new parameter
13364 `own_buf'.
13365 (handle_query): Update caller.
13366
f8255c2a
JB
133672012-02-09 Joel Brobecker <brobecker@adacore.com>
13368
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
13372 is not defined.
13373
da84f473
PA
133742012-02-02 Pedro Alves <palves@redhat.com>
13375
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.
13381
e886a173
PA
133822012-02-02 Pedro Alves <palves@redhat.com>
13383
13384 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13385 inferior.
13386
be07f1a2
PA
133872012-01-27 Pedro Alves <palves@redhat.com>
13388
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.
13397
d8301ad1
JK
133982012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13399
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.
13404
01b17894
PA
134052012-01-23 Pedro Alves <palves@redhat.com>
13406
13407 * server.c (main): Avoid yet another case of infinite loop while
13408 detaching/killing after a longjmp.
13409
e825046f
JK
134102012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13411
13412 Code cleanup.
13413 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13414
b9e7b9c3
UW
134152012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13416
13417 * hostio.c (handle_readlink): New function.
13418 (handle_vFile): Call it to handle "vFile:readlink" packets.
13419
901f9912
UW
134202012-01-20 Pedro Alves <palves@redhat.com>
13421 Ulrich Weigand <ulrich.weigand@linaro.org>
13422
13423 * server.c (handle_v_requests): Only support vAttach and vRun to
13424 start multiple processes when in extended protocol mode.
13425
fc1ab1a0
PA
134262012-01-17 Pedro Alves <palves@redhat.com>
13427
13428 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13429 memalign plus mprotect to allocate the scratch buffer.
13430
7d5d4e98
PA
134312012-01-13 Pedro Alves <palves@redhat.com>
13432
13433 * server.c (attach_inferior): Clear `cont_thread'.
13434
f128d5e9
PA
134352012-01-13 Pedro Alves <palves@redhat.com>
13436
13437 * server.c (main): Avoid infinite loop while detaching/killing
13438 after a longjmp.
13439
06db92f0
DE
134402012-01-09 Doug Evans <dje@google.com>
13441
13442 * server.c (start_inferior): Set last_ptid in --wrapper case.
13443
32d92999
YQ
134442012-01-06 Yao Qi <yao@codesourcery.com>
13445
13446 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13447 defined.
13448 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13449
5e0a92a9
YQ
134502012-01-04 Yao Qi <yao@codesourcery.com>
13451
13452 * tracepoint.c (cmd_qtdp): Print debug message
13453 for static tracepoint.
13454
ae639e8c
YQ
134552012-01-04 Yao Qi <yao@codesourcery.com>
13456
13457 * tracepoint.c (trace_vdebug): Differentiate debug message
13458 between gdbserver and IPA.
13459
f72429c5
YQ
134602012-01-03 Yao Qi <yao@codesourcery.com>
13461
13462 * tracepoint.c (tracepoint_was_hit): Don't collect for
13463 static tracepoint.
13464
12c3e59c
JB
134652012-01-02 Joel Brobecker <brobecker@adacore.com>
13466
13467 * terminal.h: Reformat copyright header.
13468
67827812
JB
134692012-01-02 Joel Brobecker <brobecker@adacore.com>
13470
13471 * server.c (gdbserver_version): Update copyright year.
13472 * gdbreplay.c (gdbreplay_version): Likewise.
13473
3e52c33d
JK
134742011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13475
13476 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13477
13478 Revert:
13479 2011-12-18 Hui Zhu <teawater@gmail.com>
13480 * linux-low.c (linux_create_inferior): Save return value to ret.
13481
66f1260e
HZ
134822011-12-18 Hui Zhu <teawater@gmail.com>
13483
13484 * linux-low.c (linux_create_inferior): Save return value to ret.
13485
e77616d7
DE
134862011-12-16 Doug Evans <dje@google.com>
13487
e7b06c57
DE
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.
13501
e77616d7
DE
13502 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13503 in debugging output.
13504
82067193
YQ
135052011-12-15 Yao Qi <yao@codesourcery.com>
13506
13507 * tracepoint.c: Include sys/syscall.h.
13508 (gdb_ust_thread): Remove preprocessor conditional.
13509
82bfbe7e
PA
135102011-12-14 Pedro Alves <pedro@codesourcery.com>
13511
13512 * linux-low.c (linux_detach_one_lwp): Call
13513 the_low_target.prepare_to_resume before detaching.
13514
712c6575
YQ
135152011-12-14 Yao Qi <yao@codesourcery.com>
13516
13517 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13518 of write.
13519
d54d1edf
YQ
135202011-12-14 Yao Qi <yao@codesourcery.com>
13521
13522 * i386-low.c (i386_low_stopped_data_address): Initialize local
13523 variable `control'.
13524
6210a125
PA
135252011-12-13 Pedro Alves <pedro@codesourcery.com>
13526
13527 PR remote/13492
13528
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.
13533
2ece8244
YQ
135342011-12-13 Yao Qi <yao@codesourcery.com>
13535
13536 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13537 macros.
13538 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13539
784867a5
JK
135402011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13541
13542 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13543 Print new debug message for such case.
13544
6bf36717
JK
135452011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13546
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
13558 buffers.
13559
50275556
MR
135602011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13561
13562 * linux-low.c (fetch_register, store_register): Make code
13563 consistent, fix formatting.
13564
7325beb4
MR
135652011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13566
13567 * linux-low.c (usr_store_inferior_registers): Factor out code
13568 to handle individual registers into...
13569 (store_register): ... this new function.
13570
c642a434
UW
135712011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13572
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.
13581
13582 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13583 and <sys/uio.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
13602 register sets.
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.
13607
2268b414
JK
136082011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13609 Jan Kratochvil <jan.kratochvil@redhat.com>
13610
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):
13613 New.
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.
13624
d6db1fab
UW
136252011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13626
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.
13632
242f5f1c
SS
136332011-11-24 Stan Shebs <stan@codesourcery.com>
13634
13635 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13636
f196051f
SS
136372011-11-17 Stan Shebs <stan@codesourcery.com>
13638
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.
13653
405f8e94
SS
136542011-11-14 Stan Shebs <stan@codesourcery.com>
13655 Kwok Cheung Yeung <kcy@codesourcery.com>
13656
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
13668 arguments.
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
13683 structure.
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
13689 pad space.
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.
13704
1e4d1764
YQ
137052011-11-14 Yao Qi <yao@codesourcery.com>
13706
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.
13713
5c73ff4e
YQ
137142011-11-14 Yao Qi <yao@codesourcery.com>
13715
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.
13720 New.
13721 (download_tracepoints): Move some code to ...
13722 (download_tracepoint_1): ... here. New.
13723
86a30030
YQ
137242011-11-08 Yao Qi <yao@codesourcery.com>
13725
13726 * remote-utils.c (relocate_instruction): A comment fix.
13727
8d26e50c
JB
137282011-11-07 Joel Brobecker <brobecker@adacore.com>
13729
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.
13738
a59306a3
YQ
137392011-11-05 Yao Qi <yao@codesourcery.com>
13740
13741 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13742 address as TPOINT's.
13743
3065dfb6
SS
137442011-11-02 Stan Shebs <stan@codesourcery.com>
13745
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.
13749
fd0d8c7c
YQ
137502011-11-02 Yao Qi <yao@codesourcery.com>
13751
13752 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13753
609086b1
YQ
137542011-11-02 Yao Qi <yao@codesourcery.com>
13755
13756 * target.h: Fix a typo in comment.
13757
b9fd1791
PA
137582011-10-31 Pedro Alves <pedro@codesourcery.com>
13759
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
13764 check_mem_write.
13765
03583c20
UW
137662011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13767
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.
13785
723b724b
MF
137862011-09-29 Mike Frysinger <vapier@gentoo.org>
13787
13788 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13789 ifdef check.
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.
13798
55329a5c 137992011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
13800
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.
13810
55329a5c 138112011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
13812
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.
13842
6b9801d4
SS
138432011-09-15 Stan Shebs <stan@codesourcery.com>
13844
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.
13870
bf15cbda
SS
138712011-09-08 Stan Shebs <stan@codesourcery.com>
13872
13873 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13874 (i386_emit_epilogue): Restore %ebx.
13875
943ca1dd
JZ
138762011-08-31 Jie Zhang <jzhang918@gmail.com>
13877
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.
13882
e3deef73
LM
138832011-08-24 Luis Machado <lgustavo@codesourcery.com>
13884
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.
13890
13da1c97
LM
138912011-08-24 Luis Machado <lgustavo@codesourcery.com>
13892
13893 * configure.srv: Add linux-procfs.o dependencies.
13894
881127c9
YQ
138952011-08-14 Yao Qi <yao@codesourcery.com>
13896
13897 * target.h (struct target_ops): Fix indent.
13898 * win32-low.c (win32_target_ops): Fix comment.
13899
58dbd541
YQ
139002011-08-14 Andrew Jenner <andrew@codesourcery.com>
13901 Yao Qi <yao@codesourcery.com>
13902
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.
13910
78d85199
YQ
139112011-08-14 Andrew Stubbs <ams@codesourcery.com>
13912 Yao Qi <yao@codesourcery.com>
13913
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.
43aaf8b6
PA
13920 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13921 to NULL.
78d85199 13922
a959a88d
EZ
139232011-08-05 Eli Zaretskii <eliz@gnu.org>
13924
13925 * win32-low.c: Include <stdint.h>.
13926
1ced966e
PA
139272011-07-22 Pedro Alves <pedro@codesourcery.com>
13928
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.
13938
d26e3629
KY
139392011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13940
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
13955 common/ptid.h.
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
13973 common/buffer.h.
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.
13977
2275a1a7
PA
139782011-07-20 Pedro Alves <pedro@codesourcery.com>
13979
13980 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13981 symbol error.
13982
0a5b1e09
PA
139832011-05-31 Pedro Alves <pedro@codesourcery.com>
13984
13985 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13986 assertion.
13987 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13988
6938fd34
YQ
139892011-05-26 Yao Qi <yao@codesourcery.com>
13990
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.
13994
b481f9e0
TT
139952011-05-16 Adrian Cornish <gnu@bluedreamer.com>
13996
13997 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
13998 __FILE__ and __LINE__ to internal_error.
13999
98a5dd13
DE
140002011-05-13 Doug Evans <dje@google.com>
14001
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.
14007
d248b706
KY
140082011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14009
14010 * server.c (handle_query): Add EnableDisableTracepoints to the list
14011 of supported features.
43aaf8b6 14012 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 14013 tracepoints.
43aaf8b6
PA
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
14020 tracepoints.
14021 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 14022
84e578fb
DE
140232011-05-10 Doug Evans <dje@google.com>
14024
14025 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14026
71f55dd8
DE
140272011-05-04 Doug Evans <dje@google.com>
14028
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
14033 directly.
14034
4d393d60
JM
140352011-05-04 Joseph Myers <joseph@codesourcery.com>
14036
14037 * README: Don't mention xscale*-*-linux*.
14038 * configure.srv (xscale*-*-linux*): Don't handle target.
14039
b00ad6ff
NF
140402011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14041
14042 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14043 casting pointers.
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.
14047
af96c192
YQ
140482011-04-26 Yao Qi <yao@codesourcery.com>
14049
43aaf8b6
PA
14050 * linux-low.c: Move common macros to linux-ptrace.h.
14051 Include linux-ptrace.h.
af96c192
YQ
14052 * Makefile.in (linux_ptrace_h): New.
14053 (linux-low.o): Depends on linux-ptrace.h.
14054
03f2bd59
JK
140552011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14056
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.
14067
7a9dd1b2
TT
140682011-04-19 Tom Tromey <tromey@redhat.com>
14069
14070 * win32-low.c (handle_load_dll): Remove duplicate "the".
14071
81239425
PM
140722011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14073
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
14078 warning.
14079
9e0627f1
PM
140802011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14081
14082 * gdbserver/server.h (Macro _): Define it if not available.
14083
588eebee
MS
140842011-03-14 Michael Snyder <msnyder@vmware.com>
14085
348af9f7 14086 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 14087
43f70d4c
JB
140882011-03-10 Joel Brobecker <brobecker@adacore.com>
14089
14090 * Makefile.in (maintainer-clean realclean distclean): Remove
14091 "make ... subdir_do" command.
14092
348af9f7
MS
140932011-03-10 Michael Snyder <msnyder@vmware.com>
14094
14095 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14096
14097 * server.c (handle_v_run): Free alloced buffer on early return.
14098
e637a4f5
YQ
140992011-03-09 Yao Qi <yao@codesourcery.com>
14100
14101 Revert:
14102 2011-03-04 Yao Qi <yao@codesourcery.com>
14103
14104 * Makefile.in: Remove GNU make feature --directory.
14105
14106 2011-03-05 Yao Qi <yao@codesourcery.com>
14107
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.
14112
14113 2011-02-11 Yao Qi <yao@codesourcery.com>
14114
14115 * configure.ac: Call AC_PROG_RANLIB.
14116 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14117 * configure: Regenerate.
14118
e6edda56
JK
141192011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14120
14121 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14122
e5141119
JB
141232011-03-06 Yao Qi <yao@codesourcery.com>
14124
14125 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14126
64794aa4
JB
141272011-03-05 Yao Qi <yao@codesourcery.com>
14128
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.
14133
7a762829
YQ
141342011-03-04 Yao Qi <yao@codesourcery.com>
14135
14136 * Makefile.in: Remove GNU make feature --directory.
14137
348af9f7
MS
141382011-03-04 Michael Snyder <msnyder@vmware.com>
14139
14140 * server.c (queue_stop_reply): Call xmalloc not malloc.
14141
141422011-03-02 Michael Snyder <msnyder@vmware.com>
14143
14144 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14145
9f72fee2
MS
141462011-02-28 Michael Snyder <msnyder@vmware.com>
14147
588eebee
MS
14148 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14149 (cmd_qtframe): Ditto.
14150 (cmd_qtbuffer): Ditto.
14151 (cmd_bigqtbuffer): Ditto.
14152
9f72fee2
MS
14153 * utils.c (decimal2str): Initialize 'width' to nine, then
14154 don't mess with it.
14155
8040bd49
UW
141562011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14157
14158 * hostio.c (require_data): Free *data, not data.
14159
7e52cbd0
JK
141602011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14161
14162 * hostio.c (require_data): Use free, not xfree.
14163
9130f83e
MS
141642011-02-27 Michael Snyder <msnyder@vmware.com>
14165
4b812f4e
MS
14166 * server.c (handle_query): Discard unused value.
14167
9130f83e
MS
14168 * hostio.c (require_data): Free malloc memory before returning
14169 error.
14170
69d37113
MS
141712011-02-26 Michael Snyder <msnyder@vmware.com>
14172
14173 * linux-low.c (list_threads): Call closedir for dirent.
14174
35f5825a
MS
141752011-02-27 Michael Snyder <msnyder@vmware.com>
14176
2a589cef
MS
14177 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14178 a case statement falls through.
14179
0adea5f7
MS
14180 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14181
35f5825a
MS
14182 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14183 in comparison.
14184
238f1c74
MS
141852011-02-26 Michael Snyder <msnyder@vmware.com>
14186
14187 * utils.c (decimal2str): Eliminate dead code and dead param.
14188 (pulongest): Drop dead param from call to decimal2str.
14189 (plongest): Ditto.
14190
633ff500
JB
141912011-02-24 Joel Brobecker <brobecker@adacore.com>
14192
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.
14197
f9c6ff72
HZ
141982011-02-21 Hui Zhu <teawater@gmail.com>
14199
14200 * tracepoint.c (tp_printf): New function.
14201 (eval_agent_expr): Handle gdb_agent_op_printf.
14202
94d5e490
TT
142032011-02-18 Tom Tromey <tromey@redhat.com>
14204
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.
14209
c7f96d2b
TT
142102011-02-18 Tom Tromey <tromey@redhat.com>
14211
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
14216 cases.
14217
0feedb2c
JK
142182011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14219
14220 * aclocal.m4: Regenerated with aclocal-1.11.1.
14221
b3b9301e
PA
142222011-02-14 Pedro Alves <pedro@codesourcery.com>
14223
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,
14230 and use it.
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.
14236
4f3e6fb7
YQ
142372011-02-11 Yao Qi <yao@codesourcery.com>
14238
14239 * configure.ac: Call AC_PROG_RANLIB.
14240 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14241 * configure: Regenerate.
14242
764880b7
PA
142432011-02-07 Pedro Alves <pedro@codesourcery.com>
14244
14245 * server.c (gdb_read_memory): Change return semantics to allow
14246 partial transfers.
14247 (handle_search_memory_1): Adjust.
14248 (process_serial_event) <'m' packet>: Handle partial transfers.
14249 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14250
1c79eb8a
PA
142512011-01-28 Pedro Alves <pedro@codesourcery.com>
14252
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
14268 supply_register.
14269 * tracepoint.c (fetch_traceframe_registers): Update comment.
14270
85724a0e
PA
142712011-01-28 Pedro Alves <pedro@codesourcery.com>
14272
14273 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14274 buffer explicit.
14275
d08aafef
PA
142762011-01-25 Pedro Alves <pedro@codesourcery.com>
14277
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.
14296
493e2a69
MS
142972011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14298
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.
14310 * server.c: Ditto.
14311 * server.h: Ditto.
14312 * thread-db.c: Ditto.
14313 * tracepoint.c: Ditto.
14314 * utils.c: Ditto.
14315 * win32-low.h: Ditto.
14316
44944448
JB
143172011-01-05 Joel Brobecker <brobecker@adacore.com>
14318
14319 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14320 update.
14321
71ce852c
JB
143222011-01-01 Joel Brobecker <brobecker@adacore.com>
14323
14324 * server.c (gdbserver_version): Update copyright year in version
14325 output.
14326 * gdbreplay.c (gdbreplay_version): Ditto.
14327
eb826dc6
MF
143282010-12-29 Jie Zhang <jie.zhang@analog.com>
14329
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.
14338
39ab222a
MF
143392010-12-23 Mike Frysinger <vapier@gentoo.org>
14340
14341 * .gitignore: New file.
14342
a1f2ce7d
MF
143432010-11-16 Mike Frysinger <vapier@gentoo.org>
14344
14345 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14346
f474844c
JZ
143472010-10-22 Jie Zhang <jie@codesourcery.com>
14348
14349 * Makefile.in: Add FLAGS_TO_PASS variable.
14350 (install): Remove dependency of install-only and recursively
14351 invoke make for install-only.
14352
f1048712
DE
143532010-10-04 Doug Evans <dje@google.com>
14354
14355 * Makefile.in (uninstall): Use $(DESTDIR).
14356
b53a1623
PA
143572010-09-24 Pedro Alves <pedro@codesourcery.com>
14358
e6ee044d
PA
14359 PR gdb/11842
14360
b53a1623
PA
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
14364 si_code < 0.
14365
fa1bd1e4
JB
143662010-09-13 Joel Brobecker <brobecker@adacore.com>
14367
14368 * lynx-i386-low.c: New file.
14369 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14370
47fac8f8
JB
143712010-09-13 Joel Brobecker <brobecker@adacore.com>
14372
14373 * lynx-low.c (ptrace_request_to_str): Remove handling for
14374 request values that have been removed in LynxOS 5.x.
14375
1adfc54d
JB
143762010-09-13 Joel Brobecker <brobecker@adacore.com>
14377
14378 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14379 <ptrace.h>
14380
c2a66c29
NS
143812010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14382
14383 * configure.ac: Add --enable-inprocess-agent option.
14384 * configure: Rebuilt.
14385
32fcada3
YQ
143862010-09-06 Yao Qi <yao@codesourcery.com>
14387
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.
14393
0cccb683
YQ
143942010-09-06 Yao Qi <yao@codesourcery.com>
14395
14396 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14397 on return.
14398
423ec54c
JK
143992010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14400
14401 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14402
12ac6819
PA
144032010-09-06 Pedro Alves <pedro@codesourcery.com>
14404
14405 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14406 "$(IPA_DEPFILES)".
14407
8ed54b31
JB
144082010-09-01 Joel Brobecker <brobecker@adacore.com>
14409
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.
14417
bb0116a4
JB
144182010-09-01 Joel Brobecker <brobecker@adacore.com>
14419
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.
14424
a778ab81 144252010-09-01 Joel Brobecker <brobecker@adacore.com>
14426
14427 * gdbreplay.c: Move include of alloca.h up, next to include of
14428 malloc.h.
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.
14432
8b034a19 144332010-09-01 Joel Brobecker <brobecker@adacore.com>
14434
14435 * Makefile.in (memmem.o): Build with -Wno-error.
14436
144372010-09-01 Joel Brobecker <brobecker@adacore.com>
14438
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.
14443
144442010-09-01 Joel Brobecker <brobecker@adacore.com>
14445
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.
14450
1a981360
PA
144512010-08-28 Pedro Alves <pedro@codesourcery.com>
14452
14453 * linux-low.c (__SIGRTMIN): Define if not already defined.
14454 (linux_create_inferior): Check for __ANDROID__ rather than
14455 __SIGRTMIN.
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
14464 __SIGRTMIN.
14465
b4d51a55
PA
144662010-08-28 Pedro Alves <pedro@codesourcery.com>
14467
14468 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14469 debug_threads check. Avoid a linear search when not doing debug
14470 output.
14471
ec48365d
PA
144722010-08-27 Pedro Alves <pedro@codesourcery.com>
14473
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
14483 gdb_fildes_t.
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.
14489
854d88f0
PA
144902010-08-27 Pedro Alves <pedro@codesourcery.com>
14491
14492 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14493 * configure: Regenerate.
14494
0146f85b
PA
144952010-08-27 Pedro Alves <pedro@codesourcery.com>
14496
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.
14508
90d74c30
PA
145092010-08-26 Pedro Alves <pedro@codesourcery.com>
14510
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.
14530
fd467969
PA
145312010-08-26 Pedro Alves <pedro@codesourcery.com>
14532
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.
14541
331e2f5f
PA
145422010-08-26 Pedro Alves <pedro@codesourcery.com>
14543
14544 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14545
e581f2b4
PA
145462010-08-26 Pedro Alves <pedro@codesourcery.com>
14547
14548 * gdbreplay.c (remote_error): New.
14549 (gdbchar): 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
14555 descriptor.
14556
3c11dd79
PA
145572010-08-25 Pedro Alves <pedro@codesourcery.com>
14558
14559 * linux-low.c (linux_wait_1): Move non-debugging code out of
14560 `debug_threads' control.
14561
d20a8ad9
PA
145622010-08-25 Pedro Alves <pedro@codesourcery.com>
14563
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.
14570
964e4306
PA
145712010-08-25 Pedro Alves <pedro@codesourcery.com>
14572
14573 PR threads/10729
14574
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.
14583
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.
14596
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
14601 dr_status_mirror.
14602 (i386_initial_stuff): Clear dr_status_mirror and
14603 dr_control_mirror.
14604 (i386_get_thread_context): Adjust.
14605 (i386_set_thread_context): Adjust.
14606 (i386_thread_added): Adjust.
14607
5f21a75b
PA
146082010-08-24 Pedro Alves <pedro@codesourcery.com>
14609
14610 * linux-low.h (linux_thread_area): Delete declaration.
14611
3e4c1235
TS
146122010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14613
14614 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14615 after its termination.
14616
1971b033
PA
146172010-08-09 Pedro Alves <pedro@codesourcery.com>
14618
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".
14625
310444ac
PA
146262010-07-31 Pedro Alves <pedro@codesourcery.com>
14627
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).
14632
a19cae16
JK
146332010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14634
14635 * Makefile.in (signals_def): New.
14636 (server_h): Append include/gdb/signals.h and signals_def.
14637 (server.o): Append signals_def.
14638
30d50328
JK
146392010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14640
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.
14644
5c3216e2
OS
146452010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14646
c6f46ca0
OS
14647 * server.c (handle_query): strcpy() the returned string from paddress()
14648 instead of sprintf().
5c3216e2
OS
14649 * utils.c (paddress): Return phex_nz().
14650
6bd31874
JB
146512010-07-07 Joel Brobecker <brobecker@adacore.com>
14652
14653 * server.c (handle_v_cont): Call mourn_inferior if process
14654 just exited.
14655 (myresume): Likewise.
14656
0fb4aa4b
PA
146572010-07-01 Pedro Alves <pedro@codesourcery.com>
14658
14659 Static tracepoints, and integration with UST.
14660
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.
14695 (ust_ops): New.
14696 (GET_UST_SYM): New.
14697 (USTF): New.
14698 (dlsym_ust): New.
14699 (ust_marker_to_static_tracepoint): New.
14700 (gdb_probe): 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.
14710 (next_st): 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.
14739 (UST_CFLAGS): New.
14740 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14741 * config.in, configure: Regenerate.
14742
9e4344e5
PA
147432010-06-20 Ian Lance Taylor <iant@google.com>
14744 Pedro Alves <pedro@codesourcery.com>
14745
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.
14749
c6beb2cb
PA
147502010-06-20 Pedro Alves <pedro@codesourcery.com>
14751
14752 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14753 conditions in gdbserver.
14754
d2ed6730
UW
147552010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14756
14757 * spu-low.c (spu_read_memory): Wrap around local store limit.
14758 (spu_write_memory): Likewise.
14759
4e29fb54
PA
147602010-06-15 Pedro Alves <pedro@codesourcery.com>
14761
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
14764 LONGEST uses.
14765 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14766 uses.
14767 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14768 uses with LONGEST uses.
14769
6a271cae
PA
147702010-06-14 Stan Shebs <stan@codesourcery.com>
14771 Pedro Alves <pedro@codesourcery.com>
14772
14773 Bytecode compiler.
14774
14775 * linux-x86-low.c: Include limits.h.
14776 (add_insns): New.
14777 (always_true): New.
14778 (EMIT_ASM): New.
14779 (EMIT_ASM32): 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):
14820 Export in the IPA.
14821 (condition_true_at_tracepoint): If there's a compiled condition,
14822 run that.
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.
14842
92b72907
UW
148432010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14844
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.
14847
fa593d66
PA
148482010-06-01 Pedro Alves <pedro@codesourcery.com>
14849 Stan Shebs <stan@codesourcery.com>
14850
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
14880 do it if so.
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
14934 type.
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'.
43aaf8b6
PA
15004 <actions_str, step_actions, step_actions_str>: Only include in
15005 GDBserver.
fa593d66
PA
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):
15022 New.
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.
15033 (cmpxchg): 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
15054 IPA.
15055 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15056 support. Upload fast traceframes, and delete internal IPA
15057 breakpoints.
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
15071 to the regcache.
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.
15077 (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.
15083 (UALIGN): 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.
15104
d149dd1d
PA
151052010-06-01 Pedro Alves <pedro@codesourcery.com>
15106
15107 * server.c (handle_query) <qSupported>: Do two passes over the
15108 qSupported string to avoid nesting strtok.
15109
f6528abd
JK
151102010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15111
15112 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15113 (CDEPS): New.
15114 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15115 -Wl,--dynamic-list.
15116 * configure: Regenerate.
15117 * proc-service.list: New.
15118
ca2a87a0
JK
151192010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15120
15121 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15122 New comment.
15123
363a6e9f
OS
151242010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15125
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.
15129
d23b6cb1
PA
151302010-05-23 Pedro Alves <pedro@codesourcery.com>
15131
15132 * config.h: Regenerate.
15133
28d3cf85
MK
151342010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15135
15136 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15137 doesn't provide PTRACE_GET_THREAD_AREA.
15138
fea36a59
MK
151392010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15140
15141 * linux-m68k-low.c: Include <asm/ptrace.h>
15142 (ps_get_thread_area): Implement.
15143
24b066ba
DE
151442010-05-03 Doug Evans <dje@google.com>
15145
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.
15160
9836d6ea
PA
151612010-05-03 Pedro Alves <pedro@codesourcery.com>
15162
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
15168 field.
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
15172 field.
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
15179 process structure.
15180 (thread_db_init): Don't set all_symbols_looked_up here.
15181 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15182
7984d532
PA
151832010-05-03 Pedro Alves <pedro@codesourcery.com>
15184
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
15200 count.
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
15208 for_each_inferior.
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.
15226
e471f25b
PA
152272010-05-03 Pedro Alves <pedro@codesourcery.com>
15228
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.
15233
1915ef4f
PA
152342010-05-02 Pedro Alves <pedro@codesourcery.com>
15235
15236 * README: Use consistent `GDB' and `GDBserver' spellings.
15237
f9e39928
PA
152382010-05-02 Pedro Alves <pedro@codesourcery.com>
15239
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
15245 breakpoints.
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
15253 breakpoints out.
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.
15263
1e7fc18c
PA
152642010-05-01 Pedro Alves <pedro@codesourcery.com>
15265
15266 * linux-low.c (linux_enable_event_reporting): New.
15267 (linux_wait_for_event_1, handle_extended_wait): Use it.
15268
02fc4de7
PA
152692010-04-30 Pedro Alves <pedro@codesourcery.com>
15270
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.
15281
bc3b5632
DE
152822010-04-26 Doug Evans <dje@google.com>
15283
ae1ada35
DE
15284 * server.c (handle_general_set): Make static.
15285
bc3b5632
DE
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.
15289
65730243
DE
152902010-04-23 Doug Evans <dje@google.com>
15291
15292 * server.c (start_inferior): Print inferior argv if --debug.
15293
a8ae7dc0
AR
152942010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15295
15296 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15297 * nto-x86-low.c: Include server.h
15298
1c07cc19
PM
152992010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15300
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
15304 in the comment.
15305
e0a61e09
PM
153062010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15307
15308 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15309 64-bit executables.
15310
54709339
PM
153112010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15312
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.
15319
e8f0053d
PM
153202010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15321
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'.
15332
c481e77e
PM
153332010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15334
15335 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15336 `amd64-avx.o'.
15337
12ea4b69
PM
153382010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15339
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.
15344
f6d1620c
L
153452010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15346
15347 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15348 if __x86_64__ is defined.
15349
8e642873
PM
153502010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15351
15352 * configure: Regenerate.
15353
711e434b
PM
153542010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15355
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.
15366
505106cd
PA
153672010-04-12 Pedro Alves <pedro@codesourcery.com>
15368
505106cd
PA
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.
15377
e8470a06
PA
153782010-04-12 Pedro Alves <pedro@codesourcery.com>
15379
15380 * server.h (buffer_xml_printf): Remove redundant `;'.
15381
45ba0d02
PA
153822010-04-12 Pedro Alves <pedro@codesourcery.com>
15383
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
15389 regsets.
15390
59e04013
L
153912010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15392
15393 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15394 variable warning on Linux/x86-64.
15395
8336d594
PA
153962010-04-11 Pedro Alves <pedro@codesourcery.com>
15397
15398 GDBserver disconnected tracing support.
15399
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
15417 linux_pause_all.
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.
15426
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.
15433 (tracing): Delete.
15434 (disconnected_tracing): Declare.
15435 (stop_tracing): Declare.
15436
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.
15453
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.
15462
15463 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15464
15465 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15466 New fields.
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.
15473
15474 * tracepoint.c (tracing): Make extern.
15475 (disconnected_tracing): New.
15476 (stop_tracing): Make extern. Handle tracing stops due to GDB
15477 disconnecting.
15478 (cmd_qtdisconnected): New.
15479 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15480 (handle_tracepoint_general_set): Handle QTDisconnected.
15481
15482 * event-loop.c (event_handler_func): Change return type to int.
15483 (process_event): Bail out if the event handler wants the event
15484 loop to stop.
15485 (handle_file_event): Ditto.
15486 (start_event_loop): Bail out if the event handler wants the event
15487 loop to stop.
15488
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.
15494
5d267c4c
PA
154952010-04-11 Pedro Alves <pedro@codesourcery.com>
15496
15497 * regcache.c (realloc_register_cache): Invalidate inferior's
15498 regcache before recreating it.
15499
623ccd72
PA
155002010-04-09 Pedro Alves <pedro@codesourcery.com>
15501
15502 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15503
219f2f23
PA
155042010-04-09 Stan Shebs <stan@codesourcery.com>
15505 Pedro Alves <pedro@codesourcery.com>
15506
15507 * server.h (LONGEST): New.
15508 (struct thread_info) <while_stepping>: New field.
15509 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15510 Declare.
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
15521 queries.
15522 (main): Initialize the tracepoints module.
15523 (process_serial_event): Handle traceframe reads/writes.
15524
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>:
15531 New field.
15532 * linux-x86-low.c (x86_supports_tracepoints): New.
15533 (the_low_target). Install it.
15534
15535 * mem-break.h (delete_breakpoint): Declare.
15536 * mem-break.c (delete_breakpoint): Make external.
15537
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)
15542 (phex_nz): New.
15543
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.
889bf7c5 15555
219f2f23
PA
15556 * tracepoint.c: New.
15557
15558 * Makefile.in (OBS): Add tracepoint.o.
15559 (tracepoint.o): New rule.
15560
3a13a53b
L
155612010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15562
15563 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15564 (i386-mmx.o): New.
15565 (i386-mmx.c): Likewise.
15566 (i386-mmx-linux.o): Likewise.
15567 (i386-mmx-linux.c): Likewise.
15568
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.
15573
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.
15577
1570b33e
L
155782010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15579
15580 * Makefile.in (clean): Updated.
15581 (i386-avx.o): New.
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.
15589
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.
15600
15601 * i387-fp.c: Include "i386-xstate.h".
15602 (i387_xsave): New.
15603 (i387_cache_to_xsave): Likewise.
15604 (i387_xsave_to_cache): Likewise.
15605 (x86_xcr0): Likewise.
15606
15607 * i387-fp.h (i387_cache_to_xsave): Likewise.
15608 (i387_xsave_to_cache): Likewise.
15609 (x86_xcr0): Likewise.
15610
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.
15620
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.
15626
15627 * linux-low.h (regset_info): Add nt_type.
15628 (linux_target_ops): Add process_qsupported.
15629
15630 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15631 and <sys/uio.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.
15648
15649 * server.c (handle_query): Call target_process_qsupported.
15650
15651 * target.h (target_ops): Add process_qsupported.
15652 (target_process_qsupported): New.
15653
fc7238bb
PA
156542010-04-03 Pedro Alves <pedro@codesourcery.com>
15655
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.
15665
bdabb078
PA
156662010-04-01 Pedro Alves <pedro@codesourcery.com>
15667
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.
15672
d3bbe7a0
PA
156732010-04-01 Pedro Alves <pedro@codesourcery.com>
15674
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
15678 breakpoints.
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
15688 qSymbol query.
15689
8b07ae33
PA
156902010-04-01 Pedro Alves <pedro@codesourcery.com>
15691
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.
15697
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
15723 raw_breakpoint.
15724 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15725 instead.
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.
15735
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.
15741
15742 * server.h (struct raw_breakpoint): Forward declare.
15743 (struct process_info): New field `raw_breakpoints'.
15744
15745 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15746 breakpoints.
15747
6bf5e0ba
PA
157482010-03-24 Pedro Alves <pedro@codesourcery.com>
15749
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.
15766
414a389f
PA
157672010-03-24 Pedro Alves <pedro@codesourcery.com>
15768
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
15781 pointer.
15782
2280c721
PA
157832010-03-24 Pedro Alves <pedro@codesourcery.com>
15784
15785 * server.c (handle_query): Assign, not compare.
15786
d50171e4
PA
157872010-03-24 Pedro Alves <pedro@codesourcery.com>
15788
15789 Teach linux gdbserver to step-over-breakpoints.
15790
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.
15795 (get_pc): New.
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
15807 perspective.
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
15816 wait status.
15817 (send_sigstop): Don't clear stop_expected. Always set it,
15818 instead.
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.
15870
30ba68cb
MS
158712010-03-23 Michael Snyder <msnyder@vmware.com>
15872
15873 * server.c (crc32): New function.
15874 (handle_query): Add handling for 'qCRC:' request.
15875
b9a881c2
PA
158762010-03-23 Pedro Alves <pedro@codesourcery.com>
15877
15878 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15879 lwp had been stopped by a watchpoint.
15880
e92d13d5
PA
158812010-03-16 Pedro Alves <pedro@codesourcery.com>
15882
15883 * server.h (internal_error): Declare.
15884 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15885 * utils.c (internal_error): New function.
15886
64daa791
AS
158872010-03-15 Andreas Schwab <schwab@redhat.com>
15888
15889 * configure.srv: Fix typo setting srv_regobj.
15890
f52cd8cd
PA
158912010-03-15 Pedro Alves <pedro@codesourcery.com>
15892
15893 * linux-low.c (fetch_register): Avoid passing a non string literal
15894 format to `error'.
15895 (usr_store_inferior_registers): Ditto.
15896
93ae6fdc
PA
158972010-03-14 Pedro Alves <pedro@codesourcery.com>
15898
15899 * linux-low.c (linux_write_memory): Bail out early if peeking
15900 memory failed.
15901
c3adc08c
PA
159022010-03-14 Pedro Alves <pedro@codesourcery.com>
15903
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
15909 directly.
15910 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15911 field.
15912 (linux_stopped_by_watchpoint): Rewrite.
15913 (linux_stopped_data_address): Rewrite.
15914
bce522a2
PA
159152010-03-06 Simo Melenius <simo.melenius@iki.fi>
15916
15917 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15918 switching the current inferior, not before.
15919
90884b2b
L
159202010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15921
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.
15933 (i386.o): New.
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.
15941
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.
15961
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.
15966
193f13e6
MK
159672010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15968
15969 * configure.ac: Check for libdl. If it is not available link against
15970 static libthread_db.
15971 * configure: Regenerate.
15972
85d721b8
PA
159732010-02-22 Pedro Alves <pedro@codesourcery.com>
15974
15975 PR9605
15976
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.
15980
6076632b
DE
159812010-02-12 Doug Evans <dje@google.com>
15982
15983 * linux-low.c (linux_supports_tracefork_flag): Document.
15984 (linux_look_up_symbols): Add comment.
15985
3327ccf7
L
159862010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15987
15988 * regcache.c (supply_register): Clear regcache if buf is NULL.
15989
0718675c 159902010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 15991 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
15992
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.
15996
177321bd
DJ
159972010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15998
15999 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16000 (thumb2_breakpoint): New.
16001 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16002
2b009048
DJ
160032010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16004
16005 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16006 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16007 breakpoints.
16008
3be029c7
PA
160092010-01-21 Pedro Alves <pedro@codesourcery.com>
16010
16011 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16012
18f5de3b
JK
160132010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16014
16015 * linux-s390-low.c (s390_collect_ptrace_register)
16016 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16017
3743bb4f
DE
160182010-01-21 Doug Evans <dje@google.com>
16019
14ce3065
DE
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.
16028
3743bb4f
DE
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.
16031
8b315be5
PA
160322010-01-21 Pedro Alves <pedro@codesourcery.com>
16033
16034 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16035 target.
16036
85492558
PA
160372010-01-21 Pedro Alves <pedro@codesourcery.com>
16038
16039 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16040 prototype to take a regcache. Adjust.
16041
442ea881
PA
160422010-01-20 Pedro Alves <pedro@codesourcery.com>
16043
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
16071 prototype.
16072 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16073 Change prototype.
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
16084 regcache. Adjust.
43aaf8b6
PA
16085 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16086 Ditto.
442ea881
PA
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.
16092 Adjust.
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.
16109 Adjust.
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):
16114 Adjust.
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.
16124 Adjust.
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.
43aaf8b6
PA
16129 * linux-ppc-low.c (ppc_supply_ptrace_register)
16130 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
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
16145 regcache. Adjust.
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
16155 regcache. Adjust.
16156 * win32-i386-low.c (i386_fetch_inferior_register)
16157 (i386_store_inferior_register): Change prototype to take a
16158 regcache. Adjust.
16159 * win32-low.c (child_fetch_inferior_registers)
16160 (child_store_inferior_registers): Change prototype to take a
16161 regcache. Adjust.
16162 (win32_wait): Adjust.
16163 (win32_fetch_inferior_registers): Change prototype to take a
16164 regcache. Adjust.
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.
16168
60c3d7b0
DE
161692010-01-20 Doug Evans <dje@google.com>
16170
16171 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16172 #ifdef.
16173 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 16174 (W_STOPCODE): Provide definition if missing.
60c3d7b0 16175
dc146f7c
VP
161762010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16177
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):
16185 New.
16186 (handle_query): Handle qXfer:threads. Announce availability
16187 thereof.
16188 * target.h (struct target_ops): New field core_of_thread.
16189
7803799a
UW
161902010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16191
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.
16216
6e7ffa39
JB
162172010-01-01 Joel Brobecker <brobecker@adacore.com>
16218
16219 * server.c (gdbserver_version): Update copyright year to 2010.
16220 * gdbreplay.c (gdbreplay_version): Likewise.
16221
957f3f49
DE
162222009-12-28 Doug Evans <dje@google.com>
16223
16224 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16225 elf/external.h. Include <elf.h> instead but only if necessary.
16226
ca5c370d
PA
162272009-12-28 Pedro Alves <pedro@codesourcery.com>
16228
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
16236 passed in process.
16237
4ee62156
DE
162382009-12-21 Doug Evans <dje@google.com>
16239
d90e6a88
DE
16240 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16241
c5f62d5f
DE
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.
16247
10e86dd7
DE
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.
16253
4ee62156
DE
16254 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16255
00f515da
DE
162562009-12-18 Doug Evans <dje@google.com>
16257
e9464885
DE
16258 * event-loop.c: Include unistd.h if it exists.
16259
07d4f67e
DE
16260 * linux-low.c (my_waitpid): Move definition away from being in
16261 between linux_tracefork_child/linux_test_for_tracefork.
16262
00f515da
DE
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.
16266
1de1badb
DE
162672009-12-16 Doug Evans <dje@google.com>
16268
16269 * linux-low.c (linux_read_memory): Fix argument to read.
16270
aeeb81d1
PA
162712009-11-26 Pedro Alves <pedro@codesourcery.com>
16272
16273 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16274 events, don't leave current_inferior pointing at null.
16275
10357975
PA
162762009-11-26 Pedro Alves <pedro@codesourcery.com>
16277
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.
16283
cf6e3471
PA
162842009-11-26 Pedro Alves <pedro@codesourcery.com>
16285
16286 * win32-low.c (win32_add_one_solib): If the dll name is
16287 "ntdll.dll", prepend the system directory to the dll path.
16288
0c85e18e
MK
162892009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16290
16291 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16292
9ac544ce 162932009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 16294 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
16295
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.
16302
fd7dd3e6
PA
163032009-11-16 Pedro Alves <pedro@codesourcery.com>
16304
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
16311 to thread_db_free.
16312 (thread_db_free): Add `detaching' parameter. Only
16313 call td_ta_clear_event if detaching from process.
16314
75aa492e
MK
163152009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16316
16317 * thread-db.c (thread_db_free): Fix typo.
16318
21e1bee4
PP
163192009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16320
16321 PR gdb/10838
16322 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16323
8838b45e
NS
163242009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16325
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
16329 needed.
16330 * configure: Rebuilt.
16331
8a35fb51
SL
163322009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16333
16334 PR gdb/10783
16335
16336 * server.c (handle_search_memory_1): Correct read_addr initialization
16337 in loop for searching subsequent chunks.
16338
96f15937
PP
163392009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16340
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.
889bf7c5 16346
5f7d1694
PP
163472009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16348
16349 PR gdb/10757
16350 * thread-db.c (attach_thread): New function.
16351 (maybe_attach_thread): Return success/failure.
16352 (find_new_threads_callback): Adjust.
889bf7c5
PA
16353 (thread_db_find_new_threads): Loop until no new threads.
16354
88e3b899
PA
163552009-10-13 Pedro Alves <pedro@codesourcery.com>
16356
16357 * proc-service.c (ps_lgetregs): Formatting.
16358
cdbfd419
PP
163592009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16360
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
16364 thread_db.
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.
889bf7c5 16383
4168d2d6
UW
163842009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16385
16386 * spu-low.c (spu_kill): Wait for inferior to terminate.
16387 Call clear_inferiors.
16388 (spu_detach): Call clear_inferiors.
16389
81ecdfbb
RW
163902009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16391
16392 * aclocal.m4: Regenerate.
16393 * config.in: Likewise.
16394 * configure: Likewise.
16395
0b9ff2c0
UW
163962009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16397
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.
16402
efcbbd14
UW
164032009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16404
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.
16410
f4d9bade
UW
164112009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16412
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.
16423
96e946ca
RW
164242009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16425
16426 * Makefile.in (datarootdir): New variable.
16427
58d6951d
DJ
164282009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16429
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.
16445
12b42a12
DJ
164462009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16447
16448 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16449 the main thread again.
16450
ac8c974e
AR
164512009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16452
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.
16461
4424e0c3 164622009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
16463
16464 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16465 srv_tgtobj.
16466
912cf4ba
PA
164672009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16468 Pedro Alves <pedro@codesourcery.com>
16469
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.
16476
aa5ca48f
DE
164772009-06-30 Doug Evans <dje@google.com>
16478 Pierre Muller <muller@ics.u-strasbg.fr>
16479
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
16495 provided.
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,
16499 prepare_to_resume.
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,
16514 prepare_to_resume.
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.
16543
d993e290
PA
165442009-06-25 Pedro Alves <pedro@codesourcery.com>
16545
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.
16552
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.
16564
0f54c268
PM
165652009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16566
16567 * server.c (handle_v_kill): Pass signal_pid to
16568 kill_inferior if multi_process is zero.
16569
c6314022
AR
165702009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16571
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'.
16575
4463ce24
AR
165762009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16577
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
16583 regno 0.
16584
cf8fd78b
PA
165852009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16586 Pedro Alves <pedro@codesourcery.com>
16587
16588 * target.h (struct target_ops) <supports_multi_process>: New
16589 callback.
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
16596 callback.
16597
47c0c975
DE
165982009-05-24 Doug Evans <dje@google.com>
16599
e09875d4
DE
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.
16604
e27d73f6
DE
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)
16607 directly.
16608
47c0c975
DE
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.
16612
2acc282a
DE
166132009-05-23 Doug Evans <dje@google.com>
16614
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.
16618
9f1036c1
DE
166192009-05-13 Doug Evans <dje@google.com>
16620
16621 * linux-x86-low.c: Don't include assert.h.
16622 (x86_siginfo_fixup): Use fatal, not assert.
16623 (x86_arch_setup): Fix comment.
16624
d0722149
DE
166252009-05-12 Doug Evans <dje@google.com>
16626
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
16636 linux-x86-low.o.
16637 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16638 linux-x86-low.o.
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.
16648
fdeb2a12
DE
166492009-05-07 Doug Evans <dje@google.com>
16650
16651 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16652 (regsets_store_inferior_registers): Ditto.
16653
a6dbe5df
PA
166542009-05-06 Pedro Alves <pedro@codesourcery.com>
16655
16656 PR server/10048
16657
16658 * linux-low.c (must_set_ptrace_flags): Delete.
16659 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16660 of the global.
16661 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16662 `lwp->must_set_ptrace_flags' instead.
ba42693b 16663 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
16664 (linux_wait_1): ... not here.
16665
5091eb23
DE
166662009-04-30 Doug Evans <dje@google.com>
16667
9f767825
DE
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.
16676
5091eb23
DE
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.
16681
155c8968
PA
166822009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16683
16684 * configure.srv: Add x86 Windows CE target.
16685
7fe519cb
UW
166862009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16687
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.
16694
5472f405
UW
166952009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16696
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.
16708
55ac2b99
PA
167092009-04-02 Pedro Alves <pedro@codesourcery.com>
16710
16711 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16712 variable.
16713
95954743
PA
167142009-04-01 Pedro Alves <pedro@codesourcery.com>
16715
16716 Implement the multiprocess extensions, and add linux multiprocess
16717 support.
16718
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
16725 to ptid_t.
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
16747 parameter. Adjust.
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
16762 to ptid.
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.
16777 (hexchars): New.
16778 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16779 read_ptid): New.
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
16785 to ptid_t.
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
16791 ptid_t.
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
16798 "qAttached:PID".
16799 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16800 changes.
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
16808 change.
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
16813 variants.
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
16834 new_inferior here.
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
16853 ptid_t. Adjust.
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.
16862 Adjust.
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
16867 ptids.
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
16882 per-process data.
16883 (find_one_thread): Change argument type to ptid_t. Adjust to
16884 per-process data.
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
16891 processes table.
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
16902 processes table.
16903 (child_fetch_inferior_registers, child_store_inferior_registers):
16904 Adjust.
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
16908 table.
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
16915 processes table.
16916
bd99dc85
PA
169172009-04-01 Pedro Alves <pedro@codesourcery.com>
16918
16919 Non-stop mode support.
16920
16921 * server.h (non_stop): Declare.
16922 (gdb_client_data, handler_func): Declare.
16923 (delete_file_handler, add_file_handler, start_event_loop):
16924 Declare.
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
16944 interface changes.
16945 (attach_inferior): In non-stop mode, don't wait for the target
16946 here.
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
16953 and non-stop mode.
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
16967 loop.
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
16974 general_thread.
16975 * event-loop.c: New.
16976 * Makefile.in (OBJ): Add event-loop.o.
16977 (event-loop.o): New rule.
16978
16979 * linux-low.h (pid_of): Moved here.
16980 (lwpid_of): New.
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.
16987 (delete_lwp): 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
16995 lwpid_of.
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.
17014 (linux_wait): 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
17018 thread.
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
17024 threads.
17025 (my_waitpid): Reimplement. Emulate __WALL.
17026 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17027 Use lwpid_of.
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.
17039
5b1c542e
PA
170402009-04-01 Pedro Alves <pedro@codesourcery.com>
17041
17042 Decouple target code from remote protocol.
17043
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
17052 declarations.
17053 (prepare_resume_reply): Change prototype to take a
17054 target_waitstatus.
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.
17060 Adjust.
17061 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17062 not as an address.
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.
17071
17072 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17073 interface.
17074 * spu-low.c (spu_wait): Adjust.
17075 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17076 Delete.
17077 (win32_wait): Adjust.
17078
2bd7c093
PA
170792009-04-01 Pedro Alves <pedro@codesourcery.com>
17080
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
17096 change.
17097 * win32-low.c (win32_detach, win32_resume): Ditto.
17098
c35fafde
PA
170992009-04-01 Pedro Alves <pedro@codesourcery.com>
17100
17101 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17102 flag.
17103 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17104 pending.
17105 (linux_continue_one_thread): Only preserve the stepping flag if
17106 there's a pending breakpoint.
17107
0a59d50b
PA
171082009-03-31 Pedro Alves <pedro@codesourcery.com>
17109
17110 * server.c (main): After the inferior having exited, call
17111 remote_close before exiting gdbserver.
17112
f04c6d38
TJB
171132009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17114
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
17119 size of the FPSCR.
17120
78e5cee6
PA
171212009-03-23 Pedro Alves <pedro@codesourcery.com>
17122
17123 * server.c (handle_query) Whitespace and formatting.
17124
1b3f6016
PA
171252009-03-22 Pedro Alves <pedro@codesourcery.com>
17126
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.
17135
a07b2135
PA
171362009-03-22 Pedro Alves <pedro@codesourcery.com>
17137
17138 * inferiors.c (find_inferior): Make it safe for the callback
17139 function to delete the currently iterated inferior.
17140
67cc2626
PA
171412009-03-22 Pedro Alves <pedro@codesourcery.com>
17142
17143 * Makefile.in (linuw_low_h): Move higher.
17144 (thread-db.o): Depend on $(linux_low_h).
17145
54a0b537
PA
171462009-03-17 Pedro Alves <pedro@codesourcery.com>
17147
17148 Rename "process" to "lwp" throughout.
17149
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):
17179 Adjust.
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.
17193
0b16c5cf
PA
171942009-03-14 Pedro Alves <pedro@codesourcery.com>
17195
17196 * server.c (handle_query): Handle "qAttached".
17197
32de4b9d
NS
171982009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17199
17200 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17201 GPLv3, update license URL.
17202
2aecd87f
DE
172032009-03-01 Doug Evans <dje@google.com>
17204
93efd302 17205 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
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.
17210
86b1f9c5
PM
172112009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17212
17213 * remote-utils.c (getpkt): Also generate remote-debug
17214 information if noack_mode is set.
17215
4aa995e1
PA
172162009-02-06 Pedro Alves <pedro@codesourcery.com>
17217
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.
17223
62709adf
PA
172242009-01-26 Pedro Alves <pedro@codesourcery.com>
17225
17226 * server.c (gdbserver_usage): Mention --remote-debug.
17227 (main): Accept '--remote-debug' switch.
17228
aef93bd7
DE
172292009-01-18 Doug Evans <dje@google.com>
17230
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
17236 user upon failure.
17237 (handle_v_run): Ditto. Call freeargv.
17238 * server.h (freeargv): Declare.
17239 * utils.c (freeargv): New fn.
17240
54363045
DE
172412009-01-15 Doug Evans <dje@google.com>
17242
f626972c
DE
17243 * gdbreplay.c (perror_with_name): Make arg const char *.
17244 * server.h (target_signal_to_name): Make return type const char *.
0842e787 17245 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 17246 * utils.c (perror_with_name): Make arg const char *.
54363045 17247
18aae699
PA
172482009-01-14 Pedro Alves <pedro@codesourcery.com>
17249
17250 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17251 when handling a EXIT_PROCESS_DEBUG_EVENT.
17252
ff703abe
JB
172532009-01-06 Joel Brobecker <brobecker@adacore.com>
17254
17255 * gdbreplay.c (gdbreplay_version): Update copyright year.
17256 * server.c (gdbserver_version): Likewise.
17257
f21cc1a2 172582009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
17259
17260 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 17261 (handle_extended_wait): Improve comment.
0e21c1ec 17262
bca929d3
DE
172632008-12-13 Doug Evans <dje@google.com>
17264
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.
17274 * server.c: Ditto.
17275 * target.c: Ditto.
17276 * win32-low.c: Ditto.
17277
97438e3f
DE
172782008-12-12 Doug Evans <dje@google.com>
17279
896c7fbb
DE
17280 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17281 in debugging printf.
17282
97438e3f
DE
17283 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17284
e3b886f8
DE
172852008-12-09 Doug Evans <dje@google.com>
17286
17287 * linux-low.h (struct process_info): Delete member tid, unused.
17288 * thread-db.c (find_one_thread): Update.
17289 (maybe_attach_thread): Update.
17290
07e059b5
VP
172912008-12-02 Pedro Alves <pedro@codesourcery.com>
17292
889bf7c5
PA
17293 * target.h (struct target_ops): Add qxfer_osdata member.
17294 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17295 and dirent.h.
17296 (linux_qxfer_osdata): New functions.
17297 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17298 callback.
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.
07e059b5 17306
4cab47ab
DE
173072008-11-24 Doug Evans <dje@google.com>
17308
17309 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17310
f142445f
DJ
173112008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17312
17313 * server.c (handle_v_run): Always use the supplied argument list.
17314
d0107bb6 173152008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 17316
d0107bb6
BW
17317 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17318 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 17319
2c4ad781
TJB
173202008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17321
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
17333 in 32-bits.
17334
dfb64f85
DJ
173352008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17336
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.
17344
66b6e1dd
DE
173452008-10-21 Doug Evans <dje@google.com>
17346
17347 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17348 (READLINE_DIR,READLINE_DEP): Delete.
17349 (INTERNAL_CFLAGS): Update.
17350 (LINTFLAGS): Update.
17351
9b710a42
PA
173522008-10-10 Pedro Alves <pedro@codesourcery.com>
17353
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].
17356
5822d809
PA
173572008-09-08 Pedro Alves <pedro@codesourcery.com>
17358
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.
17362
74aac56f
DJ
173632008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17364
17365 * configure.srv: Merge MIPS and MIPS64.
17366
400b20f5
MR
173672008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17368
17369 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17370
677c5bb1
LM
173712008-08-18 Luis Machado <luisgpm@br.ibm.com>
17372
17373 * Makefile.in: Add required vsx dependencies.
17374
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.
17383
17384 * configure.srv: Add new VSX dependencies.
17385
a6f3e723
SL
173862008-08-12 Pedro Alves <pedro@codesourcery.com>
17387
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
17394 qSupported.
17395 (main): Reset noack_mode on every connection.
17396 * server.h (noack_mode): Declare.
17397
a417dc56
RW
173982008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17399
17400 * Makefile.in (GDBREPLAY_OBS): New variable.
17401 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17402
3221518c
UW
174032008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17404 Daniel Jacobowitz <dan@codesourcery.com>
17405
17406 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17407 (usr_store_inferior_registers): Likewise.
17408 (regsets_store_inferior_registers): Likewise.
17409
ec56be1b
PA
174102008-07-31 Rolf Jansen <rj@surtec.com>
17411 Pedro Alves <pedro@codesourcery.com>
17412
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.
17419
2fe5e3ff
DE
174202008-07-28 Doug Kwan <dougkwan@google.com>
17421
17422 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17423 (linux_write_memory): Remove declaration of errno.
17424
836acd6d
UW
174252008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17426
17427 * linux-low.c (handle_extended_wait): Do not use "status"
17428 variable uninitialized.
17429
aeba519e
PA
174302008-07-07 Pedro Alves <pedro@codesourcery.com>
17431
17432 * server.c (handle_v_attach): Inhibit reporting dll changes.
17433
db42f210
PA
174342008-06-27 Pedro Alves <pedro@codesourcery.com>
17435
17436 * remote-utils.c (prepare_resume_reply): If requested, don't
17437 output "thread:TID" in the T stop reply.
17438
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
17442 and qsThreadInfo.
17443 (handle_v_requests): If requested, disable support for vCont.
17444 (gdbserver_show_disableable): New.
17445 (main): Handle --disable-packet and --disable-packet=LIST.
17446
17447 * server.h (disable_packet_vCont, disable_packet_Tthread)
17448 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17449
8e4c5421
CD
174502008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17451
17452 * server.c (gdbserver_usage): Mention --version.
17453
6e23a804
DJ
174542008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17455
17456 * Makefile.in (gdbreplay.o): New rule.
17457
90aa6a40
JM
174582008-06-06 Joseph Myers <joseph@codesourcery.com>
17459
17460 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17461 message, not gdbserver.
17462
c16158bc 174632008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
17464 Nathan Sidwell <nathan@codesourcery.com>
17465 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
17466
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.
17477
aeb75bf5
DJ
174782008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17479
17480 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17481 (arm_breakpoint_at): Handle Thumb.
17482 (the_low_target): Add comment.
17483
76b233dd
UW
174842008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17485
17486 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17487
08388c79
DE
174882008-05-09 Doug Evans <dje@google.com>
17489
a3c83fae
DE
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.
08388c79
DE
17493 (handle_search_memory): New fn.
17494 (handle_query): Process qSearch:memory packets.
17495
bb9c3d36
UW
174962008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17497
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.
17503
7284e1be
UW
175042008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17505
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
17514 to srv_xmlfiles.
17515
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.
17526 (clean): Update.
17527
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.
17544
17545 * inferiors.c (clear_inferiors): Reset current_inferior.
17546
fdc59709
PB
175472008-04-23 Paolo Bonzini <bonzini@gnu.org>
17548
889bf7c5
PA
17549 * acinclude.m4: Add override.m4.
17550 * configure: Regenerate.
fdc59709 17551
c9b2f845
UW
175522008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17553
17554 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17555 initial call to init_register_ppc64.
17556
550512b8
UW
175572008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17558
43aaf8b6
PA
17559 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17560 single powerpc*-*-linux* case.
550512b8
UW
17561 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17562
b6430ec3
UW
175632008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17564
17565 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 17566 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
17567 from reg_xmlfiles.
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.
17582
52fa2412
UW
175832008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17584
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
17591 use_regsets_p.
17592 (initialize_low): Allocate disabled_regsets.
17593
e28b3332
DJ
175942008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17595
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.
17601
4536995d
UW
176022008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17603
17604 * server.c (handle_query): Never return "unsupported" for
17605 qXfer:features:read queries.
17606
221c031f
UW
176072008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17608
17609 * server.c (get_features_xml): Fix inverted condition.
17610 (handle_query): Always support qXfer:feature:read.
17611
ccd213ac
DJ
176122008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17613
17614 * server.c (wrapper_argv): New.
17615 (start_inferior): Handle wrapper_argv. If set, expect an extra
17616 trap.
17617 (gdbserver_usage): Document --wrapper.
17618 (main): Parse --wrapper.
17619
6fe305f7
UW
176202008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17621
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.
889bf7c5 17629 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 17630
5b0a002e
UW
176312008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17632
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.
17638
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
889bf7c5 17649 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
17650 collect_ptrace_register and supply_ptrace_register members.
17651
9b4b61c8
UW
176522008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17653
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.
17657
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.
17671
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.
17685
ee1a7ae4
UW
176862008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17687
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.
17694
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.
17699
17700 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17701 (ppc_supply_ptrace_register): Likewise.
17702 (the_low_target): Update.
17703
17704 * linux-i386-low.c (the_low_target): Update.
17705 * linux-x86-64-low.c (the_low_target): Update.
17706
d61ddec4
UW
177072008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17708
17709 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17710 reg-s390.o and reg-s390x.o.
17711
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.
17717
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.
17722
17723 * regcache.c (realloc_register_cache): New function.
17724 (set_register_cache): Call it for each existing regcache.
17725
d05b4ac3
UW
177262008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17727
17728 * server.h (init_registers): Remove prototype.
17729
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.
17766
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.
17774
17775 * spu-low.c (init_registers_spu): Add prototype.
17776 (initialize_low): Call initialie_registers_spu () instead of
17777 initialize_registers ().
17778
fd96d250
PA
177792008-02-19 Pedro Alves <pedro@codesourcery.com>
17780
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
17783 error instead.
17784
d41b6bb4
DJ
177852008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17786
17787 * server.c (handle_query): Correct length check.
17788
5ac588cf
PA
177892008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17790
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
17806 has exited.
17807
ecd7ecbc
DJ
178082008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17809
17810 * server.c (monitor_show_help): Add "exit".
17811
1525d545
MG
178122008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17813
ecd7ecbc 17814 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
17815 (clean): Add reg-xtensa.c.
17816 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
17817 * configure.srv (xtensa*-*-linux*) New target.
17818 * linux-xtensa-low.c: New.
17819 * xtensa-xtregs.c: New.
1525d545 17820
59a016f0
PA
178212008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17822
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.
889bf7c5 17835 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
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
17846 hostio-errno.o.
17847 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17848 * configure: Regenerate.
17849
2d717e4f
DJ
178502008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17851
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
17856 is running.
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
17865 "monitor exit".
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.
17877
7407e2de
AS
178782007-12-20 Andreas Schwab <schwab@suse.de>
17879
17880 * linux-low.c (STACK_SIZE): Define.
17881 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17882 (linux_test_for_tracefork): Likewise.
17883
b65d95c5
DJ
178842007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17885
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
17889 int.
17890 (set_breakpoint_at): Update handler type.
17891 (reinsert_breakpoint_handler): Return 1 instead of calling
17892 delete_breakpoint.
17893 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17894 setting a new one.
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.
17900
4e799345
DJ
179012007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17902
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.
17907
27524b67
DJ
179082007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17909
17910 * server.c (myresume): Add own_buf argument.
17911 (main): Update calls.
17912
a20d5e98
DJ
179132007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17914
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.
17927
b79d787e
DJ
179282007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17929
17930 * remote-utils.c (readchar): Allow binary data in received messages.
17931
d97903b2
PA
179322007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17933
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
17939 attaching.
17940
311de423
PA
179412007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17942
17943 * server.c (main): Don't report dll events on the initial
17944 connection on attaches.
17945
6c2d16d2
PA
179462007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17947
17948 * server.c (main): Relax numerical bases supported for the pid of
17949 the --attach command line argument.
17950
5ca906e6
PA
179512007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17952
17953 * win32-low.c (win32_attach): Call OpenProcess before
17954 DebugActiveProcess, not after. Add last error output to error
17955 call.
17956
9c6c8194
PA
179572007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17958
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'
17964 field.
17965
4d5d1aaa
PA
179662007-12-03 Leo Zayas
17967 Pedro Alves <pedro_alves@portugalmail.pt>
17968
17969 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17970 global variables.
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,
17979 and 1 otherwise.
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
17983 resort.
17984
c436e841
PA
179852007-12-03 Leo Zayas
17986 Pedro Alves <pedro_alves@portugalmail.pt>
17987
17988 * win32-low.h (win32_thread_info): Add descriptions to the
17989 structure members. Replace `suspend_count' counter by a
17990 `suspended' flag.
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.
17997
e7b5fa67
PA
179982007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17999
18000 * win32-low.c (win32_wait): Don't read from the inferior when it
18001 has already exited.
18002
a385171d
PA
180032007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18004
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.
18008
f80c84b3
DJ
180092007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18010
18011 * hostio.c: Correct copyright year.
18012
a6b151f1
DJ
180132007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18014
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.
18022
f9387fc3
DJ
180232007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18024
18025 * linux-low.c: Include <sched.h>.
18026
51c2684e
DJ
180272007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18028
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.
18032
75f83163
JB
180332007-10-31 Joel Brobecker <brobecker@adacore.com>
18034
18035 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18036
da5898ce
DJ
180372007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18038
18039 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18040
24a09b5f
DJ
180412007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18042
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
18072 sigstop_sent.
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.
18084
30ed0a8f
DJ
180852007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18086
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*
18092 with SPE.
18093 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18094 SPE targets.
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.
18105
fd462a61
DJ
181062007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18107
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.
18112
69f223ed
DJ
181132007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18114
18115 * linux-low.c (linux_wait_for_event): Do not pass signals while
18116 single-stepping.
18117
aec18585
PA
181182007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18119
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.
18125
34d86ddd
PA
181262007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18127
18128 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18129
5a0e3bd0
JB
181302007-08-23 Joel Brobecker <brobecker@adacore.com>
18131
18132 * configure.ac: Switch license to GPLv3.
18133
f88c79e6
MS
181342007-08-01 Michael Snyder <msnyder@access-company.com>
18135
18136 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18137
6b3d9b83
PA
181382007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18139
18140 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18141 typedef.
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.
18147
c588c53c
MS
181482007-07-27 Michael Snyder <michael.snyder@access-company.com>
18149
18150 * server.c (main): Check for inferior exit before main loop.
18151
aa0403d9
PA
181522007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18153
18154 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18155 instead of on tmp_desc.
18156
255e7678
DJ
181572007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18158 Daniel Jacobowitz <dan@codesourcery.com>
18159
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
18163 list.
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
18168 for qSupported.
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.
18185
0d37add9
DJ
181862007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18187
18188 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18189 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18190
45e2715e
PA
181912007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18192
18193 * win32-low.c (handle_output_debug_string): Ignore event if not
18194 waiting.
18195
c5674cf1
PA
181962007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18197
18198 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18199
2bbe3cc1
DJ
182002007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18201
18202 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18203
ae13219e
DJ
182042007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18205
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
18211 each process.
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.
18222
4105de34
DJ
182232007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18224
18225 * thread-db.c (thread_db_find_new_threads): Add prototype.
18226 (thread_db_create_event): Check for the main thread before adding
18227 a new thread.
18228 (maybe_attach_thread): Only enable event reporting if TID == 0.
18229 (thread_db_get_tls_address): Check for new threads.
18230
2b876972
DJ
182312007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18232
18233 * linux-low.c (linux_create_inferior): Try execv before execvp.
18234 * spu-low.c (spu_create_inferior): Likewise.
18235
7a245884
DJ
182362007-06-13 Mike Frysinger <vapier@gentoo.org>
18237
18238 * linux-low.c (linux_create_inferior): Change execv to execvp.
18239 * spu-low.c (spu_create_inferior): Likewies.
18240
117ce543
DJ
182412007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18242
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
18246 rules.
18247 * configure.srv: Specify XML files and new regformats for MIPS and
18248 MIPS64 GNU/Linux.
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.
18257
0e7f50da
UW
182582007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18259 Markus Deuling <deuling@de.ibm.com>
18260
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.
18268
374c1d38
UW
182692007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18270
18271 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18272 accessing non-seekable spufs files.
18273
bb63802a
UW
182742007-05-16 Markus Deuling <deuling@de.ibm.com>
18275
889bf7c5 18276 * server.c (handle_query): Add reply for qC packet.
bb63802a 18277
7390519e
PA
182782007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18279 Leo Zayas <lerele@champenstudios@com>
18280
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.
3ecf0694 18287 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
18288 winapi_GenerateConsoleCtrlEvent): New typedefs.
18289 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18290 to 250 ms.
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.
18295
34b34921
PA
182962007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18297
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.
18305 (regptr): Delete.
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.
889bf7c5 18319 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
18320 goto loop. Always return after waiting for debug event.
18321 (win32_wait): Convert to switch statement. Handle spurious
18322 events.
18323
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
18328 state variables.
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.
18340
18341 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18342 (arm_get_thread_context): New.
18343 (arm_set_thread_context): New.
18344 (regptr): 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.
18351
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.
18357
dd6953e1
PA
183582007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18359
18360 * linux-low.c (linux_detach): Change return type to int. Return 0.
18361 * spu-low.c (spu_detach): Likewise.
18362
444d6139
PA
183632007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18364
18365 * target.h (target_ops): Change return type of detach to int.
18366 Add join.
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.
18378 (win32_join): New.
18379 (win32_target_op): Add win32_join.
18380
1d5315fe
PA
183812007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18382
18383 * win32-low.c (win32-attach): Fix return value.
18384 * target.h (target_ops): Describe ATTACH return values.
18385
bf914831
PA
183862007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18387
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.
18394
f72f3e60
PA
183952007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18396
18397 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18398
ed50f18f
PA
183992007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18400
18401 * win32-low.c: Commit leftover changes from 2007-03-29.
18402
0c2ead7e
DJ
184032007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18404
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.
18410
73725ff3
DJ
184112007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18412
18413 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18414 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18415
d99f33d8
PA
184162007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18417
18418 * configure.srv (arm*-*-mingw32ce*): Move near the other
18419 arm targets.
18420
68070c10
PA
184212007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18422
2482afc6 18423 * configure.ac: Add errno checking.
68070c10
PA
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.
2482afc6 18428 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
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.
18456 (_T): New macro.
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.
18465 (regptr): New.
18466 (do_child_fetch_inferior_registers): Move to ...
18467 * win32-i386-low.c: ... here, and rename to ...
18468 (do_fetch_inferior_registers): ... this.
889bf7c5 18469 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
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
18479 thread handles.
18480 (win32_detach): Use coredll.dll on Windows CE.
18481 (win32_resume): Let low target handle debug registers, and
18482 step request.
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.
18502
41093d81
PA
185032007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18504
18505 * win32-low.c: Rename typedef thread_info to
18506 win32_thread_info throughout.
18507
544afa54
PA
185082007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18509
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.
18514
bce7165d
PA
185152007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18516
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.
18523
506c7aa0
DJ
185242007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18525
18526 * server.c (main): Correct strtoul check.
18527
42c81e2a
DJ
185282007-03-27 Jon Ringle <jon@ringle.org>
18529
18530 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18531
9453113a
DJ
185322007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18533
18534 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18535
64a69107
DJ
185362007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18537
18538 * terminal.h: Check HAVE_SGTTY_H.
18539
185402007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
18541
18542 * remote-utils.c (remote_open): Print out the assigned port number.
18543
c74d0ad8
DJ
185442007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18545
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
18553 of debug_threads.
18554
de7c3b4a
PA
185552007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18556
18557 * Makefile.in (EXEEXT): New.
18558 (clean): Use $(EXEEXT).
18559
ef57601b
PA
185602007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18561
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
18569 of send_signal.
18570 (input_interrupt): Likewise.
18571
820f2bda
PA
185722007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18573
18574 * server.c (get_features_xml): Check if target implemented
18575 arch_string.
18576 * win32-i386-low.c (win32_arch_string): New.
18577 (win32_target_ops): Add win32_arch_string as arch_string member.
18578
ab39bf24
UW
185792007-02-22 Markus Deuling <deuling@de.ibm.com>
18580
18581 * spu-low.c (spu_arch_string): New.
18582 (spu_target_ops): Add spu_arch_string.
18583
61ff6e04
DJ
185842007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18585
18586 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18587 * configure.ac: Do not check for terminal.h.
18588 * configure, config.in: Regenerated.
18589
fb1e4ffc
DJ
185902007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18591
18592 * Makefile.in (OBS): Add $(XML_BUILTIN).
18593 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18594 (clean): Update.
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
18606 XML documents.
18607 (handle_query): Handle multiple annexes.
18608
0f48aa01
DJ
186092007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18610
18611 * remote-utils.c [USE_WIN32API] (read, write): Define.
18612 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18613 write.
18614
23181151
DJ
186152007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18616
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.
18626
9d606399
DJ
186272007-01-03 Denis Pilat <denis.pilat@st.com>
18628 Daniel Jacobowitz <dan@codesourcery.com>
18629
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.
18633
186342006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
18635 Daniel Jacobowitz <dan@codesourcery.com>
18636
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.
18641
a5e13d24
DJ
186422006-12-05 Markus Deuling <deuling@de.ibm.com>
18643
18644 * README: Update supported targets.
18645
186947f7
DJ
186462006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18647
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.
18659
a13e2c95
UW
186602006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18661
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.
18666
cb7283db
DJ
186672006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18668
18669 * configure.ac: Correct td_thr_tls_get_addr test.
18670 * configure: Regenerated.
18671
89be2091
DJ
186722006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18673
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.
18681
000ef4f0
DJ
186822006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18683
18684 * server.c (handle_query): Correct error handling for read_auxv.
18685
b7149293
UW
186862005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18687
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.
18692
dae5f5cf
DJ
186932006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18694
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.
18709
32ca6d61
DJ
187102006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18711
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.
18720
5ffff7c1
DJ
187212006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18722
18723 * remote-utils.c (try_rle): New function.
18724 (putpkt_binary): Use it.
18725
8695c747
DJ
187262006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18727
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
18733 point registers.
18734
290fadea
RS
187352006-08-08 Richard Sandiford <richard@codesourcery.com>
18736
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().
18743
9f2e1e63
DJ
187442006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18745
18746 * server.c (handle_query): Correct qPart to qXfer.
18747
b80864fb
DJ
187482006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18749
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
18765 numbers.
18766 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18767 and names.
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.
18779
0876f84a
DJ
187802006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18781
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.
18787
01f9e8fa
DJ
187882006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18789
18790 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18791 (putpkt_binary): Renamed from putpkt and adjusted for binary
18792 data.
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.
18799
be2a5f71
DJ
188002006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18801
18802 * server.c (handle_query): Handle qSupported.
18803
ea025f5f
DJ
188042006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18805
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.
18810
9308fc88
DJ
188112006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18812
18813 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 18814 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
18815 (PTRACE_GET_THREAD_AREA): Define.
18816 (ps_get_thread_area): New function.
18817
52fb6437
NS
188182006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18819
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.
18827
21b0f40c
DJ
188282006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18829
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.
18835
0050a760
DJ
188362006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18837
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.
18847
b92a518e
DJ
188482006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18849
18850 * remote-utils.c (prepare_resume_reply): Move declaration
18851 of gdb_id_from_wait to the top of the block.
18852
545587ee
DJ
188532006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18854
18855 * linux-low.c (regsets_store_inferior_registers): Read the regset
18856 from the target before filling it.
18857
9db87ebd
DJ
188582006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18859
18860 * server.c (attach_inferior): Return SIGTRAP for a successful
18861 attach.
18862
dd24457d
DJ
188632006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18864
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.
18874
6f0f660e
EZ
188752005-12-23 Eli Zaretskii <eliz@gnu.org>
18876
889bf7c5
PA
18877 * linux-arm-low.c:
18878 * linux-arm-low.c:
18879 * inferiors.c:
18880 * i387-fp.h:
18881 * i387-fp.c:
18882 * gdbreplay.c:
18883 * regcache.c:
18884 * proc-service.c:
18885 * mem-break.h:
18886 * mem-break.c:
18887 * linux-x86-64-low.c:
18888 * linux-sh-low.c:
18889 * linux-s390-low.c:
18890 * linux-ppc64-low.c:
18891 * linux-ppc-low.c:
18892 * linux-mips-low.c:
18893 * linux-m68k-low.c:
18894 * linux-m32r-low.c:
18895 * linux-low.h:
18896 * linux-low.c:
18897 * linux-ia64-low.c:
18898 * linux-i386-low.c:
18899 * linux-crisv32-low.c:
18900 * thread-db.c:
18901 * terminal.h:
18902 * target.h:
18903 * target.c:
18904 * server.h:
18905 * server.c:
18906 * remote-utils.c:
18907 * regcache.h:
18908 * utils.c:
18909 * Makefile.in:
18910 * configure.ac:
6f0f660e
EZ
18911 * gdbserver.1: Add (C) after Copyright. Update the FSF
18912 address.
18913
9d1fb177
DJ
189142005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18915
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.
18919
011a70c2
DJ
189202005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18921
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.
18926
7fb85e41
AS
189272005-10-25 Andreas Schwab <schwab@suse.de>
18928
18929 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18930
18931 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18932 (ia64_num_regs): Reduce to 462.
18933
3db0444b
DJ
189342005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18935
18936 * acinclude.m4: Correct quoting.
18937 * aclocal.m4: Regenerated.
18938
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.
18944
bee0189a
DJ
189452005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18946
18947 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18948
e9d25b98
DJ
189492005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18950
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
18959 GENERAL_REGS.
18960 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18961 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18962
a06660f7
DJ
189632005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18964
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
18975 prototypes.
18976
5a1f5858
DJ
189772005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18978
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.
18983
e122f1f5
SE
189842005-07-01 Steve Ellcey <sje@cup.hp.com>
18985
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.
18991
d592fa2f
DJ
189922005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18993
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.
18998
ccbd4912
MK
189992005-06-13 Mark Kettenis <kettenis@gnu.org>
19000
19001 * configure.ac: Simplify and improve check for socklen_t.
19002 * configure, config.in: Regenerate.
19003
f450004a
DJ
190042005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19005
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.
19011
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
19017 unsigned char.
19018
19019 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19020 char for buffers.
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):
19026 Likewise.
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,
19034 and read_auxv.
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.
19043
eee84df1
DJ
190442005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19045
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.
19050
45b134e5
OF
190512005-05-23 Orjan Friberg <orjanf@axis.com>
19052
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.
889bf7c5 19057 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
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.
19061
48d93c75
UW
190622005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19063
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.
19067
e013ee27
OF
190682005-05-12 Orjan Friberg <orjanf@axis.com>
19069
889bf7c5 19070 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
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
19078 reply packet.
19079 * server.c (main): Recognize 'Z' and 'z' packets.
19080
b0ded00b
UW
190812005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19082
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.
19086
8643e2ad
DJ
190872005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19088
19089 * proc-service.c (ps_lgetregs): Search all_processes instead of
19090 all_threads.
19091
fc620387
DJ
190922005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19093
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.
19098
190992005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
19100
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.
19104
e0e76420
DJ
191052005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19106
19107 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19108
a1928bad
DJ
191092005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19110
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
19123 unsigned long.
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
19132 thread_alive.
19133
dcdb98d2
DJ
191342005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19135
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.
19140
bec39cab
AC
191412005-01-07 Andrew Cagney <cagney@gnu.org>
19142
19143 * configure.ac: Rename configure.in, require autoconf 2.59.
19144 * configure: Re-generate.
19145
434c4c77
DJ
191462004-12-08 Daniel Jacobowitz <dan@debian.org>
19147
19148 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19149 LIBS when finished.
19150 * aclocal.m4: Regenerated.
19151 * configure: Regenerated.
19152
db1d3e1b
AS
191532004-11-21 Andreas Schwab <schwab@suse.de>
19154
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.
19160
19161 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19162 srv_linux_thread_db to yes.
19163
43360365
JB
191642004-10-20 Joel Brobecker <brobecker@gnat.com>
19165
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.
19170
fd500816
DJ
191712004-10-16 Daniel Jacobowitz <dan@debian.org>
19172
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
19184 implementations.
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.
19192
f6de3c42
DJ
191932004-10-16 Daniel Jacobowitz <dan@debian.org>
19194
19195 * configure.in: Test for -rdynamic.
19196 * configure: Regenerated.
19197 * Makefile (INTERNAL_LDFLAGS): New.
19198 (gdbserver, gdbreplay): Use it.
19199
2c0fc042
AC
192002004-09-02 Andrew Cagney <cagney@gnu.org>
19201
19202 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19203
075b3282
DJ
192042004-03-23 Daniel Jacobowitz <drow@mvista.com>
19205
19206 * linux-low.c (linux_wait): Clear all_processes list also.
19207
fa6a77dc
DJ
192082004-03-12 Daniel Jacobowitz <drow@mvista.com>
19209
19210 * linux-low.c: Include <errno.h>. Remove extern declaration of
19211 errno.
19212
6d782a97
DJ
192132004-03-12 Daniel Jacobowitz <drow@mvista.com>
19214
19215 * gdbreplay.c, server.h, utils.c: Update copyright years.
19216
3a7fb99b
DJ
192172004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19218
19219 * server.c (main): Print child status or termination signal from
19220 variable 'signal', not 'sig'.
19221
c3e735a6
DJ
192222004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19223
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.
19229 Update comment.
19230 (read_inferior_memory): Adapt prototype.
19231 * server.c (main): Return an error packet if
19232 read_inferior_memory() returns an error.
19233
a59d1c82
DJ
192342004-03-04 Daniel Jacobowitz <drow@mvista.com>
19235
19236 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19237 Unify with other clean targets.
19238
dc3f8883
DJ
192392004-02-29 Daniel Jacobowitz <drow@mvista.com>
19240
19241 * server.c (handle_v_cont): Call set_desired_inferior.
19242
89a208da
DJ
192432004-02-29 Daniel Jacobowitz <drow@mvista.com>
19244
19245 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19246
62ea82f5
DJ
192472004-02-29 Daniel Jacobowitz <drow@mvista.com>
19248
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.
19253
6910d122
DJ
192542004-02-29 Daniel Jacobowitz <drow@mvista.com>
19255
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
19259 attaching.
19260
192612004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
19262
19263 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19264
c89dc5d4
DJ
192652004-02-26 Daniel Jacobowitz <drow@mvista.com>
19266
19267 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19268 error packet.
19269 * server.c, target.h: Update copyright years.
19270
4b8dad4a
RM
192712004-02-25 Roland McGrath <roland@redhat.com>
19272
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.
19277
d7446758
JB
192782004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19279
19280 Committed by Jim Blandy <jimb@redhat.com>.
19281
19282 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 19283 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
19284 instead of GPR_SIZE to distiguish s390 and s390x targets.
19285
5544ad89
DJ
192862004-01-31 Daniel Jacobowitz <drow@mvista.com>
19287
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
19295 pointer.
19296
2a68b70e
DJ
192972004-01-30 Daniel Jacobowitz <drow@mvista.com>
19298
19299 * regcache.c (new_register_cache): Clear the allocated register
19300 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19301
64386c31
DJ
193022003-10-13 Daniel Jacobowitz <drow@mvista.com>
19303
19304 * linux-low.c (linux_resume): Take a struct thread_resume *
19305 argument.
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
19316 thread_resume *.
19317 (myresume): Delete macro.
19318
c938e9b0
L
193192003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19320
19321 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19322 (uninstall): Support DESTDIR.
19323
7f313d07
BC
19324Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19325
19326 * configure.srv: Add xscale*linux copy of arm*linux entry.
19327
3b2fc2ea
DJ
193282003-07-24 Daniel Jacobowitz <drow@mvista.com>
19329
19330 * linux-arm-low.c (arm_reinsert_addr): New function.
19331 (the_low_target): Add arm_reinsert_addr.
19332
1c0a559e
MK
193332003-07-08 Mark Kettenis <kettenis@gnu.org>
19334
19335 * mem-break.c: Remove whitespace at end of file.
19336
43d5792c
DJ
193372003-06-28 Daniel Jacobowitz <drow@mvista.com>
19338
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.
19345
c8a86edf
DJ
193462003-06-28 Daniel Jacobowitz <drow@mvista.com>
19347
19348 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19349 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19350
73d37363
DJ
193512003-06-20 Daniel Jacobowitz <drow@mvista.com>
19352
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.
19356
6ad8ae5c
DJ
193572003-06-17 Daniel Jacobowitz <drow@mvista.com>
19358
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.
19365
1581182a
MK
193662003-06-13 Mark Kettenis <kettenis@gnu.org>
19367
19368 From Kelley Cook <kelleycook@wideopenwest.com>:
19369 * configure.srv: Accept i[34567]86 variants.
19370
e5379b03
DJ
193712003-06-05 Daniel Jacobowitz <drow@mvista.com>
19372
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
19378 of kill.
19379 * target.h (struct target_ops): Add send_signal.
19380
2ff29de4
JB
193812003-05-29 Jim Blandy <jimb@redhat.com>
19382
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.
19387
254787d4
DJ
193882003-03-26 Daniel Jacobowitz <drow@mvista.com>
19389
19390 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19391 (linux_wait_for_event, linux_init_signals): Likewise.
19392
94e10508
DJ
193932003-03-17 Daniel Jacobowitz <drow@mvista.com>
19394
19395 * configure.in: Check for stdlib.h.
19396 * configure: Regenerated.
19397 * config.in: Regenerated.
19398
4c0711e0
DJ
193992003-01-04 Andreas Schwab <schwab@suse.de>
19400
19401 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19402
ef66e766
AC
194032003-01-02 Andrew Cagney <ac131313@redhat.com>
19404
19405 * Makefile.in: Remove obsolete code.
19406
a1358604
DJ
194072002-11-20 Daniel Jacobowitz <drow@mvista.com>
19408
19409 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19410 defined(PT_FPR0_HI).
19411
23ce3b1c
DJ
194122002-11-17 Stuart Hughes <seh@zee2.com>
19413
19414 * linux-arm-low.c (arm_num_regs): Increase.
19415 (arm_regmap): Include status register.
19416
194172002-11-17 Daniel Jacobowitz <drow@mvista.com>
19418
19419 * linux-low.c (register_addr): Remove incorrect -1 check.
19420
a9fa9f7d
DJ
194212002-08-29 Daniel Jacobowitz <drow@mvista.com>
19422
19423 * linux-low.c (linux_create_inferior): Call setpgid. Return
19424 the new PID.
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
4b8dad4a 19433 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
19434 (attach_inferior): Set signal_pid.
19435
17574093
DJ
194362002-08-23 Daniel Jacobowitz <drow@mvista.com>
19437
19438 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19439
194402002-08-20 Jim Blandy <jimb@redhat.com>
19441
19442 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19443 default for this.
19444
194452002-08-01 Andrew Cagney <cagney@redhat.com>
19446
19447 * Makefile.in: Make chill references obsolete.
19448
194492002-07-24 Kevin Buettner <kevinb@redhat.com>
19450
19451 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19452 * configure: Regenerate.
19453 * config.in: Regenerate.
19454
194552002-07-09 David O'Brien <obrien@FreeBSD.org>
19456
19457 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19458 (perror_with_name, remote_close, remote_open, expect, play): Static.
19459
194602002-07-04 Michal Ludvig <mludvig@suse.cz>
19461
4b8dad4a 19462 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
19463 byte offsets instead of an array of indexes.
19464 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19465
194662002-06-13 Daniel Jacobowitz <drow@mvista.com>
19467
19468 * regcache.c: Add comment.
19469
194702002-06-11 Daniel Jacobowitz <drow@mvista.com>
19471
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
19548 flag.
19549 (get_regcache): Fetch registers lazily. Add fetch argument
19550 and update all callers.
19551 (regcache_invalidate_one, regcache_invalidate): New
19552 functions.
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
19564 stderr.
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
19579 calls to mywait.
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.
19588
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.
19598
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
19620 identifier.
19621
196222002-05-15 Daniel Jacobowitz <drow@mvista.com>
19623
19624 From Martin Pool <mbp@samba.org>:
19625 * server.c (gdbserver_usage): New function.
19626 (main): Call it.
19627
196282002-05-14 Daniel Jacobowitz <drow@mvista.com>
19629
19630 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19631 stop_at -> stop_pc.
19632
196332002-05-04 Andrew Cagney <ac131313@redhat.com>
19634
19635 * Makefile.in: Remove obsolete code.
19636
196372002-04-24 Michal Ludvig <mludvig@suse.cz>
19638
19639 * linux-low.c (regsets_fetch_inferior_registers),
19640 (regsets_store_inferior_registers): Removed cast to int from
19641 ptrace() calls.
19642 * regcache.h: Added declaration of struct inferior_info.
19643
196442002-04-20 Daniel Jacobowitz <drow@mvista.com>
19645
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
19656 get_regcache.
19657 * regcache.h: Add prototypes.
19658 * server.h: Likewise.
19659
196602002-04-20 Daniel Jacobowitz <drow@mvista.com>
19661
19662 * mem-break.c: New file.
19663 * mem-break.h: New file.
19664 * Makefile.in: Add mem-break.o rule; update server.h
19665 dependencies.
19666 * inferiors.c (struct inferior_info): Add target_data
19667 member.
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
19681 handling members.
19682 * server.c (attach_inferior): Remove extra add_inferior
19683 call.
19684 * server.h: Include mem-break.h. Update inferior.c
19685 prototypes.
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
19691 definition.
19692
196932002-04-11 Daniel Jacobowitz <drow@mvista.com>
19694
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.
19700
197012002-04-09 Daniel Jacobowitz <drow@mvista.com>
19702
19703 * server.h: Include <string.h> if HAVE_STRING_H.
19704 * ChangeLog: Correct paths in last ChangeLog entry.
19705
197062002-04-09 Daniel Jacobowitz <drow@mvista.com>
19707
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,
19720 made static.
19721 (arm_cannot_store_register): Renamed from cannot_store_register,
19722 made static.
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,
19728 made static.
19729 (i386_cannot_store_register): Renamed from cannot_store_register,
19730 made static.
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,
19736 made static.
19737 (ia64_cannot_store_register): Renamed from cannot_store_register,
19738 made static.
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,
19744 made static.
19745 (m68k_cannot_store_register): Renamed from cannot_store_register,
19746 made static.
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,
19752 made static.
19753 (mips_cannot_store_register): Renamed from cannot_store_register,
19754 made static.
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,
19760 made static.
19761 (ppc_cannot_store_register): Renamed from cannot_store_register,
19762 made static.
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,
19768 made static.
19769 (s390_cannot_store_register): Renamed from cannot_store_register,
19770 made static.
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,
19776 made static.
19777 (sh_cannot_store_register): Renamed from cannot_store_register,
19778 made static.
19779 (the_low_target): New.
19780 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19781 (the_low_target): New.
19782
197832002-04-09 Daniel Jacobowitz <drow@mvista.com>
19784
19785 * Makefile.in: Add stamp-h target.
19786 * configure.in: Create stamp-h.
19787 * configure: Regenerated.
19788
197892002-04-09 Daniel Jacobowitz <drow@mvista.com>
19790
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
19795 dependencies.
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
19804 child dies.
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.
19824
198252002-04-09 Daniel Jacobowitz <drow@mvista.com>
19826
19827 * Makefile.in: Add WARN_CFLAGS. Update configury
19828 dependencies.
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.
19846 (fatal): Likewise.