[gdb/testsuite] Add -lbl option in gdb_test_multiple
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
dda42c0b
TT
12020-02-21 Tom Tromey <tom@tromey.com>
2
3 * Makefile.in (mostlyclean): New target.
4
52405d85
TBA
52020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6
7 * target.h (struct process_stratum_target): Remove.
8 (class process_target): Rename to ...
9 (class process_stratum_target): ... this.
10 * linux-low.h (class linux_process_target): Derive from
11 'process_stratum_target'.
12 * linux-low.cc (linux_target_ops): Remove.
13 (initialize_low): Set the_target to the singleton instance of
14 linux_process_target.
15 * lynx-low.h (class lynx_process_target): Derive from
16 'process_stratum_target'.
17 * lynx-low.cc (lynx_target_ops): Remove.
18 (initialize_low): Set the_target to the singleton instance of
19 lynx_process_target.
20 * nto-low.h (class nto_process_target): Derive from
21 'process_stratum_target'.
22 * nto-low.cc (nto_target_ops): Remove.
23 (initialize_low): Set the_target to the singleton instance of
24 nto_process_target.
25 * win32-low.h (class win32_process_target): Derive from
26 'process_stratum_target'.
27 * win32-low.cc (win32_target_ops): Remove.
28 (initialize_low): Set the_target to the singleton instance of
29 win32_process_target.
30
31 Replace 'the_target->pt' with 'the_target' in the uses below.
32
33 * hostio.cc (hostio_error)
34 (handle_setfs)
35 (handle_open)
36 (handle_unlink)
37 (handle_readlink)
38 * linux-aarch32-low.cc (arm_breakpoint_at)
39 * linux-aarch64-low.cc (aarch64_breakpoint_at)
40 * linux-arm-low.cc (arm_sigreturn_next_pc)
41 (arm_get_hwcap)
42 (arm_get_syscall_trapinfo)
43 * linux-cris-low.cc (cris_breakpoint_at)
44 * linux-crisv32-low.cc (cris_breakpoint_at)
45 * linux-low.cc (handle_extended_wait)
46 (linux_wait_1)
47 (linux_read_memory)
48 (linux_process_target::breakpoint_kind_from_pc)
49 (linux_get_auxv)
50 * linux-m32r-low.cc (m32r_breakpoint_at)
51 * linux-mips-low.cc (mips_breakpoint_at)
52 * linux-nios2-low.cc (nios2_breakpoint_at)
53 * linux-ppc-low.cc (ppc_breakpoint_at)
54 * linux-s390-low.cc (s390_get_hwcap)
55 * linux-sh-low.cc (sh_breakpoint_at)
56 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
57 (sparc_store_gregset_from_stack)
58 (sparc_breakpoint_at)
59 * linux-tic6x-low.cc (tic6x_breakpoint_at)
60 * linux-tile-low.cc (tile_breakpoint_at)
61 * linux-x86-low.cc (x86_breakpoint_at)
62 * linux-xtensa-low.cc (xtensa_breakpoint_at)
63 * mem-break.cc (bp_size)
64 (bp_opcode)
65 (insert_memory_breakpoint)
66 (set_raw_breakpoint_at)
67 (delete_raw_breakpoint)
68 (z_type_supported)
69 (uninsert_raw_breakpoint)
70 (reinsert_raw_breakpoint)
71 (validate_inserted_breakpoint)
72 * regcache.cc (regcache_read_pc)
73 (regcache_write_pc)
74 * remote-utils.cc (putpkt_binary_1)
75 (input_interrupt)
76 (getpkt)
77 (prepare_resume_reply)
78 * server.cc (handle_general_set)
79 (handle_detach)
80 (handle_qxfer_auxv)
81 (handle_qxfer_exec_file)
82 (handle_qxfer_libraries_svr4)
83 (handle_qxfer_osdata)
84 (handle_qxfer_siginfo)
85 (handle_qxfer_fdpic)
86 (handle_query)
87 (resume)
88 (handle_v_requests)
89 (queue_stop_reply_callback)
90 (captured_main)
91 * target.cc (prepare_to_access_memory)
92 (done_accessing_memory)
93 (read_inferior_memory)
94 (target_write_memory)
95 (target_stop_and_wait)
96 (target_wait)
97 (target_mourn_inferior)
98 (target_continue_no_signal)
99 (target_continue)
100 (target_supports_multi_process)
101 (kill_inferior)
102 * target.h
103 (target_create_inferior)
104 (target_post_create_inferior)
105 (myattach)
106 (target_supports_fork_events)
107 (target_supports_vfork_events)
108 (target_supports_exec_events)
109 (target_handle_new_gdb_connection)
110 (detach_inferior)
111 (mythread_alive)
112 (fetch_inferior_registers)
113 (store_inferior_registers)
114 (join_inferior)
115 (target_supports_non_stop)
116 (target_async)
117 (target_process_qsupported)
118 (target_supports_catch_syscall)
119 (target_get_ipa_tdesc_idx)
120 (target_supports_tracepoints)
121 (target_supports_fast_tracepoints)
122 (target_get_min_fast_tracepoint_insn_len)
123 (target_thread_stopped)
124 (target_pause_all)
125 (target_unpause_all)
126 (target_stabilize_threads)
127 (target_install_fast_tracepoint_jump_pad)
128 (target_emit_ops)
129 (target_supports_disable_randomization)
130 (target_supports_agent)
131 (target_enable_btrace)
132 (target_disable_btrace)
133 (target_read_btrace)
134 (target_read_btrace_conf)
135 (target_supports_range_stepping)
136 (target_supports_stopped_by_sw_breakpoint)
137 (target_stopped_by_sw_breakpoint)
138 (target_supports_stopped_by_hw_breakpoint)
139 (target_supports_hardware_single_step)
140 (target_stopped_by_hw_breakpoint)
141 (target_breakpoint_kind_from_pc)
142 (target_breakpoint_kind_from_current_state)
143 (target_supports_software_single_step)
144 (target_core_of_thread)
145 (target_thread_name)
146 (target_thread_handle)
147 * win32-low.cc (do_initial_child_stuff)
148
149 Rename target op default definitions listed below.
150
151 * target.cc (process_target::post_create_inferior): Rename as ...
152 (process_stratum_target::post_create_inferior): ... this.
153 (process_target::prepare_to_access_memory): Rename as ...
154 (process_stratum_target::prepare_to_access_memory): ... this.
155 (process_target::done_accessing_memory): Rename as ...
156 (process_stratum_target::done_accessing_memory): ... this.
157 (process_target::look_up_symbols): Rename as ...
158 (process_stratum_target::look_up_symbols): ... this.
159 (process_target::supports_read_auxv): Rename as ...
160 (process_stratum_target::supports_read_auxv): ... this.
161 (process_target::read_auxv): Rename as ...
162 (process_stratum_target::read_auxv): ... this.
163 (process_target::supports_z_point_type): Rename as ...
164 (process_stratum_target::supports_z_point_type): ... this.
165 (process_target::insert_point): Rename as ...
166 (process_stratum_target::insert_point): ... this.
167 (process_target::remove_point): Rename as ...
168 (process_stratum_target::remove_point): ... this.
169 (process_target::stopped_by_sw_breakpoint): Rename as ...
170 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
171 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
172 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
173 (process_target::stopped_by_hw_breakpoint): Rename as ...
174 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
175 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
176 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
177 (process_target::supports_hardware_single_step): Rename as ...
178 (process_stratum_target::supports_hardware_single_step): ... this.
179 (process_target::stopped_by_watchpoint): Rename as ...
180 (process_stratum_target::stopped_by_watchpoint): ... this.
181 (process_target::stopped_data_address): Rename as ...
182 (process_stratum_target::stopped_data_address): ... this.
183 (process_target::supports_read_offsets): Rename as ...
184 (process_stratum_target::supports_read_offsets): ... this.
185 (process_target::read_offsets): Rename as ...
186 (process_stratum_target::read_offsets): ... this.
187 (process_target::supports_get_tls_address): Rename as ...
188 (process_stratum_target::supports_get_tls_address): ... this.
189 (process_target::get_tls_address): Rename as ...
190 (process_stratum_target::get_tls_address): ... this.
191 (process_target::hostio_last_error): Rename as ...
192 (process_stratum_target::hostio_last_error): ... this.
193 (process_target::supports_qxfer_osdata): Rename as ...
194 (process_stratum_target::supports_qxfer_osdata): ... this.
195 (process_target::qxfer_osdata): Rename as ...
196 (process_stratum_target::qxfer_osdata): ... this.
197 (process_target::supports_qxfer_siginfo): Rename as ...
198 (process_stratum_target::supports_qxfer_siginfo): ... this.
199 (process_target::qxfer_siginfo): Rename as ...
200 (process_stratum_target::qxfer_siginfo): ... this.
201 (process_target::supports_non_stop): Rename as ...
202 (process_stratum_target::supports_non_stop): ... this.
203 (process_target::async): Rename as ...
204 (process_stratum_target::async): ... this.
205 (process_target::start_non_stop): Rename as ...
206 (process_stratum_target::start_non_stop): ... this.
207 (process_target::supports_multi_process): Rename as ...
208 (process_stratum_target::supports_multi_process): ... this.
209 (process_target::supports_fork_events): Rename as ...
210 (process_stratum_target::supports_fork_events): ... this.
211 (process_target::supports_vfork_events): Rename as ...
212 (process_stratum_target::supports_vfork_events): ... this.
213 (process_target::supports_exec_events): Rename as ...
214 (process_stratum_target::supports_exec_events): ... this.
215 (process_target::handle_new_gdb_connection): Rename as ...
216 (process_stratum_target::handle_new_gdb_connection): ... this.
217 (process_target::handle_monitor_command): Rename as ...
218 (process_stratum_target::handle_monitor_command): ... this.
219 (process_target::core_of_thread): Rename as ...
220 (process_stratum_target::core_of_thread): ... this.
221 (process_target::supports_read_loadmap): Rename as ...
222 (process_stratum_target::supports_read_loadmap): ... this.
223 (process_target::read_loadmap): Rename as ...
224 (process_stratum_target::read_loadmap): ... this.
225 (process_target::process_qsupported): Rename as ...
226 (process_stratum_target::process_qsupported): ... this.
227 (process_target::supports_tracepoints): Rename as ...
228 (process_stratum_target::supports_tracepoints): ... this.
229 (process_target::read_pc): Rename as ...
230 (process_stratum_target::read_pc): ... this.
231 (process_target::write_pc): Rename as ...
232 (process_stratum_target::write_pc): ... this.
233 (process_target::supports_thread_stopped): Rename as ...
234 (process_stratum_target::supports_thread_stopped): ... this.
235 (process_target::thread_stopped): Rename as ...
236 (process_stratum_target::thread_stopped): ... this.
237 (process_target::supports_get_tib_address): Rename as ...
238 (process_stratum_target::supports_get_tib_address): ... this.
239 (process_target::get_tib_address): Rename as ...
240 (process_stratum_target::get_tib_address): ... this.
241 (process_target::pause_all): Rename as ...
242 (process_stratum_target::pause_all): ... this.
243 (process_target::unpause_all): Rename as ...
244 (process_stratum_target::unpause_all): ... this.
245 (process_target::stabilize_threads): Rename as ...
246 (process_stratum_target::stabilize_threads): ... this.
247 (process_target::supports_fast_tracepoints): Rename as ...
248 (process_stratum_target::supports_fast_tracepoints): ... this.
249 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
250 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
251 (process_target::emit_ops): Rename as ...
252 (process_stratum_target::emit_ops): ... this.
253 (process_target::supports_disable_randomization): Rename as ...
254 (process_stratum_target::supports_disable_randomization): ... this.
255 (process_target::supports_qxfer_libraries_svr4): Rename as ...
256 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
257 (process_target::qxfer_libraries_svr4): Rename as ...
258 (process_stratum_target::qxfer_libraries_svr4): ... this.
259 (process_target::supports_agent): Rename as ...
260 (process_stratum_target::supports_agent): ... this.
261 (process_target::enable_btrace): Rename as ...
262 (process_stratum_target::enable_btrace): ... this.
263 (process_target::disable_btrace): Rename as ...
264 (process_stratum_target::disable_btrace): ... this.
265 (process_target::read_btrace): Rename as ...
266 (process_stratum_target::read_btrace): ... this.
267 (process_target::read_btrace_conf): Rename as ...
268 (process_stratum_target::read_btrace_conf): ... this.
269 (process_target::supports_range_stepping): Rename as ...
270 (process_stratum_target::supports_range_stepping): ... this.
271 (process_target::supports_pid_to_exec_file): Rename as ...
272 (process_stratum_target::supports_pid_to_exec_file): ... this.
273 (process_target::pid_to_exec_file): Rename as ...
274 (process_stratum_target::pid_to_exec_file): ... this.
275 (process_target::supports_multifs): Rename as ...
276 (process_stratum_target::supports_multifs): ... this.
277 (process_target::multifs_open): Rename as ...
278 (process_stratum_target::multifs_open): ... this.
279 (process_target::multifs_unlink): Rename as ...
280 (process_stratum_target::multifs_unlink): ... this.
281 (process_target::multifs_readlink): Rename as ...
282 (process_stratum_target::multifs_readlink): ... this.
283 (process_target::breakpoint_kind_from_pc): Rename as ...
284 (process_stratum_target::breakpoint_kind_from_pc): ... this.
285 (process_target::breakpoint_kind_from_current_state): Rename as ...
286 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
287 (process_target::thread_name): Rename as ...
288 (process_stratum_target::thread_name): ... this.
289 (process_target::thread_handle): Rename as ...
290 (process_stratum_target::thread_handle): ... this.
291 (process_target::supports_software_single_step): Rename as ...
292 (process_stratum_target::supports_software_single_step): ... this.
293 (process_target::supports_catch_syscall): Rename as ...
294 (process_stratum_target::supports_catch_syscall): ... this.
295 (process_target::get_ipa_tdesc_idx): Rename as ...
296 (process_stratum_target::get_ipa_tdesc_idx): ... this.
297
478f9adf
PA
2982020-02-20 Pedro Alves <palves@redhat.com>
299
300 * target.cc (set_target_ops): Simply copy the given target pointer
301 instead of creating a copy of the pointed object.
302
d633e831
TBA
3032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
304
305 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
306 of process_target.
307
308 * target.h (struct process_stratum_target): Remove the target op.
309 (class process_target): Add the target op.
310 (target_get_ipa_tdesc_idx): Update the macro.
311 * target.cc (process_target::get_ipa_tdesc_idx): Define.
312
313 Update the derived classes and callers below.
314
315 * linux-low.cc (linux_target_ops): Update.
316 (linux_get_ipa_tdesc_idx): Turn into ...
317 (linux_process_target::get_ipa_tdesc_idx): ... this.
318 * linux-low.h (class linux_process_target): Update.
319 * lynx-low.cc (lynx_target_ops): Update.
320 * nto-low.cc (nto_target_ops): Update.
321 * win32-low.cc (win32_target_ops): Update.
322
bc8d3ae4
TBA
3232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
324
325 Turn process_stratum_target's supports_catch_syscall op into a
326 method of process_target.
327
328 * target.h (struct process_stratum_target): Remove the target op.
329 (class process_target): Add the target op.
330 (target_supports_catch_syscall): Update the macro.
331 * target.cc (process_target::supports_catch_syscall): Define.
332
333 Update the derived classes and callers below.
334
335 * linux-low.cc (linux_target_ops): Update.
336 (linux_supports_catch_syscall): Turn into ...
337 (linux_process_target::supports_catch_syscall): ... this.
338 * linux-low.h (class linux_process_target): Update.
339 * lynx-low.cc (lynx_target_ops): Update.
340 * nto-low.cc (nto_target_ops): Update.
341 * win32-low.cc (win32_target_ops): Update.
342
5303a34f
TBA
3432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
344
345 Turn process_stratum_target's supports_software_single_step op
346 into a method of process_target.
347
348 * target.h (struct process_stratum_target): Remove the target op.
349 (class process_target): Add the target op.
350 (target_supports_software_single_step): Update the macro.
351 * target.cc (process_target::supports_software_single_step): Define.
352
353 Update the derived classes and callers below.
354
355 * linux-low.cc (linux_target_ops): Update.
356 (linux_supports_software_single_step): Turn into ...
357 (linux_process_target::supports_software_single_step): ... this.
358 * linux-low.h (class linux_process_target): Update.
359 * lynx-low.cc (lynx_target_ops): Update.
360 * nto-low.cc (nto_target_ops): Update.
361 * win32-low.cc (win32_target_ops): Update.
362
7f63b89b
TBA
3632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
364
365 Turn process_stratum_target's thread_name and thread_handle ops
366 into methods of process_target.
367
368 * target.h (struct process_stratum_target): Remove the target ops.
369 (class process_target): Add the target ops.
370 (target_thread_name): Update the macro.
371 (target_thread_handle): Update the macro.
372 * target.cc (process_target::thread_name): Define.
373 (process_target::thread_handle): Define.
374
375 Update the derived classes and callers below.
376
377 * linux-low.cc (linux_target_ops): Update.
378 (linux_process_target::thread_name): Define.
379 (linux_process_target::thread_handle): Define.
380 * linux-low.h (class linux_process_target): Update.
381 * lynx-low.cc (lynx_target_ops): Update.
382 * nto-low.cc (nto_target_ops): Update.
383 * win32-low.cc (win32_target_ops): Update.
384
d367006f
TBA
3852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
386
387 Turn process_stratum_target's breakpoint_kind_from_pc,
388 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
389 ops into methods of process_target.
390
391 * target.h (struct process_stratum_target): Remove the target op.
392 (class process_target): Add the target op.
393 (target_breakpoint_kind_from_pc): Update the macro.
394 (target_breakpoint_kind_from_current_state): Update the macro.
395 (default_breakpoint_kind_from_pc): Remove declaration.
396 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
397 (process_target::breakpoint_kind_from_pc): ... this.
398 (process_target::breakpoint_kind_from_current_state): Define.
399
400 Update the derived classes and callers below.
401
402 * mem-break.cc (bp_size): Update.
403 (bp_opcode): Update.
404 * linux-low.cc (linux_target_ops): Update.
405 (linux_wait_1): Update.
406 (linux_breakpoint_kind_from_pc): Turn into ...
407 (linux_process_target::breakpoint_kind_from_pc): ... this.
408 (linux_sw_breakpoint_from_kind): Turn into ...
409 (linux_process_target::sw_breakpoint_from_kind): ... this.
410 (linux_breakpoint_kind_from_current_state): Turn into ...
411 (linux_process_target::breakpoint_kind_from_current_state): ... this.
412 * linux-low.h (class linux_process_target): Update.
413 * lynx-low.cc (lynx_target_ops): Update.
414 (lynx_process_target::sw_breakpoint_from_kind): Define.
415 * lynx-low.h (class lynx_process_target): Update.
416 * nto-low.cc (nto_target_ops): Update.
417 (nto_sw_breakpoint_from_kind): Turn into ...
418 (nto_process_target::sw_breakpoint_from_kind): ... this.
419 * nto-low.h (class nto_process_target): Update.
420 * win32-low.cc (win32_target_ops): Update.
421 (win32_sw_breakpoint_from_kind): Turn into ...
422 (win32_process_target::sw_breakpoint_from_kind): ... this.
423 * win32-low.h (class win32_process_target): Update.
424
c9b7b804
TBA
4252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
426
427 Turn process_stratum_target's multifs_open, multifs_readlink,
428 multifs_unlink ops into methods of process_target.
429
430 * target.h (struct process_stratum_target): Remove the target ops.
431 (class process_target): Add the target ops. Also add
432 'supports_multifs'.
433 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
434 "sys/stat.h".
435 (process_target::supports_multifs): Define.
436 (process_target::multifs_open): Define.
437 (process_target::multifs_readlink): Define.
438 (process_target::multifs_unlink): Define.
439
440 Update the derived classes and callers below.
441
442 * hostio.cc (handle_setfs): Update.
443 (handle_open): Update.
444 (handle_unlink): Update.
445 (handle_readlink): Update.
446 * linux-low.cc (linux_target_ops): Update.
447 (linux_process_target::supports_multifs): Define.
448 (linux_process_target::multifs_open): Define.
449 (linux_process_target::multifs_readlink): Define.
450 (linux_process_target::multifs_unlink): Define.
451 * linux-low.h (class linux_process_target): Update.
452 * lynx-low.cc (lynx_target_ops): Update.
453 * nto-low.cc (nto_target_ops): Update.
454 * win32-low.cc (win32_target_ops): Update.
455
8247b823
TBA
4562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
457
458 Turn process_stratum_target's pid_to_exec_file op into a method
459 of process_target.
460
461 * target.h (struct process_stratum_target): Remove the target op.
462 (class process_target): Add the target op. Also add
463 'supports_pid_to_exec_file'.
464 * target.cc (process_target::pid_to_exec_file): Define.
465 (process_target::supports_pid_to_exec_file): Define.
466
467 Update the derived classes and callers below.
468
469 * server.cc (handle_qxfer_exec_file): Update.
470 (handle_query): Update.
471 * linux-low.cc (linux_target_ops): Update.
472 (linux_process_target::supports_pid_to_exec_file): Define.
473 (linux_process_target::pid_to_exec_file): Define.
474 * linux-low.h (class linux_process_target): Update.
475 * lynx-low.cc (lynx_target_ops): Update.
476 * nto-low.cc (nto_target_ops): Update.
477 * win32-low.cc (win32_target_ops): Update.
478
2526e0cd
TBA
4792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
480
481 Turn process_stratum_target's supports_range_stepping op into a
482 method of process_target.
483
484 * target.h (struct process_stratum_target): Remove the target op.
485 (class process_target): Add the target op.
486 (target_supports_range_stepping): Update the macro.
487 * target.cc (process_target::supports_range_stepping): Define.
488
489 Update the derived classes and callers below.
490
491 * linux-low.cc (linux_target_ops): Update.
492 (linux_supports_range_stepping): Turn into ...
493 (linux_process_target::supports_range_stepping): ... this.
494 * linux-low.h (class linux_process_target): Update.
495 * lynx-low.cc (lynx_target_ops): Update.
496 * nto-low.cc (nto_target_ops): Update.
497 * win32-low.cc (win32_target_ops): Update.
498
79597bdd
TBA
4992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
500
501 Turn process_stratum_target's btrace-related ops (enable_btrace,
502 disable_btrace, read_btrace, read_btrace_conf) into methods of
503 process_target.
504
505 * target.h (struct process_stratum_target): Remove the target ops.
506 (class process_target): Add the target ops.
507 (target_enable_btrace): Update.
508 (target_disable_btrace): Update.
509 (target_read_btrace): Update.
510 (target_read_btrace_conf): Update.
511 * target.cc (process_target::enable_btrace): Define.
512 (process_target::disable_btrace): Define.
513 (process_target::read_btrace): Define.
514 (process_target::read_btrace_conf): Define.
515
516 Update the derived classes and callers below.
517
518 * linux-low.cc (linux_target_ops): Update.
519 (linux_process_target:enable_btrace): Define as a wrapper around
520 linux_enable_btrace.
521 (linux_low_disable_btrace): Turn into ...
522 (linux_process_target::disable_btrace): ... this.
523 (linux_low_read_btrace): Turn into ...
524 (linux_process_target::read_btrace): ... this.
525 (linux_low_btrace_conf): Turn into ...
526 (linux_process_target::read_btrace_conf): ... this.
527 * linux-low.h (class linux_process_target): Update.
528 * lynx-low.cc (lynx_target_ops): Update.
529 * nto-low.cc (nto_target_ops): Update.
530 * win32-low.cc (win32_target_ops): Update.
531
c0245cb9
TBA
5322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
533
534 Turn process_stratum_target's supports_agent op into a method of
535 process_target.
536
537 * target.h (struct process_stratum_target): Remove the target op.
538 (class process_target): Add the target op.
539 (target_supports_agent): Update the macro.
540 * target.cc (process_target::supports_agent): Define.
541
542 Update the derived classes and callers below.
543
544 * linux-low.cc (linux_target_ops): Update.
545 (linux_supports_agent): Turn into ...
546 (linux_process_target::supports_agent): ... this.
547 * linux-low.h (class linux_process_target): Update.
548 * lynx-low.cc (lynx_target_ops): Update.
549 * nto-low.cc (nto_target_ops): Update.
550 * win32-low.cc (win32_target_ops): Update.
551
974387bb
TBA
5522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
553
554 Turn process_stratum_target's qxfer_libraries_svr4 op into a
555 method of process_target.
556
557 * target.h (struct process_stratum_target): Remove the target op.
558 (class process_target): Add the target op. Also add
559 'supports_qxfer_libraries_svr4'.
560 * target.cc (process_target::qxfer_libraries_svr4): Define.
561 (process_target::supports_qxfer_libraries_svr4): Define.
562
563 Update the derived classes and callers below.
564
565 * server.cc (handle_qxfer_libraries_svr4): Update.
566 (handle_query): Update.
567 * linux-low.cc (linux_target_ops): Update.
568 (linux_process_target::supports_qxfer_libraries_svr4): Define.
569 (linux_qxfer_libraries_svr4): Turn into ...
570 (linux_process_target::qxfer_libraries_svr4): ... this.
571 * linux-low.h (class linux_process_target): Update.
572 * lynx-low.cc (lynx_target_ops): Update.
573 * nto-low.cc (nto_target_ops): Update.
574 * win32-low.cc (win32_target_ops): Update.
575
c756403b
TBA
5762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
577
578 Turn process_stratum_target's supports_disable_randomization op
579 into a method of process_target.
580
581 * target.h (struct process_stratum_target): Remove the target op.
582 (class process_target): Add the target op.
583 (target_supports_disable_randomization): Update the macro.
584 * target.cc (process_target::supports_disable_randomization): Define.
585
586 Update the derived classes and callers below.
587
588 * linux-low.cc (linux_target_ops): Update.
589 (linux_supports_disable_randomization): Turn into ...
590 (linux_process_target::supports_disable_randomization): ... this.
591 * linux-low.h (class linux_process_target): Update.
592 * lynx-low.cc (lynx_target_ops): Update.
593 * nto-low.cc (nto_target_ops): Update.
594 * win32-low.cc (win32_target_ops): Update.
595
345dafad
TBA
5962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
597
598 Turn process_stratum_target's emit_ops op into a method of
599 process_target.
600
601 * target.h (struct process_stratum_target): Remove the target op.
602 (class process_target): Add the target op.
603 (target_emit_ops): Update the macro.
604 * target.cc (process_target::emit_ops): Define.
605
606 Update the derived classes and callers below.
607
608 * linux-low.cc (linux_target_ops): Update.
609 (linux_emit_ops): Turn into ...
610 (linux_process_target::emit_ops): ... this.
611 * linux-low.h (class linux_process_target): Update.
612 * lynx-low.cc (lynx_target_ops): Update.
613 * nto-low.cc (nto_target_ops): Update.
614 * win32-low.cc (win32_target_ops): Update.
615
c23c9391
TBA
6162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
617
618 Turn process_stratum_target's install_fast_tracepoint_jump_pad
619 and get_min_fast_tracepoint_insn_len ops into methods of
620 process_target.
621
622 * target.h (struct process_stratum_target): Remove the target ops.
623 (class process_target): Add the target ops. Also add
624 'supports_fast_tracepoints'.
625 (target_supports_fast_tracepoints): Update the macro.
626 (target_get_min_fast_tracepoint_insn_len): Update the macro.
627 (install_fast_tracepoint_jump_pad): Update and rename the macro
628 to ...
629 (target_install_fast_tracepoint_jump_pad): ... this.
630 * target.cc (process_target::supports_fast_tracepoints): Define.
631 (process_target::install_fast_tracepoint_jump_pad): Define.
632 (process_target::get_min_fast_tracepoint_insn_len): Define.
633
634 Update the derived classes and callers below.
635
636 * tracepoint.cc (install_fast_tracepoint): Update.
637 * linux-low.cc (linux_target_ops): Update.
638 (linux_process_target::supports_fast_tracepoints): Define.
639 (linux_install_fast_tracepoint_jump_pad): Turn into ...
640 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
641 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
642 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
643 * linux-low.h (class linux_process_target): Update.
644 * lynx-low.cc (lynx_target_ops): Update.
645 * nto-low.cc (nto_target_ops): Update.
646 * win32-low.cc (win32_target_ops): Update.
647
5c9eb2f2
TBA
6482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
649
650 Turn process_stratum_target's stabilize_threads op into a
651 method of process_target.
652
653 * target.h (struct process_stratum_target): Remove the target op.
654 (class process_target): Add the target op.
655 (target_stabilize_threads): Update the macro.
656 * target.cc (process_target::stabilize_threads): Define.
657
658 Update the derived classes and callers below.
659
660 * server.cc (handle_status): Update.
661 * tracepoint.cc (cmd_qtdp): Update.
662 (cmd_qtstart): Update.
663 * linux-low.cc (linux_target_ops): Update.
664 (linux_stabilize_threads): Turn into ...
665 (linux_process_target::stabilize_threads): ... this.
666 (linux_wait_1): Update.
667 * linux-low.h (class linux_process_target): Update.
668 * lynx-low.cc (lynx_target_ops): Update.
669 * nto-low.cc (nto_target_ops): Update.
670 * win32-low.cc (win32_target_ops): Update.
671
29e8dc09
TBA
6722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
673
674 Turn process_stratum_target's pause_all and unpause_all ops
675 into methods of process_target.
676
677 * target.h (struct process_stratum_target): Remove the target ops.
678 (class process_target): Add the target ops.
679 (pause_all): Update the macro and rename to...
680 (target_pause_all): ... this.
681 (unpause_all): Update the macro and rename to...
682 (target_unpause_all): ... this.
683 * target.cc (process_target::pause_all): Define.
684 (process_target::unpause_all): Define.
685
686 Update the derived classes and callers below.
687
688 * server.cc (handle_status): Update.
689 * tracepoint.cc (clear_installed_tracepoints): Update.
690 (cmd_qtdp): Update.
691 (cmd_qtstart): Update.
692 (stop_tracing): Update.
693 (cmd_qtstatus): Update.
694 (upload_fast_traceframes): Update.
695 (run_inferior_command): Update.
696 * linux-low.cc (linux_target_ops): Update.
697 (linux_pause_all): Turn into ...
698 (linux_process_target::pause_all): ... this.
699 (linux_unpause_all): Turn into ...
700 (linux_process_target::unpause_all): ... this.
701 (linux_process_target::prepare_to_access_memory): Update.
702 (linux_process_target::done_accessing_memory): Update.
703 * linux-low.h (class linux_process_target): Update.
704 * lynx-low.cc (lynx_target_ops): Update.
705 * nto-low.cc (nto_target_ops): Update.
706 * win32-low.cc (win32_target_ops): Update.
707
4e2e869c
TBA
7082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
709
710 Turn process_stratum_target's get_tib_address op into a method of
711 process_target.
712
713 * target.h (struct process_stratum_target): Remove the target op.
714 (class process_target): Add the target op. Also add
715 'supports_get_tib_address'.
716 * target.cc (process_target::get_tib_address): Define.
717 (process_target::supports_get_tib_address): Define.
718
719 Update the derived classes and callers below.
720
721 * server.cc (handle_query): Update.
722 * linux-low.cc (win32_target_ops): Update.
723 * lynx-low.cc (lynx_target_ops): Update.
724 * nto-low.cc (nto_target_ops): Update.
725 * win32-low.cc (win32_target_ops): Update.
726 (win32_process_target::supports_get_tib_address): Define.
727 (win32_get_tib_address): Turn into ...
728 (win32_process_target::get_tib_address): ... this.
729 * win32-low.h (class win32_process_target): Update.
730
68119632
TBA
7312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
732
733 Turn process_stratum_target's thread_stopped op into a method of
734 process_target.
735
736 * target.h (struct process_stratum_target): Remove the target op.
737 (class process_target): Add the target op. Also add
738 'supports_thread_stopped'.
739 (target_thread_stopped): Update the macro.
740 * target.cc (process_target::thread_stopped): Define.
741 (process_target::supports_thread_stopped): Define.
742 (prepare_to_access_memory): Update.
743
744 Update the derived classes and callers below.
745
746 * server.cc (queue_stop_reply_callback): Update.
747 * linux-low.cc (linux_target_ops): Update.
748 (linux_process_target::supports_thread_stopped): Define.
749 (linux_thread_stopped): Turn into ...
750 (linux_process_target::thread_stopped): ... this.
751 * linux-low.h (class linux_process_target): Update.
752 * lynx-low.cc (lynx_target_ops): Update.
753 * nto-low.cc (nto_target_ops): Update.
754 * win32-low.cc (win32_target_ops): Update.
755
770d8f6a
TBA
7562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
757
758 Turn process_stratum_target's read_pc and write_pc ops into
759 methods of process_target.
760
761 * target.h (struct process_stratum_target): Remove the target ops.
762 (class process_target): Add the target ops.
763 * target.cc (process_target::read_pc): Define.
764 (process_target::write_pc): Define.
765
766 Update the derived classes and callers below.
767
768 * regcache.cc (regcache_read_pc): Update.
769 (regcache_write_pc): Update.
770 * linux-low.cc (linux_target_ops): Update.
771 (linux_read_pc): Turn into ...
772 (linux_process_target::read_pc): ... this.
773 (linux_write_pc): Turn into ...
774 (linux_process_target::write_pc): ... this.
775 * linux-low.h (class linux_process_target): Update.
776 * lynx-low.cc (lynx_target_ops): Update.
777 * nto-low.cc (nto_target_ops): Update.
778 * win32-low.cc (win32_target_ops): Update.
779
290732bf
TBA
7802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
781
782 Turn process_stratum_target's supports_tracepoints op into a
783 method of process_target.
784
785 * target.h (struct process_stratum_target): Remove the target op.
786 (class process_target): Add the target op.
787 (target_supports_tracepoints): Update the macro.
788 * target.cc (process_target::supports_tracepoints): Define.
789
790 Update the derived classes and callers below.
791
792 * linux-low.cc (linux_target_ops): Update.
793 (linux_supports_tracepoints): Turn into ...
794 (linux_process_target::supports_tracepoints): ... this.
795 * linux-low.h (class linux_process_target): Update.
796 * lynx-low.cc (lynx_target_ops): Update.
797 * nto-low.cc (nto_target_ops): Update.
798 * win32-low.cc (win32_target_ops): Update.
799
0df28b1b
TBA
8002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
801
802 Turn process_stratum_target's process_qsupported op into a method
803 of process_target.
804
805 * target.h (struct process_stratum_target): Remove the target op.
806 (class process_target): Add the target op.
807 (target_process_qsupported): Update the macro.
808 * target.cc (process_target::process_qsupported): Define.
809
810 Update the derived classes and callers below.
811
812 * linux-low.cc (linux_target_ops): Update.
813 (linux_process_qsupported): Turn into ...
814 (linux_process_target::process_qsupported): ... this.
815 * linux-low.h (class linux_process_target): Update.
816 * lynx-low.cc (lynx_target_ops): Update.
817 * nto-low.cc (nto_target_ops): Update.
818 * win32-low.cc (win32_target_ops): Update.
819
9da41fda
TBA
8202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
821
822 Turn process_stratum_target's read_loadmap op into a method of
823 process_target.
824
825 * target.h (struct process_stratum_target): Remove the target op.
826 (class process_target): Add the target op. Also add
827 'supports_read_loadmap'.
828 * target.cc (process_target::read_loadmap): Define.
829 (process_target::supports_read_loadmap): Define.
830
831 Update the derived classes and callers below.
832
833 * server.cc (handle_qxfer_fdpic): Update.
834 (handle_query): Update.
835 * linux-low.cc (linux_target_ops): Update.
836 (linux_process_target::supports_read_loadmap): Define.
837 (linux_read_loadmap): Turn into ...
838 (linux_process_target::read_loadmap): ... this.
839 * linux-low.h (class linux_process_target): Update.
840 * lynx-low.cc (lynx_target_ops): Update.
841 * nto-low.cc (nto_target_ops): Update.
842 * win32-low.cc (win32_target_ops): Update.
843
95a45fc1
TBA
8442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
845
846 Turn process_stratum_target's core_of_thread op into a method of
847 process_target.
848
849 * target.h (struct process_stratum_target): Remove the target op.
850 (class process_target): Add the target op.
851 (target_core_of_thread): Update the macro.
852 * target.cc (process_target::core_of_thread): Define.
853
854 Update the derived classes and callers below.
855
856 * linux-low.cc (linux_target_ops): Update.
857 (linux_process_target::core_of_thread): Define.
858 * linux-low.h (class linux_process_target): Update.
859 * lynx-low.cc (lynx_target_ops): Update.
860 * nto-low.cc (nto_target_ops): Update.
861 * win32-low.cc (win32_target_ops): Update.
862
55cf3021
TBA
8632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
864
865 Turn process_stratum_target's handle_monitor_command op into a
866 method of process_target.
867
868 * target.h (struct process_stratum_target): Remove the target op.
869 (class process_target): Add the target op.
870 (target_handle_monitor_command): Update the macro.
871 * target.cc (process_target::handle_monitor_command): Define.
872
873 Update the derived classes and callers below.
874
875 * server.cc (handle_query): Update.
876 * linux-low.cc (linux_target_ops): Update.
877 (linux_process_target::handle_monitor_command): Define.
878 * linux-low.h (class linux_process_target): Update.
879 * lynx-low.cc (lynx_target_ops): Update.
880 * nto-low.cc (nto_target_ops): Update.
881 * win32-low.cc (win32_target_ops): Update.
882
fb00dfce
TBA
8832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
884
885 Turn process_stratum_target's handle_new_gdb_connection op into a
886 method of process_target.
887
888 * target.h (struct process_stratum_target): Remove the target op.
889 (class process_target): Add the target op.
890 (target_handle_new_gdb_connection): Update the macro.
891 * target.cc (process_target::handle_new_gdb_connection): Define.
892
893 Update the derived classes and callers below.
894
895 * linux-low.cc (linux_target_ops): Update.
896 (linux_handle_new_gdb_connection): Turn into ...
897 (linux_process_target::handle_new_gdb_connection): ... this.
898 * linux-low.h (class linux_process_target): Update.
899 * lynx-low.cc (lynx_target_ops): Update.
900 * nto-low.cc (nto_target_ops): Update.
901 * win32-low.cc (win32_target_ops): Update.
902
9690a72a
TBA
9032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
904
905 Turn process_stratum_target's supports_fork_events,
906 supports_vfork_events, and supports_exec_events ops into methods
907 of process_target.
908
909 * target.h (struct process_stratum_target): Remove the target ops.
910 (class process_target): Add the target ops.
911 (target_supports_fork_events): Update the macro.
912 (target_supports_vfork_events): Update the macro.
913 (target_supports_exec_events): Update the macro.
914 * target.cc (process_target::supports_fork_events): Define.
915 (process_target::supports_vfork_events): Define.
916 (process_target::supports_exec_events): Define.
917
918 Update the derived classes and callers below.
919
920 * linux-low.cc (linux_target_ops): Update.
921 (linux_supports_fork_events): Turn into ...
922 (linux_process_target::supports_fork_events): ... this.
923 (linux_supports_vfork_events): Turn into ...
924 (linux_process_target::supports_vfork_events): ... this.
925 (linux_supports_exec_events): Turn into ...
926 (linux_process_target::supports_exec_events): ... this.
927 * linux-low.h (class linux_process_target): Update.
928 * lynx-low.cc (lynx_target_ops): Update.
929 * nto-low.cc (nto_target_ops): Update.
930 * win32-low.cc (win32_target_ops): Update.
931
652aef77
TBA
9322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
933
934 Turn process_stratum_target's supports_multi_process op into a
935 method of process_target.
936
937 * target.h (struct process_stratum_target): Remove the target op.
938 (class process_target): Add the target op.
939 * target.cc (process_target::supports_multi_process): Define.
940 (target_supports_multi_process): Update.
941
942 Update the derived classes and callers below.
943
944 * linux-low.cc (linux_target_ops): Update.
945 (linux_supports_multi_process): Turn into ...
946 (linux_process_target::supports_multi_process): ... this.
947 * linux-low.h (class linux_process_target): Update.
948 * lynx-low.cc (lynx_target_ops): Update.
949 * nto-low.cc (nto_target_ops): Update.
950 * win32-low.cc (win32_target_ops): Update.
951
0dc587d4
TBA
9522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
953
954 Turn process_stratum_target's supports_non_stop, async, and
955 start_non_stop ops into methods of process_target.
956
957 * target.h (struct process_stratum_target): Remove the target ops.
958 (class process_target): Add the target ops.
959 (target_supports_non_stop): Update the macro.
960 (target_async): Update the macro.
961 (start_non_stop): Remove declaration.
962 * target.cc (process_target::supports_non_stop): Define.
963 (process_target::async): Define.
964 (process_target::start_non_stop): Define.
965 (start_non_stop): Remove.
966
967 Update the derived classes and callers below.
968
969 * server.cc (handle_qxfer_siginfo): Update.
970 (handle_query): Update.
971 * linux-low.cc (linux_target_ops): Update.
972 (linux_supports_non_stop): Turn into ...
973 (linux_process_target::supports_non_stop): ... this.
974 (linux_async): Turn into ...
975 (linux_process_target::async): ... this.
976 (linux_start_non_stop): Turn into ...
977 (linux_process_target::start_non_stop): ... this.
978 * linux-low.h (class linux_process_target): Update.
979 * lynx-low.cc (lynx_target_ops): Update.
980 * nto-low.cc (nto_target_ops): Update.
981 (nto_supports_non_stop): Remove; rely on the default behavior
982 instead.
983 * win32-low.cc (win32_target_ops): Update.
984
d7abedf7
TBA
9852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
986
987 Turn process_stratum_target's qxfer_siginfo op into a method of
988 process_target.
989
990 * target.h (struct process_stratum_target): Remove the target op.
991 (class process_target): Add the target op. Also add
992 'supports_qxfer_siginfo'.
993 * target.cc (process_target::qxfer_siginfo): Define.
994 (process_target::supports_qxfer_siginfo): Define.
995
996 Update the derived classes and callers below.
997
998 * server.cc (handle_qxfer_siginfo): Update.
999 (handle_query): Update.
1000 * linux-low.cc (linux_target_ops): Update.
1001 (linux_process_target::supports_qxfer_siginfo): Define.
1002 (linux_xfer_siginfo): Turn into ...
1003 (linux_process_target::qxfer_siginfo): ... this.
1004 * linux-low.h (class linux_process_target): Update.
1005 * lynx-low.cc (lynx_target_ops): Update.
1006 * nto-low.cc (nto_target_ops): Update.
1007 * win32-low.cc (win32_target_ops): Update.
1008
2d0795ee
TBA
10092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1010
1011 Turn process_stratum_target's qxfer_osdata op into a method of
1012 process_target.
1013
1014 * target.h (struct process_stratum_target): Remove the target op.
1015 (class process_target): Add the target op. Also add
1016 'supports_qxfer_osdata'.
1017 * target.cc (process_target::qxfer_osdata): Define.
1018 (process_target::supports_qxfer_osdata): Define.
1019
1020 Update the derived classes and callers below.
1021
1022 * server.cc (handle_qxfer_osdata): Update.
1023 (handle_query): Update.
1024 * linux-low.cc (linux_target_ops): Update.
1025 (linux_process_target::supports_qxfer_osdata): Define.
1026 (linux_qxfer_osdata): Turn into ...
1027 (linux_process_target::qxfer_osdata): ... this.
1028 * linux-low.h (class linux_process_target): Update.
1029 * lynx-low.cc (lynx_target_ops): Update.
1030 * nto-low.cc (nto_target_ops): Update.
1031 * win32-low.cc (win32_target_ops): Update.
1032
ea06bbaa
TBA
10332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1034
1035 Turn process_stratum_target's hostio_last_error op into a
1036 method of process_target.
1037
1038 * target.h (struct process_stratum_target): Remove the target op.
1039 (class process_target): Add the target op.
1040 * target.cc: Add "hostio.h" to includes.
1041 (process_target::hostio_last_error): Define.
1042
1043 Update the derived classes and callers below.
1044
1045 * hostio.cc (hostio_error): Update.
1046 * linux-low.cc: Remove "hostio.h" from includes.
1047 (linux_target_ops): Update.
1048 * lynx-low.cc (lynx_target_ops): Update.
1049 * nto-low.cc (nto_target_ops): Update.
1050 * win32-low.h (class win32_process_target): Update.
1051 * win32-low.cc (win32_target_ops): Update.
1052 (wince_hostio_last_error): Turn into ...
1053 (win32_process_target::hostio_last_error): ... this.
1054
6e3fd7e9
TBA
10552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1056
1057 Turn process_stratum_target's get_tls_address op into a method of
1058 process_target.
1059
1060 * target.h (struct process_stratum_target): Remove the target op.
1061 (class process_target): Add the target op. Also add
1062 'supports_get_tls_address'.
1063 * target.cc (process_target::get_tls_address): Define.
1064 (process_target::supports_get_tls_address): Define.
1065
1066 Update the derived classes and callers below.
1067
1068 * server.cc (handle_query): Update.
1069 * linux-low.cc (linux_target_ops): Update.
1070 (linux_process_target::supports_get_tls_address): Define.
1071 (linux_process_target::get_tls_address): Define.
1072 * linux-low.h (class linux_process_target): Update.
1073 * lynx-low.cc (lynx_target_ops): Update.
1074 * nto-low.cc (nto_target_ops): Update.
1075 * win32-low.cc (win32_target_ops): Update.
1076
5203ae1e
TBA
10772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1078
1079 Turn process_stratum_target's read_offsets op into a method of
1080 process_target.
1081
1082 * target.h (struct process_stratum_target): Remove the target op.
1083 (class process_target): Add the target op. Also add
1084 'supports_read_offsets'.
1085 * target.cc (process_target::read_offsets): Define.
1086 (process_target::supports_read_offsets): Define.
1087
1088 Update the derived classes and callers below.
1089
1090 * server.cc (handle_query): Update.
1091 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1092 (linux_target_ops): Update.
1093 (linux_process_target::supports_read_offsets): Define.
1094 (linux_read_offsets): Turn into ...
1095 (linux_process_target::read_offsets): ... this.
1096 * linux-low.h (class linux_process_target): Update.
1097 * lynx-low.cc (lynx_target_ops): Update.
1098 * nto-low.cc (nto_target_ops): Update.
1099 * win32-low.cc (win32_target_ops): Update.
1100
6eeb5c55
TBA
11012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1102
1103 Turn process_stratum_target's stopped_by_watchpoint and
1104 stopped_data_address ops into methods of process_target.
1105
1106 * target.h (struct process_stratum_target): Remove the target ops.
1107 (class process_target): Add the target ops.
1108 * target.cc (process_target::stopped_by_watchpoint): Define.
1109 (process_target::stopped_data_address): Define.
1110
1111 Update the derived classes and callers below.
1112
1113 * remote-utils.cc (prepare_resume_reply): Update.
1114 * linux-low.cc (linux_target_ops): Update.
1115 (linux_stopped_by_watchpoint): Turn into ...
1116 (linux_process_target::stopped_by_watchpoint): ... this.
1117 (linux_stopped_data_address): Turn into ...
1118 (linux_process_target::stopped_data_address): ... this.
1119 * linux-low.h (class linux_process_target): Update.
1120 * lynx-low.cc (lynx_target_ops): Update.
1121 * nto-low.cc (nto_target_ops): Update.
1122 (nto_stopped_by_watchpoint): Turn into ...
1123 (nto_process_target::stopped_by_watchpoint): ... this.
1124 (nto_stopped_data_address): Turn into ...
1125 (nto_process_target::stopped_data_address): ... this.
1126 * nto-low.h (class nto_process_target): Update.
1127 * win32-low.cc (win32_target_ops): Update.
1128 (win32_stopped_by_watchpoint): Turn into ...
1129 (win32_process_target::stopped_by_watchpoint): ... this.
1130 (win32_stopped_data_address): Turn into ...
1131 (win32_process_target::stopped_data_address): ... this.
1132 * win32-low.h (class win32_process_target): Update.
1133
22aa6223
TBA
11342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1135
1136 Turn process_stratum_target's supports_hardware_single_step op into
1137 a method of process_target.
1138
1139 * target.h (struct process_stratum_target): Remove the target op.
1140 (class process_target): Add the target op.
1141 (target_supports_hardware_single_step): Update the macro.
1142 (target_can_do_hardware_single_step): Remove declaration.
1143 * target.cc (process_target::supports_hardware_single_step): Define.
1144 (target_can_do_hardware_single_step): Remove.
1145
1146 Update the derived classes and callers below.
1147
1148 * linux-low.h (class linux_process_target): Update.
1149 * linux-low.cc (linux_target_ops): Update.
1150 (linux_supports_hardware_single_step): Turn into ...
1151 (linux_process_target::supports_hardware_single_step): ... this.
1152 * lynx-low.h (class lynx_process_target): Update.
1153 * lynx-low.cc (lynx_target_ops): Update.
1154 (lynx_process_target::supports_hardware_single_step): Define.
1155 * nto-low.h (class nto_process_target): Update.
1156 * nto-low.cc (nto_target_ops): Update.
1157 (nto_process_target::supports_hardware_single_step): Define.
1158 * win32-low.h (class win32_process_target): Update.
1159 * win32-low.cc (win32_target_ops): Update.
1160 (win32_process_target::supports_hardware_single_step): Define.
1161
93fe88b2
TBA
11622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1163
1164 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1165 ops into methods of process_target.
1166
1167 * target.h (struct process_stratum_target): Remove the target ops.
1168 (class process_target): Add the target ops.
1169 (target_stopped_by_hw_breakpoint): Update the macro.
1170 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1171 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1172 (process_target::supports_stopped_by_hw_breakpoint): Define.
1173
1174 Update the derived classes and callers below.
1175
1176 * linux-low.cc (linux_target_ops): Update.
1177 (linux_stopped_by_hw_breakpoint): Turn into ...
1178 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1179 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1180 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1181 * linux-low.h (class linux_process_target): Update.
1182 * lynx-low.cc (lynx_target_ops): Update.
1183 * nto-low.cc (nto_target_ops): Update.
1184 * win32-low.cc (win32_target_ops): Update.
1185
84320c4e
TBA
11862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1187
1188 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1189 ops into methods of process_target.
1190
1191 * target.h (struct process_stratum_target): Remove the target ops.
1192 (class process_target): Add the target ops.
1193 (target_stopped_by_sw_breakpoint): Update the macro.
1194 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1195 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1196 (process_target::supports_stopped_by_sw_breakpoint): Define.
1197
1198 Update the derived classes and callers below.
1199
1200 * linux-low.cc (linux_target_ops): Update.
1201 (linux_stopped_by_sw_breakpoint): Turn into ...
1202 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1203 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1204 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1205 * linux-low.h (class linux_process_target): Update.
1206 * lynx-low.cc (lynx_target_ops): Update.
1207 * nto-low.cc (nto_target_ops): Update.
1208 * win32-low.cc (win32_target_ops): Update.
1209
7e0bde70
TBA
12102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1211
1212 Turn process_stratum_target's insert_point and remove_point ops
1213 into methods of process_target.
1214
1215 * target.h (struct process_stratum_target): Remove the target ops.
1216 (class process_target): Add the target ops.
1217 * target.cc (process_target::insert_point): Define.
1218 (process_target::remove_point): Define.
1219
1220 Update the derived classes and callers below.
1221
1222 * mem-break.cc (set_raw_breakpoint_at): Update.
1223 (delete_raw_breakpoint): Update.
1224 (uninsert_raw_breakpoint): Update.
1225 (reinsert_raw_breakpoint): Update.
1226 * linux-low.cc (linux_target_ops): Update.
1227 (linux_insert_point): Turn into ...
1228 (linux_process_target::insert_point): ... this.
1229 (linux_remove_point): Turn into ...
1230 (linux_process_target::remove_point): ... this.
1231 * linux-low.h (class linux_process_target): Update.
1232 * lynx-low.cc (lynx_target_ops): Update.
1233 * nto-low.cc (nto_target_ops): Update.
1234 (nto_insert_point): Turn into ...
1235 (nto_process_target::insert_point): ... this.
1236 (nto_remove_point): Turn into ...
1237 (nto_process_target::remove_point): ... this.
1238 * nto-low.h (class nto_process_target): Update.
1239 * win32-low.cc (win32_target_ops): Update.
1240 (win32_insert_point): Turn into ...
1241 (win32_process_target::insert_point): ... this.
1242 (win32_remove_point): Turn into ...
1243 (win32_process_target::remove_point): ... this.
1244 * win32-low.h (class win32_process_target): Update.
1245
a2b2297a
TBA
12462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1247
1248 Turn process_stratum_target's supports_z_point_type op into a
1249 method of process_target.
1250
1251 * target.h (struct process_stratum_target): Remove the target op.
1252 (class process_target): Add the target op.
1253 * target.cc (process_target::supports_z_point_type): Define.
1254
1255 Update the derived classes and callers below.
1256
1257 * mem-break.cc (z_type_supported): Update.
1258 * linux-low.cc (linux_target_ops): Update.
1259 (linux_supports_z_point_type): Turn into ...
1260 (linux_process_target::supports_z_point_type): ... this.
1261 * linux-low.h (class linux_process_target): Update.
1262 * lynx-low.cc (lynx_target_ops): Update.
1263 * nto-low.cc (nto_target_ops): Update.
1264 (nto_supports_z_point_type): Turn into ...
1265 (nto_process_target::supports_z_point_type): ... this.
1266 * nto-low.h (class nto_process_target): Update.
1267 * win32-low.cc (win32_target_ops): Update.
1268 (win32_supports_z_point_type): Turn into ...
1269 (win32_process_target::supports_z_point_type): ... this.
1270 * win32-low.h (class win32_process_target): Update.
1271
eac215cc
TBA
12722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1273
1274 Turn process_stratum_target's read_auxv op into a method of
1275 process_target.
1276
1277 * target.h (class process_stratum_target): Remove the target op.
1278 (struct process_target): Add the target op. Also add
1279 'supports_read_auxv'.
1280 * target.cc (process_target::read_auxv): Define.
1281 (process_target::supports_read_auxv): Define.
1282
1283 Update the derived classes and callers below.
1284
1285 * server.cc (handle_qxfer_auxv): Update.
1286 (handle_query): Update.
1287 * linux-low.cc (linux_target_ops): Update.
1288 (linux_process_target::supports_read_auxv): Define.
1289 (linux_read_auxv): Turn into ...
1290 (linux_process_target::read_auxv): ... this.
1291 * linux-low.h (class linux_process_target): Update.
1292 * lynx-low.cc (lynx_target_ops): Update.
1293 * nto-low.cc (nto_target_ops): Update.
1294 (nto_process_target::supports_read_auxv): Define.
1295 (nto_read_auxv): Turn into ...
1296 (nto_process_target::read_auxv): ... this.
1297 * nto-low.h (class nto_process_target): Update.
1298 * win32-low.cc (win32_target_ops): Update.
1299
eb497a2a
TBA
13002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1301
1302 Turn process_stratum_target's request_interrupt op into a method of
1303 process_target.
1304
1305 * target.h (struct process_stratum_target): Remove the target op.
1306 (class process_target): Add the target op.
1307
1308 Update the derived classes and callers below.
1309
1310 * remote-utils.cc (putpkt_binary_1): Update.
1311 (input_interrupt): Update.
1312 (getpkt): Update.
1313 * server.cc (handle_v_requests): Update.
1314 * linux-low.cc (linux_target_ops): Update.
1315 (linux_request_interrupt): Turn into ...
1316 (linux_process_target::request_interrupt): ... this.
1317 * linux-low.h (class linux_process_target): Update.
1318 * lynx-low.cc (lynx_target_ops): Update.
1319 (lynx_request_interrupt): Turn into ...
1320 (lynx_process_target::request_interrupt): ... this.
1321 * lynx-low.h (class lynx_process_target): Update.
1322 * nto-low.cc (nto_target_ops): Update.
1323 (nto_request_interrupt): Turn into ...
1324 (nto_process_target::request_interrupt): ... this.
1325 * nto-low.h (class nto_process_target): Update.
1326 * win32-low.cc (win32_target_ops): Update.
1327 (win32_request_interrupt): Turn into ...
1328 (win32_process_target::request_interrupt): ... this.
1329 * win32-low.h (class win32_process_target): Update.
1330
2a31c7aa
TBA
13312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1332
1333 Turn process_stratum_target's look_up_symbols op into a method of
1334 process_target.
1335
1336 * target.h (struct process_stratum_target): Remove the target op.
1337 (class process_target): Add the target op.
1338 * target.cc (process_target::look_up_symbols): Define.
1339
1340 Update the derived classes and callers below.
1341
1342 * server.cc (handle_query): Update.
1343 * linux-low.cc (linux_target_ops): Update.
1344 (linux_look_up_symbols): Turn into ...
1345 (linux_process_target::look_up_symbols): ... this.
1346 * linux-low.h (class linux_process_target): Update.
1347 * lynx-low.cc (lynx_target_ops): Update.
1348 * nto-low.cc (nto_target_ops): Update.
1349 * win32-low.cc (win32_target_ops): Update.
1350
e2558df3
TBA
13512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1352
1353 Turn process_stratum_target's read_memory and write_memory
1354 ops into methods of process_target.
1355
1356 * target.h (struct process_stratum_target): Remove the target ops.
1357 (class process_target): Add the target ops.
1358
1359 Update the derived classes and callers below.
1360
1361 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1362 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1363 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1364 (arm_get_syscall_trapinfo): Update.
1365 * linux-cris-low.cc (cris_breakpoint_at): Update.
1366 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1367 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1368 * linux-mips-low.cc (mips_breakpoint_at): Update.
1369 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1370 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1371 * linux-sh-low.cc (sh_breakpoint_at): Update.
1372 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1373 (sparc_store_gregset_from_stack): Update.
1374 (sparc_breakpoint_at): Update.
1375 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1376 * linux-tile-low.cc (tile_breakpoint_at): Update.
1377 * linux-x86-low.cc (x86_breakpoint_at): Update.
1378 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1379 * mem-brea.cc (insert_memory_breakpoint): Update.
1380 (validate_inserted_breakpoint): Update.
1381 * target.cc (read_inferior_memory): Update.
1382 (target_write_memory): Update.
1383 * linux-low.cc (linux_target_ops): Update.
1384 (linux_read_memory): Make a wrapper around the read_memory target
1385 op call.
1386 (linux_process_target::read_memory): Rename from linux_read_memory.
1387 (linux_write_memory): Turn into ...
1388 (linux_process_target::write_memory): ... this.
1389 * linux-low.h (class linux_process_target): Update.
1390 * lynx-low.cc (lynx_target_ops): Update.
1391 (lynx_read_memory): Turn into ...
1392 (lynx_process_target::read_memory): ... this.
1393 (lynx_write_memory): Turn into ...
1394 (lynx_process_target::write_memory): ... this.
1395 * lynx-low.h (class lynx_process_target): Update.
1396 * nto-low.cc (nto_target_ops): Update.
1397 (nto_read_memory): Turn into ...
1398 (nto_process_target::read_memory): ... this.
1399 (nto_write_memory): Turn into ...
1400 (nto_process_target::write_memory): ... this.
1401 * nto-low.h (class nto_process_target): Update.
1402 * win32-low.cc (win32_target_ops): Update.
1403 (win32_read_inferior_memory): Turn into ...
1404 (win32_process_target::read_memory): ... this.
1405 (win32_write_inferior_memory): Turn into ...
1406 (win32_process_target::write_memory): ... this.
1407 * win32-low.h (class win32_process_target): Update.
1408
79b44087
TBA
14092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1410
1411 Turn process_stratum_target's prepare_to_access_memory and
1412 done_accessing_memory ops into methods of process_target.
1413
1414 * target.h (struct process_stratum_target): Remove the target ops.
1415 (class process_target): Add the target ops.
1416 * target.cc (process_target::prepare_to_access_memory): Define.
1417 (process_target::done_accessing_memory): Define.
1418 (prepare_to_access_memory): Update.
1419 (done_accessing_memory): Update.
1420
1421 Update the derived classes and callers below.
1422
1423 * linux-low.cc (linux_target_ops): Update.
1424 (linux_prepare_to_access_memory): Turn into ...
1425 (linux_process_target::prepare_to_access_memory): ... this.
1426 (linux_done_accessing_memory): Turn into ...
1427 (linux_process_target::done_accessing_memory): ... this.
1428 * linux-low.h (class linux_process_target): Update.
1429 * lynx-low.cc (lynx_target_ops): Update.
1430 * nto-low.cc (nto_target_ops): Update.
1431 * win32-low.cc (win32_target_ops): Update.
1432
a5a4d4cd
TBA
14332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1434
1435 Turn process_stratum_target's fetch_registers and store_registers
1436 ops into methods of process_target.
1437
1438 * target.h (struct process_stratum_target): Remove the target ops.
1439 (class process_target): Add the target ops.
1440 (fetch_inferior_registers): Update the macro.
1441 (store_inferior_registers): Update the macro.
1442
1443 Update the derived classes and callers below.
1444
1445 * linux-low.cc (linux_target_ops): Update.
1446 (linux_fetch_registers): Turn into ...
1447 (linux_process_target::fetch_registers): ... this.
1448 (linux_store_registers): Turn into ...
1449 (linux_process_target::store_registers): ... this.
1450 * linux-low.h (class linux_process_target): Update.
1451 * lynx-low.cc (lynx_target_ops): Update.
1452 (lynx_fetch_registers): Turn into ...
1453 (lynx_process_target::fetch_registers): ... this.
1454 (lynx_store_registers): Turn into ...
1455 (lynx_process_target::store_registers): ... this.
1456 * lynx-low.h (class lynx_process_target): Update.
1457 * nto-low.cc (nto_target_ops): Update.
1458 (nto_fetch_registers): Turn into ...
1459 (nto_process_target::fetch_registers): ... this.
1460 (nto_store_registers): Turn into ...
1461 (nto_process_target::store_registers): ... this.
1462 * nto-low.h (class nto_process_target): Update.
1463 * win32-low.cc (win32_target_ops): Update.
1464 (win32_fetch_inferior_registers): Turn into ...
1465 (win32_process_target::fetch_registers): ... this.
1466 (win32_store_inferior_registers): Turn into ...
1467 (win32_process_target::store_registers): ... this.
1468 * win32-low.h (class win32_process_target): Update.
1469
6532e7e3
TBA
14702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1471
1472 Turn process_stratum_target's wait op into a method of
1473 process_target.
1474
1475 * target.h (struct process_stratum_target): Remove the target op.
1476 (class process_target): Add the target op.
1477
1478 Update the derived classes and callers below.
1479
1480 * target.cc (target_wait): Update.
1481 * linux-low.cc (linux_target_ops): Update.
1482 (linux_wait): Turn into ...
1483 (linux_process_target::wait): ... this.
1484 * linux-low.h (class linux_process_target): Update.
1485 * lynx-low.cc (lynx_target_ops): Update.
1486 (lynx_wait): Turn into ...
1487 (lynx_process_target::wait): ... this.
1488 * lynx-low.h (class lynx_process_target): Update.
1489 * nto-low.cc (nto_target_ops): Update.
1490 (nto_wait): Turn into ...
1491 (nto_process_target::wait): ... this.
1492 * nto-low.h (class nto_process_target): Update.
1493 * win32-low.cc (win32_target_ops): Update.
1494 (win32_wait): Turn into ...
1495 (win32_process_target::wait): ... this.
1496 (do_initial_child_stuff): Update.
1497 * win32-low.h (class win32_process_target): Update.
1498
0e4d7e35
TBA
14992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1500
1501 Turn process_stratum_target's resume op into a method of
1502 process_target.
1503
1504 * target.h (struct process_stratum_target): Remove the target op.
1505 (class process_target): Add the target op.
1506
1507 Update the derived classes and callers below.
1508
1509 * server.cc (resume): Update.
1510 * target.cc (target_stop_and_wait): Update.
1511 (target_continue_no_signal): Update.
1512 (target_continue): Update.
1513 * linux-low.cc (linux_target_ops): Update.
1514 (linux_resume): Turn into ...
1515 (linux_process_target::resume): ... this.
1516 * linux-low.h (class linux_process_target): Update.
1517 * lynx-low.cc (lynx_target_ops): Update.
1518 (lynx_resume): Turn into ...
1519 (lynx_process_target::resume): ... this.
1520 * lynx-low.h (class lynx_process_target): Update.
1521 * nto-low.cc (nto_target_ops): Update.
1522 (nto_resume): Turn into ...
1523 (nto_process_target::resume): ... this.
1524 * nto-low.h (class nto_process_target): Update.
1525 * win32-low.cc (win32_target_ops): Update.
1526 (win32_resume): Turn into ...
1527 (win32_process_target::resume): ... this.
1528 (win32_process_target::detach): Update.
1529 (do_initial_child_stuff): Update.
1530 * win32-low.h (class win32_process_target): Update.
1531
13d3d99b
TBA
15322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1533
1534 Turn process_stratum_target's thread_alive op into a method of
1535 process_target.
1536
1537 * target.h (struct process_stratum_target): Remove the target op.
1538 (class process_target): Add the target op.
1539 (mythread_alive): Update the macro.
1540
1541 Update the derived classes and callers below.
1542
1543 * linux-low.cc (linux_target_ops): Update.
1544 (linux_thread_alive): Turn into ...
1545 (linux_process_target::thread_alive): ... this.
1546 (wait_for_sigstop): Update.
1547 * linux-low.h (class linux_process_target): Update.
1548 * lynx-low.cc (lynx_target_ops): Update.
1549 (lynx_thread_alive): Turn into ...
1550 (lynx_process_target::thread_alive): ... this.
1551 * lynx-low.h (class lynx_process_target): Update.
1552 * nto-low.cc (nto_target_ops): Update.
1553 (nto_thread_alive): Turn into ...
1554 (nto_process_target::thread_alive): ... this.
1555 * nto-low.h (class nto_process_target): Update.
1556 * win32-low.cc (win32_target_ops): Update.
1557 (win32_thread_alive): Turn into ...
1558 (win32_process_target::thread_alive): ... this.
1559 * win32-low.h (class win32_process_target): Update.
1560
95a49a39
TBA
15612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1562
1563 Turn process_stratum_target's join op into a method of
1564 process_target.
1565
1566 * target.h (struct process_stratum_target): Remove the target op.
1567 (class process_target): Add the target op.
1568 (join_inferior): Update the macro.
1569
1570 Update the derived classes and callers below.
1571
1572 * linux-low.cc (linux_target_ops): Update.
1573 (linux_join): Turn into ...
1574 (linux_process_target::join): ... this.
1575 * linux-low.h (class linux_process_target): Update.
1576 * lynx-low.cc (lynx_target_ops): Update.
1577 (lynx_join): Turn into ...
1578 (lynx_process_target::join): ... this.
1579 * lynx-low.h (class lynx_process_target): Update.
1580 * nto-low.cc (nto_target_ops): Update.
1581 (nto_process_target::join): Define.
1582 * nto-low.h (class nto_process_target): Update.
1583 * win32-low.cc (win32_target_ops): Update.
1584 (win32_join): Turn into ...
1585 (win32_process_target::join): ... this.
1586 * win32-low.h (class win32_process_target): Update.
1587
8adb37b9
TBA
15882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1589
1590 Turn process_stratum_target's mourn op into a method of
1591 process_target.
1592
1593 * target.h (struct process_stratum_target): Remove the target op.
1594 (class process_target): Add the target op.
1595
1596 Update the derived classes and callers below.
1597
1598 * target.cc (target_mourn_inferior): Update.
1599 * linux-low.cc (linux_target_ops): Update.
1600 (linux_mourn): Turn into ...
1601 (linux_process_target::mourn): ... this.
1602 (handle_extended_wait): Update.
1603 (linux_process_target::kill): Update.
1604 (linux_process_target::detach): Update.
1605 * linux-low.h (class linux_process_target): Update.
1606 * lynx-low.cc (lynx_target_ops): Update.
1607 (lynx_mourn): Turn into ...
1608 (lynx_process_target::mourn): ... this.
1609 * lynx-low.h (class lynx_process_target): Update.
1610 * nto-low.cc (nto_target_ops): Update.
1611 (nto_mourn): Turn into ...
1612 (nto_process_target::mourn): ... this.
1613 * nto-low.h (class nto_process_target): Update.
1614 * win32-low.cc (win32_target_ops): Update.
1615 (win32_mourn): Turn into ...
1616 (win32_process_target::mourn): ... this.
1617 * win32-low.h (class win32_process_target): Update.
1618
9061c9cf
TBA
16192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1620
1621 Turn process_stratum_target's detach op into a method of
1622 process_target.
1623
1624 * target.h (struct process_stratum_target): Remove the target op.
1625 (class process_target): Add the target op.
1626 (detach_inferior): Update the macro.
1627
1628 Update the derived classes and callers below.
1629
1630 * linux-low.cc (linux_target_ops): Update.
1631 (linux_detach): Turn into ...
1632 (linux_process_target::detach): ... this.
1633 * linux-low.h (class linux_process_target): Update.
1634 * lynx-low.cc (lynx_target_ops): Update.
1635 (lynx_detach): Turn into ...
1636 (lynx_process_target::detach): ... this.
1637 * lynx-low.h (class lynx_process_target): Update.
1638 * nto-low.cc (nto_target_ops): Update.
1639 (nto_detach): Turn into ...
1640 (nto_process_target::detach): ... this.
1641 * nto-low.h (class nto_process_target): Update.
1642 * win32-low.cc (win32_target_ops): Update.
1643 (win32_detach): Turn into ...
1644 (win32_process_target::detach): ... this.
1645 * win32-low.h (class win32_process_target): Update.
1646
c6885a57
TBA
16472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1648
1649 Turn process_stratum_target's kill op into a method of
1650 process_target.
1651
1652 * target.h (struct process_stratum_target): Remove the target op.
1653 (class process_target): Add the target op.
1654
1655 Update the derived classes and callers below.
1656
1657 * target.cc (kill_inferior): Update.
1658 * linux-low.cc (linux_target_ops): Update.
1659 (linux_kill): Turn into ...
1660 (linux_process_target::kill): ... this.
1661 * linux-low.h (class linux_process_target): Update.
1662 * lynx-low.cc (lynx_target_ops): Update.
1663 (lynx_kill): Turn into ...
1664 (lynx_process_target::kill): ... this.
1665 * lynx-low.h (class lynx_process_target): Update.
1666 * nto-low.cc (nto_target_ops): Update.
1667 (nto_kill): Turn into ...
1668 (nto_process_target::kill): ... this.
1669 * nto-low.h (class nto_process_target): Update.
1670 * win32-low.cc (win32_target_ops): Update.
1671 (win32_kill): Turn into ...
1672 (win32_process_target::kill): ... this.
1673 * win32-low.h (class win32_process_target): Update.
1674
ef03dad8
TBA
16752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1676
1677 Turn process_stratum_target's attach op into a method of
1678 process_target.
1679
1680 * target.h (struct process_stratum_target): Remove the target op.
1681 (class process_target): Add the target op.
1682 (myattach): Update the macro.
1683
1684 Update the derived classes and callers below.
1685
1686 * linux-low.cc (linux_target_ops): Update.
1687 (linux_attach): Turn into ...
1688 (linux_process_target::attach): ... this.
1689 * linux-low.h (class linux_process_target): Update.
1690 * lynx-low.cc (lynx_target_ops): Update.
1691 (lynx_attach): Turn into ...
1692 (lynx_process_target::attach): ... this.
1693 * lynx-low.h (class lynx_process_target): Update.
1694 * nto-low.cc (nto_target_ops): Update.
1695 (nto_attach): Turn into ...
1696 (nto_process_target::attach): ... this.
1697 * nto-low.h (class nto_process_target): Update.
1698 * win32-low.cc (win32_target_ops): Update.
1699 (win32_attach): Turn into ...
1700 (win32_process_target::attach): ... this.
1701 * win32-low.h (class win32_process_target): Update.
1702
6dee9afb
TBA
17032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1704
1705 Turn process_stratum_target's post_create_inferior op into a method
1706 of process_target.
1707
1708 * target.h (struct process_stratum_target): Remove the target op.
1709 (class process_target): Add the target op.
1710 (target_post_create_inferior): Update the macro.
1711 * target.cc (process_target::post_create_inferior): Define.
1712
1713 Update the derived classes and callers below.
1714
1715 * linux-low.cc (linux_target_ops): Update.
1716 (linux_post_create_inferior): Turn into ...
1717 (linux_process_target::post_create_inferior): ... this.
1718 * linux-low.h (class linux_process_target): Update.
1719 * lynx-low.cc (lynx_target_ops): Update.
1720 * nto-low.cc (nto_target_ops): Update.
1721 * win32-low.cc (win32_target_ops): Update.
1722
15295543
TBA
17232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1724
1725 Turn process_stratum_target's create_inferior op into a method of
1726 process_target.
1727
1728 * target.h (struct process_stratum_target): Remove the target op.
1729 (class process_target): Add the target op.
1730 (create_inferior): Rename the macro to ...
1731 (target_create_inferior): ... this.
1732
1733 Update the derived classes and callers below.
1734
1735 * server.cc (handle_v_run): Update.
1736 (captured_main): Update.
1737 (process_serial_event): Update.
1738 * linux-low.cc (linux_target_ops): Update.
1739 (linux_create_inferior): Turn into ...
1740 (linux_process_target::create_inferior): ... this.
1741 * linux-low.h (class linux_process_target): Update.
1742 * lynx-low.cc (lynx_target_ops): Update.
1743 (lynx_create_inferior): Turn into ...
1744 (lynx_process_target::create_inferior): ... this.
1745 * lynx-low.h (class lynx_process_target): Update.
1746 * nto-low.cc (nto_target_ops): Update.
1747 (nto_create_inferior): Turn into ...
1748 (nto_process_target::create_inferior): ... this.
1749 * nto-low.h (class nto_process_target): Update.
1750 * win32-low.cc (win32_target_ops): Update.
1751 (win32_create_inferior): Turn into ...
1752 (win32_process_target::create_inferior): ... this.
1753 * win32-low.h (class win32_process_target): Update.
1754
5ef9273d
TBA
17552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1756
1757 * target.h (class process_target): New class definition.
1758 (struct process_stratum_target) <pt>: New field with type
1759 'process_target*'.
1760 * linux-low.h (class linux_process_target): Define as a derived
1761 class of 'process_target'.
1762 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1763 as the 'pt' field.
1764 * lynx-low.h (class lynx_process_target): Define as a derived
1765 class of 'process_target'.
1766 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1767 as the 'pt' field.
1768 * nto-low.h (class nto_process_target): Define as a derived
1769 class of 'process_target'.
1770 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1771 as the 'pt' field.
1772 * win32-low.h (class win32_process_target): Define as a derived
1773 class of 'process_target'.
1774 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1775 as the 'pt' field.
1776
9f1528a1
AB
17772020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 * configure: Regenerate.
1780
bf84f706
MR
17812020-02-19 Maciej W. Rozycki <macro@wdc.com>
1782 Andrew Burgess <andrew.burgess@embecosm.com>
1783
1784 * linux-riscv-low.cc: New file.
1785 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1786 and nat/riscv-linux-tdesc.c.
1787 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1788 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1789 Define.
1790
1a627e7e
TT
17912020-02-14 Tom Tromey <tom@tromey.com>
1792
1793 * acinclude.m4: Don't include acx_configure_dir.m4.
1794 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1795 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1796 (all, install-only, uninstall, clean-info, clean)
1797 (maintainer-clean): Don't recurse.
1798 (subdir_do, all-lib): Remove.
1799 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1800 (GNULIB_H): Remove.
1801 (generated_files): Update.
1802 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1803 * configure: Rebuild.
1804 * configure.ac: Don't configure gnulib or libiberty.
1805 (GNULIB): Update.
1806
a9b34532
EZ
18072020-02-14 Eli Zaretskii <eliz@gnu.org>
1808
1809 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1810 preparing the command line for CreateProcess.
1811 (win32_create_inferior): Reflect the program name in debugging
1812 output that shows the process and its command line.
1813
feacfcac
SM
18142020-02-13 Simon Marchi <simon.marchi@efficios.com>
1815
1816 * Makefile.in: Rename source files from .c to .cc.
1817 * %.c: Rename to %.cc.
1818 * configure.ac: Rename server.c to server.cc.
1819 * configure: Re-generate.
1820
06b3c5bd
SM
18212020-02-13 Simon Marchi <simon.marchi@efficios.com>
1822
1823 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1824
052793ad
HD
18252020-02-12 Hannes Domani <ssbssa@yahoo.de>
1826
1827 * win32-low.c (win32_create_inferior): Set signal_pid.
1828
f20e3e82
MR
18292020-02-12 Maciej W. Rozycki <macro@wdc.com>
1830 Pedro Alves <palves@redhat.com>
1831
1832 Skip building gdbserver in a cross-configuration.
1833 * configure.srv: Set $gdbserver_host depending on whether $target
1834 is $host. Use $gdbserver_host instead of $host.
1835
8ddd8e0e
SM
18362020-02-11 Simon Marchi <simon.marchi@efficios.com>
1837
1838 * configure: Re-generate.
1839
898e7f60
SM
18402020-02-11 Simon Marchi <simon.marchi@efficios.com>
1841
1842 * configure: Re-generate.
1843
58df732b
SM
18442020-02-11 Simon Marchi <simon.marchi@efficios.com>
1845
1846 * acinclude.m4: Update warning.m4 path.
1847
7928d571
HD
18482020-02-09 Hannes Domani <ssbssa@yahoo.de>
1849
1850 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1851 (handle_exception): Set siginfo_er.
1852 (win32_xfer_siginfo): New function.
1853
919adfe8
TT
18542020-02-07 Tom Tromey <tom@tromey.com>
1855 Pedro Alves <palves@redhat.com>
1856
1857 * README: Update build documentation.
1858 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1859 host, not target.
1860 * configure.ac: Update paths.
1861 * configure: Rebuild.
1862 * acinclude.m4: Update paths.
1863 * Makefile.in: Update include paths.
1864 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1865 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1866 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1867 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1868 (%-generated.c): Update paths.
1869 * Move entire directory from ../gdb/gdbserver.
1870
287c844a
MR
18712020-01-29 Maciej W. Rozycki <macro@wdc.com>
1872
1873 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1874
548a204f
PFC
18752020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1876
1877 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1878 assignment instead of srv_linux_obj.
1879
a2236a08
HD
18802020-01-28 Hannes Domani <ssbssa@yahoo.de>
1881
1882 * server.c (handle_qxfer_libraries): Write segment-address with
1883 paddress.
1884
bdaed379
HD
18852020-01-24 Hannes Domani <ssbssa@yahoo.de>
1886
1887 * Makefile.in (install-strip): New target.
1888 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1889 * aclocal.m4: Regenerate.
1890 * configure: Regenerate.
1891 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1892
42cd72aa
MR
18932020-01-24 Maciej W. Rozycki <macro@wdc.com>
1894
1895 * Makefile.in (SFILES): Adjust paths to point to real files.
1896 (OBS): Move waitstatus.o to target/waitstatus.o.
1897 (TAGS): Transform paths appropriately.
1898 (%.o): Rename to...
1899 (nat/%.o): ... this pattern rule.
1900 (%.o): Rename to...
1901 (target/%.o): ... this pattern rule.
1902 * configure.srv: Adjust paths throughout to include nat/ prefix
1903 with the revant files.
1904 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1905 * configure: Regenerate.
1906
42ba50ec
MR
19072020-01-24 Maciej W. Rozycki <macro@wdc.com>
1908
1909 * Makefile.in (TAGS): Remove config files from the recipe.
1910
05ea2a05
TT
19112020-01-14 Tom Tromey <tom@tromey.com>
1912
1913 * configure: Rebuild.
1914 * configure.ac: Remove any checks that were added to common.m4.
1915 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1916 lib-link.m4.
1917
01027315
TT
19182020-01-14 Tom Tromey <tom@tromey.com>
1919
1920 * server.h: Include config.h.
1921 * gdbreplay.c: Include config.h.
1922 * configure: Rebuild.
1923 * configure.ac: Don't source common.host.
1924 * acinclude.m4: Update path.
1925 * Makefile.in (INCSUPPORT): New variable.
1926 (INCLUDE_CFLAGS): Add INCSUPPORT.
1927 (SFILES): Update paths.
1928 (version-generated.c): Update path to create-version.sh.
1929 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1930
b2ceabe8
TT
19312020-01-14 Tom Tromey <tom@tromey.com>
1932
1933 * configure.ac (LIBS): Use WIN32APILIBS.
1934 (USE_WIN32API): Don't define.
1935 * configure: Rebuild.
1936
25c51f71
TT
19372020-01-14 Tom Tromey <tom@tromey.com>
1938
1939 * configure: Rebuild.
1940
c0bd321d
SM
19412020-01-13 Simon Marchi <simon.marchi@efficios.com>
1942
1943 * Makefile.in (%-generated.c): Remove rule for files from
1944 regformats/i386.
1945
bb564c58
SM
19462020-01-13 Simon Marchi <simon.marchi@efficios.com>
1947
1948 * configure: Re-generate.
1949
6e37c371
SM
19502020-01-13 Simon Marchi <simon.marchi@efficios.com>
1951
1952 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1953 Define to static.
1954 * tracepoint.c (stop_tracing, flush_trace_buffer,
1955 about_to_request_buffer_space, get_trace_state_variable_value,
1956 set_trace_state_variable_value, gdb_collect): Add declaration.
1957
df4a0200
SM
19582020-01-13 Simon Marchi <simon.marchi@efficios.com>
1959
1960 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1961 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1962 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1963 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1964 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1965 static.
1966
89e94ec9
SM
19672020-01-13 Simon Marchi <simon.marchi@efficios.com>
1968
1969 * inferiors.c: Include gdbsupport/common-inferior.h.
1970
2552728a
SM
19712020-01-13 Simon Marchi <simon.marchi@efficios.com>
1972
1973 * hostio-errno.c: Include hostio.h.
1974
4025fa09
SM
19752020-01-13 Simon Marchi <simon.marchi@efficios.com>
1976
1977 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1978 prerequisite.
1979
c0b0a142
SM
19802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1981
1982 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1983 * linux-arm-tdesc.h: Include arch/arm.h.
1984
bb1183e2
SM
19852020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1986
1987 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1988
f5df0b5f
SM
19892020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1990
1991 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1992 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1993
5b6d1e4f
PA
19942020-01-10 Pedro Alves <palves@redhat.com>
1995
1996 * fork-child.c (post_fork_inferior): Pass target down to
1997 startup_inferior.
1998 * inferiors.c (switch_to_thread): Add process_stratum_target
1999 parameter.
2000 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2001 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2002 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2003 * remote-utils.c (prepare_resume_reply): Pass the target to
2004 switch_to_thread.
2005 * target.c (the_target): Now a process_stratum_target.
2006 (done_accessing_memory): Pass the target to switch_to_thread.
2007 (set_target_ops): Ajust to use process_stratum_target.
2008 * target.h (struct target_ops): Rename to ...
2009 (struct process_stratum_target): ... this.
2010 (the_target, set_target_ops): Adjust.
2011 (prepare_to_access_memory): Adjust comment.
2012 * win32-low.c (child_xfer_memory): Adjust to use
2013 process_stratum_target.
2014 (win32_target_ops): Now a process_stratum_target.
2015
559e7e50
EZ
20162020-01-06 Eli Zaretskii <eliz@gnu.org>
2017 Pedro Alves <palves@redhat.com>
2018
2019 * win32-low.c (get_child_debug_event): Extract the fatal exception
2020 from the exit status and convert to the equivalent Posix signal
2021 number.
2022 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2023 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2024
48189bec
HD
20252020-01-01 Hannes Domani <ssbssa@yahoo.de>
2026
2027 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2028
5dd8bf88
JB
20292020-01-01 Joel Brobecker <brobecker@adacore.com>
2030
2031 * server.c (gdbserver_version): Change copyright year to 2020.
2032 * gdbreplay.c (gdbreplay_version): Likewise.
2033
0ad6b8ee
CB
20342019-12-19 Christian Biesinger <cbiesinger@google.com>
2035
2036 * configure: Regenerate.
2037 * configure.ac: Quote variable arguments of test.
2038
1ee7b812
BE
20392019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2040
2041 * Makefile.in: Fix build with GNU Make 3.81
2042
d9fa87f4
TT
20432019-12-16 Tom Tromey <tromey@adacore.com>
2044
2045 * server.c (get_exec_file): Constify result.
2046
ab7d13f0
CB
20472019-12-10 Christian Biesinger <cbiesinger@google.com>
2048
2049 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2050 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2051 * config.in: Regenerate.
2052 * configure: Regenerate.
2053 * configure.ac: Don't check for strerror.
2054 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2055 Call safe_strerror instead of strerror.
2056 * server.h (strerror): Remove this now-unnecessary declaration.
2057 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2058 strerror.
2059 (gdb_agent_helper_thread): Likewise.
2060 * utils.c (perror_with_name): Likewise.
2061
4da8c3a8
TT
20622019-11-26 Tom Tromey <tom@tromey.com>
2063
2064 * configure, config.in: Rebuild.
2065
21987b9c
TT
20662019-11-26 Tom Tromey <tom@tromey.com>
2067
2068 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2069 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2070 gdb_sigmask.
2071 * configure, config.in: Rebuild.
2072
5e030278
TT
20732019-11-26 Tom Tromey <tom@tromey.com>
2074
2075 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2076 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2077 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2078 * acinclude.m4: Include ax_pthread.m4.
2079 * config.in, configure: Rebuild.
2080
6d91ce9a
CB
20812019-11-26 Christian Biesinger <cbiesinger@google.com>
2082
2083 * debug.c (debug_set_output): Call safe_strerror instead of
2084 strerror.
2085 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2086 (linux_kill_one_lwp): Likewise.
2087 (linux_detach_one_lwp): Likewise.
2088 (linux_wait_for_event_filtered): Likewise.
2089 (store_register): Likewise.
2090 * lynx-low.c (lynx_attach): Likewise.
2091 * mem-break.c (insert_memory_breakpoint): Likewise.
2092 (remove_memory_breakpoint): Likewise.
2093 (delete_fast_tracepoint_jump): Likewise.
2094 (set_fast_tracepoint_jump): Likewise.
2095 (uninsert_fast_tracepoint_jumps_at): Likewise.
2096 (reinsert_fast_tracepoint_jumps_at): Likewise.
2097 * nto-low.c (nto_xfer_memory): Likewise.
2098 (nto_resume): Likewise.
2099
6cdd651f
LM
21002019-11-20 Luis Machado <luis.machado@linaro.org>
2101
2102 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2103 instead of register count.
2104 * tdesc.c (tdesc_contains_feature): New function.
2105 * tdesc.h (tdesc_contains_feature): New prototype.
2106
cd850b40
CB
21072019-11-15 Christian Biesinger <cbiesinger@google.com>
2108
2109 * Makefile.in: Add safe-strerror.c.
2110 * configure: Regenerate.
2111 * configure.ac: Don't source common.host.
2112
5abebf3c
CB
21132019-11-15 Christian Biesinger <cbiesinger@google.com>
2114
2115 * config.in: Regenerate.
2116 * configure: Regenerate.
2117
e06f3d6e
AB
21182019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2119
2120 * ax.c (ax_printf): Handle size_t_arg.
2121
ca3a04f6
CB
21222019-11-06 Christian Biesinger <cbiesinger@google.com>
2123
2124 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2125 * mi/mi-main.c (output_cores): Likewise.
2126 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2127 (linux_xfer_osdata_modules): Likewise.
2128 * remote.c (register_remote_support_xml): Likewise.
2129 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2130 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2131
e48f6033
CB
21322019-11-01 Christian Biesinger <cbiesinger@google.com>
2133
2134 * configure: Regenerate.
2135 * configure.ac: Remove check for strerror_r.
2136
e7e97a2e
CB
21372019-10-31 Christian Biesinger <cbiesinger@google.com>
2138
2139 * config.in: Regenerate.
2140 * configure: Regenerate.
2141 * configure.ac: Also check for strerror_r.
2142
75cafaa6
CB
21432019-10-31 Christian Biesinger <cbiesinger@google.com>
2144
2145 * ax.h (debug_agent): Remove duplicate declaration.
2146
30baf67b
TV
21472019-10-26 Tom de Vries <tdevries@suse.de>
2148
2149 * linux-aarch64-low.c: Fix typos in comments.
2150 * linux-arm-low.c: Same.
2151 * linux-low.c: Same.
2152 * linux-ppc-low.c: Same.
2153 * proc-service.c: Same.
2154 * regcache.h: Same.
2155 * server.c: Same.
2156 * tracepoint.c: Same.
2157 * win32-low.c: Same.
2158
52c64cf7
TT
21592019-10-25 Tom Tromey <tromey@adacore.com>
2160
2161 * utils.c (xstrdup): Remove.
2162
c12d372d
TT
21632019-10-23 Tom Tromey <tom@tromey.com>
2164
2165 * configure, config.in: Rebuild.
2166
4d0b984b
TT
21672019-10-23 Tom Tromey <tom@tromey.com>
2168
2169 * configure: Rebuild.
2170 * acinclude.m4: Use m4_include, not sinclude.
2171
c5adaa19
TT
21722019-10-17 Tom Tromey <tromey@adacore.com>
2173
2174 * configure: Rebuild.
2175 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2176 in AC_CONFIG_FILES invocation.
2177 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2178 invocation.
2179
fec4e896
CB
21802019-10-16 Christian Biesinger <cbiesinger@google.com>
2181
2182 * server.c: Include xml-builtin.h.
2183 (get_xml_features): Don't declare xml_builtins here.
2184
00975ff6
AB
21852019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * Makefile.in: Remove references to vec-ipa.o.
2188
0dc32745
AB
21892019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2190
2191 * Makefile.in: Remove references to vec.c.
2192
3e6ec53a
CB
21932019-10-02 Christian Biesinger <cbiesinger@google.com>
2194
2195 * server.c (server_waiting): Change to bool.
2196 (extended_protocol): Likewise.
2197 (response_needed): Likewise.
2198 (exit_requested): Likewise.
2199 (run_once): Likewise.
2200 (report_no_resumed): Likewise.
2201 (non_stop): Likewise.
2202 (disable_packet_vCont): Likewise.
2203 (disable_packet_Tthread): Likewise.
2204 (disable_packet_qC): Likewise.
2205 (disable_packet_qfThreadInfo): Likewise.
2206 (handle_general_set): Update.
2207 (handle_detach): Update.
2208 (handle_monitor_command): Update.
2209 (handle_query): Update.
2210 (captured_main): Update.
2211 (process_serial_event): Update.
2212 * server.h (server_waiting): Change to bool.
2213 (disable_packet_vCont): Likewise.
2214 (disable_packet_Tthread): Likewise.
2215 (disable_packet_qC): Likewise.
2216 (disable_packet_qfThreadInfo): Likewise.
2217 (run_once): Likewise.
2218 (non_stop): Likewise.
2219 * target.c (target_stop_and_wait): Update.
2220
80fd2826
TT
22212019-10-02 Tom Tromey <tromey@adacore.com>
2222
2223 * Makefile.in (SFILES): Add common-inferior.c.
2224 (OBS): Add common-inferior.o.
2225 * server.c (startup_with_shell): Don't define.
2226
46f29a9a
AB
22272019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2228
2229 * linux-low.c (linux_low_read_btrace): Update for change to
2230 std::vector.
2231
f9d949fb
CB
22322019-09-20 Christian Biesinger <cbiesinger@google.com>
2233
2234 * debug.c (debug_threads): Remove comment in favor of the header.
2235 * debug.h (using_threads): Add declaration.
2236 (debug_threads): Add comment.
2237 * linux-aarch64-low.c: Include debug.h and remove declaration of
2238 debug_threads.
2239 * nto-low.c: Likewise.
2240 * remote-utils.c: Likewise.
2241 * thread-db.c: Likewise.
2242
abf516c6
UW
22432019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2244
2245 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2246 and powerpc-cell64l-ipa.o.
2247 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2248 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2249 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2250 (spu*-*-*): Remove.
2251
2252 * spu-low.c: Remove file.
2253
2254 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2255 (parse_spufs_run): Remove.
2256 (ppc_get_pc): Remove Cell/B.E. support.
2257 (ppc_set_pc): Likewise.
2258 (ppc_breakpoint_at): Likewise.
2259 (ppc_arch_setup): Likewise.
2260 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2261 tdesc_powerpc_cell32l.
2262 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2263 or init_registers_powerpc_cell32l.
2264 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2265 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2266 or init_registers_powerpc_cell32l.
2267 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2268 (init_registers_powerpc_cell32l): Remove prototype.
2269 (init_registers_powerpc_cell64l): Likewise.
2270
2271 * target.h (struct target_ops): Remove qxfer_spu member.
2272 * server.c (handle_qxfer_spu): Remove.
2273 (qxfer_packets): Remove entry for "spu".
2274 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2275 * linux-low.c (SPUFS_MAGIC): Remove.
2276 (spu_enumerate_spu_ids): Remove.
2277 (linux_qxfer_spu): Remove.
2278 (linux_target_ops): Remove qxfer_spu member.
2279 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2280 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2281 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2282
2d41fa11
SDJ
22832019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2284
2285 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2286 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2287 * config.in: Regenerate.
2288 * configure: Regenerate.
2289
d59b55f0
TT
22902019-08-15 Tom Tromey <tromey@adacore.com>
2291
2292 * target.c (target_write_memory): Use gdb::byte_vector.
2293
4196ab2a
TT
22942019-08-15 Tom Tromey <tromey@adacore.com>
2295
2296 * tracepoint.c (write_inferior_data_pointer)
2297 (write_inferior_integer, write_inferior_int8)
2298 (write_inferior_uinteger, m_tracepoint_action_download)
2299 (r_tracepoint_action_download, x_tracepoint_action_download)
2300 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2301 (download_agent_expr, download_tracepoint_1)
2302 (download_trace_state_variables, upload_fast_traceframes): Update.
2303 * server.c (gdb_write_memory): Update.
2304 * remote-utils.c (relocate_instruction): Update.
2305 * proc-service.c (ps_pdwrite): Update.
2306 * mem-break.c (remove_memory_breakpoint)
2307 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2308 (uninsert_fast_tracepoint_jumps_at)
2309 (reinsert_fast_tracepoint_jumps_at): Update.
2310 * linux-x86-low.c (append_insns)
2311 (i386_install_fast_tracepoint_jump_pad)
2312 (amd64_write_goto_address, i386_write_goto_address): Update.
2313 * linux-s390-low.c (append_insns, s390_write_goto_address):
2314 Update.
2315 * linux-ppc-low.c (ppc_relocate_instruction)
2316 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2317 (ppc_write_goto_address): Update.
2318 * linux-aarch64-low.c (append_insns): Update.
2319 * target.h (struct target_ops): Update.
2320 (write_inferior_memory): Don't declare.
2321 * target.c (target_write_memory): Rename from
2322 write_inferior_memory. Remove old target_write_memory.
2323
c6778d00
TT
23242019-08-15 Tom Tromey <tromey@adacore.com>
2325
2326 * target.c (write_inferior_memory): Use std::vector.
2327
404f2902
FCE
23282019-08-06 Frank Ch. Eigler <fche@redhat.com>
2329
2330 PR build/24886
2331 * configure.ac: Drop enable-libmcheck support.
2332 * configure, config.in: Rebuild.
2333 * acinclude.m4: Don't include it.
2334
4c5aa8e0
AH
23352019-07-19 Alan Hayward <alan.hayward@arm.com>
2336
2337 * configure.srv: Remove Arm xml files.
2338
7cc17433
AH
23392019-07-19 Alan Hayward <alan.hayward@arm.com>
2340
2341 * configure.srv: Add new files. Remove xml generated files.
2342 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2343 registers.
2344 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2345 * linux-aarch32-tdesc.c: New file.
2346 * linux-aarch32-tdesc.h: New file.
2347 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2348 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2349 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2350 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2351 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2352 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2353 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2354 (arm_read_description): Call arm_linux_read_description.
2355 (initialize_low_arch): Don't init registers.
2356 * linux-arm-tdesc.c: New file.
2357 * linux-arm-tdesc.h: New file.
2358
166a82be
AH
23592019-07-10 Alan Hayward <alan.hayward@arm.com>
2360
2361 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2362 Move counter inside for.
2363 (arm_read_description): Check ptrace earlier.
2364 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2365
268a13a5
TT
23662019-07-09 Tom Tromey <tom@tromey.com>
2367
2368 * configure: Rebuild.
2369 * configure.ac: Change common to gdbsupport.
2370 * acinclude.m4: Change common to gdbsupport.
2371 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2372 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2373 common to gdbsupport.
2374 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2375 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2376 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2377 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2378 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2379 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2380 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2381 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2382 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2383 common to gdbsupport.
2384
350fab54
AH
23852019-07-04 Alan Hayward <alan.hayward@arm.com>
2386
2387 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2388 defines.
2389 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2390
2b40fda7
AH
23912019-07-04 Alan Hayward <alan.hayward@arm.com>
2392
2393 * configure.srv: Remove legacy xml.
2394 * linux-aarch64-low.c (initialize_low_arch): Remove
2395 initialize_low_tdesc call.
2396 * linux-aarch64-tdesc-selftest.c: Remove file.
2397 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2398 * linux-x86-low.c (initialize_low_arch): Remove
2399 initialize_low_tdesc call.
2400 * linux-x86-tdesc-selftest.c: Remove file.
2401 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2402
7d10623d
TV
24032019-06-20 Tom de Vries <tdevries@suse.de>
2404
2405 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2406 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2407
8d6a48df
TV
24082019-06-19 Tom de Vries <tdevries@suse.de>
2409
2410 * debug.h (debug_write): Change return type to ssize_t.
2411 * debug.c (debug_write): Same.
2412
73cc7272
TT
24132019-06-14 Tom Tromey <tom@tromey.com>
2414
2415 * configure.ac: Use new path to gnulib.
2416 * configure: Rebuild.
2417 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2418 to gnulib.
2419
08f10e02
TT
24202019-06-11 Tom Tromey <tom@tromey.com>
2421
2422 * Makefile.in (SFILES): Add alloc.c.
2423 (OBS): Add alloc.o.
2424 (IPA_OBJS): Add alloc-ipa.o.
2425 (alloc-ipa.o): New target.
2426 (%.o: ../%.c): New pattern rule.
2427
422186a9
TT
24282019-06-10 Tom Tromey <tromey@adacore.com>
2429
2430 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2431 end warning with a newline.
2432 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2433 newline.
2434 * thread-db.c (attach_thread): Don't end warning with a newline.
2435 (thread_db_notice_clone): Likewise.
2436 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2437 newline.
2438 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2439 end warning with a newline.
2440
b02f78f9
PA
24412019-06-04 Pedro Alves <palves@redhat.com>
2442
2443 * server.c (captured_main): Use make_unique_xstrdup.
2444
88ed7edb
TT
24452019-06-02 Tom Tromey <tom@tromey.com>
2446
2447 * gdbreplay.c (fromhex): Remove.
2448 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2449
33a6bc35
TT
24502019-05-29 Tom Tromey <tromey@adacore.com>
2451
2452 * configure: Rebuild.
2453
e90a813d
KB
24542019-05-06 Kevin Buettner <kevinb@redhat.com>
2455
2456 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2457 sign extension code on 32-bit builds.
2458
353ea2d1
EZ
24592019-05-03 Eli Zaretskii <eliz@gnu.org>
2460
2461 * remote-utils.c:
2462 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2463
b494cdff
TT
24642019-04-19 Tom Tromey <tom@tromey.com>
2465
2466 * server.c (struct vstop_notif): Derive from notif_event.
2467 <base>: Remove.
2468 (queue_stop_reply): Update.
2469 (remove_all_on_match_ptid): Change type. Rewrite.
2470 (discard_queued_stop_replies): Rewrite.
2471 (in_queued_stop_replies_ptid): Change type.
2472 (in_queued_stop_replies): Rewrite.
2473 (notif_stop): Update.
2474 (queue_stop_reply_callback): Update.
2475 (captured_main): Don't call initialize_notif.
2476 (push_stop_notification): Update.
2477 * notif.c (notif_write_event, handle_notif_ack)
2478 (notif_event_enque, notif_push): Update.
2479 (notif_event_xfree, initialize_notif): Remove.
2480 * notif.h (struct notif_event): Include <list>, not
2481 "common/queue.h".
2482 (struct notif_server) <queue>: Now a std::list.
2483 (notif_event_p): Remove typedef.
2484 (initialize_notif): Don't declare.
2485 (struct notif_event): Add virtual destructor.
2486
a7e559cc
AH
24872019-04-17 Alan Hayward <alan.hayward@arm.com>
2488
2489 * ax.c (ax_vdebug): Call debug_printf.
2490 * debug.c (debug_write): New function.
2491 * debug.h (debug_write): New declaration.
2492 * linux-low.c (sigchld_handler): Call debug_write.
2493
aeb2e706
AH
24942019-04-17 Alan Hayward <alan.hayward@arm.com>
2495
2496 * debug.c (debug_set_output): New function.
2497 (debug_vprintf): Send output to debug_file.
2498 (debug_flush): Likewise.
2499 * debug.h (debug_set_output): New declaration.
2500 * server.c (handle_monitor_command): Add debug-file option.
2501 (captured_main): Likewise.
2502
c1bc0935
AH
25032019-04-17 Alan Hayward <alan.hayward@arm.com>
2504
2505 * debug.c (remote_debug): Add definition.
2506 * debug.h (remote_debug): Add declaration.
2507 * hostio.c (remote_debug): Remove declaration.
2508 * remote-utils.c (struct ui_file): Likewise.
2509 (remote_debug): Likewise.
2510 * remote-utils.h (remote_debug): Likewise,
2511 * server.c (remote_debug): Remove definition.
2512
3f52fdbc
KB
25132019-04-10 Kevin Buettner <kevinb@redhat.com>
2514
2515 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2516 when using a 64-bit gdbserver.
2517
b0319eaa
TT
25182019-04-09 Tom Tromey <tromey@adacore.com>
2519
2520 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2521
eedc3f4f
TT
25222019-04-08 Tom Tromey <tom@tromey.com>
2523
2524 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2525 throw.
2526 (linux_resume_one_lwp): Likewise.
2527
230d2906
TT
25282019-04-08 Tom Tromey <tom@tromey.com>
2529
2530 * gdbreplay.c: Update.
2531 * linux-low.c: Update.
2532 * server.c: Update.
2533
a70b8144
TT
25342019-04-08 Tom Tromey <tom@tromey.com>
2535
2536 * server.c: Use C++ exception handling.
2537 * linux-low.c: Use C++ exception handling.
2538 * gdbreplay.c: Use C++ exception handling.
2539
3d6e9d23
TT
25402019-04-08 Tom Tromey <tom@tromey.com>
2541
2542 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2543 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2544 (captured_main, main): Update.
2545 * gdbreplay.c (main): Update.
2546
0570503d
PFC
25472019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2548
2549 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2550 value in argument pointer, return 1 if the entry is found and 0
2551 otherwise. Move comment.
2552 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2553 * linux-low.h (linux_get_auxv): Declare.
2554 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2555
227a9e65
TT
25562019-04-05 Tom Tromey <tromey@adacore.com>
2557
2558 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2559 variables.
2560
69f4c9cc
AH
25612019-03-28 Alan Hayward <alan.hayward@arm.com>
2562
2563 * linux-low.c (AT_HWCAP2): Add define if not already included.
2564
974c89e0
AH
25652019-03-26 Alan Hayward <alan.hayward@arm.com>
2566
2567 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2568 (aarch64_arch_setup): Call linux_get_hwcap.
2569 * linux-arm-low.c (arm_get_hwcap): Remove function.
2570 (arm_read_description): Call linux_get_hwcap.
2571 * linux-low.c (linux_get_auxv): New function.
2572 (linux_get_hwcap): Likewise.
2573 (linux_get_hwcap2): Likewise.
2574 * linux-low.h (linux_get_hwcap): New declaration.
2575 (linux_get_hwcap2): Likewise.
2576 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2577 (ppc_arch_setup): Call linux_get_hwcap.
2578 * linux-s390-low.c (s390_get_hwcap): Remove function.
2579 (s390_arch_setup): Call linux_get_hwcap.
2580
1ef53e6b
AH
25812019-03-22 Alan Hayward <alan.hayward@arm.com>
2582 Jiong Wang <jiong.wang@arm.com>
2583
2584 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2585 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2586 to fail.
2587 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2588
ee4fbcfa
AH
25892019-03-22 Alan Hayward <alan.hayward@arm.com>
2590 Jiong Wang <jiong.wang@arm.com>
2591
2592 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2593 (aarch64_get_hwcap): New function.
2594 (aarch64_arch_setup): Read APIA hwcap.
2595
6dc0ebde
AH
25962019-03-22 Alan Hayward <alan.hayward@arm.com>
2597 Jiong Wang <jiong.wang@arm.com>
2598
2599 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2600 (initialize_low_tracepoint): Likewise.
2601 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2602 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2603 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2604 (aarch64_linux_read_description): Likewise.
2605 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2606
1163a4b7
JB
26072019-03-12 John Baldwin <jhb@FreeBSD.org>
2608
2609 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2610 i386_create_target_description for 'segments' parameter.
2611 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2612 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2613 * win32-i386-low.c (i386_arch_setup): Likewise.
2614
d3a70e03
TT
26152019-03-12 Tom Tromey <tromey@adacore.com>
2616
2617 * linux-low.c (iterate_over_lwps): Update.
2618
37991b4f
TT
26192019-03-06 Tom Tromey <tom@tromey.com>
2620
2621 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2622 (captured_main): Use SCOPE_EXIT.
2623
45950eb6
SDJ
26242019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2625
2626 * configure.srv: Use '$enable_unittest' instead of '$development'
2627 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2628 case.
2629
43ac54fc
TT
26302019-02-27 Tom Tromey <tromey@adacore.com>
2631
2632 * gdbreplay.c (logchar): Handle \r\n.
2633
df0da8a2
AH
26342019-02-07 Alan Hayward <alan.hayward@arm.com>
2635
2636 * linux-low.c (linux_attach): Add process before lwp.
2637 * server.c (attach_inferior): Check if already attached.
2638
1a5c2598
TT
26392019-02-07 Tom Tromey <tom@tromey.com>
2640
2641 * x86-tdesc.h: Rename include guard.
2642 * x86-low.h: Add include guard.
2643 * wincecompat.h: Rename include guard.
2644 * win32-low.h: Add include guard.
2645 * utils.h: Rename include guard.
2646 * tracepoint.h: Rename include guard.
2647 * tdesc.h: Rename include guard.
2648 * target.h: Rename include guard.
2649 * server.h: Rename include guard.
2650 * remote-utils.h: Rename include guard.
2651 * regcache.h: Rename include guard.
2652 * nto-low.h: Rename include guard.
2653 * notif.h: Add include guard.
2654 * mem-break.h: Rename include guard.
2655 * lynx-low.h: Add include guard.
2656 * linux-x86-tdesc.h: Add include guard.
2657 * linux-s390-tdesc.h: Add include guard.
2658 * linux-ppc-tdesc-init.h: Add include guard.
2659 * linux-low.h: Add include guard.
2660 * linux-aarch64-tdesc.h: Add include guard.
2661 * linux-aarch32-low.h: Add include guard.
2662 * inferiors.h: Rename include guard.
2663 * i387-fp.h: Rename include guard.
2664 * hostio.h: Rename include guard.
2665 * gdbthread.h: Rename include guard.
2666 * gdb_proc_service.h: Rename include guard.
2667 * event-loop.h: Rename include guard.
2668 * dll.h: Rename include guard.
2669 * debug.h: Rename include guard.
2670 * ax.h: Rename include guard.
2671
956cc47c
SN
26722018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2673
2674 PR gdb/23985
2675 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2676 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2677
a0707f3c
TT
26782019-01-25 Tom Tromey <tom@tromey.com>
2679
2680 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2681
0747795c
TT
26822019-01-25 Tom Tromey <tom@tromey.com>
2683
2684 * win32-low.c: Fix common/ includes.
2685 * win32-i386-low.c: Fix common/ includes.
2686 * tracepoint.c: Fix common/ includes.
2687 * thread-db.c: Fix common/ includes.
2688 * target.h: Fix common/ includes.
2689 * symbol.c: Fix common/ includes.
2690 * spu-low.c: Fix common/ includes.
2691 * server.h: Fix common/ includes.
2692 * server.c: Fix common/ includes.
2693 * remote-utils.c: Fix common/ includes.
2694 * regcache.h: Fix common/ includes.
2695 * regcache.c: Fix common/ includes.
2696 * nto-x86-low.c: Fix common/ includes.
2697 * notif.h: Fix common/ includes.
2698 * mem-break.h: Fix common/ includes.
2699 * lynx-low.c: Fix common/ includes.
2700 * lynx-i386-low.c: Fix common/ includes.
2701 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2702 * linux-x86-low.c: Fix common/ includes.
2703 * linux-low.c: Fix common/ includes.
2704 * inferiors.h: Fix common/ includes.
2705 * i387-fp.c: Fix common/ includes.
2706 * hostio.c: Fix common/ includes.
2707 * hostio-errno.c: Fix common/ includes.
2708 * gdbthread.h: Fix common/ includes.
2709 * gdbreplay.c: Fix common/ includes.
2710 * fork-child.c: Fix common/ includes.
2711 * event-loop.c: Fix common/ includes.
2712 * ax.c:
2713 (enum gdb_agent_op): Fix common/ includes.
2714
be6d4f74
TT
27152019-01-21 Tom Tromey <tom@tromey.com>
2716
2717 * tracepoint.c: Fix includes.
2718 * remote-utils.c: Fix includes.
2719 * linux-x86-low.c: Fix includes.
2720
66d91b39
JB
27212019-01-01 Joel Brobecker <brobecker@adacore.com>
2722
2723 * gdbreplay.c (gdbreplay_version): Update copyright year in
2724 version message.
2725 * server.c (gdbserver_version): Likewise.
2726
754e3168
AH
27272018-12-05 Alan Hayward <alan.hayward@arm.com>
2728
2729 * linux-low.c (add_lwp): Switch ordering.
2730
d105de22
TT
27312018-11-29 Tom Tromey <tom@tromey.com>
2732
2733 * win32-low.c (win32_join): Take pid, not process.
2734 * target.h (struct target_ops) <join>: Change argument type.
2735 (join_inferior): Change argument name.
2736 * spu-low.c (spu_join): Take pid, not process.
2737 * server.c (handle_detach): Preserve pid before destroying
2738 process.
2739 * lynx-low.c (lynx_join): Take pid, not process.
2740 * linux-low.c (linux_join): Take pid, not process.
2741
50138245
AH
27422018-11-23 Alan Hayward <alan.hayward@arm.com>
2743
2744 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2745 (aarch64_cannot_fetch_register): Likewise.
2746 (struct linux_target_ops): Update references.
2747
64f57f3d
PFC
27482018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2749
2750 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2751
8d619c01
EBM
27522018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2753
2754 * configure.srv (ipa_ppc_linux_regobj): Add
2755 powerpc-isa207-htm-vsx32l-ipa.o and
2756 powerpc-isa207-htm-vsx64l-ipa.o.
2757 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2758 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2759 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2760 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2761 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2762 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2763 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2764 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2765 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2766 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2767 (init_registers_powerpc_isa207_htm_vsx32l)
2768 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2769 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2770 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2771 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2772 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2773 (ppc_store_tm_ctarregset): New functions.
2774 (ppc_regsets): Add entries for HTM regsets.
2775 (ppc_arch_setup): Set htm in features struct when needed. Set
2776 sizes for the HTM regsets.
2777 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2778 (initialize_low_arch): Call
2779 init_registers_powerpc_isa207_htm_vsx32l and
2780 init_registers_powerpc_isa207_htm_vsx64l.
2781 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2782 PPC_TDESC_ISA207_HTM_VSX.
2783 (initialize_low_tracepoint): Call
2784 init_registers_powerpc_isa207_htm_vsx32l and
2785 init_registers_powerpc_isa207_htm_vsx64l.
2786
232bfb86
EBM
27872018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2788
2789 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2790 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2791 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2792 (ppc_store_pmuregset): New functions.
2793 (ppc_regsets): Add entries for ebb and pmu regsets.
2794 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2795 pmu regsets are available. Set sizes for these regsets.
2796
f2cf6173
EBM
27972018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2798
2799 * configure.srv (ipa_ppc_linux_regobj): Add
2800 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2801 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2802 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2803 rs6000/powerpc-isa207-vsx32l.xml, and
2804 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2805 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2806 <PPC_TDESC_ISA207_VSX>: New enum value.
2807 (init_registers_powerpc_isa207_vsx32l): Declare.
2808 (init_registers_powerpc_isa207_vsx64l): Declare.
2809 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2810 (ppc_store_tarregset): New function.
2811 (ppc_regsets): Add entry for the TAR regset.
2812 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2813 size for the TAR regsets.
2814 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2815 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2816 and init_registers_powerpc_isa207_vsx64l.
2817 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2818 (initialize_low_tracepoint): Call
2819 init_registers_powerpc_isa207_vsx32l and
2820 init_registers_powerpc_isa207_vsx64l.
2821
7ca18ed6
EBM
28222018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2823 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2824
2825 * configure.srv (ipa_ppc_linux_regobj): Add
2826 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2827 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2828 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2829 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2830 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2831 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2832 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2833 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2834 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2835 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2836 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2837 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2838 (ppc_hwcap): Add comment.
2839 (ppc_hwcap2): New global.
2840 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2841 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2842 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2843 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2844 when needed. Set sizes for the the DSCR and PPR regsets.
2845 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2846 (initialize_low_arch): Call
2847 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2848 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2849 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2850 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2851 (initialize_low_tracepoint): Call
2852 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2853 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2854
5c849b22
PFC
28552018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2856
2857 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2858
8ecfd7bd
SDJ
28592018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2860 Simon Marchi <simark@simark.ca>
2861
2862 * acinclude.m4: Include "../selftest.m4".
2863 * configure: Regenerate.
2864 * configure.ac: Use "GDB_AC_SELFTEST".
2865 * configure.srv: Use "$enable_unittests" instead of
2866 "$development" when checking whether unit tests have been
2867 enabled.
2868 * server.c (captured_main): Update message informing that
2869 selftests have been disabled.
2870
96643e35
TT
28712018-10-04 Tom Tromey <tom@tromey.com>
2872
2873 * configure: Rebuild.
2874
da4ae14a
TT
28752018-10-04 Tom Tromey <tom@tromey.com>
2876
2877 * server.c (handle_status): Rename inner "thread".
2878 (process_serial_event): Declare "res" in 'm' case.
2879 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2880 (iterate_over_lwps): Rename inner "thread".
2881 (linux_qxfer_libraries_svr4): Rename inner "len".
2882 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2883
7c619dbd
GB
28842018-10-01 Gary Benson <gbenson@redhat.com>
2885
2886 * gdb_proc_service.h: Moved common code to
2887 common/gdb_proc_service.h.
2888
3795e814
GB
28892018-10-01 Gary Benson <gbenson@redhat.com>
2890
2891 * gdb_proc_service.h: Synchronize comments and whitespace with
2892 GDB's version of this file.
2893
49b036f1
TT
28942018-09-25 Tom Tromey <tom@tromey.com>
2895
2896 * configure: Rebuild.
2897 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2898
8ff03f0b
SM
28992018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2900
2901 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2902 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2903 ($(IPA_LIB)): Sort IPA_OBJS.
2904
a1cd91dc
SM
29052018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2906
2907 * Makefile.in: Remove references to $(ADD_DEPS).
2908
752312ba
TT
29092018-09-16 Tom Tromey <tom@tromey.com>
2910
2911 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2912 variables.
2913 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2914 variables.
2915
f1628857
TT
29162018-09-05 Tom Tromey <tom@tromey.com>
2917
2918 * configure: Rebuild.
2919
ad202fcc
SM
29202018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2921
2922 PR build/23399
2923 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2924
d3d8724a
TT
29252018-08-27 Tom Tromey <tom@tromey.com>
2926
2927 PR build/23087:
2928 * configure: Rebuild.
2929
b4f183d2
TT
29302018-08-27 Tom Tromey <tom@tromey.com>
2931
2932 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2933 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2934 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2935 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2936 (s390x_emit_stack_adjust): Add casts to unsigned char.
2937
4e2aa472
SM
29382018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2939
2940 PR gdb/23374
2941 PR gdb/23375
2942 * server.h (struct client_state) <disable_randomization>:
2943 Initialize to 1.
2944
cf4088a9
SM
29452018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2946
2947 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2948 variable.
2949 (mips_supply_ptrace_register): Likewise.
2950
a0de763e
TT
29512018-07-22 Tom Tromey <tom@tromey.com>
2952
2953 * configure: Rebuild.
2954
b0a7723d
TT
29552018-07-22 Tom Tromey <tom@tromey.com>
2956
2957 * win32-low.c (win32_create_inferior): Remove unused variables.
2958 * gdbreplay.c (remote_open): Remove unused variable.
2959 * remote-utils.c (remote_prepare): Remove unused variable.
2960 * x86-tdesc.h (X86_TDESC_H): Define.
2961 (amd64_expedite_regs): Define conditionally.
2962 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2963 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2964 * remote-utils.c (readchar): Remove unused variable.
2965
a780ef4f
PA
29662018-07-13 Pedro Alves <palves@redhat.com>
2967
2968 * linux-low.c (linux_kill): Change parameter to process_info
2969 pointer instead of pid. Adjust.
2970 * lynx-low.c (lynx_kill): Likewise.
2971 * nto-low.c (nto_kill): Likewise.
2972 * spu-low.c (spu_kill): Likewise.
2973 * win32-low.c (win32_kill): Likewise.
2974 * server.c (handle_v_kill, kill_inferior_callback)
2975 (detach_or_kill_for_exit): Adjust.
2976 * target.c (kill_inferior): Change parameter to process_info
2977 pointer instead of pid. Adjust.
2978 * target.h (struct target_ops) <kill>: Change parameter to
2979 process_info pointer instead of pid. Adjust all implementations
2980 and callers.
2981 (kill_inferior): Likewise.
2982
ef2ddb33
PA
29832018-07-13 Pedro Alves <palves@redhat.com>
2984
2985 * linux-low.c (linux_detach, linux_join): Change parameter to
2986 process_info pointer instead of pid. Adjust.
2987 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2988 * nto-low.c (nto_detach): Likewise.
2989 * spu-low.c (spu_detach, spu_join): Likewise.
2990 * win32-low.c (win32_detach, win32_join): Likewise.
2991 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2992 * target.h (struct target_ops) <detach, join>: Change parameter to
2993 process_info pointer instead of pid. Adjust all implementations
2994 and callers.
2995 (detach_inferior, join_inferior): Rename 'pid' parameter to
2996 'proc'.
2997
c7ab0aef
SDJ
29982018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2999 Jan Kratochvil <jan.kratochvil@redhat.com>
3000 Paul Fertser <fercerpav@gmail.com>
3001 Tsutomu Seki <sekiriki@gmail.com>
3002
3003 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3004 (OBS): Add 'common/netstuff.o'.
3005 (GDBREPLAY_OBS): Likewise.
3006 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3007 (remote_open): Implement support for IPv6
3008 connections.
3009 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3010 and 'wspiapi.h'.
3011 (handle_accept_event): Accept connections from IPv6 sources.
3012 (remote_prepare): Handle IPv6-style hostnames; implement
3013 support for IPv6 connections.
3014 (remote_open): Implement support for printing connections from
3015 IPv6 sources.
3016
31445d10
PA
30172018-07-11 Pedro Alves <palves@redhat.com>
3018
3019 PR gdb/23377
3020 * mem-break.c (any_persistent_commands): Add process_info
3021 parameter and use it instead of relying on the current process.
3022 Change return type to bool.
3023 * mem-break.h (any_persistent_commands): Add process_info
3024 parameter and change return type to bool.
3025 * server.c (handle_detach): Remove require_running_or_return call.
3026 Look up the process_info for the process we're about to detach.
3027 If not found, return back error to GDB. Adjust
3028 any_persistent_commands call to pass down a process pointer.
3029
cb197132
PA
30302018-07-11 Pedro Alves <palves@redhat.com>
3031
3032 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3033 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3034 instead of collect_register_by_name.
3035 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3036 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3037
1b919490
VB
30382018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3039 Pedro Alves <palves@redhat.com>
3040
3041 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3042
d7e15655
TT
30432018-07-03 Tom Tromey <tom@tromey.com>
3044
3045 * linux-low.c: Update.
3046 * lynx-low.c: Update.
3047 * mem-break.c: Update.
3048 * nto-low.c: Update.
3049 * remote-utils.c: Update.
3050 * server.c: Update.
3051 * spu-low.c: Update.
3052 * target.c: Update.
3053 * win32-low.c: Update.
3054
26a57c92
TT
30552018-07-03 Tom Tromey <tom@tromey.com>
3056
3057 * server.c: Update.
3058
0e998d96
TT
30592018-07-03 Tom Tromey <tom@tromey.com>
3060
3061 * linux-low.c: Update.
3062
cc6bcb54
TT
30632018-07-03 Tom Tromey <tom@tromey.com>
3064
3065 * target.c: Update.
3066
e38504b3
TT
30672018-07-03 Tom Tromey <tom@tromey.com>
3068
3069 * linux-low.c: Update.
3070 * linux-mips-low.c: Update.
3071 * lynx-low.c: Update.
3072 * nto-low.c: Update.
3073 * remote-utils.c: Update.
3074 * server.c: Update.
3075 * spu-low.c: Update.
3076 * target.c: Update.
3077 * thread-db.c: Update.
3078
e99b03dc
TT
30792018-07-03 Tom Tromey <tom@tromey.com>
3080
3081 * linux-low.c: Update.
3082 * linux-mips-low.c: Update.
3083 * lynx-low.c: Update.
3084 * mem-break.c: Update.
3085 * nto-low.c: Update.
3086 * remote-utils.c: Update.
3087 * server.c: Update.
3088 * spu-low.c: Update.
3089 * target.c: Update.
3090 * tracepoint.c: Update.
3091
f2907e49
TT
30922018-07-03 Tom Tromey <tom@tromey.com>
3093
3094 * linux-low.c: Update.
3095 * linux-ppc-low.c: Update.
3096 * linux-x86-low.c: Update.
3097 * proc-service.c: Update.
3098 * server.c: Update.
3099 * spu-low.c: Update.
3100 * thread-db.c: Update.
3101 * win32-low.c: Update.
3102
fd79271b
TT
31032018-07-03 Tom Tromey <tom@tromey.com>
3104
3105 * linux-low.c: Update.
3106 * lynx-low.c: Update.
3107 * nto-low.c: Update.
3108 * remote-utils.c: Update.
3109 * spu-low.c: Update.
3110 * thread-db.c: Update.
3111 * win32-low.c: Update.
3112
c0867626
SDJ
31132018-06-29 Joel Brobecker <brobecker@adacore.com>
3114
3115 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3116 parameter in call to 'amd64_create_target_description'.
3117
2512d7ef
JK
31182018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3119
3120 * x86-tdesc.h: Remove executable permission flag.
3121
d0ac1c44
SM
31222018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3123
3124 * configure.ac: Remove AC_PREREQ, add missing quoting.
3125 * configure: Re-generate.
3126 * config.in: Re-generate.
3127 * aclocal.m4: Re-generate.
3128
c4eb05ff
SM
31292018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3130
3131 * tracepoint.h (current_traceframe): Remove declaration.
3132
02895270
AH
31332018-06-18 Alan Hayward <alan.hayward@arm.com>
3134
3135 * linux-aarch64-low.c (is_sve_tdesc): New function.
3136 (aarch64_sve_regs_copy_to_regcache): Likewise.
3137 (aarch64_sve_regs_copy_from_regcache): Likewise.
3138 (aarch64_regs_info): Add SVE checks.
3139 (initialize_low_arch): Initialize SVE.
3140
e9902bfc
AH
31412018-06-18 Alan Hayward <alan.hayward@arm.com>
3142
3143 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3144
fefa175e
AH
31452018-06-11 Alan Hayward <alan.hayward@arm.com>
3146
3147 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3148 (initialize_low_tracepoint): Likewise
3149 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3150 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3151 param.
3152 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3153 checks.
3154 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3155
b91ad3ff
AH
31562018-06-11 Alan Hayward <alan.hayward@arm.com>
3157
3158 * server.h (PBUFSIZ): Increase size
3159
f868386e
AH
31602018-06-11 Alan Hayward <alan.hayward@arm.com>
3161
3162 * regcache.c (regcache::raw_compare): New function.
3163 * regcache.h (regcache::raw_compare): New declaration.
3164
9c861883
AH
31652018-06-11 Alan Hayward <alan.hayward@arm.com>
3166
3167 * regcache.c (new_register_cache): Use new.
3168 (free_register_cache): Use delete.
3169 (register_data): Use const.
3170 (supply_register): Move body inside regcache.
3171 (regcache::raw_supply): New override function.
3172 (collect_register): Move body inside regcache.
3173 (regcache::raw_collect): New override function.
3174 (regcache::get_register_status): New override function.
3175 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3176
40591844
TT
31772018-06-09 Tom Tromey <tom@tromey.com>
3178
3179 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3180 declare queue.
3181 (event_queue): Use std::queue.
3182 (gdb_event_xfree): Remove.
3183 (initialize_event_loop, process_event, wait_for_event): Update.
3184
6341380d
SC
31852018-06-08 Stan Cox <scox@redhat.com>
3186
3187 * win32-low.c (win32_create_inferior): last_ptid and last_status
3188 moved to client_state.
3189
03349c93
PA
31902018-06-08 Pedro Alves <palves@redhat.com>
3191
3192 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3193 common/common-exceptions.o, common/common-utils.o,
3194 common/errors.o, common/print-utils.o and utils.o.
3195 * gdbreplay.c: Include "common-defs.h" instead of the two
3196 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3197 string.h or alloca.h.
3198 (perror_with_name): Delete.
3199 (remote_open): Use xstrdup instead of strdup.
3200 (main): Rename to ...
3201 (captured_main): ... this.
3202 (main): New.
3203
8dcc53b3
TT
32042018-06-08 Tom Tromey <tom@tromey.com>
3205
3206 * linux-low.c (linux_low_read_btrace): Update.
3207
c12a5089
SC
32082018-06-04 Stan Cox <scox@redhat.com>
3209
3210 * server.h (struct client_state): New.
3211 * server.c (cont_thread, general_thread, multi_process)
3212 (report_fork_events, report_vfork_events, report_exec_events)
3213 (report_thread_events, swbreak_feature, hwbreak_feature)
3214 (vCont_supported, disable_randomization, pass_signals)
3215 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3216 Moved to client_state.
3217 * remote-utils.c (remote_debug, noack_mode)
3218 (transport_is_reliable): Moved to client_state.
3219 * tracepoint.c (current_traceframe): Moved to client_state.
3220
3221 Update all callers.
3222 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3223 linux-low.c, remote-utils.h, target.c: Use client_state.
3224
122394f1
AH
32252018-05-31 Alan Hayward <alan.hayward@arm.com>
3226
3227 * configure.srv: Add new c/h file.
3228
95228a0d
AH
32292018-05-31 Alan Hayward <alan.hayward@arm.com>
3230
3231 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3232 null VQ.
3233
d8dab6c3
MR
32342018-05-25 Maciej W. Rozycki <macro@mips.com>
3235
3236 * gdb.arch/mips-fpregset-core.exp: New test.
3237 * gdb.arch/mips-fpregset-core.c: New test source.
3238
81e25b7c
EK
32392018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3240
3241 PR server/23198
3242 * hostio.c (require_int): Do not report overflow for integers
3243 between 0xfffffff and 0x7fffffff.
3244
7e947ad3
MR
32452018-05-22 Maciej W. Rozycki <macro@mips.com>
3246
3247 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3248 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3249 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3250 functions.
3251 (the_low_target): Wire them.
3252
1d75a658
PFC
32532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3254
3255 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3256 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3257 mode. Call collect_register_by_name with vscr using
3258 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3259 (ppc_store_vrregset): Add and set vscr_offset variable as in
3260 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3261 vscr_offset.
3262
d078308a
PFC
32632018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3264
3265 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3266 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3267 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3268
7273b5fc
PFC
32692018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3270
3271 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3272 (ppc_store_vsxregset): Likewise.
3273 (ppc_fill_vrregset): Likewise.
3274 (ppc_store_vrregset): Likewise.
3275 (ppc_fill_evrregset): Likewise.
3276 (ppc_store_evrregset): Likewise.
3277 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3278 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3279 needed.
3280
2e077f5e
PFC
32812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3282
3283 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3284 wordsize of the inferior. Call ppc_linux_target_wordsize.
3285
bd64614e
PFC
32862018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3287
3288 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3289 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3290 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3291 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3292 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3293 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3294 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3295 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3296 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3297 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3298 (tdesc_powerpc_e500l): Remove.
3299 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3300 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3301 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3302 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3303 linux-ppc-tdesc.h.
3304 (ppc_arch_setup): Remove target description matching code. Fill a
3305 ppc_linux_features struct and call ppc_linux_match_description
3306 with it.
3307
75d74cca
MR
33082018-05-22 Maciej W. Rozycki <macro@mips.com>
3309
3310 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3311 width of the requested register exceeds the width of the
3312 `ptrace' data type.
3313 (mips_cannot_store_register): Likewise.
3314
e4439e43
MR
33152018-05-21 Maciej W. Rozycki <macro@mips.com>
3316
3317 * linux-mips-low.c (mips_fetch_register): New function. Update
3318 preceding comment.
3319 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3320 (the_low_target): Wire `mips_fetch_register'.
3321
55271bf9
JB
33222018-05-10 Joel Brobecker <brobecker@adacore.com>
3323
3324 * lynx-i386-low.c (LYNXOS_178): New macro.
3325 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3326 the layout on LynxOS-178.
3327 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3328 handle floating point registers that are not supported by
3329 LynxOS-178.
3330
1a34f210
TT
33312018-05-10 Tom Tromey <tom@tromey.com>
3332
3333 * configure: Rebuild.
3334
190852c8
JB
33352018-05-10 Joel Brobecker <brobecker@adacore.com>
3336
3337 PR server/23158:
3338 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3339 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3340 Use it to set the expedite_regs field in the given tdesc.
3341 * x86-tdesc.h: New file.
3342 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3343 Adjust following the addition of the new expedite_regs parameter
3344 to init_target_desc.
3345 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3346 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3347 (i386_linux_read_description, amd64_linux_read_description):
3348 Adjust following the addition of the new expedite_regs parameter
3349 to init_target_desc.
3350 * lynx-i386-low.c: #include "x86-tdesc.h".
3351 (lynx_i386_arch_setup): Adjust following the addition of the new
3352 expedite_regs parameter to init_target_desc.
3353 * nto-x86-low.c: #include "x86-tdesc.h".
3354 (nto_x86_arch_setup): Adjust following the addition of the new
3355 expedite_regs parameter to init_target_desc.
3356 * win32-i386-low.c: #include "x86-tdesc.h".
3357 (i386_arch_setup): Adjust following the addition of the new
3358 expedite_regs parameter to init_target_desc.
3359
7dbac825
JB
33602018-05-10 Joel Brobecker <brobecker@adacore.com>
3361
3362 PR server/23158:
3363 * win32-low.c (win32_create_inferior): Add call to my_wait
3364 setting last_status global.
3365
906994d9
JB
33662018-05-10 Joel Brobecker <brobecker@adacore.com>
3367
3368 PR server/23158:
3369 * win32-low.c (create_process): Only call gdb_tilde_expand if
3370 inferior_cwd is not NULL.
3371
8ee22052
AB
33722018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3375 registers to the cache if their values have changed.
3376 (i387_xsave_to_cache): Provide default values for x87 control
3377 registers when these features are available, but disabled.
3378 * regcache.c (supply_register_by_name_zeroed): New function.
3379 * regcache.h (supply_register_by_name_zeroed): Declare new
3380 function.
3381
aff689d3
TT
33822018-05-07 Tom Tromey <tom@tromey.com>
3383
3384 * configure: Rebuild.
3385
85e26832
TT
33862018-05-04 Tom Tromey <tom@tromey.com>
3387
3388 * configure: Rebuild.
3389
a3b60e45
JK
33902018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3391 Pedro Alves <palves@redhat.com>
3392
3393 * linux-aarch64-low.c (aarch64_stopped_data_address):
3394 Likewise.
3395
632e107b
TT
33962018-04-27 Tom Tromey <tom@tromey.com>
3397
3398 * configure: Rebuild.
3399
458412c3
TT
34002018-04-23 Tom Tromey <tom@tromey.com>
3401
3402 * configure: Rebuild.
3403
f31c089e
SM
34042018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3405
3406 * Makefile.in (depcomp): Add "..".
3407 (all_deps_files): New and use it.
3408
b319b098
AH
34092018-04-18 Alan Hayward <alan.hayward@arm.com>
3410
3411 * configure.srv (aarch64*-*-linux*): Don't include xml.
3412 (i[34567]86-*-cygwin*): Likewise.
3413 (i[34567]86-*-linux*): Likewise.
3414 (i[34567]86-*-lynxos*): Likewise.
3415 (i[34567]86-*-mingw32ce*): Likewise.
3416 (i[34567]86-*-mingw*): Likewise.
3417 (i[34567]86-*-nto*): Likewise.
3418 (tic6x-*-uclinux): Likewise.
3419 (x86_64-*-linux*): Likewise.
3420 (x86_64-*-mingw*): Likewise.
3421 (x86_64-*-cygwin*): Likewise.
3422
3b74854b
AH
34232018-04-18 Alan Hayward <alan.hayward@arm.com>
3424
3425 * tdesc.c: Remove xml parameter.
3426
e98577a9
AH
34272018-04-18 Alan Hayward <alan.hayward@arm.com>
3428
3429 * server.c (get_features_xml): Remove cast.
3430 * tdesc.c (void target_desc::accept): Fill in function.
3431 (tdesc_get_features_xml): Remove old xml creation.
3432 (print_xml_feature::visit_pre): Add xml vistor.
3433 * tdesc.h (struct target_desc): Make xmltarget mutable.
3434 (tdesc_get_features_xml): Remove declaration.
3435
d278f585
AH
34362018-04-18 Alan Hayward <alan.hayward@arm.com>
3437
3438 * tdesc.c (tdesc_architecture_name): Add new function.
3439 (tdesc_osabi_name): Likewise.
3440 (tdesc_get_features_xml): Use new functions.
3441
eee8a18d
AH
34422018-04-18 Alan Hayward <alan.hayward@arm.com>
3443
3444 * tdesc.c (tdesc_create_flags): Remove.
3445 (tdesc_add_flag): Likewise.
3446 (tdesc_named_type): Likewise.
3447 (tdesc_create_union): Likewise.
3448 (tdesc_create_struct): Likewise.
3449 (tdesc_create_vector): Likewise.
3450 (tdesc_add_bitfield): Likewise.
3451 (tdesc_add_field): Likewise.
3452 (tdesc_set_struct_size): Likewise.
3453
82ec9bc7
AH
34542018-04-18 Alan Hayward <alan.hayward@arm.com>
3455
3456 * tdesc.c (~target_desc): Remove implictly deleted items.
3457 (init_target_desc): Iterate all features.
3458 (tdesc_get_features_xml): Use vector.
3459 (tdesc_create_feature): Create feature.
3460 * tdesc.h (tdesc_feature) Remove
3461 (target_desc): Add features.
3462
ea3e7d71
AH
34632018-04-18 Alan Hayward <alan.hayward@arm.com>
3464
3465 * Makefile.in: Add common/tdesc.c
3466 * tdesc.c (init_target_desc): init all reg_defs from register
3467 vector.
3468 (tdesc_create_reg): Create tdesc_reg.
3469 * tdesc.h (tdesc_feature): Add register vector.
3470
17d08cd4
SM
34712018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3472
3473 * tdesc.h (struct target_desc) <features>: Change type to
3474 std::vector<std::string>.
3475 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3476 changes.
3477 (tdesc_get_features_xml): Likewise.
3478 (tdesc_create_feature): Likewise.
3479
5cd3e386
AH
34802018-03-26 Alan Hayward <alan.hayward@arm.com>
3481
3482 * regcache.c (find_register_by_number): Return a ref.
3483 (find_regno): Use references.
3484 (register_size): Likewise.
3485 (register_data): Likewise.
3486 * tdesc.c (target_desc::~target_desc): Remove free calls.
3487 (target_desc::operator==): Use std::vector compare.
3488 (init_target_desc): Use reference.
3489 (tdesc_create_reg): Use reg constructors.
3490 * tdesc.h (struct target_desc): Replace pointer with object.
3491
dff7492c
AH
34922018-03-23 Alan Hayward <alan.hayward@arm.com>
3493
3494 * regcache.c (find_register_by_number): Make static.
3495 (find_regno): Use find_register_by_number
3496 * regcache.h (struct reg): Remove declaration.
3497
d80e5242
AH
34982018-03-23 Alan Hayward <alan.hayward@arm.com>
3499
3500 * tdesc.c (target_desc::~target_desc): Move to here.
3501 (target_desc::operator==): Likewise.
3502 * tdesc.h (target_desc::~target_desc): Move from here.
3503 (target_desc::operator==): Likewise.
3504
f69c5afb
AA
35052018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3506
3507 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3508
ce29f843
AA
35092018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3510
3511 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3512 S390_TDESC_GS.
3513 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3514 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3515 and init_registers_s390_gs_linux64.
3516
c49bd90b
AA
35172018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3518
3519 * linux-s390-low.c (s390_fill_gs): Remove function.
3520 (s390_fill_gsbc): Remove function.
3521 (s390_regsets): Set fill functions for the guarded storage regsets
3522 to NULL.
3523
7edb9bd3
AA
35242018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3525
3526 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3527 the word size. Add comment.
3528 (s390_get_wordsize): New function.
3529 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3530 pswm with it. Instead, use s390_get_wordsize to determine the
3531 word size first and derive the correct tdesc from that directly.
3532
39be3c7e
SM
35332018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3534
3535 * Makefile.in: Include silent-rules.mk.
3536 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3537 (COMPILE): Add ECHO_CXX.
3538 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3539 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3540 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3541 (version-generated.c): Add ECHO_GEN.
3542 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3543 (IPAGENT_COMPILE): Add ECHO_CXX.
3544 (%-generated.c): Add ECHO_REGDAT.
3545
3ae9ce5d
TT
35462018-03-14 Tom Tromey <tom@tromey.com>
3547
3548 PR cli/14977:
3549 * ax.c (ax_printf): Special case for NULL.
3550
e6a58aa8
SM
35512018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3552
3553 * linux-low.c (linux_qxfer_libraries_svr4): Use
3554 xml_escape_text_append.
3555
f6e8a41e
SM
35562018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3559
b9671caf
SM
35602018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3561
3562 * server.c (handle_general_set): Remove unnecessary xstrdup.
3563
e80aaf61
SM
35642018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3565
3566 * server.c (parse_debug_format_options): Adjust to
3567 delim_string_to_char_ptr_vec changes.
3568 * thread-db.c (thread_db_load_search): Adjust to
3569 dirnames_to_char_ptr_vec changes.
3570
b1223e78
MM
35712018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3572
3573 * target.h (target_enable_btrace, target_disable_btrace)
3574 (target_read_btrace, target_read_btrace_conf): Turn macro into
3575 inline function. Throw error if target method is not defined.
3576 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3577 check for btrace target method. Be prepared to handle exceptions
3578 from btrace target methods.
3579
81561546
SDJ
35802018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3581
3582 * server.c (captured_main): Change order of error message printed
3583 when the current working directory cannot be found.
3584
25e3c82c
SDJ
35852018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3586
3587 * server.c: Include "filenames.h" and "pathstuff.h".
3588 (program_name): Delete variable.
3589 (program_path): New anonymous class.
3590 (get_exec_wrapper): Use "program_path" instead of
3591 "program_name".
3592 (handle_v_run): Likewise.
3593 (captured_main): Likewise.
3594 (process_serial_event): Likewise.
3595
b4987c95
SDJ
35962018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3597
3598 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3599 (OBJS): Add "pathstuff.o".
3600 * server.c (current_directory): New global variable.
3601 (captured_main): Initialize "current_directory".
3602
f46cd62a
AH
36032018-02-26 Alan Hayward <alan.hayward@arm.com>
3604
3605 * tdesc.c: Use common/tdesc.h.
3606 * tdesc.h: Likewise.
3607
a543c5ca
AH
36082018-02-20 Alan Hayward <alan.hayward@arm.com>
3609 Simon Marchi <simon.marchi@ericsson.com>
3610
3611 * Makefile.in: Switch order of make rules.
3612
b5884fa7
AH
36132018-02-19 Alan Hayward <alan.hayward@arm.com>
3614
3615 * Makefile.in: Add common directory in build.
3616 * configure.ac: Add common reference.
3617 * configure: Regenerate.
3618
de6242d3
MM
36192018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3620
3621 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3622 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3623 * spu-low.c (spu_target_ops): Likewise.
3624 * win32-low.c (win32_target_ops): Likewise.
3625 * server.c (supported_btrace_packets): Report packets unconditionally.
3626 * target.h (target_ops) <supports_btrace>: Remove.
3627 (target_supports_btrace): Remove.
3628
9ee23a85
MM
36292018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3630
3631 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3632 (handle_btrace_disable): Change return type to void. Use exceptions
3633 to report errors.
3634 (handle_btrace_general_set): Catch exception and copy message to
3635 return message.
3636
8ce47547
TT
36372018-02-08 Tom Tromey <tom@tromey.com>
3638
3639 * linux-low.c (install_software_single_step_breakpoints): Use
3640 make_scoped_restore.
3641 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3642 (do_restore_current_thread_cleanup): Remove.
3643 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3644 declare.
3645
45dd3607
TT
36462018-02-08 Tom Tromey <tom@tromey.com>
3647
3648 * mem-break.c (set_raw_breakpoint_at): Use
3649 gdb::unique_xmalloc_ptr.
3650
e671cd59
PA
36512018-01-30 Pedro Alves <palves@redhat.com>
3652
3653 PR gdb/13211
3654 * target.c (target_terminal::terminal_state): Rename to ...
3655 (target_terminal::m_terminal_state): ... this.
3656
a0aad537
JC
36572018-01-19 James Clarke <jrtc27@jrtc27.com>
3658
3659 * linux-low.c (handle_extended_wait): Surround call to
3660 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3661
4d9b86e1
SM
36622018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3663
3664 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3665 linux_ptrace_attach_fail_reason_string now returning an
3666 std::string.
3667 (linux_attach): Likewise.
3668 * thread-db.c (attach_thread): Likewise.
3669
f517c180
EA
36702018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3671
3672 PR gdb/21559
3673 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3674 checking for fs_base/gs_base fields in struct user_regs_struct.
3675 * configure: Regenerate.
3676
9a70f35c
YQ
36772018-01-16 Yao Qi <yao.qi@linaro.org>
3678
3679 PR gdb/18749
3680 * linux-low.c (fetch_register): Call supply_register instead of
3681 error.
3682
605fd3c6
YQ
36832018-01-08 Yao Qi <yao.qi@linaro.org>
3684 Simon Marchi <simon.marchi@ericsson.com>
3685
3686 * Makefile.in (OBS): Remove selftest.o.
3687 * configure.ac: Set srv_selftest_objs if $development is true.
3688 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3689 * configure: Re-generated.
3690 * server.c (captured_main): Wrap variable selftest_filter with
3691 GDB_SELF_TEST.
3692
2cc05030
SM
36932018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3694
3695 * server.c (parse_debug_format_options): Return std::string.
3696 (handle_monitor_command, captured_main): Adjust.
3697
e379cee6
PA
36982018-01-05 Pedro Alves <palves@redhat.com>
3699
3700 PR gdb/18653
3701 * server.c (captured_main): Pass quiet=false to
3702 save_original_signals_state.
3703
82e1e79a
JB
37042018-01-01 Joel Brobecker <brobecker@adacore.com>
3705
3706 * gdbreplay.c (gdbreplay_version): Update copyright year in
3707 version message.
3708 * server.c (gdbserver_version): Likewise.
3709
8e481c3b
TT
37102017-12-08 Tom Tromey <tom@tromey.com>
3711
3712 * ax.c (ax_printf): Update.
3713
a8806230
YQ
37142017-12-07 Yao Qi <yao.qi@linaro.org>
3715
3716 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3717 aarch64_linux_read_description.
3718 * linux-amd64-ipa.c (idx2mask): New array.
3719 (get_ipa_tdesc): Move idx2mask out.
3720 (initialize_low_tracepoint): Initialize target descriptions.
3721 * linux-i386-ipa.c (idx2mask): New array.
3722 (get_ipa_tdesc): Move idx2mask out.
3723 (initialize_low_tracepoint): Initialize target descriptions.
3724
d4a0e8b5
SM
37252017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3726
3727 * tdesc.c (struct tdesc_type): Change return type.
3728 (tdesc_add_flag): Change parameter type.
3729 (tdesc_add_bitfield): Likewise.
3730 (tdesc_add_field): Likewise.
3731 (tdesc_set_struct_size): Likewise.
3732
798a7429
SM
37332017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3734
3735 * regcache.c (registers_to_string): Remove unused variable.
3736
c0e15c9b
SM
37372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3738
3739 * inferiors.c (for_each_inferior_with_data): Remove.
3740 * inferiors.h (for_each_inferior_with_data): Remove.
3741 * server.c (handle_qxfer_threads_worker): Change parameter type.
3742 (handle_qxfer_threads_proper): Use for_each_thread.
3743
f0045347
SM
37442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3745
3746 * inferiors.c (for_each_inferior): Remove.
3747 (clear_inferiors): Use for_each_thread.
3748 * inferiors.h (for_each_inferior): Remove.
3749 * linux-low.c (linux_wait_for_event_filtered): Use
3750 for_each_thread.
3751 (linux_stabilize_threads): Likewise.
3752 * regcache.c (regcache_release): Likewise.
3753 * server.c (gdb_wants_all_threads_stopped): Likewise.
3754 (clear_pending_status_callback): Remove.
3755 (handle_status): Use for_each_thread.
3756 (captured_main): Likewise.
3757 * win32-low.c (child_init_thread_list): Likewise.
3758 (win32_clear_inferiors): Likewise.
3759 (fake_breakpoint_event): Likewise.
3760
9521758b
SM
37612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3762
3763 * inferiors.h (find_inferior): Remove.
3764 * inferiors.c (find_inferior): Remove.
3765
8f86d7aa
SM
37662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3767
3768 * linux-low.c (resume_status_pending_p): Update comment.
3769 (need_step_over_p): Update comment.
3770
e2b44075
SM
37712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3772
3773 * linux-low.c (proceed_one_lwp): Return void, change parameter
3774 type.
3775 (unsuspend_and_proceed_one_lwp): Likewise.
3776 (proceed_all_lwps): Use for_each_thread.
3777 (unstop_all_lwps): Likewise.
3778
c80825ff
SM
37792017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3780
3781 * linux-low.c (linux_resume_one_thread): Return void, take
3782 parameter directly.
3783 (linux_resume): Use for_each_thread.
3784
df3e4dbe
SM
37852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3786
3787 * linux-low.c (send_sigstop_callback): Return void, change
3788 parameter type. Rename to...
3789 (send_sigstop): ... this.
3790 (suspend_and_send_sigstop_callback): Return void, change parameter
3791 type. Rename to...
3792 (suspend_and_send_sigstop): ... this.
3793 (stop_all_lwps): Use for_each_thread.
3794
5a6b0a41
SM
37952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3796
3797 * linux-low.c (lwp_running): Return bool, remove unused
3798 argument.
3799 (linux_stabilize_threads): Use find_thread.
3800
39a64da5
SM
38012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3802
3803 * linux-low.c (select_singlestep_lwp_callback): Remove.
3804 (count_events_callback): Remove.
3805 (select_event_lwp_callback): Remove.
3806 (select_event_lwp): Use find_thread/for_each_thread.
3807
a1385b7b
SM
38082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3809
3810 * linux-low.c (not_stopped_callback): Return bool, take filter
3811 argument directly.
3812 (linux_wait_for_event_filtered): Use find_thread.
3813 (linux_wait_1): Likewise.
3814
454296a2
SM
38152017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3816
3817 * linux-low.c (same_lwp): Remove.
3818 (find_lwp_pid): Use find_thread.
3819
6b2a85da
SM
38202017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3821
3822 * linux-low.c (delete_lwp_callback): Remove.
3823 (linux_mourn): Use for_each_thread.
3824
798a38e8
SM
38252017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3826
3827 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3828 args parameter, don't check for pid.
3829 (linux_detach): Use for_each_thread.
3830
e4eb0dec
SM
38312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3832
3833 * linux-low.c (struct counter): Remove.
3834 (second_thread_of_pid_p): Remove.
3835 (last_thread_of_process_p): Use find_thread.
3836
83e1b6c1
SM
38372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3838
3839 * inferiors.c (find_inferior_in_random): Remove.
3840 * inferiors.h (find_inferior_in_random): Remove.
3841 * linux-low.c (status_pending_p_callback): Return bool, accept
3842 parameter ptid directly.
3843 (linux_wait_for_event_filtered): Use find_thread_in_random.
3844 (linux_wait_1): Likewise.
3845
8dc7b443
SM
38462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3847
3848 * inferiors.c (find_inferior_id): Remove.
3849 (find_thread_ptid): Move implemention from find_inferior_id to
3850 here.
3851 * inferiors.h (find_inferior_id): Remove.
3852 * server.c (handle_status): Use find_thread_ptid.
3853 (process_serial_event): Likewise.
3854 * thread-db.c (find_one_thread): Likewise.
3855 (thread_db_thread_handle): Likewise.
3856 * win32-low.c (thread_rec): Likewise.
3857 (child_delete_thread): Likewise.
3858 (win32_thread_alive): Likewise.
3859 (get_child_debug_event): Likewise.
3860
da25033c
SM
38612017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3862
3863 * linux-mips-low.c (update_watch_registers_callback): Return
3864 void, remove pid_p parameter, don't check for pid.
3865 (mips_insert_point, mips_remove_point): Use for_each_thread.
3866
c91bb56b
SM
38672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3868
3869 * lynx.low (lynx_delete_thread_callback): Remove.
3870 (lynx_mourn): Use for_each_thread.
3871
634a3254
SM
38722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3873
3874 * regcache.c (regcache_invalidate_one): Remove.
3875 (regcache_invalidate_pid): use for_each_thread.
3876
41272101
TT
38772017-11-26 Tom Tromey <tom@tromey.com>
3878
3879 * linux-low.c (linux_create_inferior): Update.
3880
f5291a6f
UW
38812017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3882
3883 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3884
6654d750
AH
38852017-11-24 Alan Hayward <alan.hayward@arm.com>
3886
3887 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3888 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3889 * linux-aarch64-tdesc-selftest.c: New file.
3890 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3891
38922017-11-24 Alan Hayward <alan.hayward@arm.com>
3893
3894 * configure.srv: Add new file.
3895 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3896 * linux-aarch64-tdesc-selftest.c: New file.
3897 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3898
49bdb7ee
AH
38992017-11-24 Alan Hayward <alan.hayward@arm.com>
3900
3901 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3902 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3903 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3904
d6d7ce56
AH
39052017-11-24 Alan Hayward <alan.hayward@arm.com>
3906
3907 * configure.srv: Add new files.
3908 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3909 aarch64_linux_read_description.
3910 * linux-aarch64-low.c (aarch64_linux_read_description):
3911 Merge with aarch64_arch_setup.
3912 (aarch64_arch_setup): Call aarch64_linux_read_description.
3913 * linux-aarch64-tdesc.c: New file.
3914 * linux-aarch64-tdesc.h: New file.
3915
506fe5f4
YQ
39162017-11-24 Yao Qi <yao.qi@linaro.org>
3917
3918 * configure.srv: Set $srv_regobj for tic6x-linux.
3919 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3920 (tic6x_read_description): Move some code to tic6x_arch_setup.
3921 (tic6x_tdesc_test): New function.
3922 (initialize_low_arch): Call selftests::register_test.
3923
29f9a567
YQ
39242017-11-22 Yao Qi <yao.qi@linaro.org>
3925
3926 * remote-utils.c (prepare_resume_reply): Use memcpy.
3927
578290ec
SM
39282017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3929
3930 * linux-low.c (kill_one_lwp_callback): Return void, take
3931 argument directly, don't filter on pid.
3932 (linux_kill): Use for_each_thread.
3933
eca55aec
SM
39342017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3935
3936 * linux-low.c (need_step_over_p): Return bool, remove dummy
3937 argument.
3938 (linux_resume, proceed_all_lwps): Use find_thread.
3939
25c28b4d
SM
39402017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3941
3942 * linux-low.c (resume_status_pending_p): Return bool, remove
3943 flag_p argument.
3944 (linux_resume): Use find_thread.
3945
5fdda392
SM
39462017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3947
3948 * linux-low.c (struct thread_resume_array): Remove.
3949 (linux_set_resume_request): Return void, take arguments
3950 directly.
3951 (linux_resume): Use for_each_thread.
3952
fcb056a5
SM
39532017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3954
3955 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3956 return bool, remove data argument.
3957 (linux_stabilize_threads): Use find_thread.
3958
139720c5
SM
39592017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3960
3961 * linux-low.c (unsuspend_one_lwp): Remove.
3962 (unsuspend_all_lwps): Use for_each_thread, inline code from
3963 unsuspend_one_lwp.
3964
6d1e5673
SM
39652017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3966
3967 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3968 * linux-low.c (struct iterate_over_lwps_args): Remove.
3969 (iterate_over_lwps_filter): Remove.
3970 (iterate_over_lwps): Use find_thread.
3971
bbf550d5
SM
39722017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3973
3974 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
3975 (linux_handle_new_gdb_connection): Use for_each_thread, inline
3976 code from reset_lwp_ptrace_options_callback.
3977
00192f77
SM
39782017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3979
3980 * linux-arm-low.c (struct update_registers_data): Remove.
3981 (update_registers_callback): Return void, take arguments
3982 directly, don't check thread's pid.
3983 (arm_insert_point, arm_remove_point): Use for_each_thread.
3984
2bee2b6c
SM
39852017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3986
3987 * win32-low.c (continue_one_thread): Return void, take argument
3988 directly.
3989 (child_continue): Use for_each_thread.
3990
0b360f19
SM
39912017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3992
3993 * win32-i386-low.c (update_debug_registers_callback): Rename
3994 to ...
3995 (update_debug_registers): ... this, return void, remove pid_p arg.
3996 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3997
f27866ba
SM
39982017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3999
4000 * inferiors.h (struct process_info): Add constructor, initialize
4001 fields..
4002 <syscalls_to_catch>: Change type to std::vector<int>.
4003 * inferiors.c (add_process): Allocate process_info with new.
4004 (remove_process): Free process_info with delete.
4005 * linux-low.c (handle_extended_wait): Adjust.
4006 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4007 * server.c (handle_general_set): Adjust.
4008
e849ea89
PA
40092017-11-16 Pedro Alves <palves@redhat.com>
4010
4011 * remote-utils.c (remote_close): Block SIGIO signals instead of
4012 uninstalling the SIGIO handler.
4013
1d0aa65c
AH
40142017-11-16 Alan Hayward <alan.hayward@arm.com>
4015
4016 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4017
3491a34c
YQ
40182017-11-16 Yao Qi <yao.qi@linaro.org>
4019
4020 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4021 (tic6x_store_gregset): Likewise.
4022 (tic6x_usrregs_info): Move it up.
4023
a602f924
AH
40242017-11-15 Alan Hayward <alan.hayward@arm.com>
4025
4026 * Makefile.in: Update arch rules.
4027 * configure.srv: Explicitly mark arch/ files.
4028
5616b6c3
AS
40292017-11-13 Andreas Schwab <schwab@suse.de>
4030
4031 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4032 function.
4033 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4034
d1928160
PA
40352017-11-06 Pedro Alves <palves@redhat.com>
4036
4037 * config.in, configure: Regenerate.
4038
bac608e7
SM
40392017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4040
4041 * target.c (struct thread_search): Remove.
4042 (thread_search_callback): Remove.
4043 (prepare_to_access_memory): Use for_each_thread instead of
4044 find_inferior. Inline code from thread_search_callback.
4045
eaddb425
SM
40462017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4047
4048 * server.c (struct visit_actioned_threads_data): Remove.
4049 (visit_actioned_threads): Change prototype to take arguments
4050 directly.
4051 (resume): Use find_thread instead of find_inferior.
4052
99078d34
SM
40532017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4054
4055 * server.c (queue_stop_reply_callback): Change prototype, return
4056 void.
4057 (find_status_pending_thread_callback): Remove.
4058 (handle_status): Replace find_inferior with find_thread and
4059 for_each_thread.
4060
cc628f3d
AH
40612017-10-25 Alan Hayward <alan.hayward@arm.com>
4062
4063 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4064 with REGNO.
4065 (aarch64_store_gregset): Likewise.
4066 (aarch64_fill_fpregset): Likewise.
4067 (aarch64_store_fpregset): Likewise.
4068
4d3bb80e
SM
40692017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4070
4071 * gdbthread.h (find_thread, for_each_thread): New functions.
4072 * inferiors.c (thread_of_pid): Remove.
4073 (find_any_thread_of_pid): Use find_thread.
4074 * linux-low.c (num_lwps): Use for_each_thread.
4075
7a7cdfa0
YQ
40762017-10-17 Yao Qi <yao.qi@linaro.org>
4077
4078 * Makefile.in: Remove one rule.
4079 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4080
e675d170
YQ
40812017-10-17 Yao Qi <yao.qi@linaro.org>
4082
4083 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4084 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4085
7eb4e0f9
YQ
40862017-10-17 Yao Qi <yao.qi@linaro.org>
4087
4088 * configure.srv: Rename arm.o with arch/arm.o.
4089
60d6cfc9
YQ
40902017-10-17 Yao Qi <yao.qi@linaro.org>
4091
4092 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4093 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4094 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4095 (arch-i386.o, arch-amd64.o): Remove rules.
4096 (arch/%.o): New rule.
4097 Update POSTCOMPILE and COMPILE.pre.
4098 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4099 * configure: Re-generated.
4100 * configure.srv: Replace arch-i386.o with arch/i386.o.
4101 Replace arch-amd64.o with arch/amd64.o.
4102
5bfda255
YQ
41032017-10-16 Yao Qi <yao.qi@linaro.org>
4104
4105 * configure: Regenerated.
4106
9c80ecd6
SM
41072017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4108
4109 * inferiors.h: (struct inferior_list): Remove.
4110 (struct inferior_list_entry); Remove.
4111 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4112 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4113 get_first_inferior): Remove.
4114 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4115 find_inferior_id, find_inferior_in_random): Change signature.
4116 * inferiors.c (all_threads): Change type to
4117 std::list<thread_info *>.
4118 (get_thread): Remove macro.
4119 (find_inferior, find_inferior_id): Change signature, implement
4120 using find_thread.
4121 (find_inferior_in_random): Change signature, implement using
4122 find_thread_in_random.
4123 (for_each_inferior, for_each_inferior_with_data): Change
4124 signature, implement using for_each_thread.
4125 (add_inferior_to_list, remove_inferior): Remove.
4126 (add_thread, get_first_thread, thread_of_pid,
4127 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4128 (get_first_inferior, one_inferior_p, clear_inferior_list):
4129 Remove.
4130 (clear_inferiors, get_thread_process): Update.
4131 * gdbthread.h: Include <list>.
4132 (struct thread_info) <entry>: Remove field.
4133 <id>: New field.
4134 (all_threads): Change type to std::list<thread_info *>.
4135 (get_first_inferior): Add doc.
4136 (find_thread, for_each_thread, find_thread_in_random): New
4137 functions.
4138 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4139 * linux-arm-low.c (update_registers_callback): Update.
4140 * linux-low.c (second_thread_of_pid_p): Update.
4141 (kill_one_lwp_callback, linux_detach_lwp_callback,
4142 delete_lwp_callback, status_pending_p_callback, same_lwp,
4143 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4144 iterate_over_lwps, not_stopped_callback,
4145 resume_stopped_resumed_lwps, count_events_callback,
4146 select_singlestep_lwp_callback, select_event_lwp_callback,
4147 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4148 suspend_and_send_sigstop_callback, wait_for_sigstop,
4149 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4150 lwp_running, linux_set_resume_request, resume_status_pending_p,
4151 need_step_over_p, start_step_over, linux_resume_one_thread,
4152 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4153 reset_lwp_ptrace_options_callback): Update.
4154 * linux-mips-low.c (update_watch_registers_callback): Update.
4155 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4156 Update.
4157 (free_register_cache_thread_one): Remove.
4158 (regcache_release): Update.
4159 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4160 handle_qxfer_threads_worker): Update.
4161 (handle_query): Update, use list iterator.
4162 (visit_actioned_threads, handle_pending_status,
4163 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4164 clear_pending_status_callback, set_pending_status_callback,
4165 find_status_pending_thread_callback, handle_status,
4166 process_serial_event): Update.
4167 * target.c (thread_search_callback): Update.
4168 * thread-db.c (thread_db_get_tls_address): Update.
4169 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4170 Update.
4171 * win32-i386-low.c (update_debug_registers_callback): Update.
4172 * win32-low.c (delete_thread_info, child_delete_thread,
4173 continue_one_thread, suspend_one_thread,
4174 get_child_debug_event): Adjust.
4175
9179355e
SM
41762017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4177
4178 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4179 * inferiors.h: Include <list>.
4180 (struct process_info) <entry>: Remove field.
4181 <pid>: New field.
4182 (pid_of): Change macro to function.
4183 (ptid_of, lwpid_of): Remove macro.
4184 (all_processes): Change type to std::list<process_info *>.
4185 (ALL_PROCESSES): Remove macro.
4186 (for_each_process, find_process): New function.
4187 * inferiors.c (all_processes): Change type to
4188 std::list<process_info *>.
4189 (find_thread_process): Adjust.
4190 (add_process): Likewise.
4191 (remove_process): Likewise.
4192 (find_process_pid): Likewise.
4193 (get_first_process): Likewise.
4194 (started_inferior_callback): Remove.
4195 (have_started_inferiors_p): Adjust.
4196 (attached_inferior_callback): Remove.
4197 (have_attached_inferiors_p): Adjust.
4198 * linux-low.c (check_zombie_leaders): Likewise.
4199 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4200 (x86_linux_update_xmltarget): Adjust.
4201 * server.c (handle_query): Likewise.
4202 (gdb_reattached_process): Remove.
4203 (handle_status): Adjust.
4204 (kill_inferior_callback): Likewise.
4205 (detach_or_kill_inferior): Remove.
4206 (print_started_pid): Likewise.
4207 (print_attached_pid): Likewise.
4208 (detach_or_kill_for_exit): Update.
4209 (process_serial_event): Likewise.
4210 * linux-arm-low.c (arm_new_fork): Likewise.
4211
c9cb8905
SM
42122017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4213
4214 * dll.h: Include <list>.
4215 (struct dll_info): Add constructor.
4216 <entry>: Remove field.
4217 (all_dlls): Change type to std::list<dll_info>.
4218 * dll.c: Include <algorithm>.
4219 (get_dll): Remove macro.
4220 (all_dlls): Change type to std::list<dll_info *>.
4221 (free_one_dll): Remove.
4222 (match_dll): Likewise.
4223 (loaded_dll): Adjust.
4224 (unloaded_dll): Adjust to all_dlls type change, use
4225 std::find_if. Inline code from match_dll.
4226 (clear_dlls): Adjust to all_dlls type change.
4227 * server.c (emit_dll_description): Remove.
4228 (handle_qxfer_libraries): Adjust to all_dlls type change,
4229 integrate emit_dll_description's functionality.
4230
04ec7890
SM
42312017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4232
4233 * linux-low.h (struct linux_target_ops) <delete_process>: New
4234 field.
4235 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4236 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4237 (struct linux_target_ops): Add delete_process callback.
4238 * linux-arm-low.c (arm_delete_process): New.
4239 (struct linux_target_ops): Add delete_process callback.
4240 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4241 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4242 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4243 * linux-mips-low.c (mips_linux_delete_process): New.
4244 (struct linux_target_ops): Add delete_process callback.
4245 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4246 * linux-s390-low.c (struct linux_target_ops): Likewise.
4247 * linux-sh-low.c (struct linux_target_ops): Likewise.
4248 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4249 * linux-tile-low.c (struct linux_target_ops): Likewise.
4250 * linux-x86-low.c (x86_linux_delete_process): New.
4251 (struct linux_target_ops): Add delete_process callback.
4252 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4253
466eecee
SM
42542017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4255
4256 * linux-aarch64-low.c (the_low_target): Add thread delete
4257 callback.
4258 * linux-arm-low.c (arm_delete_thread): New function.
4259 (the_low_target): Add thread delete callback.
4260 * linux-bfin-low.c (the_low_target): Likewise.
4261 * linux-crisv32-low.c (the_low_target): Likewise.
4262 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4263 set.
4264 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4265 field.
4266 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4267 * linux-mips-low.c (mips_linux_delete_thread): New function.
4268 (the_low_target): Add thread delete callback.
4269 * linux-ppc-low.c (the_low_target): Likewise.
4270 * linux-s390-low.c (the_low_target): Likewise.
4271 * linux-sh-low.c (the_low_target): Likewise.
4272 * linux-tic6x-low.c (the_low_target): Likewise.
4273 * linux-tile-low.c (the_low_target): Likewise.
4274 * linux-x86-low.c (the_low_target): Likewise.
4275 * linux-xtensa-low.c (the_low_target): Likewise.
4276
b79f7801
YZ
42772017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4278
4279 * win32-low.c: Include "common-inferior.h".
4280
bc3b087d
SDJ
42812017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4282
4283 * inferiors.c (set_inferior_cwd): New function.
4284 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4285 (handle_query): Inform that QSetWorkingDir is supported.
4286 * win32-low.c (create_process): Pass the inferior's cwd to
4287 CreateProcess.
4288
d092c5a2
SDJ
42892017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4290
4291 * inferiors.c (current_inferior_cwd): New global variable.
4292 (get_inferior_cwd): New function.
4293 * inferiors.h (struct process_info) <cwd>: New field.
4294
7da0a886
SDJ
42952017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4296
4297 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4298 (OBS): Add gdb_tilde_expand.o.
4299
289a6840
SM
43002017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4301
4302 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4303 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4304
256642e8
PA
43052017-09-29 Pedro Alves <palves@redhat.com>
4306
4307 * ax.c (gdb_parse_agent_expr): Constify.
4308 * ax.h (gdb_parse_agent_expr): Constify.
4309 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4310 Constify.
4311 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4312 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4313 * remote-utils.h (read_ptid): Constify.
4314 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4315 (process_point_options, process_serial_event): Constify.
4316 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4317 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4318 (cmd_qtbuffer): Constify.
4319
5b9ca4d4
PA
43202017-09-29 Pedro Alves <palves@redhat.com>
4321
4322 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4323 fails.
4324
94c207e0
PA
43252017-09-29 Pedro Alves <palves@redhat.com>
4326
4327 * linux-low.c (handle_extended_wait): Pass parent thread instead
4328 of process to thread_db_notice_clone.
4329 * linux-low.h (thread_db_notice_clone): Replace parent process
4330 parameter with parent thread parameter.
4331 * thread-db.c (find_one_thread): Add comment.
4332 (thread_db_notice_clone): Replace parent process parameter with
4333 parent thread parameter. Temporarily switch to the parent thread.
4334
75352e28
SDJ
43352017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4336
4337 * gdbthread.h: Include "common-gdbthread.h".
4338 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4339 "if" when validating the ptid.
4340 * remote-utils.c: Include "gdbthread.h".
4341 (prepare_resume_reply): Use "switch_to_thread".
4342 * target.c (done_accessing_memory): Likewise.
4343
ad339634
AA
43442017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4345
4346 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4347 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4348 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4349 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4350 s390x-gs-linux64-ipa.o to ipa_obj.
4351 * linux-s390-low.c (HWCAP_S390_GS): New define.
4352 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4353 New functions.
4354 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4355 (s390_arch_setup): Check for guarded-storage support and choose
4356 appropriate tdesc.
4357 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4358 init_registers_s390x_gs_linux64.
4359 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4360 enum value.
4361 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4362 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4363
cc4d742f
SM
43642017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4365
4366 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4367
f6327dcb
KB
43682017-09-21 Kevin Buettner <kevinb@redhat.com>
4369
4370 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4371 (thread_db_thread_handle): Declare.
4372 * linux-low.c (linux_target_ops): Initialize thread_handle.
4373 * server.c (handle_qxfer_threads_worker): Add support for
4374 "handle" attribute.
4375 * target.h (struct target_ops): Add new function pointer,
4376 thread_handle.
4377 (target_thread_handle): Define.
4378 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4379 field in lwp.
4380 (thread_db_thread_handle): New function.
4381
86299109
KB
43822017-09-21 Kevin Buettner <kevinb@redhat.com>
4383
4384 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4385 * linux-low.h (thread_db_notice_clone): Declare.
4386 * thread-db.c (thread_db_notice_clone): New function.
4387
f557a88a
PA
43882017-09-21 Pedro Alves <palves@redhat.com>
4389
4390 * server.c (gdb_read_memory, handle_status, process_serial_event)
4391 (handle_serial_event, handle_target_event): Adjust to
4392 set_desired_thread prototype change.
4393 * target.c (set_desired_thread): Remove 'use_general' parameter
4394 and adjust.
4395 * target.h (set_desired_thread): Remove 'use_general' parameter.
4396
223ffa71
TT
43972017-09-20 Tom Tromey <tom@tromey.com>
4398
4399 * target.c (target_terminal::terminal_state): Define.
4400 (target_terminal::init): Rename from target_terminal_init.
4401 (target_terminal::inferior): Rename from
4402 target_terminal_inferior.
4403 (target_terminal::ours): Rename from target_terminal_ours.
4404 (target_terminal::ours_for_output, target_terminal::info): New.
4405
04fd3ba9
SM
44062017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4407
4408 * server.c (accumulate_file_name_length): Remove.
4409 (emit_dll_description): Adjust to std::string change.
4410 (handle_qxfer_libraries): Use std::string to hold document.
4411
5e187554
SM
44122017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4413
4414 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4415 return type of xml_escape_text.
4416 * server.c (emit_dll_description): Likewise.
4417
1526853e
SM
44182017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4419
4420 * server.c (captured_main): Accept argument for --selftest.
4421 Update run_tests call.
4422 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4423 when registering selftests.
4424
c4dfafab
SDJ
44252017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4426
4427 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4428 instead of "VEC" for "target_desc.reg_defs".
4429 (regcache_cpy): Likewise.
4430 (registers_to_string): Likewise.
4431 (registers_from_string): Likewise.
4432 (find_regno): Likewise.
4433 (supply_regblock): Likewise.
4434 (regcache_raw_read_unsigned): Likewise.
4435 * tdesc.c (init_target_desc): Likewise.
4436 (tdesc_create_reg): Likewise.
4437 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4438 (struct target_desc) <reg_defs>: Convert to "std::vector".
4439 (target_desc): Do not initialize "reg_defs".
4440 (~target_desc): Update code to use "std::vector" instead of "VEC"
4441 for "target_desc.reg_defs".
4442 (operator==): Likewise.
4443
124aceb4
SM
44442017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4445
4446 * inferiors.h (thread_to_gdb_id): Remove.
4447 * inferiors.c (thread_to_gdb_id): Remove.
4448 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4449 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4450 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4451 Likewise.
4452 * nto-low.c (nto_fetch_registers, nto_store_registers,
4453 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4454
96cde54f
SM
44552017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4456
4457 * inferiors.h (gdb_id_to_thread_id): Remove.
4458 * inferiors.c (gdb_id_to_thread_id): Remove.
4459 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4460 removal. Move pid declaration closer to where it's used.
4461
e8ca139e
SM
44622017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4463
4464 * server.c (handle_detach): New function.
4465 (process_serial_event): Move code out, call handle_detach.
4466
f8a4e119
SM
44672017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4468
4469 * server.c (require_running): Rename to ...
4470 (require_running_or_return): ... this ...
4471 (require_running_or_break): ... and this.
4472 (handle_query, process_serial_event): Adjust.
4473
0eb0a407
SM
44742017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4475
4476 * linux-low.c (linux_set_resume_request): Remove unused
4477 variables.
4478
785922a5
SM
44792017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4480
4481 * server.c (first_thread_of): Remove.
4482 (process_serial_event): Replace usage of first_thread_of with
4483 find_any_thread_of_pid.
4484 * tracepoint.c (same_process_p): Remove.
4485 (gdb_agent_about_to_close): Replace usage of same_process_p with
4486 find_any_thread_of_pid.
4487 * linux-x86-low.c (same_process_callback): Remove.
4488 (x86_arch_setup_process_callback): Replace usage of
4489 same_process_callback with find_any_thread_of_pid.
4490 * thread-db.c (any_thread_of): Remove.
4491 (switch_to_process): Replace usage of any_thread_of with
4492 find_any_thread_of_pid.
4493 * inferiors.c (thread_pid_matches_callback): Remove.
4494 (find_thread_process): Adjust to use find_any_thread_of_pid.
4495
a059f00c
SDJ
44962017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4497
4498 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 4499 with "!VEC_empty".
a059f00c 4500
cc397f3a
SDJ
45012017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4502
4503 * linux-low.c (handle_extended_wait): Use
4504 "allocate_target_description" instead of "XNEW".
4505 * linux-x86-low.c (initialize_low_arch): Likewise.
4506
22916b07
YQ
45072017-09-05 Yao Qi <yao.qi@linaro.org>
4508
4509 * configure.srv (srv_i386_regobj): Remove.
4510 (srv_amd64_regobj): Remove.
4511 (srv_regobj): Set it to "" for x86 non-linux targets.
4512 * linux-x86-tdesc.c (i386_linux_read_description):
4513 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4514 (init_registers_i386): Remove the declaration.
4515 (tdesc_i386): Remove the declaration.
4516 (lynx_i386_arch_setup): Call i386_create_target_description.
4517 * nto-x86-low.c: Likewise.
4518 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4519 [!__x86_64__]: include arch/i386.h.
4520 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4521
38602d55
YQ
45222017-09-05 Yao Qi <yao.qi@linaro.org>
4523
4524 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4525 i386/amd64-XXX-linux from it.
4526
44b886ff
YQ
45272017-09-05 Yao Qi <yao.qi@linaro.org>
4528
4529 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4530 false.
4531 (ipa_amd64_linux_regobj): Remove.
4532 (ipa_x32_linux_regobj): Remove.
4533
b4570e4b
YQ
45342017-09-05 Yao Qi <yao.qi@linaro.org>
4535
4536 * Makefile.in (arch-amd64.o): New rule.
4537 * configure.srv: Append arch-amd64.o.
4538 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4539 (get_ipa_tdesc): Call amd64_linux_read_description.
4540 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4541 and init_registers_amd64_XXX.
4542 * linux-x86-low.c (x86_linux_read_description): Call
4543 amd64_linux_read_description.
4544 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4545 (initialize_low_arch): Don't call init_registers_x32_XXX and
4546 init_registers_amd64_XXX.
4547 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4548 and tdesc_amd64_XXX.
4549 [__x86_64__] (amd64_tdesc_test): New function.
4550 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4551 and init_registers_amd64_XXX.
4552 * linux-x86-tdesc.c: Include arch/amd64.h.
4553 (xcr0_to_tdesc_idx): New function.
4554 (i386_linux_read_description): New function.
4555 (amd64_get_ipa_tdesc_idx): New function.
4556 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4557 (amd64_get_ipa_tdesc): Declare.
4558
d1f28ea2
YQ
45592017-09-05 Yao Qi <yao.qi@linaro.org>
4560
4561 * configure.srv (srv_i386_linux_xmlfiles): Remove
4562 i386/i386-XXX-linux.xml from it.
4563
25a93583
YQ
45642017-09-05 Yao Qi <yao.qi@linaro.org>
4565
4566 * configure.srv: Set srv_i386_linux_regobj empty if $development
4567 is false.
4568 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4569 initialize_low_tdesc.
4570 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4571 with #if initialize_low_tdesc.
4572 * linux-x86-tdesc-selftest.c: New file.
4573 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4574
5f035c07
YQ
45752017-09-05 Yao Qi <yao.qi@linaro.org>
4576
4577 * Makefile.in (arch-i386.o): New rule.
4578 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4579 (x86_64-*-linux*): Likewise.
4580 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4581 include arch/i386.h.
4582 (i386_linux_read_description): Remove code and call
4583 i386_create_target_description.
4584 * tdesc.c (allocate_target_description): New function.
4585 * tdesc.h (set_tdesc_architecture): Remove declaration.
4586 (set_tdesc_osabi): Likewise.
4587
0abe8a89
YQ
45882017-09-05 Yao Qi <yao.qi@linaro.org>
4589
4590 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4591 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4592 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4593 .xmltarget.
4594 * server.c (get_features_xml): Call tdesc_get_features_xml.
4595 * tdesc.c (set_tdesc_architecture): New function.
4596 (set_tdesc_osabi): New function.
4597 (tdesc_get_features_xml): New function.
4598 (tdesc_create_feature): Add an argument.
4599 * tdesc.h (struct target_desc) <features>: New field.
4600 <arch, osabi>: New field.
4601 (~target_desc): xfree features, arch, and osabi.
4602 (target_desc::oerator==): Don't compare .xmltarget.
4603 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4604 (set_tdesc_osabi): Likewise.
4605 (tdesc_get_features_xml): Likewise.
4606
0a188386
YQ
46072017-09-05 Yao Qi <yao.qi@linaro.org>
4608
4609 * linux-x86-tdesc.c: Include selftest.h.
4610 (i386_tdesc_test): New function.
4611 (initialize_low_tdesc): Call selftests::register_test.
4612 * tdesc.h: Include regdef.h.
4613 (target_desc): Override operator == and !=.
4614
f49ff000
YQ
46152017-09-05 Yao Qi <yao.qi@linaro.org>
4616
4617 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4618 (ipa_obj): Likewise.
4619 * linux-i386-ipa.c: Include common/x86-xstate.h
4620 (get_ipa_tdesc): Call i386_linux_read_description.
4621 (initialize_low_tracepoint): Don't call init_registers_XXX
4622 functions, call initialize_low_tdesc instead.
4623 * linux-x86-low.c (x86_linux_read_description): Call
4624 i386_linux_read_description.
4625 (initialize_low_arch): Don't call init_registers_i386_XXX
4626 functions, call initialize_low_tdesc.
4627 * linux-x86-tdesc.c: New file.
4628 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4629 (i386_get_ipa_tdesc_idx): Declare.
4630 (i386_get_ipa_tdesc): Declare.
4631 (initialize_low_tdesc): Declare.
4632
2b68ef2f
YQ
46332017-09-05 Yao Qi <yao.qi@linaro.org>
4634
4635 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4636 instead of 0.
4637
f7000548
YQ
46382017-09-05 Yao Qi <yao.qi@linaro.org>
4639
4640 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4641 * regcache.c (get_thread_regcache): Use VEC_length.
4642 (init_register_cache): Likewise.
4643 (regcache_cpy): Likewise.
4644 (registers_to_string): Iterate reg_defs via VEC_iterate.
4645 (find_regno): Likewise.
4646 (find_register_by_number): Use VEC_index.
4647 (register_size): Call find_register_by_number.
4648 (register_data): Call find_register_by_number.
4649 (supply_regblock): Use VEC_length.
4650 (regcache_raw_read_unsigned): Likewise.
4651 * tdesc.c (init_target_desc): Iterate reg_defs via
4652 VEC_iterate.
4653 (default_description): Update initializer.
4654 (copy_target_description): Don't update field num_registers.
4655 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4656 <num_registers>: Remove.
4657
50a421ac
SM
46582017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4659
4660 * Makefile.in (.SECONDARY): Define target.
4661
23fdd69e
SM
46622017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4663
4664 * linux-low.c (linux_wait_1): Adjust.
4665 * server.c (queue_stop_reply_callback): Adjust.
4666
0a2dde4a
SDJ
46672017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4668
4669 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4670 QEnvironmentUnset and QEnvironmentReset packets.
4671 (handle_query): Inform remote that QEnvironmentHexEncoded,
4672 QEnvironmentUnset and QEnvironmentReset are supported.
4673
6afd337d
SM
46742017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4675
4676 * inferiors.h (inferior_target_data): Rename to ...
4677 (thread_target_data): ... this.
4678 (inferior_regcache_data): Rename to ...
4679 (thread_regcache_data): ... this.
4680 (set_inferior_regcache_data): Rename to ...
4681 (set_thread_regcache_data): ... this.
4682 * inferiors.c (inferior_target_data): Rename to ...
4683 (thread_target_data): ... this.
4684 (inferior_regcache_data): Rename to ...
4685 (thread_regcache_data): ... this.
4686 (set_inferior_regcache_data): Rename to ...
4687 (set_thread_regcache_data): ... this.
4688 (free_one_thread): Update.
4689 * linux-low.h (get_thread_lwp): Update.
4690 * regcache.c (get_thread_regcache): Update.
4691 (regcache_invalidate_thread): Update.
4692 (free_register_cache_thread): Update.
4693 * win32-i386-low.c (update_debug_registers_callback): Update.
4694 (win32_get_current_dr): Update.
4695 * win32-low.c (thread_rec): Update.
4696 (delete_thread_info): Update.
4697 (continue_one_thread): Update.
4698 (suspend_one_thread): Update.
4699
a160cc46
SM
47002017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4701
4702 * inferiors.c (set_inferior_target_data): Remove.
4703 * inferiors.h (set_inferior_target_data): Remove.
4704
6d580b63
YQ
47052017-08-18 Yao Qi <yao.qi@linaro.org>
4706
4707 * Makefile.in (OBS): Add selftest.o.
4708 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4709 * configure, config.in: Re-generated.
4710 * server.c: Include common/sefltest.h.
4711 (captured_main): Handle option --selftest.
4712
f5a29eb0
YQ
47132017-08-09 Yao Qi <yao.qi@linaro.org>
4714
4715 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4716 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4717 i386-avx-mpx.o and i386-mmx.o.
4718 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4719 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4720 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4721 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4722 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4723 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4724 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4725 i386/amd64-avx-mpx.xml.
4726
57757c2f
YQ
47272017-08-09 Yao Qi <yao.qi@linaro.org>
4728
4729 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4730 and x32-avx-avx512.o.
4731 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4732 i386/x32-avx-avx512.xml.
4733
229d26fc
SM
47342017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4735
4736 * tracepoint.h (enum class fast_tpoint_collect_result): New
4737 enumeration.
4738 (fast_tracepoint_collecting): Change return type to
4739 fast_tpoint_collect_result.
4740 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4741 * linux-low.h: Include tracepoint.h.
4742 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4743 fast_tpoint_collect_result.
4744 * linux-low.c (handle_tracepoints): Adjust.
4745 (linux_fast_tracepoint_collecting): Change return type to
4746 fast_tpoint_collect_result.
4747 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4748 linux_wait_1, stuck_in_jump_pad_callback,
4749 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4750 proceed_one_lwp): Adjust to type change.
4751
2e1e43e1
YQ
47522017-07-10 Yao Qi <yao.qi@linaro.org>
4753
4754 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4755
adc764e7
YQ
47562017-06-29 Yao Qi <yao.qi@linaro.org>
4757
4758 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4759 Remove.
4760 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4761
a206891a
SM
47622017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4763
4764 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4765
9a6c7d9c
SDJ
47662017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4767
4768 * linux-low.c (linux_create_inferior): Adjust code to access the
4769 environment information via 'gdb_environ' class.
4770 * lynx-low.c (lynx_create_inferior): Likewise.
4771 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4772 (get_environ): Return a pointer to 'our_environ'.
4773 (captured_main): Initialize 'our_environ'.
4774 * server.h (get_environ): Adjust prototype.
4775 * spu-low.c (spu_create_inferior): Adjust code to access the
4776 environment information via 'gdb_environ' class.
4777
ae3e2ccf
SM
47782017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4779
4780 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4781 usage of "register" keyword.
4782
3e019bdc
SM
47832017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4784
4785 * configure: Re-generate.
4786
8465943a
SM
47872017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4788
4789 * configure: Re-generate.
4790
cf0dd6f0
SM
47912017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4792
4793 * Makefile.in (COMPILE.pre): Add "-x c++".
4794
9845682b
SDJ
47952017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4796
4797 * fork-child.c: Conditionally include <signal.h>.
4798
aefd8b33
SDJ
47992017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4800
4801 * server.c (handle_general_set): Handle new packet
4802 "QStartupWithShell".
4803 (handle_query): Add "QStartupWithShell" to the list of supported
4804 packets.
4805 (gdbserver_usage): Add help text explaining the
4806 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4807 options.
4808 (captured_main): Recognize and act upon the presence of the new
4809 CLI options.
4810
2090129c
SDJ
48112017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4812 Pedro Alves <palves@redhat.com>
4813
4814 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4815 * configure: Regenerate.
4816 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4817 "fork-inferior.o".
4818 (i[34567]86-*-lynxos*): Likewise.
4819 (spu*-*-*): Likewise.
4820 * fork-child.c: New file.
4821 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4822 and "environ.h".
4823 (linux_ptrace_fun): New function.
4824 (linux_create_inferior): Adjust function prototype to reflect
4825 change on "target.h". Adjust function code to use
4826 "fork_inferior".
4827 (linux_request_interrupt): Delete "signal_pid".
4828 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4829 (lynx_ptrace_fun): New function.
4830 (lynx_create_inferior): Adjust function prototype to reflect
4831 change on "target.h". Adjust function code to use
4832 "fork_inferior".
4833 * nto-low.c (nto_create_inferior): Adjust function prototype and
4834 code to reflect change on "target.h". Update comments.
4835 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4836 "common-terminal.h" and "environ.h".
4837 (terminal_fd): Moved to fork-child.c.
4838 (old_foreground_pgrp): Likewise.
4839 (restore_old_foreground_pgrp): Likewise.
4840 (last_status): Make it global.
4841 (last_ptid): Likewise.
4842 (our_environ): New variable.
4843 (startup_with_shell): Likewise.
4844 (program_name): Likewise.
4845 (program_argv): Rename to...
4846 (program_args): ...this.
4847 (wrapper_argv): New variable.
4848 (start_inferior): Delete function.
4849 (get_exec_wrapper): New function.
4850 (get_exec_file): Likewise.
4851 (get_environ): Likewise.
4852 (prefork_hook): Likewise.
4853 (post_fork_inferior): Likewise.
4854 (postfork_hook): Likewise.
4855 (postfork_child_hook): Likewise.
4856 (handle_v_run): Update code to deal with arguments coming from the
4857 remote host. Update calls from "start_inferior" to
4858 "create_inferior".
4859 (captured_main): Likewise. Initialize environment variable. Call
4860 "have_job_control".
4861 * server.h (post_fork_inferior): New prototype.
4862 (get_environ): Likewise.
4863 (last_status): Declare.
4864 (last_ptid): Likewise.
4865 (signal_pid): Likewise.
4866 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4867 (spu_ptrace_fun): New function.
4868 (spu_create_inferior): Adjust function prototype to reflect change
4869 on "target.h". Adjust function code to use "fork_inferior".
4870 * target.c (target_terminal_init): New function.
4871 (target_terminal_inferior): Likewise.
4872 (target_terminal_ours): Likewise.
4873 * target.h: Include <vector>.
4874 (struct target_ops) <create_inferior>: Update prototype.
4875 (create_inferior): Update macro.
4876 * utils.c (gdb_flush_out_err): New function.
4877 * win32-low.c (win32_create_inferior): Adjust function prototype
4878 and code to reflect change on "target.h".
4879
043a4934
SDJ
48802017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4881
4882 * inferiors.c (switch_to_thread): New function.
4883
15652511
SDJ
48842017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4885
4886 * Makefile.in (SFILE): Add "common/job-control.c".
4887 (OBS): Add "job-control.o".
4888
21ea5acd
SDJ
48892017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4890
4891 * Makefile: Remove "@host_makefile_frag@".
4892
e13cb306
PA
48932017-05-05 Pedro Alves <palves@redhat.com>
4894
4895 * configure: Regenerate.
4896
c94fee56
SDJ
48972017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4898
4899 * configure: Regenerate.
4900
a0ff9e1a
SM
49012017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4902
4903 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4904 software_single_step change of return type to
4905 std::vector<CORE_ADDR>.
4906 * linux-low.c (install_software_single_step_breakpoints):
4907 Likewise.
4908 * linux-low.h (install_software_single_step_breakpoints):
4909 Likewise.
4910
be628ab8
SDJ
49112017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4912
4913 * remote-utils.c: Include "gdb_termios.h" instead of
4914 "terminal.h".
4915 * terminal.h: Delete file.
4916
7c5ded6a
SDJ
49172017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4918
4919 * server.c: Include <vector>.
4920 <program_argv, wrapper_argv>: Convert to std::vector.
4921 (start_inferior): Rewrite function to use C++.
4922 (handle_v_run): Likewise. Update code that calculates the argv
4923 based on the vRun packet; use C++.
4924 (captured_main): Likewise.
4925
436252de
SM
49262017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4927
4928 * server.c (handle_v_cont): Initialize thread_resume::thread
4929 with null_ptid.
4930
9bf2a700
PA
49312017-04-05 Pedro Alves <palves@redhat.com>
4932
4933 * configure: Regenerate.
4934
a121b7c1
PA
49352017-04-05 Pedro Alves <palves@redhat.com>
4936
4937 * gdbreplay.c (sync_error): Constify.
4938 * linux-x86-low.c (push_opcode): Constify.
4939
21c8a587
PA
49402017-04-05 Pedro Alves <palves@redhat.com>
4941
4942 * win32-low.c (get_child_debug_event)
4943 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4944 Report TARGET_WAITKIND_SPURIOUS instead.
4945
fb32b4f7
PA
49462017-04-05 Pedro Alves <palves@redhat.com>
4947
e79be6e5
SM
4948 * remote-utils.c (remote_prepare, remote_open): Constify.
4949 * remote-utils.h (remote_prepare, remote_open): Constify.
4950 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 4951
65dd1e59
SM
49522017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4953
4954 * Makefile.in (clean): Clear .deps.
4955
8fa5b777
SM
49562017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4957
4958 * .gitignore: Remove generated files, replace with wildcard.
4959 * (clean): Replace removal of generated files with wildcard.
4960 (version.c): Replace with...
4961 (version-generated.c): ...this.
4962 (xml-builtin.c): Replace with...
4963 (xml-builtin-generated.c): ...this.
4964 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4965 (%.c: *regformats*): Replace with...
4966 (%-generated.c: *regformats*): ...this.
4967
a12e714b
MF
49682017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4969
4970 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4971 (xtensa_fill_gregset): Call collect_register_by_name for
4972 threadptr register.
4973 (xtensa_store_gregset): Call supply_register_by_name for
4974 threadptr register.
4975
1a09b50a
MF
49762017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4977
4978 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
4979 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
4980 (xtensa_store_gregset): Call supply_register for all registers in
4981 a0_regnum..a0_regnum + C0_NREGS range.
4982
1a01e7c6
SM
49832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4984
4985 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4986 (ax-ipa.o: ax.c): Remove.
4987 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4988 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4989 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4990 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4991 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4992
36bc18a8
SM
49932017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4994
4995 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4996 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4997 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4998 (errors-ipa.o: ../common/errors.c): Remove.
4999 (format-ipa.o: ../common/format.c): Remove.
5000 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5001
a8ebe3d5
SM
50022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5003
5004 * Makefile.in (%-ipa.o: %.c): New rule.
5005 (tracepoint-ipa.o: tracepoint.c): Remove.
5006 (utils-ipa.o: utils.c): Remove.
5007 (remote-utils-ipa.o: remote-utils.c): Remove.
5008 (regcache-ipa.o: regcache.c): Remove.
5009 (i386-linux-ipa.o: i386-linux.c): Remove.
5010 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5011 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5012 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5013 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5014 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5015 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5016 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5017 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5018 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5019 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5020 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5021 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5022 (aarch64-ipa.o: aarch64.c): Remove.
5023 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5024 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5025 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5026 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5027 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5028 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5029 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5030 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5031 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5032 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5033 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5034 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5035 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5036 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5037 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5038 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5039 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5040 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5041 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5042 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5043 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5044 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5045 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5046 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5047 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5048 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5049 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5050 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5051 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5052 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5053 (tdesc-ipa.o: tdesc.c): Remove.
5054 (x32-linux-ipa.o: x32-linux.c): Remove.
5055 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5056 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5057
50cfacb7
SM
50582017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5059
5060 * Makefile.in (%.o: ../arch/%.c): New rule.
5061 (arm.o: ../arch/arm.c): Remove.
5062 (arm-linux.o: ../arch/arm-linux.c): Remove.
5063 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5064 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5065
c5a22423
SM
50662017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5067
5068 * Makefile.in (%.o: ../nat/%.c): New rule.
5069 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5070 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5071 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5072 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5073 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5074 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5075 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5076 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5077 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5078 (linux-personality.o: ../nat/linux-personality.c): Remove.
5079 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5080 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5081 (x86-linux.o: ../nat/x86-linux.c): Remove.
5082 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5083 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5084
6bda016b
SM
50852017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5086
5087 * Makefile.in (%.o: ../common/%.c): New rule.
5088 (signals.o: ../common/signals.c): Remove.
5089 (print-utils.o: ../common/print-utils.c): Remove.
5090 (rsp-low.o: ../common/rsp-low.c): Remove.
5091 (common-utils.o: ../common/common-utils.c): Remove.
5092 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5093 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5094 (vec.o: ../common/vec.c): Remove.
5095 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5096 (xml-utils.o: ../common/xml-utils.c): Remove.
5097 (ptid.o: ../common/ptid.c): Remove.
5098 (buffer.o: ../common/buffer.c): Remove.
5099 (format.o: ../common/format.c): Remove.
5100 (filestuff.o: ../common/filestuff.c): Remove.
5101 (agent.o: ../common/agent.c): Remove.
5102 (errors.o: ../common/errors.c): Remove.
5103 (environ.o: ../common/environ.c): Remove.
5104 (common-debug.o: ../common/common-debug.c): Remove.
5105 (cleanups.o: ../common/cleanups.c): Remove.
5106 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5107 (fileio.o: ../common/fileio.c): Remove.
5108 (common-regcache.o: ../common/common-regcache.c): Remove.
5109 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5110 (new-op.o: ../common/new-op.c): Remove.
5111 (btrace-common.o: ../common/btrace-common.c): Remove.
5112
21122961
SM
51132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5114
5115 * Makefile.in (%.o: ../target/%.c): New rule.
5116 (waitstatus.o: ../target/waitstatus.c): Remove.
5117
c362e621
SM
51182017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5119
5120 * Makefile.in
5121 (%.c: ../regformats/%.dat,
5122 (%.c: ../regformats/arm/%.dat,
5123 (%.c: ../regformats/i386/%.dat,
5124 (%.c: ../regformats/rs6000/%.dat): New rules.
5125 (aarch64.c): Remove.
5126 (reg-arm.c): Remove.
5127 (arm-with-iwmmxt.c): Remove.
5128 (arm-with-vfpv2.c): Remove.
5129 (arm-with-vfpv3.c): Remove.
5130 (arm-with-neon.c): Remove.
5131 (reg-bfin.c): Remove.
5132 (reg-cris.c): Remove.
5133 (reg-crisv32.c): Remove.
5134 (i386.c): Remove.
5135 (i386-linux.c): Remove.
5136 (i386-avx.c): Remove.
5137 (i386-avx-linux.c): Remove.
5138 (i386-avx-avx512.c): Remove.
5139 (i386-avx-avx512-linux.c): Remove.
5140 (i386-mpx.c): Remove.
5141 (i386-mpx-linux.c): Remove.
5142 (i386-avx-mpx-avx512-pku.c): Remove.
5143 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5144 (i386-avx-mpx.c): Remove.
5145 (i386-avx-mpx-linux.c): Remove.
5146 (i386-mmx.c): Remove.
5147 (i386-mmx-linux.c): Remove.
5148 (reg-ia64.c): Remove.
5149 (reg-m32r.c): Remove.
5150 (reg-m68k.c): Remove.
5151 (reg-cf.c): Remove.
5152 (mips-linux.c): Remove.
5153 (mips-dsp-linux.c): Remove.
5154 (mips64-linux.c): Remove.
5155 (mips64-dsp-linux.c): Remove.
5156 (nios2-linux.c): Remove.
5157 (powerpc-32.c): Remove.
5158 (powerpc-32l.c): Remove.
5159 (powerpc-altivec32l.c): Remove.
5160 (powerpc-cell32l.c): Remove.
5161 (powerpc-vsx32l.c): Remove.
5162 (powerpc-isa205-32l.c): Remove.
5163 (powerpc-isa205-altivec32l.c): Remove.
5164 (powerpc-isa205-vsx32l.c): Remove.
5165 (powerpc-e500l.c): Remove.
5166 (powerpc-64l.c): Remove.
5167 (powerpc-altivec64l.c): Remove.
5168 (powerpc-cell64l.c): Remove.
5169 (powerpc-vsx64l.c): Remove.
5170 (powerpc-isa205-64l.c): Remove.
5171 (powerpc-isa205-altivec64l.c): Remove.
5172 (powerpc-isa205-vsx64l.c): Remove.
5173 (s390-linux32.c): Remove.
5174 (s390-linux32v1.c): Remove.
5175 (s390-linux32v2.c): Remove.
5176 (s390-linux64.c): Remove.
5177 (s390-linux64v1.c): Remove.
5178 (s390-linux64v2.c): Remove.
5179 (s390-te-linux64.c): Remove.
5180 (s390-vx-linux64.c): Remove.
5181 (s390-tevx-linux64.c): Remove.
5182 (s390x-linux64.c): Remove.
5183 (s390x-linux64v1.c): Remove.
5184 (s390x-linux64v2.c): Remove.
5185 (s390x-te-linux64.c): Remove.
5186 (s390x-vx-linux64.c): Remove.
5187 (s390x-tevx-linux64.c): Remove.
5188 (tic6x-c64xp-linux.c): Remove.
5189 (tic6x-c64x-linux.c): Remove.
5190 (tic6x-c62x-linux.c): Remove.
5191 (reg-sh.c): Remove.
5192 (reg-sparc64.c): Remove.
5193 (reg-spu.c): Remove.
5194 (amd64.c): Remove.
5195 (amd64-linux.c): Remove.
5196 (amd64-avx.c): Remove.
5197 (amd64-avx-linux.c): Remove.
5198 (amd64-avx-avx512.c): Remove.
5199 (amd64-avx-avx512-linux.c): Remove.
5200 (amd64-mpx.c): Remove.
5201 (amd64-mpx-linux.c): Remove.
5202 (amd64-avx-mpx-avx512-pku.c): Remove.
5203 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5204 (amd64-avx-mpx.c): Remove.
5205 (amd64-avx-mpx-linux.c): Remove.
5206 (x32.c): Remove.
5207 (x32-linux.c): Remove.
5208 (x32-avx.c): Remove.
5209 (x32-avx-linux.c): Remove.
5210 (x32-avx-avx512.c): Remove.
5211 (x32-avx-avx512-linux.c): Remove.
5212 (reg-xtensa.c): Remove.
5213 (reg-tilegx.c): Remove.
5214 (reg-tilegx32.c): Remove.
5215
1672e0d9
SDJ
52162017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5217
5218 * Makefile.in (SFILES): Add "common/environ.c".
5219 (OBJS): Add "common/environ.h".
5220
239b6d10
WT
52212017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5222
5223 * configure.ac: Check if the fs_base and gs_base members of
5224 `struct user_regs_struct' exist.
5225 * config.in: Regenerated.
5226 * configure: Likewise.
5227
694b382c
AT
52282017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5229
5230 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5231 target_read_memory.
5232 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5233 (get_next_pcs_syscall_next_pc): Likewise.
5234
7dc53023
LM
52352016-12-23 Luis Machado <lgustavo@codesourcery.com>
5236
5237 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5238 * nto-x86-low.c: Likewise.
5239
ad02e4fe
SM
52402016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5241
5242 * Makefile.in: Include disable-implicit-rules.mk.
5243
dcb07cfa
PA
52442016-11-23 Pedro Alves <palves@redhat.com>
5245
5246 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5247 (debug_vprintf): Use std::chrono::steady_clock instead of
5248 gettimeofday. Use '.' instead of ':'.
5249 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5250 (get_timestamp): Use std::chrono::steady_clock instead of
5251 gettimeofday.
5252
8629c02c
SM
52532016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5254
5255 * Makefile.in: Fix whitespace formatting.
5256
b593ecca
SM
52572016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5258
5259 * Makefile.in (SFILES, OBS): Flatten list and order
5260 alphabetically.
5261
9986ba08
PA
52622016-11-23 Pedro Alves <palves@redhat.com>
5263
5264 * event-loop.c (handle_file_event): Use warning.
5265 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5266 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5267 Use warning.
5268
4eefa7bc
PA
52692016-11-23 Pedro Alves <palves@redhat.com>
5270
5271 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5272 output.
5273 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5274 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5275 debug_printf and debug_flush for debug output.
5276 * server.c (handle_general_set): Likewise.
5277 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5278 output.
5279
5443506e
SM
52802016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5281
5282 * Makefile.in (.c.o): Replace rule with ...
5283 (%.o: %.c): ... this one.
5284
3b165252
SM
52852016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5286
5287 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5288 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5289 make.
5290 * configure.ac: Remove checks for the make program.
5291 * configure: Re-generate.
5292
0bcda685
PA
52932016-10-28 Pedro Alves <palves@redhat.com>
5294
5295 * Makefile.in (CXX_DIALECT): Get from configure.
5296 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5297 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5298 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5299 * config.in: Regenerate.
5300 * configure: Regenerate.
5301
c3805894
YQ
53022016-10-27 Yao Qi <yao.qi@linaro.org>
5303
5304 * linux-low.c (linux_supports_range_stepping): Return true if
5305 can_software_single_step return true.
5306
89342618
YQ
53072016-10-27 Yao Qi <yao.qi@linaro.org>
5308
5309 * inferiors.c (find_inferior_in_random): New function.
5310 * inferiors.h (find_inferior_in_random): Declare.
5311 * linux-low.c (linux_wait_for_event_filtered): Call
5312 find_inferior_in_random instead of find_inferior.
5313
e3652c84
YQ
53142016-10-27 Yao Qi <yao.qi@linaro.org>
5315
5316 * linux-low.c (linux_wait_1): If single-step breakpoints are
5317 inserted, remove them.
5318
5a04c4cf
PA
53192016-10-26 Pedro Alves <palves@redhat.com>
5320
5321 * linux-low.c (handle_extended_wait): Link parent/child fork
5322 threads.
5323 (linux_wait_1): Unlink them.
5324 (linux_set_resume_request): Ignore resume requests for
5325 already-resumed and unhandled fork child threads.
5326 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5327 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5328 New functions.
5329 (handle_v_requests) <vCont>: Don't call require_running.
5330 * server.h (in_queued_stop_replies): New declaration.
5331
cb93dc7f
YQ
53322016-10-24 Yao Qi <yao.qi@linaro.org>
5333
5334 PR server/20733
5335 * linux-aarch64-low.c (append_insns): Cast the return value to
5336 'uint32_t *'.
5337
a1078bea
YQ
53382016-10-10 Yao Qi <yao.qi@linaro.org>
5339
5340 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5341
1fb77080
SDJ
53422016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5343
5344 * target.c (target_supports_multi_process): New function, moved
5345 from...
5346 * target.h (target_supports_multi_process): ... here. Remove
5347 macro.
5348
39b5a3b9
TT
53492016-10-05 Tom Tromey <tom@tromey.com>
5350
5351 PR remote/20655:
5352 * tracepoint.c (handle_tracepoint_bkpts): Check
5353 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5354
c1d0b70a
YQ
53552016-10-05 Yao Qi <yao.qi@linaro.org>
5356
5357 * configure.srv: Update the path of arm-*.xml files.
5358
0a69eedb
YQ
53592016-10-05 Terry Guo <terry.guo@arm.com>
5360 Yao Qi <yao.qi@linaro.org>
5361
5362 * Makefile.in: Adjust the path of rules.
5363 * configure.srv: Update the path of xml files.
5364 * regformats/arm-with-iwmmxt.dat: Regenerated.
5365 * regformats/arm-with-neon.dat: Likewise.
5366 * regformats/arm-with-vfpv2.dat: Likewise.
5367 * regformats/arm-with-vfpv3.dat Likewise.
5368
17e16485
YQ
53692016-09-30 Yao Qi <yao.qi@linaro.org>
5370
5371 PR gdbserver/20627
5372 * target.c (target_stop_and_wait): Don't call
5373 target_continue_no_signal, use resume_stop instead.
5374
edeeb602
YQ
53752016-09-26 Yao Qi <yao.qi@linaro.org>
5376
5377 * linux-low.c (linux_wait_1): Call debug_exit.
5378
503b1c39
PA
53792016-09-23 Pedro Alves <palves@redhat.com>
5380
5381 * Makefile.in (SFILES): Add common/new-op.c.
5382 (OBS): Add common/new-op.o.
5383 (new-op.o): New rule.
5384
74172ecf
SM
53852016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5386
5387 * .gitinore: Ignore more files.
5388
fc6cda2e
YQ
53892016-09-21 Yao Qi <yao.qi@linaro.org>
5390
5391 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5392 23.
5393
bc1e6c81
SDJ
53942016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5395
5396 * server.c (start_inferior): Call target_mourn_inferior instead of
5397 mourn_inferior; pass ptid_t argument to it.
5398 (resume): Likewise.
5399 (handle_target_event): Likewise.
5400 * target.c (target_mourn_inferior): New function.
5401 * target.h (mourn_inferior): Delete macro.
5402
0e00e962
AA
54032016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5404
5405 * linux-low.c (lwp_is_stepping): New function.
5406
1d8cb77d
CL
54072016-09-06 Carl Love <cel@us.ibm.com>
5408
5409 * server.c (start_inferior): Fixed comment, requested comment change
5410 didn't get updated correctly. Removed reference to ptrace () call as
5411 it is only true on Linux systems.
5412
7313bced
CL
54132016-09-06 Carl Love <cel@us.ibm.com>
5414
5415 * server.c (start_inferior): Do not call
5416 function target_post_create_inferior () if the
5417 inferior process has already exited.
5418
cf6de44d
PA
54192016-09-05 Pedro Alves <palves@redhat.com>
5420
5421 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5422 (COMPILE.pre, CC_LD): Use CXX directly.
5423 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5424 * acinclude.m4: Don't include build-with-cxx.m4.
5425 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5426 * configure: Regenerate.
5427
c1da6748
AT
54282016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5429
5430 PR gdb/19495
5431 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5432 call writing data to own_buf.
5433
f2b9e3df
SDJ
54342016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5435
5436 * target.c (mywait): Call target_wait instead of
5437 the_target->wait.
5438 (target_wait): New function.
5439
049a8570
SDJ
54402016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5441
5442 * server.c (start_inferior): New variable 'ptid'. Replace calls
5443 to the_target->resume by target_continue{,_no_signal}, depending
5444 on the case.
5445 * target.c (target_stop_and_wait): Call target_continue_no_signal
5446 instead of the_target->resume.
5447 (target_continue): New function.
5448
3aa5cfa0
AT
54492016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5450
5451 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5452
754653a7
AZ
54532016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5454
5455 PR server/20491
5456 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5457 ps_prochandle.
5458 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5459 * linux-arm-low.c (ps_get_thread_area): Likewise.
5460 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5461 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5462 * linux-mips-low.c (ps_get_thread_area): Likewise.
5463 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5464 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5465 * linux-x86-low.c (ps_get_thread_area): Likewise.
5466 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5467
ed036b40
PA
54682016-08-19 Pedro Alves <palves@redhat.com>
5469
5470 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5471
c8ef42ee
PA
54722016-08-19 Pedro Alves <palves@redhat.com>
5473
5474 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5475 comment. Use memcpy instead of casting through unsigned long.
5476
9c235a72
PA
54772016-08-19 Pedro Alves <palves@redhat.com>
5478
5479 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5480 allocating around 0x80000000.
5481
201506da
PA
54822016-08-19 Pedro Alves <palves@redhat.com>
5483
5484 PR gdb/20415
5485 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5486 (x32-avx512-linux-ipa.o): New rules.
5487 * configure.ac (x86_64-*-linux*): New x32 check.
5488 * configure.srv (ipa_x32_linux_regobj): New.
5489 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5490 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5491 descriptions.
5492 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5493 descriptions.
5494 * configure: Regenerate.
5495
f348d89a
PA
54962016-08-09 Pedro Alves <palves@redhat.com>
5497
5498 PR gdb/18653
5499 * Makefile.in (OBS): Add signals-state-save-restore.o.
5500 (signals-state-save-restore.o): New rule.
5501 * config.in: Regenerate.
5502 * configure: Regenerate.
5503 * linux-low.c: Include "signals-state-save-restore.h".
5504 (linux_create_inferior): Call
5505 restore_original_signals_state.
5506 * server.c: Include "dispositions-save-restore.h".
5507 (captured_main): Call save_original_signals_state.
5508
1baf5149
PA
55092016-08-05 Pedro Alves <palves@redhat.com>
5510
5511 * configure: Regenerate.
5512
fcd4a73d
YQ
55132016-08-04 Yao Qi <yao.qi@linaro.org>
5514
5515 * linux-low.c (regsets_fetch_inferior_registers): Check
5516 errno is ESRCH or not.
5517
979659d0
YQ
55182016-08-02 Yao Qi <yao.qi@linaro.org>
5519
5520 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5521 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5522 (thread_db_load_search): Update.
5523 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5524 td_ta_set_event and td_ta_event_getmsg.
5525
6598661d
PA
55262016-07-26 Pedro Alves <palves@redhat.com>
5527
5528 PR server/20414
5529 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5530 of unsigned long for 64-bit registers and use uint32_t instead of
5531 unsigned int for 32-bit registers.
5532
9cf12d57
PA
55332016-07-26 Pedro Alves <palves@redhat.com>
5534
5535 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5536 to 'ptrace'.
5537
305450ed
TT
55382016-07-21 Tom Tromey <tom@tromey.com>
5539
5540 * configure: Rebuild.
5541
2583da7c
YQ
55422016-07-21 Yao Qi <yao.qi@linaro.org>
5543
5544 * mem-break.c (find_gdb_breakpoint): Cast bp to
5545 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5546
21536b36
YQ
55472016-07-21 Yao Qi <yao.qi@linaro.org>
5548
5549 * server.c (handle_v_requests): Support s and S actions
5550 if target_supports_software_single_step return true.
5551
8901d193
YQ
55522016-07-21 Yao Qi <yao.qi@linaro.org>
5553
5554 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5555 is resume_step, call maybe_hw_step.
5556 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5557 and unstop them.
5558 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5559 breakpoints or not.
5560 (proceed_one_lwp): If resume request is resume_step, install
5561 reinsert breakpoints and call maybe_hw_step.
5562
0e9a339e
YQ
55632016-07-21 Yao Qi <yao.qi@linaro.org>
5564
5565 * linux-low.c (proceed_one_lwp): Declare.
5566 (linux_resume_one_thread): Remove local variable 'step'.
5567 Lift code enqueue signal. Call proceed_one_lwp instead of
5568 linux_resume_one_lwp.
5569
4281b351
YQ
55702016-07-21 Yao Qi <yao.qi@linaro.org>
5571
5572 * linux-low.c (linux_resume_one_thread): Call
5573 enqueue_pending_signal.
5574
984a2c04
YQ
55752016-07-21 Yao Qi <yao.qi@linaro.org>
5576
5577 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5578 * inferiors.c (do_restore_current_thread_cleanup): New function.
5579 (make_cleanup_restore_current_thread): Likewise.
5580 * linux-low.c (install_software_single_step_breakpoints): Call
5581 make_cleanup_restore_current_thread. Switch current_thread to
5582 thread.
5583
bec903c9
YQ
55842016-07-21 Yao Qi <yao.qi@linaro.org>
5585
5586 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5587 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5588 (clone_one_breakpoint): Likewise.
5589 (delete_reinsert_breakpoints): Change parameter to thread.
5590 Callers updated.
5591 (has_reinsert_breakpoints): Likewise.
5592 (uninsert_reinsert_breakpoints): Likewise.
5593 (reinsert_reinsert_breakpoints): Likewise.
5594 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5595 (delete_reinsert_breakpoints): Likewise.
5596 (reinsert_reinsert_breakpoints): Likewise.
5597 (uninsert_reinsert_breakpoints): Likewise.
5598 (has_reinsert_breakpoints): Likewise.
5599
63c40ec7
YQ
56002016-07-21 Yao Qi <yao.qi@linaro.org>
5601
5602 * inferiors.c (get_thread_process): Make parameter const.
5603 * inferiors.h (get_thread_process): Update declaration.
5604 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5605 Add new parameters child_thread and parent_thread. Callers
5606 updated.
5607 * mem-break.h (clone_all_breakpoints): Update declaration.
5608
9aa76cd0
YQ
56092016-07-21 Yao Qi <yao.qi@linaro.org>
5610
5611 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5612 <command_list, handler>: Remove.
5613 (struct gdb_breakpoint): New.
5614 (struct other_breakpoint): New.
5615 (struct reinsert_breakpoint): New.
5616 (is_gdb_breakpoint): New function.
5617 (any_persistent_commands): Update command_list if
5618 is_gdb_breakpoint returns true.
5619 (set_breakpoint): Create breakpoints according to their types.
5620 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5621 (set_gdb_breakpoint_1): Likewise.
5622 (set_gdb_breakpoint): Likewise.
5623 (clear_breakpoint_conditions): Change parameter type to
5624 'struct gdb_breakpoint *'.
5625 (clear_breakpoint_commands): Likewise.
5626 (clear_breakpoint_conditions_and_commands): Likewise.
5627 (add_condition_to_breakpoint): Likewise.
5628 (add_breakpoint_condition): Likewise.
5629 (add_commands_to_breakpoint): Likewise.
5630 (check_breakpoints): Check other_breakpoint.
5631 (clone_one_breakpoint): Clone breakpopint according to its type.
5632 * mem-break.h (struct gdb_breakpoint): Declare.
5633 (set_gdb_breakpoint): Update declaration.
5634 (clear_breakpoint_conditions_and_commands): Likewise.
5635 (add_breakpoint_condition): Likewise.
5636 (add_breakpoint_commands): Likewise.
5637 * server.c (process_point_options): Change parameter type to
5638 'struct gdb_breakpoint *'.
5639
811f8301
YQ
56402016-07-21 Yao Qi <yao.qi@linaro.org>
5641
5642 * mem-break.c (set_breakpoint_at): Rename it to ...
5643 (set_breakpoint_type_at): ... it.
5644 (set_breakpoint_at): Call set_breakpoint_type_at.
5645 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5646 * mem-break.h (set_breakpoint_at): Update comments.
5647
b1c51e36
CLT
56482016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5649
5650 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5651 to buf parameter.
5652 (nios2_store_gregset): Likewise.
5653
ced2dffb
PA
56542016-07-01 Pedro Alves <palves@redhat.com>
5655 Antoine Tremblay <antoine.tremblay@ericsson.com>
5656
5657 * linux-low.c: Change interface to take the target lwp_info
5658 pointer directly and return void. Handle detaching from a zombie
5659 thread.
5660 (linux_detach_lwp_callback): New function.
5661 (linux_detach): Detach from the leader thread after detaching from
5662 the clone threads.
5663
2ac09a5b
YQ
56642016-06-28 Yao Qi <yao.qi@linaro.org>
5665
5666 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5667 for variable new_offset.
5668 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5669 (aarch64_ftrace_insn_reloc_cb): Likewise.
5670 (aarch64_ftrace_insn_reloc_tb): Likewise.
5671 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5672 PRIx64 instead of PRIx32.
5673
79e7fd4f
YQ
56742016-06-28 Yao Qi <yao.qi@linaro.org>
5675
5676 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5677 (the_low_target): Install arm_get_syscall_trapinfo.
5678
061fc021
YQ
56792016-06-28 Yao Qi <yao.qi@linaro.org>
5680
5681 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5682 function.
5683 (the_low_target): Install aarch64_get_syscall_trapinfo.
5684
4cc32bec
YQ
56852016-06-28 Yao Qi <yao.qi@linaro.org>
5686
5687 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5688 Callers updated.
5689 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5690 Remove parameter sysno.
5691 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5692 sysret.
5693
782c1122
AA
56942016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5695
5696 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5697 (s390_emit_ne_goto): Likewise.
5698 (s390_emit_lt_goto): Likewise.
5699 (s390_emit_le_goto): Likewise.
5700 (s390_emit_gt_goto): Likewise.
5701 (s390_emit_ge_goto): Likewise.
5702 (s390x_emit_eq_goto): Likewise.
5703 (s390x_emit_ne_goto): Likewise.
5704 (s390x_emit_lt_goto): Likewise.
5705 (s390x_emit_le_goto): Likewise.
5706 (s390x_emit_gt_goto): Likewise.
5707 (s390x_emit_ge_goto): Likewise.
5708 (s390_emit_ops_impl): Mark variable static.
5709 (s390x_emit_ops): Likewise.
5710
2e7b624b
YQ
57112016-06-17 Yao Qi <yao.qi@linaro.org>
5712
5713 * linux-low.c (handle_extended_wait): Call
5714 uninsert_reinsert_breakpoints for the parent process. Remove
5715 reinsert breakpoints from the child process. Reinsert them to
5716 the parent process when vfork is done.
5717 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5718 (reinsert_reinsert_breakpoints): New function.
5719 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5720 (reinsert_reinsert_breakpoints): Declare.
5721
8a81c5d7
YQ
57222016-06-17 Yao Qi <yao.qi@linaro.org>
5723
5724 * linux-low.c (handle_extended_wait): If the parent is doing
5725 step-over, remove the reinsert breakpoints from the forked child.
5726
f50bf8e5
YQ
57272016-06-17 Yao Qi <yao.qi@linaro.org>
5728
5729 * linux-low.c (unsuspend_all_lwps): Declare.
5730 (linux_low_filter_event): If thread exited, call finish_step_over.
5731 If step-over is finished, unsuspend other threads.
5732
8376a3cb
YQ
57332016-06-17 Yao Qi <yao.qi@linaro.org>
5734
5735 * linux-low.c (linux_resume_one_lwp_throw): Assert
5736 has_reinsert_breakpoints returns false.
5737 * mem-break.c (delete_disabled_breakpoints): Assert
5738 bp type isn't reinsert_breakpoint.
5739
f79b145d
YQ
57402016-06-17 Yao Qi <yao.qi@linaro.org>
5741
5742 * linux-low.c (maybe_hw_step): New function.
5743 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5744 (finish_step_over): Switch current_thread to lwp temporarily,
5745 and assert has_reinsert_breakpoints returns true.
5746 (proceed_one_lwp): Call maybe_hw_step.
5747 * mem-break.c (has_reinsert_breakpoints): New function.
5748 * mem-break.h (has_reinsert_breakpoints): Declare.
5749
0ae534d2
JT
57502016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5751
5752 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5753
fcdad592
YQ
57542016-05-17 Yao Qi <yao.qi@linaro.org>
5755
5756 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5757 instead of find_inferior.
5758
9e784964
YQ
57592016-05-05 Yao Qi <yao.qi@linaro.org>
5760
5761 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5762 Initialize res to zero.
5763
cf2ebb6e
YQ
57642016-05-05 Yao Qi <yao.qi@linaro.org>
5765
5766 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5767 to uint32_t.
5768
c1aebf87
UW
57692016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5770
5771 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5772 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5773 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5774
35fd2deb 57752016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 5776 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
5777
5778 * tracepoint.c (write_inferior_int8): New function.
5779 (cmd_qtenable_disable): Write enable flag using
5780 write_inferior_int8.
5781
484b3c32
YQ
57822016-04-25 Yao Qi <yao.qi@linaro.org>
5783
5784 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5785 (need_step_over_p): Return zero if the LWP has pending signals
5786 can be delivered on software single step target.
5787
85ba7d86
YQ
57882016-04-25 Yao Qi <yao.qi@linaro.org>
5789
5790 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5791 return instead of error.
5792
3539aa13
YQ
57932016-04-22 Yao Qi <yao.qi@linaro.org>
5794
5795 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5796 to 23.
5797
5b061e98
YQ
57982016-04-22 Yao Qi <yao.qi@linaro.org>
5799
5800 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5801 signal when stepping over breakpoint with software single
5802 step.
5803
3451269c
PA
58042016-04-21 Pedro Alves <palves@redhat.com>
5805
5806 * linux-s390-low.c (s390_collect_ptrace_register)
5807 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5808 add casts.
5809 (s390_check_regset): Use void * instead of gdb_byte *.
5810
a2358508
PA
58112016-04-20 Pedro Alves <palves@redhat.com>
5812
5813 * configure: Renegerate.
5814
6885166d
YQ
58152016-04-20 Yao Qi <yao.qi@linaro.org>
5816
5817 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5818 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5819 number 16.
5820 (arm_store_gregset): Likewise.
5821
2b863f51
WT
58222016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5823
5824 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5825 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5826 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5827 (amd64-avx-mpx-linux.c): New rules.
5828 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5829 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5830 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5831 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5832 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5833 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5834 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5835 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5836 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5837 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5838 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5839 * linux-x86-low.c (x86_linux_read_description): Add case for
5840 X86_XSTATE_AVX_MPX_MASK.
5841 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5842 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5843 init_registers_i386_avx_mpx_linux.
5844 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5845 (initialize_low_tracepoint): Call
5846 init_registers_i386_avx_mpx_linux.
5847 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5848 (initialize_low_tracepoint): Call
5849 init_registers_amd64_avx_mpx_linux.
5850 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5851 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5852 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5853 declarations.
5854
9b30624b
PA
58552016-04-18 Pedro Alves <palves@redhat.com>
5856
5857 * configure: Regenerate.
5858
45e3745e
AT
58592016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5860
5861 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5862 (aarch64_emit_sub): Likewise.
5863
2afc13ff
PA
58642016-04-12 Pedro Alves <palves@redhat.com>
5865
5866 * utils.c (prepare_to_throw_exception): Delete.
5867
6e774b13
SM
58682016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5869
5870 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5871
4dca19f8
MK
58722016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5873
5874 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5875
d0a9981f
MK
58762016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5877
5878 * linux-aarch64-ipa.c: Add <elf.h> include.
5879 * linux-ppc-ipa.c: Add <elf.h> include.
5880 * linux-s390-ipa.c: Add <elf.h> include.
5881
252db07e
MK
58822016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5883
5884 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5885 (get_raw_reg_ptr): Likewise.
5886 (get_trace_state_variable_value_ptr): Likewise.
5887 (set_trace_state_variable_value_ptr): Likewise.
5888 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5889 char *.
5890
14e2b6d9
MK
58912016-03-31 Wei-cheng Wang <cole945@gmail.com>
5892 Marcin Kościelnicki <koriakin@0x04.net>
5893
5894 PR/17221
5895 * linux-ppc-low.c (emit_insns): New function.
5896 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5897 (ppc_emit_prologue): New function.
5898 (ppc_emit_epilogue): New function.
5899 (ppc_emit_add): New function.
5900 (ppc_emit_sub): New function.
5901 (ppc_emit_mul): New function.
5902 (ppc_emit_lsh): New function.
5903 (ppc_emit_rsh_signed): New function.
5904 (ppc_emit_rsh_unsigned): New function.
5905 (ppc_emit_ext): New function.
5906 (ppc_emit_zero_ext): New function.
5907 (ppc_emit_log_not): New function.
5908 (ppc_emit_bit_and): New function.
5909 (ppc_emit_bit_or): New function.
5910 (ppc_emit_bit_xor): New function.
5911 (ppc_emit_bit_not): New function.
5912 (ppc_emit_equal): New function.
5913 (ppc_emit_less_signed): New function.
5914 (ppc_emit_less_unsigned): New function.
5915 (ppc_emit_ref): New function.
5916 (ppc_emit_const): New function.
5917 (ppc_emit_reg): New function.
5918 (ppc_emit_pop): New function.
5919 (ppc_emit_stack_flush): New function.
5920 (ppc_emit_swap): New function.
5921 (ppc_emit_stack_adjust): New function.
5922 (ppc_emit_call): New function.
5923 (ppc_emit_int_call_1): New function.
5924 (ppc_emit_void_call_2): New function.
5925 (ppc_emit_if_goto): New function.
5926 (ppc_emit_goto): New function.
5927 (ppc_emit_eq_goto): New function.
5928 (ppc_emit_ne_goto): New function.
5929 (ppc_emit_lt_goto): New function.
5930 (ppc_emit_le_goto): New function.
5931 (ppc_emit_gt_goto): New function.
5932 (ppc_emit_ge_goto): New function.
5933 (ppc_write_goto_address): New function.
5934 (ppc_emit_ops_impl): New static variable.
5935 (ppc64v1_emit_prologue): New function.
5936 (ppc64v2_emit_prologue): New function.
5937 (ppc64_emit_epilogue): New function.
5938 (ppc64_emit_add): New function.
5939 (ppc64_emit_sub): New function.
5940 (ppc64_emit_mul): New function.
5941 (ppc64_emit_lsh): New function.
5942 (ppc64_emit_rsh_signed): New function.
5943 (ppc64_emit_rsh_unsigned): New function.
5944 (ppc64_emit_ext): New function.
5945 (ppc64_emit_zero_ext): New function.
5946 (ppc64_emit_log_not): New function.
5947 (ppc64_emit_bit_and): New function.
5948 (ppc64_emit_bit_or): New function.
5949 (ppc64_emit_bit_xor): New function.
5950 (ppc64_emit_bit_not): New function.
5951 (ppc64_emit_equal): New function.
5952 (ppc64_emit_less_signed): New function.
5953 (ppc64_emit_less_unsigned): New function.
5954 (ppc64_emit_ref): New function.
5955 (ppc64_emit_const): New function.
5956 (ppc64v1_emit_reg): New function.
5957 (ppc64v2_emit_reg): New function.
5958 (ppc64_emit_pop): New function.
5959 (ppc64_emit_stack_flush): New function.
5960 (ppc64_emit_swap): New function.
5961 (ppc64v1_emit_call): New function.
5962 (ppc64v2_emit_call): New function.
5963 (ppc64v1_emit_int_call_1): New function.
5964 (ppc64v2_emit_int_call_1): New function.
5965 (ppc64v1_emit_void_call_2): New function.
5966 (ppc64v2_emit_void_call_2): New function.
5967 (ppc64_emit_if_goto): New function.
5968 (ppc64_emit_eq_goto): New function.
5969 (ppc64_emit_ne_goto): New function.
5970 (ppc64_emit_lt_goto): New function.
5971 (ppc64_emit_le_goto): New function.
5972 (ppc64_emit_gt_goto): New function.
5973 (ppc64_emit_ge_goto): New function.
5974 (ppc64v1_emit_ops_impl): New static variable.
5975 (ppc64v2_emit_ops_impl): New static variable.
5976 (ppc_emit_ops): New function.
5977 (linux_low_target): Wire in ppc_emit_ops.
5978
a2174ba4
MK
59792016-03-31 Wei-cheng Wang <cole945@gmail.com>
5980 Marcin Kościelnicki <koriakin@0x04.net>
5981
5982 PR/17221
5983 * Makefile.in: Add powerpc-*-ipa.o
5984 * configure.srv: Add ipa_obj for powerpc*-linux.
5985 * linux-ppc-ipa.c: New file.
5986 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5987 includes.
5988 (PPC_FIELD): New macro.
5989 (PPC_SEXT): New macro.
5990 (PPC_OP6): New macro.
5991 (PPC_BO): New macro.
5992 (PPC_LI): New macro.
5993 (PPC_BD): New macro.
5994 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5995 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5996 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5997 (ppc_get_thread_area): New function.
5998 (is_elfv2_inferior): New function.
5999 (gen_ds_form): New function.
6000 (GEN_STD): New macro.
6001 (GEN_STDU): New macro.
6002 (GEN_LD): New macro.
6003 (GEN_LDU): New macro.
6004 (gen_d_form): New function.
6005 (GEN_ADDI): New macro.
6006 (GEN_ADDIS): New macro.
6007 (GEN_LI): New macro.
6008 (GEN_LIS): New macro.
6009 (GEN_ORI): New macro.
6010 (GEN_ORIS): New macro.
6011 (GEN_LWZ): New macro.
6012 (GEN_STW): New macro.
6013 (GEN_STWU): New macro.
6014 (gen_xfx_form): New function.
6015 (GEN_MFSPR): New macro.
6016 (GEN_MTSPR): New macro.
6017 (GEN_MFCR): New macro.
6018 (GEN_MTCR): New macro.
6019 (GEN_SYNC): New macro.
6020 (GEN_LWSYNC): New macro.
6021 (gen_x_form): New function.
6022 (GEN_OR): New macro.
6023 (GEN_MR): New macro.
6024 (GEN_LWARX): New macro.
6025 (GEN_STWCX): New macro.
6026 (GEN_CMPW): New macro.
6027 (gen_md_form): New function.
6028 (GEN_RLDICL): New macro.
6029 (GEN_RLDICR): New macro.
6030 (gen_i_form): New function.
6031 (GEN_B): New macro.
6032 (GEN_BL): New macro.
6033 (gen_b_form): New function.
6034 (GEN_BNE): New macro.
6035 (GEN_LOAD): New macro.
6036 (GEN_STORE): New macro.
6037 (gen_limm): New function.
6038 (gen_atomic_xchg): New function.
6039 (gen_call): New function.
6040 (ppc_relocate_instruction): New function.
6041 (ppc_install_fast_tracepoint_jump_pad): New function.
6042 (ppc_get_min_fast_tracepoint_insn_len): New function.
6043 (ppc_get_ipa_tdesc_idx): New function.
6044 (the_low_target): Wire in the new functions.
6045 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6046 tdescs.
6047 * linux-ppc-tdesc.h: New file.
6048
a13c4696
MK
60492016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6050
6051 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6052 (alloc_jump_pad_buffer): New function.
6053 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6054 (alloc_jump_pad_buffer): New function.
6055 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6056 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6057 (alloc_jump_pad_buffer): New function.
6058 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6059 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6060 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6061 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6062
1cda1512
MK
60632016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6064
6065 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6066 * linux-amd64-ipa.c: Likewise.
6067 * linux-i386-ipa.c: Likewise.
6068 * linux-s390-ipa.c: Likewise.
6069 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6070 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6071 set_trace_state_variable_value_ptr.
6072 (struct ipa_sym_addresses): Likewise.
6073 (symbol_list): Likewise.
6074 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6075 accessing gdb_collect directly.
6076 (gdb_collect_ptr_type): New typedef.
6077 (get_raw_reg_ptr_type): New typedef.
6078 (get_trace_state_variable_value_ptr_type): New typedef.
6079 (set_trace_state_variable_value_ptr_type): New typedef.
6080 (gdb_collect_ptr): New global.
6081 (get_raw_reg_ptr): New global.
6082 (get_trace_state_variable_value_ptr): New global.
6083 (set_trace_state_variable_value_ptr): New global.
6084 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6085 accessing get_raw_reg directly.
6086 (get_get_tsv_func_addr): Likewise for
6087 get_trace_state_variable_value_ptr.
6088 (get_set_tsv_func_addr): Likewise for
6089 set_trace_state_variable_value_ptr.
6090 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6091
72fb5488
SM
60922016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6093
6094 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6095
28170b88
MK
60962016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6097
6098 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6099 packets.
6100 (relocate_instruction): Remove own_buf.
6101 * server.c (own_buf): Make global.
6102 (handle_v_requests): Make global.
6103 * server.h (own_buf): New declaration.
6104 (handle_v_requests): New prototype.
6105
f39e8743
MK
61062016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6107
6108 PR 18377
6109 * linux-s390-low.c (add_insns): New function.
6110 (s390_emit_prologue): New function.
6111 (s390_emit_epilogue): New function.
6112 (s390_emit_add): New function.
6113 (s390_emit_sub): New function.
6114 (s390_emit_mul): New function.
6115 (s390_emit_lsh): New function.
6116 (s390_emit_rsh_signed): New function.
6117 (s390_emit_rsh_unsigned): New function.
6118 (s390_emit_ext): New function.
6119 (s390_emit_log_not): New function.
6120 (s390_emit_bit_and): New function.
6121 (s390_emit_bit_or): New function.
6122 (s390_emit_bit_xor): New function.
6123 (s390_emit_bit_not): New function.
6124 (s390_emit_equal): New function.
6125 (s390_emit_less_signed): New function.
6126 (s390_emit_less_unsigned): New function.
6127 (s390_emit_ref): New function.
6128 (s390_emit_if_goto): New function.
6129 (s390_emit_goto): New function.
6130 (s390_write_goto_address): New function.
6131 (s390_emit_litpool): New function.
6132 (s390_emit_const): New function.
6133 (s390_emit_call): New function.
6134 (s390_emit_reg): New function.
6135 (s390_emit_pop): New function.
6136 (s390_emit_stack_flush): New function.
6137 (s390_emit_zero_ext): New function.
6138 (s390_emit_swap): New function.
6139 (s390_emit_stack_adjust): New function.
6140 (s390_emit_set_r2): New function.
6141 (s390_emit_int_call_1): New function.
6142 (s390_emit_void_call_2): New function.
6143 (s390_emit_eq_goto): New function.
6144 (s390_emit_ne_goto): New function.
6145 (s390_emit_lt_goto): New function.
6146 (s390_emit_le_goto): New function.
6147 (s390_emit_gt_goto): New function.
6148 (s390_emit_ge_goto): New function.
6149 (s390x_emit_prologue): New function.
6150 (s390x_emit_epilogue): New function.
6151 (s390x_emit_add): New function.
6152 (s390x_emit_sub): New function.
6153 (s390x_emit_mul): New function.
6154 (s390x_emit_lsh): New function.
6155 (s390x_emit_rsh_signed): New function.
6156 (s390x_emit_rsh_unsigned): New function.
6157 (s390x_emit_ext): New function.
6158 (s390x_emit_log_not): New function.
6159 (s390x_emit_bit_and): New function.
6160 (s390x_emit_bit_or): New function.
6161 (s390x_emit_bit_xor): New function.
6162 (s390x_emit_bit_not): New function.
6163 (s390x_emit_equal): New function.
6164 (s390x_emit_less_signed): New function.
6165 (s390x_emit_less_unsigned): New function.
6166 (s390x_emit_ref): New function.
6167 (s390x_emit_if_goto): New function.
6168 (s390x_emit_const): New function.
6169 (s390x_emit_call): New function.
6170 (s390x_emit_reg): New function.
6171 (s390x_emit_pop): New function.
6172 (s390x_emit_stack_flush): New function.
6173 (s390x_emit_zero_ext): New function.
6174 (s390x_emit_swap): New function.
6175 (s390x_emit_stack_adjust): New function.
6176 (s390x_emit_int_call_1): New function.
6177 (s390x_emit_void_call_2): New function.
6178 (s390x_emit_eq_goto): New function.
6179 (s390x_emit_ne_goto): New function.
6180 (s390x_emit_lt_goto): New function.
6181 (s390x_emit_le_goto): New function.
6182 (s390x_emit_gt_goto): New function.
6183 (s390x_emit_ge_goto): New function.
6184 (s390_emit_ops): New function.
6185 (struct linux_target_ops): Fill in emit_ops hook.
6186
abd9baf9
MK
61872016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6188
6189 PR 18377
6190 * Makefile.in: Add s390 IPA files.
6191 * configure.srv: Build IPA for s390.
6192 * linux-s390-ipa.c: New file.
6193 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6194 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6195 (tdesc_s390_linux32): Likewise.
6196 (init_registers_s390_linux32v1): Likewise.
6197 (tdesc_s390_linux32v1): Likewise.
6198 (init_registers_s390_linux32v2): Likewise.
6199 (tdesc_s390_linux32v2): Likewise.
6200 (init_registers_s390_linux64): Likewise.
6201 (tdesc_s390_linux64): Likewise.
6202 (init_registers_s390_linux64v1): Likewise.
6203 (tdesc_s390_linux64v1): Likewise.
6204 (init_registers_s390_linux64v2): Likewise.
6205 (tdesc_s390_linux64v2): Likewise.
6206 (init_registers_s390_te_linux64): Likewise.
6207 (tdesc_s390_te_linux64): Likewise.
6208 (init_registers_s390_vx_linux64): Likewise.
6209 (tdesc_s390_vx_linux64): Likewise.
6210 (init_registers_s390_tevx_linux64): Likewise.
6211 (tdesc_s390_tevx_linux64): Likewise.
6212 (init_registers_s390x_linux64): Likewise.
6213 (tdesc_s390x_linux64): Likewise.
6214 (init_registers_s390x_linux64v1): Likewise.
6215 (tdesc_s390x_linux64v1): Likewise.
6216 (init_registers_s390x_linux64v2): Likewise.
6217 (tdesc_s390x_linux64v2): Likewise.
6218 (init_registers_s390x_te_linux64): Likewise.
6219 (tdesc_s390x_te_linux64): Likewise.
6220 (init_registers_s390x_vx_linux64): Likewise.
6221 (tdesc_s390x_vx_linux64): Likewise.
6222 (init_registers_s390x_tevx_linux64): Likewise.
6223 (tdesc_s390x_tevx_linux64): Likewise.
6224 (have_hwcap_s390_vx): New static variable.
6225 (s390_arch_setup): Fill have_hwcap_s390_vx.
6226 (s390_get_thread_area): New function.
6227 (s390_ft_entry_gpr_esa): New const.
6228 (s390_ft_entry_gpr_zarch): New const.
6229 (s390_ft_entry_misc): New const.
6230 (s390_ft_entry_fr): New const.
6231 (s390_ft_entry_vr): New const.
6232 (s390_ft_main_31): New const.
6233 (s390_ft_main_64): New const.
6234 (s390_ft_exit_fr): New const.
6235 (s390_ft_exit_vr): New const.
6236 (s390_ft_exit_misc): New const.
6237 (s390_ft_exit_gpr_esa): New const.
6238 (s390_ft_exit_gpr_zarch): New const.
6239 (append_insns): New function.
6240 (s390_relocate_instruction): New function.
6241 (s390_install_fast_tracepoint_jump_pad): New function.
6242 (s390_get_min_fast_tracepoint_insn_len): New function.
6243 (s390_get_ipa_tdesc_idx): New function.
6244 (struct linux_target_ops): Wire in the above functions.
6245 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6246 * linux-s390-tdesc.h: New file.
6247
a4105d04
MK
62482016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6249
6250 * linux-s390-low.c (s390_supports_tracepoints): New function.
6251 (struct linux_target_ops): Fill supports_tracepoints hook.
6252
35ac8b3e
YQ
62532016-03-18 Yao Qi <yao.qi@linaro.org>
6254
6255 * linux-low.c (lwp_signal_can_be_delivered): New function.
6256 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6257
94610ec4
YQ
62582016-03-18 Yao Qi <yao.qi@linaro.org>
6259
6260 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6261 0 if signal is enqueued. Remove 'signal' from one debugging
6262 message. Move one debugging message to some lines below.
6263 Remove code setting 'signal' to 0.
6264
80aea927
YQ
62652016-03-18 Yao Qi <yao.qi@linaro.org>
6266
6267 * linux-low.c (linux_low_filter_event): Remove redundant
6268 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6269
b04fd3be
MK
62702016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6271
6272 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6273 (struct linux_target_ops): Wire in the above.
6274
c40c8d4b
YQ
62752016-03-03 Yao Qi <yao.qi@linaro.org>
6276
6277 * linux-low.c: Update comments to start_step_over.
6278
0f8288ae
YQ
62792016-03-03 Yao Qi <yao.qi@linaro.org>
6280
6281 PR server/19736
6282 * linux-low.c (handle_extended_wait): Set child suspended
6283 if event_lwp->bp_reinsert isn't zero.
6284
fdbd04a8
YQ
62852016-03-02 Yao Qi <yao.qi@linaro.org>
6286
6287 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6288 enqueue_pending_signal.
6289
6896a8fa
MK
62902016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6291
6292 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6293 is actually loaded.
6294
ab503087
MK
62952016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6296
6297 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6298 (s390_regmap_3264) [!__s390x__]: New global.
6299 (s390_collect_ptrace_register): Skip map entries containing -1.
6300 (s390_supply_ptrace_register): Ditto.
6301 (s390_fill_gprs_high): New function.
6302 (s390_store_gprs_high): New function.
6303 (s390_regsets): Add NT_S390_HIGH_GPRS.
6304 (s390_get_hwcap): Enable on 31-bit.
6305 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6306 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6307 Detect NT_S390_HIGH_GPRS.
6308 (s390_usrregs_info_3264): Enable on 31-bit.
6309 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6310 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6311
ae91f625
MK
63122016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6313
6314 PR gdb/13808
6315 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6316 * configure.srv: Ditto.
6317 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6318 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6319 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6320 (init_registers_amd64_linux): Remove prototype.
6321 (tdesc_amd64_linux): Remove declaration.
6322 (get_ipa_tdesc): New function.
6323 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6324 initialize remaining tdescs.
6325 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6326 (init_registers_i386_linux): Remove prototype.
6327 (tdesc_i386_linux): Remove declaration.
6328 (get_ipa_tdesc): New function.
6329 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6330 initialize remaining tdescs.
6331 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6332 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6333 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6334 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6335 (x86_get_ipa_tdesc_idx): New function.
6336 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6337 * linux-x86-tdesc.h: New file.
6338 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6339 (target_get_ipa_tdesc_idx): New macro.
6340 * tracepoint.c (ipa_tdesc_idx): New macro.
6341 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6342 (symbol_list): Add ipa_tdesc_idx.
6343 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6344 (ipa_tdesc): Remove.
6345 (ipa_tdesc_idx): New variable.
6346 (get_context_regcache): Use get_ipa_tdesc.
6347 (gdb_collect): Ditto.
6348 (gdb_probe): Ditto.
6349 * tracepoint.h (get_ipa_tdesc): New prototype.
6350 (ipa_tdesc): Remove.
6351
e7ad2f14
PA
63522016-02-24 Pedro Alves <palves@redhat.com>
6353
6354 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6355 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6356 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6357 Factor out common code between the USE_SIGTRAP_SIGINFO and
6358 !USE_SIGTRAP_SIGINFO blocks.
6359 (linux_low_filter_event): Call save_stop_reason instead of
6360 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6361 Update comments.
6362 (linux_wait_1): Update comments.
6363
657f9cde
WW
63642016-02-24 Wei-cheng Wang <cole945@gmail.com>
6365
6366 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6367 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6368 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6369 ppc_insert_point, ppc_remove_point.
6370
b00b61e1
MK
63712016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6372
6373 * linux-s390-low.c (s390_supports_z_point_type): New function.
6374 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6375
553cb527
YQ
63762016-02-16 Yao Qi <yao.qi@linaro.org>
6377
6378 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6379 PC. Get pc from regcache_read_pc.
6380
a5652c21
YQ
63812016-02-12 Yao Qi <yao.qi@linaro.org>
6382
6383 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6384 or linux_get_pc_32bit.
6385 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6386
ed443b61
YQ
63872016-02-12 Yao Qi <yao.qi@linaro.org>
6388
6389 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6390 arm_linux_get_next_pcs_fixup.
6391
020ecd38
MK
63922016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6393
6394 * tracepoint.c (x_tracepoint_action_download): Change
6395 write_inferior_data_ptr to write_inferior_data_pointer.
6396 (cmd_qtstart): Likewise.
6397 (write_inferior_data_ptr): Remove.
6398 (download_agent_expr): Change write_inferior_data_ptr to
6399 write_inferior_data_pointer.
6400 (download_tracepoint_1): Likewise.
6401 (download_tracepoint): Likewise.
6402 (download_trace_state_variables): Likewise.
6403
7cae9051
WW
64042016-02-11 Wei-cheng Wang <cole945@gmail.com>
6405 Marcin Kościelnicki <koriakin@0x04.net>
6406
6407 * tracepoint.c (struct tracepoint_action_ops): Remove.
6408 (struct tracepoint_action): Remove ops.
6409 (m_tracepoint_action_download, r_tracepoint_action_download)
6410 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6411 size and offset accordingly.
6412 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6413 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6414 (tracepoint_action_send, tracepoint_action_download): New functions.
6415 Helpers for trace action handlers.
6416 (add_tracepoint_action): Remove setup actions ops.
6417 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6418
9f6a71b4
YQ
64192016-02-10 Yao Qi <yao.qi@linaro.org>
6420
6421 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6422
1e94266c
SM
64232016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6424
6425 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6426 to AC_OUTPUT.
6427 * configure: Regenerate.
6428
8adce034
SM
64292016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6430
6431 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6432 void * to gdb_byte *.
6433 * linux-low.c (siginfo_fixup): Likewise.
6434 (linux_xfer_siginfo): Likewise.
6435 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6436 Likewise.
6437 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6438
93813b37
WT
64392016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6440
6441 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6442 to srv_tgtobj.
6443 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6444 to srv_tgtobj.
6445 * linux-x86-low.c [__x86_64__]: Include
6446 "nat/amd64-linux-siginfo.h".
6447 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6448 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6449 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6450 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6451 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6452 (cpt_si_fd, si_timerid, si_overrun): Move from
6453 nat/amd64-linux-siginfo.c.
6454 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6455
8424cc97
SM
64562016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6457
6458 * server.c (skip_to_semicolon): Remove.
6459 (process_point_options): Use strchrnul instead of
6460 skip_to_semicolon.
6461
4d18591b
YQ
64622016-01-26 Yao Qi <yao.qi@linaro.org>
6463
6464 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6465 * linux-low.c (install_software_single_step_breakpoints): Don't
6466 call regcache_read_pc.
6467 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6468 argument pc.
6469
d8020970
YQ
64702016-01-26 Yao Qi <yao.qi@linaro.org>
6471
6472 * linux-low.c (install_software_single_step_breakpoints): Call
6473 regcache_read_pc instead of get_pc.
6474
8b207339
YQ
64752016-01-26 Yao Qi <yao.qi@linaro.org>
6476
6477 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6478 (unblock_async_io): Rename to ...
6479 (block_unblock_async_io): ... it. New function.
6480 (enable_async_io): Don't install SIGIO handler. Unblock it
6481 instead.
6482 (disable_async_io): Don't ignore SIGIO. Block it instead.
6483 (initialize_async_io): Install SIGIO handler. Don't call
6484 unblock_async_io.
6485
18879fef
YQ
64862016-01-26 Yao Qi <yao.qi@linaro.org>
6487
6488 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6489 first character is '\003', call *the_target->request_interrupt.
6490
a0f8e08a
YQ
64912016-01-25 Yao Qi <yao.qi@linaro.org>
6492
6493 * remote-utils.c (new_thread_notify): Remove.
6494 (dead_thread_notify): Likewise.
6495 * remote-utils.h (new_thread_notify): Remove declaration.
6496 (dead_thread_notify): Likewise.
6497
cc5fd9ab
MK
64982016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6499
6500 * gdb.trace/pending.exp: Fix expected message on continue.
6501
99e8eb11
MK
65022016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6503
6504 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6505 it works properly on big-endian machines where sizeof (CORE_ADDR)
6506 != sizeof (void *).
6507
a994041d
PA
65082016-01-21 Pedro Alves <palves@redhat.com>
6509
6510 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6511 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6512 * configure: Regenerate.
6513
f7a6a40d
YQ
65142016-01-21 Yao Qi <yao.qi@linaro.org>
6515
6516 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6517 is_thumb and set it according to CPSR saved on the stack.
6518 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6519 arm_sigreturn_next_pc.
6520
6f69e520
YQ
65212016-01-18 Yao Qi <yao.qi@linaro.org>
6522
6523 * linux-low.c (linux_set_pc_64bit): New function.
6524 (linux_get_pc_64bit): New function.
6525 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6526 Declare.
6527 * linux-sparc-low.c (debug_threads): Remove declaration.
6528 (sparc_get_pc): Remove.
6529 (the_low_target): Use linux_get_pc_64bit instead of
6530 sparc_get_pc.
6531 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6532 (the_low_target): Use linux_get_pc_64bit and
6533 linux_set_pc_64bit.
6534
276d4552
YQ
65352016-01-18 Yao Qi <yao.qi@linaro.org>
6536
6537 * linux-arm-low.c (debug_threads): Remove declaration.
6538 (arm_get_pc, arm_set_pc): Remove.
6539 (the_low_target): Use linux_get_pc_32bit and
6540 linux_set_pc_32bit.
6541 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6542 (the_low_target): Use linux_get_pc_32bit and
6543 linux_set_pc_32bit.
6544 * linux-cris-low.c (debug_threads): Remove declaration.
6545 (cris_get_pc, cris_set_pc,): Remove.
6546 (the_low_target): Use linux_get_pc_32bit and
6547 linux_set_pc_32bit.
6548 * linux-crisv32-low.c (debug_threads): Remove declaration.
6549 (cris_get_pc, cris_set_pc): Remove.
6550 (the_low_target): Use linux_get_pc_32bit and
6551 linux_set_pc_32bit.
6552 * linux-low.c: Include inttypes.h.
6553 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6554 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6555 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6556 (the_low_target): Use linux_get_pc_32bit and
6557 linux_set_pc_32bit.
6558 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6559 (the_low_target): Use linux_get_pc_32bit and
6560 linux_set_pc_32bit.
6561 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6562 (the_low_target): Use linux_get_pc_32bit and
6563 linux_set_pc_32bit.
6564 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6565 (the_low_target): Use linux_get_pc_32bit and
6566 linux_set_pc_32bit.
6567 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6568 (the_low_target): Use linux_get_pc_32bit and
6569 linux_set_pc_32bit.
6570
eb0edac8
GB
65712016-01-18 Gary Benson <gbenson@redhat.com>
6572
6573 * configure.ac (AC_FUNC_FORK): New check.
6574 * config.in: Regenerate.
6575 * configure: Likewise.
6576
1b451dda
YQ
65772016-01-14 Yao Qi <yao.qi@linaro.org>
6578
6579 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6580 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6581 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6582 arm_get_next_pcs_ctor.
6583
82075af2
JS
65842016-01-12 Josh Stone <jistone@redhat.com>
6585 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6586
6587 * inferiors.h: Include "gdb_vecs.h".
6588 (struct process_info): Add syscalls_to_catch.
6589 * inferiors.c (remove_process): Free syscalls_to_catch.
6590 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6591 syscall_return stops.
6592 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6593 * server.c (handle_general_set): Handle QCatchSyscalls.
6594 (handle_query): Report support for QCatchSyscalls.
6595 * target.h (struct target_ops): Add supports_catch_syscall.
6596 (target_supports_catch_syscall): New macro.
6597 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6598 (struct lwp_info): Add syscall_state.
6599 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6600 Maintain syscall_state and syscalls_to_catch across exec.
6601 (get_syscall_trapinfo): New function, proxy to the_low_target.
6602 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6603 (linux_low_filter_event): Toggle syscall_state entry/return for
6604 syscall traps, and set it ignored for all others.
6605 (gdb_catching_syscalls_p): New function.
6606 (gdb_catch_this_syscall_p): New function.
6607 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6608 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6609 (linux_supports_catch_syscall): New function.
6610 (linux_target_ops): Install it.
6611 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6612 (the_low_target): Install it.
6613
8f13a3ce
MF
66142016-01-12 Mike Frysinger <vapier@gentoo.org>
6615
6616 * acinclude.m4: Include new ../warning.m4 file.
6617 * configure: Regenerated.
6618 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6619
5b3da067
MF
66202016-01-12 Mike Frysinger <vapier@gentoo.org>
6621
6622 * ax.c (is_goto_target): Mark static.
6623 * linux-low.c (register_addr): Likewise.
6624 (linux_fetch_registers, linux_store_registers): Likewise.
6625 * mem-break.c (any_persistent_commands): Fix old prototype.
6626 (add_commands_to_breakpoint): Mark static.
6627 * regcache.c (find_register_by_name): Delete unused func.
6628 * remote-utils.c (hex_or_minus_one): Mark static.
6629 * server.c (monitor_show_help): Mark static.
6630 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6631 handle_v_requests): Likewise.
6632
bc504a31
PA
66332016-01-12 Pedro Alves <palves@redhat.com>
6634
6635 Remove use of the registered trademark symbol throughout.
6636
5a0dd67a
YQ
66372016-01-08 Yao Qi <yao.qi@linaro.org>
6638
6639 * remote-utils.c (getpkt): If c is '\003', call target hook
6640 request_interrupt.
6641
b2ca446f
YQ
66422016-01-06 Yao Qi <yao.qi@linaro.org>
6643
6644 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6645 linux-aarch32-low.c.
6646 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6647 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6648 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6649 (thumb2_breakpoint): Declare.
6650 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6651 linux-aarch32-low.h.
6652 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6653 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6654 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6655
edd88788
JB
66562016-01-01 Joel Brobecker <brobecker@adacore.com>
6657
6658 * gdbreplay.c (gdbreplay_version): Change copyright year in
6659 version message.
6660 * server.c (gdbserver_version): Likewise.
6661
65da7f14
PP
66622015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6663
6664 * server.c (crc32_table): Delete.
6665 (crc32): Use libiberty's xcrc32 function.
6666
4abd5ed2
JB
66672015-12-22 Joel Brobecker <brobecker@adacore.com>
6668
6669 * lynx-low.c (lynx_delete_thread_callback): New function.
6670 (lynx_mourn): Properly delete our process and all of its
6671 threads. Remove call to clear_inferiors.
6672
0e50fe5c
JB
66732015-12-22 Joel Brobecker <brobecker@adacore.com>
6674
6675 * target.c (thread_search_callback): Add check that
6676 the thread_stopped target callback is not NULL before
6677 calling it.
6678
35adc03f
YQ
66792015-12-21 Yao Qi <yao.qi@linaro.org>
6680
6681 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6682 arm breakpoint.
6683
bd2b2909
AT
66842015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6685
6686 * server.c (handle_query): Call target_supports_software_single_step.
6687
7fe5e27e
AT
66882015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6689
6690 * linux-low.c (single_step): New function.
6691 (linux_resume_one_lwp_throw): Call single_step.
6692 (start_step_over): Likewise.
6693
d9311bfa
AT
66942015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6695
6696 * Makefile.in (SFILES): Append arch/arm-linux.c,
6697 arch/arm-get-next-pcs.c.
6698 (arm-linux.o): New rule.
6699 (arm-get-next-pcs.o): New rule.
6700 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6701 arm-linux.o.
6702 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6703 to linux-aarch32-low.c.
6704 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6705 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6706 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6707 (thumb2_breakpoint_len): Likewise.
6708 (arm_is_thumb_mode): Make non-static.
6709 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6710 from linux-aarch32-low.c.
6711 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6712 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6713 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6714 (thumb2_breakpoint_len): Likewise.
6715 (arm_is_thumb_mode): New declaration.
6716 * linux-arm-low.c: Include arch/arm-linux.h
6717 aarch/arm-get-next-pcs.h, sys/syscall.h.
6718 (get_next_pcs_ops): New struct.
6719 (get_next_pcs_addr_bits_remove): New function.
6720 (get_next_pcs_is_thumb): New function.
6721 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6722 (arm_sigreturn_next_pc): Likewise.
6723 (get_next_pcs_syscall_next_pc): Likewise.
6724 (arm_gdbserver_get_next_pcs): Likewise.
6725 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6726 Initialize.
6727 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6728 * server.h: Include gdb_vecs.h.
6729
68ce2059
AT
67302015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6731
6732 * Makefile.in (SFILES): Append common/common-regcache.c.
6733 (OBS): Append common-regcache.o.
6734 (common-regcache.o): New rule.
6735 * regcache.c (init_register_cache): Initialize cache to
6736 REG_UNAVAILABLE.
6737 (regcache_raw_read_unsigned): New function.
6738 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6739 register_status enum.
6740
fa5308bd
AT
67412015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6742
6743 * linux-aarch64-low.c (the_low_targets): Rename
6744 breakpoint_reinsert_addr to get_next_pcs.
6745 * linux-arm-low.c (the_low_targets): Likewise.
6746 * linux-bfin-low.c (the_low_targets): Likewise.
6747 * linux-cris-low.c (the_low_targets): Likewise.
6748 * linux-crisv32-low.c (the_low_targets): Likewise.
6749 * linux-low.c (can_software_single_step): Likewise.
6750 (install_software_single_step_breakpoints): New function.
6751 (start_step_over): Use install_software_single_step_breakpoints.
6752 * linux-low.h: New CORE_ADDR vector.
6753 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6754 get_next_pcs.
6755 * linux-mips-low.c (the_low_targets): Likewise.
6756 * linux-nios2-low.c (the_low_targets): Likewise.
6757 * linux-sparc-low.c (the_low_targets): Likewise.
6758
4a6ed09b
PA
67592015-12-17 Pedro Alves <palves@redhat.com>
6760
6761 * linux-low.c (linux_kill_one_lwp): Remove references to
6762 LinuxThreads.
6763 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6764 to 'kill'.
6765 (linux_init_signals): Delete.
6766 (initialize_low): Adjust.
6767 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6768
7544db95
PA
67692015-12-16 Pedro Alves <palves@redhat.com>
6770
6771 * configure.ac (compiler warning flags): When testing a
6772 -Wno-foo option, check whether -Wfoo works instead.
6773 * configure: Regenerate.
6774
8020350c
DB
67752015-12-11 Don Breazeal <donb@codesourcery.com>
6776
6777 * server.c (process_serial_event): Don't exit from gdbserver
6778 in remote mode if there are still active inferiors.
6779
db91f502
YQ
67802015-12-11 Yao Qi <yao.qi@linaro.org>
6781
6782 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6783 arm_breakpoint_at if the process is 32-bit.
6784
b37a6290
YQ
67852015-12-11 Yao Qi <yao.qi@linaro.org>
6786
6787 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6788 arm breakpoint.
6789
17b1509a
YQ
67902015-12-07 Yao Qi <yao.qi@linaro.org>
6791
6792 * configure.srv: Append arm.o to srv_tgtobj for
6793 aarch64*-*-linux* target.
6794 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6795 from linux-arm-low.c.
6796 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6797 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6798 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6799 (thumb2_breakpoint_len): Likewise.
6800 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6801 (arm_breakpoint_kinds): Likewise.
6802 (arm_breakpoint_kind_from_pc): Likewise.
6803 (arm_sw_breakpoint_from_kind): Likewise.
6804 (arm_breakpoint_kind_from_current_state): Likewise.
6805 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6806 (arm_sw_breakpoint_from_kind): Declare.
6807 (arm_breakpoint_kind_from_current_state): Declare.
6808 (arm_breakpoint_at): Declare.
6809 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6810 arm_sw_breakpoint_from_kind if process is 32-bit.
6811 (aarch64_breakpoint_kind_from_pc): New function.
6812 (aarch64_breakpoint_kind_from_current_state): New function.
6813 (the_low_target): Initialize fields breakpoint_kind_from_pc
6814 and breakpoint_kind_from_current_state.
6815 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6816 linux-aarch32-low.c.
6817 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6818 (arm_breakpoint, arm_breakpoint_len): Likewise.
6819 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6820 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6821 (arm_is_thumb_mode): Likewise.
6822 (arm_breakpoint_at): Likewise.
6823 (arm_breakpoint_kind_from_pc): Likewise.
6824 (arm_sw_breakpoint_from_kind): Likewise.
6825 (arm_breakpoint_kind_from_current_state): Likewise.
6826
6827 Revert:
6828 2015-08-04 Yao Qi <yao.qi@linaro.org>
6829
6830 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6831 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6832 * server.c (extended_protocol): Remove "static".
6833 * server.h (extended_protocol): Declare it.
6834
ece66d65
JS
68352015-12-04 Josh Stone <jistone@redhat.com>
6836
6837 * target.h (struct target_ops) <arch_setup>: Rename to ...
6838 (struct target_ops) <post_create_inferior>: ... this.
6839 (target_arch_setup): Rename to ...
6840 (target_post_create_inferior): ... this, calling post_create_inferior.
6841 * server.c (start_inferior): Update target_arch_setup calls to
6842 target_post_create_inferior.
6843 * linux-low.c (linux_low_ptrace_options): Forward declare.
6844 (linux_arch_setup): Update its comment for general use.
6845 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6846 (struct linux_target_ops): Use linux_post_create_inferior.
6847 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6848 to post_create_inferior.
6849 * nto-low.c (struct nto_target_ops): Likewise.
6850 * spu-low.c (struct spu_target_ops): Likewise.
6851 * win32-low.c (struct win32_target_ops): Likewise.
6852
e58c48b4
AT
68532015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6854
6855 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6856
fbec8956
AT
68572015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6858
6859 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6860 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6861 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6862 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6863 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6864 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6865 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6866 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6867 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6868 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6869 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6870 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6871
9b4c5f87
AT
68722015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6873
6874 * linux-low.c (linux_look_up_symbols): Don't call
6875 linux_supports_traceclone.
6876 * linux-low.h (thread_db_init): Remove use_events argument.
6877 * thread-db.c (thread_db_use_event): Remove global variable.
6878 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6879 (struct thread_db) <td_create_bp>: Remove field.
6880 (thread_db_create_event): Remove function.
6881 (thread_db_enable_reporting): Likewise.
6882 (find_one_thread): Don't check for thread_db_use_events.
6883 (attach_thread): Likewise.
6884 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6885 (try_thread_db_load_1): Don't check for thread_db_use_events.
6886 (thread_db_init): Remove use_events argument and thread events
6887 handling.
6888 (remove_thread_event_breakpoints): Remove function.
6889 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6890
7d00775e
AT
68912015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6892
6893 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6894 New function.
6895 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6896 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6897 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6898 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6899 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6900 Initialize.
6901 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6902 New function.
6903 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6904 * linux-low.c (can_hardware_single_step): Use
6905 supports_hardware_single_step.
6906 (can_software_single_step): New function.
6907 (start_step_over): Call can_software_single_step.
6908 (linux_supports_hardware_single_step): New function.
6909 (struct target_ops) <supports_software_single_step>: Initialize.
6910 * linux-low.h (struct linux_target_ops)
6911 <supports_hardware_single_step>: Initialize.
6912 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6913 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6914 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6915 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6916 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6917 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6918 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6919 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6920 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6921 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6922 Initialize.
6923 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6924 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6925 Initialize.
6926 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6927 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6928 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6929 New function.
6930 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6931 * target.h (struct target_ops): <supports_software_single_step>:
6932 New field.
6933 (target_supports_software_single_step): New macro.
6934
2d97cd35
AT
69352015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6936
6937 * linux-low.c (linux_wait_1): Fix pc advance condition.
6938 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6939 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6940
769ef81f
AT
69412015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6942
6943 * linux-arm-low.c (arm_is_thumb_mode): New function.
6944 (arm_breakpoint_at): Use arm_is_thumb_mode.
6945 (arm_breakpoint_kind_from_current_state): New function.
6946 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6947 Initialize.
6948 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6949 (linux_breakpoint_kind_from_current_state): New function.
6950 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6951 * linux-low.h (struct linux_target_ops)
6952 <breakpoint_kind_from_current_state>: New field.
6953 * target.h (struct target_ops): Likewise.
6954 (target_breakpoint_kind_from_current_state): New macro.
6955
1bebeeca
PA
69562015-11-30 Pedro Alves <palves@redhat.com>
6957
6958 * linux-low.c (linux_resume): Wake up the event loop before
6959 returning.
6960
a67a9fae
PA
69612015-11-30 Pedro Alves <palves@redhat.com>
6962
6963 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6964 check.
6965 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6966 to -1.
6967 * target.c (struct thread_search): New structure.
6968 (thread_search_callback): New function.
6969 (prev_general_thread): New global.
6970 (prepare_to_access_memory, done_accessing_memory): New functions.
6971 * target.h (prepare_to_access_memory, done_accessing_memory):
6972 Replace macros with function declarations.
6973
f2faf941
PA
69742015-11-30 Pedro Alves <palves@redhat.com>
6975
6976 PR 14618
6977 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
6978 report TARGET_WAITKIND_NO_RESUMED.
6979 * remote-utils.c (prepare_resume_reply): Handle
6980 TARGET_WAITKIND_NO_RESUMED.
6981 * server.c (report_no_resumed): New global.
6982 (handle_query) <qSupported>: Handle "no-resumed+". Report
6983 "no-resumed+" support.
6984 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6985 return error if the client doesn't support no-resumed events.
6986 (push_stop_notification): New function.
6987 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6988 events if the client supports them.
6989
a681f9c9
PA
69902015-11-30 Pedro Alves <palves@redhat.com>
6991
6992 * linux-low.c (thread_still_has_status_pending_p): Don't check
6993 vCont;t here.
6994 (lwp_resumed): New function.
6995 (status_pending_p_callback): Return early if the LWP is not
6996 supposed to be resumed.
6997
65706a29
PA
69982015-11-30 Pedro Alves <palves@redhat.com>
6999
7000 * linux-low.c (handle_extended_wait): Assert that the LWP's
7001 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7002 thread create events, leave the new child's status pending.
7003 (linux_low_filter_event): If GDB wants to hear about thread exit
7004 events, leave the LWP marked dead and don't delete it.
7005 (linux_wait_for_event_filtered): Don't check for thread exit.
7006 (filter_exit_event): New function.
7007 (linux_wait_1): Use it, when returning an exit event.
7008 (linux_resume_one_lwp_throw): Assert that the LWP's
7009 waitstatus is TARGET_WAITKIND_IGNORE.
7010 * remote-utils.c (prepare_resume_reply): Handle
7011 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7012 * server.c (report_thread_events): New global.
7013 (handle_general_set): Handle QThreadEvents.
7014 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7015 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7016 TARGET_WAITKIND_THREAD_EXITED.
7017 * server.h (report_thread_events): Declare.
7018
56cf4bed
PA
70192015-11-30 Pedro Alves <palves@redhat.com>
7020
7021 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7022 the thread's last_resume_kind was resume_stop.
7023
500c1d85
PA
70242015-11-30 Pedro Alves <palves@redhat.com>
7025
7026 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7027 before returning.
7028
de979965
PA
70292015-11-30 Pedro Alves <palves@redhat.com>
7030
7031 * server.c (handle_v_requests): Handle vCtrlC.
7032
34c65914
PA
70332015-11-30 Pedro Alves <palves@redhat.com>
7034
7035 * gdbthread.h (find_any_thread_of_pid): Declare.
7036 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7037 functions.
7038 * server.c (handle_query): If current_thread is NULL, look for
7039 another thread of the selected process.
7040
79efa585 70412015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 7042 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
7043
7044 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7045 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7046 name in reply.
7047 * target.h (struct target_ops) <thread_name>: New field.
7048 (target_thread_name): New macro.
7049
80d82c19
JB
70502015-11-23 Joel Brobecker <brobecker@adacore.com>
7051
7052 * regcache.h (regcache_invalidate_pid): Add declaration.
7053 * regcache.c (regcache_invalidate_pid): New function, extracted
7054 from regcache_invalidate.
7055 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7056 Add trivial documentation comment.
7057 * lynx-low.c: Use regcache_invalidate_pid instead of
7058 regcache_invalidate.
7059
64da5dd5
JB
70602015-11-23 Joel Brobecker <brobecker@adacore.com>
7061
7062 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7063 and Elf64_auxv_t if the target is Android.
7064
37ce4055
DE
70652015-11-22 Doug Evans <xdje42@gmail.com>
7066
7067 * target.h: #include <sys/types.h>.
7068
06e03fff
PA
70692015-11-19 Pedro Alves <palves@redhat.com>
7070
7071 * linux-low.c (linux_process_qsupported): Change prototype.
7072 Adjust.
7073 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7074 Change prototype.
7075 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7076 and adjust to loop over all features.
7077 * server.c (handle_query) <qSupported>: Adjust to call
7078 target_process_qsupported once, passing it a vector of unprocessed
7079 features.
7080 * target.h (struct target_ops) <process_qsupported>: Change
7081 prototype.
7082 (target_process_qsupported): Adjust.
7083
9a084706
PA
70842015-11-19 Pedro Alves <palves@redhat.com>
7085
7086 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7087 mode.
7088 * configure: Regenerate.
7089
dad44a1f
PA
70902015-11-19 Pedro Alves <palves@redhat.com>
7091
7092 * configure: Regenerate.
7093
231c0592
YQ
70942015-11-19 Yao Qi <yao.qi@linaro.org>
7095
7096 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7097 type to uint32_t.
7098
6c1c9a8b
YQ
70992015-11-19 Yao Qi <yao.qi@linaro.org>
7100
7101 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7102 (struct aarch64_operand): Move enum out.
7103
9caa3311
YQ
71042015-11-19 Yao Qi <yao.qi@linaro.org>
7105
7106 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7107 struct user_fpsimd_state *.
7108 (aarch64_store_fpregset): Likewise.
7109
6a69a054
YQ
71102015-11-19 Yao Qi <yao.qi@linaro.org>
7111
7112 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7113 struct user_pt_regs *.
7114 (aarch64_store_gregset): Likewise.
7115
1798301e
PA
71162015-11-18 Pedro Alves <palves@redhat.com>
7117
7118 * Makefile.in (all_object_files): Add $IPA_OBJS.
7119
ce7715e2
PA
71202015-11-17 Pedro Alves <palves@redhat.com>
7121
7122 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7123 GDB_SIGNAL_0 and gdb_signal_to_string.
7124
c0879059
PA
71252015-11-17 Pedro Alves <palves@redhat.com>
7126
7127 * win32-low.c (handle_output_debug_string): Remove parameter.
7128 (win32_kill): Remove our_status local and adjust call to
7129 handle_output_debug_string.
7130 (get_child_debug_event): Adjust call to
7131 handle_output_debug_string.
7132
1996e237
SM
71332015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7134
7135 * linux-mips-low.c (mips_fill_gregset): Add cast.
7136 (mips_store_gregset): Likewise.
7137 (mips_fill_fpregset): Likewise.
7138 (mips_store_fpregset): Likewise.
7139
cbec665b
SM
71402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7141
7142 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7143 priv.
7144
eb3e3c67
SM
71452015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7146
7147 * linux-mips-low.c (mips_linux_new_thread): Change type of
7148 watch_type to enum target_hw_bp_type.
7149
171de4b8
SM
71502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7151
7152 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7153 Change return type to arm_hwbp_type.
7154
04248ead
SM
71552015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7156
7157 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7158 (arm_store_gregset): Likewise.
7159 * linux-arm-low.c (arm_get_hwcap): Likewise.
7160 (arm_read_description): Likewise.
7161
04b3479c
SM
71622015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7163
7164 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7165
2bc84e8a
SM
71662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7167
7168 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7169 (ppc_fill_vsxregset): Likewise.
7170 (ppc_store_vsxregset): Likewise.
7171 (ppc_fill_vrregset): Likewise.
7172 (ppc_store_vrregset): Likewise.
7173 (ppc_fill_evrregset): Likewise.
7174 (ppc_store_evrregset): Likewise.
7175
e6c5bb05
SM
71762015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7177
7178 * linux-ppc-low.c (ppc_usrregs_info): Remove
7179 forward-declaration.
7180 (ppc_arch_setup): Move lower in file.
7181
7ea45d72
SM
71822015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7183
7184 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7185 (ps_pdwrite): Likewise.
7186
69291610
HW
71872015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7188
7189 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7190 to after assert checks.
7191
b42945fd
SM
71922015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7193
7194 * proc-service.c (ps_pdread): Add/adjust casts.
7195 (ps_pdwrite): Add/adjust casts.
7196
d6f85c84
SM
71972015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7198
7199 * server.c (handle_search_memory_1): Cast return value of
7200 memmem.
7201
f98cd059
SM
72022015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7203
7204 * server.c (write_qxfer_response): Change type of data to
7205 gdb_byte *.
7206
d2412fa5
PA
72072015-10-29 Pedro Alves <palves@redhat.com>
7208
7209 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7210
c17414a2
PA
72112015-10-29 Pedro Alves <palves@redhat.com>
7212
7213 * tracepoint.c (clear_installed_tracepoints): Add casts.
7214
e053fbc4
PA
72152015-10-29 Pedro Alves <palves@redhat.com>
7216
7217 * server.c (handle_v_cont, process_serial_event): Add enum
7218 gdb_signal casts to signal parsing code.
7219
add67df8
PA
72202015-10-29 Pedro Alves <palves@redhat.com>
7221
7222 * linux-low.h (NULL_REGSET): Define.
7223 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7224 * linux-arm-low.c (arm_regsets): Likewise.
7225 * linux-crisv32-low.c (cris_regsets): Likewise.
7226 * linux-m68k-low.c (m68k_regsets): Likewise.
7227 * linux-mips-low.c (mips_regsets): Likewise.
7228 * linux-nios2-low.c (nios2_regsets): Likewise.
7229 * linux-ppc-low.c (ppc_regsets): Likewise.
7230 * linux-s390-low.c (s390_regsets): Likewise.
7231 * linux-sh-low.c (sh_regsets): Likewise.
7232 * linux-sparc-low.c (sparc_regsets): Likewise.
7233 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7234 * linux-tile-low.c (tile_regsets): Likewise.
7235 * linux-x86-low.c (x86_regsets): Likewise.
7236 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7237
50bc912a
PA
72382015-10-29 Pedro Alves <palves@redhat.com>
7239
7240 * linux-low.h (NULL_REGSET): Define.
7241 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7242 * linux-arm-low.c (arm_regsets): Likewise.
7243 * linux-crisv32-low.c (cris_regsets): Likewise.
7244 * linux-m68k-low.c (m68k_regsets): Likewise.
7245 * linux-mips-low.c (mips_regsets): Likewise.
7246 * linux-nios2-low.c (nios2_regsets): Likewise.
7247 * linux-ppc-low.c (ppc_regsets): Likewise.
7248 * linux-s390-low.c (s390_regsets): Likewise.
7249 * linux-sh-low.c (sh_regsets): Likewise.
7250 * linux-sparc-low.c (sparc_regsets): Likewise.
7251 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7252 * linux-tile-low.c (tile_regsets): Likewise.
7253 * linux-x86-low.c (x86_regsets): Likewise.
7254 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7255
682b2546
DE
72562015-10-26 Doug Evans <dje@google.com>
7257
7258 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7259
963843d4
DE
72602015-10-26 Doug Evans <dje@google.com>
7261
7262 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7263
d41401ac
DE
72642015-10-26 Doug Evans <dje@google.com>
7265
7266 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7267 for debug_printf.
7268 (attach_thread, find_new_threads_callback): Ditto.
7269
3db28855
AT
72702015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7271
7272 * mem-break.h (set_breakpoint_data): Remove.
7273
fb78e89c
AT
72742015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7275
7276 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7277 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7278 (initialize_low): Remove set_breakpoint_data call.
7279 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7280 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7281 (initialize_low): Remove set_breakpoint_data call.
7282 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7283 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7284 (initialize_low): Remove set_breakpoint_data call.
7285
2e6ee069
AT
72862015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7287
7288 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7289 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7290 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7291 * target.h (target_breakpoint_kind_from_pc): New macro.
7292
1652a986
AT
72932015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7294
7295 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7296 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7297 the default breakpoint kind.
7298
abeead09
AT
72992015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7300
7301 * linux-arm-low.c (arm_supports_z_point_type): Add software
7302 breakpoint support.
7303
b0b4b501
AT
73042015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7305
7306 * linux-arm-low.c: Refactor breakpoint definitions.
7307 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7308 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7309
8689682c
AT
73102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7311
7312 * Makefile.in: Add arm.c/o.
7313 * configure.srv: Likewise.
7314 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7315 (arm_breakpoint_kind_from_pc): New function.
7316 (arm_sw_breakpoint_from_kind): Return proper kind.
7317 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7318
27165294
AT
73192015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7320
7321 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7322 removal.
7323 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7324 (struct raw_breakpoint) <size>: Remove.
7325 (struct raw_breakpoint) <kind>: Add.
7326 (bp_size): New function.
7327 (bp_opcode): Likewise.
7328 (find_raw_breakpoint_at): Adjust for kind.
7329 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7330 (remove_memory_breakpoint): Adjust for kind call bp_size.
7331 (set_raw_breakpoint_at): Adjust for kind.
7332 (set_breakpoint): Likewise.
7333 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7334 (delete_raw_breakpoint): Adjust for kind.
7335 (delete_breakpoint): Likewise.
7336 (find_gdb_breakpoint): Likewise.
7337 (set_gdb_breakpoint_1): Likewise.
7338 (set_gdb_breakpoint): Likewise.
7339 (delete_gdb_breakpoint_1): Likewise.
7340 (delete_gdb_breakpoint): Likewise.
7341 (uninsert_raw_breakpoint): Likewise.
7342 (reinsert_raw_breakpoint): Likewise.
7343 (set_breakpoint_data): Remove.
7344 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7345 (check_mem_read): Adjust for kind call bp_size.
7346 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7347 (clone_one_breakpoint): Adjust for kind.
7348 * mem-break.h (set_gdb_breakpoint): Likewise.
7349 (delete_gdb_breakpoint): Likewise.
7350 * server.c (process_serial_event): Likewise.
7351
dd373349
AT
73522015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7353
7354 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7355 (struct linux_target_ops) <breakpoint>: Remove.
7356 (struct linux_target_ops) <breakpoint_len>: Remove.
7357 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7358 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7359 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7360 (arm_sw_breakpoint_from_kind): New function.
7361 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7362 (struct linux_target_ops) <breakpoint>: Remove.
7363 (struct linux_target_ops) <breakpoint_len>: Remove.
7364 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7365 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7366 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7367 (struct linux_target_ops) <breakpoint>: Remove.
7368 (struct linux_target_ops) <breakpoint_len>: Remove.
7369 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7370 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7371 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7372 (struct linux_target_ops) <breakpoint>: Remove.
7373 (struct linux_target_ops) <breakpoint_len>: Remove.
7374 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7375 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7376 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7377 and sw_breakpoint_from_kind to increment the pc.
7378 (linux_breakpoint_kind_from_pc): New function.
7379 (linux_sw_breakpoint_from_kind): New function.
7380 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7381 (initialize_low): Call breakpoint_kind_from_pc and
7382 sw_breakpoint_from_kind to replace breakpoint_data/len.
7383 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7384 New field.
7385 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7386 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7387 (struct linux_target_ops) <breakpoint>: Remove.
7388 (struct linux_target_ops) <breakpoint_len>: Remove.
7389 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7390 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7391 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7392 (struct linux_target_ops) <breakpoint>: Remove.
7393 (struct linux_target_ops) <breakpoint_len>: Remove.
7394 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7395 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7396 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7397 (struct linux_target_ops) <breakpoint>: Remove.
7398 (struct linux_target_ops) <breakpoint_len>: Remove.
7399 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7400 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7401 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7402 (struct linux_target_ops) <breakpoint>: Remove.
7403 (struct linux_target_ops) <breakpoint_len>: Remove.
7404 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7405 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7406 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7407 (struct linux_target_ops) <breakpoint>: Remove.
7408 (struct linux_target_ops) <breakpoint_len>: Remove.
7409 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7410 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7411 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7412 (struct linux_target_ops) <breakpoint>: Remove.
7413 (struct linux_target_ops) <breakpoint_len>: Remove.
7414 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7415 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7416 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7417 (struct linux_target_ops) <breakpoint>: Remove.
7418 (struct linux_target_ops) <breakpoint_len>: Remove.
7419 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7420 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7421 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7422 (struct linux_target_ops) <breakpoint>: Remove.
7423 (struct linux_target_ops) <breakpoint_len>: Remove.
7424 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7425 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7426 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7427 (struct linux_target_ops) <breakpoint>: Remove.
7428 (struct linux_target_ops) <breakpoint_len>: Remove.
7429 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7430 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7431 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7432 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7433 (struct linux_target_ops) <breakpoint>: Remove.
7434 (struct linux_target_ops) <breakpoint_len>: Remove.
7435 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7436 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7437 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7438 (struct linux_target_ops) <breakpoint>: Remove.
7439 (struct linux_target_ops) <breakpoint_len>: Remove.
7440 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7441 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7442
4cd98a19
AT
74432015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7444
7445 * linux-cris-low.c (cris_get_pc): Remove void arg.
7446
774ee6d2
AR
74472015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7448
7449 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7450 variable name.
7451
833dcd29
AR
74522015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7453
7454 * inferiors.c (thread_pid_matches_callback): New function.
7455 (find_thread_process): New function.
7456 (remove_thread): Reset current_thread.
7457 (remove_process): Assert threads have been removed first.
7458
8d689ee5
YQ
74592015-10-15 Yao Qi <yao.qi@linaro.org>
7460
7461 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7462 if it is 3.
7463 (aarch64_remove_point): Likewise.
7464 * regcache.c (regcache_register_size): New function.
7465
1c2e1515
YQ
74662015-10-12 Yao Qi <yao.qi@linaro.org>
7467
7468 * linux-aarch64-low.c: Update all callers as emit_load_store
7469 is renamed to aarch64_emit_load_store.
7470
e1c587c3
YQ
74712015-10-12 Yao Qi <yao.qi@linaro.org>
7472
7473 * linux-aarch64-low.c: Update all callers of function renaming
7474 from emit_insn to aarch64_emit_insn.
7475
b6542f81
YQ
74762015-10-12 Yao Qi <yao.qi@linaro.org>
7477
7478 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7479 arch/aarch64-insn.h.
7480 (struct aarch64_memory_operand): Likewise.
7481 (ENCODE): Likewise.
7482 (emit_insn): Move to arch/aarch64-insn.c.
7483 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7484 (emit_load_store): Move to arch/aarch64-insn.c.
7485 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7486 (can_encode_int32): Remove.
7487
246994ce
YQ
74882015-10-12 Yao Qi <yao.qi@linaro.org>
7489
7490 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7491 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7492 (aarch64_relocate_instruction): Likewise.
7493 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7494 (struct aarch64_insn_visitor): Likewise.
7495
0badd99f
YQ
74962015-10-12 Yao Qi <yao.qi@linaro.org>
7497
7498 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7499 (struct aarch64_insn_visitor): New.
7500 (struct aarch64_insn_relocation_data): New.
7501 (aarch64_ftrace_insn_reloc_b): New function.
7502 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7503 (aarch64_ftrace_insn_reloc_cb): Likewise.
7504 (aarch64_ftrace_insn_reloc_tb): Likewise.
7505 (aarch64_ftrace_insn_reloc_adr): Likewise.
7506 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7507 (aarch64_ftrace_insn_reloc_others): Likewise.
7508 (visitor): New.
7509 (aarch64_relocate_instruction): Use visitor.
7510
dfaffe9d
YQ
75112015-10-12 Yao Qi <yao.qi@linaro.org>
7512
7513 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7514 int. Add argument buf.
7515 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7516 aarch64_relocate_instruction.
7517
70b439f0
YQ
75182015-10-12 Yao Qi <yao.qi@linaro.org>
7519
7520 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7521 argument insn. Remove local variable insn. Don't call
7522 target_read_uint32.
7523 (aarch64_install_fast_tracepoint_jump_pad): Call
7524 target_read_uint32.
7525
7781c06f
YQ
75262015-09-30 Yao Qi <yao.qi@linaro.org>
7527
7528 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7529 (emit_load_store_pair): Likewise.
7530
9a3c8263
SM
75312015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7532
7533 * dll.c (match_dll): Add cast(s).
7534 (unloaded_dll): Likewise.
7535 * linux-low.c (second_thread_of_pid_p): Likewise.
7536 (delete_lwp_callback): Likewise.
7537 (count_events_callback): Likewise.
7538 (select_event_lwp_callback): Likewise.
7539 (linux_set_resume_request): Likewise.
7540 * server.c (accumulate_file_name_length): Likewise.
7541 (emit_dll_description): Likewise.
7542 (handle_qxfer_threads_worker): Likewise.
7543 (visit_actioned_threads): Likewise.
7544 * thread-db.c (any_thread_of): Likewise.
7545 * tracepoint.c (same_process_p): Likewise.
7546 (match_blocktype): Likewise.
7547 (build_traceframe_info_xml): Likewise.
7548
224c3ddb
SM
75492015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7550
7551 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7552 assignment.
7553 (gdb_unparse_agent_expr): Likewise.
7554 * hostio.c (require_data): Likewise.
7555 (handle_pread): Likewise.
7556 * linux-low.c (disable_regset): Likewise.
7557 (fetch_register): Likewise.
7558 (store_register): Likewise.
7559 (get_dynamic): Likewise.
7560 (linux_qxfer_libraries_svr4): Likewise.
7561 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7562 (set_fast_tracepoint_jump): Likewise.
7563 (uninsert_fast_tracepoint_jumps_at): Likewise.
7564 (reinsert_fast_tracepoint_jumps_at): Likewise.
7565 (validate_inserted_breakpoint): Likewise.
7566 (clone_agent_expr): Likewise.
7567 * regcache.c (init_register_cache): Likewise.
7568 * remote-utils.c (putpkt_binary_1): Likewise.
7569 (decode_M_packet): Likewise.
7570 (decode_X_packet): Likewise.
7571 (look_up_one_symbol): Likewise.
7572 (relocate_instruction): Likewise.
7573 (monitor_output): Likewise.
7574 * server.c (handle_search_memory): Likewise.
7575 (handle_qxfer_exec_file): Likewise.
7576 (handle_qxfer_libraries): Likewise.
7577 (handle_qxfer): Likewise.
7578 (handle_query): Likewise.
7579 (handle_v_cont): Likewise.
7580 (handle_v_run): Likewise.
7581 (captured_main): Likewise.
7582 * target.c (write_inferior_memory): Likewise.
7583 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7584 * tracepoint.c (init_trace_buffer): Likewise.
7585 (add_tracepoint_action): Likewise.
7586 (add_traceframe): Likewise.
7587 (add_traceframe_block): Likewise.
7588 (cmd_qtdpsrc): Likewise.
7589 (cmd_qtdv): Likewise.
7590 (cmd_qtstatus): Likewise.
7591 (response_source): Likewise.
7592 (response_tsv): Likewise.
7593 (cmd_qtnotes): Likewise.
7594 (gdb_collect): Likewise.
7595 (initialize_tracepoint): Likewise.
7596
afbe19f8
PL
75972015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7598
7599 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7600 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7601 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7602 <NOP>: New.
7603 (enum aarch64_condition_codes): New enum.
7604 (w0): New static global.
7605 (fp): Likewise.
7606 (lr): Likewise.
7607 (struct aarch64_memory_operand) <type>: New
7608 MEMORY_OPERAND_POSTINDEX type.
7609 (postindex_memory_operand): New helper function.
7610 (emit_ret): New function.
7611 (emit_load_store_pair): New function, factored out of emit_stp
7612 with support for MEMORY_OPERAND_POSTINDEX.
7613 (emit_stp): Rewrite using emit_load_store_pair.
7614 (emit_ldp): New function.
7615 (emit_load_store): Likewise.
7616 (emit_ldr): Mention post-index instruction in comment.
7617 (emit_ldrh): New function.
7618 (emit_ldrb): New function.
7619 (emit_ldrsw): Mention post-index instruction in comment.
7620 (emit_str): Likewise.
7621 (emit_subs): New function.
7622 (emit_cmp): Likewise.
7623 (emit_and): Likewise.
7624 (emit_orr): Likewise.
7625 (emit_orn): Likewise.
7626 (emit_eor): Likewise.
7627 (emit_mvn): Likewise.
7628 (emit_lslv): Likewise.
7629 (emit_lsrv): Likewise.
7630 (emit_asrv): Likewise.
7631 (emit_mul): Likewise.
7632 (emit_sbfm): Likewise.
7633 (emit_sbfx): Likewise.
7634 (emit_ubfm): Likewise.
7635 (emit_ubfx): Likewise.
7636 (emit_csinc): Likewise.
7637 (emit_cset): Likewise.
7638 (emit_nop): Likewise.
7639 (emit_ops_insns): New helper function.
7640 (emit_pop): Likewise.
7641 (emit_push): Likewise.
7642 (aarch64_emit_prologue): New function.
7643 (aarch64_emit_epilogue): Likewise.
7644 (aarch64_emit_add): Likewise.
7645 (aarch64_emit_sub): Likewise.
7646 (aarch64_emit_mul): Likewise.
7647 (aarch64_emit_lsh): Likewise.
7648 (aarch64_emit_rsh_signed): Likewise.
7649 (aarch64_emit_rsh_unsigned): Likewise.
7650 (aarch64_emit_ext): Likewise.
7651 (aarch64_emit_log_not): Likewise.
7652 (aarch64_emit_bit_and): Likewise.
7653 (aarch64_emit_bit_or): Likewise.
7654 (aarch64_emit_bit_xor): Likewise.
7655 (aarch64_emit_bit_not): Likewise.
7656 (aarch64_emit_equal): Likewise.
7657 (aarch64_emit_less_signed): Likewise.
7658 (aarch64_emit_less_unsigned): Likewise.
7659 (aarch64_emit_ref): Likewise.
7660 (aarch64_emit_if_goto): Likewise.
7661 (aarch64_emit_goto): Likewise.
7662 (aarch64_write_goto_address): Likewise.
7663 (aarch64_emit_const): Likewise.
7664 (aarch64_emit_call): Likewise.
7665 (aarch64_emit_reg): Likewise.
7666 (aarch64_emit_pop): Likewise.
7667 (aarch64_emit_stack_flush): Likewise.
7668 (aarch64_emit_zero_ext): Likewise.
7669 (aarch64_emit_swap): Likewise.
7670 (aarch64_emit_stack_adjust): Likewise.
7671 (aarch64_emit_int_call_1): Likewise.
7672 (aarch64_emit_void_call_2): Likewise.
7673 (aarch64_emit_eq_goto): Likewise.
7674 (aarch64_emit_ne_goto): Likewise.
7675 (aarch64_emit_lt_goto): Likewise.
7676 (aarch64_emit_le_goto): Likewise.
7677 (aarch64_emit_gt_goto): Likewise.
7678 (aarch64_emit_ge_got): Likewise.
7679 (aarch64_emit_ops_impl): New static global variable.
7680 (aarch64_emit_ops): New target function, return
7681 &aarch64_emit_ops_impl.
7682 (struct linux_target_ops): Install it.
7683
bb903df0
PL
76842015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7685
7686 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7687 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7688 aarch64-ipa.o.
7689 * linux-aarch64-ipa.c: New file.
7690 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7691 and endian.h.
7692 (aarch64_get_thread_area): New target method.
7693 (extract_signed_bitfield): New helper function.
7694 (aarch64_decode_ldr_literal): New function.
7695 (enum aarch64_opcodes): New enum.
7696 (struct aarch64_register): New struct.
7697 (struct aarch64_operand): New struct.
7698 (x0): New static global.
7699 (x1): Likewise.
7700 (x2): Likewise.
7701 (x3): Likewise.
7702 (x4): Likewise.
7703 (w2): Likewise.
7704 (ip0): Likewise.
7705 (sp): Likewise.
7706 (xzr): Likewise.
7707 (aarch64_register): New helper function.
7708 (register_operand): Likewise.
7709 (immediate_operand): Likewise.
7710 (struct aarch64_memory_operand): New struct.
7711 (offset_memory_operand): New helper function.
7712 (preindex_memory_operand): Likewise.
7713 (enum aarch64_system_control_registers): New enum.
7714 (ENCODE): New macro.
7715 (emit_insn): New helper function.
7716 (emit_b): New function.
7717 (emit_bcond): Likewise.
7718 (emit_cb): Likewise.
7719 (emit_tb): Likewise.
7720 (emit_blr): Likewise.
7721 (emit_stp): Likewise.
7722 (emit_ldp_q_offset): Likewise.
7723 (emit_stp_q_offset): Likewise.
7724 (emit_load_store): Likewise.
7725 (emit_ldr): Likewise.
7726 (emit_ldrsw): Likewise.
7727 (emit_str): Likewise.
7728 (emit_ldaxr): Likewise.
7729 (emit_stxr): Likewise.
7730 (emit_stlr): Likewise.
7731 (emit_data_processing_reg): Likewise.
7732 (emit_data_processing): Likewise.
7733 (emit_add): Likewise.
7734 (emit_sub): Likewise.
7735 (emit_mov): Likewise.
7736 (emit_movk): Likewise.
7737 (emit_mov_addr): Likewise.
7738 (emit_mrs): Likewise.
7739 (emit_msr): Likewise.
7740 (emit_sevl): Likewise.
7741 (emit_wfe): Likewise.
7742 (append_insns): Likewise.
7743 (can_encode_int32_in): New helper function.
7744 (aarch64_relocate_instruction): New function.
7745 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7746 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7747 (struct linux_target_ops): Install aarch64_get_thread_area,
7748 aarch64_install_fast_tracepoint_jump_pad and
7749 aarch64_get_min_fast_tracepoint_insn_len.
7750
787749ea
PL
77512015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7752
7753 * Makefile.in (aarch64-insn.o): New rule.
7754 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7755
9812b2e6
YQ
77562015-09-21 Yao Qi <yao.qi@linaro.org>
7757
7758 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7759
18fe412b
YQ
77602015-09-21 Yao Qi <yao.qi@linaro.org>
7761
7762 * tracepoint.c (max_jump_pad_size): Remove.
7763
a0cc84cd
YQ
77642015-09-18 Yao Qi <yao.qi@linaro.org>
7765
7766 * linux-aarch64-low.c: Don't include sys/uio.h.
7767 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7768
d78908cf
WW
77692015-09-16 Wei-cheng Wang <cole945@gmail.com>
7770
7771 * tracepoint.c (eval_result_type): Change prototype.
7772 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7773
d57e0d50
PA
77742015-09-15 Pedro Alves <palves@redhat.com>
7775
7776 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7777 Check whether to report exec events instead of checking whether
7778 multiprocess is enabled.
7779
5a676acc
PA
77802015-09-15 Pedro Alves <palves@redhat.com>
7781
7782 PR remote/18965
7783 * remote-utils.c (prepare_resume_reply): Merge
7784 TARGET_WAITKIND_VFORK_DONE switch case with the
7785 TARGET_WAITKIND_FORKED case.
7786
7c5d0fad
YQ
77872015-09-15 Yao Qi <yao.qi@linaro.org>
7788
7789 * server.c (handle_query): Check string comparison using
7790 "else if" instead of "if".
7791
750ce8d1
YQ
77922015-09-15 Yao Qi <yao.qi@linaro.org>
7793
7794 * server.c (vCont_supported): New global variable.
7795 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7796 matches. Append ";vContSupported+" to own_buf.
7797 (handle_v_requests): Append ";s;S" to own_buf if target supports
7798 hardware single step or vCont_supported is false.
7799 (capture_main): Set vCont_supported to zero.
7800
70b90b91
YQ
78012015-09-15 Yao Qi <yao.qi@linaro.org>
7802
7803 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7804 it to ...
7805 (linux_supports_hardware_single_step): ... New function.
7806 (linux_target_ops): Update.
7807 * lynx-low.c (lynx_target_ops): Set field
7808 supports_hardware_single_step to target_can_do_hardware_single_step.
7809 * nto-low.c (nto_target_ops): Likewise.
7810 * spu-low.c (spu_target_ops): Likewise.
7811 * win32-low.c (win32_target_ops): Likewise.
7812 * target.c (target_can_do_hardware_single_step): New function.
7813 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7814 Remove. <supports_hardware_single_step>: New field.
7815 (target_supports_conditional_breakpoints): Remove.
7816 (target_supports_hardware_single_step): New macro.
7817 (target_can_do_hardware_single_step): Declare.
7818 * server.c (handle_query): Use target_supports_hardware_single_step
7819 instead of target_supports_conditional_breakpoints.
7820
ade90bde
YQ
78212015-09-15 Yao Qi <yao.qi@linaro.org>
7822
7823 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7824 function.
7825 (struct linux_target_ops the_low_target): Install
7826 aarch64_linux_siginfo_fixup.
7827
94585166
DB
78282015-09-11 Don Breazeal <donb@codesourcery.com>
7829 Luis Machado <lgustavo@codesourcery.com>
7830
7831 * linux-low.c (linux_mourn): Static declaration.
7832 (linux_arch_setup): Move in front of
7833 handle_extended_wait.
7834 (linux_arch_setup_thread): New function.
7835 (handle_extended_wait): Handle exec events. Call
7836 linux_arch_setup_thread. Make event_lwp argument a
7837 pointer-to-a-pointer.
7838 (check_zombie_leaders): Do not check stopped threads.
7839 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7840 (linux_low_filter_event): Add lwp and thread for exec'ing
7841 non-leader thread if leader thread has been deleted.
7842 Refactor code into linux_arch_setup_thread and call it.
7843 Pass child lwp pointer by reference to handle_extended_wait.
7844 (linux_wait_for_event_filtered): Update comment.
7845 (linux_wait_1): Prevent clobbering exec event status.
7846 (linux_supports_exec_events): New function.
7847 (linux_target_ops) <supports_exec_events>: Initialize new member.
7848 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7849 new member.
7850 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7851 * server.c (report_exec_events): New global variable.
7852 (handle_query): Handle qSupported query for exec-events feature.
7853 (captured_main): Initialize report_exec_events.
7854 * server.h (report_exec_events): Declare new global variable.
7855 * target.h (struct target_ops) <supports_exec_events>: New
7856 member.
7857 (target_supports_exec_events): New macro.
7858 * win32-low.c (win32_target_ops) <supports_exec_events>:
7859 Initialize new member.
7860
0568462b
MM
78612015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7862
7863 * linux-low.c (linux_low_enable_btrace): Remove.
7864 (linux_target_ops): Replace linux_low_enable_btrace with
7865 linux_enable_btrace.
7866
39edd165
YQ
78672015-09-03 Yao Qi <yao.qi@linaro.org>
7868
7869 * linux-aarch64-low.c (aarch64_insert_point): Call
7870 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7871 returns true.
7872
1db33b5a
UW
78732015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7874
7875 * linux-low.c (check_stopped_by_breakpoint): Use
7876 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7877
ab290430
PA
78782015-08-27 Pedro Alves <palves@redhat.com>
7879
7880 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7881
8d749320
SM
78822015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7883
6711b7f8
SM
7884 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7885 the XNEW-family equivalent.
8d749320
SM
7886 (compile_bytecodes): Likewise.
7887 * dll.c (loaded_dll): Likewise.
7888 * event-loop.c (append_callback_event): Likewise.
7889 (create_file_handler): Likewise.
7890 (create_file_event): Likewise.
7891 * hostio.c (handle_open): Likewise.
7892 * inferiors.c (add_thread): Likewise.
7893 (add_process): Likewise.
7894 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7895 * linux-arm-low.c (arm_new_process): Likewise.
7896 (arm_new_thread): Likewise.
7897 * linux-low.c (add_to_pid_list): Likewise.
7898 (linux_add_process): Likewise.
7899 (handle_extended_wait): Likewise.
7900 (add_lwp): Likewise.
7901 (enqueue_one_deferred_signal): Likewise.
7902 (enqueue_pending_signal): Likewise.
7903 (linux_resume_one_lwp_throw): Likewise.
7904 (linux_resume_one_thread): Likewise.
7905 (linux_read_memory): Likewise.
7906 (linux_write_memory): Likewise.
7907 * linux-mips-low.c (mips_linux_new_process): Likewise.
7908 (mips_linux_new_thread): Likewise.
7909 (mips_add_watchpoint): Likewise.
7910 * linux-x86-low.c (initialize_low_arch): Likewise.
7911 * lynx-low.c (lynx_add_process): Likewise.
7912 * mem-break.c (set_raw_breakpoint_at): Likewise.
7913 (set_breakpoint): Likewise.
7914 (add_condition_to_breakpoint): Likewise.
7915 (add_commands_to_breakpoint): Likewise.
7916 (clone_agent_expr): Likewise.
7917 (clone_one_breakpoint): Likewise.
7918 * regcache.c (new_register_cache): Likewise.
7919 * remote-utils.c (look_up_one_symbol): Likewise.
7920 * server.c (queue_stop_reply): Likewise.
7921 (start_inferior): Likewise.
7922 (queue_stop_reply_callback): Likewise.
7923 (handle_target_event): Likewise.
7924 * spu-low.c (fetch_ppc_memory): Likewise.
7925 (store_ppc_memory): Likewise.
7926 * target.c (set_target_ops): Likewise.
7927 * thread-db.c (thread_db_load_search): Likewise.
7928 (try_thread_db_load_1): Likewise.
7929 * tracepoint.c (add_tracepoint): Likewise.
7930 (add_tracepoint_action): Likewise.
7931 (create_trace_state_variable): Likewise.
7932 (cmd_qtdpsrc): Likewise.
7933 (cmd_qtro): Likewise.
7934 (add_while_stepping_state): Likewise.
7935 * win32-low.c (child_add_thread): Likewise.
7936 (get_image_name): Likewise.
7937
ed8b7b42
YQ
79382015-08-25 Yao Qi <yao.qi@linaro.org>
7939
7940 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7941
db3cb7cb
YQ
79422015-08-25 Yao Qi <yao.qi@linaro.org>
7943
7944 * Makefile.in (aarch64-linux.o): New rule.
7945 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7946 srv_tgtobj.
7947 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7948 (aarch64_init_debug_reg_state): Make it extern.
7949 (aarch64_linux_prepare_to_resume): Remove.
7950
f6011a1c
YQ
79512015-08-25 Yao Qi <yao.qi@linaro.org>
7952
7953 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7954 lwp_arch_private_info and ptid_of_lwp.
7955
88e2cf7e
YQ
79562015-08-25 Yao Qi <yao.qi@linaro.org>
7957
7958 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7959 Find proc_info by find_process_pid. All callers updated.
7960
5e35436e
YQ
79612015-08-25 Yao Qi <yao.qi@linaro.org>
7962
7963 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7964 Remove.
7965 (debug_reg_change_callback): Remove.
7966 (aarch64_notify_debug_reg_change): Remove.
7967
4a8a7965
YQ
79682015-08-25 Yao Qi <yao.qi@linaro.org>
7969
7970 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7971 Call current_lwp_ptid.
7972
32a271ee
YQ
79732015-08-25 Yao Qi <yao.qi@linaro.org>
7974
7975 * linux-aarch64-low.c (debug_reg_change_callback): Use
7976 debug_printf.
7977
0d51c8d7
YQ
79782015-08-25 Yao Qi <yao.qi@linaro.org>
7979
7980 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7981
31a43dd5
YQ
79822015-08-25 Yao Qi <yao.qi@linaro.org>
7983
7984 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7985
8ee52567
YQ
79862015-08-25 Yao Qi <yao.qi@linaro.org>
7987
7988 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7989 the code.
7990
ff3f0f45
YQ
79912015-08-25 Yao Qi <yao.qi@linaro.org>
7992
7993 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7994 Remove.
7995 (debug_reg_change_callback): Remove argument entry and add argument
7996 lwp. Remove local variable thread. Don't print thread id in the
7997 debugging output. Don't check whether pid of thread equals to pid.
7998 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7999 iterate_over_lwps instead find_inferior.
8000
3d40fbb5
PA
80012015-08-24 Pedro Alves <palves@redhat.com>
8002
8003 * inferiors.c (get_first_process): New function.
8004 * inferiors.h (get_first_process): New declaration.
8005 * remote-utils.c (read_ptid): Default to the first process in the
8006 list, instead of to the current thread's process.
8007
438e1e42
PA
80082015-08-24 Pedro Alves <palves@redhat.com>
8009
8010 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8011 * event-loop.c: Likewise.
8012 * remote-utils.c: Likewise.
8013 * tracepoint.c: Likewise.
8014
a8c6d4fc
PA
80152015-08-24 Pedro Alves <palves@redhat.com>
8016
8017 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8018 ptid_get_lwp.
8019
99b0bb12
PA
80202015-08-21 Pedro Alves <palves@redhat.com>
8021
8022 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8023 instead of literal 1.
8024
f8904751
PA
80252015-08-21 Pedro Alves <palves@redhat.com>
8026
8027 * tdesc.c (default_description): Explicitly zero-initialize.
8028
465a859e
PA
80292015-08-21 Pedro Alves <palves@redhat.com>
8030
8031 PR gdb/18749
8032 * inferiors.c (remove_thread): Discard any pending stop reply for
8033 this thread.
8034 * server.c (remove_all_on_match_pid): Rename to ...
8035 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8036 instead of a pid.
8037 (discard_queued_stop_replies): Change parameter to a ptid. Now
8038 extern.
8039 (handle_v_kill, kill_inferior_callback, captured_main)
8040 (process_serial_event): Adjust.
8041 * server.h (discard_queued_stop_replies): Declare.
8042
f0db101d
PA
80432015-08-21 Pedro Alves <palves@redhat.com>
8044
8045 * linux-low.c (wait_for_sigstop): Always switch to no thread
8046 selected if the previously current thread dies.
8047 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8048 process instead of the current thread's.
8049 * remote-utils.c (input_interrupt): Don't check if there's no
8050 current thread.
8051 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8052 current thread to the general thread fails, error out.
8053 (handle_qxfer_auxv, handle_qxfer_libraries)
8054 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8055 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8056 (handle_query): Check if there's a thread selected instead of
8057 checking whether there's any thread in the thread list.
8058 (handle_qxfer_threads, handle_qxfer_btrace)
8059 (handle_qxfer_btrace_conf): Don't error out early if there's no
8060 thread in the thread list.
8061 (handle_v_cont, myresume): Don't set the current thread to the
8062 continue thread.
8063 (process_serial_event) <Hg handling>: Also set thread_id if the
8064 previous general thread is still alive.
8065 (process_serial_event) <g/G handling>: If setting the current
8066 thread to the general thread fails, error out.
8067 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8068 thread's lwp instead of the current thread's.
8069 * target.c (set_desired_thread): If the desired thread was not
8070 found, leave the current thread pointing to NULL. Return an int
8071 (boolean) indicating success.
8072 * target.h (set_desired_thread): Change return type to int.
8073
40045d91
MF
80742015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8075
8076 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8077 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8078 #includes.
8079 (ps_get_thread_area): New function.
8080
45face3b
GB
80812015-08-19 Gary Benson <gbenson@redhat.com>
8082
8083 * hostio.c (handle_pread): Do not attempt to read more data
8084 than hostio_reply_with_data can fit in a packet.
8085
16d5f642
JB
80862015-08-18 Joel Brobecker <brobecker@adacore.com>
8087
8088 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8089
a738da3a
MF
80902015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8091
8092 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8093
33ebda9d
PA
80942015-08-06 Pedro Alves <palves@redhat.com>
8095
8096 * tracepoint.c (expr_eval_result): Now an int.
8097
a44892be
PA
80982015-08-06 Pedro Alves <palves@redhat.com>
8099
8100 * gdbthread.h (struct regcache): Forward declare.
8101 (struct thread_info) <regcache_data>: Now a struct regcache
8102 pointer.
8103 * inferiors.c (inferior_regcache_data)
8104 (set_inferior_regcache_data): Now work with struct regcache
8105 pointers.
8106 * inferiors.h (struct regcache): Forward declare.
8107 (inferior_regcache_data, set_inferior_regcache_data): Now work
8108 with struct regcache pointers.
8109 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8110 (free_register_cache_thread): Remove struct regcache pointer
8111 casts.
8112
608a1e46
PA
81132015-08-06 Pedro Alves <palves@redhat.com>
8114
8115 * server.c (captured_main): On error, print the exception message
8116 to stderr, and if run_once is set, throw a quit.
8117
f0ce0d3a
PA
81182015-08-06 Pedro Alves <palves@redhat.com>
8119
8120 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8121 the current thread.
8122
bf47e248
PA
81232015-08-06 Pedro Alves <palves@redhat.com>
8124
8125 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8126 reading beyond the passed in buffer length.
8127
b6b9ffcc
PL
81282015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8129
8130 * tracepoint.c (symbol_list) <required>: Remove.
8131
863d01bd
PA
81322015-08-06 Pedro Alves <palves@redhat.com>
8133
8134 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8135 count if stopping and suspending threads.
8136 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8137 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8138 (linux_detach): Complete an ongoing step-over.
8139 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8140 throughout.
8141 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8142 (linux_wait_1): If passing a signal to the inferior after
8143 finishing a step-over, unsuspend and re-resume all lwps. If we
8144 see a single-step event but the thread should be continuing, don't
8145 pass the trap to gdb.
8146 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8147 internal_error instead of gdb_assert.
8148 (enqueue_pending_signal): New function.
8149 (check_ptrace_stopped_lwp_gone): Add debug output.
8150 (start_step_over): Use internal_error instead of gdb_assert.
8151 (complete_ongoing_step_over): New function.
8152 (linux_resume_one_thread): Don't resume a suspended thread.
8153 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8154 it stepping.
8155
00db26fa
PA
81562015-08-06 Pedro Alves <palves@redhat.com>
8157
8158 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8159 (linux_thread_alive): Use lwp_is_marked_dead.
8160 (extended_event_reported): Delete.
8161 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8162 instead of extended_event_reported.
8163 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8164 as well.
8165 (lwp_is_marked_dead): New function.
8166 (lwp_running): Use lwp_is_marked_dead.
8167 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8168 comment.
8169
ad071a30
PA
81702015-08-06 Pedro Alves <palves@redhat.com>
8171
8172 * linux-low.c (linux_wait_1): Move fork event output out of the
8173 !report_to_gdb check. Pass event_child->waitstatus to
8174 target_waitstatus_to_string instead of ourstatus.
8175
524b57e6
YQ
81762015-08-04 Yao Qi <yao.qi@linaro.org>
8177
8178 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8179 if current_thread is 32 bit.
8180
6085d6f6
YQ
81812015-08-04 Yao Qi <yao.qi@linaro.org>
8182
8183 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8184 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8185 * server.c (extended_protocol): Remove "static".
8186 * server.h (extended_protocol): Declare it.
8187
8a7e4587
YQ
81882015-08-04 Yao Qi <yao.qi@linaro.org>
8189
8190 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8191 both aarch64 and aarch32.
8192 (aarch64_set_pc): Likewise.
8193
3b53ae99
YQ
81942015-08-04 Yao Qi <yao.qi@linaro.org>
8195
8196 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8197 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8198 arm-with-neon.xml to srv_xmlfiles.
8199 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8200 (is_64bit_tdesc): New function.
8201 (aarch64_linux_read_description): New function.
8202 (aarch64_arch_setup): Call aarch64_linux_read_description.
8203 (regs_info): Rename to regs_info_aarch64.
8204 (aarch64_regs_info): Return right regs_info.
8205 (initialize_low_arch): Call initialize_low_arch_aarch32.
8206
bd9e6534
YQ
82072015-08-04 Yao Qi <yao.qi@linaro.org>
8208
8209 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8210 * linux-aarch32-low.c: New file.
8211 * linux-aarch32-low.h: New file.
8212 * linux-arm-low.c (arm_fill_gregset): Move it to
8213 linux-aarch32-low.c.
8214 (arm_store_gregset): Likewise.
8215 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8216 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8217 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8218 (regs_info): Rename to regs_info_arm.
8219 (arm_regs_info): Return regs_info_aarch32 if
8220 have_ptrace_getregset is 1 and target description is
8221 arm_with_neon or arm_with_vfpv3.
8222 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8223 Call initialize_low_arch_aarch32 instead.
8224
ded48a5e
YQ
82252015-08-04 Yao Qi <yao.qi@linaro.org>
8226
8227 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8228 * linux-low.c: ... here.
8229 * linux-low.h (have_ptrace_getregset): Declare it.
8230
96e9210f
PA
82312015-08-04 Pedro Alves <palves@redhat.com>
8232
8233 * thread-db.c (struct thread_db): Use new typedefs.
8234 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8235 CHK calls.
8236 (disable_thread_event_reporting): Cast result of dlsym to
8237 destination function pointer type.
8238 (thread_db_mourn): Use td_ta_delete_ftype.
8239
af60a1ef
SL
82402015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8241
8242 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8243 arch variant.
8244 (CDX_BREAKPOINT): Define for R2.
8245 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8246 (the_low_target): Add comments.
8247
e8b41681
YQ
82482015-07-30 Yao Qi <yao.qi@linaro.org>
8249
8250 * linux-arm-low.c (arm_hwcap): Remove it.
8251 (arm_read_description): New local variable arm_hwcap. Don't
8252 set arm_hwcap to zero.
8253
89abb039
YQ
82542015-07-30 Yao Qi <yao.qi@linaro.org>
8255
8256 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8257 Use regcache->tdesc instead.
8258 (arm_store_wmmxregset): Likewise.
8259 (arm_fill_vfpregset): Likewise.
8260 (arm_store_vfpregset): Likewise.
8261
deca266c
YQ
82622015-07-30 Yao Qi <yao.qi@linaro.org>
8263
8264 * linux-arm-low.c: Include arch/arm.h.
8265 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8266 (arm_store_gregset): Likewise.
8267
aa58a496
SM
82682015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8269
8270 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8271 ptrace's 4th parameter.
8272
50904b25
YQ
82732015-07-27 Yao Qi <yao.qi@linaro.org>
8274
8275 * configure.srv (case aarch64*-*-linux*): Don't set
8276 srv_linux_usrregs.
8277
5826e159
PA
82782015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8279
8280 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8281 sys/ptrace.h.
8282 * linux-arm-low.c: Likewise.
8283 * linux-cris-low.c: Likewise.
8284 * linux-crisv32-low.c: Likewise.
8285 * linux-low.c: Likewise.
8286 * linux-m68k-low.c: Likewise.
8287 * linux-mips-low.c: Likewise.
8288 * linux-nios2-low.c: Likewise.
8289 * linux-s390-low.c: Likewise.
8290 * linux-sparc-low.c: Likewise.
8291 * linux-tic6x-low.c: Likewise.
8292 * linux-tile-low.c: Likewise.
8293 * linux-x86-low.c: Likewise.
8294
54019719
PA
82952015-07-24 Pedro Alves <palves@redhat.com>
8296
8297 * config.in: Regenerate.
8298 * configure: Regenerate.
8299
eb7aa561
PA
83002015-07-24 Pedro Alves <palves@redhat.com>
8301
8302 * acinclude.m4: Include ../ptrace.m4.
8303 * configure.ac: Call GDB_AC_PTRACE.
8304 * config.in, configure: Regenerate.
8305
55d7b841
YQ
83062015-07-24 Yao Qi <yao.qi@linaro.org>
8307
8308 * linux-low.c (linux_create_inferior): Remove setting to
8309 proc->priv->new_inferior.
8310 (linux_attach): Likewise.
8311 (linux_low_filter_event): Likewise.
8312 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8313
c06cbd92
YQ
83142015-07-24 Yao Qi <yao.qi@linaro.org>
8315
8316 * linux-low.c (linux_arch_setup): New function.
8317 (linux_low_filter_event): If proc->tdesc is NULL and
8318 proc->attached is true, call the_low_target.arch_setup.
8319 Otherwise, keep status pending, and return.
8320 (linux_resume_one_lwp_throw): Don't call get_pc if
8321 thread->while_stepping isn't NULL. Don't call
8322 get_thread_regcache if proc->tdesc is NULL.
8323 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8324 (linux_target_ops): Install arch_setup.
8325 * server.c (start_inferior): Call the_target->arch_setup.
8326 * target.h (struct target_ops) <arch_setup>: New field.
8327 (target_arch_setup): New marco.
8328 * lynx-low.c (lynx_target_ops): Update.
8329 * nto-low.c (nto_target_ops): Update.
8330 * spu-low.c (spu_target_ops): Update.
8331 * win32-low.c (win32_target_ops): Update.
8332
5ae3ebba
YQ
83332015-07-24 Yao Qi <yao.qi@linaro.org>
8334
8335 * linux-low.c (linux_add_process): Don't set
8336 proc->priv->new_inferior.
8337 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8338 (linux_attach): Likewise.
8339
eb97750b
YQ
83402015-07-24 Yao Qi <yao.qi@linaro.org>
8341
8342 * server.c (start_inferior): Code refactor.
8343
51aee833
YQ
83442015-07-24 Yao Qi <yao.qi@linaro.org>
8345
8346 * server.c (process_serial_event): Set general_thread.
8347
af1b22f3
YQ
83482015-07-21 Yao Qi <yao.qi@linaro.org>
8349
8350 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8351 aarch64_linux_get_debug_reg_capacity.
8352
554717a3
YQ
83532015-07-17 Yao Qi <yao.qi@linaro.org>
8354
8355 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8356 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8357 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8358 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8359 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8360 (AARCH64_HWP_ALIGNMENT): Likewise.
8361 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8362 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8363 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8364 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8365 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8366 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8367 (struct aarch64_debug_reg_state): Likewise.
8368 (struct arch_lwp_info): Likewise.
8369 (aarch64_align_watchpoint): Likewise.
8370 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8371 (aarch64_watchpoint_length): Likewise.
8372 (aarch64_point_encode_ctrl_reg): Likewise
8373 (aarch64_point_is_aligned): Likewise.
8374 (aarch64_align_watchpoint): Likewise.
8375 (aarch64_linux_set_debug_regs):
8376 (aarch64_dr_state_insert_one_point): Likewise.
8377 (aarch64_dr_state_remove_one_point): Likewise.
8378 (aarch64_handle_breakpoint): Likewise.
8379 (aarch64_handle_aligned_watchpoint): Likewise.
8380 (aarch64_handle_unaligned_watchpoint): Likewise.
8381 (aarch64_handle_watchpoint): Likewise.
8382
c67ca4de
YQ
83832015-07-17 Yao Qi <yao.qi@linaro.org>
8384
8385 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8386 and don't aarch64_get_debug_reg_state. All callers update.
8387 (aarch64_handle_aligned_watchpoint): Likewise.
8388 (aarch64_handle_unaligned_watchpoint): Likewise.
8389 (aarch64_handle_watchpoint): Likewise.
8390 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8391 (aarch64_remove_point): Likewise.
8392
25abf979
YQ
83932015-07-17 Yao Qi <yao.qi@linaro.org>
8394
8395 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8396 debug_printf.
8397 (aarch64_handle_unaligned_watchpoint): Likewise.
8398
db1ff28b
JK
83992015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8400
8401 Revert the previous 3 commits:
8402 Move gdb_regex* to common/
8403 Move linux_find_memory_regions_full & co.
8404 gdbserver build-id attribute generator
8405
700ca40f
JK
84062015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8407 Jan Kratochvil <jan.kratochvil@redhat.com>
8408
8409 gdbserver build-id attribute generator.
8410 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8411 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8412 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8413 (find_phdr): New.
8414 (get_dynamic): Use find_pdhr to traverse program headers.
8415 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8416 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8417 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8418 (get_hex_build_id): New.
8419 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8420 to reply XML document.
8421
9904185c
JK
84222015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8423 Jan Kratochvil <jan.kratochvil@redhat.com>
8424
8425 * target.c: Include target/target-utils.h and fcntl.h.
8426 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8427 (target_fileio_read_stralloc): New functions.
8428
6e5b4429
JK
84292015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8430
8431 * Makefile.in (OBS): Add gdb_regex.o.
8432 (gdb_regex.o): New.
8433 * config.in: Rebuilt.
8434 * configure: Rebuilt.
8435
ddc98fbf
JK
84362015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8437 Jan Kratochvil <jan.kratochvil@redhat.com>
8438
8439 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8440 * Makefile.in (OBS): Add target-utils.o.
8441 (linux-maps.o, target-utils.o): New.
8442 * configure.srv (srv_linux_obj): Add linux-maps.o.
8443
e57bb7a0
PL
84442015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8445
8446 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8447 function, return 1.
8448 (the_low_target): Install it.
8449
586b02a9
PA
84502015-07-14 Pedro Alves <palves@redhat.com>
8451
8452 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8453 Instead, ignore ECHILD, and throw an error for other errnos.
8454
58c1b36c
PA
84552015-07-10 Pedro Alves <palves@redhat.com>
8456
8457 * event-loop.c (struct callback_event) <data>: Change type to
8458 gdb_client_data instance instead of gdb_client_data pointer.
8459 (append_callback_event): Adjust.
8460
421530db
PL
84612015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8462
8463 * linux-aarch64-low.c: Add comments for each linux_target_ops
8464 method. Remove comments already covered in target_ops and
8465 linux_target_ops definitions.
8466 (the_low_target): Add comments for each unimplemented method.
8467
c2d65f38
YQ
84682015-07-09 Yao Qi <yao.qi@linaro.org>
8469
8470 * linux-aarch64-low.c (aarch64_regmap): Remove.
8471 (aarch64_usrregs_info): Remove.
8472 (regs_info): Set field usrregs to NULL.
8473
b20a6524
MM
84742015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8475
8476 * linux-low.c: Include "rsp-low.h"
8477 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8478 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8479 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8480 (handle_btrace_enable_pt): New.
8481 (handle_btrace_general_set): Support "pt".
8482 (handle_btrace_conf_general_set): Support "pt:size".
8483
96c97461
PL
84842015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8485
8486 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8487 Z_PACKET_SW_BP.
8488
37d66942
PL
84892015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8490
8491 * linux-aarch64-low.c: Remove comment about endianness.
8492 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8493 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8494 memcmp.
8495
dc06243f
GB
84962015-06-24 Gary Benson <gbenson@redhat.com>
8497
8498 * linux-i386-ipa.c (stdint.h): Do not include.
8499 * lynx-i386-low.c (stdint.h): Likewise.
8500 * lynx-ppc-low.c (stdint.h): Likewise.
8501 * mem-break.c (stdint.h): Likewise.
8502 * thread-db.c (stdint.h): Likewise.
8503 * tracepoint.c (stdint.h): Likewise.
8504 * win32-low.c (stdint.h): Likewise.
8505
124e13d9
SM
85062015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8507
8508 * server.c (write_qxfer_response): Update call to
8509 remote_escape_output.
8510
909c2cda
JK
85112015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8512 Jan Kratochvil <jan.kratochvil@redhat.com>
8513
8514 Merge multiple hex conversions.
8515 * gdbreplay.c (tohex): Rename to 'fromhex'.
8516 (logchar): Use fromhex.
8517
24c05f46
JK
85182015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8519
8520 * server.c (handle_qxfer_libraries): Set `version' attribute for
8521 <library-list>.
8522
14d2069a
GB
85232015-06-10 Gary Benson <gbenson@redhat.com>
8524
8525 * target.h (struct target_ops) <multifs_open>: New field.
8526 <multifs_unlink>: Likewise.
8527 <multifs_readlink>: Likewise.
8528 * linux-low.c (nat/linux-namespaces.h): New include.
8529 (linux_target_ops): Initialize the_target->multifs_open,
8530 the_target->multifs_unlink and the_target->multifs_readlink.
8531 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8532 * hostio.c (hostio_fs_pid): New static variable.
8533 (hostio_handle_new_gdb_connection): New function.
8534 (handle_setfs): Likewise.
8535 (handle_open): Use the_target->multifs_open as appropriate.
8536 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8537 (handle_readlink): Use the_target->multifs_readlink as
8538 appropriate.
8539 (handle_vFile): Handle vFile:setfs packets.
8540 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8541 after target_handle_new_gdb_connection.
8542
4b8b5e72
GB
85432015-06-10 Gary Benson <gbenson@redhat.com>
8544
8545 * configure.ac (AC_CHECK_FUNCS): Add setns.
8546 * config.in: Regenerate.
8547 * configure: Likewise.
8548 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8549 (linux-namespaces.o): New rule.
8550 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8551
3ac2e371
GB
85522015-06-09 Gary Benson <gbenson@redhat.com>
8553
8554 * hostio.c (handle_open): Process mode argument with
8555 fileio_to_host_mode.
8556
ca9b78ce
YQ
85572015-06-01 Yao Qi <yao.qi@linaro.org>
8558
8559 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8560 * linux-x86-low.c: Likewise.
8561
bfacd19d
DB
85622015-05-28 Don Breazeal <donb@codesourcery.com>
8563
8564 * linux-low.c (handle_extended_wait): Initialize
8565 thread_info.last_resume_kind for new fork children.
8566
452003ef
PA
85672015-05-15 Pedro Alves <palves@redhat.com>
8568
8569 * target.h (target_handle_new_gdb_connection): Rewrite using if
8570 wrapped in do/while.
8571
1041a03c
JB
85722015-05-14 Joel Brobecker <brobecker@adacore.com>
8573
8574 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8575 * configure, config.in: Regenerate.
8576 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8577 Declare typedef.
8578
c269dbdb
DB
85792015-05-12 Don Breazeal <donb@codesourcery.com>
8580
8581 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8582 PTRACE_EVENT_VFORK_DONE.
8583 (linux_low_ptrace_options, extended_event_reported): Add vfork
8584 events.
8585 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8586 and "vforkdone" for RSP 'T' Stop Reply Packet.
8587 * server.h (report_vfork_events): Declare
8588 global variable.
8589
3a8a0396
DB
85902015-05-12 Don Breazeal <donb@codesourcery.com>
8591
8592 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8593 (the_low_target) <new_fork>: Initialize new member.
8594 * linux-arm-low.c (arm_new_fork): New function.
8595 (the_low_target) <new_fork>: Initialize new member.
8596 * linux-low.c (handle_extended_wait): Call new target function
8597 new_fork.
8598 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8599 * linux-mips-low.c (mips_add_watchpoint): New function
8600 extracted from mips_insert_point.
8601 (the_low_target) <new_fork>: Initialize new member.
8602 (mips_linux_new_fork): New function.
8603 (mips_insert_point): Call mips_add_watchpoint.
8604 * linux-x86-low.c (x86_linux_new_fork): New function.
8605 (the_low_target) <new_fork>: Initialize new member.
8606
de0d863e
DB
86072015-05-12 Don Breazeal <donb@codesourcery.com>
8608
8609 * linux-low.c (handle_extended_wait): Implement return value,
8610 rename argument 'event_child' to 'event_lwp', handle
8611 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8612 (linux_low_ptrace_options): New function.
8613 (linux_low_filter_event): Call linux_low_ptrace_options,
8614 use different argument fo linux_enable_event_reporting,
8615 use return value from handle_extended_wait.
8616 (extended_event_reported): New function.
8617 (linux_wait_1): Call extended_event_reported and set
8618 status to report fork events.
8619 (linux_write_memory): Add pid to debug message.
8620 (reset_lwp_ptrace_options_callback): New function.
8621 (linux_handle_new_gdb_connection): New function.
8622 (linux_target_ops): Initialize new structure member.
8623 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8624 * lynx-low.c: Initialize new structure member.
8625 * remote-utils.c (prepare_resume_reply): Implement stop reason
8626 "fork" for "T" stop message.
8627 * server.c (handle_query): Call handle_new_gdb_connection.
8628 * server.h (report_fork_events): Declare global flag.
8629 * target.h (struct target_ops) <handle_new_gdb_connection>:
8630 New member.
8631 (target_handle_new_gdb_connection): New macro.
8632 * win32-low.c: Initialize new structure member.
8633
ddcbc397
DB
86342015-05-12 Don Breazeal <donb@codesourcery.com>
8635
8636 * mem-break.c (APPEND_TO_LIST): Define macro.
8637 (clone_agent_expr): New function.
8638 (clone_one_breakpoint): New function.
8639 (clone_all_breakpoints): New function.
8640 * mem-break.h: Declare new functions.
8641
89245bc0
DB
86422015-05-12 Don Breazeal <donb@codesourcery.com>
8643
8644 * linux-low.c (linux_supports_fork_events): New function.
8645 (linux_supports_vfork_events): New function.
8646 (linux_target_ops): Initialize new structure members.
8647 (initialize_low): Call linux_check_ptrace_features.
8648 * lynx-low.c (lynx_target_ops): Initialize new structure
8649 members.
8650 * server.c (report_fork_events, report_vfork_events):
8651 New global flags.
8652 (handle_query): Add new features to qSupported packet and
8653 response.
8654 (captured_main): Initialize new global variables.
8655 * target.h (struct target_ops) <supports_fork_events>:
8656 New member.
8657 <supports_vfork_events>: New member.
8658 (target_supports_fork_events): New macro.
8659 (target_supports_vfork_events): New macro.
8660 * win32-low.c (win32_target_ops): Initialize new structure
8661 members.
8662
835205d0
GB
86632015-05-12 Gary Benson <gbenson@redhat.com>
8664
8665 * server.c (handle_qxfer_exec_file): Use current process
8666 if annex is empty.
8667
21e94bd9
SL
86682015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8669
8670 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8671 Remove HAVE_PTRACE_GETREGS conditionals.
8672 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8673 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8674
45614f15
YQ
86752015-05-08 Yao Qi <yao.qi@linaro.org>
8676
8677 * linux-low.c (linux_supports_conditional_breakpoints): New
8678 function.
8679 (linux_target_ops): Install new target method.
8680 * lynx-low.c (lynx_target_ops): Install NULL hook for
8681 supports_conditional_breakpoints.
8682 * nto-low.c (nto_target_ops): Likewise.
8683 * spu-low.c (spu_target_ops): Likewise.
8684 * win32-low.c (win32_target_ops): Likewise.
8685 * server.c (handle_query): Check
8686 target_supports_conditional_breakpoints.
8687 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8688 New field.
8689 (target_supports_conditional_breakpoints): New macro.
8690
80ad801e
PA
86912015-05-06 Pedro Alves <palves@redhat.com>
8692
8693 PR server/18081
8694 * server.c (start_inferior): If the process exits, mourn it.
8695
819843c7
GB
86962015-04-21 Gary Benson <gbenson@redhat.com>
8697
8698 * hostio.c (fileio_open_flags_to_host): Factored out to
8699 fileio_to_host_openflags in common/fileio.c. Single use
8700 updated.
8701
a2d5a9d7
MF
87022015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8703
8704 * linux-xtensa-low.c (xtensa_fill_gregset)
8705 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8706 XCHAL_HAVE_LOOP.
8707
deb44829
MF
87082015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8709
8710 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8711 (regs_info): Replace usrregs pointer with NULL.
8712
e57f1de3
GB
87132015-04-17 Gary Benson <gbenson@redhat.com>
8714
8715 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8716 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8717 * server.c (handle_qxfer_exec_file): New function.
8718 (qxfer_packets): Add exec-file entry.
8719 (handle_query): Report qXfer:exec-file:read as supported packet.
8720
62828379
RN
87212015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8722
8723 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8724
b88bb450
GB
87252015-04-09 Gary Benson <gbenson@redhat.com>
8726
8727 * hostio-errno.c (errno_to_fileio_error): Remove function.
8728 Update caller to use remote_fileio_to_fio_error.
8729
c8f4bfdd
YQ
87302015-04-09 Yao Qi <yao.qi@linaro.org>
8731
8732 * linux-low.c (linux_insert_point): Call
8733 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8734 (linux_remove_point): Call remove_memory_breakpoint if type is
8735 raw_bkpt_type_sw.
8736 * linux-x86-low.c (x86_insert_point): Don't call
8737 insert_memory_breakpoint.
8738 (x86_remove_point): Don't call remove_memory_breakpoint.
8739
41f98f02
PA
87402015-04-01 Pedro Alves <palves@redhat.com>
8741 Cleber Rosa <crosa@redhat.com>
8742
8743 * server.c (gdbserver_usage): Reorganize and extend the usage
8744 message.
8745
2bf6fb9d
PA
87462015-03-24 Pedro Alves <palves@redhat.com>
8747
8748 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8749 output. Also dump TRAP_TRACE.
8750 (linux_low_filter_event): In debug output, distinguish a
8751 resume_stop SIGSTOP from a delayed SIGSTOP.
8752
369f6daa
GB
87532015-03-24 Gary Benson <gbenson@redhat.com>
8754
8755 * linux-x86-low.c (x86_linux_new_thread): Moved to
8756 nat/x86-linux.c.
8757 (x86_linux_prepare_to_resume): Likewise.
8758
8e5d4070
GB
87592015-03-24 Gary Benson <gbenson@redhat.com>
8760
8761 * Makefile.in (x86-linux-dregs.o): New rule.
8762 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8763 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8764 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8765 (x86_linux_dr_get): Likewise.
8766 (x86_linux_dr_set): Likewise.
8767 (update_debug_registers_callback): Likewise.
8768 (x86_linux_dr_set_addr): Likewise.
8769 (x86_linux_dr_get_addr): Likewise.
8770 (x86_linux_dr_set_control): Likewise.
8771 (x86_linux_dr_get_control): Likewise.
8772 (x86_linux_dr_get_status): Likewise.
8773 (x86_linux_update_debug_registers): Likewise.
8774
2b95d440
GB
87752015-03-24 Gary Benson <gbenson@redhat.com>
8776
8777 * linux-x86-low.c (x86_linux_update_debug_registers):
8778 New function, factored out from...
8779 (x86_linux_prepare_to_resume): ...this.
8780
14b0bc68
GB
87812015-03-24 Gary Benson <gbenson@redhat.com>
8782
8783 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8784 (x86_linux_dr_set): Likewise.
8785 (update_debug_registers_callback): Likewise.
8786 (x86_linux_dr_set_addr): Likewise.
8787 (x86_linux_dr_get_addr): Likewise.
8788 (x86_linux_dr_set_control): Likewise.
8789 (x86_linux_dr_get_control): Likewise.
8790 (x86_linux_dr_get_status): Likewise.
8791 (x86_linux_prepare_to_resume): Likewise.
8792
5dfe6ca8
GB
87932015-03-24 Gary Benson <gbenson@redhat.com>
8794
8795 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8796 Use perror_with_name. Pass string through gettext.
8797 (x86_linux_dr_set): Likewise.
8798
d33472ad
GB
87992015-03-24 Gary Benson <gbenson@redhat.com>
8800
8801 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8802 (x86_linux_dr_set_addr): ...this.
8803 (x86_dr_low_get_addr): Rename to...
8804 (x86_linux_dr_get_addr): ...this.
8805 (x86_dr_low_set_control): Rename to...
8806 (x86_linux_dr_set_control): ...this.
8807 (x86_dr_low_get_control): Rename to...
8808 (x86_linux_dr_get_control): ...this.
8809 (x86_dr_low_get_status): Rename to...
8810 (x86_linux_dr_get_status): ...this.
8811 (x86_dr_low): Update with new function names.
8812
4b134ca1
GB
88132015-03-24 Gary Benson <gbenson@redhat.com>
8814
8815 * Makefile.in (x86-linux.o): New rule.
8816 * configure.srv: Add x86-linux.o to relevant targets.
8817 * linux-low.c (lwp_set_arch_private_info): New function.
8818 (lwp_arch_private_info): Likewise.
8819 * linux-x86-low.c: Include nat/x86-linux.h.
8820 (arch_lwp_info): Removed structure.
8821 (update_debug_registers_callback):
8822 Use lwp_set_debug_registers_changed.
8823 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8824 and lwp_set_debug_registers_changed.
8825 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8826
34c703da
GB
88272015-03-24 Gary Benson <gbenson@redhat.com>
8828
8829 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8830 * linux-arm-low.c (arm_new_thread): Likewise.
8831 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8832 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8833 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8834 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8835
cff068da
GB
88362015-03-24 Gary Benson <gbenson@redhat.com>
8837
8838 * linux-low.c (ptid_of_lwp): New function.
8839 (lwp_is_stopped): Likewise.
8840 (lwp_stop_reason): Likewise.
8841 * linux-x86-low.c (update_debug_registers_callback):
8842 Use lwp_is_stopped.
8843 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8844 lwp_stop_reason.
8845
b2f7c7e8
GB
88462015-03-24 Gary Benson <gbenson@redhat.com>
8847
8848 * linux-low.h (linux_stop_lwp): Remove declaration.
8849
6d4ee8c6
GB
88502015-03-24 Gary Benson <gbenson@redhat.com>
8851
8852 * linux-low.h: Include nat/linux-nat.h.
8853 * linux-low.c (iterate_over_lwps_args): New structure.
8854 (iterate_over_lwps_filter): New function.
8855 (iterate_over_lwps): Likewise.
8856 * linux-x86-low.c (update_debug_registers_callback):
8857 Update signature to what iterate_over_lwps expects.
8858 Remove PID check that iterate_over_lwps now performs.
8859 (x86_dr_low_set_addr): Use iterate_over_lwps.
8860 (x86_dr_low_set_control): Likewise.
8861
70a0bb6b
GB
88622015-03-24 Gary Benson <gbenson@redhat.com>
8863
8864 * linux-x86-low.c (x86_debug_reg_state): New function.
8865 (x86_linux_prepare_to_resume): Use the above.
8866
7b669087
GB
88672015-03-24 Gary Benson <gbenson@redhat.com>
8868
8869 * linux-low.c (current_lwp_ptid): New function.
8870 * linux-x86-low.c: Include nat/linux-nat.h.
8871 (x86_dr_low_get_addr): Use current_lwp_ptid.
8872 (x86_dr_low_get_control): Likewise.
8873 (x86_dr_low_get_status): Likewise.
8874
eef49a3d
PA
88752015-03-20 Pedro Alves <palves@redhat.com>
8876
8877 * tracepoint.c (cmd_qtstatus): Make "str" const.
8878
b2333d22
PA
88792015-03-20 Pedro Alves <palves@redhat.com>
8880
8881 * server.c (handle_general_set): Make "req_str" const.
8882
23f238d3
PA
88832015-03-19 Pedro Alves <palves@redhat.com>
8884
8885 * linux-low.c (linux_resume_one_lwp): Rename to ...
8886 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8887 instead call perror_with_name.
8888 (check_ptrace_stopped_lwp_gone): New function.
8889 (linux_resume_one_lwp): Reimplement as wrapper around
8890 linux_resume_one_lwp_throw that swallows errors if the LWP is
8891 gone.
8892
91baf43f
PA
88932015-03-19 Pedro Alves <palves@redhat.com>
8894
8895 * linux-low.c (count_events_callback, select_event_lwp_callback):
8896 No longer check whether the thread has resume_stop as last resume
8897 kind.
8898
8bf3b159
PA
88992015-03-19 Pedro Alves <palves@redhat.com>
8900
8901 * linux-low.c (count_events_callback, select_event_lwp_callback):
8902 Use the lwp's status_pending_p field, not the thread's.
8903
b90fc188
PA
89042015-03-19 Pedro Alves <palves@redhat.com>
8905
8906 * linux-low.c (select_event_lwp_callback): Update comments to
8907 no longer mention SIGTRAP.
8908
464b0089
GB
89092015-03-18 Gary Benson <gbenson@redhat.com>
8910
8911 * server.c (handle_query): Do not report vFile:fstat as supported.
8912
aa9e327f
GB
89132015-03-11 Gary Benson <gbenson@redhat.com>
8914
8915 * hostio.c (sys/types.h): New include.
8916 (sys/stat.h): Likewise.
8917 (common-remote-fileio.h): Likewise.
8918 (handle_fstat): New function.
8919 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 8920
791c0056
GB
89212015-03-11 Gary Benson <gbenson@redhat.com>
8922
8923 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8924 struct stat.st_blocks and struct stat.st_blksize.
8925 * configure: Regenerate.
8926 * config.in: Likewise.
8927 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8928 (OBS): Add common-remote-fileio.o.
8929 (common-remote-fileio.o): New rule.
8930
9a9df970
PA
89312015-03-09 Pedro Alves <palves@redhat.com>
8932
8933 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8934 'struct sockaddr' pointer in 'accept' call.
8935
9eb1356e
PA
89362015-03-09 Pedro Alves <palves@redhat.com>
8937
8938 Revert:
8939 2015-03-07 Pedro Alves <palves@redhat.com>
8940 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8941 or <winsock2.h> here. Instead include "gdb_socket.h".
8942 (remote_open): Use union gdb_sockaddr_u.
8943 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8944 or <winsock2.h> here. Instead include "gdb_socket.h".
8945 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8946 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8947 or <sys/un.h>.
8948 (init_named_socket, gdb_agent_helper_thread): Use union
8949 gdb_sockaddr_u.
8950
aac331e4
PA
89512015-03-07 Pedro Alves <palves@redhat.com>
8952
8953 * configure.ac (build_warnings): Move
8954 -Wdeclaration-after-statement to the C-specific set.
8955 * configure: Regenerate.
8956
366c75fc
PA
89572015-03-07 Pedro Alves <palves@redhat.com>
8958
8959 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8960 or <winsock2.h> here. Instead include "gdb_socket.h".
8961 (remote_open): Use union gdb_sockaddr_u.
8962 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8963 or <winsock2.h> here. Instead include "gdb_socket.h".
8964 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8965 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8966 or <sys/un.h>.
8967 (init_named_socket, gdb_agent_helper_thread): Use union
8968 gdb_sockaddr_u.
8969
492d29ea
PA
89702015-03-07 Pedro Alves <palves@redhat.com>
8971
8972 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8973 instead.
8974
60a191ed
YQ
89752015-03-06 Yao Qi <yao.qi@linaro.org>
8976
8977 * linux-aarch64-low.c (aarch64_insert_point): Use
8978 show_debug_regs as a boolean.
8979 (aarch64_remove_point): Likewise.
8980
f5771b1d
PA
89812015-03-05 Pedro Alves <palves@redhat.com>
8982
8983 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8984 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8985 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8986 * nto-low.c (nto_target_ops): Likewise.
8987 * spu-low.c (spu_target_ops): Likewise.
8988 * win32-low.c (win32_target_ops): Likewise.
8989
3e572f71
PA
89902015-03-04 Pedro Alves <palves@redhat.com>
8991
72f4393d 8992 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
8993 Decide whether a breakpoint triggered based on the SIGTRAP's
8994 siginfo.si_code.
72f4393d
L
8995 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8996 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
8997 (linux_low_filter_event): Check for breakpoints before checking
8998 watchpoints.
8999 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9000 siginfo.si_code.
72f4393d
L
9001 (linux_stopped_by_sw_breakpoint)
9002 (linux_supports_stopped_by_sw_breakpoint)
9003 (linux_stopped_by_hw_breakpoint)
9004 (linux_supports_stopped_by_hw_breakpoint): New functions.
9005 (linux_target_ops): Install new target methods.
3e572f71 9006
1ec68e26
PA
90072015-03-04 Pedro Alves <palves@redhat.com>
9008
9009 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9010 * server.c (swbreak_feature, hwbreak_feature): New globals.
9011 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9012 (captured_main): Clear swbreak_feature and hwbreak_feature.
9013 * server.h (swbreak_feature, hwbreak_feature): Declare.
9014 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9015 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9016 supports_stopped_by_hw_breakpoint>: New fields.
9017 (target_supports_stopped_by_sw_breakpoint)
9018 (target_stopped_by_sw_breakpoint)
9019 (target_supports_stopped_by_hw_breakpoint)
9020 (target_stopped_by_hw_breakpoint): Declare.
9021
15c66dd6
PA
90222015-03-04 Pedro Alves <palves@redhat.com>
9023
9024 enum lwp_stop_reason -> enum target_stop_reason
9025 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9026 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9027 (linux_wait_1, stuck_in_jump_pad_callback)
9028 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9029 (linux_stopped_by_watchpoint):
9030 * linux-low.h (enum lwp_stop_reason): Delete.
9031 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9032 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9033
98fc70d6
YQ
90342015-03-04 Yao Qi <yao.qi@linaro.org>
9035
9036 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9037
dd2ac174
GB
90382015-03-03 Gary Benson <gbenson@redhat.com>
9039
9040 * hostio.c (handle_vFile): Fix prefix lengths.
9041
d68e53f4
MM
90422015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9043
9044 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9045 ptr_bits.
9046
bf2d68ab
AA
90472015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9048
9049 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9050 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9051 (clean): Add "rm -f" for above C files.
9052 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9053 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9054 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9055 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9056 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9057 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9058 (init_registers_s390x_vx_linux64)
9059 (init_registers_s390x_tevx_linux64)
9060 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9061 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9062 declarations.
9063 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9064 (s390_store_vxrs_high): New functions.
9065 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9066 NT_S390_VXRS_HIGH.
9067 (s390_arch_setup): Add logic for selecting one of the new target
9068 descriptions. Activate the new vector regsets if applicable.
9069 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9070 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9071 and init_registers_s390x_tevx_linux64.
9072
c966a859
PA
90732015-03-01 Pedro Alves <palves@redhat.com>
9074
9075 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9076 parameter.
9077
4180215b
PA
90782015-02-27 Pedro Alves <palves@redhat.com>
9079
9080 * linux-x86-low.c (u_debugreg_offset): New function.
9081 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9082
749bab01
PA
90832015-02-27 Pedro Alves <palves@redhat.com>
9084
9085 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9086 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9087 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9088 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9089 (ps_lsetfpregs, ps_getpid)
9090 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9091 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9092 (ps_lsetxregs, ps_plog): Declare.
9093
3c14e5a3
PA
90942015-02-27 Pedro Alves <palves@redhat.com>
9095
9096 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9097 IP_AGENT_EXPORT_FUNC.
9098 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9099 IP_AGENT_EXPORT_FUNC.
9100 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9101 (IP_AGENT_EXPORT): Delete.
9102 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9103 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9104 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9105 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9106 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9107 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9108 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9109 (traceframe_read_count, traceframe_write_count)
9110 (traceframes_created, trace_state_variables, get_raw_reg)
9111 (get_trace_state_variable_value, set_trace_state_variable_value)
9112 (ust_loaded, helper_thread_id, cmd_buf): Use
9113 IPA_SYM_EXPORTED_NAME.
9114 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9115 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9116 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9117 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9118 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9119 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9120 EXTERN_C_PUSH/EXTERN_C_POP.
9121 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9122 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9123 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9124 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9125 (traceframe_write_count, traceframe_read_count)
9126 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9127 (about_to_request_buffer_space, get_trace_state_variable_value)
9128 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9129 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9130 EXTERN_C_PUSH/EXTERN_C_POP.
9131 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9132 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9133 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9134 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9135 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9136 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9137 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9138 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9139 Define.
9140 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9141 (IP_AGENT_EXPORT_VAR_DECL): Define.
9142 (tracing): Declare.
9143 (gdb_agent_get_raw_reg): Declare.
9144
fe978cb0
PA
91452015-02-27 Tom Tromey <tromey@redhat.com>
9146 Pedro Alves <palves@redhat.com>
9147
9148 Rename symbols whose names are reserved C++ keywords throughout.
9149
3bc3d82a
PA
91502015-02-27 Pedro Alves <palves@redhat.com>
9151
9152 * Makefile.in (COMPILER): New, get it from autoconf.
9153 (CXX): Get from autoconf instead.
9154 (COMPILE.pre): Use COMPILER.
9155 (CC-LD): Rename to ...
9156 (CC_LD): ... this. Use COMPILER.
9157 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9158 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9159 * acinclude.m4: Include build-with-cxx.m4.
9160 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9161 Disable -Werror by default if building in C++ mode.
9162 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9163 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9164 the C++ compiler. Save/restore CXXFLAGS too.
9165 * configure: Regenerate.
9166
07697489
PA
91672015-02-27 Pedro Alves <palves@redhat.com>
9168
9169 * acinclude.m4: Include libiberty.m4.
9170 * configure.ac: Call libiberty_INIT.
9171 * config.in, configure: Regenerate.
9172
9beb7c4e
PA
91732015-02-26 Pedro Alves <palves@redhat.com>
9174
9175 * linux-low.c (linux_wait_1): When incrementing the PC past a
9176 program breakpoint always use the_low_target.breakpoint_len as
9177 increment, rather than the maximum between that and
9178 the_low_target.decr_pc_after_break.
9179
8090aef2
PA
91802015-02-23 Pedro Alves <palves@redhat.com>
9181
9182 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9183 thread was doing a step-over; always adjust the PC if
9184 we stepped over a permanent breakpoint.
9185 (linux_wait_1): If we stepped over breakpoint that was on top of a
9186 permanent breakpoint, manually advance the PC past it.
9187
bc9540e8
PA
91882015-02-23 Pedro Alves <palves@redhat.com>
9189
9190 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9191 modes.
9192 (x86_fill_gregset, x86_store_gregset): Use it when handling
9193 $orig_eax.
9194
2db9a427
PA
91952015-02-20 Pedro Alves <palves@redhat.com>
9196
9197 * thread-db.c: Include "nat/linux-procfs.h".
9198 (thread_db_init): Skip listing new threads if the kernel supports
9199 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9200
afa8d396
PA
92012015-02-20 Pedro Alves <palves@redhat.com>
9202
9203 * linux-low.c (status_pending_p_callback): Use ptid_match.
9204
c9587f88
AT
92052015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9206
9207 PR breakpoints/16812
9208 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9209 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9210 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9211
b05ec7a5
AT
92122015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9213
9214 PR breakpoints/15956
9215 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9216
d33501a5
MM
92172015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9218
9219 * linux-low.c (linux_low_btrace_conf): Print size.
9220 * server.c (handle_btrace_conf_general_set): New.
9221 (hanle_general_set): Call handle_btrace_conf_general_set.
9222 (handle_query): Report Qbtrace-conf:bts:size as supported.
9223
f4abbc16
MM
92242015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9225
9226 * linux-low.c (linux_low_enable_btrace): Update parameters.
9227 (linux_low_btrace_conf): New.
9228 (linux_target_ops)<to_btrace_conf>: Initialize.
9229 * server.c (current_btrace_conf): New.
9230 (handle_btrace_enable): Rename to ...
9231 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
9232 to target_enable_btrace. Update comment. Update users.
9233 (handle_qxfer_btrace_conf): New.
9234 (qxfer_packets): Add btrace-conf entry.
9235 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9236 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9237 (target_ops)<read_btrace_conf>: New.
9238 (target_enable_btrace): Update parameters.
9239 (target_read_btrace_conf): New.
9240
043c3577
MM
92412015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9242
9243 * server.c (handle_btrace_general_set): Remove call to
9244 target_supports_btrace.
9245 (supported_btrace_packets): New.
9246 (handle_query): Call supported_btrace_packets.
9247 * target.h: include btrace-common.h.
9248 (btrace_target_info): Removed.
9249 (supports_btrace, target_supports_btrace): Update parameters.
9250
734b0e4b
MM
92512015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9252
9253 * Makefile.in (SFILES): Add common/btrace-common.c.
9254 (OBS): Add common/btrace-common.o.
9255 (btrace-common.o): Add build rules.
9256 * linux-low: Include btrace-common.h.
9257 (linux_low_read_btrace): Use struct btrace_data. Call
9258 btrace_data_init and btrace_data_fini.
9259
d6c146e9
PA
92602015-02-06 Pedro Alves <palves@redhat.com>
9261
9262 * thread-db.c (find_new_threads_callback): Add debug output.
9263
20ba1ce6
PA
92642015-02-04 Pedro Alves <palves@redhat.com>
9265
9266 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9267 (resume_stopped_resumed_lwps): New function.
9268 (linux_wait_for_event_filtered): Use it.
9269
8cc73a39
SDJ
92702015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9271
9272 * Makefile.in (SFILES): Add linux-personality.c.
9273 (linux-personality.o): New rule.
9274 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9275 list of objects to be built.
9276 * linux-low.c: Include nat/linux-personality.h.
9277 (linux_create_inferior): Remove code to disable address space
9278 randomization (moved to ../nat/linux-personality.c). Create
9279 cleanup to disable address space randomization.
9280
fb23d554
SDJ
92812015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9282
9283 * Makefile.in (posix-strerror.o): New rule.
9284 (mingw-strerror.o): Likewise.
9285 * configure: Regenerated.
9286 * configure.ac: Source file ../common/common.host. Initialize new
9287 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9288
cdf43629
YQ
92892015-01-14 Yao Qi <yao@codesourcery.com>
9290
9291 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9292 (ppc-linux.o): New rule.
9293 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9294 * configure.ac: AC_CHECK_FUNCS(getauxval).
9295 * config.in: Re-generated.
9296 * configure: Re-generated.
9297 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9298 ppc64_64bit_inferior_p
9299
514c5338
YQ
93002015-01-14 Yao Qi <yao@codesourcery.com>
9301
9302 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9303 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9304 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9305 (PT_ORIG_R3, PT_TRAP): Likewise.
9306 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9307 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9308 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9309
3368c1e5
JB
93102015-01-10 Joel Brobecker <brobecker@adacore.com>
9311
9312 * i387-fp.c (i387_cache_to_xsave): In look over
9313 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9314 zmmh_low_space field by use of zmmh_high_space.
9315
582511be
PA
93162015-01-09 Pedro Alves <palves@redhat.com>
9317
9318 * linux-low.c (step_over_bkpt): Move higher up in the file.
9319 (handle_extended_wait): Don't store the stop_pc here.
9320 (get_stop_pc): Adjust comments and rename to ...
9321 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9322 stopped for a software breakpoint or hardware breakpoint.
9323 (thread_still_has_status_pending_p): New function.
9324 (status_pending_p_callback): Use
9325 thread_still_has_status_pending_p. If the event is no longer
9326 interesting, resume the LWP.
9327 (handle_tracepoints): Add assert.
9328 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9329 (wstatus_maybe_breakpoint): New function.
9330 (cancel_breakpoint): Delete function.
9331 (check_stopped_by_watchpoint): New function, factored out from
9332 linux_low_filter_event.
9333 (lp_status_maybe_breakpoint): Delete function.
9334 (linux_low_filter_event): Remove filter_ptid argument.
9335 Leave thread group exits pending here. Store the LWP's stop PC.
9336 Always leave events pending.
9337 (linux_wait_for_event_filtered): Pull all events out of the
9338 kernel, and leave them all pending.
9339 (count_events_callback, select_event_lwp_callback): Consider all
9340 events.
9341 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9342 (select_event_lwp): Only give preference to the stepping LWP in
9343 all-stop mode. Adjust comments.
9344 (ignore_event): New function.
9345 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9346 references to cancel_breakpoints. Adjust to renames. Also give
9347 equal priority to all LWPs that have had events in non-stop mode.
9348 If reporting a software breakpoint event, unadjust the LWP's PC.
9349 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9350 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9351 Adjust.
9352 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9353 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9354 (linux_stopped_by_watchpoint): Adjust.
9355 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9356 * linux-low.h (enum lwp_stop_reason): New.
9357 (struct lwp_info) <stop_pc>: Adjust comment.
9358 <stopped_by_watchpoint>: Delete field.
9359 <stop_reason>: New field.
9360 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9361 * mem-break.c (software_breakpoint_inserted_here)
9362 (hardware_breakpoint_inserted_here): New function.
9363 * mem-break.h (software_breakpoint_inserted_here)
9364 (hardware_breakpoint_inserted_here): Declare.
9365 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9366 (cancel_breakpoints): Delete.
9367 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9368 (upload_fast_traceframes): Remove references to
9369 cancel_breakpoints.
9370
a33e3959
PA
93712015-01-09 Pedro Alves <palves@redhat.com>
9372
9373 * thread-db.c (find_new_threads_callback): Ignore thread if the
9374 kernel thread ID is -1.
9375
8784d563
PA
93762015-01-09 Pedro Alves <palves@redhat.com>
9377
9378 * linux-low.c (linux_attach_fail_reason_string): Move to
9379 nat/linux-ptrace.c, and rename.
9380 (linux_attach_lwp): Update comment.
9381 (attach_proc_task_lwp_callback): New function.
9382 (linux_attach): Adjust to rename and use
9383 linux_proc_attach_tgid_threads.
9384 (linux_attach_fail_reason_string): Delete declaration.
9385
76f2b779
JB
93862015-01-01 Joel Brobecker <brobecker@adacore.com>
9387
9388 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9389 * server.c (gdbserver_version): Likewise.
9390
fafcc06a
SDJ
93912014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9392
9393 * remote-utils.c: Include ctype.h.
9394 (input_interrupt): Explicitly handle the case when the char
9395 received is the NUL byte. Improve the printing of non-ASCII
9396 characters.
9397
beed38b8
JB
93982014-12-16 Joel Brobecker <brobecker@adacore.com>
9399
9400 * linux-low.c (linux_low_filter_event): Update call to
9401 linux_enable_event_reporting following the addition of
9402 a new parameter to that function.
9403
bf330350
CU
94042014-12-16 Catalin Udma <catalin.udma@freescale.com>
9405
9406 PR server/17457
9407 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9408 (AARCH64_FPCR_REGNO): Likewise.
9409 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9410 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9411 (aarch64_store_fpregset): Likewise.
9412
5227d625
JB
94132014-12-15 Joel Brobecker <brobecker@adacore.com>
9414
9415 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9416 Remove FIXME comment about assumption about N.
9417
f93b65a0
JB
94182014-12-13 Joel Brobecker <brobecker@adacore.com>
9419
9420 * configure.ac: If large-file support is disabled in GDBserver,
9421 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9422 * configure: Regenerate.
9423
e5a9158d
AA
94242014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9425
9426 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9427 warning upon ENODATA from ptrace.
9428 * linux-s390-low.c (s390_store_tdb): New.
9429 (s390_regsets): Add regset for NT_S390_TDB.
9430
feea5f36
AA
94312014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9432
9433 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9434 without a fill_function.
9435 * linux-s390-low.c (s390_fill_last_break): Remove.
9436 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9437 (s390_arch_setup): Use regset's size instead of fill_function for
9438 loop end condition.
9439
098dbe61
AA
94402014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9441
9442 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9443 the regset's store function when ptrace returned an error.
9444 * regcache.c (get_thread_regcache): Invalidate register cache
9445 before fetching inferior's registers.
9446
28eef672
AA
94472014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9448
9449 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9450 while-loop as for-loop.
9451 (regsets_store_inferior_registers): Likewise.
9452
bdca27a2
YQ
94532014-11-28 Yao Qi <yao@codesourcery.com>
9454
9455 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9456 * config.in, configure: Re-generate.
9457 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9458 is defined.
9459
9c232dda
YQ
94602014-11-21 Yao Qi <yao@codesourcery.com>
9461
9462 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9463 (AC_CHECK_HEADERS): Remove malloc.h.
9464 * configure: Re-generated.
9465 * config.in: Re-generated.
9466 * server.h: Don't include alloca.h and malloc.h.
9467 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9468 Don't include malloc.h.
9469
43968415
JB
94702014-11-17 Joel Brobecker <brobecker@adacore.com>
9471
9472 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9473 corresponding ERRNO check in same block.
9474
40e91bc7
PA
94752014-11-12 Pedro Alves <palves@redhat.com>
9476
9477 * server.c (cont_thread): Update comment.
9478 (start_inferior, attach_inferior): No longer clear cont_thread.
9479 (handle_v_cont): No longer set cont_thread.
9480 (captured_main): Clear cont_thread each time a GDB connects.
9481
c2c118cf
PA
94822014-11-12 Pedro Alves <palves@redhat.com>
9483
9484 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9485 thread, and don't resume all threads if the Hc thread has exited.
9486
78708b7c
PA
94872014-11-12 Pedro Alves <palves@redhat.com>
9488
9489 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9490 the process group instead of to a specific LWP.
9491
a2abc7de
PA
94922014-10-15 Pedro Alves <palves@redhat.com>
9493
9494 PR server/17487
9495 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9496 parameter.
9497 (arm_set_thread_context): Delete.
9498 (the_low_target): Adjust.
9499 * win32-i386-low.c (debug_registers_changed)
9500 (debug_registers_used): Delete.
9501 (update_debug_registers_callback): New function.
9502 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9503 needing to update their debug registers.
9504 (win32_get_current_dr): New function.
9505 (x86_dr_low_get_addr, x86_dr_low_get_control)
9506 (x86_dr_low_get_status): Fetch the debug register from the thread
9507 record's context.
9508 (i386_initial_stuff): Adjust.
9509 (i386_get_thread_context): Remove current_event parameter. Don't
9510 clear debug_registers_changed nor copy DR values to
9511 debug_reg_state.
9512 (i386_set_thread_context): Delete.
9513 (i386_prepare_to_resume): New function.
9514 (i386_thread_added): Mark the thread as needing to update irs
9515 debug registers.
9516 (the_low_target): Remove i386_set_thread_context and install
9517 i386_prepare_to_resume.
9518 * win32-low.c (win32_get_thread_context): Adjust.
9519 (win32_set_thread_context): Use SetThreadContext
9520 directly.
9521 (win32_prepare_to_resume): New function.
9522 (win32_require_context): New function, factored out from ...
9523 (thread_rec): ... this.
9524 (continue_one_thread): Call win32_prepare_to_resume on each thread
9525 we're about to continue.
9526 (win32_resume): Call win32_prepare_to_resume on the event thread.
9527 * win32-low.h (struct win32_thread_info)
9528 <debug_registers_changed>: New field.
9529 (struct win32_target_ops): Change prototype of set_thread_context,
9530 delete set_thread_context and add prepare_to_resume.
9531 (win32_require_context): New declaration.
9532
a442d071
GB
95332014-10-08 Gary Benson <gbenson@redhat.com>
9534
9535 * server.h: Do not include common-exceptions.h.
9536
6f1947e8
GB
95372014-10-08 Gary Benson <gbenson@redhat.com>
9538
9539 * server.h: Do not include cleanups.h.
9540
63b434a4
JH
95412014-09-30 James Hogan <james.hogan@imgtec.com>
9542
9543 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9544 mips64-dsp-linux.c.
9545
c4d9ceb6
YQ
95462014-09-23 Yao Qi <yao@codesourcery.com>
9547
9548 * linux-low.c (lp_status_maybe_breakpoint): New function.
9549 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9550 (count_events_callback): Likewise.
9551 (select_event_lwp_callback): Likewise.
9552 (cancel_breakpoints_callback): Likewise.
9553
89a5711c
DB
95542014-09-19 Don Breazeal <donb@codesourcery.com>
9555
9556 * linux-low.c (handle_extended_wait): Call
9557 linux_ptrace_get_extended_event.
9558 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9559 linux_is_extended_waitstatus.
9560
bffc0964
JB
95612014-09-16 Joel Brobecker <brobecker@adacore.com>
9562
9563 * Makefile.in (CPPFLAGS): Define.
9564 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9565 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9566
0bfdf32f
GB
95672014-09-16 Gary Benson <gbenson@redhat.com>
9568
9569 * inferiors.h (current_inferior): Renamed as...
9570 (current_thread): New variable. All uses updated.
9571 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9572 (maybe_move_out_of_jump_pad): Likewise.
9573 (cancel_breakpoint): Likewise.
9574 (linux_low_filter_event): Likewise.
9575 (wait_for_sigstop): Likewise.
9576 (linux_resume_one_lwp): Likewise.
9577 (need_step_over_p): Likewise.
9578 (start_step_over): Likewise.
9579 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9580 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9581 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9582 and save_inferior as saved_thread.
9583 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9584 saved_thread.
9585 (regcache_invalidate_thread): Likewise.
9586 * remote-utils.c (prepare_resume_reply): Likewise.
9587 * thread-db.c (thread_db_get_tls_address): Likewise.
9588 (disable_thread_event_reporting): Likewise.
9589 (remove_thread_event_breakpoints): Likewise.
9590 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9591 as saved_thread.
9592 * target.h (set_desired_inferior): Renamed as...
9593 (set_desired_thread): New declaration. All uses updated.
9594 * server.c (myresume): Updated comment to reference thread instead
9595 of inferior.
9596 (handle_serial_event): Likewise.
9597 (handle_target_event): Likewise.
9598
361c8ade
GB
95992014-09-12 Tom Tromey <tromey@redhat.com>
9600 Gary Benson <gbenson@redhat.com>
9601
9602 * regcache.h: Include common-regcache.h.
9603 (regcache_read_pc): Don't declare.
9604 * regcache.c (get_thread_regcache_for_ptid): New function.
9605
bd9269f7
GB
96062014-09-11 Tom Tromey <tromey@redhat.com>
9607 Gary Benson <gbenson@redhat.com>
9608
9609 * symbol.c: New file.
9610 * Makefile.in (SFILES): Add symbol.c.
9611 (OBS): Add symbol.o.
9612
f8c1d06b
GB
96132014-09-11 Gary Benson <gbenson@redhat.com>
9614
9615 * target.c (target_stop_ptid, target_continue_ptid): New
9616 functions.
9617
721ec300
GB
96182014-09-11 Tom Tromey <tromey@redhat.com>
9619 Gary Benson <gbenson@redhat.com>
9620
9621 * target.h: Include target/target.h.
9622 * target.c (target_read_memory, target_read_uint32)
9623 (target_write_memory): New functions.
9624
c5e92cca
GB
96252014-09-11 Gary Benson <gbenson@redhat.com>
9626
9627 * server.h (debug_hw_points): Don't declare.
9628 * server.c (debug_hw_points): Don't define. Replace all uses
9629 with show_debug_regs.
9630 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9631 all uses with show_debug_regs.
9632
2e4bb98a
EBM
96332014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9634
9635 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9636 endianness into account.
9637 (ppc_supply_ptrace_register): Likewise.
9638
ac740bc7
JH
96392014-09-03 James Hogan <james.hogan@imgtec.com>
9640
9641 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9642 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9643
97ea6506
GB
96442014-09-03 Gary Benson <gbenson@redhat.com>
9645
9646 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9647 ALL_DEBUG_ADDRESS_REGISTERS.
9648
df7e5265
GB
96492014-09-02 Gary Benson <gbenson@redhat.com>
9650
9651 * i386-low.h: Renamed as...
9652 * x86-low.h: New file. All type, function and variable name
9653 prefixes changed from "i386_" to "x86_". All references updated.
9654 * i386-low.c: Renamed as...
9655 * x86-low.c: New file. All type, function and variable name
9656 prefixes changed from "i386_" to "x86_". All references updated.
9657
ed859da7
GB
96582014-09-02 Gary Benson <gbenson@redhat.com>
9659
9660 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9661 (x86_linux_new_thread): Likewise.
9662
860789c7
GB
96632014-08-29 Gary Benson <gbenson@redhat.com>
9664
9665 * server.h (setjmp.h): Do not include.
9666 (toplevel): Do not declare.
9667 (common-exceptions.h): Include.
9668 (cleanups.h): Likewise.
9669 * server.c (toplevel): Do not define.
9670 (exit_code): New static global.
9671 (detach_or_kill_for_exit_cleanup): New function.
9672 (main): New function. Original main renamed to...
9673 (captured_main): New function.
9674 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9675
ff55e1b5
GB
96762014-08-29 Gary Benson <gbenson@redhat.com>
9677
9678 * Makefile.in (SFILES): Add common/common-exceptions.c.
9679 (OBS): Add common-exceptions.o.
9680 (common-exceptions.o): New rule.
9681 * utils.c (prepare_to_throw_exception): New function.
9682
e9bcb658
GB
96832014-08-29 Gary Benson <gbenson@redhat.com>
9684
9685 * config.in: Regenerate.
9686 * configure: Likewise.
9687
e3180625
GB
96882014-08-29 Gary Benson <gbenson@redhat.com>
9689
9690 * Makefile.in (SFILES): Add common/cleanups.c.
9691 (OBS): cleanups.o.
9692 (cleanups.o): New rule.
9693
e3d6ba5d
GB
96942014-08-29 Gary Benson <gbenson@redhat.com>
9695
9696 * utils.c (internal_vwarning): New function.
9697
7096e886
GB
96982014-08-28 Gary Benson <gbenson@redhat.com>
9699
9700 * utils.h (fatal): Remove declaration.
9701 * utils.c (fatal): Remove function.
9702
14ce3192
GB
97032014-08-28 Gary Benson <gbenson@redhat.com>
9704
9705 * tracepoint.c (gdb_agent_init): Replace fatal with
9706 perror_with_name.
9707 (initialize_tracepoint): Likewise.
9708
50278d59
GB
97092014-08-28 Gary Benson <gbenson@redhat.com>
9710
9711 * remote-utils.c (remote_prepare): Replace fatal with error.
9712
aa96c426
GB
97132014-08-28 Gary Benson <gbenson@redhat.com>
9714
9715 * linux-low.c (linux_async): Replace fatal with warning.
9716 Tidy up and return.
9717 (linux_start_non_stop): Return -1 if linux_async failed.
9718
f7160e97
GB
97192014-08-28 Gary Benson <gbenson@redhat.com>
9720
9721 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9722 gdb_assert.
9723 (i386_dr_low_get_addr): Remove vague comment.
9724 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9725 gdb_assert.
9726
38e08fca
GB
97272014-08-28 Gary Benson <gbenson@redhat.com>
9728
9729 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9730 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9731 internal_error.
9732 (linux_resume_one_lwp): Likewise.
9733 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9734 gdb_assert.
9735 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9736 with internal_error.
9737 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9738 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9739 (find_register_by_name): Replace fatal with internal_error.
9740 (find_regno): Likewise.
9741 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9742 * thread-db.c (thread_db_create_event): Likewise.
9743 (thread_db_load_search): Likewise.
9744 (try_thread_db_load_1): Likewise.
9745 * tracepoint.c (get_jump_space_head): Replace fatal with
9746 internal_error.
9747 (claim_trampoline_space): Likewise.
9748 (have_fast_tracepoint_trampoline_buffer): Likewise.
9749 (cmd_qtstart): Likewise.
9750 (stop_tracing): Likewise.
9751 (fast_tracepoint_collecting): Likewise.
9752 (target_malloc): Likewise.
9753 (download_tracepoint): Likewise.
9754 (download_trace_state_variables): Replace check with gdb_assert.
9755 (upload_fast_traceframes): Replace fatal with internal_error.
9756
34abf635
GB
97572014-08-19 Tom Tromey <tromey@redhat.com>
9758 Gary Benson <gbenson@redhat.com>
9759
9760 * Makefile.in (SFILES): Add common/common-debug.c.
9761 (OBS): Add common-debug.o.
9762 (common-debug.o): New rule.
9763 * debug.h (debug_printf): Don't declare.
9764 * debug.c (debug_printf): Renamed and rewritten as...
9765 (debug_vprintf): New function.
9766
f6e94d78
GB
97672014-08-19 Gary Benson <gbenson@redhat.com>
9768
9769 * utils.h: Do not include print-utils.h.
9770
9239eeab
GB
97712014-08-19 Tom Tromey <tromey@redhat.com>
9772 Gary Benson <gbenson@redhat.com>
9773
9774 * server.h: Add static assertion.
9775 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9776
ef87c8bb
GB
97772014-08-19 Tom Tromey <tromey@redhat.com>
9778 Gary Benson <gbenson@redhat.com>
9779
9780 * Makefile.in (SFILES): Add common/errors.c.
9781 (OBS): Add errors.o.
9782 (IPA_OBS): Add errors-ipa.o.
9783 (errors.o): New rule.
9784 (errors-ipa.o): Likewise.
9785 * utils.h (perror_with_name, error, warning): Don't declare.
9786 * utils.c (warning): Renamed and rewritten as...
9787 (vwarning): New function.
9788 (error): Renamed and rewritten as...
9789 (verror): New function.
9790 (internal_error): Renamed and rewritten as...
9791 (internal_verror): New function.
9792
bb974a24
GB
97932014-08-07 Gary Benson <gbenson@redhat.com>
9794
9795 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9796 * configure: Regenerate.
9797 * config.in: Likewise.
9798 * server.h: Do not include errno.h.
9799 * event-loop.c: Likewise.
9800 * hostio-errno.c: Likewise.
9801 * linux-low.c: Likewise.
9802 * remote-utils.c: Likewise.
9803 * spu-low.c: Likewise.
9804 * utils.c: Likewise.
9805 * gdbreplay.c: Unconditionally include errno.h.
9806
6d3d12eb
GB
98072014-08-07 Gary Benson <gbenson@redhat.com>
9808
9809 * server.h: Do not include string.h.
9810 * event-loop.c: Likewise.
9811 * linux-low.c: Likewise.
9812 * regcache.c: Likewise.
9813 * remote-utils.c: Likewise.
9814 * spu-low.c: Likewise.
9815 * utils.c: Likewise.
9816
dccbb609
GB
98172014-08-07 Gary Benson <gbenson@redhat.com>
9818
9819 * server.h: Do not include gdb_assert.h.
9820
e76df0d0
GB
98212014-08-07 Gary Benson <gbenson@redhat.com>
9822
9823 * server.h: Do not include common-utils.h.
9824
4cb9c816
GB
98252014-08-07 Gary Benson <gbenson@redhat.com>
9826
9827 * server.h: Do not include ptid.h.
9828 * notif.h: Likewise.
9829
3995eeee
GB
98302014-08-07 Gary Benson <gbenson@redhat.com>
9831
9832 * server.h: Do not include gdb_locale.h.
9833
cb9f1a9b
GB
98342014-08-07 Gary Benson <gbenson@redhat.com>
9835
9836 * server.h: Do not include gdb/signals.h.
9837 * win32-low.c: Likewise.
9838
a5fceff8
GB
98392014-08-07 Gary Benson <gbenson@redhat.com>
9840
9841 * server.h: Do not include pathmax.h.
9842
b9391142
GB
98432014-08-07 Gary Benson <gbenson@redhat.com>
9844
9845 * server.h: Do not include libiberty.h.
9846 * linux-bfin-low.c: Likewise.
9847
0e443c87
GB
98482014-08-07 Gary Benson <gbenson@redhat.com>
9849
9850 * server.h: Do not include ansidecl.h.
9851
8ebb3f56
GB
98522014-08-07 Gary Benson <gbenson@redhat.com>
9853
9854 * linux-x86-low.c: Do not include stddef.h.
9855 * lynx-ppc-low.c: Likewise.
9856 * tracepoint.c: Likewise.
9857
8980bdf6
GB
98582014-08-07 Gary Benson <gbenson@redhat.com>
9859
9860 * server.h: Do not include stdarg.h.
9861 * nto-low.c: Likewise.
9862
d7096f71
GB
98632014-08-07 Gary Benson <gbenson@redhat.com>
9864
9865 * server.h: Do not include stdlib.h.
9866 * inferiors.c: Likewise.
9867 * linux-low.c: Likewise.
9868 * regcache.c: Likewise.
9869 * spu-low.c: Likewise.
9870 * tracepoint.c: Likewise.
9871 * utils.c: Likewise.
9872
d02f550d
GB
98732014-08-07 Gary Benson <gbenson@redhat.com>
9874
9875 * server.h: Do not include stdio.h.
9876 * linux-low.c: Likewise.
9877 * remote-utils.c: Likewise.
9878 * spu-low.c: Likewise.
9879 * utils.c: Likewise.
9880 * wincecompat.c: Likewise.
9881
87f6c4e3
GB
98822014-08-06 Gary Benson <gbenson@redhat.com>
9883
9884 * regcache.c (init_register_cache): Move conditionals inside if.
9885
7089dca4
GB
98862014-08-06 Gary Benson <gbenson@redhat.com>
9887
9888 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9889
462f517e
GB
98902014-07-31 Gary Benson <gbenson@redhat.com>
9891
9892 * ax.h: Do not include server.h.
9893 * gdbthread.h: Likewise.
9894 * lynx-low.h: Likewise.
9895 * notif.h: Likewise.
9896
976411d6
GB
98972014-07-30 Gary Benson <gbenson@redhat.com>
9898
9899 * server.h: Include common-defs.h.
9900 Do not include config.h or build-gnulib-gdbserver/config.h.
9901
d41f6d8e
GB
99022014-07-30 Gary Benson <gbenson@redhat.com>
9903
9904 * hostio-errno.c: Move server.h to top of includes list.
9905 * inferiors.c: Likewise.
9906 * linux-x86-low.c: Likewise.
9907 * notif.c: Include server.h.
9908
314c6a35
TT
99092014-07-24 Tom Tromey <tromey@redhat.com>
9910 Gary Benson <gbenson@redhat.com>
9911
9912 * server.h (CORE_ADDR): Now unsigned.
9913
69ff6be5
PA
99142014-07-16 Pedro Alves <palves@redhat.com>
9915
9916 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9917
ce9e3fe7
PA
99182014-07-15 Pedro Alves <palves@redhat.com>
9919
9920 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9921 copy.
9922
e76126e8
PA
99232014-07-11 Pedro Alves <palves@redhat.com>
9924
9925 * linux-low.c (kill_wait_lwp): New function, based on
9926 kill_one_lwp_callback, but use my_waitpid directly.
9927 (kill_one_lwp_callback, linux_kill): Use it.
9928
8e9db26e
PA
99292014-06-23 Pedro Alves <palves@redhat.com>
9930
9931 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9932 before setting DR0..DR3.
9933
698b3e08
GB
99342014-06-20 Gary Benson <gbenson@redhat.com>
9935
9936 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9937 * configure: Regenerated.
9938 * config.in: Likewise.
9939
125f8a3d
GB
99402014-06-20 Gary Benson <gbenson@redhat.com>
9941
9942 * Makefile.in (SFILES): Update locations for files moved
9943 from common to nat.
9944 (object file files): Reordered.
9945
42995dbd
GB
99462014-06-20 Gary Benson <gbenson@redhat.com>
9947
9948 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9949 (i386_dr_low_set_addr): Likewise.
9950 (i386_dr_low_get_addr): Likewise.
9951 (i386_dr_low_can_set_control): Likewise.
9952 (i386_dr_low_set_control): Likewise.
9953 (i386_dr_low_get_control): Likewise.
9954 (i386_dr_low_get_status): Likewise.
9955 (i386_get_debug_register_length): Likewise.
9956 * linux-x86-low.c (i386_dr_low_set_addr):
9957 Changed signature. Made static.
9958 (i386_dr_low_get_addr): Likewise.
9959 (i386_dr_low_set_control): Likewise.
9960 (i386_dr_low_get_control): Likewise.
9961 (i386_dr_low_get_status): Likewise.
9962 (i386_dr_low): New global variable.
9963 * win32-i386-low.c (i386_dr_low_set_addr):
9964 Changed signature. Made static.
9965 (i386_dr_low_get_addr): Likewise.
9966 (i386_dr_low_set_control): Likewise.
9967 (i386_dr_low_get_control): Likewise.
9968 (i386_dr_low_get_status): Likewise.
9969 (i386_dr_low): New global variable.
9970
e1d2394b
MS
99712014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9972
9973 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9974 * Makefile.in (AR, AR_FLAGS): Define.
9975 * configure: Regenerate.
9976
3a8ee006
GB
99772014-06-19 Gary Benson <gbenson@redhat.com>
9978
9979 * Makefile.in (i386-dregs.o): New rule.
9980 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
9981 * i386-low.c (target.h): Remove include.
9982 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
9983 (DR_CONTROL_SHIFT): Likewise.
9984 (DR_CONTROL_SIZE): Likewise.
9985 (DR_RW_EXECUTE): Likewise.
9986 (DR_RW_WRITE): Likewise.
9987 (DR_RW_READ): Likewise.
9988 (DR_RW_IORW): Likewise.
9989 (DR_LEN_1): Likewise.
9990 (DR_LEN_2): Likewise.
9991 (DR_LEN_4): Likewise.
9992 (DR_LEN_8): Likewise.
9993 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9994 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9995 (DR_ENABLE_SIZE): Likewise.
9996 (DR_LOCAL_SLOWDOWN): Likewise.
9997 (DR_GLOBAL_SLOWDOWN): Likewise.
9998 (DR_CONTROL_RESERVED): Likewise.
9999 (I386_DR_CONTROL_MASK): Likewise.
10000 (I386_DR_VACANT): Likewise.
10001 (I386_DR_LOCAL_ENABLE): Likewise.
10002 (I386_DR_GLOBAL_ENABLE): Likewise.
10003 (I386_DR_DISABLE): Likewise.
10004 (I386_DR_SET_RW_LEN): Likewise.
10005 (I386_DR_GET_RW_LEN): Likewise.
10006 (I386_DR_WATCH_HIT): Likewise.
10007 (i386_wp_op_t): Likewise.
10008 (i386_show_dr): Likewise.
10009 (i386_length_and_rw_bits): Likewise.
10010 (i386_insert_aligned_watchpoint): Likewise.
10011 (i386_remove_aligned_watchpoint): Likewise.
10012 (i386_handle_nonaligned_watchpoint): Likewise.
10013 i386_update_inferior_debug_regs(): Likewise.
10014 (i386_dr_insert_watchpoint): Likewise.
10015 (i386_dr_remove_watchpoint): Likewise.
10016 (i386_dr_region_ok_for_watchpoint): Likewise.
10017 (i386_dr_stopped_data_address): Likewise.
10018 (i386_dr_stopped_by_watchpoint): Likewise.
10019
8f26655c
GB
100202014-06-19 Gary Benson <gbenson@redhat.com>
10021
10022 * i386-low.c (i386_dr_show): Renamed to
10023 i386_show_dr and made static. All uses updated.
10024 (i386_dr_length_and_rw_bits): Renamed to
10025 i386_length_and_rw_bits and made static.
10026 All uses updated.
10027 (i386_dr_insert_aligned_watchpoint): Renamed to
10028 i386_insert_aligned_watchpoint and made static.
10029 All uses updated.
10030 (i386_dr_remove_aligned_watchpoint): Renamed to
10031 i386_remove_aligned_watchpoint and made static.
10032 All uses updated.
10033 (i386_dr_update_inferior_debug_regs): Renamed to
10034 i386_update_inferior_debug_regs and made static.
10035 All uses updated.
10036
b9228891
GB
100372014-06-18 Gary Benson <gbenson@redhat.com>
10038
5171def3
GB
10039 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10040 (i386_dr_low_can_set_control): Likewise.
10041 (i386_get_debug_register_length): Likewise.
10042 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10043 (i386_dr_low_can_set_control): Likewise.
10044 (i386_get_debug_register_length): Likewise.
10045
100462014-06-17 Gary Benson <gbenson@redhat.com>
10047
b9228891
GB
10048 * i386-low.h (i386-dregs.h): New include.
10049 (DR_FIRSTADDR): Now in i386-dregs.h.
10050 (DR_LASTADDR): Likewise.
10051 (DR_NADDR): Likewise.
10052 (DR_STATUS): Likewise.
10053 (DR_CONTROL): Likewise.
10054 (i386_debug_reg_state): Likewise.
10055 (i386_dr_insert_watchpoint): Likewise.
10056 (i386_dr_remove_watchpoint): Likewise.
10057 (i386_dr_region_ok_for_watchpoint): Likewise.
10058 (i386_dr_stopped_data_address): Likewise.
10059 (i386_dr_stopped_by_watchpoint): Likewise.
10060 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10061
4be83cc2
GB
100622014-06-18 Gary Benson <gbenson@redhat.com>
10063
10064 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10065 i386_dr_insert_watchpoint.
10066 (i386_low_remove_watchpoint): Renamed to
10067 i386_dr_remove_watchpoint.
10068 (i386_low_region_ok_for_watchpoint): Renamed to
10069 i386_dr_region_ok_for_watchpoint.
10070 (i386_low_stopped_data_address): Renamed to
10071 i386_dr_stopped_data_address.
10072 (i386_low_stopped_by_watchpoint): Renamed to
10073 i386_dr_stopped_by_watchpoint.
10074 * i386-low.c (i386_show_dr): Renamed to
10075 i386_dr_show and made nonstatic. All uses updated.
10076 (i386_length_and_rw_bits): Renamed to
10077 i386_dr_length_and_rw_bits and made nonstatic.
10078 All uses updated.
10079 (i386_insert_aligned_watchpoint): Renamed to
10080 i386_dr_insert_aligned_watchpoint and made nonstatic.
10081 All uses updated.
10082 (i386_remove_aligned_watchpoint): Renamed to
10083 i386_dr_remove_aligned_watchpoint and made nonstatic.
10084 All uses updated.
10085 (i386_update_inferior_debug_regs): Renamed to
10086 i386_dr_update_inferior_debug_regs and made nonstatic.
10087 All uses updated.
10088 (i386_low_insert_watchpoint): Renamed to
10089 i386_dr_insert_watchpoint. All uses updated.
10090 (i386_low_remove_watchpoint): Renamed to
10091 i386_dr_remove_watchpoint. All uses updated.
10092 (i386_low_region_ok_for_watchpoint): Renamed to
10093 i386_dr_region_ok_for_watchpoint. All uses updated.
10094 (i386_low_stopped_data_address): Renamed to
10095 i386_dr_stopped_data_address. All uses updated.
10096 (i386_low_stopped_by_watchpoint): Renamed to
10097 i386_dr_stopped_by_watchpoint. All uses updated.
10098
131aa0d4
GB
100992014-06-18 Gary Benson <gbenson@redhat.com>
10100
10101 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10102 (i386_dr_low_can_set_control): Likewise.
10103 (i386_insert_aligned_watchpoint): New check.
10104
d9305f7f
GB
101052014-06-18 Gary Benson <gbenson@redhat.com>
10106
10107 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10108 Renamed to state.
10109
e927c9fc
GB
101102014-06-18 Gary Benson <gbenson@redhat.com>
10111
10112 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10113 instead of fatal and error.
10114 (i386_handle_nonaligned_watchpoint): Likewise.
10115
1b6d4134
GB
101162014-06-18 Gary Benson <gbenson@redhat.com>
10117
10118 * i386-low.c (i386_get_debug_register_length): New macro.
10119 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10120 (i386_show_dr): Use debug_printf instead of fprintf. Use
10121 phex to format values.
10122
6e62758f
GB
101232014-06-18 Gary Benson <gbenson@redhat.com>
10124
10125 * i386-low.h: Comment changes.
10126 * i386-low.c: Likewise.
10127
fc6e2f03
GB
101282014-06-18 Gary Benson <gbenson@redhat.com>
10129
10130 * i386-low.c: Whitespace changes.
10131
f9d1eeed
TT
101322014-06-12 Tom Tromey <tromey@redhat.com>
10133
10134 * utils.c (freeargv): Remove.
10135
0b04e523
TT
101362014-06-12 Tom Tromey <tromey@redhat.com>
10137
10138 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10139 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10140 (parse_debug_format_options): Likewise.
10141 (gdbserver_usage): Likewise.
10142 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10143 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10144 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10145 against libiberty.
10146 ($(LIBGNU)): Depend on libiberty.
10147 (all-lib): Recurse into all subdirs.
10148 (install-only): Invoke "install" target in subdirs.
10149 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10150 targets.
10151 * configure: Rebuild.
10152 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10153 for vasprintf, vsnprintf, or gettimeofday.
10154 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10155 srv_tgtobj.
10156
270c9937
JB
101572014-06-05 Joel Brobecker <brobecker@adacore.com>
10158
10159 * development.sh: Delete.
10160 * Makefile.in (config.status): Adjust dependency on development.sh.
10161 * configure.ac: Adjust development.sh source call.
10162 * configure: Regenerate.
10163
0a261ed8
PA
101642014-06-02 Pedro Alves <palves@redhat.com>
10165
10166 * ax.c (gdb_free_agent_expr): New function.
10167 * ax.h (gdb_free_agent_expr): New declaration.
10168 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10169 list.
10170 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10171 static.
10172 (clear_breakpoint_conditions_and_commands): New function.
10173 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10174 (clear_breakpoint_conditions_and_commands): New declaration.
10175
e9dae05e
RR
101762014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10177
10178 * linux-aarch64-low.c (asm/ptrace.h): Include.
10179
5876f503
JK
101802014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10181
10182 Fix TLS access for -static -pthread.
10183 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10184 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10185 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10186
802e8e6d
PA
101872014-05-20 Pedro Alves <palves@redhat.com>
10188
10189 * linux-aarch64-low.c (aarch64_insert_point)
10190 (aarch64_remove_point): No longer check whether the type is
10191 supported here. Adjust to new interface.
10192 (the_low_target): Install aarch64_supports_z_point_type as
10193 supports_z_point_type method.
10194 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10195 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10196 instead of a Z packet char. Adjust.
10197 (arm_supports_z_point_type): New function.
10198 (arm_insert_point, arm_remove_point): Adjust to new interface.
10199 (the_low_target): Install arm_supports_z_point_type.
10200 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10201 (cris_insert_point, cris_remove_point): Adjust to new interface.
10202 Don't check whether the type is supported here.
10203 (the_low_target): Install cris_supports_z_point_type.
10204 * linux-low.c (linux_supports_z_point_type): New function.
10205 (linux_insert_point, linux_remove_point): Adjust to new interface.
10206 * linux-low.h (struct linux_target_ops) <insert_point,
10207 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10208 raw_breakpoint pointer parameter.
10209 <supports_z_point_type>: New method.
10210 * linux-mips-low.c (mips_supports_z_point_type): New function.
10211 (mips_insert_point, mips_remove_point): Adjust to new interface.
10212 Use mips_supports_z_point_type.
10213 (the_low_target): Install mips_supports_z_point_type.
10214 * linux-ppc-low.c (the_low_target): Install NULL as
10215 supports_z_point_type method.
10216 * linux-s390-low.c (the_low_target): Install NULL as
10217 supports_z_point_type method.
10218 * linux-sparc-low.c (the_low_target): Install NULL as
10219 supports_z_point_type method.
10220 * linux-x86-low.c (x86_supports_z_point_type): New function.
10221 (x86_insert_point): Adjust to new insert_point interface. Use
10222 insert_memory_breakpoint. Adjust to new
10223 i386_low_insert_watchpoint interface.
10224 (x86_remove_point): Adjust to remove_point interface. Use
10225 remove_memory_breakpoint. Adjust to new
10226 i386_low_remove_watchpoint interface.
10227 (the_low_target): Install x86_supports_z_point_type.
10228 * lynx-low.c (lynx_target_ops): Install NULL as
10229 supports_z_point_type callback.
10230 * nto-low.c (nto_supports_z_point_type): New.
10231 (nto_insert_point, nto_remove_point): Adjust to new interface.
10232 (nto_target_ops): Install nto_supports_z_point_type.
10233 * mem-break.c: Adjust intro comment.
10234 (struct raw_breakpoint) <raw_type, size>: New fields.
10235 <inserted>: Update comment.
10236 <shlib_disabled>: Delete field.
10237 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10238 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10239 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10240 (raw_bkpt_type_to_target_hw_bp_type): New function.
10241 (find_enabled_raw_code_breakpoint_at): New function.
10242 (find_raw_breakpoint_at): New type and size parameters. Use them.
10243 (insert_memory_breakpoint): New function, based off
10244 set_raw_breakpoint_at.
10245 (remove_memory_breakpoint): New function.
10246 (set_raw_breakpoint_at): Reimplement.
10247 (set_breakpoint): New, based on set_breakpoint_at.
10248 (set_breakpoint_at): Reimplement.
10249 (delete_raw_breakpoint): Go through the_target->remove_point
10250 instead of assuming memory breakpoints.
10251 (find_gdb_breakpoint_at): Delete.
10252 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10253 (find_gdb_breakpoint): New function.
10254 (set_gdb_breakpoint_at): Delete.
10255 (z_type_supported): New function.
10256 (set_gdb_breakpoint_1): New function, loosely based off
10257 set_gdb_breakpoint_at.
10258 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10259 (delete_gdb_breakpoint_at): Delete.
10260 (delete_gdb_breakpoint_1): New function, loosely based off
10261 delete_gdb_breakpoint_at.
10262 (delete_gdb_breakpoint): New function.
10263 (clear_gdb_breakpoint_conditions): Rename to ...
10264 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10265 breakpoint.
10266 (add_condition_to_breakpoint): Make static.
10267 (add_breakpoint_condition): Take a struct breakpoint pointer
10268 instead of an address. Adjust.
10269 (gdb_condition_true_at_breakpoint): Rename to ...
10270 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10271 z_type parameter.
10272 (gdb_condition_true_at_breakpoint): Reimplement.
10273 (add_breakpoint_commands): Take a struct breakpoint pointer
10274 instead of an address. Adjust.
10275 (gdb_no_commands_at_breakpoint): Rename to ...
10276 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10277 parameter. Return true if no breakpoint was found. Change debug
10278 output.
10279 (gdb_no_commands_at_breakpoint): Reimplement.
10280 (run_breakpoint_commands): Rename to ...
10281 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10282 and change return type to boolean.
10283 (run_breakpoint_commands): New function.
10284 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10285 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10286 breakpoint. Go through the_target->remove_point instead of
10287 assuming memory breakpoint.
10288 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10289 software and hardware breakpoints.
10290 (reinsert_raw_breakpoint): Go through the_target->insert_point
10291 instead of assuming memory breakpoint.
10292 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10293 software and hardware breakpoints.
10294 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10295 Check both software and hardware breakpoints.
10296 (validate_inserted_breakpoint): Assert the breakpoint is a
10297 software breakpoint. Set the inserted flag to -1 instead of
10298 setting shlib_disabled.
10299 (delete_disabled_breakpoints): Adjust.
10300 (validate_breakpoints): Only validate software breakpoints.
10301 Adjust to inserted flag change.
10302 (check_mem_read, check_mem_write): Skip breakpoint types other
10303 than software breakpoints. Adjust to inserted flag change.
10304 * mem-break.h (enum raw_bkpt_type): New enum.
10305 (raw_breakpoint, struct process_info): Forward declare.
10306 (Z_packet_to_target_hw_bp_type): Delete declaration.
10307 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10308 (set_gdb_breakpoint, delete_gdb_breakpoint)
10309 (clear_breakpoint_conditions): New declarations.
10310 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10311 (breakpoint_inserted_here): Update comment.
10312 (add_breakpoint_condition, add_breakpoint_commands): Replace
10313 address parameter with a breakpoint pointer parameter.
10314 (gdb_breakpoint_here): Update comment.
10315 (delete_gdb_breakpoint_at): Delete.
10316 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10317 * server.c (process_point_options): Take a struct breakpoint
10318 pointer instead of an address. Adjust.
10319 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10320 delete_gdb_breakpoint.
10321 * spu-low.c (spu_target_ops): Install NULL as
10322 supports_z_point_type method.
10323 * target.h: Include mem-break.h.
10324 (struct target_ops) <prepare_to_access_memory>: Update comment.
10325 <supports_z_point_type>: New field.
10326 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10327 instead of a char. Also take a raw breakpoint pointer.
10328 * win32-arm-low.c (the_low_target): Install NULL as
10329 supports_z_point_type.
10330 * win32-i386-low.c (i386_supports_z_point_type): New function.
10331 (i386_insert_point, i386_remove_point): Adjust to new interface.
10332 (the_low_target): Install i386_supports_z_point_type.
10333 * win32-low.c (win32_supports_z_point_type): New function.
10334 (win32_insert_point, win32_remove_point): Adjust to new interface.
10335 (win32_target_ops): Install win32_supports_z_point_type.
10336 * win32-low.h (struct win32_target_ops):
10337 <supports_z_point_type>: New method.
10338 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10339 instead of a char. Also take a raw breakpoint pointer.
10340
932539e3
PA
103412014-05-20 Pedro Alves <palves@redhat.com>
10342
10343 * mem-break.h: Include break-common.h.
10344 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10345 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10346 (Z_packet_to_target_hw_bp_type): New declaration.
10347 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10348 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10349 (Z_PACKET_ACCESS_WP): Delete macros.
10350 (Z_packet_to_hw_type): Delete function.
10351 * i386-low.h: Don't include break-common.h here.
10352 (Z_packet_to_hw_type): Delete declaration.
10353 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10354 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10355 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10356 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10357 * linux-aarch64-low.c: Don't include break-common.h here.
10358 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10359 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10360 (Z_packet_to_target_hw_bp_type): Delete function.
10361 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10362 function.
10363 (mips_insert_point, mips_remove_point): Use
10364 Z_packet_to_target_hw_bp_type.
10365
4ff0d3d8
PA
103662014-05-20 Pedro Alves <palves@redhat.com>
10367
10368 * linux-aarch64-low.c: Include break-common.h.
10369 (enum target_point_type): Delete.
10370 (Z_packet_to_point_type): Rename to ...
10371 (Z_packet_to_target_hw_bp_type): ... this, and return a
10372 target_hw_bp_type instead.
10373 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10374 instead of an enum target_point_type.
10375 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10376 breakpoint type.
10377 (aarch64_dr_state_insert_one_point)
10378 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10379 (aarch64_handle_aligned_watchpoint)
10380 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10381 Take an enum target_hw_bp_type instead of an enum
10382 target_point_type.
10383 (aarch64_supports_z_point_type): New function.
10384 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10385 use Z_packet_to_target_hw_bp_type.
10386
786dc519
JB
103872014-05-20 Joel Brobecker <brobecker@adacore.com>
10388
10389 * configure.ac: Only use -Werror by default when DEVELOPMENT
10390 is true.
10391 * configure: Regenerate.
10392
9e0aa64f
JK
103932014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10394
10395 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10396 * linux-x86-low.c (X86_64_USER_REGS): New.
10397 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10398
2b577b92
YQ
103992014-04-28 Yao Qi <yao@codesourcery.com>
10400
10401 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10402 name.
10403
94611da2
PA
104042014-04-25 Pedro Alves <palves@redhat.com>
10405
10406 PR server/16255
10407 * linux-low.c (linux_attach_fail_reason_string): New function.
10408 (linux_attach_lwp): Delete.
10409 (linux_attach_lwp_1): Rename to ...
10410 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10411 argument. Remove "initial" parameter. Return int instead of
10412 void. Don't error or warn here.
10413 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10414 failure to attach to the tgid. Call warning when failing to
10415 attach to an lwp.
10416 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10417 argument. Remove "initial" parameter. Return int instead of
10418 void. Don't error or warn here.
10419 (linux_attach_fail_reason_string): New declaration.
10420 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10421 interface change. Use linux_attach_fail_reason_string.
10422
01f9f808
MS
104232014-04-24 Michael Sturm <michael.sturm@mintel.com>
10424 Walfred Tedeschi <walfred.tedeschi@intel.com>
10425
10426 * Makefile.in: Added rules to handle new files
10427 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10428 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10429 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10430 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10431 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10432 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10433 x32-avx512-linux.o.
10434 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10435 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10436 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10437 i386/x32-avx512.xml.
10438 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10439 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10440 i386/x32-avx512-linux.xml.
10441 * i387-fp.c (num_avx512_k_registers): New constant for number
10442 of K registers.
10443 (num_avx512_zmmh_low_registers): New constant for number of
10444 lower ZMM registers (0-15).
10445 (num_avx512_zmmh_high_registers): New constant for number of
10446 higher ZMM registers (16-31).
10447 (num_avx512_ymmh_registers): New contant for number of higher
10448 YMM registers (ymm16-31 added by avx521 on x86_64).
10449 (num_avx512_xmm_registers): New constant for number of higher
10450 XMM registers (xmm16-31 added by AVX512 on x86_64).
10451 (struct i387_xsave): Add space for AVX512 registers.
10452 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10453 Add code to handle AVX512 registers.
10454 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10455 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10456 prototypei from generated file.
10457 (tdesc_amd64_avx512_linux): Likewise.
10458 (init_registers_x32_avx512_linux): Likewise.
10459 (tdesc_x32_avx512_linux): Likewise.
10460 (init_registers_i386_avx512_linux): Likewise.
10461 (tdesc_i386_avx512_linux): Likewise.
10462 (x86_64_regmap): Add AVX512 registers.
10463 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10464 mask.
10465 (initialize_low_arch): Add code to initialize AVX512 registers.
10466
51aa91f9
PA
104672014-04-23 Pedro Alves <palves@redhat.com>
10468
10469 * mem-break.c (find_gdb_breakpoint_at): Make static.
10470 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10471
a4165e94
PA
104722014-04-23 Pedro Alves <palves@redhat.com>
10473
10474 * i386-low.c: Don't include break-common.h here.
10475 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10476 prototype to take target_hw_bp_type as argument instead of a Z
10477 packet char.
10478 * i386-low.h: Include break-common.h here.
10479 (Z_packet_to_hw_type): Declare.
10480 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10481 prototypes.
10482 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10483 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10484 (x86_remove_point): Convert the packet number to a
10485 target_hw_bp_type before calling i386_low_remove_watchpoint.
10486 * win32-i386-low.c (i386_insert_point): Convert the packet number
10487 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10488 (i386_remove_point): Convert the packet number to a
10489 target_hw_bp_type before calling i386_low_remove_watchpoint.
10490
b8acf843
PA
104912014-04-23 Pedro Alves <palves@redhat.com>
10492
10493 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10494
d708bcd1
PA
104952014-04-10 Pedro Alves <palves@redhat.com>
10496
10497 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10498 Check if the condition or command is NULL before checking if the
10499 breakpoint is known. On success, return true.
10500 * mem-break.h (add_breakpoint_condition): Document return.
10501 (add_breakpoint_commands): Add describing comment.
10502 * server.c (skip_to_semicolon): New function.
10503 (process_point_options): Use it.
10504
2eec7d5b
PA
105052014-04-09 Pedro Alves <palves@redhat.com>
10506
10507 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10508 to lwpid_of.
10509
fa96cb38
PA
105102014-02-27 Pedro Alves <palves@redhat.com>
10511
10512 PR 12702
10513 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10514 macros.
10515 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10516 output.
10517 (last_thread_of_process_p): Take a PID argument instead of a
10518 thread pointer.
10519 (linux_wait_for_lwp): Delete.
10520 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10521 functions.
10522 (linux_low_filter_event): New function, party factored out from
10523 linux_wait_for_event.
10524 (linux_wait_for_event): Rename to ...
10525 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10526 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10527 sigsuspend. Check for zombie leaders.
10528 (linux_wait_for_event): Reimplement as wrapper around
10529 linux_wait_for_event_filtered.
10530 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10531 a normal or signal exit is seen, it's the whole process exiting.
10532 (wait_for_sigstop): No longer a for_each_inferior callback.
10533 Rewrite on top of linux_wait_for_event_filtered.
10534 (stop_all_lwps): Call wait_for_sigstop directly.
10535 * server.c (resume, handle_target_event): Handle
10536 TARGET_WAITKIND_NO_RESUMED.
10537
d763de10
JB
105382014-02-26 Joel Brobecker <brobecker@adacore.com>
10539
10540 * win32-low.c (psapi_get_dll_name,
10541 * win32_CreateToolhelp32Snapshot): Delete.
10542 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10543 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10544 Delete.
10545 (handle_load_dll): Add function description.
10546 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10547
850a0f76
JB
105482014-02-26 Joel Brobecker <brobecker@adacore.com>
10549
10550 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10551 Add comment.
10552 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10553 base address when calling win32_add_one_solib.
10554 (handle_load_dll): Delete local variable load_addr.
10555 Remove 0x1000 offset applied to DLL base address when calling
10556 win32_add_one_solib.
10557 (handle_unload_dll): Add comment.
10558
f25b3fc3
JB
105592014-02-26 Joel Brobecker <brobecker@adacore.com>
10560
10561 * win32-low.c (win32_add_all_dlls): Renames
10562 win32_ensure_ntdll_loaded. Rewrite function documentation.
10563 Adjust implementation to always load all DLLs.
10564 Add 0x1000 offset to DLL base address when calling
10565 win32_add_one_solib.
10566 (child_initialization_done): New static global.
10567 (do_initial_child_stuff): Set child_initialization_done to
10568 zero during child initialization, and 1 after. Replace call
10569 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10570 Add comment.
10571 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10572 (handle_unload_dll): Add function documentation.
10573 (get_child_debug_event): Ignore load and unload DLL events
10574 during child initialization.
10575
d86d4aaf
DE
105762014-02-20 Doug Evans <dje@google.com>
10577
3bc32da3 10578 Remove global all_lwps.
d86d4aaf
DE
10579 * inferiors.h (ptid_of): Move here from linux-low.h.
10580 (pid_of, lwpid_of): Ditto.
10581 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10582 parameter is a struct thread_info * now.
10583 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10584 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10585 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10586 directly.
10587 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10588 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10589 * linux-arm-low.c (update_registers_callback): Update, "entry"
10590 parameter is a struct thread_info * now.
10591 Fetch lwpid from current_inferior directly.
10592 (arm_insert_point): Pass &all_threads to find_inferior instead of
10593 &all_lwps.
10594 (arm_remove_point): Ditto.
10595 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10596 (arm_prepare_to_resume): Fetch pid from thread.
10597 (arm_read_description): Fetch lwpid from current_inferior directly.
10598 * linux-low.c (all_lwps): Delete.
10599 (delete_lwp): Delete call to remove_inferior.
10600 (handle_extended_wait): Fetch lwpid from thread.
10601 (add_lwp): Don't set lwp->entry.id. Remove call to
10602 add_inferior_to_list.
10603 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10604 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10605 (kill_one_lwp_callback): Ditto.
10606 (linux_kill): Don't dereference NULL pointer.
10607 Fetch ptid,lwpid from thread.
10608 (get_detach_signal): Fetch ptid from thread.
10609 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10610 Simplify call to regcache_invalidate_thread.
10611 (delete_lwp_callback): Update, "entry" parameter is a
10612 struct thread_info * now. Fetch pid from thread.
10613 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10614 (status_pending_p_callback): Update, "entry" parameter is a
10615 struct thread_info * now. Fetch ptid from thread.
10616 (find_lwp_pid): Update, "entry" parameter is a
10617 struct thread_info * now.
10618 (linux_wait_for_lwp): Fetch pid from thread.
10619 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10620 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10621 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10622 (dequeue_one_deferred_signal): Ditto.
10623 (cancel_breakpoint): Fetch ptid from current_inferior.
10624 (linux_wait_for_event): Pass &all_threads to find_inferior,
10625 not &all_lwps. Fetch ptid, lwpid from thread.
10626 (count_events_callback): Update, "entry" parameter is a
10627 struct thread_info * now.
10628 (select_singlestep_lwp_callback): Ditto.
10629 (select_event_lwp_callback): Ditto.
10630 (cancel_breakpoints_callback): Ditto.
10631 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10632 not &all_lwps.
10633 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10634 (unsuspend_one_lwp): Update, "entry" parameter is a
10635 struct thread_info * now.
10636 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10637 not &all_lwps.
10638 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10639 Fetch lwpid from thread, not lwp.
10640 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10641 Pass &all_threads to find_inferior, not &all_lwps.
10642 (send_sigstop): Fetch lwpid from thread, not lwp.
10643 (send_sigstop_callback): Update, "entry" parameter is a
10644 struct thread_info * now.
10645 (suspend_and_send_sigstop_callback): Ditto.
10646 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10647 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10648 struct thread_info * now.
10649 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10650 from thread, lwp.
10651 (lwp_running): Update, "entry" parameter is a
10652 struct thread_info * now.
10653 (stop_all_lwps): Fetch ptid from thread.
10654 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10655 (linux_resume_one_lwp): Fetch lwpid from thread.
10656 (linux_set_resume_request): Update, "entry" parameter is a
10657 struct thread_info * now. Fetch pid, lwpid from thread.
10658 (resume_status_pending_p): Update, "entry" parameter is a
10659 struct thread_info * now.
10660 (need_step_over_p): Ditto. Fetch lwpid from thread.
10661 (start_step_over): Fetch lwpid from thread.
10662 (linux_resume_one_thread): Update, "entry" parameter is a
10663 struct thread_info * now. Fetch lwpid from thread.
10664 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10665 (proceed_one_lwp): Update, "entry" parameter is a
10666 struct thread_info * now. Fetch lwpid from thread.
10667 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10668 struct thread_info * now.
10669 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10670 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10671 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10672 directly.
10673 (regsets_store_inferior_registers): Ditto.
10674 (fetch_register, store_register): Ditto.
10675 (linux_read_memory, linux_write_memory): Ditto.
10676 (linux_request_interrupt): Ditto.
10677 (linux_read_auxv): Ditto.
10678 (linux_xfer_siginfo): Ditto.
10679 (linux_qxfer_spu): Ditto.
10680 (linux_qxfer_libraries_svr4): Ditto.
10681 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10682 moved to inferiors.h.
10683 (get_lwp): Delete.
10684 (get_thread_lwp): Update.
10685 (struct lwp_info): Delete member "entry". Simplify comment for
10686 member "thread".
10687 (all_lwps): Delete.
10688 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10689 current_inferior directly.
10690 (update_watch_registers_callback): Update, "entry" parameter is a
10691 struct thread_info * now. Fetch pid from thread.
10692 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10693 (mips_insert_point): Fetch lwpid from current_inferior.
10694 Pass &all_threads to find_inferior, not &all_lwps.
10695 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10696 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10697 directly.
10698 (mips_stopped_data_address): Ditto.
10699 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10700 directly.
10701 * linux-tile-low.c (tile_arch_setup): Ditto.
10702 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10703 (update_debug_registers_callback): Update, "entry" parameter is a
10704 struct thread_info * now. Fetch pid from thread.
10705 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10706 Pass &all_threads to find_inferior, not &all_lwps.
10707 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10708 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10709 Pass &all_threads to find_inferior, not &all_lwps.
10710 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10711 (i386_dr_low_get_status): Ditto.
10712 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10713 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10714 (x86_linux_read_description): Ditto.
10715 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10716
3b8361aa
DE
107172014-02-20 Doug Evans <dje@google.com>
10718
10719 * inferiors.c (get_first_inferior): Fix buglet.
10720
f7667f0d
DE
107212014-02-19 Doug Evans <dje@google.com>
10722
10723 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10724 * inferiors.c (add_thread): Change result type to struct thread_info *.
10725 All callers updated.
10726 (add_lwp): Call add_thread here instead of in callers.
10727 All callers updated.
10728 * linux-low.h (get_lwp_thread): Rewrite.
10729 (struct lwp_info): New member "thread".
10730
b3312d80
DE
107312014-02-19 Doug Evans <dje@google.com>
10732
10733 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10734 All callers updated.
10735
ecc6f45c
DE
107362014-02-19 Doug Evans <dje@google.com>
10737
10738 * inferiors.c (add_thread): Fix whitespace.
10739
649ebbca
DE
107402014-02-19 Doug Evans <dje@google.com>
10741
10742 * dll.c (clear_dlls): Replace accessing list implemention details
10743 with API function.
10744 * gdbthread.h (get_first_thread): Declare.
10745 * inferiors.c (for_each_inferior_with_data): New function.
10746 (get_first_thread): New function.
10747 (find_thread_ptid): Simplify.
10748 (get_first_inferior): New function.
10749 (clear_list): Delete.
10750 (one_inferior_p): New function.
10751 (clear_inferior_list): New function.
10752 (clear_inferiors): Update.
10753 * inferiors.h (for_each_inferior_with_data): Declare.
10754 (clear_inferior_list): Declare.
10755 (one_inferior_p): Declare.
10756 (get_first_inferior): Declare.
10757 * linux-low.c (linux_wait_for_event): Replace accessing list
10758 implemention details with API function.
10759 * server.c (target_running): Ditto.
10760 (accumulate_file_name_length): New function.
10761 (emit_dll_description): New function.
10762 (handle_qxfer_libraries): Replace accessing list implemention
10763 details with API function.
10764 (handle_qxfer_threads_worker): New function.
10765 (handle_qxfer_threads_proper): Replace accessing list implemention
10766 details with API function.
10767 (handle_query): Ditto.
10768 (visit_actioned_threads_callback_ftype): New typedef.
10769 (visit_actioned_threads_data): New struct.
10770 (visit_actioned_threads): Rewrite to be find_inferior callback.
10771 (resume): Call find_inferior.
10772 (handle_status): Replace accessing list implemention
10773 details with API function.
10774 (process_serial_event): Replace accessing list implemention details
10775 with API function.
10776 * target.c (set_desired_inferior): Replace accessing list implemention
10777 details with API function.
10778 * tracepoint.c (same_process_p): New function.
10779 (gdb_agent_about_to_close): Replace accessing list implemention
10780 details with API function.
10781 * win32-low.c (child_delete_thread): Replace accessing list
10782 implemention details with API function.
10783 (match_dll_by_basename): New function.
10784 (dll_is_loaded_by_basename): New function.
10785 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10786 details call to dll_is_loaded_by_basename.
10787
80894984
DE
107882014-02-19 Doug Evans <dje@google.com>
10789
10790 * dll.h (struct dll_info): Add comment.
10791 * gdbthread.h (struct thread_info): Add comment.
10792 (current_ptid): Simplify.
10793 * inferiors.c (add_process): Update.
10794 (remove_process): Update.
10795 * inferiors.h (struct process_info): Rename member "head" to "entry".
10796 * linux-low.c (delete_lwp): Update.
10797 (add_lwp): Update.
10798 (last_thread_of_process_p): Update.
10799 (kill_one_lwp_callback, linux_kill): Update.
10800 (status_pending_p_callback): Update.
10801 (wait_for_sigstop): Update. Simplify read of ptid.
10802 (start_step_over): Update.
10803 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10804 (get_lwp_thread): Update.
10805 (struct lwp_info): Rename member "head" to "entry".
10806 * regcache.h (inferior_list_entry): Delete.
10807 * server.c (kill_inferior_callback): Update.
10808 (detach_or_kill_inferior_callback): Update.
10809 (print_started_pid): Update.
10810 (print_attached_pid): Update.
10811 (process_serial_event): Simplify read of ptid.
10812 * thread-db.c (thread_db_create_event): Update.
10813 (thread_db_get_tls_address): Update.
10814 * win32-low.c (current_inferior_ptid): Simplify.
10815
46917d26
TT
108162014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10819 argument.
10820 (target_supports_btrace): Update.
10821
0759a81e
YQ
108222014-02-14 Yao Qi <yao@codesourcery.com>
10823
10824 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10825 (rsp-low-ipa.o): New target.
10826
a7191e8b
TT
108272014-02-12 Tom Tromey <tromey@redhat.com>
10828
10829 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10830 convert_ascii_to_int.
10831 * regcache.c (registers_to_string): Likewise.
10832 * remote-utils.c (decode_M_packet): Likewise.
10833 * server.c (process_serial_event): Likewise.
10834
ff0e980e
TT
108352014-02-12 Tom Tromey <tromey@redhat.com>
10836
10837 * server.c (handle_query, handle_v_run): Use hex2bin, not
10838 unhexify.
10839 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10840
e9371aff
TT
108412014-02-12 Tom Tromey <tromey@redhat.com>
10842
10843 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10844 convert_int_to_ascii.
10845 * regcache.c (registers_to_string, collect_register_as_string):
10846 Likewise.
10847 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10848 Likewise.
10849 * server.c (process_serial_event): Likewise.
10850 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10851 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10852
971dc0b8
TT
108532014-02-12 Tom Tromey <tromey@redhat.com>
10854
10855 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10856 bin2hex, not hexify.
10857 * tracepoint.c (cmd_qtstatus): Likewise.
10858
0a822afb
TT
108592014-02-12 Tom Tromey <tromey@redhat.com>
10860
10861 * remote-utils.c (monitor_output): Pass explicit length to
10862 hexify.
10863
9c3d6531
TT
108642014-02-12 Tom Tromey <tromey@redhat.com>
10865
10866 * tracepoint.c: Include rsp-low.h.
10867 * server.c: Include rsp-low.h.
10868 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10869 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10870 declare.
10871 * remote-utils.c: Include rsp-low.h.
10872 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10873 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10874 (convert_int_to_ascii, convert_ascii_to_int): Move to
10875 common/rsp-low.c.
10876 * regcache.c: Include rsp-low.h.
10877 * ax.c: Include rsp-low.h.
10878 * Makefile.in (SFILES): Add common/rsp-low.c.
10879 (OBS): Add rsp-low.o.
10880 (rsp-low.o): New target.
10881
01fd3ea5
TT
108822014-02-12 Tom Tromey <tromey@redhat.com>
10883
10884 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10885 Include print-utils.h.
10886 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10887 (plongest, thirty_two, phex_nz): Remove.
10888 * Makefile.in (SFILES): Add common/print-utils.c.
10889 (OBS): Add print-utils.o.
10890 (print-utils-ipa.o): New target.
10891 (print-utils.o): New target.
10892 (IPA_OBJS): Add print-utils-ipa.o.
10893
e99dc820
TT
108942014-02-06 Tom Tromey <tromey@redhat.com>
10895
10896 * Makefile.in (SFILES): Fix indentation.
10897
ee1e2d4f
DE
108982014-02-05 Doug Evans <dje@google.com>
10899
10900 * linux-low.c (linux_wait_for_event): Improve comment.
10901 (linux_wait_1): Keep current_inferior in sync with event_child.
10902
f5a02773
DE
109032014-01-22 Doug Evans <dje@google.com>
10904
10905 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10906
87ce2a04
DE
109072014-01-22 Doug Evans <dje@google.com>
10908
10909 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10910 * configure: Regenerate.
10911 * config.in: Regenerate.
10912 * Makefile.in (SFILES): Add debug.c.
10913 (OBS): Add debug.o.
10914 * debug.c: New file.
10915 * debug.h: New file.
10916 * linux-aarch64-low.c (*): Update all debugging printfs to use
10917 debug_printf instead of fprintf.
10918 * linux-arm-low.c (*): Ditto.
10919 * linux-cris-low.c (*): Ditto.
10920 * linux-crisv32-low.c (*): Ditto.
10921 * linux-m32r-low.c (*): Ditto.
10922 * linux-sparc-low.c (*): Ditto.
10923 * linux-x86.c (*): Ditto.
10924 * linux-low.c (*): Ditto.
10925 (linux_wait_1): Add calls to debug_enter, debug_exit.
10926 (linux_wait): Remove redundant debugging printf.
10927 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10928 (linux_resume, unstop_all_lwps): Ditto.
10929 * mem-break.c (*): Update all debugging printfs to use
10930 debug_printf instead of fprintf.
10931 * remote-utils.c (*): Ditto.
10932 * thread-db.c (*): Ditto.
10933 * server.c #include <ctype.h>, "gdb_vecs.h".
10934 (debug_threads): Moved to debug.c.
10935 (*): Update all debugging printfs to use debug_printf instead of
10936 fprintf.
10937 (start_inferior): Replace call to fflush with call to debug_flush.
10938 (monitor_show_help): Mention set debug-format.
10939 (parse_debug_format_options): New function.
10940 (handle_monitor_command): Handle "monitor set debug-format".
10941 (gdbserver_usage): Mention --debug-format.
10942 (main): Parse --debug-format.
10943 * server.h (debug_threads): Declaration moved to debug.h.
10944 #include "debug.h".
10945 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10946 trace_debug_1 that uses debug_printf.
10947 (tracepoint_look_up_symbols): Update all debugging printfs to use
10948 debug_printf instead of fprintf.
10949
e671835b
BS
109502014-01-20 Baruch Siach <baruch@tkos.co.il>
10951
10952 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10953 sys/ptrace.h.
10954
b5737fa9
PA
109552014-01-17 Pedro Alves <palves@redhat.com>
10956
ea38d2a9 10957 PR build/16445
c7faa97a
PA
10958 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10959 defined after including gdb_proc_service.h.
b5737fa9 10960
40ed484e
DE
109612014-01-16 Doug Evans <dje@google.com>
10962
10963 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10964 (match_dll): Use it.
10965
969c39fb
MM
109662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10967
10968 * target.h (target_ops) <read_btrace>: Change parameters and
10969 return type to allow error reporting.
10970 * server.c (handle_qxfer_btrace): Support delta reads. Pass
10971 trace reading errors on.
10972 * linux-low.c (linux_low_read_btrace): Pass trace reading
10973 errors on.
10974 (linux_low_disable_btrace): New.
10975
ab7f45ba
DE
109762014-01-15 Doug Evans <dje@google.com>
10977
10978 * inferiors.c (thread_id_to_gdb_id): Delete.
10979 * inferiors.h (thread_id_to_gdb_id): Delete.
10980
66af0f44
EZ
109812014-01-13 Eli Zaretskii <eliz@gnu.org>
10982
10983 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10984 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10985 versions.
10986
9939e131
PA
109872014-01-08 Pedro Alves <palves@redhat.com>
10988
10989 * server.c (handle_status): Don't discard previous queued stop
10990 replies or thread's pending status here.
10991 (main) <disconnection>: Do it here instead.
10992
b7ea362b
PA
109932014-01-08 Pedro Alves <palves@redhat.com>
10994
10995 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10996 * server.c (visit_actioned_threads, handle_pending_status): New
10997 function.
10998 (handle_v_cont): Factor out parts to ...
10999 (resume): ... this new function. If in all-stop, and a thread
11000 being resumed has a pending status, report it without actually
11001 resuming.
11002 (myresume): Adjust to use the new 'resume' function.
11003 (clear_pending_status_callback, set_pending_status_callback)
11004 (find_status_pending_thread_callback): New functions.
11005 (handle_status): Handle the case of multiple threads having
11006 interesting statuses to report. Report threads' real last signal
11007 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11008 with an interesting thread to report the status for, instead of
11009 always reporting the status of the first thread.
11010
28498c42
JB
110112014-01-01 Joel Brobecker <brobecker@adacore.com>
11012
11013 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11014 * gdbreplay.c (gdbreplay_version): Likewise.
11015
f45c82da
YZ
110162013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11017
11018 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11019 iov.iov_len with the real length in use.
11020
379a5e2d
JB
110212013-12-13 Joel Brobecker <brobecker@adacore.com>
11022
11023 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11024 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11025 for all targets that use win32-low.c.
11026 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11027 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11028
4210d83e
PA
110292013-12-13 Pedro Alves <palves@redhat.com>
11030
11031 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11032 if equal to TARGET_WAITKIND_LOADED.
11033 * win32-low.c (cached_status): New static global.
11034 (win32_wait): Add declaration.
11035 (do_initial_child_stuff): Flush all initial pending debug events
11036 up to the initial breakpoint.
11037 (win32_wait): If CACHED_STATUS was set, return that instead
11038 of doing a real wait. Remove the code resuming the execution
11039 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11040 during the initial phase. Also remove the code changing
11041 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11042 TARGET_WAITKIND_STOPPED.
11043
e7f0d979
YQ
110442013-12-11 Yao Qi <yao@codesourcery.com>
11045
11046 * notif.c (handle_notif_ack): Return 0 if no notification
11047 matches.
11048
ebcf782c
DE
110492013-11-20 Doug Evans <dje@google.com>
11050
11051 * linux-low.c (linux_set_resume_request): Fix comment.
11052
20ad9378
DE
110532013-11-20 Doug Evans <dje@google.com>
11054
11055 * linux-low.c (resume_status_pending_p): Tweak comment.
11056
a196ebeb
WT
110572013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11058
11059 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11060 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11061 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11062 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11063 (srv_amd64_regobj): Add amd64-mpx.o.
11064 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11065 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11066 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11067 * i387-fp.c (num_pl_bnd_register) Added constant.
11068 (num_pl_bnd_cfg_registers) Added constant.
11069 (struct i387_xsave) Added reserved area and MPX fields.
11070 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11071 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11072 function.
11073 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11074 (init_registers_amd64_mpx_linux): Declare new function.
11075 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11076 (x86_64_regmap): Add MPX registers.
11077 (x86_linux_read_description): Add MPX case.
11078 (initialize_low_arch): Initialize MPX targets.
11079
0080a2f6
TT
110802013-11-18 Tom Tromey <tromey@redhat.com>
11081
11082 * configure: Rebuild.
11083 * configure.ac: Don't check for stdlib.h.
11084 * gdbreplay.c: Unconditionally include stdlib.h.
11085
2978b111
TT
110862013-11-18 Tom Tromey <tromey@redhat.com>
11087
11088 * config.in: Rebuild.
11089 * configure: Rebuild.
11090 * configure.ac: Don't use AC_HEADER_DIRENT.
11091
a3d08894
TT
110922013-11-18 Tom Tromey <tromey@redhat.com>
11093
11094 * server.h: Don't check HAVE_STRING_H.
11095 * gdbreplay.c: Don't check HAVE_STRING_H.
11096 * configure: Rebuild.
11097
0a5dd17d
TT
110982013-11-18 Tom Tromey <tromey@redhat.com>
11099
11100 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11101 LIBGNU.
11102
1bd2f0ba
TT
111032013-11-08 Tom Tromey <tromey@redhat.com>
11104
11105 * configure, config.in: Rebuild.
11106 * configure.ac: Remove unused configury.
11107
3266f10b
TT
111082013-11-08 Tom Tromey <tromey@redhat.com>
11109
11110 * acinclude.m4: Include common.m4, codeset.m4.
11111 * configure, config.in: Rebuild.
11112 * configure.ac: Use GDB_AC_COMMON.
11113
6682d959
AA
111142013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11115
11116 * linux-s390-low.c (HWCAP_S390_TE): New define.
11117 (s390_arch_setup): Consider the TE field in the HWCAP for
11118 determining 'have_regset_tdb'.
11119
fd0a4d76
SDJ
111202013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11121
11122 PR gdb/16014
11123 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11124 call to sizeof.
11125
1a3d890b
PA
111262013-10-02 Pedro Alves <palves@redhat.com>
11127
11128 * server.c (process_serial_event): Don't output "GDBserver
11129 exiting" if GDB is connected through stdio.
11130 * target.c (mywait): Likewise, be silent if GDB is connected
11131 through stdio.
11132
97ad4581
JB
111332013-10-01 Joel Brobecker <brobecker@adacore.com>
11134
11135 * lynx-low.c (lynx_add_threads_after_attach): New function.
11136 (lynx_attach): Remove call to add_thread. Add call to
11137 lynx_add_threads_after_attach instead.
11138
5b4e221c
MF
111392013-09-28 Mike Frysinger <vapier@gentoo.org>
11140
11141 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11142 * config.in, configure: Regenerated.
11143
ee47b2f8
YQ
111442013-09-18 Yao Qi <yao@codesourcery.com>
11145
11146 PR server/15959
11147 * server.c (start_inferior): Clear 'resume_info'.
11148
d6707650 111492013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 11150
d6707650
JW
11151 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11152 for each register.
11153
9243dd0e 111542013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 11155
9243dd0e
JW
11156 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11157 linux-tile-low.o to srv_tgtobj.
11158
c623a6ef
WN
111592013-09-16 Will Newton <will.newton@linaro.org>
11160
11161 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11162 out regs.
11163
fb71d39e
PA
111642013-09-06 Pedro Alves <palves@redhat.com>
11165
11166 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11167 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11168 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11169 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11170 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11171 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11172
8e7e9910
PA
111732013-09-06 Pedro Alves <palves@redhat.com>
11174
11175 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11176 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11177
7c3a12ca
PA
111782013-09-06 Pedro Alves <palves@redhat.com>
11179
11180 * linux-amd64-ipa.c: Include tracepoint.h.
11181 * linux-i386-ipa.c: Include tracepoint.h.
11182
8eb3d7b6
RW
111832013-09-06 Ricard Wanderlof <ricardw@axis.com>
11184
11185 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11186 (ps_get_thread_area): New function.
11187
eddddb9d
RW
111882013-09-06 Ricard Wanderlof <ricardw@axis.com>
11189
11190 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11191 (initialize_low_arch): Call init_registers_crisv32 rather than
11192 init_register_crisv32.
11193
533b0600
PA
111942013-09-05 Pedro Alves <palves@redhat.com>
11195
11196 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11197 to ...
11198 * hostio.h: ... this new file.
11199 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11200 win32-low.c: Include hostio.h.
11201
0ce3d3b5
PA
112022013-09-05 Pedro Alves <palves@redhat.com>
11203
11204 * server.h (gdb_client_data, handler_func, callback_handler_func)
11205 (delete_file_handler, add_file_handler, append_callback_event)
11206 (delete_callback_event, start_event_loop, initialize_event_loop):
11207 Move to event-loop.h and include it.
11208 * event-loop.h: New file.
11209
799cdc37
PA
112102013-09-05 Pedro Alves <palves@redhat.com>
11211
11212 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11213 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11214 (loaded_dll, unloaded_dll): Move to ...
11215 * dll.h: ... this new file.
11216 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11217
6a6bbd9d
PA
112182013-09-05 Pedro Alves <palves@redhat.com>
11219
11220 * server.h (current_process, get_thread_process, all_processes)
11221 (add_inferior_to_list, for_each_inferior, current_inferior)
11222 (remove_inferior, add_process, remove_process, find_process_pid)
11223 (have_started_inferiors_p, have_attached_inferiors_p)
11224 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11225 (clear_inferiors, find_inferior, find_inferior_id)
11226 (inferior_target_data, set_inferior_target_data)
11227 (inferior_regcache_data, set_inferior_regcache_data): Move to
11228 inferiors.h, and include it.
11229 * inferiors.h: New file.
11230
f699aaba
PA
112312013-09-05 Pedro Alves <palves@redhat.com>
11232
11233 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11234 Move ...
72f4393d 11235 * ax.h: ... here.
f699aaba 11236
c144c7a0
PA
112372013-09-05 Pedro Alves <palves@redhat.com>
11238
11239 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11240 tracepoint.h.
11241 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11242 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11243 (handle_tracepoint_general_set, handle_tracepoint_query)
11244 (tracepoint_finished_step, tracepoint_was_hit)
11245 (release_while_stepping_state_list, current_traceframe)
11246 (in_readonly_region, traceframe_read_mem)
11247 (fetch_traceframe_registers, traceframe_read_sdata)
11248 (traceframe_read_info, struct fast_tpoint_collect_status)
11249 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11250 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11251 (supply_fast_tracepoint_registers)
11252 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11253 (ipa_tdesc, claim_trampoline_space)
11254 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11255 (agent_mem_read, agent_get_trace_state_variable_value)
11256 (agent_set_trace_state_variable_value, agent_tsv_read)
11257 (agent_mem_read_string, get_raw_reg_func_addr)
11258 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11259 * tracepoint.h: ... this new file.
11260
ff42e6ab
PA
112612013-09-05 Pedro Alves <palves@redhat.com>
11262
11263 * server.h (perror_with_name, error, fatal, warning, paddress)
11264 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11265 include it.
11266 * utils.h: New file.
11267
541af0f4
PA
112682013-09-05 Pedro Alves <palves@redhat.com>
11269
11270 * server.h (remote_debug, noack_mode, transport_is_reliable)
11271 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11272 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11273 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11274 (write_enn, initialize_async_io, enable_async_io)
11275 (disable_async_io, check_remote_input_interrupt_request)
11276 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11277 (dead_thread_notify, prepare_resume_reply)
11278 (decode_address_to_semicolon, decode_address, decode_m_packet)
11279 (decode_M_packet, decode_X_packet, decode_xfer_write)
11280 (decode_search_memory_packet, unhexify, hexify)
11281 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11282 (look_up_one_symbol, relocate_instruction)
11283 (monitor_output): Move to remote-utils.h, and include it.
11284 * remote-utils.h: New file.
11285
eebdf26b
PA
112862013-09-05 Pedro Alves <palves@redhat.com>
11287
11288 * server.h (_): Delete.
11289
3aafd2ff
PA
112902013-09-02 Pedro Alves <palves@redhat.com>
11291
11292 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11293 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11294 allocated.
11295 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11296
cee83bcb
PM
112972013-09-02 Pierre Muller <muller@sourceware.org>
11298
11299 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11300 or WriteProcessMemory complete successfully and handle
11301 ERROR_PARTIAL_COPY error.
11302
9a13b2fa
PA
113032013-09-02 Pedro Alves <palves@redhat.com>
11304
11305 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11306 error instead of EIO.
11307
602e3198
JK
113082013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11309
11310 PR server/15604
11311 * linux-low.c: Include filestuff.h.
11312 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11313 * lynx-low.c: Include filestuff.h.
11314 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11315 * server.c: Include filestuff.h.
11316 (main): Call notice_open_fds.
11317 * spu-low.c: Include filestuff.h.
11318 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11319
96d7229d
LM
113202013-08-22 Luis Machado <lgustavo@codesourcery.com>
11321
11322 * Makefile.in: Explain why ../target and ../nat are not
11323 listed as include file search paths.
11324 (linux-waitpid.o): New object file rule.
11325 * configure.srv (srv_native_linux_obj): New variable.
11326 Replace all occurrences of linux native object files with
11327 $srv_native_linux_obj.
11328 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11329 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11330 (linux_enable_event_reporting): Remove declaration.
11331 (my_waitpid): Moved to common/linux-waitpid.c.
11332 (linux_wait_for_event): Pass ptid when calling
11333 linux_enable_event_reporting.
11334 (linux_supports_tracefork_flag): Remove.
11335 (linux_enable_event_reporting): Likewise.
11336 (linux_tracefork_grandchild): Remove.
11337 (STACK_SIZE): Moved to common/linux-ptrace.c.
11338 (linux_tracefork_child): Remove.
11339 (linux_test_for_tracefork): Remove.
11340 (linux_look_up_symbols): Call linux_supports_traceclone.
11341 (initialize_low): Remove call to linux_test_for_tracefork.
11342 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11343 common/linux-ptrace.h.
11344 (PTRACE_TYPE_ARG4): Likewise.
11345 Include linux-ptrace.h.
11346
32940073
PA
113472013-08-21 Pedro Alves <palves@redhat.com>
11348
11349 * config.in: Renegerate.
11350
33b60d58 113512013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 11352
33b60d58
LM
11353 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11354 (SFILES): Remove $(srcdir)/common/target-common.c and
11355 add $(srcdir)/target/waitstatus.c.
11356 (OBS): Remove target-common.o and add waitstatus.o.
11357 (server_h): Remove $(srcdir)/../common/target-common.h and
11358 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11359 and $(srcdir)/../target/waitstatus.h.
11360 (target-common.o): Remove.
11361 (waitstatus.o): New target object file.
11362 * target.h: Do not include target-common.h and
11363 include target/resume.h, target/wait.h and
11364 target/waitstatus.h.
11365
b8e1b30e
LM
113662013-08-13 Luis Machado <lgustavo@codesourcery.com>
11367
11368 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11369 to PTRACE_TYPE_ARG3.
11370 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11371 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11372 PTRACE_TYPE_ARG4.
11373 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11374 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11375
7a60ad40
YQ
113762013-07-27 Jie Zhang <jie@codesourcery.com>
11377 Daniel Jacobowitz <dan@codesourcery.com>
11378 Yao Qi <yao@codesourcery.com>
11379
11380 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11381 (mips-linux-watch.o): New rule.
11382 (mips_linux_watch_h): New variable.
11383 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11384 srv_tgtobj.
11385 * linux-mips-low.c: Include mips-linux-watch.h.
11386 (struct arch_process_info, struct arch_lwp_info): New.
11387 (update_watch_registers_callback): New function.
11388 (mips_linux_new_process, mips_linux_new_thread) New functions.
11389 (mips_linux_prepare_to_resume, mips_insert_point): New
11390 functions.
11391 (mips_remove_point, mips_stopped_by_watchpoint): New
11392 functions.
11393 (rsp_bp_type_to_target_hw_bp_type): New function.
11394 (mips_stopped_data_address): New function.
11395 (the_low_target): Add watchpoint support functions.
11396
de6f69ad
YQ
113972013-07-27 Yao Qi <yao@codesourcery.com>
11398
11399 * i386-low.c: Include break-common.h.
11400 (enum target_hw_bp_type): Remove.
11401
3360c0bf
LM
114022013-07-24 Luis Machado <lgustavo@codesourcery.com>
11403
11404 * Makefile.in (SFILES): /common/target-common.c.
11405 (OBS): Add target-common.o.
11406 (server_h): Add $(srcdir)/../common/target-common.h.
11407 (target-common.o): New target.
11408 * server.c (queue_stop_reply_callback): Free
11409 status string after use.
11410 * target.c (target_waitstatus_to_string): Remove.
11411 * target.h: Include target-common.h.
11412 (resume_kind): Likewise.
11413 (target_waitkind): Likewise.
11414 (target_waitstatus): Likewise.
11415 (TARGET_WNOHANG): Likewise.
11416
bd885420
YQ
114172013-07-04 Yao Qi <yao@codesourcery.com>
11418
11419 * Makefile.in (host_alias): Use @host_noncanonical@.
11420 (target_alias): Use @target_noncanonical@.
11421 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11422 ACX_NONCANONICAL_HOST.
11423 * configure: Regenerated.
11424
11425 Revert:
11426 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11427
11428 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11429 * configure: Rebuild.
11430 * Makefile.in (version_host, version_target): Get from configure.
11431 (version.c): Use $(version_host) and $(version_target).
11432
17ef446e
PA
114332013-07-03 Pedro Alves <palves@redhat.com>
11434
11435 * Makefile.in (config.status): Depend on development.sh.
11436 * acinclude.m4: Include libmcheck.m4.
11437 * configure: Regenerate.
11438
7a9a7487
MG
114392013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11440
11441 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11442 attribute inside the parentheses.
11443 (winapi_DebugSetProcessKillOnExit): Ditto.
11444 (winapi_DebugBreakProcess): Ditto.
11445 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 11446
49b64de6
MG
114472013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11448
11449 * notif.h (notif_event): Add a dummy member to avoid compiler
11450 errors.
11451
d5749ee7
PA
114522013-07-01 Pedro Alves <palves@redhat.com>
11453
11454 * hostio.c (HOSTIO_PATH_MAX): Define.
11455 (require_filename, handle_open, handle_unlink, handle_readlink):
11456 Use it.
11457
d8d2a3ee
PA
114582013-07-01 Pedro Alves <palves@redhat.com>
11459
11460 * server.h: Include "pathmax.h".
11461 * linux-low.c: Don't include sys/param.h.
11462 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11463 MAXPATHLEN.
11464 * win32-low.c: Don't include sys/param.h.
11465 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11466
bc7dea8d
PA
114672013-07-01 Pedro Alves <palves@redhat.com>
11468
11469 * event-loop.c: Don't check HAVE_UNISTD_H before including
11470 <unistd.h>.
11471 * gdbreplay.c: Likewise.
11472 * remote-utils.c: Likewise.
11473 * server.c: Likewise.
11474 * configure.ac: Don't check for unistd.h.
11475 * configure: Regenerate.
11476
d6c2da54
TT
114772013-06-28 Tom Tromey <tromey@redhat.com>
11478
11479 * Makefile.in (version.c): Use version.in, not
11480 common/version.in.
11481
257b6bec
MG
114822013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11483
11484 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11485 * configure: Rebuild.
11486 * Makefile.in (version_host, version_target): Get from configure.
11487 (version.c): Use $(version_host) and $(version_target).
11488
86ebe149
DK
114892013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11490
11491 Fix trace-status to output user name without trailing colon.
11492 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11493
f30aa5af
DK
114942013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11495
11496 Fix trace-status to output proper start-time and stop-time.
11497 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11498 output start time and stop time in hex as gdb expects.
11499
28a93511
YQ
115002013-06-26 Pedro Alves <pedro@codesourcery.com>
11501
11502 * tracepoint.c (build_traceframe_info_xml): Output trace state
11503 variables present in the trace buffer.
11504
01208463
TT
115052013-06-24 Tom Tromey <tromey@redhat.com>
11506
11507 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11508 create-version.sh.
11509 (version.o): Remove.
11510 * gdbreplay.c: Include version.h.
11511 (version, host_name): Don't declare.
11512 * server.h: Include version.h.
11513 (version, host_name): Don't declare.
11514
760256f9
PA
115152013-06-12 Pedro Alves <palves@redhat.com>
11516
11517 * linux-x86-low.c (linux_is_elf64): Delete global.
11518 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11519 with local linux_pid_exe_is_elf_64_file use.
11520
030031ee
PA
115212013-06-11 Pedro Alves <palves@redhat.com>
11522
11523 * linux-low.c (regset_disabled, disable_regset): New functions.
11524 (regsets_fetch_inferior_registers)
11525 (regsets_store_inferior_registers): Use them.
11526 (initialize_regsets_info); Don't allocate the disabled_regsets
11527 array here.
11528 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11529 comment.
11530
5da6eb0a
PA
115312013-06-11 Pedro Alves <palves@redhat.com>
11532
11533 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11534 xmalloc.
11535
7e5aaa09
PA
115362013-06-11 Pedro Alves <palves@redhat.com>
11537
11538 * linux-x86-low.c (initialize_low_arch): Call
11539 init_registers_x32_avx_linux.
11540
d878444c
JK
115412013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11542
11543 Fix compatibility with Android Bionic.
11544 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11545 it is not empty.
11546
3aee8918
PA
115472013-06-07 Pedro Alves <palves@redhat.com>
11548
5f2b57b5 11549 PR server/14823
3aee8918
PA
11550 * Makefile.in (OBS): Add tdesc.o.
11551 (IPA_OBJS): Add tdesc-ipa.o.
11552 (tdesc-ipa.o): New rule.
11553 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11554 interface.
11555 * linux-low.c (new_inferior): Delete.
11556 (disabled_regsets, num_regsets): Delete.
11557 (linux_add_process): Adjust to set the new per-process
11558 new_inferior flag.
11559 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11560 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11561 was a stop. When calling arch_setup, switch the current inferior
11562 to the thread that got an event.
11563 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11564 (regsets_fetch_inferior_registers)
11565 (regsets_store_inferior_registers): New regsets_info parameter.
11566 Adjust to use it.
11567 (linux_register_in_regsets): New regs_info parameter. Adjust to
11568 use it.
11569 (register_addr, fetch_register, store_register): New usrregs_info
11570 parameter. Adjust to use it.
11571 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11572 parameter regs_info. Adjust to use it.
11573 (linux_fetch_registers): Get the current inferior's regs_info, and
11574 adjust to use it.
11575 (linux_store_registers): Ditto.
11576 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11577 (initialize_low): Don't initialize the target_regsets here. Call
11578 initialize_low_arch.
11579 * linux-low.h (target_regsets): Delete declaration.
11580 (struct regsets_info): New.
11581 (struct usrregs_info): New.
11582 (struct regs_info): New.
11583 (struct process_info_private) <new_inferior>: New field.
11584 (struct linux_target_ops): Delete the num_regs, regmap, and
11585 regset_bitmap fields. New field regs_info.
11586 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11587 * i387-fp.c (num_xmm_registers): Delete.
11588 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11589 calls to new interface.
11590 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11591 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11592 Infer the number of xmm registers from the regcache's target
11593 description.
11594 * i387-fp.h (num_xmm_registers): Delete.
11595 * inferiors.c (add_thread): Don't install the thread's regcache
11596 here.
11597 * proc-service.c (gregset_info): Fetch the current inferior's
11598 regs_info. Adjust to use it.
11599 * regcache.c: Include tdesc.h.
11600 (register_bytes, reg_defs, num_registers)
11601 (gdbserver_expedite_regs): Delete.
11602 (get_thread_regcache): If the thread doesn't have a regcache yet,
11603 create one, instead of aborting gdbserver.
11604 (regcache_invalidate_one): Rename to ...
11605 (regcache_invalidate_thread): ... this.
11606 (regcache_invalidate_one): New.
11607 (regcache_invalidate): Only invalidate registers of the current
11608 process.
11609 (init_register_cache): Add target_desc parameter, and use it.
11610 (new_register_cache): Ditto. Assert the target description has a
11611 non zero registers_size.
11612 (regcache_cpy): Add assertions. Adjust.
11613 (realloc_register_cache, set_register_cache): Delete.
11614 (registers_to_string, registers_from_string): Adjust.
11615 (find_register_by_name, find_regno, find_register_by_number)
11616 (register_cache_size): Add target_desc parameter, and use it.
11617 (free_register_cache_thread, free_register_cache_thread_one)
11618 (regcache_release, register_cache_size): New.
11619 (register_size): Add target_desc parameter, and use it.
11620 (register_data, supply_register, supply_register_zeroed)
11621 (supply_regblock, supply_register_by_name, collect_register)
11622 (collect_register_as_string, collect_register_by_name): Adjust.
11623 * regcache.h (struct target_desc): Forward declare.
11624 (struct regcache) <tdesc>: New field.
11625 (init_register_cache, new_register_cache): Add target_desc
11626 parameter.
11627 (regcache_invalidate_thread): Declare.
11628 (regcache_invalidate_one): Delete declaration.
11629 (regcache_release): Declare.
11630 (find_register_by_number, register_cache_size, register_size)
11631 (find_regno): Add target_desc parameter.
11632 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11633 declarations.
11634 * remote-utils.c: Include tdesc.h.
11635 (outreg, prepare_resume_reply): Adjust.
11636 * server.c: Include tdesc.h.
11637 (gdbserver_xmltarget): Delete declaration.
11638 (get_features_xml, process_serial_event): Adjust.
11639 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11640 declare.
11641 (struct process_info) <tdesc>: New field.
11642 (ipa_tdesc): Declare.
11643 * tdesc.c: New file.
11644 * tdesc.h: New file.
11645 * tracepoint.c: Include tdesc.h.
11646 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11647 (get_context_regcache): Adjust to pass ipa_tdesc down.
11648 (do_action_at_tracepoint): Adjust to get the register cache size
11649 from the context regcache's description.
11650 (traceframe_walk_blocks): Adjust to get the register cache size
11651 from the current trace frame's description.
11652 (traceframe_get_pc): Adjust to get current trace frame's
11653 description and pass it down.
11654 (gdb_collect): Adjust to get the register cache size from the
11655 IPA's description.
11656 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11657 (gdbserver_xmltarget): Delete.
11658 (initialize_low_tracepoint): Set the ipa's target description.
11659 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11660 (initialize_low_tracepoint): Set the ipa's target description.
11661 * linux-x86-low.c: Include tdesc.h.
11662 [__x86_64__] (is_64bit_tdesc): New.
11663 (ps_get_thread_area, x86_get_thread_area): Use it.
11664 (i386_cannot_store_register): Rename to ...
11665 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11666 (i386_cannot_fetch_register): Rename to ...
11667 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11668 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11669 to new interface.
11670 (target_regsets): Rename to ...
11671 (x86_regsets): ... this.
11672 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11673 interface.
11674 (x86_siginfo_fixup): Use is_64bit_tdesc.
11675 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11676 (tdesc_x32_avx_linux, tdesc_x32_linux)
11677 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11678 Declare.
11679 (x86_linux_update_xmltarget): Delete.
11680 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11681 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11682 (AMD64_LINUX_USER64_CS): New.
11683 (x86_linux_read_description): New, based on
11684 x86_linux_update_xmltarget.
11685 (same_process_callback): New.
11686 (x86_arch_setup_process_callback): New.
11687 (x86_linux_update_xmltarget): New.
11688 (x86_regsets_info): New.
11689 (amd64_linux_regs_info): New.
11690 (i386_linux_usrregs_info): New.
11691 (i386_linux_regs_info): New.
11692 (x86_linux_regs_info): New.
11693 (x86_arch_setup): Reimplement.
11694 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11695 (x86_emit_ops): Ditto.
11696 (the_low_target): Adjust. Install x86_linux_regs_info,
11697 x86_cannot_fetch_register, and x86_cannot_store_register.
11698 (initialize_low_arch): New.
11699 * linux-ia64-low.c (tdesc_ia64): Declare.
11700 (ia64_fetch_register): Adjust.
11701 (ia64_usrregs_info, regs_info): New globals.
11702 (ia64_regs_info): New function.
11703 (the_low_target): Adjust.
11704 (initialize_low_arch): New function.
11705 * linux-sparc-low.c (tdesc_sparc64): Declare.
11706 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11707 Adjust.
11708 (sparc_arch_setup): New function.
11709 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11710 (the_low_target): Adjust.
11711 (initialize_low_arch): New function.
11712 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11713 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11714 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11715 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11716 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11717 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11718 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11719 (tdesc_powerpc_isa205_vsx64l): Declare.
11720 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11721 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11722 (ppc_set_pc, ppc_get_hwcap): Adjust.
11723 (ppc_usrregs_info): Forward declare.
11724 (!__powerpc64__) ppc_regmap_adjusted: New global.
11725 (ppc_arch_setup): Adjust to the current process'es target
11726 description.
11727 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11728 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11729 (ppc_store_evrregset): Adjust.
11730 (target_regsets): Rename to ...
11731 (ppc_regsets): ... this, and make static.
11732 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11733 (ppc_regs_info): New function.
11734 (the_low_target): Adjust.
11735 (initialize_low_arch): New function.
11736 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11737 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11738 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11739 (tdesc_s390x_linux64v2): Declare.
11740 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11741 (s390_fill_gregset, s390_store_last_break): Adjust.
11742 (target_regsets): Rename to ...
11743 (s390_regsets): ... this, and make static.
11744 (s390_get_pc, s390_set_pc): Adjust.
11745 (s390_get_hwcap): New target_desc parameter, and use it.
11746 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11747 (s390_arch_setup): Adjust to set the current process'es target
11748 description. Don't adjust the regmap.
11749 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11750 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11751 (regs_info_3264): New globals.
11752 (s390_regs_info): New function.
11753 (the_low_target): Adjust.
11754 (initialize_low_arch): New function.
11755 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11756 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11757 [__mips64] (init_registers_mips_linux)
11758 (init_registers_mips_dsp_linux): Delete defines.
11759 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11760 (have_dsp): New global.
11761 (mips_read_description): New, based on mips_arch_setup.
11762 (mips_arch_setup): Reimplement.
11763 (get_usrregs_info): New function.
11764 (mips_cannot_fetch_register, mips_cannot_store_register)
11765 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11766 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11767 (target_regsets): Rename to ...
11768 (mips_regsets): ... this, and make static.
11769 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11770 (dsp_regs_info, regs_info): New globals.
11771 (mips_regs_info): New function.
11772 (the_low_target): Adjust.
11773 (initialize_low_arch): New function.
11774 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11775 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11776 Declare.
11777 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11778 (arm_read_description): New, with bits factored from
11779 arm_arch_setup.
11780 (arm_arch_setup): Reimplement.
11781 (target_regsets): Rename to ...
11782 (arm_regsets): ... this, and make static.
11783 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11784 (arm_regs_info): New function.
11785 (the_low_target): Adjust.
11786 (initialize_low_arch): New function.
11787 * linux-m68k-low.c (tdesc_m68k): Declare.
11788 (target_regsets): Rename to ...
11789 (m68k_regsets): ... this, and make static.
11790 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11791 (m68k_regs_info): New function.
11792 (m68k_arch_setup): New function.
11793 (the_low_target): Adjust.
11794 (initialize_low_arch): New function.
11795 * linux-sh-low.c (tdesc_sharch): Declare.
11796 (target_regsets): Rename to ...
11797 (sh_regsets): ... this, and make static.
11798 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11799 (sh_regs_info, sh_arch_setup): New functions.
11800 (the_low_target): Adjust.
11801 (initialize_low_arch): New function.
11802 * linux-bfin-low.c (tdesc_bfin): Declare.
11803 (bfin_arch_setup): New function.
11804 (bfin_usrregs_info, regs_info): New globals.
11805 (bfin_regs_info): New function.
11806 (the_low_target): Adjust.
11807 (initialize_low_arch): New function.
11808 * linux-cris-low.c (tdesc_cris): Declare.
11809 (cris_arch_setup): New function.
11810 (cris_usrregs_info, regs_info): New globals.
11811 (cris_regs_info): New function.
11812 (the_low_target): Adjust.
11813 (initialize_low_arch): New function.
11814 * linux-cris-low.c (tdesc_crisv32): Declare.
11815 (cris_arch_setup): New function.
11816 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11817 (cris_regs_info): New function.
11818 (the_low_target): Adjust.
11819 (initialize_low_arch): New function.
11820 * linux-m32r-low.c (tdesc_m32r): Declare.
11821 (m32r_arch_setup): New function.
11822 (m32r_usrregs_info, regs_info): New globals.
11823 (m32r_regs_info): Adjust.
11824 (initialize_low_arch): New function.
11825 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11826 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11827 (tic6x_usrregs_info): Forward declare.
11828 (tic6x_read_description): New function, based on ...
11829 (tic6x_arch_setup): ... this. Reimplement.
11830 (target_regsets): Rename to ...
11831 (tic6x_regsets): ... this, and make static.
11832 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11833 (tic6x_regs_info): New function.
11834 (the_low_target): Adjust.
11835 (initialize_low_arch): New function.
11836 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11837 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11838 (target_regsets): Rename to ...
11839 (xtensa_regsets): ... this, and make static.
11840 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11841 globals.
11842 (xtensa_arch_setup, xtensa_regs_info): New functions.
11843 (the_low_target): Adjust.
11844 (initialize_low_arch): New function.
11845 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11846 (nios2_arch_setup): Set the current process'es tdesc.
11847 (target_regsets): Rename to ...
11848 (nios2_regsets): ... this.
11849 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11850 (nios2_regs_info): New function.
11851 (the_low_target): Adjust.
11852 (initialize_low_arch): New function.
a261b8f5
PA
11853 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11854 (aarch64_arch_setup): Set the current process'es tdesc.
11855 (target_regsets): Rename to ...
11856 (aarch64_regsets): ... this.
11857 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11858 (aarch64_regs_info): New function.
11859 (the_low_target): Adjust.
11860 (initialize_low_arch): New function.
3aee8918
PA
11861 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11862 globals.
11863 (target_regsets): Rename to ...
11864 (tile_regsets): ... this.
11865 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11866 (tile_regs_info): New function.
11867 (tile_arch_setup): Set the current process'es tdesc.
11868 (the_low_target): Adjust.
11869 (initialize_low_arch): New function.
11870 * spu-low.c (tdesc_spu): Declare.
11871 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11872 * win32-arm-low.c (tdesc_arm): Declare.
11873 (arm_arch_setup): New function.
11874 (the_low_target): Install arm_arch_setup instead of
11875 init_registers_arm.
11876 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11877 (init_windows_x86): Rename to ...
11878 (i386_arch_setup): ... this. Set `win32_tdesc'.
11879 (the_low_target): Adjust.
11880 * win32-low.c (win32_tdesc): New global.
11881 (child_add_thread): Don't create the thread cache here.
11882 (do_initial_child_stuff): Set the new process'es tdesc.
11883 * win32-low.h (struct target_desc): Forward declare.
11884 (win32_tdesc): Declare.
11885 * lynx-i386-low.c (tdesc_i386): Declare global.
11886 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11887 * lynx-low.c (lynx_tdesc): New global.
11888 (lynx_add_process): Set the new process'es tdesc.
11889 * lynx-low.h (struct target_desc): Forward declare.
11890 (lynx_tdesc): Declare global.
11891 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11892 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11893 * nto-low.c (nto_tdesc): New global.
11894 (do_attach): Set the new process'es tdesc.
11895 * nto-low.h (struct target_desc): Forward declare.
11896 (nto_tdesc): Declare.
11897 * nto-x86-low.c (tdesc_i386): Declare.
11898 (nto_x86_arch_setup): Set `nto_tdesc'.
11899
b1fbec62
GB
119002013-06-04 Gary Benson <gbenson@redhat.com>
11901
11902 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11903 to qSupported response when appropriate.
11904 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11905 with nonzero-length annex.
11906 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11907 arguments supplied in annex.
11908
d1ec4ce7
DE
119092013-05-31 Doug Evans <dje@google.com>
11910
ac44adcb 11911 PR server/15594
d1ec4ce7
DE
11912 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11913 64 bits in 64-cross-32 environment.
11914
9b25f2d3
PA
119152013-05-28 Pedro Alves <palves@redhat.com>
11916
11917 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11918 (aarch64-without-fpu.c): Delete rule.
11919 * configure.srv (aarch64*-*-linux*): Remove references to
11920 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11921 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11922 declaration.
11923
6740dc9c
PA
119242013-05-24 Pedro Alves <palves@redhat.com>
11925
11926 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11927 instead of strchr/decode_address. Error if the range isn't split
11928 with a ','. Don't assume there's be a ':' in the action.
11929
c2d6af84
PA
119302013-05-23 Yao Qi <yao@codesourcery.com>
11931 Pedro Alves <palves@redhat.com>
11932
11933 * linux-low.c (lwp_in_step_range): New function.
11934 (linux_wait_1): If the thread was range stepping and stopped
11935 outside the stepping range, report the stop to GDB. Otherwise,
11936 continue stepping. Add range stepping debug output.
11937 (linux_set_resume_request): Copy the step range from the resume
11938 request to the lwp.
11939 (linux_supports_range_stepping): New.
11940 (linux_target_ops) <supports_range_stepping>: Set to
11941 linux_supports_range_stepping.
11942 * linux-low.h (struct linux_target_ops)
11943 <supports_range_stepping>: New field.
11944 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11945 * linux-x86-low.c (x86_supports_range_stepping): New.
11946 (the_low_target) <supports_range_stepping>: Set to
11947 x86_supports_range_stepping.
11948 * server.c (handle_v_cont): Handle 'r' action.
11949 (handle_v_requests): Append ";r" if the target supports range
11950 stepping.
11951 * target.h (struct thread_resume) <step_range_start,
11952 step_range_end>: New fields.
11953 (struct target_ops) <supports_range_stepping>:
11954 New field.
11955 (target_supports_range_stepping): New macro.
11956
58794e1a
JB
119572013-05-17 Joel Brobecker <brobecker@adacore.com>
11958
11959 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11960 confusion in comment.
11961
d631c5a7
JB
119622013-05-17 Joel Brobecker <brobecker@adacore.com>
11963
11964 * lynx-low.c (struct process_info_private): New type.
11965 (lynx_add_process): New function.
11966 (lynx_create_inferior, lynx_attach): Replace calls to
11967 add_process by calls to lynx_add_process.
11968 (lynx_resume): If PTID is null, then try using
11969 current_process()->private->last_wait_event_ptid.
11970 Add comments.
11971 (lynx_clear_inferiors): Delete. The contents of that function
11972 has been inlined in lynx_mourn;
11973 (lynx_wait_1): Save the ptid in the process's private data.
11974 (lynx_mourn): Free the process' private data. Replace call
11975 to lynx_clear_inferiors by call to clear_inferiors.
11976
96f7a20f
YQ
119772013-05-17 Yao Qi <yao@codesourcery.com>
11978
11979 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11980 the right place.
11981
db0dfaa0
LM
119822013-05-16 Luis Machado <lgustavo@codesourcery.com>
11983
11984 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11985 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11986 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11987 PT_TEXT_END_ADDR guards. Update comments.
11988 (linux_target_op) <read_offsets>: Conditionally define to
11989 linux_read_offsets if the target is UCLIBC and if it defines
11990 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11991
68f5f838
SL
119922013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11993 Andrew Jenner <andrew@codesourcery.com>
11994
11995 * Makefile.in (SFILES): Add linux-nios2-low.c.
11996 (clean): Add action to delete nios2-linux.c.
11997 (nios2-linux.c): New rule.
11998 * configure.srv: Add nios2*-*-linux*.
11999 * linux-nios2-low.c: New.
12000
1ebff1fd
HAQ
120012013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12002
12003 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12004
f6150862
HZ
120052013-04-25 Hui Zhu <hui@codesourcery.com>
12006
12007 PR gdb/15186
f6150862
HZ
12008 * ax.c (ax_printf): Add fflush.
12009
614c279d
TT
120102013-04-22 Tom Tromey <tromey@redhat.com>
12011
12012 * Makefile.in (SFILES): Add filestuff.c.
12013 (OBS): Add filestuff.o.
12014 (filestuff.o): New target.
12015 * config.in, configure: Rebuild.
12016 * configure.ac: Check for fdwalk, pipe2.
12017
7d4e5717
PA
120182013-04-17 Pedro Alves <palves@redhat.com>
12019
12020 * configure.ac (USE_THREAD_DB): Delete variable.
12021 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12022 Don't AC_SUBST USE_THREAD_DB.
12023 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12024 * config.in, configure: Regenerate.
12025
d5c93e41
PA
120262013-04-16 Pedro Alves <palves@redhat.com>
12027
12028 * linux-low.h (struct lwp_info) <thread_known>: Move under
12029 the USE_THREAD_DB #ifdef.
12030
04f5fe89
PA
120312013-04-16 Pedro Alves <palves@redhat.com>
12032
12033 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12034 (linux-low.o): Delete rule.
12035 * linux-low.h: Always include "gdb_thread_db.h" instead of
12036 conditionally including thread_db.h.
12037 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12038 HAVE_THREAD_DB_H.
12039
480b27bf
JK
120402013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12041
12042 * Makefile.in (install-only): Fix make install regression.
12043
43662968
JK
120442013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12045
12046 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12047 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12048 installation.
12049 * gdbserver.1: Remove.
12050
3e74e146
PA
120512013-03-22 Pedro Alves <palves@redhat.com>
12052
12053 * linux-low.c (handle_extended_wait): Don't call
12054 linux_enable_event_reporting.
12055
a8347a2a
TT
120562013-03-15 Tony Theodore <tonyt@logyst.com>
12057
12058 PR build/9098:
12059 * Makefile.in (SHELL): Use @SHELL@.
12060
eeb56fa7
SDJ
120612013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12062
12063 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12064 compiler warning.
12065
4fa7e2ff
JB
120662013-03-13 Joel Brobecker <brobecker@adacore.com>
12067
12068 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12069 Remove extraneous NULL element.
12070
8ddb1965
YQ
120712013-03-13 Yao Qi <yao@codesourcery.com>
12072
12073 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12074 'V' block in trace frame.
12075
9accd112
MM
120762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12077
12078 * target.h (struct target_ops): Add btrace ops.
12079 (target_supports_btrace): New macro.
12080 (target_enable_btrace): New macro.
12081 (target_disable_btrace): New macro.
12082 (target_read_btrace): New macro.
12083 * gdbthread.h (struct thread_info): Add btrace field.
12084 * server.c: Include btrace-common.h.
12085 (handle_btrace_general_set): New function.
12086 (handle_btrace_enable): New function.
12087 (handle_btrace_disable): New function.
12088 (handle_general_set): Call handle_btrace_general_set.
12089 (handle_qxfer_btrace): New function.
12090 (struct qxfer qxfer_packets[]): Add btrace entry.
12091 * inferiors.c (remove_thread): Disable btrace.
12092 * linux-low: Include linux-btrace.h.
12093 (linux_low_enable_btrace): New function.
12094 (linux_low_read_btrace): New function.
12095 (linux_target_ops): Add btrace ops.
12096 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12097 Add srv_linux_btrace=yes.
12098 (x86_64-*-linux*): Add linux-btrace.o.
12099 Add srv_linux_btrace=yes.
12100 * configure.ac: Define HAVE_LINUX_BTRACE.
12101 * config.in: Regenerated.
12102 * configure: Regenerated.
12103
5cc22e4c
MM
121042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12105
12106 * server.c (handle_qxfer): Preserve error message if -3 is
12107 returned.
12108 (qxfer): Document the -3 return value.
12109
7c97f91e
MM
121102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12111
12112 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12113 (linux_btrace_h): New variable.
12114 (linux-btrace.o): New rule.
12115
be9a119c 121162013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
12117 Hafiz Abid Qadeer <abidh@codesourcery.com>
12118
12119 * tracepoint.c (trace_buffer_size): New global.
12120 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12121 (init_trace_buffer): Change to one-argument function. Allocate
12122 trace buffer memory.
12123 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12124 handle QTBuffer:size packet.
12125 (cmd_bigqtbuffer_size): New function.
12126 (initialize_tracepoint): Call init_trace_buffer with
12127 DEFAULT_TRACE_BUFFER_SIZE.
12128 * server.c (handle_query): Add QTBuffer:size in the
12129 supported packets.
12130
e64f7499
YQ
121312013-03-07 Yao Qi <yao@codesourcery.com>
12132
12133 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12134 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12135 of -1.
12136 (cmd_qtsp): Adjust condition. Do post increment.
12137 Set cur_action and cur_step_action back to 0.
12138
f0ae6fc3
PA
121392013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12140
12141 PR server/15236
12142 * linux-low.c (linux_write_memory): Return early success if LEN is
12143 zero.
12144
b5b0b0af
CV
121452013-03-05 Corinna Vinschen <vinschen@redhat.de>
12146
334ad4a8 12147 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 12148
589bc927
TT
121492013-02-28 Tom Tromey <tromey@redhat.com>
12150
12151 * configure.ac: Invoke AC_SYS_LARGEFILE.
12152 * configure, config.in: Rebuild.
12153
dfe07582
CV
121542013-02-28 Corinna Vinschen <vinschen@redhat.com>
12155
12156 * win32-low.c: Throughout, fix format strings and casts of
12157 printf-like functions to avoid type related warnings on all
12158 platforms.
12159 (get_child_debug_event): Print dwDebugEventCode as hex since
12160 that's how it's usually documented.
12161
736cd585
YQ
121622013-02-28 Yao Qi <yao@codesourcery.com>
12163
12164 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12165 pulongest.
12166
e1f58301
JW
121672013-02-27 Jiong Wang <jiwang@tilera.com>
12168
12169 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12170 (reg-tilegx32.c): New rule.
12171 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12172 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12173 different register info initializer according to elf class.
12174 (init_registers_tilgx32): New function. The tilegx32 register info
12175 initializer.
12176 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12177 (tile_store_gregset): Likewise.
12178
d171ca78
YQ
121792013-02-27 Yao Qi <yao@codesourcery.com>
12180
12181 * server.c (process_point_options): Print debug message when
12182 debug_threads is true.
12183
282bbdf3
YQ
121842013-02-26 Yao Qi <yao@codesourcery.com>
12185
12186 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12187
aca22551
PA
121882013-02-19 Pedro Alves <palves@redhat.com>
12189 Kai Tietz <ktietz@redhat.com>
12190
12191 PR gdb/15161
12192
12193 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12194 instead of strtoul to extract address from packet.
12195 (process_serial_event) <'z'>: Likewise.
12196
4f3cee1c
YQ
121972013-02-18 Yao Qi <yao@codesourcery.com>
12198
12199 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12200
8e1d55a3
PA
122012013-02-14 Pedro Alves <palves@redhat.com>
12202
12203 Plug memory leak.
12204
12205 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12206 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12207
458820da
PA
122082013-02-14 Pedro Alves <palves@redhat.com>
12209
12210 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12211
baea0dae
PA
122122013-02-14 Pedro Alves <palves@redhat.com>
12213
12214 * tracepoint.c (save_string): Delete.
12215 (add_tracepoint_action): Use savestring instead of save_string.
12216
0b1afbb3
PA
122172013-02-12 Pedro Alves <palves@redhat.com>
12218
12219 * linux-xtensa-low.c: Ditto.
12220 * xtensa-xtregs.c: Ditto.
12221
8a4ac37e
PA
122222013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12223
12224 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12225 thread_db.
12226
148de6bb
MS
122272013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12228
12229 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12230 aarch64_num_wp_regs and aarch64_num_bp_regs to
12231 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12232
55fac6e0
MS
122332013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12234
12235 * linux-aarch64-low.c (ps_get_thread_area): Replace
12236 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12237
176eb98c
MS
122382013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12239 Marcus Shawcroft <marcus.shawcroft@arm.com>
12240 Nigel Stephens <nigel.stephens@arm.com>
12241 Yufeng Zhang <yufeng.zhang@arm.com>
12242
12243 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12244 (aarch64.c, aarch64-without-fpu.c): New targets.
12245 * configure.srv (aarch64*-*-linux*): New.
12246 * linux-aarch64-low.c: New file.
12247
56f7af9c
MS
122482013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12249
43aaf8b6 12250 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
12251 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12252 (dequeue_one_deferred_signal, linux_resume_one_thread)
12253 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12254 (linux_tracefork_grandchild, linux_test_for_tracefork)
12255 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12256 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12257 where the argument is 0.
12258
60f662b0
YQ
122592013-01-25 Yao Qi <yao@codesourcery.com>
12260
12261 * event-loop.c: Include "queue.h".
12262 (gdb_event_p): New typedef.
12263 (struct gdb_event) <next_event>: Remove.
12264 (event_queue): Change to QUEUE(gdb_event_p).
12265 (async_queue_event): Remove.
12266 (gdb_event_xfree): New.
12267 (initialize_event_loop): New.
12268 (process_event): Use API from QUEUE.
12269 (wait_for_event): Likewise.
12270 * server.c (main): Call initialize_event_loop.
12271 * server.h (initialize_event_loop): Declare.
12272
5ae4861a
YQ
122732013-01-18 Yao Qi <yao@codesourcery.com>
12274
12275 * ax.h (struct eval_agent_expr_context): New.
12276 (gdb_eval_agent_expr): Update declaration.
12277 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12278 TFRAME. Add new argument CTX.
12279 * server.h (struct eval_agent_expr_context): Declare.
12280 (agent_mem_read, agent_tsv_read): Update declaration.
12281 (agent_mem_read_string): Likewise.
12282 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12283 (add_traceframe_block): Add new argument TPOINT.
12284 Increase TPOINT->traceframe_usage.
12285 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12286 eval_tracepoint_agent_expr.
12287 (condition_true_at_tracepoint): Likewise.
12288 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12289 (agent_mem_read_string, agent_tsv_read): Likewise.
12290
85e00e85
YQ
122912013-01-16 Yao Qi <yao@codesourcery.com>
12292
12293 * linux-low.c (linux_resume_one_lwp): Don't check
12294 'lwp->bp_reinsert != 0'.
12295
4039cf45
JB
122962013-01-07 Joel Brobecker <brobecker@adacore.com>
12297 Pedro Alves <palves@redhat.com>
12298
12299 * lynx-low.c (ptrace_request_to_str): Define a temporary
12300 macro and use it to simplify this function's implementation.
12301
9044dee2
JB
123022013-01-07 Joel Brobecker <brobecker@adacore.com>
12303
12304 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12305 sets errno.
12306
e6352c8f
JB
123072013-01-07 Joel Brobecker <brobecker@adacore.com>
12308
12309 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12310
50681a27
JB
123112013-01-07 Joel Brobecker <brobecker@adacore.com>
12312
12313 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12314
3f6e77ef
JB
123152013-01-07 Joel Brobecker <brobecker@adacore.com>
12316
12317 * lynx-low.c (lynx_resume): Use the resume_info parameter
12318 to determine the ptid for the lynx_ptrace call, unless
12319 it is equal to minus_one_ptid, in which case we use the
12320 ptid of the current_inferior.
12321 (lynx_wait_1): After having received a thread create/exit
12322 event, resume the inferior's execution using the signaling
12323 thread's ptid, rather than the old ptid.
12324
7fda33ae
JB
123252013-01-07 Joel Brobecker <brobecker@adacore.com>
12326
12327 * lynx-low.c (lynx_resume): Delete variable ret.
12328
b9786c74
JB
123292013-01-01 Joel Brobecker <brobecker@adacore.com>
12330
12331 * gdbreplay.c (gdbreplay_version): Update copyright year.
12332 * server.c (gdbserver_version): Likewise.
12333
8b93d60f
JB
123342012-12-17 Joel Brobecker <brobecker@adacore.com>
12335
12336 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12337 new thread.
12338
037335a7
JB
123392012-12-17 Joel Brobecker <brobecker@adacore.com>
12340
12341 * lynx-low.c (ptrace_request_to_str): Add handling for
12342 PTRACE_GETTRACESIG.
12343
52d4cbd8
JB
123442012-12-17 Joel Brobecker <brobecker@adacore.com>
12345
12346 * lynx-low.c (lynx_attach): Delete variable new_process.
12347
ab8f6ca9
JB
123482012-12-17 Joel Brobecker <brobecker@adacore.com>
12349
12350 * lynx-low.c (lynx_create_inferior): Delete variable
12351 new_process.
12352
78cbc024
JB
123532012-12-17 Joel Brobecker <brobecker@adacore.com>
12354
12355 * lynx-low.c (ptrace_request_to_str): Do not handle
12356 PTRACE_GETTHREADLIST if this macro does not exist.
12357
14a00470
YQ
123582012-12-15 Yao Qi <yao@codesourcery.com>
12359
12360 * Makefile.in (OBS): Add notif.o.
12361 * notif.c, notif.h: New.
12362 * server.c: Include "notif.h".
12363 (struct vstop_notif) <next>: Remove.
12364 <base>: New field.
12365 (queue_stop_reply): Update.
12366 (push_event, send_next_stop_reply): Remove.
12367 (discard_queued_stop_replies): Update.
12368 (notif_stop): New variable.
12369 (handle_v_stopped): Remove.
12370 (handle_v_requests): Don't call handle_v_stopped. Call
12371 handle_ack_notif instead.
12372 (queue_stop_reply_callback): Call notif_event_enque instead
12373 of queue_stop_reply.
12374 (handle_status): Don't call send_next_stop_reply, call
12375 notif_write_event instead.
12376 (kill_inferior_callback): Likewise.
12377 (detach_or_kill_inferior_callback): Likewise.
12378 (main): Call initialize_notif.
12379 (process_serial_event): Call QUEUE_is_empty.
12380 (handle_target_event): Call notif_push instead of push event.
12381 * server.h (push_event): Remove declaration.
12382
61c125b9
TT
123832012-12-10 Tom Tromey <tromey@redhat.com>
12384
12385 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12386 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12387 macros.
12388 (.c.o): Rewrite.
12389 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12390 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12391 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12392 (amd64-linux-ipa.o, ax.o): Rewrite.
12393 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12394 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12395 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12396 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12397 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12398 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12399 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12400 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12401 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12402 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12403 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12404 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12405 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12406 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12407 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12408 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12409 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12410 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12411 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12412 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12413 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12414 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12415 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12416 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12417 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12418 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12419 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12420 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12421 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12422 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12423 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12424 (reg-tilegx.o): Remove.
12425 (all_object_files): New macro.
12426 Include .deps files.
12427 * aclocal.m4, configure: Rebuild.
12428 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12429 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12430 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12431
e90e9ad9
TT
124322012-12-05 Tom Tromey <tromey@redhat.com>
12433
12434 PR gdb/14917:
12435 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12436
02d403bf 124372012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
12438
12439 * configure.ac: Check for linux/perf_event.h.
12440 * config.in: Regenerated.
12441 * configure: Regenerated.
12442
0270a750
PA
124432012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12444
12445 * hostio.c (handle_readlink): Decrease buffer size
12446 parameter passed to readlink by one byte.
12447
8c29b58e
YQ
124482012-11-26 Yao Qi <yao@codesourcery.com>
12449
12450 * configure.ac (build_warnings): Append '-Wempty-body'.
12451 * configure: Regenerated.
12452 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12453 body.
12454
8bdce1ff
PM
124552012-11-15 Pierre Muller <muller@sourceware.org>
12456
12457 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12458 * config.in: Regenerate.
12459 * configure: Regenerate.
12460 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12461 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12462 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12463 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12464 header.
12465 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12466 instead of <sys/wait.h> header.
12467 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12468
02d403bf 124692012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
12470
12471 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12472 (various make rules): Remove -DGDBSERVER
12473
fbd5db48
YQ
124742012-11-09 Yao Qi <yao@codesourcery.com>
12475
12476 * spu-low.c (current_ptid): Move it to ..
12477 * gdbthread.h: ... here. New.
12478 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12479 * server.c (myresume, process_serial_event): Likewise.
12480 * thread-db.c (thread_db_find_new_threads): Likewise.
12481 * tracepoint.c (run_inferior_command): Likewise.
12482
b3dc46ff
AB
124832012-10-01 Andrew Burgess <aburgess@broadcom.com>
12484
12485 * server.c (handle_search_memory_1): Include access length in
12486 warning message.
12487
07c04788
HPN
124882012-09-05 Michael Brandt <michael.brandt@axis.com>
12489
12490 * linux-crisv32-low.c: Fix compile errors.
12491
918d227b
YQ
124922012-09-04 Yao Qi <yao@codesourcery.com>
12493
12494 * tracepoint.c (cmd_qtsv): Adjust debug message.
12495 Don't check CUR_TPOINT.
12496
18c1b81a
YQ
124972012-08-28 Yao Qi <yao@codesourcery.com>
12498
12499 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12500 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12501 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12502 Remove declarations of xmalloc, xreallloc, xstrdup and
12503 freeargv.
12504 * Makefile.in (libiberty_h): New.
12505 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12506 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12507
dc82f37b
YQ
125082012-08-23 Yao Qi <yao@codesourcery.com>
12509
12510 * server.h: Remove declaration of 'xsnprintf'.
12511
406b1477
KS
125122012-08-22 Keith Seitz <keiths@redhat.com>
12513
12514 * server.h: Include build-gnulib-gbserver/config.h.
12515 * gdbreplay.c: Likewise.
12516
e6712ff1
DE
125172012-08-08 Doug Evans <dje@google.com>
12518
12519 * Makefile.in (SFILES): Add gdb_vecs.c.
12520 (OBS): Add gdb_vecs.o.
12521 (gdb_vecs_h, host_defs_h): New variables.
12522 (thread-db.o): Add $(gdb_vecs_h) dependency.
12523 (gdb_vecs.o): New rule.
12524 * thread-db.c: #include "gdb_vecs.h".
12525 (thread_db_load_search): Use a vector to iterate over path elements.
12526 Handle text appearing after "$pdir".
12527
12528 * configure.ac: Add check for strstr.
12529 * config.in: Regenerate.
12530 * configure: Regenerate.
12531
7c3270ae
UW
125322012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12533
12534 * hostio.c (handle_pread): If pread fails, fall back to attempting
12535 lseek/read.
12536 (handle_pwrite): Likewise for pwrite.
12537
b62e2b27
UW
125382012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12539
12540 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12541 between unsupported TYPE and unimplementable ADDR/LEN combination.
12542 (arm_insert_point): Act on new return value.
12543
78a99e91
PA
125442012-07-31 Pedro Alves <palves@redhat.com>
12545
12546 * server.c (process_point_options): Only skip tokens if we find
12547 one that is unrecognized. Don't treat 'X' specially while
12548 skipping unrecognized tokens.
12549
fcf303ab
UW
125502012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12551
12552 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12553 to 4-byte-align HW breakpoint addresses for Thumb.
12554
7255706c
YQ
125552012-07-27 Yao Qi <yao@codesourcery.com>
12556
12557 PR remote/14161.
12558
12559 * server.h: Declare gdb_agent_about_to_close.
12560 * target.c (kill_inferior): Include "agent.h".
12561 New. Send command 'kill'.
12562 * target.h (kill_inferior): Removed macro.
12563 * tracepoint.c (gdb_agent_about_to_close): New.
12564 (gdb_agent_helper_thread): Handle command 'close'.
12565 Wait endlessly until the inferior stops.
12566 Install gdb_agent_remove_socket to atexit hook.
12567 (agent_socket_name): New static variable.
12568 (gdb_agent_socket_init): Replace local variable 'name' with
12569 'agent_socket_name'.
12570 (gdb_agent_remove_socket): New.
12571
5a3f286f
YQ
125722012-07-27 Yao Qi <yao@codesourcery.com>
12573
12574 * server.c (process_point_options): Stop at 'X' when parsing.
12575
961bd387
ME
125762012-07-19 Michael Eager <eager@eagercon.com>
12577
a261b8f5 12578 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
12579 to hw_execute.
12580 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12581 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12582 hardware breakpoint.
12583
aa7c7447
JK
125842012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12585
12586 * gdbserver/linux-low.c (initialize_low): Call
12587 linux_ptrace_init_warnings.
12588
7f216e7c
DE
125892012-07-02 Doug Evans <dje@google.com>
12590
12591 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12592 pointer to int.
12593
d3ce09f5
SS
125942012-07-02 Stan Shebs <stan@codesourcery.com>
12595
12596 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12597 (ax.o): Add it to build rule.
12598 (ax-ipa.o): Ditto.
12599 (OBS): Add format.o.
12600 (IPA_OBS): Add format.o.
12601 * server.c (handle_query): Claim support for breakpoint commands.
12602 (process_point_options): Add command case.
12603 (process_serial_event): Leave running if there are printfs in
12604 effect.
12605 * mem-break.h (any_persistent_commands): Declare.
12606 (add_breakpoint_commands): Declare.
12607 (gdb_no_commands_at_breakpoint): Declare.
12608 (run_breakpoint_commands): Declare.
12609 * mem-break.c (struct point_command_list): New struct.
12610 (struct breakpoint): New field command_list.
12611 (any_persistent_commands): New function.
12612 (add_commands_to_breakpoint): New function.
12613 (add_breakpoint_commands): New function.
12614 (gdb_no_commands_at_breakpoint): New function.
12615 (run_breakpoint_commands): New function.
12616 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12617 locally.
12618 * ax.c: Include format.h.
12619 (ax_printf): New function.
12620 (gdb_eval_agent_expr): Add printf opcode.
12621
2f8f6aed
YQ
126222012-06-13 Yao Qi <yao@codesourcery.com>
12623
12624 * server.c (start_inferior): Remove duplicated writes to fields
12625 'last_resume_kind' and 'last_status' of 'current_inferior'.
12626
0c9070b3
YQ
126272012-06-12 Yao Qi <yao@codesourcery.com>
12628 Pedro Alves <palves@redhat.com>
12629
12630 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12631 comment.
12632 * server.c (handle_v_cont): Extend comment.
12633
c52daf70
YQ
126342012-06-11 Yao Qi <yao@codesourcery.com>
12635
12636 * linux-low.c (linux_attach): Add 'static'.
12637
d38bbb0a
YQ
126382012-06-06 Yao Qi <yao@codesourcery.com>
12639
12640 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12641
89dc0afd
JK
126422012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12643
12644 Fix gcc -flto compilation warning.
12645 * server.c (main): Make variable multi_mode and attach volatile.
12646
75f62ce7
TJB
126472012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12648
12649 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12650 if the platform doesn't know about it.
12651
65f479b6
PA
126522012-05-30 Jeff Kenton <jkenton@tilera.com>
12653
12654 * Makefile.in (SFILES): Add linux-tile-low.c.
12655 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12656 * configure.srv: Handle tilegx-*-linux*.
12657 * linux-tile-low.c: New file.
12658
0c5bf5a9
JK
126592012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12660
12661 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12662
a493e3e2
PA
126632012-05-24 Pedro Alves <palves@redhat.com>
12664
12665 PR gdb/7205
12666
43aaf8b6 12667 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 12668
2ea28649
PA
126692012-05-24 Pedro Alves <palves@redhat.com>
12670
12671 PR gdb/7205
12672
12673 Replace target_signal with gdb_signal throughout.
12674
8d409d16
MR
126752012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12676
12677 * linux-low.c (linux_store_registers): Avoid the copying sequence
12678 when no data has been retrieved by ptrace.
12679
23512c01
MGD
126802012-05-22 Will Deacon <will.deacon@arm.com>
12681
12682 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12683 Include asm/ptrace.h.
12684 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12685 already defined.
12686
4934b29e
MR
126872012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12688
12689 * linux-low.c (linux_store_registers): Don't re-retrieve data
12690 with ptrace that has already been obtained from /proc. Always
12691 copy any data retrieved with ptrace to the buffer supplied.
12692
bde24c0a
PA
126932012-05-11 Yao Qi <yao@codesourcery.com>
12694 Pedro Alves <palves@redhat.com>
12695
12696 * linux-low.c (enum stopping_threads_kind): New.
12697 (stopping_threads): Change type to `enum stopping_threads_kind'.
12698 (handle_extended_wait): If stopping and suspending threads, leave
12699 the new_lwp suspended too.
12700 (linux_wait_for_event): Adjust.
12701 (stop_all_lwps): Set `stopping_threads' to
12702 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12703 whether we're suspending threads or just stopping them. Assert no
12704 recursion happens.
12705
623b6bdf
YQ
127062012-04-29 Yao Qi <yao@codesourcery.com>
12707
12708 * server.h: Move some code to ...
12709 * gdbthread.h: ... here. New.
12710 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12711 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12712 (nto-low.o, win32-low.o): Likewise.
12713 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12714 * regcache.c, remote-utils.c, server.c: Likewise.
12715 * target.c, tracepoint.c, win32-low.c: Likewise.
12716
f15f9948
TJB
127172012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12718
12719 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12720 (PTRACE_ARG4_TYPE): Likewise.
12721 (PTRACE_XFER_TYPE): Likewise.
12722 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12723 ptrace to PTRACE_ARG3_TYPE.
12724 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12725 (PTRACE_ARG4_TYPE): Likewise.
12726 (PTRACE_XFER_TYPE): Likewise.
12727 (linux_detach_one_lwp): Cast fourth argument of
12728 ptrace to long then PTRACE_ARG4_TYPE.
12729 (regsets_fetch_inferior_registers): Cast third argument of
12730 ptrace to long then PTRACE_ARG3_TYPE.
12731 (regsets_store_inferior_registers): Likewise.
12732
38ea300a
PA
127332012-04-20 Pedro Alves <palves@redhat.com>
12734
12735 * configure: Regenerate.
12736
c971b7fa
PA
127372012-04-19 Pedro Alves <palves@redhat.com>
12738
43aaf8b6 12739 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 12740 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
12741 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12742 (all, install-only, uninstall, clean-info, all-lib, clean): No
12743 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12744 (maintainer-clean realclean distclean): Use subdir_do.
12745 (subdir_do): New.
12746 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 12747 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
12748 * acinclude.m4: Include acx_configure_dir.m4.
12749 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12750 calls. Call AC_PROG_RANLIB. Configure gnulib using
12751 ACX_CONFIGURE_DIR.
12752 (GNULIB): New.
12753 (GNULIB_STDINT_H): Adjust.
12754 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12755 * gdbreplay.c: Include build-gnulib/config.h.
12756 * server.h: Likewise.
12757 * aclocal.m4: Regenerate.
12758 * config.in: Regenerate.
12759 * configure: Regenerate.
c971b7fa 12760
809277f8
PA
127612012-04-19 Pedro Alves <palves@redhat.com>
12762
12763 * Makefile.in (LIBGNU, INCGNU): Adjust.
12764 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12765 (all, install-only, uninstall, clean-info, all-lib, clean)
12766 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12767 * configure.ac: Adjust AC_OUTPUT output.
12768 * aclocal.m4: Regenerate.
12769 * configure: Regenerate.
12770
fd9bb8b8
PA
127712012-04-19 Pedro Alves <palves@redhat.com>
12772
12773 * Makefile.in (generated_files): New.
12774 (server_h): Remove the explicit dependency on config.h, and depend
12775 on $generated_files.
12776
1c298c66
PA
127772012-04-19 Pedro Alves <palves@redhat.com>
12778
12779 * Makefile.in (INCGNU): Add -Ignulib.
12780
57c4b50b
PA
127812012-04-19 Pedro Alves <palves@redhat.com>
12782
12783 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12784 (INCGNU): ... this, and spell out -I here.
12785 (GNULIB_LIB): Rename to ...
12786 (LIBGNU): ... this.
12787 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12788
1030e047
PA
127892012-04-19 Pedro Alves <palves@redhat.com>
12790
12791 * config.in: Regenerate.
12792
447d4319
PA
127932012-04-19 Pedro Alves <palves@redhat.com>
12794
12795 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12796 * server.h (memmem): Remove declaration.
12797 * config.in: Regenerate.
12798 * configure: Regenerate.
12799
aad9eab9
YQ
128002012-04-19 Yao Qi <yao@codesourcery.com>
12801
12802 * Makefile.in (SFILES): Add common/vec.c.
12803 (OBS): Add vec.o.
12804 (vec.o): New rule.
12805
3e10640f
YQ
128062012-04-19 Yao Qi <yao@codesourcery.com>
12807
12808 * remote-utils.c (prepare_resume_reply): Replace with macro
12809 target_core_of_thread.
12810 * server.c (handle_qxfer_threads_proper): Likewise.
12811 * target.h (traget_core_of_thread): New macro.
12812
71622373
PA
128132012-04-18 Pedro Alves <palves@redhat.com>
12814
12815 * aclocal.m4: Regenerate.
12816 * configure: Regenerate.
12817
80d26939
YQ
128182012-04-16 Yao Qi <yao@codesourcery.com>
12819
12820 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12821 duplicated on address.
12822
42476b70
YQ
128232012-04-16 Yao Qi <yao@codesourcery.com>
12824
12825 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12826 (struct tracepoint_action_ops) <send>: New field.
12827 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12828 (agent_expr_send, x_tracepoint_action_send): New.
12829 (l_tracepoint_action_send): New.
12830 (cmd_qtdp): Download and install tracepoint
12831 according to `use_agent'.
12832 (run_inferior_command): Add one more parameter `len'.
12833 Update callers.
12834 (tracepoint_send_agent): New.
12835 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12836
7bc83639
YQ
128372012-04-16 Yao Qi <yao@codesourcery.com>
12838
12839 * tracepoint.c (download_tracepoints): Moved to ...
12840 (cmd_qtstart): ... here.
12841
5f18041e
YQ
128422012-04-14 Yao Qi <yao@codesourcery.com>
12843
12844 * tracepoint.c: Include inttypes.h.
12845 (struct collect_memory_action): Use sized types.
12846 (struct tracepoint): Likewise.
12847 (cmd_qtdp, stop_tracing): Update print specifiers.
12848 (cmd_qtp, response_tracepoint): Likewise.
12849 (collect_data_at_tracepoint): Likewise.
12850 (collect_data_at_step): Likewise.
12851
55a8c076
YQ
128522012-04-14 Yao Qi <yao@codesourcery.com>
12853
12854 Import gnulib module inttypes.
12855 * aclocal.m4, config.in, configure: Regenerated.
12856
dc750257
YQ
128572012-04-14 Yao Qi <yao@codesourcery.com>
12858
12859 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12860 Makefile and config.status at last.
12861
0ab5faf9
YQ
128622012-04-13 Yao Qi <yao@codesourcery.com>
12863
12864 * tracepoint.c: Include stdint.h unconditionally.
12865
18f5fd81
TJB
128662012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12867
12868 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12869 on BFD_HAVE_SYS_PROCFS_TYPE.
12870 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12871 * configure: Regenerate.
12872 * config.in: Likewise.
12873
4d47af5c
L
128742012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12875
12876 * Makefile.in (clean): Also remove x32.c x32-linux.c
12877 x32-avx.c x32-avx-linux.c.
12878 (x32.o): New target.
12879 (x32.c): Likewise.
12880 (x32-linux.o): Likewise.
12881 (x32-linux.c): Likewise.
12882 (x32-avx.o): Likewise.
12883 (x32-avx.c): Likewise.
12884 (x32-avx-linux.o): Likewise.
12885 (x32-avx-linux.c): Likewise.
12886
12887 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12888 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12889 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12890 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12891 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12892 i386/x32-avx-linux.xml.
12893
12894 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12895 (init_registers_x32_avx_linux): Likwise.
12896 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12897 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12898
ecedbe58
PA
128992012-04-13 Pedro Alves <palves@redhat.com>
12900
12901 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12902 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12903 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12904 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12905 the sub-make.
12906
c92b5177
L
129072012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12908
12909 * linux-x86-low.c (compat_x32_clock_t): New.
12910 (compat_x32_siginfo_t): Likewise.
12911 (compat_x32_siginfo_from_siginfo): Likewise.
12912 (siginfo_from_compat_x32_siginfo): Likewise.
12913 (linux_is_elf64): Likewise.
12914 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12915 and siginfo_from_compat_x32_siginfo for x32.
12916 (x86_arch_setup): Set linux_is_elf64.
12917
214d508e
L
129182012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12919
12920 PR gdb/13969
12921 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12922 e_machine field.
12923 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12924 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12925 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12926 compatible with process.
12927
c9a1864a
YQ
129282012-04-12 Yao Qi <yao@codesourcery.com>
12929
12930 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12931 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12932 (install-only, install-info, clean): Handle sub dir gnulib.
12933 (all-lib, am--refresh): New targets.
12934 (memmem.o): Remove target.
12935 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12936 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12937 (AC_REPLACE_FUNCS): Remove memmem.
12938 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12939 (AC_OUTPUT): Generate Makefile in gnulib/.
12940 * aclocal.m4, config.in, configure: Regenerated.
12941
367ba2c2
MR
129422012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12943
12944 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12945
9d236627
PA
129462012-04-05 Pedro Alves <palves@redhat.com>
12947
12948 -Werror=strict-aliasing
12949
12950 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12951 pointer.
12952
111217b3
PA
129532012-04-04 Pedro Alves <palves@redhat.com>
12954
12955 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12956 (sparc_store_gregset_from_stack, sparc_store_gregset)
12957 (sparc_breakpoint_at): Fix formatting.
12958
8365dcf5
TJB
129592012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12960
12961 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12962 are available.
12963 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12964 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12965 * config.in: Regenerate.
12966 * configure: Likewise.
12967
689cc2ae
PA
129682012-03-29 Pedro Alves <palves@redhat.com>
12969
12970 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12971 Correct ptrace arguments.
12972
c14dfd32
PA
129732012-03-28 Pedro Alves <palves@redhat.com>
12974
12975 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
12976 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
12977 (IA64_FR1_REGNUM): New defines.
12978 (ia64_fetch_register): New.
12979 (the_low_target): Install it.
12980 * linux-low.h (struct linux_target_ops) <fetch_register>: New
12981 field.
12982 * linux-low.c (linux_fetch_registers): Try the
12983 the_low_target.fetch_register hook first.
12984
12985 * linux-arm-low.c (the_low_target): Adjust.
12986 * linux-bfin-low.c (the_low_target): Adjust.
12987 * linux-cris-low.c (the_low_target): Adjust.
12988 * linux-crisv32-low.c (the_low_target): Adjust.
12989 * linux-m32r-low.c (the_low_target): Adjust.
12990 * linux-m68k-low.c (the_low_target): Adjust.
12991 * linux-mips-low.c (the_low_target): Adjust.
12992 * linux-ppc-low.c (the_low_target): Adjust.
12993 * linux-s390-low.c (the_low_target): Adjust.
12994 * linux-sh-low.c (the_low_target): Adjust.
12995 * linux-sparc-low.c (the_low_target): Adjust.
12996 * linux-tic6x-low.c (the_low_target): Adjust.
12997 * linux-x86-low.c (the_low_target): Adjust.
12998 * linux-xtensa-low.c (the_low_target): Adjust.
12999
63c88e13
PA
130002012-03-26 Pedro Alves <palves@redhat.com>
13001
13002 * server.c (handle_qxfer_libraries): Don't bail early if
13003 the_target->qxfer_libraries_svr4 is not NULL.
13004
fb723180
PA
130052012-03-26 Pedro Alves <palves@redhat.com>
13006
13007 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13008
0afae3cf
PA
130092012-03-23 Pedro Alves <palves@redhat.com>
13010
13011 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13012 "library-list-svr4" element's start tag when the the DSO list is
13013 empty.
13014
485f1ee4
PA
130152012-03-23 Pedro Alves <palves@redhat.com>
13016
13017 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13018 a variable whose type size is the same as the inferior's pointer
13019 size.
13020
a5362b9a
TS
130212012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13022
13023 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13024 struct siginfo.
13025 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13026 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13027 * linux-low.h: Include <signal.h>.
13028 (struct siginfo): Remove forward declaration.
13029 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13030 struct siginfo.
13031
d226c142
MF
130322012-03-21 Mike Frysinger <vapier@gentoo.org>
13033
13034 * .gitignore: Ignore more files.
13035
122f36ef
PA
130362012-03-19 Pedro Alves <palves@redhat.com>
13037 Jan Kratochvil <jan.kratochvil@redhat.com>
13038
13039 * server.c (cont_thread, general_thread): Add describing comments.
13040 (start_inferior): Clear `cont_thread'.
13041 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13042 of a process.
13043
fc3e5175
YQ
130442012-03-15 Yao Qi <yao@codesourcery.com>
13045
13046 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13047 handling to ...
13048 (cmd_qtdp): ... here.
13049
8d0d92cd
YQ
130502012-03-15 Yao Qi <yao@codesourcery.com>
13051
13052 * tracepoint.c (struct tracepoint_action_ops): New.
13053 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13054 (m_tracepoint_action_download): New.
13055 (r_tracepoint_action_download): New.
13056 (x_tracepoint_action_download): New.
13057 (l_tracepoint_action_download): New.
13058 (add_tracepoint_action): Install `action->ops' according type.
13059 (download_tracepoint_1): Move code `download' function pointer
13060 of various tracepoint_action_ops.
13061
87b0bb13
JK
130622012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13063
13064 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13065 linux_ptrace_attach_warnings.
13066
5f572dec
JK
130672012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13068
13069 * Makefile.in (linux-ptrace.o): New.
13070 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13071 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13072 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13073 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13074 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13075 of these targets.
13076 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13077
f4647387
YQ
130782012-03-08 Yao Qi <yao@codesourcery.com>
13079 Pedro Alves <palves@redhat.com>
13080
13081 Fix PR server/13392.
13082 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13083 offset of JMP insn.
13084 * tracepoint.c (remove_tracepoint): New.
13085 (cmd_qtdp): Call remove_tracepoint when failed to install.
13086
9b224c5e
PA
130872012-03-07 Pedro Alves <palves@redhat.com>
13088
13089 * linux-low.c (get_detach_signal): New.
13090 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13091 Pass on pending signals to PTRACE_DETACH. Check the result of the
13092 ptrace call.
13093 * server.c (program_signals, program_signals_p): New.
13094 (handle_general_set): Handle QProgramSignals.
13095 * server.h (program_signals, program_signals_p): Declare.
13096
e237a7e2
JK
130972012-03-05 Pedro Alves <palves@redhat.com>
13098 Jan Kratochvil <jan.kratochvil@redhat.com>
13099
13100 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13101 New comment why.
13102
5808517f
YQ
131032012-03-03 Yao Qi <yao@codesourcery.com>
13104
13105 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13106 agent_look_up_symbols.
13107
58b4daa5
YQ
131082012-03-03 Yao Qi <yao@codesourcery.com>
13109
13110 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13111 (linux-x86-low.o): Likewise.
13112 * server.h: Remove in_process_agent_loaded.
13113 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13114 common/agent.c.
13115 Update callers.
13116
8ffcbaaf
YQ
131172012-03-03 Yao Qi <yao@codesourcery.com>
13118
13119 * tracepoint.c (gdb_agent_capability): New global.
13120 (in_process_agent_loaded_ust): Renamed to
13121 `in_process_agent_supports_ust'.
13122 Update callers.
13123 (in_process_agent_supports_ust): Call agent_capability_check.
13124 (clear_installed_tracepoints): Assert that agent supports
13125 agent.
13126
d1feda86
YQ
131272012-03-03 Yao Qi <yao@codesourcery.com>
13128
13129 * linux-low.c (linux_supports_agent): New.
13130 (linux_target_ops): Initialize field `supports_agent' with
13131 linux_supports_agent.
13132 * target.h (struct target_ops) <supports_agent>: New.
13133 (target_supports_agent): New macro.
13134 * server.c (handle_general_set): Handle packet 'QAgent'.
13135 (handle_query): Send `QAgent+'.
13136 * Makefile.in (server.o): Depends on agent.h.
13137
2fa291ac
YQ
131382012-03-03 Yao Qi <yao@codesourcery.com>
13139
13140 * Makefile.in (OBS): Add agent.o.
13141 Add new rule for agent.o.
13142 Track dependence of tracepoint.c on agent.h.
13143 * tracepoint.c (run_inferior_command_1):
13144 (run_inferior_command): Call agent_run_command.
13145 (gdb_ust_connect_sync_socket): Deleted. Move it to
13146 common/agent.c.
13147 (resume_thread, stop_thread): Likewise.
13148 (gdb_ust_socket_init): Renamed to ...
13149 (gdb_agent_socket_init): ... New.
13150 (gdb_ust_thread): Renamed to ...
13151 (gdb_agent_helper_thread): ... New.
13152 (gdb_ust_init): Move some code to ...
13153 (gdb_agent_init): ... here. New.
13154 [HAVE_UST]: Call gdb_ust_init.
13155 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13156 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13157 * config.in, configure: Regenerated.
13158
05044653
PA
131592012-03-02 Pedro Alves <palves@redhat.com>
13160
13161 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13162 * linux-low.c (struct simple_pid_list): New.
13163 (stopped_pids): New a struct simple_pid_list pointer.
13164 (add_to_pid_list, pull_pid_from_list): New.
13165 (handle_extended_wait): Don't assume the first signal new children
13166 report is SIGSTOP. Adjust call to pull_pid_from_list.
13167 (linux_wait_for_lwp): Adjust.
13168
8d00225b
YQ
131692012-03-02 Yao Qi <yao@codesourcery.com>
13170
13171 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13172 debug log.
13173
19560ba5
YQ
131742012-03-02 Yao Qi <yao@codesourcery.com>
13175
13176 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13177 `stop_pc' and `tpoint'. Update caller.
13178
1faeff08
MR
131792012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13180
13181 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13182 * linux-low.c (use_linux_regsets): New macro.
13183 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13184 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13185 (linux_register_in_regsets): New function.
13186 (usr_fetch_inferior_registers): Skip registers covered by
13187 regsets.
13188 (usr_store_inferior_registers): Likewise.
13189 (usr_fetch_inferior_registers): New macro.
13190 (usr_store_inferior_registers): Likewise.
13191 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13192 (linux_store_registers): Likewise.
13193 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13194 prototype.
13195 (init_registers_mips64_dsp_linux): Likewise.
13196 (init_registers_mips_linux): New macro.
13197 (init_registers_mips_dsp_linux): Likewise.
13198 (mips_dsp_num_regs): Likewise.
13199 (DSP_BASE, DSP_CONTROL): New fallback macros.
13200 (mips_base_regs): New macro.
13201 (mips_regmap): Use it. Fix the size.
13202 (mips_dsp_regmap): New variable.
13203 (mips_dsp_regset_bitmap): Likewise.
13204 (mips_arch_setup): New function.
13205 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13206 than mips_regmap.
13207 (mips_cannot_store_register): Likewise.
13208 (the_low_target): Update .arch_setup, .num_regs and .regmap
13209 initializers. Add .regset_bitmap initializer.
13210 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13211 initializer.
13212 * linux-bfin-low.c (the_low_target): Likewise.
13213 * linux-cris-low.c (the_low_target): Likewise.
13214 * linux-crisv32-low.c (the_low_target): Likewise.
13215 * linux-ia64-low.c (the_low_target): Likewise.
13216 * linux-m32r-low.c (the_low_target): Likewise.
13217 * linux-m68k-low.c (the_low_target): Likewise.
13218 * linux-ppc-low.c (the_low_target): Likewise.
13219 * linux-s390-low.c (the_low_target): Likewise.
13220 * linux-sh-low.c (the_low_target): Likewise.
13221 * linux-sparc-low.c (the_low_target): Likewise.
13222 * linux-tic6x-low.c (the_low_target): Likewise.
13223 * linux-x86-low.c (the_low_target): Likewise.
13224 * linux-xtensa-low.c (the_low_target): Likewise.
13225 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13226 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13227 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13228 srv_xmlfiles.
13229 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13230 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13231
c03e6ccc
YQ
132322012-02-29 Yao Qi <yao@codesourcery.com>
13233 Pedro Alves <palves@redhat.com>
13234
13235 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13236 `step_over_finished' is true.
13237
644cebc9
PA
132382012-02-27 Pedro Alves <palves@redhat.com>
13239
13240 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13241 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13242
c14d7ab2
PA
132432012-02-27 Pedro Alves <palves@redhat.com>
13244
13245 PR server/9684
13246 * linux-low.c (pid_is_stopped): New.
13247 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13248
412c89dd
LM
132492012-02-25 Luis Machado <lgustavo@codesourcery.com>
13250
13251 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13252 of conditions.
13253
b745defe
MR
132542012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13255
13256 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13257
9f3a5c85
LM
132582012-02-24 Luis Machado <lgustavo@codesourcery>
13259
13260 * server.c (handle_query): Advertise support for target-side
13261 breakpoint condition evaluation.
13262 (process_point_options): New function.
13263 (process_serial_event): When inserting a breakpoint, check for
13264 a target-side condition that should be evaluated.
13265
13266 * mem-break.c: Include regcache.h and ax.h.
13267 (point_cond_list_t): New data structure.
13268 (breakpoint) <cond_list>: New field.
13269 (find_gdb_breakpoint_at): Make non-static.
13270 (delete_gdb_breakpoint_at): Clear any target-side
13271 conditions.
13272 (clear_gdb_breakpoint_conditions): New function.
13273 (add_condition_to_breakpoint): Likewise.
13274 (add_breakpoint_condition): Likewise.
13275 (gdb_condition_true_at_breakpoint): Likewise.
13276 (gdb_breakpoint_here): Return result directly instead
13277 of going through a local variable.
13278
13279 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13280 (clear_gdb_breakpoint_conditions): Likewise.
13281 (add_breakpoint_condition): Likewise.
13282 (gdb_condition_true_at_breakpoint): Likewise.
13283
13284 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13285 (need_step_over_p): Take target-side breakpoint condition into
13286 consideration.
13287
5e1dc496
LM
132882012-02-24 Luis Machado <lgustavo@codesourcery>
13289
13290 * server.h: Include tracepoint.h.
13291 (agent_mem_read, agent_get_trace_state_variable_value,
13292 agent_set_trace_state_variable_value,
13293 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13294 get_set_tsv_func_addr): New prototypes.
13295
13296 * ax.h: New include file.
13297 * ax.c: New source file.
13298
13299 * tracepoint.c: Include ax.h.
13300 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13301 agent_expr, eval_result_type): Move to ax.h.
13302 (parse_agent_expr): Rename to ...
13303 (gdb_parse_agent_expr): ... this, make it non-static and move
13304 to ax.h.
13305 (unparse_agent_expr) Rename to ...
13306 (gdb_unparse_agent_expr): ... this, make it non-static and move
13307 to ax.h.
13308 (eval_agent_expr): Rename to ...
13309 (eval_tracepoint_agent_expr): ... this.
13310 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13311 forward declarations.
13312 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13313 (agent_get_trace_state_variable_value): New function.
13314 (agent_set_trace_state_variable_value): New function.
13315 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13316 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13317 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13318 (condition_true_at_tracepoint): Likewise.
13319 (parse_agent_expr): Rename to ...
13320 (gdb_parse_agent_expr): ... this and move to ax.c.
13321 (unparse_agent_expr): Rename to ...
13322 (gdb_unparse_agent_expr): ... this and move to ax.c.
13323 (gdb_agent_op_name): Move to ax.c.
13324 (eval_agent_expr): Rename to ...
13325 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13326 and move to ax.c.
13327 (eval_tracepoint_agent_expr): New function.
13328 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 13329 non-static.
5e1dc496
LM
13330 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13331 ax.c.
13332 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13333 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13334 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13335 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13336 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13337 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13338 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13339 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13340 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13341 (compile_bytecodes): Remove forward declaration.
13342 (is_goto_target): Move to ax.c.
13343 (compile_bytecodes): Move to ax.c and call
13344 agent_get_trace_state_variable_value (...) and
13345 agent_set_trace_state_variable_value (...).
13346
13347 * Makefile.in: Update ax.c and IPA dependencies.
13348
277e4e52
PA
133492012-02-24 Pedro Alves <palves@redhat.com>
13350
13351 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13352 (cmd_bigqtbuffer_circular): ... this. Only handle
13353 'QTBuffer:circular:'.
13354 (handle_tracepoint_general_set): Adjust.
13355
bf4c19f7
YQ
133562012-02-16 Yao Qi <yao@codesourcery.com>
13357
13358 * inferiors.c: Move code to ...
13359 * dll.c: .... here. New.
13360 * server.h: Declare clear_dlls.
13361 * Makefile.in (SFILES): Add dll.c.
13362 (OBS): Add dll.o
13363 (dll.o): New rule.
13364
d73f2619
YQ
133652012-02-11 Yao Qi <yao@codesourcery.com>
13366
13367 * server.c: (handle_monitor_command): Add a new parameter
13368 `own_buf'.
13369 (handle_query): Update caller.
13370
f8255c2a
JB
133712012-02-09 Joel Brobecker <brobecker@adacore.com>
13372
13373 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13374 * configure, config.in: Regenerate.
13375 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13376 is not defined.
13377
da84f473
PA
133782012-02-02 Pedro Alves <palves@redhat.com>
13379
13380 Try SIGKILL first, then PTRACE_KILL.
13381 * linux-low.c (linux_kill_one_lwp): New.
13382 (linux_kill_one_lwp): Rename to ...
13383 (kill_one_lwp_callback): ... this. Use the new
13384 linux_kill_one_lwp.
13385
e886a173
PA
133862012-02-02 Pedro Alves <palves@redhat.com>
13387
13388 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13389 inferior.
13390
be07f1a2
PA
133912012-01-27 Pedro Alves <palves@redhat.com>
13392
13393 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13394 (elf_64_file_p): Make static.
13395 (linux_pid_exe_is_elf_64_file): New.
13396 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13397 Delete declarations.
13398 (linux_pid_exe_is_elf_64_file): Declare.
13399 * linux-x86-low.c (x86_arch_setup): Use
13400 linux_pid_exe_is_elf_64_file.
13401
d8301ad1
JK
134022012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13403
13404 * linux-low.c (linux_wait_for_event_1): Rename to ...
13405 (linux_wait_for_event): ... here and merge it with former
13406 linux_wait_for_event - new variable wait_ptid, use it.
13407 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13408
01b17894
PA
134092012-01-23 Pedro Alves <palves@redhat.com>
13410
13411 * server.c (main): Avoid yet another case of infinite loop while
13412 detaching/killing after a longjmp.
13413
e825046f
JK
134142012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13415
13416 Code cleanup.
13417 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13418
b9e7b9c3
UW
134192012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13420
13421 * hostio.c (handle_readlink): New function.
13422 (handle_vFile): Call it to handle "vFile:readlink" packets.
13423
901f9912
UW
134242012-01-20 Pedro Alves <palves@redhat.com>
13425 Ulrich Weigand <ulrich.weigand@linaro.org>
13426
13427 * server.c (handle_v_requests): Only support vAttach and vRun to
13428 start multiple processes when in extended protocol mode.
13429
fc1ab1a0
PA
134302012-01-17 Pedro Alves <palves@redhat.com>
13431
13432 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13433 memalign plus mprotect to allocate the scratch buffer.
13434
7d5d4e98
PA
134352012-01-13 Pedro Alves <palves@redhat.com>
13436
13437 * server.c (attach_inferior): Clear `cont_thread'.
13438
f128d5e9
PA
134392012-01-13 Pedro Alves <palves@redhat.com>
13440
13441 * server.c (main): Avoid infinite loop while detaching/killing
13442 after a longjmp.
13443
06db92f0
DE
134442012-01-09 Doug Evans <dje@google.com>
13445
13446 * server.c (start_inferior): Set last_ptid in --wrapper case.
13447
32d92999
YQ
134482012-01-06 Yao Qi <yao@codesourcery.com>
13449
13450 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13451 defined.
13452 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13453
5e0a92a9
YQ
134542012-01-04 Yao Qi <yao@codesourcery.com>
13455
13456 * tracepoint.c (cmd_qtdp): Print debug message
13457 for static tracepoint.
13458
ae639e8c
YQ
134592012-01-04 Yao Qi <yao@codesourcery.com>
13460
13461 * tracepoint.c (trace_vdebug): Differentiate debug message
13462 between gdbserver and IPA.
13463
f72429c5
YQ
134642012-01-03 Yao Qi <yao@codesourcery.com>
13465
13466 * tracepoint.c (tracepoint_was_hit): Don't collect for
13467 static tracepoint.
13468
12c3e59c
JB
134692012-01-02 Joel Brobecker <brobecker@adacore.com>
13470
13471 * terminal.h: Reformat copyright header.
13472
67827812
JB
134732012-01-02 Joel Brobecker <brobecker@adacore.com>
13474
13475 * server.c (gdbserver_version): Update copyright year.
13476 * gdbreplay.c (gdbreplay_version): Likewise.
13477
3e52c33d
JK
134782011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13479
13480 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13481
13482 Revert:
13483 2011-12-18 Hui Zhu <teawater@gmail.com>
13484 * linux-low.c (linux_create_inferior): Save return value to ret.
13485
66f1260e
HZ
134862011-12-18 Hui Zhu <teawater@gmail.com>
13487
13488 * linux-low.c (linux_create_inferior): Save return value to ret.
13489
e77616d7
DE
134902011-12-16 Doug Evans <dje@google.com>
13491
e7b06c57
DE
13492 * linux-low.c (linux_create_inferior): If stdio connection,
13493 redirect stdin from /dev/null, stdout to stderr.
13494 * remote-utils.c (remote_is_stdio): New static global.
13495 (remote_connection_is_stdio): New function.
13496 (remote_prepare): Handle stdio connection.
13497 (remote_open): Ditto.
13498 (remote_close): Don't close stdin for stdio connections.
13499 (read_prim,write_prim): New functions. Replace all calls to
13500 read/write to these.
13501 * server.c (main): Watch for "-" argument. Move call to
13502 remote_prepare before start_inferior.
13503 * server.h (STDIO_CONNECTION_NAME): New macro.
13504 (remote_connection_is_stdio): Declare.
13505
e77616d7
DE
13506 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13507 in debugging output.
13508
82067193
YQ
135092011-12-15 Yao Qi <yao@codesourcery.com>
13510
13511 * tracepoint.c: Include sys/syscall.h.
13512 (gdb_ust_thread): Remove preprocessor conditional.
13513
82bfbe7e
PA
135142011-12-14 Pedro Alves <pedro@codesourcery.com>
13515
13516 * linux-low.c (linux_detach_one_lwp): Call
13517 the_low_target.prepare_to_resume before detaching.
13518
712c6575
YQ
135192011-12-14 Yao Qi <yao@codesourcery.com>
13520
13521 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13522 of write.
13523
d54d1edf
YQ
135242011-12-14 Yao Qi <yao@codesourcery.com>
13525
13526 * i386-low.c (i386_low_stopped_data_address): Initialize local
13527 variable `control'.
13528
6210a125
PA
135292011-12-13 Pedro Alves <pedro@codesourcery.com>
13530
13531 PR remote/13492
13532
13533 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13534 DR_CONTROL unless necessary. Extend comments.
13535 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13536 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13537
2ece8244
YQ
135382011-12-13 Yao Qi <yao@codesourcery.com>
13539
13540 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13541 macros.
13542 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13543
784867a5
JK
135442011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13545
13546 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13547 Print new debug message for such case.
13548
6bf36717
JK
135492011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13550
13551 Fix overlapping memcpy.
13552 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13553 the read_inferior_memory transfer.
13554 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13555 write_inferior_memory transfer.
13556 (set_fast_tracepoint_jump): New variable buf. Use it for the
13557 read_inferior_memory and write_inferior_memory transfers.
13558 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13559 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13560 Use it for the write_inferior_memory transfer.
13561 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13562 buffers.
13563
50275556
MR
135642011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13565
13566 * linux-low.c (fetch_register, store_register): Make code
13567 consistent, fix formatting.
13568
7325beb4
MR
135692011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13570
13571 * linux-low.c (usr_store_inferior_registers): Factor out code
13572 to handle individual registers into...
13573 (store_register): ... this new function.
13574
c642a434
UW
135752011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13576
13577 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13578 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13579 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13580 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13581 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13582 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13583 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13584 (srv_xmlfiles): Add new XML files.
13585
13586 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13587 and <sys/uio.h>.
13588 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13589 (init_registers_s390_linux32v1): Add prototype.
13590 (init_registers_s390_linux32v2): Likewise.
13591 (init_registers_s390_linux64v1): Likewise.
13592 (init_registers_s390_linux64v2): Likewise.
13593 (init_registers_s390x_linux64v1): Likewise.
13594 (init_registers_s390x_linux64v2): Likewise.
13595 (s390_num_regs): Increment to 52.
13596 (s390_regmap): Add orig_r2 register.
13597 (s390_num_regs_3264): Increment to 68.
13598 (s390_regmap_3264): Add orig_r2 register.
13599 (s390_collect_ptrace_register): Handle orig_r2 register.
13600 (s390_supply_ptrace_register): Likewise.
13601 (s390_fill_last_break): New function.
13602 (s390_store_last_break): Likewise.
13603 (s390_fill_system_call): New function.
13604 (s390_store_system_call): Likewise.
13605 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13606 register sets.
13607 (s390_check_regset): New function.
13608 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13609 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13610 Update target_regsets for available register sets.
13611
2268b414
JK
136122011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13613 Jan Kratochvil <jan.kratochvil@redhat.com>
13614
13615 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13616 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13617 New.
13618 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13619 * linux-low.h (struct process_info_private): New member r_debug.
13620 * server.c (handle_qxfer_libraries): Call
13621 the_target->qxfer_libraries_svr4.
13622 (handle_qxfer_libraries_svr4): New function.
13623 (qxfer_packets): New entry "libraries-svr4".
13624 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13625 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13626 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13627 PACKET_qXfer_libraries_svr4.
13628
d6db1fab
UW
136292011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13630
13631 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13632 PSW address/mask between 8-byte and 16-byte formats.
13633 (s390_supply_ptrace_register): Likewise.
13634 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13635 basic addressing mode bit.
13636
242f5f1c
SS
136372011-11-24 Stan Shebs <stan@codesourcery.com>
13638
13639 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13640
f196051f
SS
136412011-11-17 Stan Shebs <stan@codesourcery.com>
13642
13643 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13644 (tracing_start_time): New global.
13645 (tracing_stop_time): New global.
13646 (tracing_user_name): New global.
13647 (tracing_notes): New global.
13648 (tracing_stop_note): New global.
13649 (cmd_qtstart): Set traceframe_usage, start_time.
13650 (stop_tracing): Set stop_time.
13651 (cmd_qtstatus): Report additional status.
13652 (cmd_qtp): New function.
13653 (handle_tracepoint_query): Call it.
13654 (cmd_qtnotes): New function.
13655 (handle_tracepoint_general_set): Call it.
13656 (get_timestamp): Rename from tsv_get_timestamp.
13657
405f8e94
SS
136582011-11-14 Stan Shebs <stan@codesourcery.com>
13659 Kwok Cheung Yeung <kcy@codesourcery.com>
13660
13661 * linux-x86-low.c (small_jump_insn): New.
13662 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13663 trampoline and error message, build a trampoline and issue a small
13664 jump instruction to it.
13665 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13666 trampoline and error message.
13667 (x86_get_min_fast_tracepoint_insn_len): New.
13668 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13669 * linux-low.h (struct linux_target_ops): Add arguments to
13670 install_fast_tracepoint_jump_pad operation, add new operation.
13671 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13672 arguments.
13673 (linux_get_min_fast_tracepoint_insn_len): New function.
13674 (linux_target_op): Add new operation.
13675 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13676 (gdb_trampoline_buffer_end): Ditto.
13677 (gdb_trampoline_buffer_error): Ditto.
13678 (struct ipa_sym_addresses): Add fields for new IPA variables.
13679 (symbol_list): Add entries for new IPA variables.
13680 (struct tracepoint): Add fields to hold the address range of the
13681 trampoline used by the tracepoint.
13682 (trampoline_buffer_head): New static variable.
13683 (trampoline_buffer_tail): Ditto.
13684 (claim_trampoline_space): New function.
13685 (have_fast_tracepoint_trampoline_buffer): New function.
13686 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13687 structure.
13688 (install_fast_tracepoint): Ditto, also add error buffer argument.
13689 (cmd_qtminftpilen): New function.
13690 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13691 (fast_tracepoint_from_trampoline_address): New function.
13692 (fast_tracepoint_collecting): Handle trampoline as part of jump
13693 pad space.
13694 (set_trampoline_buffer_space): New function.
13695 (initialize_tracepoint): Initialize new IPA variables.
13696 * target.h (struct target_ops): Add arguments to
13697 install_fast_tracepoint_jump_pad operation, add new
13698 get_min_fast_tracepoint_insn_len operation.
13699 (target_get_min_fast_tracepoint_insn_len): New.
13700 (install_fast_tracepoint_jump_pad): Add arguments.
13701 * server.h (IPA_BUFSIZ): Define.
13702 * linux-i386-ipa.c: Include extra header files.
13703 (initialize_fast_tracepoint_trampoline_buffer): New function.
13704 (initialize_low_tracepoint): Call it.
13705 * server.h (set_trampoline_buffer_space): Declare.
13706 (claim_trampoline_space): Ditto.
13707 (have_fast_tracepoint_trampoline_buffer): Ditto.
13708
1e4d1764
YQ
137092011-11-14 Yao Qi <yao@codesourcery.com>
13710
13711 * server.c (handle_query): Handle InstallInTrace for qSupported.
13712 * tracepoint.c (add_tracepoint): Sort list.
13713 (install_tracepoint, download_tracepoint): New.
13714 (cmd_qtdp): Call them to install and download tracepoints.
13715 (sort_tracepoints): Removed.
13716 (cmd_qtstart): Update.
13717
5c73ff4e
YQ
137182011-11-14 Yao Qi <yao@codesourcery.com>
13719
13720 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13721 * mem-break.h: Declare.
13722 * tracepoint.c (cmd_qtstart): Move some code to ...
13723 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13724 New.
13725 (download_tracepoints): Move some code to ...
13726 (download_tracepoint_1): ... here. New.
13727
86a30030
YQ
137282011-11-08 Yao Qi <yao@codesourcery.com>
13729
13730 * remote-utils.c (relocate_instruction): A comment fix.
13731
8d26e50c
JB
137322011-11-07 Joel Brobecker <brobecker@adacore.com>
13733
13734 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13735 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13736 dr_status_mirror and dr_control_mirror from debug_reg_state.
13737 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13738 (i386_initial_stuff): Remove use of deleted globals.
13739 (i386_get_thread_context, i386_set_thread_context,
13740 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13741 from debug_reg_state.
13742
a59306a3
YQ
137432011-11-05 Yao Qi <yao@codesourcery.com>
13744
13745 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13746 address as TPOINT's.
13747
3065dfb6
SS
137482011-11-02 Stan Shebs <stan@codesourcery.com>
13749
13750 * tracepoint.c (agent_mem_read_string): New function.
13751 (eval_agent_expr): Call it for tracenz.
13752 * server.c (handle_query): Report support for tracenz.
13753
fd0d8c7c
YQ
137542011-11-02 Yao Qi <yao@codesourcery.com>
13755
13756 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13757
609086b1
YQ
137582011-11-02 Yao Qi <yao@codesourcery.com>
13759
13760 * target.h: Fix a typo in comment.
13761
b9fd1791
PA
137622011-10-31 Pedro Alves <pedro@codesourcery.com>
13763
13764 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13765 clobber the breakpoints' shadows with fast tracepoint jumps.
13766 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13767 * target.c (write_inferior_memory): Also pass MYADDR down to
13768 check_mem_write.
13769
03583c20
UW
137702011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13771
13772 * configure.ac: Check support for personality routine.
13773 * configure: Regenerate.
13774 * config.in: Likewise.
13775 * linux-low.c: Include <sys/personality.h>.
13776 Define ADDR_NO_RANDOMIZE if necessary.
13777 (linux_create_inferior): Disable address space randomization when
13778 forking inferior, if requested.
13779 (linux_supports_disable_randomization): New function.
13780 (linux_target_ops): Install it.
13781 * server.h (disable_randomization): Declare.
13782 * server.c (disable_randomization): New global variable.
13783 (handle_general_set): Handle QDisableRandomization.
13784 (handle_query): Likewise for qSupported.
13785 (main): Support --disable-randomization and --no-disable-randomization
13786 command line arguments.
13787 * target.h (struct target_ops): Add supports_disable_randomization.
13788 (target_supports_disable_randomization): New macro.
13789
723b724b
MF
137902011-09-29 Mike Frysinger <vapier@gentoo.org>
13791
13792 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13793 ifdef check.
13794 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13795 [!PT_GETDSBT] (target_loadmap): New definition.
13796 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13797 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13798 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13799 and PT_GETDSBT to LINUX_LOADMAP.
13800 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13801 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13802
55329a5c 138032011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
13804
13805 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13806 (arm_linux_hwbp_cap): New static variable.
13807 (arm_linux_get_hwbp_cap): Replace by ...
13808 (arm_linux_init_hwbp_cap): ... this new function.
13809 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13810 (arm_linux_get_hw_watchpoint_count): Likewise.
13811 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13812 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13813 (arm_prepare_to_resume): Use perror_with_name instead of error.
13814
55329a5c 138152011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
13816
13817 * linux-arm-low.c: Include <signal.h>.
13818 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13819 (struct arm_linux_hwbp_cap): New data type.
13820 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13821 (struct arm_linux_hw_breakpoint): New data type.
13822 (MAX_BPTS, MAX_WPTS): Define.
13823 (struct arch_process_info, struct arch_lwp_info): New data types.
13824 (arm_linux_get_hwbp_cap): New function.
13825 (arm_linux_get_hw_breakpoint_count): Likewise.
13826 (arm_linux_get_hw_watchpoint_count): Likewise.
13827 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13828 (arm_hwbp_control_initialize): Likewise.
13829 (arm_hwbp_control_is_enabled): Likewise.
13830 (arm_hwbp_control_is_initialized): Likewise.
13831 (arm_hwbp_control_disable): Likewise.
13832 (arm_linux_hw_breakpoint_equal): Likewise.
13833 (arm_linux_hw_point_initialize): Likewise.
13834 (struct update_registers_data): New data structure.
13835 (update_registers_callback: New function.
13836 (arm_insert_point): Likewise.
13837 (arm_remove_point): Likewise.
13838 (arm_stopped_by_watchpoint): Likewise.
13839 (arm_stopped_data_address): Likewise.
13840 (arm_new_process): Likewise.
13841 (arm_new_thread): Likewise.
13842 (arm_prepare_to_resume): Likewise.
13843 (the_low_target): Register arm_insert_point, arm_remove_point,
13844 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13845 arm_new_thread, and arm_prepare_to_resume.
13846
6b9801d4
SS
138472011-09-15 Stan Shebs <stan@codesourcery.com>
13848
13849 * server.h (struct emit_ops): Add compare-goto fields.
13850 * tracepoint.c (gdb_agent_op_sizes): New table.
13851 (emit_eq_goto): New function.
13852 (emit_ne_goto): New function.
13853 (emit_lt_goto): New function.
13854 (emit_le_goto): New function.
13855 (emit_gt_goto): New function.
13856 (emit_ge_goto): New function.
13857 (is_goto_target): New function.
13858 (compile_bytecodes): Recognize special cases of compare-goto
13859 combinations and call specialized emitters for them.
13860 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13861 (amd64_emit_ne_goto): New function.
13862 (amd64_emit_lt_goto): New function.
13863 (amd64_emit_le_goto): New function.
13864 (amd64_emit_gt_goto): New function.
13865 (amd64_emit_ge_goto): New function.
13866 (amd64_emit_ops): Add the new functions.
13867 (i386_emit_eq_goto): New function.
13868 (i386_emit_ne_goto): New function.
13869 (i386_emit_lt_goto): New function.
13870 (i386_emit_le_goto): New function.
13871 (i386_emit_gt_goto): New function.
13872 (i386_emit_ge_goto): New function.
13873 (i386_emit_ops): Add the new functions.
13874
bf15cbda
SS
138752011-09-08 Stan Shebs <stan@codesourcery.com>
13876
13877 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13878 (i386_emit_epilogue): Restore %ebx.
13879
943ca1dd
JZ
138802011-08-31 Jie Zhang <jzhang918@gmail.com>
13881
13882 * server.c (step_thread): Remove definition.
13883 (process_serial_event): Don't handle Hs.
13884 * server.h (step_thread): Remove declaration.
13885 * target.c (set_desired_inferior): Remove use of step_thread.
13886
e3deef73
LM
138872011-08-24 Luis Machado <lgustavo@codesourcery.com>
13888
13889 * linux-low.c: Include linux-procfs.h.
13890 (linux_attach_lwp_1): Update comments.
13891 (linux_attach): Scan for existing threads when attaching to a
13892 process that is the tgid.
13893 * Makefile.in: Update dependencies.
13894
13da1c97
LM
138952011-08-24 Luis Machado <lgustavo@codesourcery.com>
13896
13897 * configure.srv: Add linux-procfs.o dependencies.
13898
881127c9
YQ
138992011-08-14 Yao Qi <yao@codesourcery.com>
13900
13901 * target.h (struct target_ops): Fix indent.
13902 * win32-low.c (win32_target_ops): Fix comment.
13903
58dbd541
YQ
139042011-08-14 Andrew Jenner <andrew@codesourcery.com>
13905 Yao Qi <yao@codesourcery.com>
13906
13907 * Makefile.in (clean): Remove tic6x-*.c files.
13908 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13909 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13910 (tic6x-c64xp-linux.c): Likewise.
13911 * configure.srv: Add support for tic6x-*-uclinux.
13912 * linux-tic6x-low.c: New.
13913 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13914
78d85199
YQ
139152011-08-14 Andrew Stubbs <ams@codesourcery.com>
13916 Yao Qi <yao@codesourcery.com>
13917
13918 * target.h (struct target_ops): Add read_loadmap.
13919 * linux-low.c (struct target_loadseg): New type.
13920 (struct target_loadmap): New type.
13921 (linux_read_loadmap): New function.
13922 (linux_target_ops): Add linux_read_loadmap.
13923 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
13924 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13925 to NULL.
78d85199 13926
a959a88d
EZ
139272011-08-05 Eli Zaretskii <eliz@gnu.org>
13928
13929 * win32-low.c: Include <stdint.h>.
13930
1ced966e
PA
139312011-07-22 Pedro Alves <pedro@codesourcery.com>
13932
13933 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13934 to the inferior here.
13935 (i386_remove_aligned_watchpoint): Ditto.
13936 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13937 fit part of the watchpoint in the debug registers.
13938 (i386_update_inferior_debug_regs): New.
13939 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13940 registers, and only update the inferior on success.
13941 (i386_low_remove_watchpoint): Ditto.
13942
d26e3629
KY
139432011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13944
13945 * linux-low.c (compare_ints, unique, list_threads, show_process,
13946 linux_core_of_thread): Delete.
13947 (linux_target_ops): Change linux_core_of_thread to
13948 linux_common_core_of_thread.
13949 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13950 * utils.c (malloc_failure): Change type of argument.
13951 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13952 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13953 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13954 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13955 (IPA_OBJS): Add common-utils-ipa.o.
13956 (ptid_h, linux_osdata_h): New macros.
13957 (server_h): Add common/common-utils.h, common/xml-utils.h,
13958 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13959 common/ptid.h.
13960 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13961 ptid.o, buffer.o): New rules.
13962 (linux-low.o): Add common/linux-osdata.h as a dependency.
13963 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13964 * configure.ac: Add AC_HEADER_DIRENT check.
13965 * config.in: Regenerate.
13966 * configure: Regenerate.
13967 * remote-utils.c (xml_escape_text): Delete.
13968 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13969 buffer_xml_printf): Move to common/buffer.c.
13970 * server.c (main): Remove call to initialize_inferiors.
13971 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
13972 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
13973 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
13974 internal_error, gdb_assert, gdb_assert_fail): Delete.
13975 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
13976 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
13977 common/buffer.h.
13978 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
13979 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
13980 initialize_inferiors): Delete.
13981
2275a1a7
PA
139822011-07-20 Pedro Alves <pedro@codesourcery.com>
13983
13984 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13985 symbol error.
13986
0a5b1e09
PA
139872011-05-31 Pedro Alves <pedro@codesourcery.com>
13988
13989 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13990 assertion.
13991 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13992
6938fd34
YQ
139932011-05-26 Yao Qi <yao@codesourcery.com>
13994
13995 * Makefile.in (thread-db.o): Track dependence to
13996 common/gdb_thread_db.h.
13997 * thread-db.c: include gdb_thread_db.h from right place.
13998
b481f9e0
TT
139992011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14000
14001 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14002 __FILE__ and __LINE__ to internal_error.
14003
98a5dd13
DE
140042011-05-13 Doug Evans <dje@google.com>
14005
14006 * thread-db.c (try_thread_db_load_from_sdir): New function.
14007 (try_thread_db_load_from_dir): New function.
14008 (thread_db_load_search): Handle $sdir, ignore $pdir.
14009 Remove trying of system directories if search of
14010 libthread-db-search-path fails, that is now done via $sdir.
14011
d248b706
KY
140122011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14013
14014 * server.c (handle_query): Add EnableDisableTracepoints to the list
14015 of supported features.
43aaf8b6 14016 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 14017 tracepoints.
43aaf8b6
PA
14018 (cmd_qtenable_disable): New.
14019 (cmd_qtstart): Install tracepoints even if disabled.
14020 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14021 receiving a QTEnable or QTDisable packet.
14022 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14023 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14024 tracepoints.
14025 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 14026
84e578fb
DE
140272011-05-10 Doug Evans <dje@google.com>
14028
14029 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14030
71f55dd8
DE
140312011-05-04 Doug Evans <dje@google.com>
14032
14033 * linux-low.c (linux_join): Skip process lookup.
14034 * spu-low.c (spu_join): Ditto.
14035 * server.c (join_inferiors_callback): Delete.
14036 (process_serial_event): For 'D' packet (detach) call join_inferior
14037 directly.
14038
4d393d60
JM
140392011-05-04 Joseph Myers <joseph@codesourcery.com>
14040
14041 * README: Don't mention xscale*-*-linux*.
14042 * configure.srv (xscale*-*-linux*): Don't handle target.
14043
b00ad6ff
NF
140442011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14045
14046 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14047 casting pointers.
14048 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14049 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14050 (i386_emit_void_call_2): Likewise.
14051
af96c192
YQ
140522011-04-26 Yao Qi <yao@codesourcery.com>
14053
43aaf8b6
PA
14054 * linux-low.c: Move common macros to linux-ptrace.h.
14055 Include linux-ptrace.h.
af96c192
YQ
14056 * Makefile.in (linux_ptrace_h): New.
14057 (linux-low.o): Depends on linux-ptrace.h.
14058
03f2bd59
JK
140592011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14060
14061 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14062 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14063 (remote_prepare): New function with most of the TCP code from ...
14064 (remote_open): ... here. Detect PORT here unconditionally. Move also
14065 setting transport_is_reliable.
14066 * server.c (run_once): New variable.
14067 (gdbserver_usage): Document it.
14068 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14069 the first run if RUN_ONCE.
14070 * server.h (run_once, remote_prepare): New declarations.
14071
7a9dd1b2
TT
140722011-04-19 Tom Tromey <tromey@redhat.com>
14073
14074 * win32-low.c (handle_load_dll): Remove duplicate "the".
14075
81239425
PM
140762011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14077
14078 Remove support for old Cygwin 1.5 versions.
14079 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14080 function to avoid warning.
14081 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14082 warning.
14083
9e0627f1
PM
140842011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14085
14086 * gdbserver/server.h (Macro _): Define it if not available.
14087
588eebee
MS
140882011-03-14 Michael Snyder <msnyder@vmware.com>
14089
348af9f7 14090 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 14091
43f70d4c
JB
140922011-03-10 Joel Brobecker <brobecker@adacore.com>
14093
14094 * Makefile.in (maintainer-clean realclean distclean): Remove
14095 "make ... subdir_do" command.
14096
348af9f7
MS
140972011-03-10 Michael Snyder <msnyder@vmware.com>
14098
14099 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14100
14101 * server.c (handle_v_run): Free alloced buffer on early return.
14102
e637a4f5
YQ
141032011-03-09 Yao Qi <yao@codesourcery.com>
14104
14105 Revert:
14106 2011-03-04 Yao Qi <yao@codesourcery.com>
14107
14108 * Makefile.in: Remove GNU make feature --directory.
14109
14110 2011-03-05 Yao Qi <yao@codesourcery.com>
14111
14112 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14113 (subdir_do): New make target. Copied from gdb/Makefile.
14114 (maintainer-clean, realclean, distclean, clean): Call corresponding
14115 make targets in common/Makefile.
14116
14117 2011-02-11 Yao Qi <yao@codesourcery.com>
14118
14119 * configure.ac: Call AC_PROG_RANLIB.
14120 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14121 * configure: Regenerate.
14122
e6edda56
JK
141232011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14124
14125 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14126
e5141119
JB
141272011-03-06 Yao Qi <yao@codesourcery.com>
14128
14129 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14130
64794aa4
JB
141312011-03-05 Yao Qi <yao@codesourcery.com>
14132
14133 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14134 (subdir_do): New make target. Copied from gdb/Makefile.
14135 (maintainer-clean, realclean, distclean, clean): Call corresponding
14136 make targets in common/Makefile.
14137
7a762829
YQ
141382011-03-04 Yao Qi <yao@codesourcery.com>
14139
14140 * Makefile.in: Remove GNU make feature --directory.
14141
348af9f7
MS
141422011-03-04 Michael Snyder <msnyder@vmware.com>
14143
14144 * server.c (queue_stop_reply): Call xmalloc not malloc.
14145
141462011-03-02 Michael Snyder <msnyder@vmware.com>
14147
14148 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14149
9f72fee2
MS
141502011-02-28 Michael Snyder <msnyder@vmware.com>
14151
588eebee
MS
14152 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14153 (cmd_qtframe): Ditto.
14154 (cmd_qtbuffer): Ditto.
14155 (cmd_bigqtbuffer): Ditto.
14156
9f72fee2
MS
14157 * utils.c (decimal2str): Initialize 'width' to nine, then
14158 don't mess with it.
14159
8040bd49
UW
141602011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14161
14162 * hostio.c (require_data): Free *data, not data.
14163
7e52cbd0
JK
141642011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14165
14166 * hostio.c (require_data): Use free, not xfree.
14167
9130f83e
MS
141682011-02-27 Michael Snyder <msnyder@vmware.com>
14169
4b812f4e
MS
14170 * server.c (handle_query): Discard unused value.
14171
9130f83e
MS
14172 * hostio.c (require_data): Free malloc memory before returning
14173 error.
14174
69d37113
MS
141752011-02-26 Michael Snyder <msnyder@vmware.com>
14176
14177 * linux-low.c (list_threads): Call closedir for dirent.
14178
35f5825a
MS
141792011-02-27 Michael Snyder <msnyder@vmware.com>
14180
2a589cef
MS
14181 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14182 a case statement falls through.
14183
0adea5f7
MS
14184 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14185
35f5825a
MS
14186 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14187 in comparison.
14188
238f1c74
MS
141892011-02-26 Michael Snyder <msnyder@vmware.com>
14190
14191 * utils.c (decimal2str): Eliminate dead code and dead param.
14192 (pulongest): Drop dead param from call to decimal2str.
14193 (plongest): Ditto.
14194
633ff500
JB
141952011-02-24 Joel Brobecker <brobecker@adacore.com>
14196
14197 Revert the following patch (not approved yet):
14198 2011-02-21 Hui Zhu <teawater@gmail.com>
14199 * tracepoint.c (tp_printf): New function.
14200 (eval_agent_expr): Handle gdb_agent_op_printf.
14201
f9c6ff72
HZ
142022011-02-21 Hui Zhu <teawater@gmail.com>
14203
14204 * tracepoint.c (tp_printf): New function.
14205 (eval_agent_expr): Handle gdb_agent_op_printf.
14206
94d5e490
TT
142072011-02-18 Tom Tromey <tromey@redhat.com>
14208
14209 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14210 (tracepoint.o): Likewise.
14211 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14212 (gdb_agent_op_names): Likewise.
14213
c7f96d2b
TT
142142011-02-18 Tom Tromey <tromey@redhat.com>
14215
14216 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14217 gdb_agent_op_rot>: New constants.
14218 (gdb_agent_op_names): Add pick and roll.
14219 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14220 cases.
14221
0feedb2c
JK
142222011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14223
14224 * aclocal.m4: Regenerated with aclocal-1.11.1.
14225
b3b9301e
PA
142262011-02-14 Pedro Alves <pedro@codesourcery.com>
14227
14228 * server.c (handle_qxfer_traceframe_info): New.
14229 (qxfer_packets): Register "traceframe-info".
14230 (handle_query): Report support for qXfer:traceframe-info:read+.
14231 * tracepoint.c (match_blocktype): New.
14232 (traceframe_find_block_type): Rename to ...
14233 (traceframe_walk_blocks): ... this. Add callback filter argument,
14234 and use it.
14235 (traceframe_find_block_type): New, reimplemented on top of
14236 traceframe_walk_blocks.
14237 (build_traceframe_info_xml): New.
14238 (traceframe_read_info): New.
14239 * server.h (traceframe_read_info): Declare.
14240
4f3e6fb7
YQ
142412011-02-11 Yao Qi <yao@codesourcery.com>
14242
14243 * configure.ac: Call AC_PROG_RANLIB.
14244 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14245 * configure: Regenerate.
14246
764880b7
PA
142472011-02-07 Pedro Alves <pedro@codesourcery.com>
14248
14249 * server.c (gdb_read_memory): Change return semantics to allow
14250 partial transfers.
14251 (handle_search_memory_1): Adjust.
14252 (process_serial_event) <'m' packet>: Handle partial transfers.
14253 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14254
1c79eb8a
PA
142552011-01-28 Pedro Alves <pedro@codesourcery.com>
14256
14257 * regcache.c (init_register_cache): Initialize
14258 regcache->register_status.
14259 (free_register_cache): Release regcache->register_status.
14260 (regcache_cpy): Copy register_status.
14261 (registers_to_string): Print 'x's for unavailable registers.
14262 (supply_register): Mark the register's status valid or
14263 unavailable, depending on whether a buffer was passed in or not.
14264 (supply_register_zeroed): New.
14265 (supply_regblock): Mark the registers' status valid or
14266 unavailable, depending on whether a buffer was passed in or not.
14267 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14268 (struct regcache): New `register_status' field.
14269 (supply_register_zeroed): Declare.
14270 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14271 supply_register_zeroed, rather than passing a NULL buffer to
14272 supply_register.
14273 * tracepoint.c (fetch_traceframe_registers): Update comment.
14274
85724a0e
PA
142752011-01-28 Pedro Alves <pedro@codesourcery.com>
14276
14277 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14278 buffer explicit.
14279
d08aafef
PA
142802011-01-25 Pedro Alves <pedro@codesourcery.com>
14281
14282 * server.h (decode_xfer_write): Change prototype.
14283 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14284 and don't extract the annex here.
14285 * server.c (decode_xfer_read): Remove `annex' parameter,
14286 and don't extract the annex here.
14287 (decode_xfer): New.
14288 (struct qxfer): New.
14289 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14290 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14291 (handle_qxfer_statictrace): New functions, abstracted out from
14292 handle_query, and made to use the struct qxfer interface.
14293 (handle_threads_qxfer_proper): Rename to ...
14294 (handle_qxfer_threads_proper): ... this.
14295 (handle_threads_qxfer): Rename to ...
14296 (handle_qxfer_threads): ... this. Adjust.
14297 (qxfer_packets): New array.
14298 (handle_qxfer): New function.
14299 (handle_query): Use handle_qxfer.
14300
493e2a69
MS
143012011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14302
14303 * gdbreplay.c: Shorten lines of >= 80 columns.
14304 * linux-low.c: Ditto.
14305 * linux-ppc-low.c: Ditto.
14306 * linux-s390-low.c: Ditto.
14307 * linux-sparc-low.c: Ditto.
14308 * linux-x86-low.c: Ditto.
14309 * linux-xtensa-low.c: Ditto.
14310 * mem-break.c: Ditto.
14311 * nto-low.c: Ditto.
14312 * regcache.h: Ditto.
14313 * remote-utils.c: Ditto.
14314 * server.c: Ditto.
14315 * server.h: Ditto.
14316 * thread-db.c: Ditto.
14317 * tracepoint.c: Ditto.
14318 * utils.c: Ditto.
14319 * win32-low.h: Ditto.
14320
44944448
JB
143212011-01-05 Joel Brobecker <brobecker@adacore.com>
14322
14323 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14324 update.
14325
71ce852c
JB
143262011-01-01 Joel Brobecker <brobecker@adacore.com>
14327
14328 * server.c (gdbserver_version): Update copyright year in version
14329 output.
14330 * gdbreplay.c (gdbreplay_version): Ditto.
14331
eb826dc6
MF
143322010-12-29 Jie Zhang <jie.zhang@analog.com>
14333
14334 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14335 * linux-bfin-low.c: New file.
14336 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14337 PT_DATA_ADDR for BFIN targets.
14338 * Makefile.in (SFILES): Add linux-bfin-low.c.
14339 (clean): Remove reg-bfin.c.
14340 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14341 * README: Mention supported Blackfin targets.
14342
39ab222a
MF
143432010-12-23 Mike Frysinger <vapier@gentoo.org>
14344
14345 * .gitignore: New file.
14346
a1f2ce7d
MF
143472010-11-16 Mike Frysinger <vapier@gentoo.org>
14348
14349 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14350
f474844c
JZ
143512010-10-22 Jie Zhang <jie@codesourcery.com>
14352
14353 * Makefile.in: Add FLAGS_TO_PASS variable.
14354 (install): Remove dependency of install-only and recursively
14355 invoke make for install-only.
14356
f1048712
DE
143572010-10-04 Doug Evans <dje@google.com>
14358
14359 * Makefile.in (uninstall): Use $(DESTDIR).
14360
b53a1623
PA
143612010-09-24 Pedro Alves <pedro@codesourcery.com>
14362
e6ee044d
PA
14363 PR gdb/11842
14364
b53a1623
PA
14365 * linux-x86-low.c (compat_siginfo_from_siginfo)
14366 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14367 si_code is < 0. Check for si_code == SI_TIMER before checking for
14368 si_code < 0.
14369
fa1bd1e4
JB
143702010-09-13 Joel Brobecker <brobecker@adacore.com>
14371
14372 * lynx-i386-low.c: New file.
14373 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14374
47fac8f8
JB
143752010-09-13 Joel Brobecker <brobecker@adacore.com>
14376
14377 * lynx-low.c (ptrace_request_to_str): Remove handling for
14378 request values that have been removed in LynxOS 5.x.
14379
1adfc54d
JB
143802010-09-13 Joel Brobecker <brobecker@adacore.com>
14381
14382 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14383 <ptrace.h>
14384
c2a66c29
NS
143852010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14386
14387 * configure.ac: Add --enable-inprocess-agent option.
14388 * configure: Rebuilt.
14389
32fcada3
YQ
143902010-09-06 Yao Qi <yao@codesourcery.com>
14391
14392 * linux-low.c (linux_kill): Remove unused variable.
14393 (linux_stabilize_threads): Likewise.
14394 * server.c (start_inferior): Likewise.
14395 (queue_stop_reply_callback): Likewise.
14396 * tracepoint.c (do_action_at_tracepoint): Likewise.
14397
0cccb683
YQ
143982010-09-06 Yao Qi <yao@codesourcery.com>
14399
14400 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14401 on return.
14402
423ec54c
JK
144032010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14404
14405 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14406
12ac6819
PA
144072010-09-06 Pedro Alves <pedro@codesourcery.com>
14408
14409 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14410 "$(IPA_DEPFILES)".
14411
8ed54b31
JB
144122010-09-01 Joel Brobecker <brobecker@adacore.com>
14413
14414 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14415 gdbserver/lynx-ppc-low.c: New files.
14416 * Makefile.in (lynx_low_h): New variable.
14417 (lynx-low.o, lynx-ppc-low.o): New rules.
14418 * configure.ac: On LynxOS, link with -lnetinet.
14419 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14420 * configure: regenerate.
14421
bb0116a4
JB
144222010-09-01 Joel Brobecker <brobecker@adacore.com>
14423
14424 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14425 * configure.ac: Add check for vasprintf and vsnprintf.
14426 * configure, config.in: Regenerate.
14427 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14428
a778ab81 144292010-09-01 Joel Brobecker <brobecker@adacore.com>
14430
14431 * gdbreplay.c: Move include of alloca.h up, next to include of
14432 malloc.h.
14433 * server.h: Add include of malloc.h.
14434 * mem-break.c: Remove include of malloc.h.
14435 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14436
8b034a19 144372010-09-01 Joel Brobecker <brobecker@adacore.com>
14438
14439 * Makefile.in (memmem.o): Build with -Wno-error.
14440
144412010-09-01 Joel Brobecker <brobecker@adacore.com>
14442
14443 * utils.c (xsnprintf): Make non-static.
14444 * server.h: Add xsnprintf declaration.
14445 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14446 replace calls to snprintf by calls to xsnprintf throughout.
14447
144482010-09-01 Joel Brobecker <brobecker@adacore.com>
14449
14450 * configure.ac: Add configure check for alloca.
14451 * configure, config.in: Regenerate.
14452 * server.h: Include alloca.h if it exists.
14453 * gdbreplay.c: Include alloca.h if it exists.
14454
1a981360
PA
144552010-08-28 Pedro Alves <pedro@codesourcery.com>
14456
14457 * linux-low.c (__SIGRTMIN): Define if not already defined.
14458 (linux_create_inferior): Check for __ANDROID__ rather than
14459 __SIGRTMIN.
14460 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14461 are already deferred.
14462 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14463 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14464 stopped and already has a pending signal to report.
14465 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14466 a pending signal to report or is moving out of a jump pad.
14467 (linux_init_signals): Check for __ANDROID__ rather than
14468 __SIGRTMIN.
14469
b4d51a55
PA
144702010-08-28 Pedro Alves <pedro@codesourcery.com>
14471
14472 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14473 debug_threads check. Avoid a linear search when not doing debug
14474 output.
14475
ec48365d
PA
144762010-08-27 Pedro Alves <pedro@codesourcery.com>
14477
14478 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14479 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14480 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14481 (process_event): Change local fd's type to gdb_fildes_t.
14482 (create_file_handler): Adjust prototype.
14483 (delete_file_handler): Adjust prototype.
14484 (handle_file_event): Adjust prototype. Use pfildes.
14485 (create_file_event): Adjsut prototype.
14486 * remote-utils.c (remote_desc, listen_desc): Change type to
14487 gdb_fildes_t.
14488 * server.h: New gdb_fildes_t typedef.
14489 [USE_WIN32API]: Include winsock2.h.
14490 (delete_file_handler, add_file_handler): Adjust prototypes.
14491 (pfildes): Declare.
14492 * utils.c (pfildes): New.
14493
854d88f0
PA
144942010-08-27 Pedro Alves <pedro@codesourcery.com>
14495
14496 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14497 * configure: Regenerate.
14498
0146f85b
PA
144992010-08-27 Pedro Alves <pedro@codesourcery.com>
14500
14501 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14502 (linux_done_accessing_memory): ... this.
14503 (linux_target_ops): Adjust.
14504 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14505 * nto-low.c (nto_target_ops): Adjust comment.
14506 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14507 * spu-low.c (spu_target_ops): Adjust comment.
14508 * target.h (target_ops): Rename unprepare_to_access_memory field
14509 to done_accessing_memory.
14510 (unprepare_to_access_memory): Rename to ...
14511 (done_accessing_memory): ... this.
14512
90d74c30
PA
145132010-08-26 Pedro Alves <pedro@codesourcery.com>
14514
14515 * linux-low.c (linux_prepare_to_access_memory): New.
14516 (linux_unprepare_to_access_memory): New.
14517 (linux_target_ops): Install them.
14518 * server.c (read_memory): Rename to ...
14519 (gdb_read_memory): ... this. Use
14520 prepare_to_access_memory/prepare_to_access_memory.
14521 (write_memory): Rename to ...
14522 (gdb_write_memory): ... this. Use
14523 prepare_to_access_memory/prepare_to_access_memory.
14524 (handle_search_memory_1): Adjust.
14525 (process_serial_event): Adjust.
14526 * target.h (struct target_ops): New fields
14527 prepare_to_access_memory and unprepare_to_access_memory.
14528 (prepare_to_access_memory, unprepare_to_access_memory): New.
14529 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14530 prepare_to_access_memory/prepare_to_access_memory.
14531 * nto-low.c (nto_target_ops): Adjust.
14532 * spu-low.c (spu_target_ops): Adjust.
14533 * win32-low.c (win32_target_ops): Adjust.
14534
fd467969
PA
145352010-08-26 Pedro Alves <pedro@codesourcery.com>
14536
14537 * Makefile.in (WARN_CFLAGS): Get it from configure.
14538 (WERROR_CFLAGS): New.
14539 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14540 * configure.ac: Introduce --enable-werror, which adds -Werror to
14541 the compiler command line. Enabled by default. Disable with
14542 --disable-werror. Add -Wdeclaration-after-statement
14543 Wpointer-arith and -Wformat-nonliteral to warning flags.
14544 * configure: Regenerate.
14545
331e2f5f
PA
145462010-08-26 Pedro Alves <pedro@codesourcery.com>
14547
14548 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14549
e581f2b4
PA
145502010-08-26 Pedro Alves <pedro@codesourcery.com>
14551
14552 * gdbreplay.c (remote_error): New.
14553 (gdbchar): New.
14554 (expect): Use gdbchar. Check for error reading from GDB.
14555 Clarify sync error output.
14556 (play): Check for errors writing to GDB.
14557 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14558 * remote-utils.c (getpkt): Check for errors writing to the remote
14559 descriptor.
14560
3c11dd79
PA
145612010-08-25 Pedro Alves <pedro@codesourcery.com>
14562
14563 * linux-low.c (linux_wait_1): Move non-debugging code out of
14564 `debug_threads' control.
14565
d20a8ad9
PA
145662010-08-25 Pedro Alves <pedro@codesourcery.com>
14567
14568 * linux-low.c (linux_wait_1): Don't set last_status here.
14569 * server.c (push_event, queue_stop_reply_callback): Assert we're
14570 not pushing a TARGET_WAITKIND_IGNORE event.
14571 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14572 (myresume, handle_target_event): Set the thread's last_resume_kind
14573 and last_status from the target returned status.
14574
964e4306
PA
145752010-08-25 Pedro Alves <pedro@codesourcery.com>
14576
14577 PR threads/10729
14578
14579 * linux-x86-low.c (update_debug_registers_callback): New.
14580 (i386_dr_low_set_addr): Use it.
14581 (i386_dr_low_get_addr): New.
14582 (i386_dr_low_set_control): Use update_debug_registers_callback.
14583 (i386_dr_low_get_control): New.
14584 (i386_dr_low_get_status): Adjust.
14585 * linux-low.c (linux_stop_lwp): New.
14586 * linux-low.h (linux_stop_lwp): Declare.
14587
14588 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14589 argument instead of a i386_debug_reg_state.
14590 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14591 a i386_debug_reg_state.
14592 (i386_insert_aligned_watchpoint): Adjust.
14593 (i386_remove_aligned_watchpoint): Adjust.
14594 (i386_low_stopped_data_address): Read the debug registers from the
14595 inferior instead of from the mirrors.
14596 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14597 (i386_dr_low_get_addr): Declare.
14598 (i386_dr_low_get_control): Declare.
14599 (i386_dr_low_get_status): Change prototype.
14600
14601 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14602 (i386_dr_low_get_addr): New.
14603 (i386_dr_low_get_control): New.
14604 (i386_dr_low_get_status): Adjust prototype. Return
14605 dr_status_mirror.
14606 (i386_initial_stuff): Clear dr_status_mirror and
14607 dr_control_mirror.
14608 (i386_get_thread_context): Adjust.
14609 (i386_set_thread_context): Adjust.
14610 (i386_thread_added): Adjust.
14611
5f21a75b
PA
146122010-08-24 Pedro Alves <pedro@codesourcery.com>
14613
14614 * linux-low.h (linux_thread_area): Delete declaration.
14615
3e4c1235
TS
146162010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14617
14618 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14619 after its termination.
14620
1971b033
PA
146212010-08-09 Pedro Alves <pedro@codesourcery.com>
14622
14623 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14624 (gdb_wants_all_stopped): Delete.
14625 (linux_wait_1): Don't call them.
14626 * server.c (handle_v_cont): Tag all threads as want-stopped.
14627 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14628 stopped as "client-wants-stopped".
14629
310444ac
PA
146302010-07-31 Pedro Alves <pedro@codesourcery.com>
14631
14632 * Makefile.in (signals_h): New.
14633 (server_h): Depend on it.
14634 (server.o): Don't depend on $(signals_def).
14635 (signals.o): Depend on $(signals_def).
14636
a19cae16
JK
146372010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14638
14639 * Makefile.in (signals_def): New.
14640 (server_h): Append include/gdb/signals.h and signals_def.
14641 (server.o): Append signals_def.
14642
30d50328
JK
146432010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14644
14645 * server.c (handle_target_event): Use target_signal_to_host for
14646 resume_info.sig initialization.
14647 * target.h (struct thread_resume) <sig>: New comment.
14648
5c3216e2
OS
146492010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14650
c6f46ca0
OS
14651 * server.c (handle_query): strcpy() the returned string from paddress()
14652 instead of sprintf().
5c3216e2
OS
14653 * utils.c (paddress): Return phex_nz().
14654
6bd31874
JB
146552010-07-07 Joel Brobecker <brobecker@adacore.com>
14656
14657 * server.c (handle_v_cont): Call mourn_inferior if process
14658 just exited.
14659 (myresume): Likewise.
14660
0fb4aa4b
PA
146612010-07-01 Pedro Alves <pedro@codesourcery.com>
14662
14663 Static tracepoints, and integration with UST.
14664
14665 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14666 * mem-break.c (uninsert_all_breakpoints)
14667 (reinsert_all_breakpoints): New.
14668 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14669 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14670 (gdb_agent_ust_loaded, helper_thread_id)
14671 (gdb_agent_helper_thread_id): New macros.
14672 (struct ipa_sym_addresses): Add addr_ust_loaded,
14673 addr_helper_thread_id, addr_cmd_buf.
14674 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14675 (in_process_agent_loaded_ust): New.
14676 (write_e_ust_not_loaded): New.
14677 (maybe_write_ipa_ust_not_loaded): New.
14678 (struct collect_static_trace_data_action): New.
14679 (enum tracepoint_type) <static_tracepoint>: New.
14680 (struct tracepoint) <handle>: Mention static tracepoints.
14681 (struct static_tracepoint_ctx): New.
14682 (CMD_BUF_SIZE): New.
14683 (add_tracepoint_action): Handle static tracepoint actions.
14684 (unprobe_marker_at): New.
14685 (clear_installed_tracepoints): Handle static tracepoints.
14686 (cmd_qtdp): Handle static tracepoints.
14687 (probe_marker_at): New.
14688 (cmd_qtstart): Handle static tracepoints.
14689 (response_tracepoint): Handle static tracepoints.
14690 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14691 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14692 (get_context_regcache): Handle static tracepoints.
14693 (do_action_at_tracepoint): Handle static tracepoint actions.
14694 (traceframe_find_block_type): Handle static trace data blocks.
14695 (traceframe_read_sdata): New.
14696 (download_tracepoints): Download static tracepoint actions.
14697 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14698 (GDB_PROBE_NAME): New.
14699 (ust_ops): New.
14700 (GET_UST_SYM): New.
14701 (USTF): New.
14702 (dlsym_ust): New.
14703 (ust_marker_to_static_tracepoint): New.
14704 (gdb_probe): New.
14705 (collect_ust_data_at_tracepoint): New.
14706 (gdb_ust_probe): New.
14707 (UNIX_PATH_MAX, SOCK_DIR): New.
14708 (gdb_ust_connect_sync_socket): New.
14709 (resume_thread, stop_thread): New.
14710 (run_inferior_command): New.
14711 (init_named_socket): New.
14712 (gdb_ust_socket_init): New.
14713 (cstr_to_hexstr): New.
14714 (next_st): New.
14715 (first_marker, next_marker): New.
14716 (response_ust_marker): New.
14717 (cmd_qtfstm, cmd_qtsstm): New.
14718 (unprobe_marker_at, probe_marker_at): New.
14719 (cmd_qtstmat, gdb_ust_thread): New.
14720 (gdb_ust_init): New.
14721 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14722 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14723 (ST_REGENTRY): New.
14724 (x86_64_st_collect_regmap): New.
14725 (X86_64_NUM_ST_COLLECT_GREGS): New.
14726 (AMD64_RIP_REGNUM): New.
14727 (supply_static_tracepoint_registers): New.
14728 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14729 (ST_REGENTRY): New.
14730 (i386_st_collect_regmap): New.
14731 (i386_NUM_ST_COLLECT_GREGS): New.
14732 (supply_static_tracepoint_registers): New.
14733 * server.c (handle_query): Handle qXfer:statictrace:read.
14734 <qSupported>: Report support for StaticTracepoints, and
14735 qXfer:statictrace:read features.
14736 * server.h (traceframe_read_sdata)
14737 (supply_static_tracepoint_registers): Declare.
14738 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14739 (unpack_varlen_hex): Include in IPA build.
14740 * Makefile.in (ustlibs, ustinc): New.
14741 (IPA_OBJS): Add remote-utils-ipa.o.
14742 ($(IPA_LIB)): Link -ldl and -lpthread.
14743 (UST_CFLAGS): New.
14744 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14745 * config.in, configure: Regenerate.
14746
9e4344e5
PA
147472010-06-20 Ian Lance Taylor <iant@google.com>
14748 Pedro Alves <pedro@codesourcery.com>
14749
14750 * linux-x86-low.c (always_true): Delete.
14751 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14752 trying to fool the compiler with always_true.
14753
c6beb2cb
PA
147542010-06-20 Pedro Alves <pedro@codesourcery.com>
14755
14756 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14757 conditions in gdbserver.
14758
d2ed6730
UW
147592010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14760
14761 * spu-low.c (spu_read_memory): Wrap around local store limit.
14762 (spu_write_memory): Likewise.
14763
4e29fb54
PA
147642010-06-15 Pedro Alves <pedro@codesourcery.com>
14765
14766 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14767 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14768 LONGEST uses.
14769 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14770 uses.
14771 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14772 uses with LONGEST uses.
14773
6a271cae
PA
147742010-06-14 Stan Shebs <stan@codesourcery.com>
14775 Pedro Alves <pedro@codesourcery.com>
14776
14777 Bytecode compiler.
14778
14779 * linux-x86-low.c: Include limits.h.
14780 (add_insns): New.
14781 (always_true): New.
14782 (EMIT_ASM): New.
14783 (EMIT_ASM32): New.
14784 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14785 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14786 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14787 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14788 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14789 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14790 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14791 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14792 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14793 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14794 (amd64_emit_void_call_2): New.
14795 (amd64_emit_ops): New.
14796 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14797 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14798 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14799 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14800 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14801 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14802 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14803 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14804 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14805 (i386_emit_stack_adjust, i386_emit_int_call_1)
14806 (i386_emit_void_call_2): New.
14807 (i386_emit_ops): New.
14808 (x86_emit_ops): New.
14809 (the_low_target): Install x86_emit_ops.
14810 * server.h (struct emit_ops): New.
14811 (get_raw_reg_func_addr): Declare.
14812 (current_insn_ptr, emit_error): Declare.
14813 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14814 (set_trace_state_variable_value): New defines.
14815 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14816 addr_get_trace_state_variable_value and
14817 addr_set_trace_state_variable_value.
14818 (symbol_list): New fields for get_raw_reg,
14819 get_trace_state_variable_value and set_trace_state_variable_value.
14820 (condfn): New typedef.
14821 (struct tracepoint): New field `compiled_cond'.
14822 (do_action_at_tracepoint): Clear compiled_cond.
14823 (get_trace_state_variable_value, set_trace_state_variable_value):
14824 Export in the IPA.
14825 (condition_true_at_tracepoint): If there's a compiled condition,
14826 run that.
14827 (current_insn_ptr, emit_error): New globals.
14828 (struct bytecode_address): New.
14829 (get_raw_reg_func_addr): New.
14830 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14831 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14832 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14833 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14834 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14835 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14836 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14837 (compile_tracepoint_condition, compile_bytecodes): New.
14838 * target.h (emit_ops): Forward declare.
14839 (struct target_ops): New field emit_ops.
14840 (target_emit_ops): New.
14841 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14842 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14843 * linux-low.c (linux_emit_ops): New.
14844 (linux_target_ops): Install it.
14845 * linux-low.h (struct linux_target_ops): New field emit_ops.
14846
92b72907
UW
148472010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14848
14849 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14850 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14851
fa593d66
PA
148522010-06-01 Pedro Alves <pedro@codesourcery.com>
14853 Stan Shebs <stan@codesourcery.com>
14854
14855 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14856 (all): Depend on $(extra_libraries).
14857 (install-only): Install the IPA.
14858 (IPA_OBJS, IPA_LIB): New.
14859 (clean): Remove the IPA lib.
14860 (IPAGENT_CFLAGS): New.
14861 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14862 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14863 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14864 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14865 * configure.ac: Check for atomic builtins support in the compiler.
14866 (IPA_DEPFILES, extra_libraries): Define.
14867 * configure.srv (ipa_obj): Add description.
14868 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14869 (i[34567]86-*-linux*): Set ipa_obj.
14870 (x86_64-*-linux*): Set ipa_obj.
14871 * linux-low.c (stabilizing_threads): New.
14872 (supports_fast_tracepoints): New.
14873 (linux_detach): Stabilize threads before detaching.
14874 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14875 the lwp is either not stabilizing, or is moving out of a jump pad.
14876 (linux_fast_tracepoint_collecting): New.
14877 (maybe_move_out_of_jump_pad): New.
14878 (enqueue_one_deferred_signal): New.
14879 (dequeue_one_deferred_signal): New.
14880 (linux_wait_for_event_1): If moving out of a jump pad, defer
14881 pending signals to later.
14882 (linux_stabilize_threads): New.
14883 (linux_wait_1): Check if threads need moving out of jump pads, and
14884 do it if so.
14885 (stuck_in_jump_pad_callback): New.
14886 (move_out_of_jump_pad_callback): New.
14887 (lwp_running): New.
14888 (linux_resume_one_lwp): Handle moving out of jump pads.
14889 (linux_set_resume_request): Dequeue deferred signals.
14890 (need_step_over_p): Also step over fast tracepoint jumps.
14891 (start_step_over): Also uninsert fast tracepoint jumps.
14892 (finish_step_over): Also reinsert fast tracepoint jumps.
14893 (linux_install_fast_tracepoint_jump): New.
14894 (linux_target_ops): Install linux_stabilize_threads and
14895 linux_install_fast_tracepoint_jump_pad.
14896 * linux-low.h (linux_target_ops) <get_thread_area,
14897 install_fast_tracepoint_jump_pad>: New fields.
14898 (struct lwp_info) <collecting_fast_tracepoint,
14899 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14900 (linux_get_thread_area): Declare.
14901 * linux-x86-low.c (jump_insn): New.
14902 (x86_get_thread_area): New.
14903 (append_insns): New.
14904 (push_opcode): New.
14905 (amd64_install_fast_tracepoint_jump_pad): New.
14906 (i386_install_fast_tracepoint_jump_pad): New.
14907 (x86_install_fast_tracepoint_jump_pad): New.
14908 (the_low_target): Install x86_get_thread_area and
14909 x86_install_fast_tracepoint_jump_pad.
14910 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14911 (struct fast_tracepoint_jump): New.
14912 (fast_tracepoint_jump_insn): New.
14913 (fast_tracepoint_jump_shadow): New.
14914 (find_fast_tracepoint_jump_at): New.
14915 (fast_tracepoint_jump_here): New.
14916 (delete_fast_tracepoint_jump): New.
14917 (set_fast_tracepoint_jump): New.
14918 (uninsert_fast_tracepoint_jumps_at): New.
14919 (reinsert_fast_tracepoint_jumps_at): New.
14920 (set_breakpoint_at): Use write_inferior_memory.
14921 (uninsert_raw_breakpoint): Use write_inferior_memory.
14922 (check_mem_read): Mask out fast tracepoint jumps.
14923 (check_mem_write): Mask out fast tracepoint jumps.
14924 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14925 (set_fast_tracepoint_jump): Declare.
14926 (delete_fast_tracepoint_jump)
14927 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14928 (reinsert_fast_tracepoint_jumps_at): Declare.
14929 * regcache.c: Don't compile many functions when building the
14930 in-process agent library.
14931 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14932 the register buffer in the heap.
14933 (free_register_cache): If the register buffer isn't owned by the
14934 regcache, don't free it.
14935 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14936 pre-existing register caches.
14937 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14938 type.
14939 (convert_ascii_to_int): : Constify `from' parameter type.
14940 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14941 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14942 the needed buffer in-place.
14943 (relocate_instruction): New.
14944 * server.c (handle_query) <qSymbols>: If the target supports
14945 tracepoints, give it a chance of looking up symbols. Report
14946 support for fast tracepoints.
14947 (handle_status): Stabilize threads.
14948 (process_serial_event): Adjust.
14949 * server.h (struct fast_tracepoint_jump): Forward declare.
14950 (struct process_info) <fast_tracepoint_jumps>: New field.
14951 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14952 (decode_X_packet, decode_M_packet): Adjust.
14953 (relocate_instruction): Declare.
14954 (in_process_agent_loaded): Declare.
14955 (tracepoint_look_up_symbols): Declare.
14956 (struct fast_tpoint_collect_status): Declare.
14957 (fast_tracepoint_collecting): Declare.
14958 (force_unlock_trace_buffer): Declare.
14959 (handle_tracepoint_bkpts): Declare.
14960 (initialize_low_tracepoint)
14961 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14962 * target.h (struct target_ops) <stabilize_threads,
14963 install_fast_tracepoint_jump_pad>: New fields.
14964 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14965 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14966 [HAVE_STDINT_H]: Include stdint.h.
14967 (trace_debug_1): Rename to ...
14968 (trace_vdebug): ... this.
14969 (trace_debug): Rename to ...
14970 (trace_debug_1): ... this. Add `level' parameter.
14971 (trace_debug): New.
14972 (ATTR_USED, ATTR_NOINLINE): New.
14973 (IP_AGENT_EXPORT): New.
14974 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
14975 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
14976 (about_to_request_buffer_space, trace_buffer_is_full)
14977 (stopping_tracepoint, expr_eval_result, error_tracepoint)
14978 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
14979 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
14980 (traceframe_write_count, traceframes_created)
14981 (trace_state_variables)
14982 New renaming defines.
14983 (struct ipa_sym_addresses): New.
14984 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14985 (symbol_list): New.
14986 (ipa_sym_addrs): New.
14987 (all_tracepoint_symbols_looked_up): New.
14988 (in_process_agent_loaded): New.
14989 (write_e_ipa_not_loaded): New.
14990 (maybe_write_ipa_not_loaded): New.
14991 (tracepoint_look_up_symbols): New.
14992 (debug_threads) [IN_PROCESS_AGENT]: New.
14993 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14994 (UNKNOWN_SIDE_EFFECTS): New.
14995 (stop_tracing): New.
14996 (flush_trace_buffer): New.
14997 (stop_tracing_bkpt): New.
14998 (flush_trace_buffer_bkpt): New.
14999 (read_inferior_integer): New.
15000 (read_inferior_uinteger): New.
15001 (read_inferior_data_pointer): New.
15002 (write_inferior_data_pointer): New.
15003 (write_inferior_integer): New.
15004 (write_inferior_uinteger): New.
15005 (struct collect_static_trace_data_action): Delete.
15006 (enum tracepoint_type): New.
15007 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
15008 <actions_str, step_actions, step_actions_str>: Only include in
15009 GDBserver.
fa593d66
PA
15010 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15011 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15012 (tracepoints): Use IP_AGENT_EXPORT.
15013 (last_tracepoint): Don't include in the IPA.
15014 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15015 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15016 (alloced_trace_state_variables): New.
15017 (trace_state_variables): Use IP_AGENT_EXPORT.
15018 (traceframe_t): Delete unused variable.
15019 (circular_trace_buffer): Don't include in the IPA.
15020 (trace_buffer_start): Delete.
15021 (struct trace_buffer_control): New.
15022 (trace_buffer_free): Delete.
15023 (struct ipa_trace_buffer_control): New.
15024 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15025 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15026 New.
15027 (trace_buffer_ctrl): New.
15028 (TRACE_BUFFER_CTRL_CURR): New.
15029 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15030 Reimplement as macros.
15031 (trace_buffer_wrap): Delete.
15032 (traceframe_write_count, traceframe_read_count)
15033 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15034 (struct tracepoint_hit_ctx) <type>: New field.
15035 (struct fast_tracepoint_ctx): New.
15036 (memory_barrier): New.
15037 (cmpxchg): New.
15038 (record_tracepoint_error): Update atomically in the IPA.
15039 (clear_inferior_trace_buffer): New.
15040 (about_to_request_buffer_space): New.
15041 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15042 updating the same buffer.
15043 (add_tracepoint): Default the tracepoint's type to trap
15044 tracepoint, and orig_size to -1.
15045 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15046 internal variables.
15047 (create_trace_state_variable): New parameter `gdb'. Handle it.
15048 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15049 (cmd_qtdp): Handle fast tracepoints.
15050 (cmd_qtdv): Adjust.
15051 (max_jump_pad_size): New.
15052 (gdb_jump_pad_head): New.
15053 (get_jump_space_head): New.
15054 (claim_jump_space): New.
15055 (sort_tracepoints): New.
15056 (MAX_JUMP_SIZE): New.
15057 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15058 IPA.
15059 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15060 support. Upload fast traceframes, and delete internal IPA
15061 breakpoints.
15062 (stop_tracing_handler): New.
15063 (flush_trace_buffer_handler): New.
15064 (cmd_qtstop): Upload fast tracepoints.
15065 (response_tracepoint): Handle fast tracepoints.
15066 (tracepoint_finished_step): Upload fast traceframes. Set the
15067 tracepoint hit context's tracepoint type.
15068 (handle_tracepoint_bkpts): New.
15069 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15070 type. Add comment about fast tracepoints.
15071 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15072 non-existing action_str field.
15073 (get_context_regcache): Handle fast tracepoints.
15074 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15075 to the regcache.
15076 (fast_tracepoint_from_jump_pad_address): New.
15077 (fast_tracepoint_from_ipa_tpoint_address): New.
15078 (collecting_t): New.
15079 (force_unlock_trace_buffer): New.
15080 (fast_tracepoint_collecting): New.
15081 (collecting): New.
15082 (gdb_collect): New.
15083 (write_inferior_data_ptr): New.
15084 (target_tp_heap): New.
15085 (target_malloc): New.
15086 (download_agent_expr): New.
15087 (UALIGN): New.
15088 (download_tracepoints): New.
15089 (download_trace_state_variables): New.
15090 (upload_fast_traceframes): New.
15091 (IPA_FIRST_TRACEFRAME): New.
15092 (IPA_NEXT_TRACEFRAME_1): New.
15093 (IPA_NEXT_TRACEFRAME): New.
15094 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15095 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15096 (gdb_jump_pad_buffer_end): New.
15097 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15098 (initialize_tracepoint): Adjust.
15099 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15100 buffer. Initialize the low module.
15101 * utils.c (PREFIX, TOOLNAME): New.
15102 (malloc_failure): Use PREFIX.
15103 (error): In the IPA, an error causes an exit.
15104 (fatal, warning): Use PREFIX.
15105 (internal_error): Use TOOLNAME.
15106 (NUMCELLS): Increase to 10.
15107 * configure, config.in: Regenerate.
15108
d149dd1d
PA
151092010-06-01 Pedro Alves <pedro@codesourcery.com>
15110
15111 * server.c (handle_query) <qSupported>: Do two passes over the
15112 qSupported string to avoid nesting strtok.
15113
f6528abd
JK
151142010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15115
15116 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15117 (CDEPS): New.
15118 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15119 -Wl,--dynamic-list.
15120 * configure: Regenerate.
15121 * proc-service.list: New.
15122
ca2a87a0
JK
151232010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15124
15125 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15126 New comment.
15127
363a6e9f
OS
151282010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15129
15130 * gdbreplay.c (remote_open): Check error return from socket() call by
15131 its equality to -1 not by it being negative.
15132 * remote-utils.c (remote_open): Likewise.
15133
d23b6cb1
PA
151342010-05-23 Pedro Alves <pedro@codesourcery.com>
15135
15136 * config.h: Regenerate.
15137
28d3cf85
MK
151382010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15139
15140 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15141 doesn't provide PTRACE_GET_THREAD_AREA.
15142
fea36a59
MK
151432010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15144
15145 * linux-m68k-low.c: Include <asm/ptrace.h>
15146 (ps_get_thread_area): Implement.
15147
24b066ba
DE
151482010-05-03 Doug Evans <dje@google.com>
15149
15150 * event-loop.c (struct callback_event): New struct.
15151 (callback_list): New global.
15152 (append_callback_event, delete_callback_event): New functions.
15153 (process_callback): New function.
15154 (start_event_loop): Call it.
15155 * remote-utils.c (NOT_SCHEDULED): Define.
15156 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15157 moved out of readchar.
15158 (readchar): Rewrite. Call reschedule before returning.
15159 (reset_readchar): New function.
15160 (remote_close): Call it.
15161 (process_remaining, reschedule): New functions.
15162 * server.h (callback_handler_func): New typedef.
15163 (append_callback_event, delete_callback_event): Declare.
15164
9836d6ea
PA
151652010-05-03 Pedro Alves <pedro@codesourcery.com>
15166
15167 * proc-service.c (ps_pglobal_lookup): Use
15168 thread_db_look_up_one_symbol.
15169 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15170 parameter. Use it instead of all_symbols_looked_up.
15171 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15172 field.
15173 (all_symbols_looked_up): Don't declare.
15174 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15175 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15176 field.
15177 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15178 Set all_symbols_looked_up here.
15179 (thread_db_look_up_one_symbol): New.
15180 (thread_db_get_tls_address): Adjust.
15181 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15182 thread_db object on the heap, and tentatively set it in the
15183 process structure.
15184 (thread_db_init): Don't set all_symbols_looked_up here.
15185 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15186
7984d532
PA
151872010-05-03 Pedro Alves <pedro@codesourcery.com>
15188
15189 * linux-low.c (linux_kill, linux_detach): Adjust.
15190 (status_pending_p_callback): Remove redundant statement. Check
15191 for !TARGET_WAITIKIND_IGNORE, instead of
15192 TARGET_WAITKIND_STOPPED.
15193 (handle_tracepoints): Make sure LWP is locked. Adjust.
15194 (linux_wait_for_event_1): Adjust.
15195 (linux_cancel_breakpoints): New.
15196 (unsuspend_one_lwp): New.
15197 (unsuspend_all_lwps): New.
15198 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15199 (send_sigstop_callback): Change return type to int, add new
15200 `except' parameter and handle it.
15201 (suspend_and_send_sigstop_callback): New.
15202 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15203 pass them down. If SUSPEND, also increment the lwp's suspend
15204 count.
15205 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15206 (need_step_over_p): Don't consider suspended LWPs.
15207 (start_step_over): Adjust.
15208 (proceed_one_lwp): Change return type to int, add new `except'
15209 parameter and handle it.
15210 (unsuspend_and_proceed_one_lwp): New.
15211 (proceed_all_lwps): Use find_inferior instead of
15212 for_each_inferior.
15213 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15214 also decrement the suspend count of LWPs. Pass `except' down,
15215 instead of hacking its suspend count.
15216 (linux_pause_all): Add `freeze' parameter. Adjust.
15217 (linux_unpause_all): New.
15218 (linux_target_ops): Install linux_unpause_all.
15219 * server.c (handle_status): Adjust.
15220 * target.h (struct target_ops): New fields `unpause_all' and
15221 `cancel_breakpoints'. Add new parameter to `pause_all'.
15222 (pause_all): Add new `freeze' parameter.
15223 (unpause_all): New.
15224 (cancel_breakpoints): New.
15225 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15226 cancel breakpoints.
15227 (cmd_qtstart): Pause threads.
15228 (stop_tracing): Pause threads, and cancel breakpoints.
15229 * win32-low.c (win32_target_ops): Adjust.
15230
e471f25b
PA
152312010-05-03 Pedro Alves <pedro@codesourcery.com>
15232
15233 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15234 the inferior right away from here...
15235 (linux_wait_1): ... to here, and adjust to check the thread's
15236 last_resume_kind instead of the lwp's step or stop_expected flags.
15237
1915ef4f
PA
152382010-05-02 Pedro Alves <pedro@codesourcery.com>
15239
15240 * README: Use consistent `GDB' and `GDBserver' spellings.
15241
f9e39928
PA
152422010-05-02 Pedro Alves <pedro@codesourcery.com>
15243
15244 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15245 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15246 (linux_detach_one_lwp): Assume the lwp is stopped.
15247 (any_thread_of): Delete.
15248 (linux_detach): Stop all lwps here. Don't blindly delete all
15249 breakpoints.
15250 (delete_lwp_callback): New.
15251 (linux_mourn): Delete all lwps of the process that is gone.
15252 (linux_wait_1): Don't delete the last lwp of the process here.
15253 * mem-break.h (mark_breakpoints_out): Declare.
15254 * mem-break.c (mark_breakpoints_out): New.
15255 (free_all_breakpoints): Use it.
15256 * server.c (handle_target_event): If the process is gone, mark
15257 breakpoints out.
15258 * thread-db.c (struct thread_db) <create_bp>: New field.
15259 (thread_db_enable_reporting): Fix prototype. Store a thread event
15260 breakpoint reference in the thread_db struct.
15261 (thread_db_load_search): Clear the thread_db object.
15262 (try_thread_db_load_1): Ditto.
15263 (switch_to_process): New.
15264 (disable_thread_event_reporting): Use it.
15265 (remove_thread_event_breakpoints): New.
15266 (thread_db_detach, thread_db_mourn): Use it.
15267
1e7fc18c
PA
152682010-05-01 Pedro Alves <pedro@codesourcery.com>
15269
15270 * linux-low.c (linux_enable_event_reporting): New.
15271 (linux_wait_for_event_1, handle_extended_wait): Use it.
15272
02fc4de7
PA
152732010-04-30 Pedro Alves <pedro@codesourcery.com>
15274
15275 * linux-low.c (linux_kill_one_lwp, linux_kill)
15276 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15277 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15278 SIGSTOP even if the LWP is stopped.
15279 (send_sigstop_callback): New.
15280 (stop_all_lwps): Use send_sigstop_callback instead.
15281 (linux_resume_one_thread): Adjust.
15282 (proceed_one_lwp): Still proceed an LWP that the client has
15283 requested to stop, if we haven't reported it as stopped yet. Make
15284 sure that LWPs the client want stopped, have a pending SIGSTOP.
15285
bc3b5632
DE
152862010-04-26 Doug Evans <dje@google.com>
15287
ae1ada35
DE
15288 * server.c (handle_general_set): Make static.
15289
bc3b5632
DE
15290 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15291 Print received char after testing for error/eof instead of before.
15292 (input_interrupt): Tweak comment.
15293
65730243
DE
152942010-04-23 Doug Evans <dje@google.com>
15295
15296 * server.c (start_inferior): Print inferior argv if --debug.
15297
a8ae7dc0
AR
152982010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15299
15300 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15301 * nto-x86-low.c: Include server.h
15302
1c07cc19
PM
153032010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15304
15305 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15306 be consistent with other sources of this directory.
15307 (init_registers_amd64): Correct name of source file of this function
15308 in the comment.
15309
e0a61e09
PM
153102010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15311
15312 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15313 64-bit executables.
15314
54709339
PM
153152010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15316
15317 * win32-i386-low.c: Add 64-bit support.
15318 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15319 (init_registers_amd64): Declare.
15320 (mappings): Add 64-bit version of array.
15321 (init_windows_x86): New function.
15322 (the_low_target): Change init_arch field to init_windows_x86.
15323
e8f0053d
PM
153242010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15325
15326 * win32-low.c: Adapt to support also 64-bit architecture.
15327 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15328 (get_image_name): Use SIZE_T type for local variable `done'.
15329 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15330 (toolhelp_get_dll_name): Idem.
15331 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15332 Use uintptr_t typecast to avoid warning.
15333 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15334 (handle_exception): Use phex_nz to avoid warning.
15335 (win32_wait): Remove unused local variable `process'.
15336
c481e77e
PM
153372010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15338
15339 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15340 `amd64-avx.o'.
15341
12ea4b69
PM
153422010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15343
15344 * configure.ac: Use `ws2_32' library for srv_mingw.
15345 * configure: Regenerate.
15346 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15347 * remote-utils.c: Likewise.
15348
f6d1620c
L
153492010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15350
15351 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15352 if __x86_64__ is defined.
15353
8e642873
PM
153542010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15355
15356 * configure: Regenerate.
15357
711e434b
PM
153582010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15359
15360 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15361 * target.h (target_ops): New get_tib_address field.
15362 * win32-low.h (win32_thread_info): Add thread_local_base field.
15363 * win32-low.c (child_add_thread): Add tlb argument.
15364 Set thread_local_base field to TLB.
15365 (get_child_debug_event): Adapt to child_add_thread change.
15366 (win32_get_tib_address): New function.
15367 (win32_target_ops): Set get_tib_address field to
15368 win32_get_tib_address.
15369 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15370
505106cd
PA
153712010-04-12 Pedro Alves <pedro@codesourcery.com>
15372
505106cd
PA
15373 * linux-low.c (linux_mourn): Also remove the process.
15374 * server.c (handle_target_event): Don't remove the process here.
15375 * nto-low.c (nto_mourn): New.
15376 (nto_target_ops): Install it.
15377 * spu-low.c (spu_mourn): New.
15378 (spu_target_ops): Install it.
15379 * win32-low.c (win32_mourn): New.
15380 (win32_target_ops): Install it.
15381
e8470a06
PA
153822010-04-12 Pedro Alves <pedro@codesourcery.com>
15383
15384 * server.h (buffer_xml_printf): Remove redundant `;'.
15385
45ba0d02
PA
153862010-04-12 Pedro Alves <pedro@codesourcery.com>
15387
15388 * regcache.c (set_register_cache): Invalidate regcaches before
15389 changing the register cache layout.
15390 (regcache_invalidate_one): Allow a NULL regcache.
15391 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15392 regcaches before changing the register cache layout or the target
15393 regsets.
15394
59e04013
L
153952010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15396
15397 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15398 variable warning on Linux/x86-64.
15399
8336d594
PA
154002010-04-11 Pedro Alves <pedro@codesourcery.com>
15401
15402 GDBserver disconnected tracing support.
15403
15404 * linux-low.c (linux_remove_process): Delete.
15405 (add_lwp): Don't set last_resume_kind here.
15406 (linux_kill): Use `mourn'.
15407 (linux_detach): Use `thread_db_detach', and `mourn'.
15408 (linux_mourn): New.
15409 (linux_attach_lwp_1): Adjust comment.
15410 (linux_attach): last_resume_kind moved the thread_info; adjust.
15411 (status_pending_p_callback): Adjust.
15412 (linux_wait_for_event_1): Adjust.
15413 (count_events_callback, select_singlestep_lwp_callback)
15414 (select_event_lwp_callback, cancel_breakpoints_callback)
15415 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15416 (proceed_one_lwp): Adjust.
15417 (linux_async): Add debug output.
15418 (linux_thread_stopped): New.
15419 (linux_pause_all): New.
15420 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15421 linux_pause_all.
15422 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15423 (thread_db_free): Delete declaration.
15424 (thread_db_detach, thread_db_mourn): Declare.
15425 * thread-db.c (thread_db_init): Use thread_db_mourn.
15426 (thread_db_free): Delete, split in two.
15427 (disable_thread_event_reporting): New.
15428 (thread_db_detach): New.
15429 (thread_db_mourn): New.
15430
15431 * server.h (struct thread_info) <last_resume_kind>: New field.
15432 <attached>: Add comment.
15433 <gdb_detached>: New field.
15434 (handler_func): Change return type to int.
15435 (handle_serial_event, handle_target_event): Ditto.
15436 (gdb_connected): Declare.
15437 (tracing): Delete.
15438 (disconnected_tracing): Declare.
15439 (stop_tracing): Declare.
15440
15441 * server.c (handle_query) <qSupported>: Report support for
15442 disconnected tracing.
15443 (queue_stop_reply_callback): Account for running threads.
15444 (gdb_wants_thread_stopped): New.
15445 (gdb_wants_all_threads_stopped): New.
15446 (gdb_reattached_process): New.
15447 (handle_status): Clear the `gdb_detached' flag of all processes.
15448 In all-stop, stop all threads.
15449 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15450 (process_serial_event): If the remote connection breaks, or if an
15451 exit was forced with "monitor exit", force an event loop exit.
15452 Handle disconnected tracing on detach.
15453 (handle_serial_event): Adjust.
15454 (handle_target_event): If GDB isn't connected, forward events back
15455 to the inferior, unless the last process exited, in which case,
15456 exit gdbserver. Adjust interface.
15457
15458 * remote-utils.c (remote_open): Don't block in accept. Instead
15459 register an event loop source on the listen socket file
15460 descriptor. Refactor bits into ...
15461 (listen_desc): ... this new global.
15462 (gdb_connected): ... this new function.
15463 (enable_async_notification): ... this new function.
15464 (handle_accept_event): ... this new function.
15465 (remote_close): Clear remote_desc.
15466
15467 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15468
15469 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15470 New fields.
15471 (mourn_inferior): Define.
15472 (target_process_qsupported): Avoid the dangling else problem.
15473 (thread_stopped): Define.
15474 (pause_all): Define.
15475 (target_waitstatus_to_string): Declare.
15476 * target.c (target_waitstatus_to_string): New.
15477
15478 * tracepoint.c (tracing): Make extern.
15479 (disconnected_tracing): New.
15480 (stop_tracing): Make extern. Handle tracing stops due to GDB
15481 disconnecting.
15482 (cmd_qtdisconnected): New.
15483 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15484 (handle_tracepoint_general_set): Handle QTDisconnected.
15485
15486 * event-loop.c (event_handler_func): Change return type to int.
15487 (process_event): Bail out if the event handler wants the event
15488 loop to stop.
15489 (handle_file_event): Ditto.
15490 (start_event_loop): Bail out if the event handler wants the event
15491 loop to stop.
15492
15493 * nto-low.c (nto_target_ops): Adjust.
15494 * spu-low.c (spu_wait): Don't remove the process here.
15495 (spu_target_ops): Adjust.
15496 * win32-low.c (win32_wait): Don't remove the process here.
15497 (win32_target_ops): Adjust.
15498
5d267c4c
PA
154992010-04-11 Pedro Alves <pedro@codesourcery.com>
15500
15501 * regcache.c (realloc_register_cache): Invalidate inferior's
15502 regcache before recreating it.
15503
623ccd72
PA
155042010-04-09 Pedro Alves <pedro@codesourcery.com>
15505
15506 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15507
219f2f23
PA
155082010-04-09 Stan Shebs <stan@codesourcery.com>
15509 Pedro Alves <pedro@codesourcery.com>
15510
15511 * server.h (LONGEST): New.
15512 (struct thread_info) <while_stepping>: New field.
15513 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15514 Declare.
15515 (initialize_tracepoint, handle_tracepoint_general_set)
15516 (handle_tracepoint_query, tracepoint_finished_step)
15517 (tracepoint_was_hit, release_while_stepping_state_list):
15518 (current_traceframe): Declare.
15519 * server.c (handle_general_set): Handle tracepoint packets.
15520 (read_memory): New.
15521 (write_memory): New.
15522 (handle_search_memory_1): Use read_memory.
15523 (handle_query): Report support for conditional tracepoints, trace
15524 state variables, and tracepoint sources. Handle tracepoint
15525 queries.
15526 (main): Initialize the tracepoints module.
15527 (process_serial_event): Handle traceframe reads/writes.
15528
15529 * linux-low.c (handle_tracepoints): New.
15530 (linux_wait_1): Call it.
15531 (linux_resume_one_lwp): Handle while-stepping.
15532 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15533 (linux_target_ops): Install them.
15534 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15535 New field.
15536 * linux-x86-low.c (x86_supports_tracepoints): New.
15537 (the_low_target). Install it.
15538
15539 * mem-break.h (delete_breakpoint): Declare.
15540 * mem-break.c (delete_breakpoint): Make external.
15541
15542 * target.h (struct target_ops): Add `supports_tracepoints',
15543 `read_pc', and `write_pc' fields.
15544 (target_supports_tracepoints): Define.
15545 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15546 (phex_nz): New.
15547
15548 * regcache.h (struct regcache) <registers_owned>: New field.
15549 (init_register_cache, regcache_cpy): Declare.
15550 (regcache_read_pc, regcache_write_pc): Declare.
15551 (register_cache_size): Declare.
15552 (supply_regblock): Declare.
15553 * regcache.c (init_register_cache): New.
15554 (new_register_cache): Use it.
15555 (regcache_cpy): New.
15556 (register_cache_size): New.
15557 (supply_regblock): New.
15558 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 15559
219f2f23
PA
15560 * tracepoint.c: New.
15561
15562 * Makefile.in (OBS): Add tracepoint.o.
15563 (tracepoint.o): New rule.
15564
3a13a53b
L
155652010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15566
15567 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15568 (i386-mmx.o): New.
15569 (i386-mmx.c): Likewise.
15570 (i386-mmx-linux.o): Likewise.
15571 (i386-mmx-linux.c): Likewise.
15572
15573 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15574 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15575 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15576 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15577
15578 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15579 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15580 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15581
1570b33e
L
155822010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15583
15584 * Makefile.in (clean): Updated.
15585 (i386-avx.o): New.
15586 (i386-avx.c): Likewise.
15587 (i386-avx-linux.o): Likewise.
15588 (i386-avx-linux.c): Likewise.
15589 (amd64-avx.o): Likewise.
15590 (amd64-avx.c): Likewise.
15591 (amd64-avx-linux.o): Likewise.
15592 (amd64-avx-linux.c): Likewise.
15593
15594 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15595 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15596 (srv_amd64_regobj): Add amd64-avx.o.
15597 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15598 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15599 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15600 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15601 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15602 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15603 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15604
15605 * i387-fp.c: Include "i386-xstate.h".
15606 (i387_xsave): New.
15607 (i387_cache_to_xsave): Likewise.
15608 (i387_xsave_to_cache): Likewise.
15609 (x86_xcr0): Likewise.
15610
15611 * i387-fp.h (i387_cache_to_xsave): Likewise.
15612 (i387_xsave_to_cache): Likewise.
15613 (x86_xcr0): Likewise.
15614
15615 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15616 * linux-crisv32-low.c (target_regsets): Likewise.
15617 * linux-m68k-low.c (target_regsets): Likewise.
15618 * linux-mips-low.c (target_regsets): Likewise.
15619 * linux-ppc-low.c (target_regsets): Likewise.
15620 * linux-s390-low.c (target_regsets): Likewise.
15621 * linux-sh-low.c (target_regsets): Likewise.
15622 * linux-sparc-low.c (target_regsets): Likewise.
15623 * linux-xtensa-low.c (target_regsets): Likewise.
15624
15625 * linux-low.c: Include <sys/uio.h>.
15626 (regsets_fetch_inferior_registers): Support nt_type.
15627 (regsets_store_inferior_registers): Likewise.
15628 (linux_process_qsupported): New.
15629 (linux_target_ops): Add linux_process_qsupported.
15630
15631 * linux-low.h (regset_info): Add nt_type.
15632 (linux_target_ops): Add process_qsupported.
15633
15634 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15635 and <sys/uio.h>.
15636 (init_registers_i386_avx_linux): New.
15637 (init_registers_amd64_avx_linux): Likewise.
15638 (xmltarget_i386_linux_no_xml): Likewise.
15639 (xmltarget_amd64_linux_no_xml): Likewise.
15640 (PTRACE_GETREGSET): Likewise.
15641 (PTRACE_SETREGSET): Likewise.
15642 (x86_fill_xstateregset): Likewise.
15643 (x86_store_xstateregset): Likewise.
15644 (use_xml): Likewise.
15645 (x86_linux_update_xmltarget): Likewise.
15646 (x86_linux_process_qsupported): Likewise.
15647 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15648 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15649 init_registers_i386_linux here. Call
15650 x86_linux_update_xmltarget.
15651 (the_low_target): Add x86_linux_process_qsupported.
15652
15653 * server.c (handle_query): Call target_process_qsupported.
15654
15655 * target.h (target_ops): Add process_qsupported.
15656 (target_process_qsupported): New.
15657
fc7238bb
PA
156582010-04-03 Pedro Alves <pedro@codesourcery.com>
15659
15660 * inferiors.c (add_thread): Set last_status kind to
15661 TARGET_WAITKIND_IGNORE.
15662 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15663 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15664 (linux_wait_1): Move `thread' local definition to block that uses
15665 it. Don't NULL initialize `event_child'.
15666 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15667 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15668 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15669
bdabb078
PA
156702010-04-01 Pedro Alves <pedro@codesourcery.com>
15671
15672 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15673 an extended waitstatus, or by a watchpoint.
15674 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15675 thread was stepping or has been stopped by a watchpoint.
15676
d3bbe7a0
PA
156772010-04-01 Pedro Alves <pedro@codesourcery.com>
15678
15679 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15680 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15681 of another, then delete the previous, and validate all
15682 breakpoints.
15683 (validate_inserted_breakpoint): New.
15684 (delete_disabled_breakpoints): New.
15685 (validate_breakpoints): New.
15686 (check_mem_read): Validate breakpoints before trusting their
15687 shadow. Delete disabled breakpoints.
15688 (check_mem_write): Validate breakpoints before trusting they
15689 should be inserted. Delete disabled breakpoints.
15690 * mem-break.h (validate_breakpoints):
15691 * server.c (handle_query): Validate breakpoints when we see a
15692 qSymbol query.
15693
8b07ae33
PA
156942010-04-01 Pedro Alves <pedro@codesourcery.com>
15695
15696 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15697 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15698 if we could tell there's a GDB breakpoint at stop_pc.
15699 (need_step_over_p): Don't do a step over if we find a GDB
15700 breakpoint at the resume PC.
15701
15702 * mem-break.c (struct raw_breakpoint): New.
15703 (enum bkpt_type): New type `gdb_breakpoint'.
15704 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15705 fields. New field `raw'.
15706 (find_raw_breakpoint_at): New.
15707 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15708 breakpoint instead.
15709 (set_breakpoint_at): Adjust.
15710 (delete_raw_breakpoint): New.
15711 (release_breakpoint): New.
15712 (delete_breakpoint): Rename to...
15713 (delete_breakpoint_1): ... this. Add proc parameter. Use
15714 release_breakpoint. Return ENOENT.
15715 (delete_breakpoint): Reimplement.
15716 (find_breakpoint_at): Delete.
15717 (find_gdb_breakpoint_at): New.
15718 (delete_breakpoint_at): Delete.
15719 (set_gdb_breakpoint_at): New.
15720 (delete_gdb_breakpoint_at): New.
15721 (gdb_breakpoint_here): New.
15722 (set_reinsert_breakpoint): Use release_breakpoint.
15723 (uninsert_breakpoint): Rename to ...
15724 (uninsert_raw_breakpoint): ... this.
15725 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15726 (reinsert_raw_breakpoint): Change parameter type to
15727 raw_breakpoint.
15728 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15729 instead.
15730 (check_breakpoints): Adjust. Use release_breakpoint.
15731 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15732 (breakpoint_inserted_here): Ditto.
15733 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15734 Don't trust the breakpoint's shadow if it is not inserted.
15735 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15736 (delete_all_breakpoints): Adjust.
15737 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15738 use delete_breakpoint_1.
15739
15740 * mem-break.h (breakpoints_supported): Delete declaration.
15741 (set_gdb_breakpoint_at): Declare.
15742 (gdb_breakpoint_here): Declare.
15743 (delete_breakpoint_at): Delete.
15744 (delete_gdb_breakpoint_at): Declare.
15745
15746 * server.h (struct raw_breakpoint): Forward declare.
15747 (struct process_info): New field `raw_breakpoints'.
15748
15749 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15750 breakpoints.
15751
6bf5e0ba
PA
157522010-03-24 Pedro Alves <pedro@codesourcery.com>
15753
15754 * linux-low.c (status_pending_p_callback): Fix comment.
15755 (linux_wait_for_event_1): Move most of the internal breakpoint
15756 handling from here...
15757 (linux_wait_1): ... to here.
15758 (count_events_callback): New.
15759 (select_singlestep_lwp_callback): New.
15760 (select_event_lwp_callback): New.
15761 (cancel_breakpoints_callback): New.
15762 (select_event_lwp): New.
15763 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15764 priority to all LWPs that have had events that should be reported
15765 to the client. Cancel breakpoints when about to reporting the
15766 event to the client, not while stopping lwps. No longer cancel
15767 finished single-steps here.
15768 (cancel_finished_single_step): Delete.
15769 (cancel_finished_single_steps): Delete.
15770
414a389f
PA
157712010-03-24 Pedro Alves <pedro@codesourcery.com>
15772
15773 * mem-break.c (enum bkpt_type): New.
15774 (struct breakpoint): New field `type'.
15775 (set_breakpoint_at): Change return type to struct breakpoint
15776 pointer. Set type to `other_breakpoint' by default.
15777 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15778 in the breakpoint list.
15779 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15780 (reinsert_breakpoint): Rename to ...
15781 (reinsert_raw_breakpoint): ... this.
15782 (reinsert_breakpoints_at): Adjust.
15783 * mem-break.h (struct breakpoint): Declare.
15784 (set_breakpoint_at): Change return type to struct breakpoint
15785 pointer.
15786
2280c721
PA
157872010-03-24 Pedro Alves <pedro@codesourcery.com>
15788
15789 * server.c (handle_query): Assign, not compare.
15790
d50171e4
PA
157912010-03-24 Pedro Alves <pedro@codesourcery.com>
15792
15793 Teach linux gdbserver to step-over-breakpoints.
15794
15795 * linux-low.c (can_hardware_single_step): New.
15796 (supports_breakpoints): New.
15797 (handle_extended_wait): If stopping threads, read the stop pc of
15798 the new cloned LWP.
15799 (get_pc): New.
15800 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15801 low target doesn't support retrieving the PC.
15802 (add_lwp): Set last_resume_kind to resume_continue.
15803 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15804 (linux_attach): Don't clear stop_expected. Set the lwp's
15805 last_resume_kind to resume_stop.
15806 (linux_detach_one_lwp): Don't check for removed breakpoints.
15807 (check_removed_breakpoint): Delete.
15808 (status_pending_p): Rename to ...
15809 (status_pending_p_callback): ... this. Don't check for removed
15810 breakpoints. Don't consider threads that are stopped from GDB's
15811 perspective.
15812 (linux_wait_for_lwp): Always read the stop_pc here.
15813 (cancel_breakpoint): New.
15814 (step_over_bkpt): New global.
15815 (linux_wait_for_event_1): Implement stepping over breakpoints.
15816 (gdb_wants_lwp_stopped): New.
15817 (gdb_wants_all_stopped): New.
15818 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15819 single-step traps here. Store the thread's last reported target
15820 wait status.
15821 (send_sigstop): Don't clear stop_expected. Always set it,
15822 instead.
15823 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15824 (cancel_finished_single_step): New.
15825 (cancel_finished_single_steps): New.
15826 (wait_for_sigstop): Don't cancel finished single-step traps here.
15827 (linux_resume_one_lwp): Don't check for removed breakpoints.
15828 Don't set `step' on non-hardware step archs.
15829 (linux_set_resume_request): Ignore resume_stop requests if already
15830 stopping or stopped. Set the lwp's last_resume_kind.
15831 (resume_status_pending_p): Don't check for removed breakpoints.
15832 (need_step_over_p): New.
15833 (start_step_over): New.
15834 (finish_step_over): New.
15835 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15836 requests. Clear the thread's last reported target waitstatus.
15837 Don't use the `suspended' flag. Don't consider pending breakpoints.
15838 (linux_resume): Start a step-over if necessary.
15839 (proceed_one_lwp): New.
15840 (proceed_all_lwps): New.
15841 (unstop_all_lwps): New.
15842 * linux-low.h (struct lwp_info): Rewrite comment for the
15843 `suspended' flag. Add the `stop_pc' field. Delete the
15844 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15845 Add `'last_resume_kind' and `need_step_over' fields.
15846 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15847 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15848 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15849 (set_raw_breakpoint_at): New.
15850 (set_breakpoint_at): Rewrite to use it.
15851 (reinsert_breakpoint_handler): Delete.
15852 (set_reinsert_breakpoint): New.
15853 (reinsert_breakpoint_by_bp): Delete.
15854 (delete_reinsert_breakpoints): New.
15855 (uninsert_breakpoint): Rewrite.
15856 (uninsert_breakpoints_at): New.
15857 (reinsert_breakpoint): Rewrite.
15858 (reinsert_breakpoints_at): New.
15859 (check_breakpoints): Rewrite.
15860 (breakpoint_here): New.
15861 (breakpoint_inserted_here): New.
15862 (check_mem_read): Adjust.
15863 * mem-break.h (breakpoints_supported, breakpoint_here)
15864 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15865 (reinsert_breakpoint_by_bp): Delete declaration.
15866 (delete_reinsert_breakpoints): Declare.
15867 (reinsert_breakpoint): Delete declaration.
15868 (reinsert_breakpoints_at): Declare.
15869 (uninsert_breakpoint): Delete declaration.
15870 (uninsert_breakpoints_at): Declare.
15871 (check_breakpoints): Adjust prototype.
15872 * server.h: Adjust include order.
15873 (struct thread_info): Declare here. Add a `last_status' field.
15874
30ba68cb
MS
158752010-03-23 Michael Snyder <msnyder@vmware.com>
15876
15877 * server.c (crc32): New function.
15878 (handle_query): Add handling for 'qCRC:' request.
15879
b9a881c2
PA
158802010-03-23 Pedro Alves <pedro@codesourcery.com>
15881
15882 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15883 lwp had been stopped by a watchpoint.
15884
e92d13d5
PA
158852010-03-16 Pedro Alves <pedro@codesourcery.com>
15886
15887 * server.h (internal_error): Declare.
15888 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15889 * utils.c (internal_error): New function.
15890
64daa791
AS
158912010-03-15 Andreas Schwab <schwab@redhat.com>
15892
15893 * configure.srv: Fix typo setting srv_regobj.
15894
f52cd8cd
PA
158952010-03-15 Pedro Alves <pedro@codesourcery.com>
15896
15897 * linux-low.c (fetch_register): Avoid passing a non string literal
15898 format to `error'.
15899 (usr_store_inferior_registers): Ditto.
15900
93ae6fdc
PA
159012010-03-14 Pedro Alves <pedro@codesourcery.com>
15902
15903 * linux-low.c (linux_write_memory): Bail out early if peeking
15904 memory failed.
15905
c3adc08c
PA
159062010-03-14 Pedro Alves <pedro@codesourcery.com>
15907
15908 * linux-low.h (struct lwp_info): New fields
15909 `stopped_by_watchpoint' and `stopped_data_address'.
15910 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15911 here, and cache them in the lwp object.
15912 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15913 directly.
15914 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15915 field.
15916 (linux_stopped_by_watchpoint): Rewrite.
15917 (linux_stopped_data_address): Rewrite.
15918
bce522a2
PA
159192010-03-06 Simo Melenius <simo.melenius@iki.fi>
15920
15921 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15922 switching the current inferior, not before.
15923
90884b2b
L
159242010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15925
15926 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15927 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15928 i386-linux.c and amd64-linux.c.
15929 (reg-i386.o): Removed.
15930 (reg-i386.c): Likewise.
15931 (reg-i386-linux.o): Likewise.
15932 (reg-i386-linux.c): Likewise.
15933 (reg-x86-64.o): Likewise.
15934 (reg-x86-64.c): Likewise.
15935 (reg-x86-64-linux.o): Likewise.
15936 (reg-x86-64-linux.c): Likewise.
15937 (i386.o): New.
15938 (i386.c): Likewise.
15939 (i386-linux.o): Likewise.
15940 (i386-linux.c): Likewise.
15941 (amd64.o): Likewise.
15942 (amd64.c): Likewise.
15943 (amd64-linux.o): Likewise.
15944 (amd64-linux.c): Likewise.
15945
15946 * configure.srv (srv_i386_regobj): New.
15947 (srv_i386_linux_regobj): Likewise.
15948 (srv_amd64_regobj): Likewise.
15949 (srv_amd64_linux_regobj): Likewise.
15950 (srv_i386_32bit_xmlfiles): Likewise.
15951 (srv_i386_64bit_xmlfiles): Likewise.
15952 (srv_i386_xmlfiles): Likewise.
15953 (srv_amd64_xmlfiles): Likewise.
15954 (srv_i386_linux_xmlfiles): Likewise.
15955 (srv_amd64_linux_xmlfiles): Likewise.
15956 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15957 srv_xmlfiles to $srv_i386_xmlfiles.
15958 (i[34567]86-*-mingw32ce*): Likewise.
15959 (i[34567]86-*-mingw*): Likewise.
15960 (i[34567]86-*-nto*): Likewise.
15961 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15962 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15963 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15964 (x86_64-*-linux*): Likewise.
15965
15966 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15967 (init_registers_amd64_linux): New.
15968 (x86_arch_setup): Replace init_registers_x86_64_linux with
15969 init_registers_amd64_linux.
15970
193f13e6
MK
159712010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15972
15973 * configure.ac: Check for libdl. If it is not available link against
15974 static libthread_db.
15975 * configure: Regenerate.
15976
85d721b8
PA
159772010-02-22 Pedro Alves <pedro@codesourcery.com>
15978
15979 PR9605
15980
15981 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
15982 handing a read watchpoint.
15983 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15984
6076632b
DE
159852010-02-12 Doug Evans <dje@google.com>
15986
15987 * linux-low.c (linux_supports_tracefork_flag): Document.
15988 (linux_look_up_symbols): Add comment.
15989
3327ccf7
L
159902010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15991
15992 * regcache.c (supply_register): Clear regcache if buf is NULL.
15993
0718675c 159942010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 15995 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
15996
15997 * inferiors.c (find_inferior): Add function documentation.
15998 (unloaded_dll): Handle the case where the unloaded dll has not
15999 been previously registered in the dll list.
16000
177321bd
DJ
160012010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16002
16003 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16004 (thumb2_breakpoint): New.
16005 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16006
2b009048
DJ
160072010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16008
16009 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16010 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16011 breakpoints.
16012
3be029c7
PA
160132010-01-21 Pedro Alves <pedro@codesourcery.com>
16014
16015 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16016
18f5de3b
JK
160172010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16018
16019 * linux-s390-low.c (s390_collect_ptrace_register)
16020 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16021
3743bb4f
DE
160222010-01-21 Doug Evans <dje@google.com>
16023
14ce3065
DE
16024 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16025 (PTRACE_ARG4_TYPE): New macro.
16026 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16027 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16028 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16029 (usr_store_inferior_registers): Ditto.
16030 (linux_read_memory, linux_write_memory): Ditto.
16031 (linux_test_for_tracefork): Ditto.
16032
3743bb4f
DE
16033 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16034 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16035
8b315be5
PA
160362010-01-21 Pedro Alves <pedro@codesourcery.com>
16037
16038 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16039 target.
16040
85492558
PA
160412010-01-21 Pedro Alves <pedro@codesourcery.com>
16042
16043 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16044 prototype to take a regcache. Adjust.
16045
442ea881
PA
160462010-01-20 Pedro Alves <pedro@codesourcery.com>
16047
16048 * regcache.h (struct thread_info): Forward declare.
16049 (struct regcache): New.
16050 (new_register_cache): Adjust prototype.
16051 (get_thread_regcache): Declare.
16052 (free_register_cache): Adjust prototype.
16053 (registers_to_string, registers_from_string): Ditto.
16054 (supply_register, supply_register_by_name, collect_register)
16055 (collect_register_as_string, collect_register_by_name): Ditto.
16056 * regcache.c (struct inferior_regcache_data): Delete.
16057 (get_regcache): Rename to ...
16058 (get_thread_regcache): ... this. Adjust. Switch inferior before
16059 fetching registers.
16060 (regcache_invalidate_one): Adjust.
16061 (regcache_invalidate): Fix prototype.
16062 (new_register_cache): Return the new register cache.
16063 (free_register_cache): Change prototype.
16064 (realloc_register_cache): Adjust.
16065 (registers_to_string): Change prototype to take a regcache. Adjust.
16066 (registers_from_string): Ditto.
16067 (register_data): Ditto.
16068 (supply_register): Ditto.
16069 (supply_register_by_name): Ditto.
16070 (collect_register): Ditto.
16071 (collect_register_as_string): Ditto.
16072 (collect_register_by_name): Ditto.
16073 * server.c (process_serial_event): Adjust.
16074 * linux-low.h (regset_fill_func, regset_store_func): Change
16075 prototype.
16076 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16077 Change prototype.
16078 * linux-low.c (get_stop_pc): Adjust.
16079 (check_removed_breakpoint): Adjust.
16080 (linux_wait_for_event): Adjust.
16081 (linux_resume_one_lwp): Adjust.
16082 (fetch_register): Add regcache parameter. Adjust.
16083 (usr_store_inferior_registers): Ditto.
16084 (regsets_fetch_inferior_registers): Ditto.
16085 (regsets_store_inferior_registers): Ditto.
16086 (linux_fetch_registers, linux_store_registers): Ditto.
16087 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16088 regcache. Adjust.
43aaf8b6
PA
16089 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16090 Ditto.
442ea881
PA
16091 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16092 prototype to take a regcache.
16093 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16094 * remote-utils.c (convert_ascii_to_int, outreg)
16095 (prepare_resume_reply): Change prototype to take a regcache.
16096 Adjust.
16097 * target.h (struct target_ops) <fetch_registers, store_registers>:
16098 Change prototype to take a regcache.
16099 (fetch_inferior_registers, store_inferior_registers): Change
16100 prototype to take a regcache. Adjust.
16101 * proc-service.c (ps_lgetregs): Adjust.
16102 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16103 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16104 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16105 take a regcache. Adjust.
16106 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16107 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16108 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16109 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16110 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16111 (cris_cannot_fetch_register):
16112 (cris_breakpoint_at): Change prototype to take a regcache.
16113 Adjust.
16114 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16115 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16116 to take a regcache. Adjust.
16117 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16118 Adjust.
16119 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16120 take a regcache. Adjust.
16121 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16122 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16123 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16124 * linux-mips-low.c (mips_get_pc):
16125 (mips_set_pc): Change prototype to take a regcache. Adjust.
16126 (mips_reinsert_addr): Adjust.
16127 (mips_collect_register): Change prototype to take a regcache.
16128 Adjust.
16129 (mips_supply_register):
16130 (mips_collect_register_32bit, mips_supply_register_32bit)
16131 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16132 (mips_store_fpregset): Ditto.
43aaf8b6
PA
16133 * linux-ppc-low.c (ppc_supply_ptrace_register)
16134 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
16135 (parse_spufs_run): Adjust.
16136 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16137 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16138 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16139 take a regcache. Adjust.
16140 * linux-s390-low.c (s390_collect_ptrace_register)
16141 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16142 (s390_set_pc): Change prototype to take a regcache. Adjust.
16143 (s390_arch_setup): Adjust.
16144 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16145 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16146 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16147 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16148 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16149 regcache. Adjust.
16150 (sparc_breakpoint_at): Adjust.
16151 * linux-xtensa-low.c (xtensa_fill_gregset):
16152 (xtensa_store_gregset):
16153 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16154 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16155 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16156 prototype to take a regcache. Adjust.
16157 * win32-arm-low.c (arm_fetch_inferior_register)
16158 (arm_store_inferior_register): Change prototype to take a
16159 regcache. Adjust.
16160 * win32-i386-low.c (i386_fetch_inferior_register)
16161 (i386_store_inferior_register): Change prototype to take a
16162 regcache. Adjust.
16163 * win32-low.c (child_fetch_inferior_registers)
16164 (child_store_inferior_registers): Change prototype to take a
16165 regcache. Adjust.
16166 (win32_wait): Adjust.
16167 (win32_fetch_inferior_registers): Change prototype to take a
16168 regcache. Adjust.
16169 (win32_store_inferior_registers): Adjust.
16170 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16171 store_inferior_register>: Change prototype to take a regcache.
16172
60c3d7b0
DE
161732010-01-20 Doug Evans <dje@google.com>
16174
16175 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16176 #ifdef.
16177 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 16178 (W_STOPCODE): Provide definition if missing.
60c3d7b0 16179
dc146f7c
VP
161802010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16181
16182 * linux-low.c (linux_core_of_thread): New.
16183 (compare_ints, show_process, list_threads): New.
16184 (linux_qxfer_osdata): Report threads and cores.
16185 (linux_target_op): Register linux_core_of_thread.
16186 * remote-utils.c (prepare_resume_reply): Report the core.
16187 (buffer_xml_printf): Support %d specifier.
16188 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16189 New.
16190 (handle_query): Handle qXfer:threads. Announce availability
16191 thereof.
16192 * target.h (struct target_ops): New field core_of_thread.
16193
7803799a
UW
161942010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16195
16196 * Makefile.in (clean): Remove new generated files.
16197 (reg-s390.o, reg-s390.c): Remove rules.
16198 (reg-s390x.o, reg-s390x.c): Likewise.
16199 (s390-linux32.o, s390-linux32.c): Add rules.
16200 (s390-linux64.o, s390-linux64.c): Likewise.
16201 (s390x-linux64.o, s390x-linux64.c): Likewise.
16202 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16203 * linux-s390-low.c: Include <elf.h>.
16204 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16205 (init_registers_s390): Remove prototype.
16206 (init_registers_s390x): Likewise.
16207 (init_registers_s390_linux32): Add prototype.
16208 (init_registers_s390_linux64): Likewise.
16209 (init_registers_s390x_linux64): Likewise.
16210 (s390_num_regs_3264): New define.
16211 (s390_regmap_3264): New global variable.
16212 (s390_cannot_fetch_register): Remove obsolete check.
16213 (s390_cannot_store_register): Likewise.
16214 (s390_collect_ptrace_register): Handle upper/lower register halves.
16215 (s390_supply_ptrace_register): Likewise.
16216 (s390_fill_gregset): Update to register number changes.
16217 (s390_get_hwcap): New routine.
16218 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16219 Install appropriate regmap and register set.
16220
6e7ffa39
JB
162212010-01-01 Joel Brobecker <brobecker@adacore.com>
16222
16223 * server.c (gdbserver_version): Update copyright year to 2010.
16224 * gdbreplay.c (gdbreplay_version): Likewise.
16225
957f3f49
DE
162262009-12-28 Doug Evans <dje@google.com>
16227
16228 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16229 elf/external.h. Include <elf.h> instead but only if necessary.
16230
ca5c370d
PA
162312009-12-28 Pedro Alves <pedro@codesourcery.com>
16232
16233 * linux-low.c (linux_remove_process): Remove `detaching'
16234 parameter. Don't release/detach from thread_db here.
16235 (linux_kill): Release/detach from thread_db here, ...
16236 (linux_detach): ... and here, before actually detaching.
16237 (linux_wait_1): ... and here, when a process exits.
16238 * thread-db.c (any_thread_of): New.
16239 (thread_db_free): Switch the current inferior to a thread of the
16240 passed in process.
16241
4ee62156
DE
162422009-12-21 Doug Evans <dje@google.com>
16243
d90e6a88
DE
16244 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16245
c5f62d5f
DE
16246 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16247 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16248 warning ifndef __NR_tkill. Move setting of errno there too.
16249 Delete unnecessary resetting of errno after syscall.
16250 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16251
10e86dd7
DE
16252 * configure.ac: Check for dladdr.
16253 * config.in: Regenerate.
16254 * configure: Regenerate.
16255 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16256 (try_thread_db_load): Update.
16257
4ee62156
DE
16258 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16259
00f515da
DE
162602009-12-18 Doug Evans <dje@google.com>
16261
e9464885
DE
16262 * event-loop.c: Include unistd.h if it exists.
16263
07d4f67e
DE
16264 * linux-low.c (my_waitpid): Move definition away from being in
16265 between linux_tracefork_child/linux_test_for_tracefork.
16266
00f515da
DE
16267 * gdb_proc_service.h (psaddr_t): Fix type.
16268 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16269 signature to match glibc.
16270
1de1badb
DE
162712009-12-16 Doug Evans <dje@google.com>
16272
16273 * linux-low.c (linux_read_memory): Fix argument to read.
16274
aeeb81d1
PA
162752009-11-26 Pedro Alves <pedro@codesourcery.com>
16276
16277 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16278 events, don't leave current_inferior pointing at null.
16279
10357975
PA
162802009-11-26 Pedro Alves <pedro@codesourcery.com>
16281
16282 * win32-low.c (LOG): Delete.
16283 (OUTMSG): Output to stderr.
16284 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16285 on compile time LOG macro.
16286 (win32_wait): Fix debug output.
16287
cf6e3471
PA
162882009-11-26 Pedro Alves <pedro@codesourcery.com>
16289
16290 * win32-low.c (win32_add_one_solib): If the dll name is
16291 "ntdll.dll", prepend the system directory to the dll path.
16292
0c85e18e
MK
162932009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16294
16295 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16296
9ac544ce 162972009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 16298 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
16299
16300 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16301 * configure.ac: Check for __mcoldfire__ and set
16302 gdb_cv_m68k_is_coldfire.
16303 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16304 reg-cf.o and reg-m68k.o.
16305 * configure: Regenerated.
16306
fd7dd3e6
PA
163072009-11-16 Pedro Alves <pedro@codesourcery.com>
16308
16309 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16310 Pass it to thread_db_free.
16311 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16312 proper `detaching' argument to linux_remove_process.
16313 * linux-low.h (thread_db_free): Add `detaching' parameter.
16314 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16315 to thread_db_free.
16316 (thread_db_free): Add `detaching' parameter. Only
16317 call td_ta_clear_event if detaching from process.
16318
75aa492e
MK
163192009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16320
16321 * thread-db.c (thread_db_free): Fix typo.
16322
21e1bee4
PP
163232009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16324
16325 PR gdb/10838
16326 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16327
8838b45e
NS
163282009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16329
16330 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16331 with an i686 compiler.
16332 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16333 needed.
16334 * configure: Rebuilt.
16335
8a35fb51
SL
163362009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16337
16338 PR gdb/10783
16339
16340 * server.c (handle_search_memory_1): Correct read_addr initialization
16341 in loop for searching subsequent chunks.
16342
96f15937
PP
163432009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16344
16345 * configure.ac: New --with-libthread-db option.
16346 * thread-db.c: Allow direct dependence on libthread_db.
16347 (thread_db_free): Adjust.
16348 * config.in: Regenerate.
16349 * configure: Likewise.
889bf7c5 16350
5f7d1694
PP
163512009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16352
16353 PR gdb/10757
16354 * thread-db.c (attach_thread): New function.
16355 (maybe_attach_thread): Return success/failure.
16356 (find_new_threads_callback): Adjust.
889bf7c5
PA
16357 (thread_db_find_new_threads): Loop until no new threads.
16358
88e3b899
PA
163592009-10-13 Pedro Alves <pedro@codesourcery.com>
16360
16361 * proc-service.c (ps_lgetregs): Formatting.
16362
cdbfd419
PP
163632009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16364
16365 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16366 * configure.ac: Adjust.
16367 * linux-low.h (struct process_info_private): Move members to struct
16368 thread_db.
16369 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16370 * linux-low.c (linux_remove_process): Adjust.
16371 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16372 * server.c (handle_query): Move code ...
16373 (handle_monitor_command): ... here. New function.
16374 * target.h (struct target_ops): New member.
16375 * thread-db.c (struct thread_db): New.
16376 (libthread_db_search_path): New variable.
16377 (thread_db_create_event, thread_db_enable_reporting)
16378 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16379 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16380 (try_thread_db_load_1, dladdr_to_soname): New functions.
16381 (try_thread_db_load, thread_db_load_search): New functions.
16382 (thread_db_init): Search for libthread_db.
16383 (thread_db_free): New function.
16384 (thread_db_handle_monitor_command): Likewise.
16385 * config.in: Regenerate.
16386 * configure: Regenerate.
889bf7c5 16387
4168d2d6
UW
163882009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16389
16390 * spu-low.c (spu_kill): Wait for inferior to terminate.
16391 Call clear_inferiors.
16392 (spu_detach): Call clear_inferiors.
16393
81ecdfbb
RW
163942009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16395
16396 * aclocal.m4: Regenerate.
16397 * config.in: Likewise.
16398 * configure: Likewise.
16399
0b9ff2c0
UW
164002009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16401
16402 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16403 (parse_spufs_run): New function.
16404 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16405 (ppc_breakpoint_at): Handle SPU breakpoints.
16406
efcbbd14
UW
164072009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16408
16409 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16410 (SPUFS_MAGIC): Define.
16411 (spu_enumerate_spu_ids): New function.
16412 (linux_qxfer_spu): New function.
16413 (linux_target_ops): Install linux_qxfer_spu.
16414
f4d9bade
UW
164152009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16416
16417 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16418 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16419 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16420 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16421 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16422 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16423 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16424 (init_registers_powerpc_cell32l): Add prototype.
16425 (init_registers_powerpc_cell64l): Likewise.
16426 (ppc_arch_setup): Detect Cell/B.E. architecture.
16427
96e946ca
RW
164282009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16429
16430 * Makefile.in (datarootdir): New variable.
16431
58d6951d
DJ
164322009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16433
16434 * linux-low.c (linux_write_memory): Update debugging output.
16435 * Makefile.in (clean): Add new descriptions.
16436 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16437 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16438 * configure.srv: Add new files for arm*-*-linux*.
16439 * linux-arm-low.c: Add new declarations.
16440 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16441 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16442 (HWCAP_VFPv3D16): New.
16443 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16444 instead of __IWMMXT__.
16445 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16446 (arm_arch_setup): New.
16447 (target_regsets): Remove #ifdef. Add VFP regset.
16448 (the_low_target): Use arm_arch_setup.
16449
12b42a12
DJ
164502009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16451
16452 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16453 the main thread again.
16454
ac8c974e
AR
164552009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16456
16457 Adding Neutrino gdbserver.
16458 * configure: Regenerated.
16459 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16460 * configure.srv (i[34567]86-*-nto*): New target.
16461 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16462 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16463 (nto_comctrl) [__QNX__]: New function.
16464 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16465
4424e0c3 164662009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
16467
16468 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16469 srv_tgtobj.
16470
912cf4ba
PA
164712009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16472 Pedro Alves <pedro@codesourcery.com>
16473
16474 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16475 don't support CONTEXT_EXTENDED_REGISTERS.
16476 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16477 (the_low_target): Install them.
16478 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16479 failing with ERROR_PIPE_NOT_CONNECTED.
16480
aa5ca48f
DE
164812009-06-30 Doug Evans <dje@google.com>
16482 Pierre Muller <muller@ics.u-strasbg.fr>
16483
16484 Add h/w watchpoint support to x86-linux, win32-i386.
16485 * Makefile.in (SFILES): Add i386-low.c
16486 (i386_low_h): Define.
16487 (i386-low.o): Add dependencies.
16488 (linux-x86-low.o): Add i386-low.h dependency.
16489 (win32-i386-low.o): Ditto.
16490 * i386-low.c: New file.
16491 * i386-low.h: New file.
16492 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16493 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16494 * linux-low.c (linux_add_process): Initialize arch_private.
16495 (linux_remove_process): Free arch_private.
16496 (add_lwp): Initialize arch_private.
16497 (delete_lwp): Free arch_private.
16498 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16499 provided.
16500 * linux-low.h (process_info_private): New member arch_private.
16501 (lwp_info): New member arch_private.
16502 (linux_target_ops): New members new_process, new_thread,
16503 prepare_to_resume.
16504 (ptid_of): New macro.
16505 * linux-x86-low.c: Include stddef.h, i386-low.h.
16506 (arch_process_info): New struct.
16507 (arch_lwp_info): New struct.
16508 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16509 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16510 (i386_dr_low_get_status): New function.
16511 (x86_insert_point, x86_remove_point): New functions.
16512 (x86_stopped_by_watchpoint): New function.
16513 (x86_stopped_data_address): New function.
16514 (x86_linux_new_process, x86_linux_new_thread): New functions.
16515 (x86_linux_prepare_to_resume): New function.
16516 (the_low_target): Add entries for insert_point, remove_point,
16517 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16518 prepare_to_resume.
16519 * server.c (debug_hw_points): New global.
16520 (monitor_show_help): Document set debug-hw-points.
16521 (handle_query): Process "set debug-hw-points".
16522 * server.h (debug_hw_points): Declare.
16523 (paddress): Declare.
16524 * utils.c (NUMCELLS, CELLSIZE): New macros.
16525 (get_sell, xsnprintf, paddress): New functions.
16526 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16527 remove_point, stopped_by_watchpoint, stopped_data_address.
16528 * win32-i386-low.c: Include i386-low.h.
16529 (debug_reg_state): Replaces dr.
16530 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16531 (i386_dr_low_get_status): New function.
16532 (i386_insert_point, i386_remove_point): New functions.
16533 (i386_stopped_by_watchpoint): New function.
16534 (i386_stopped_data_address): New function.
16535 (i386_initial_stuff): Update.
16536 (get_thread_context,set_thread_context,i386_thread_added): Update.
16537 (the_low_target): Add entries for insert_point,
16538 remove_point, stopped_by_watchpoint, stopped_data_address.
16539 * win32-low.c (win32_insert_watchpoint): New function.
16540 (win32_remove_watchpoint): New function.
16541 (win32_stopped_by_watchpoint): New function.
16542 (win32_stopped_data_address): New function.
16543 (win32_target_ops): Add entries for insert_watchpoint,
16544 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16545 * win32-low.h (win32_target_ops): New members insert_point,
16546 remove_point, stopped_by_watchpoint, stopped_data_address.
16547
d993e290
PA
165482009-06-25 Pedro Alves <pedro@codesourcery.com>
16549
16550 * server.c (process_serial_event): Re-return unsupported, not
16551 error, if the type isn't recognized. Re-allow supporting only
16552 insert or remove packets. Also call require_running for
16553 breakpoints. Add missing break statement to default case. Tidy.
16554 * target.h (struct target_ops): Rename insert_watchpoint to
16555 insert_point, and remove_watchpoint to remove_point.
16556
16557 * linux-low.h (struct linux_target_ops): Likewise.
16558 * linux-low.c (linux_insert_watchpoint): Rename to ...
16559 (linux_insert_point): ... this. Adjust.
16560 (linux_remove_watchpoint): Rename to ...
16561 (linux_remove_point): ... this. Adjust.
16562 (linux_target_ops): Adjust.
16563 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16564 (cris_insert_point): ... this.
16565 (cris_remove_watchpoint): Rename to ...
16566 (cris_remove_point): ... this.
16567 (the_low_target): Adjust.
16568
0f54c268
PM
165692009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16570
16571 * server.c (handle_v_kill): Pass signal_pid to
16572 kill_inferior if multi_process is zero.
16573
c6314022
AR
165742009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16575
16576 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16577 * target.h (target_ops): Comment for *_watchpoint to make it clear
16578 the functions can get types '0' and '1'.
16579
4463ce24
AR
165802009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16581
16582 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16583 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16584 * regcache.c (get_regcache): Likewise.
16585 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16586 * win32-low.c (child_fetch_inferior_registers): Remove check for
16587 regno 0.
16588
cf8fd78b
PA
165892009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16590 Pedro Alves <pedro@codesourcery.com>
16591
16592 * target.h (struct target_ops) <supports_multi_process>: New
16593 callback.
16594 (target_supports_multi_process): New.
16595 * server.c (handle_query): Even if GDB reports support, only
16596 enable multi-process if the target also supports it. Report
16597 multi-process support only if the target backend supports it.
16598 * linux-low.c (linux_supports_multi_process): New function.
16599 (linux_target_ops): Install it as target_supports_multi_process
16600 callback.
16601
47c0c975
DE
166022009-05-24 Doug Evans <dje@google.com>
16603
e09875d4
DE
16604 Global renaming of find_thread_pid to find_thread_ptid.
16605 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16606 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16607 All callers updated.
16608
e27d73f6
DE
16609 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16610 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16611 directly.
16612
47c0c975
DE
16613 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16614 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16615 (linux_resume_one_lwp): Ditto.
16616
2acc282a
DE
166172009-05-23 Doug Evans <dje@google.com>
16618
16619 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16620 from struct inferior_list_entry * to struct lwp_info *.
16621 All callers updated.
16622
9f1036c1
DE
166232009-05-13 Doug Evans <dje@google.com>
16624
16625 * linux-x86-low.c: Don't include assert.h.
16626 (x86_siginfo_fixup): Use fatal, not assert.
16627 (x86_arch_setup): Fix comment.
16628
d0722149
DE
166292009-05-12 Doug Evans <dje@google.com>
16630
16631 Biarch support for i386/amd64 gdbserver.
16632 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16633 Add linux-x86-low.c.
16634 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16635 (linux-x86-low.o): Add.
16636 * linux-x86-64-low.c: Delete.
16637 * linux-i386-low.c: Delete.
16638 * linux-x86-low.c: New file.
16639 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16640 linux-x86-low.o.
16641 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16642 linux-x86-low.o.
16643 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16644 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16645 (linux_child_pid_to_exec_file): New function.
16646 (elf_64_header_p, elf_64_file_p): New functions.
16647 (siginfo_fixup): New function.
16648 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16649 give target a chance to convert layout.
16650 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16651 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16652
fdeb2a12
DE
166532009-05-07 Doug Evans <dje@google.com>
16654
16655 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16656 (regsets_store_inferior_registers): Ditto.
16657
a6dbe5df
PA
166582009-05-06 Pedro Alves <pedro@codesourcery.com>
16659
16660 PR server/10048
16661
16662 * linux-low.c (must_set_ptrace_flags): Delete.
16663 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16664 of the global.
16665 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16666 `lwp->must_set_ptrace_flags' instead.
ba42693b 16667 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
16668 (linux_wait_1): ... not here.
16669
5091eb23
DE
166702009-04-30 Doug Evans <dje@google.com>
16671
9f767825
DE
16672 * inferiors.c (started_inferior_callback): New function.
16673 (attached_inferior_callback): New function.
16674 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16675 * server.c (print_started_pid, print_attached_pid): New functions.
16676 (detach_or_kill_for_exit): New function.
16677 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16678 * server.h (have_started_inferiors_p): Declare.
16679 (have_attached_inferiors_p): Declare.
16680
5091eb23
DE
16681 * inferiors.c (remove_process): Fix memory leak, free process.
16682 * linux-low.c (linux_remove_process): New function.
16683 (linux_kill): Call it instead of remove_process.
16684 (linux_detach, linux_wait_1): Ditto.
16685
155c8968
PA
166862009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16687
16688 * configure.srv: Add x86 Windows CE target.
16689
7fe519cb
UW
166902009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16691
16692 * inferiors.c (get_thread_process): Make global.
16693 * server.h (get_thread_process): Add prototype.
16694 * thread-db.c (find_one_thread): Use get_thread_process
16695 instead of current_process.
16696 (thread_db_get_tls_address): Do not crash if called when
16697 thread layer is not yet initialized.
16698
5472f405
UW
166992009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16700
16701 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16702 * spu-low.c (current_tid): Rename to ...
16703 (current_ptid): ... this.
16704 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16705 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16706 ptid_get_lwp (current_ptid) instead of current_tid.
16707 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16708 instead of current_tid. Use find_process_pid to verify pid
16709 argument is valid. Pass proper argument to remove_process.
16710 (spu_thread_alive): Compare current_ptid instead of current_tid.
16711 (spu_resume): Likewise.
16712
55ac2b99
PA
167132009-04-02 Pedro Alves <pedro@codesourcery.com>
16714
16715 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16716 variable.
16717
95954743
PA
167182009-04-01 Pedro Alves <pedro@codesourcery.com>
16719
16720 Implement the multiprocess extensions, and add linux multiprocess
16721 support.
16722
16723 * server.h (ULONGEST): Declare.
16724 (struct ptid, ptid_t): New.
16725 (minus_one_ptid, null_ptid): Declare.
16726 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16727 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16728 (struct inferior_list_entry): Change `id' type from unsigned from
16729 to ptid_t.
16730 (struct sym_cache, struct breakpoint, struct
16731 process_info_private): Forward declare.
16732 (struct process_info): Declare.
16733 (current_process): Declare.
16734 (all_processes): Declare.
16735 (initialize_inferiors): Declare.
16736 (add_thread): Adjust to use ptid_t.
16737 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16738 (add_process, remove_process, find_thread_pid): Declare.
16739 (find_inferior_id): Adjust to use ptid_t.
16740 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16741 (multi_process): Declare.
16742 (push_event): Adjust to use ptid_t.
16743 (read_ptid, write_ptid): Declare.
16744 (prepare_resume_reply): Adjust to use ptid_t.
16745 (clear_symbol_cache): Declare.
16746 * inferiors.c (all_processes): New.
16747 (null_ptid, minus_one_ptid): New.
16748 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16749 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16750 (add_thread): Change unsigned long to ptid. Remove gdb_id
16751 parameter. Adjust.
16752 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16753 (gdb_id_to_thread): Rename to ...
16754 (find_thread_pid): ... this. Change unsigned long to ptid.
16755 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16756 (loaded_dll, pull_pid_from_list): Adjust.
16757 (add_process, remove_process, find_process_pid)
16758 (get_thread_process, current_process, initialize_inferiors): New.
16759 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16760 (struct target_waitstatus) <related_pid>: Ditto.
16761 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16762 return type to int.
16763 (struct target_ops) <join>: Add `pid' argument.
16764 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16765 (struct target_ops) <wait>: Add `ptid' field. Change return type
16766 to ptid.
16767 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16768 (mywait): Add `ptid' argument. Change return type to ptid_t.
16769 (target_pid_to_str): Declare.
16770 * target.c (set_desired_inferior): Adjust to use ptids.
16771 (mywait): Add new `ptid' argument. Adjust.
16772 (target_pid_to_str): New.
16773 * mem-break.h (free_all_breakpoints): Declare.
16774 * mem-break.c (breakpoints): Delelete.
16775 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16776 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16777 to use per-process breakpoint list.
16778 (free_all_breakpoints): New.
16779 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16780 (symbol_cache, all_symbols_looked_up): Delete.
16781 (hexchars): New.
16782 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16783 read_ptid): New.
16784 (prepare_resume_reply): Change ptid argument's type from unsigned
16785 long to ptid_t. Adjust. Implement W;process and X;process.
16786 (free_sym_cache, clear_symbol_cache): New.
16787 (look_up_one_symbol): Adjust to per-process symbol cache. *
16788 * server.c (cont_thread, general_thread, step_thread): Change type
16789 to ptid_t.
16790 (attached): Delete.
16791 (multi_process): New.
16792 (last_ptid): Change type to ptid_t.
16793 (struct vstop_notif) <ptid>: Change type to ptid_t.
16794 (queue_stop_reply, push_event): Change `ptid' argument's type to
16795 ptid_t.
16796 (discard_queued_stop_replies): Add `pid' argument.
16797 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16798 changes. Don't reference the `attached' global.
16799 (attach_inferior): Adjust to mywait interface changes.
16800 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16801 features. Handle and report "multiprocess+". Handle
16802 "qAttached:PID".
16803 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16804 changes.
16805 (handle_v_kill): New.
16806 (handle_v_stopped): Adjust to use target_pid_to_str.
16807 (handle_v_requests): Allow multiple attaches and runs when
16808 multiprocess extensions are in effect. Handle "vKill".
16809 (myresume): Adjust to use ptids.
16810 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16811 (handle_status): Adjust to discard_queued_stop_replies interface
16812 change.
16813 (first_thread_of, kill_inferior_callback)
16814 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16815 (main): Call initialize_inferiors. Adjust to use ptids, killing
16816 and detaching from all inferiors. Handle multiprocess packet
16817 variants.
16818 * linux-low.h: Include gdb_proc_service.h.
16819 (struct process_info_private): New.
16820 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16821 <lwpid_of>: Use ptid_get_lwp.
16822 (get_lwp_thread): Adjust.
16823 (struct lwp_info): Add `dead' member.
16824 (find_lwp_pid): Declare.
16825 * linux-low.c (thread_db_active): Delete.
16826 (new_inferior): Adjust comment.
16827 (inferior_pid): Delete.
16828 (linux_add_process): New.
16829 (handle_extended_wait): Adjust.
16830 (add_lwp): Change unsigned long to ptid.
16831 (linux_create_inferior): Add process to processes table. Adjust
16832 to use ptids. Don't set new_inferior here.
16833 (linux_attach_lwp): Rename to ...
16834 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16835 it. Adjust to use ptids.
16836 (linux_attach_lwp): New.
16837 (linux_attach): Add process to processes table. Don't set
16838 new_inferior here.
16839 (struct counter): New.
16840 (second_thread_of_pid_p, last_thread_of_process_p): New.
16841 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16842 multiple processes.
16843 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16844 processes. Remove process from process table.
16845 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16846 to multiple processes.
16847 (any_thread_of): New.
16848 (linux_detach): Add `pid' argument, and handle it. Remove process
16849 from processes table.
16850 (linux_join): Add `pid' argument. Handle it.
16851 (linux_thread_alive): Change unsighed long argument to ptid_t.
16852 Consider dead lwps as not being alive.
16853 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16854 threads we're not interested in.
16855 (same_lwp, find_lwp_pid): New.
16856 (linux_wait_for_lwp): Change `pid' argument's type from int to
16857 ptid_t. Adjust.
16858 (linux_wait_for_event): Rename to ...
16859 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16860 from int to ptid_t. Adjust.
16861 (linux_wait_for_event): New.
16862 (linux_wait_1): Add `ptid' argument. Change return type to
16863 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16864 that exit from the process table.
16865 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16866 Adjust.
16867 (mark_lwp_dead): New.
16868 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16869 stopping all threads, mark its main lwp as dead.
16870 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16871 ptids.
16872 (fetch_register, usr_store_inferior_registers)
16873 (regsets_fetch_inferior_registers)
16874 (regsets_store_inferior_registers, linux_read_memory)
16875 (linux_write_memory): Inline `inferior_pid'.
16876 (linux_look_up_symbols): Adjust to use per-process
16877 `thread_db_active'.
16878 (linux_request_interrupt): Adjust to use ptids.
16879 (linux_read_auxv): Inline `inferior_pid'.
16880 (initialize_low): Don't reference thread_db_active.
16881 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16882 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16883 (ps_getpid): Return the pid of the current inferior.
16884 * thread-db.c (proc_handle, thread_agent): Delete.
16885 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16886 per-process data.
16887 (find_one_thread): Change argument type to ptid_t. Adjust to
16888 per-process data.
16889 (maybe_attach_thread): Adjust to per-process data and ptids.
16890 (thread_db_find_new_threads): Ditto.
16891 (thread_db_init): Ditto.
16892 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16893 processes table. Adjust to use ptids.
16894 (spu_kill, spu_detach): Adjust interface. Remove process from
16895 processes table.
16896 (spu_join, spu_thread_alive): Adjust interface.
16897 (spu_wait): Adjust interface. Remove process from processes
16898 table. Adjust to use ptids.
16899 * win32-low.c (current_inferior_tid): Delete.
16900 (current_inferior_ptid): New.
16901 (debug_event_ptid): New.
16902 (thread_rec): Take a ptid. Adjust.
16903 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16904 (child_delete_thread): Ditto.
16905 (do_initial_child_stuff): Add `attached' argument. Add process to
16906 processes table.
16907 (child_fetch_inferior_registers, child_store_inferior_registers):
16908 Adjust.
16909 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16910 (win32_attach): Pass 1 to do_initial_child_stuff.
16911 (win32_kill): Adjust interface. Remove process from processes
16912 table.
16913 (win32_detach): Ditto.
16914 (win32_join): Adjust interface.
16915 (win32_thread_alive): Take a ptid.
16916 (win32_resume): Adjust to use ptids.
16917 (get_child_debug_event): Ditto.
16918 (win32_wait): Adjust interface. Remove exiting process from
16919 processes table.
16920
bd99dc85
PA
169212009-04-01 Pedro Alves <pedro@codesourcery.com>
16922
16923 Non-stop mode support.
16924
16925 * server.h (non_stop): Declare.
16926 (gdb_client_data, handler_func): Declare.
16927 (delete_file_handler, add_file_handler, start_event_loop):
16928 Declare.
16929 (handle_serial_event, handle_target_event, push_event)
16930 (putpkt_notif): Declare.
16931 * target.h (enum resume_kind): New.
16932 (struct thread_resume): Replace `step' field by `kind' field.
16933 (TARGET_WNOHANG): Define.
16934 (struct target_ops) <wait>: Add `options' argument.
16935 <supports_non_stop, async, start_non_stop>: New fields.
16936 (target_supports_non_stop, target_async): New.
16937 (start_non_stop): Declare.
16938 (mywait): Add `options' argument.
16939 * target.c (mywait): Add `options' argument. Print child exit
16940 notifications here.
16941 (start_non_stop): New.
16942 * server.c (non_stop, own_buf, mem_buf): New globals.
16943 (struct vstop_notif): New.
16944 (notif_queue): New global.
16945 (queue_stop_reply, push_event, discard_queued_stop_replies)
16946 (send_next_stop_reply): New.
16947 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16948 interface changes.
16949 (attach_inferior): In non-stop mode, don't wait for the target
16950 here.
16951 (handle_general_set): Handle QNonStop.
16952 (handle_query): When handling qC, return the current general
16953 thread, instead of the first thread of the list.
16954 (handle_query): If the backend supports non-stop mode, include
16955 QNonStop+ in the qSupported query response.
16956 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16957 and non-stop mode.
16958 (handle_v_attach, handle_v_run): Handle non-stop mode.
16959 (handle_v_stopped): New.
16960 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16961 (myresume): Adjust to use resume_kind. Handle non-stop.
16962 (queue_stop_reply_callback): New.
16963 (handle_status): Handle non-stop mode.
16964 (main): Clear non_stop flag on reconnection. Use the event-loop.
16965 Refactor serial protocol handling from here ...
16966 (process_serial_event): ... to this new function. When GDB
16967 selects any thread, select one here. In non-stop mode, wait until
16968 GDB acks all pending events before exiting.
16969 (handle_serial_event, handle_target_event): New.
16970 * remote-utils.c (remote_open): Install remote_desc in the event
16971 loop.
16972 (remote_close): Remove remote_desc from the event loop.
16973 (putpkt_binary): Rename to...
16974 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
16975 (putpkt_binary): New as wrapper around putpkt_binary_1.
16976 (putpkt_notif): New.
16977 (prepare_resume_reply): In non-stop mode, don't change the
16978 general_thread.
16979 * event-loop.c: New.
16980 * Makefile.in (OBJ): Add event-loop.o.
16981 (event-loop.o): New rule.
16982
16983 * linux-low.h (pid_of): Moved here.
16984 (lwpid_of): New.
16985 (get_lwp_thread): Use lwpid_of.
16986 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16987 * linux-low.c (pid_of): Delete.
16988 (inferior_pid): Use lwpid_of.
16989 (linux_event_pipe): New.
16990 (target_is_async_p): New.
16991 (delete_lwp): New.
16992 (handle_extended_wait): Use lwpid_of.
16993 (add_lwp): Don't set lwpid field.
16994 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16995 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16996 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16997 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16998 first. Adjust to linux_wait_for_event interface changes. Use
16999 lwpid_of.
17000 (linux_detach): Don't delete the main lwp here.
17001 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17002 (status_pending_p): Don't consider explicitly suspended lwps.
17003 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17004 pointer. Add OPTIONS argument. Change return type to int. Use
17005 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17006 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17007 pointer. Add status pointer argument. Return a pid instead of a
17008 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17009 changes. In non-stop mode, don't switch to a random thread.
17010 (linux_wait): Rename to...
17011 (linux_wait_1): ... this. Add target_options argument, and handle
17012 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17013 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17014 clean exit and signal exit code. Don't stop all threads in
17015 non-stop mode. In all-stop mode, only stop all threads when
17016 reporting a stop to GDB. Handle explicit thread stop requests.
17017 (async_file_flush, async_file_mark): New.
17018 (linux_wait): New.
17019 (send_sigstop): Use lwpid_of.
17020 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17021 interface changes. In non-stop mode, don't switch to a random
17022 thread.
17023 (linux_resume_one_lwp): Use lwpid_of.
17024 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17025 (linux_resume_one_thread): ... this. Handle resume_stop. In
17026 non-stop mode, don't look for pending flag in all threads.
17027 (resume_status_pending_p): Don't consider explicitly suspended
17028 threads.
17029 (my_waitpid): Reimplement. Emulate __WALL.
17030 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17031 Use lwpid_of.
17032 (sigchld_handler, linux_supports_non_stop, linux_async)
17033 (linux_start_non_stop): New.
17034 (linux_target_ops): Register linux_supports_non_stop, linux_async
17035 and linux_start_non_stop.
17036 (initialize_low): Install SIGCHLD handler.
17037 * thread-db.c (thread_db_create_event, find_one_thread)
17038 (thread_db_get_tls_address): Use lwpid_of.
17039 * win32-low.c (win32_detach): Adjust to use resume_kind.
17040 (win32_wait): Add `options' argument.
17041 * spu-low.c (spu_resume): Adjust to use resume_kind.
17042 (spu_wait): Add `options' argument.
17043
5b1c542e
PA
170442009-04-01 Pedro Alves <pedro@codesourcery.com>
17045
17046 Decouple target code from remote protocol.
17047
17048 * target.h (enum target_waitkind): New.
17049 (struct target_waitstatus): New.
17050 (struct target_ops) <wait>: Return an unsigned long. Take a
17051 target_waitstatus pointer instead of a char pointer.
17052 (mywait): Likewise.
17053 * target.c (mywait): Change prototype to return an unsigned long.
17054 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17055 * server.h (thread_from_wait, old_thread_from_wait): Delete
17056 declarations.
17057 (prepare_resume_reply): Change prototype to take a
17058 target_waitstatus.
17059 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17060 (last_status, last_ptid): New.
17061 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17062 pid instead of a signal.
17063 (attach_inferior): Remove "status" and "signal" parameters.
17064 Adjust.
17065 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17066 not as an address.
17067 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17068 (handle_v_requests, myresume): Remove "status" and "signal"
17069 parameters. Adjust.
17070 (handle_status): New.
17071 (main): Delete local `status'. Adjust.
17072 * remote-utils.c: Include target.h.
17073 (prepare_resume_reply): Change prototype to take a
17074 target_waitstatus. Adjust.
17075
17076 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17077 interface.
17078 * spu-low.c (spu_wait): Adjust.
17079 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17080 Delete.
17081 (win32_wait): Adjust.
17082
2bd7c093
PA
170832009-04-01 Pedro Alves <pedro@codesourcery.com>
17084
17085 * target.h (struct thread_resume): Delete leave_stopped member.
17086 (struct target_ops): Add a `n' argument to the `resume' callback.
17087 * server.c (start_inferior): Adjust.
17088 (handle_v_cont, myresume): Adjust.
17089 * linux-low.c (check_removed_breakpoint): Adjust to resume
17090 interface change, and to removed leave_stopped field.
17091 (resume_ptr): Delete.
17092 (struct thread_resume_array): New.
17093 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17094 resume interface change.
17095 (linux_continue_one_thread, linux_queue_one_thread)
17096 (resume_status_pending_p): Check if the resume field is NULL
17097 instead of checking the leave_stopped member.
17098 (linux_resume): Adjust to the target resume interface change.
17099 * spu-low.c (spu_resume): Adjust to the target resume interface
17100 change.
17101 * win32-low.c (win32_detach, win32_resume): Ditto.
17102
c35fafde
PA
171032009-04-01 Pedro Alves <pedro@codesourcery.com>
17104
17105 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17106 flag.
17107 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17108 pending.
17109 (linux_continue_one_thread): Only preserve the stepping flag if
17110 there's a pending breakpoint.
17111
0a59d50b
PA
171122009-03-31 Pedro Alves <pedro@codesourcery.com>
17113
17114 * server.c (main): After the inferior having exited, call
17115 remote_close before exiting gdbserver.
17116
f04c6d38
TJB
171172009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17118
17119 Fix size of FPSCR in Power 7 processors.
17120 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17121 (PPC_FEATURE_HAS_DFP): New #define.
17122 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17123 size of the FPSCR.
17124
78e5cee6
PA
171252009-03-23 Pedro Alves <pedro@codesourcery.com>
17126
17127 * server.c (handle_query) Whitespace and formatting.
17128
1b3f6016
PA
171292009-03-22 Pedro Alves <pedro@codesourcery.com>
17130
17131 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17132 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17133 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17134 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17135 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17136 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17137 Makefile.in, configure.ac: Fix whitespace throughout.
17138 * configure: Regenerate.
17139
a07b2135
PA
171402009-03-22 Pedro Alves <pedro@codesourcery.com>
17141
17142 * inferiors.c (find_inferior): Make it safe for the callback
17143 function to delete the currently iterated inferior.
17144
67cc2626
PA
171452009-03-22 Pedro Alves <pedro@codesourcery.com>
17146
17147 * Makefile.in (linuw_low_h): Move higher.
17148 (thread-db.o): Depend on $(linux_low_h).
17149
54a0b537
PA
171502009-03-17 Pedro Alves <pedro@codesourcery.com>
17151
17152 Rename "process" to "lwp" throughout.
17153
17154 * linux-low.c (all_processes): Rename to...
17155 (all_lwps): ... this.
17156 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17157 (add_process): Rename to ...
17158 (add_lwp): ... this. Adjust.
17159 (linux_create_inferior): Adjust.
17160 (linux_attach_lwp): Adjust.
17161 (linux_attach): Adjust.
17162 (linux_kill_one_process): Rename to ...
17163 (linux_kill_one_lwp): ... this. Adjust.
17164 (linux_kill): Adjust.
17165 (linux_detach_one_process): Rename to ...
17166 (linux_detach_one_lwp): ... this. Adjust.
17167 (linux_detach): Adjust.
17168 (check_removed_breakpoint): Adjust.
17169 (status_pending_p): Adjust.
17170 (linux_wait_for_process): Rename to ...
17171 (linux_wait_for_lwp): ... this. Adjust.
17172 (linux_wait_for_event): Adjust.
17173 (send_sigstop): Adjust.
17174 (wait_for_sigstop): Adjust.
17175 (stop_all_processes): Rename to ...
17176 (stop_all_lwps): ... this.
17177 (linux_resume_one_process): Rename to ...
17178 (linux_resume_one_lwp): ... this. Adjust.
17179 (linux_set_resume_request, linux_continue_one_thread)
17180 (linux_queue_one_thread, resume_status_pending_p)
17181 (usr_store_inferior_registers, regsets_store_inferior_registers)
17182 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17183 Adjust.
17184 * linux-low.h (get_process): Rename to ...
17185 (get_lwp): ... this. Adjust.
17186 (get_thread_process): Rename to ...
17187 (get_thread_lwp): ... this. Adjust.
17188 (get_process_thread): Rename to ...
17189 (get_lwp_thread): ... this. Adjust.
17190 (struct process_info): Rename to ...
17191 (struct lwp_info): ... this.
17192 (all_processes): Rename to ...
17193 (all_lwps): ... this.
17194 * proc-service.c (ps_lgetregs): Adjust.
17195 * thread-db.c (thread_db_create_event, find_one_thread)
17196 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17197
0b16c5cf
PA
171982009-03-14 Pedro Alves <pedro@codesourcery.com>
17199
17200 * server.c (handle_query): Handle "qAttached".
17201
32de4b9d
NS
172022009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17203
17204 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17205 GPLv3, update license URL.
17206
2aecd87f
DE
172072009-03-01 Doug Evans <dje@google.com>
17208
93efd302 17209 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
17210 (server_h): Add gdb_signals.h.
17211 (signals.o): Update.
17212 * server.h (target_signal_from_host,target_signal_to_host_p)
17213 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17214
86b1f9c5
PM
172152009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17216
17217 * remote-utils.c (getpkt): Also generate remote-debug
17218 information if noack_mode is set.
17219
4aa995e1
PA
172202009-02-06 Pedro Alves <pedro@codesourcery.com>
17221
17222 * server.c (handle_query): Report qXfer:siginfo:read and
17223 qXfer:siginfo:write as supported and handle them.
17224 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17225 * linux-low.c (linux_xfer_siginfo): New.
17226 (linux_target_ops): Set it.
17227
62709adf
PA
172282009-01-26 Pedro Alves <pedro@codesourcery.com>
17229
17230 * server.c (gdbserver_usage): Mention --remote-debug.
17231 (main): Accept '--remote-debug' switch.
17232
aef93bd7
DE
172332009-01-18 Doug Evans <dje@google.com>
17234
17235 * regcache.c (new_register_cache): No need to check result of xcalloc.
17236 * server.c (handle_search_memory): Back out calls to xmalloc,
17237 result is checked and error is returned to user upon failure.
17238 (handle_query): Ditto. Add more checks for result of malloc.
17239 (handle_v_cont): Check result of malloc, report error back to
17240 user upon failure.
17241 (handle_v_run): Ditto. Call freeargv.
17242 * server.h (freeargv): Declare.
17243 * utils.c (freeargv): New fn.
17244
54363045
DE
172452009-01-15 Doug Evans <dje@google.com>
17246
f626972c
DE
17247 * gdbreplay.c (perror_with_name): Make arg const char *.
17248 * server.h (target_signal_to_name): Make return type const char *.
0842e787 17249 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 17250 * utils.c (perror_with_name): Make arg const char *.
54363045 17251
18aae699
PA
172522009-01-14 Pedro Alves <pedro@codesourcery.com>
17253
17254 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17255 when handling a EXIT_PROCESS_DEBUG_EVENT.
17256
ff703abe
JB
172572009-01-06 Joel Brobecker <brobecker@adacore.com>
17258
17259 * gdbreplay.c (gdbreplay_version): Update copyright year.
17260 * server.c (gdbserver_version): Likewise.
17261
f21cc1a2 172622009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
17263
17264 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 17265 (handle_extended_wait): Improve comment.
0e21c1ec 17266
bca929d3
DE
172672008-12-13 Doug Evans <dje@google.com>
17268
17269 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17270 * server.h (ATTR_MALLOC): New macro.
17271 (xmalloc,xcalloc,xstrdup): Declare.
17272 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17273 * inferiors.c: Ditto.
17274 * linux-low.c: Ditto.
17275 * mem-break.c: Ditto.
17276 * regcache.c: Ditto.
17277 * remote-utils.c: Ditto.
17278 * server.c: Ditto.
17279 * target.c: Ditto.
17280 * win32-low.c: Ditto.
17281
97438e3f
DE
172822008-12-12 Doug Evans <dje@google.com>
17283
896c7fbb
DE
17284 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17285 in debugging printf.
17286
97438e3f
DE
17287 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17288
e3b886f8
DE
172892008-12-09 Doug Evans <dje@google.com>
17290
17291 * linux-low.h (struct process_info): Delete member tid, unused.
17292 * thread-db.c (find_one_thread): Update.
17293 (maybe_attach_thread): Update.
17294
07e059b5
VP
172952008-12-02 Pedro Alves <pedro@codesourcery.com>
17296
889bf7c5
PA
17297 * target.h (struct target_ops): Add qxfer_osdata member.
17298 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17299 and dirent.h.
17300 (linux_qxfer_osdata): New functions.
17301 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17302 callback.
17303 * server.c (handle_query): Handle "qXfer:osdata:read:".
17304 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17305 (buffer_xml_printf): New functions.
17306 * server.h (struct buffer): New.
17307 (buffer_grow_str, buffer_grow_str0): New macros.
17308 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17309 (buffer_xml_printf): Declare.
07e059b5 17310
4cab47ab
DE
173112008-11-24 Doug Evans <dje@google.com>
17312
17313 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17314
f142445f
DJ
173152008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17316
17317 * server.c (handle_v_run): Always use the supplied argument list.
17318
d0107bb6 173192008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 17320
d0107bb6
BW
17321 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17322 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 17323
2c4ad781
TJB
173242008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17325
17326 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17327 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17328 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17329 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17330 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17331 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17332 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17333 XML target descriptions.
17334 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17335 when inferior is running on an ISA 2.05 or later processor. Add
17336 special case to return offset for full 64-bit slot of FPSCR when
17337 in 32-bits.
17338
dfb64f85
DJ
173392008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17340
17341 * Makefile.in (SFILES, clean): Added sparc64 files.
17342 (reg-sparc64.o, reg-sparc64.c): New.
17343 * configure.srv (sparc*-*-linux*): New configuration.
17344 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17345 syscall arguments for SPARC.
17346 (regsets_store_inferior_registers): Likewise.
17347 * linux-sparc-low.c: New file.
17348
66b6e1dd
DE
173492008-10-21 Doug Evans <dje@google.com>
17350
17351 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17352 (READLINE_DIR,READLINE_DEP): Delete.
17353 (INTERNAL_CFLAGS): Update.
17354 (LINTFLAGS): Update.
17355
9b710a42
PA
173562008-10-10 Pedro Alves <pedro@codesourcery.com>
17357
17358 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17359 whole argv from the last run, not just argv[0].
17360
5822d809
PA
173612008-09-08 Pedro Alves <pedro@codesourcery.com>
17362
17363 * regcache.c (new_register_cache): Return NULL if the register
17364 cache size isn't known yet.
17365 (free_register_cache): Avoid dereferencing a NULL regcache.
17366
74aac56f
DJ
173672008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17368
17369 * configure.srv: Merge MIPS and MIPS64.
17370
400b20f5
MR
173712008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17372
17373 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17374
677c5bb1
LM
173752008-08-18 Luis Machado <luisgpm@br.ibm.com>
17376
17377 * Makefile.in: Add required vsx dependencies.
17378
17379 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17380 Declare init_registers_powerpc_vsx32l.
17381 Declare init_registers_powerpc_vsx64l.
17382 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17383 (ppc_arch_setup): Check for VSX in hwcap.
17384 (ppc_fill_vsxregset): New function.
17385 (ppc_store_vsxregset): New function.
17386 Add new VSX entry in regset_info target_regsets.
17387
17388 * configure.srv: Add new VSX dependencies.
17389
a6f3e723
SL
173902008-08-12 Pedro Alves <pedro@codesourcery.com>
17391
17392 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17393 (remote_open): Set or clear transport_is_reliable.
17394 (putpkt_binary): Don't expect acks in noack mode.
17395 (getpkt): Don't send ack/nac in noack mode.
17396 * server.c (handle_general_set): Handle QStartNoAckMode.
17397 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17398 qSupported.
17399 (main): Reset noack_mode on every connection.
17400 * server.h (noack_mode): Declare.
17401
a417dc56
RW
174022008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17403
17404 * Makefile.in (GDBREPLAY_OBS): New variable.
17405 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17406
3221518c
UW
174072008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17408 Daniel Jacobowitz <dan@codesourcery.com>
17409
17410 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17411 (usr_store_inferior_registers): Likewise.
17412 (regsets_store_inferior_registers): Likewise.
17413
ec56be1b
PA
174142008-07-31 Rolf Jansen <rj@surtec.com>
17415 Pedro Alves <pedro@codesourcery.com>
17416
17417 * configure.ac: Check for memmem declaration.
17418 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17419 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17420 (disable_packet_qfThreadInfo): Unconditionally compile.
17421 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17422 * configure, config.in: Regenerate.
17423
2fe5e3ff
DE
174242008-07-28 Doug Kwan <dougkwan@google.com>
17425
17426 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17427 (linux_write_memory): Remove declaration of errno.
17428
836acd6d
UW
174292008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17430
17431 * linux-low.c (handle_extended_wait): Do not use "status"
17432 variable uninitialized.
17433
aeba519e
PA
174342008-07-07 Pedro Alves <pedro@codesourcery.com>
17435
17436 * server.c (handle_v_attach): Inhibit reporting dll changes.
17437
db42f210
PA
174382008-06-27 Pedro Alves <pedro@codesourcery.com>
17439
17440 * remote-utils.c (prepare_resume_reply): If requested, don't
17441 output "thread:TID" in the T stop reply.
17442
17443 * server.c (disable_packet_vCont, disable_packet_Tthread)
17444 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17445 (handle_query): If requested, disable support for qC, qfThreadInfo
17446 and qsThreadInfo.
17447 (handle_v_requests): If requested, disable support for vCont.
17448 (gdbserver_show_disableable): New.
17449 (main): Handle --disable-packet and --disable-packet=LIST.
17450
17451 * server.h (disable_packet_vCont, disable_packet_Tthread)
17452 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17453
8e4c5421
CD
174542008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17455
17456 * server.c (gdbserver_usage): Mention --version.
17457
6e23a804
DJ
174582008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17459
17460 * Makefile.in (gdbreplay.o): New rule.
17461
90aa6a40
JM
174622008-06-06 Joseph Myers <joseph@codesourcery.com>
17463
17464 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17465 message, not gdbserver.
17466
c16158bc 174672008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
17468 Nathan Sidwell <nathan@codesourcery.com>
17469 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
17470
17471 * acinclude.m4: Include ../../config/acx.m4.
17472 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17473 * configure, config.in: Regenerate.
17474 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17475 * server.c (gdbserver_version): Print PKGVERSION.
17476 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17477 (main): Adjust gdbserver_usage calls.
17478 * gdbreplay.c (version, host_name): Add declarations.
17479 (gdbreplay_version, gdbreplay_usage): New.
17480 (main): Accept --version and --help options.
17481
aeb75bf5
DJ
174822008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17483
17484 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17485 (arm_breakpoint_at): Handle Thumb.
17486 (the_low_target): Add comment.
17487
76b233dd
UW
174882008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17489
17490 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17491
08388c79
DE
174922008-05-09 Doug Evans <dje@google.com>
17493
a3c83fae
DE
17494 * server.h (decode_search_memory_packet): Declare.
17495 * remote-utils.c (decode_search_memory_packet): New fn.
17496 * server.c (handle_search_memory_1): New fn.
08388c79
DE
17497 (handle_search_memory): New fn.
17498 (handle_query): Process qSearch:memory packets.
17499
bb9c3d36
UW
175002008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17501
17502 * regcache.c (registers_length): Remove.
17503 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17504 full register packet.
17505 * regcache.h (registers_length): Remove prototype.
17506 * server.h (PBUFSIZ): Define to 16384.
17507
7284e1be
UW
175082008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17509
17510 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17511 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17512 powerpc-64l.o, and powerpc-altivec64l.o.
17513 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17514 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17515 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17516 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17517 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17518 to srv_xmlfiles.
17519
17520 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17521 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17522 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17523 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17524 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17525 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17526 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17527 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17528 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17529 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17530 (clean): Update.
17531
17532 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17533 (init_registers_powerpc_32l): ... this new prototype.
17534 (init_registers_powerpc_32): Remove, replace by ...
17535 (init_registers_powerpc_altivec32l): ... this new prototype.
17536 (init_registers_powerpc_e500): Remove, replace by ...
17537 (init_registers_powerpc_e500l): ... this new prototype.
17538 (init_registers_ppc64): Remove, replace by ...
17539 (init_registers_powerpc_64l): ... this new prototype.
17540 (init_registers_powerpc_64): Remove, replace by ...
17541 (init_registers_powerpc_altivec64l): ... this new prototype.
17542 (ppc_num_regs): Set to 73.
17543 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17544 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17545 (ppc_cannot_store_register): Handle orig_r3 and trap.
17546 (ppc_arch_setup): Update init_registers_... calls.
17547 (ppc_fill_gregset): Handle orig_r3 and trap.
17548
17549 * inferiors.c (clear_inferiors): Reset current_inferior.
17550
fdc59709
PB
175512008-04-23 Paolo Bonzini <bonzini@gnu.org>
17552
889bf7c5
PA
17553 * acinclude.m4: Add override.m4.
17554 * configure: Regenerate.
fdc59709 17555
c9b2f845
UW
175562008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17557
17558 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17559 initial call to init_register_ppc64.
17560
550512b8
UW
175612008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17562
43aaf8b6
PA
17563 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17564 single powerpc*-*-linux* case.
550512b8
UW
17565 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17566
b6430ec3
UW
175672008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17568
17569 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 17570 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
17571 from reg_xmlfiles.
17572 * linux-ppc-low.c: Include <elf.h>.
17573 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17574 (ppc_hwcap): New global variable.
17575 (ppc_regmap): Remove __SPE__ #ifdef sections.
17576 (ppc_regmap_e500): New global variable.
17577 (ppc_cannot_store_register): Update __SPE__ special case.
17578 (ppc_get_hwcap): New function.
17579 (ppc_arch_setup): Use it to determine whether inferior supports
17580 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17581 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17582 Do not access registers if target does not support AltiVec.
17583 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17584 Do not access registers if target does not support SPE.
17585 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17586
52fa2412
UW
175872008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17588
17589 * linux-low.c (disabled_regsets, num_regsets): New.
17590 (use_regsets_p): Delete.
17591 (linux_wait_for_process): Clear disabled_regsets.
17592 (regsets_fetch_inferior_registers): Check and set it.
17593 (regsets_store_inferior_registers): Likewise.
17594 (linux_fetch_registers, linux_store_registers): Do not use
17595 use_regsets_p.
17596 (initialize_low): Allocate disabled_regsets.
17597
e28b3332
DJ
175982008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17599
17600 * Makefile.in (LIBOBJS): New.
17601 (OBS): Use LIBOBJS.
17602 (memmem.o): New rule.
17603 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17604 * configure: Regenerated.
17605
4536995d
UW
176062008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17607
17608 * server.c (handle_query): Never return "unsupported" for
17609 qXfer:features:read queries.
17610
221c031f
UW
176112008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17612
17613 * server.c (get_features_xml): Fix inverted condition.
17614 (handle_query): Always support qXfer:feature:read.
17615
ccd213ac
DJ
176162008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17617
17618 * server.c (wrapper_argv): New.
17619 (start_inferior): Handle wrapper_argv. If set, expect an extra
17620 trap.
17621 (gdbserver_usage): Document --wrapper.
17622 (main): Parse --wrapper.
17623
6fe305f7
UW
176242008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17625
17626 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17627 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17628 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17629 (ppc_set_pc): Likewise.
17630 (ppc_arch_setup): New function.
17631 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17632 of collect_register.
889bf7c5 17633 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 17634
5b0a002e
UW
176352008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17636
17637 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17638 instead of linux-ppc64-low.o.
17639 * linux-ppc64-low.c: Remove file.
17640 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17641 (linux-ppc64-low.o): Remove rule.
17642
17643 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17644 (init_registers_powerpc_64): Likewise.
17645 (ppc_regmap): Conditionally define depending on __powerpc64__.
17646 (ppc_cannot_store_register): Do not special-case "fpscr" when
17647 compiled on __powerpc64__.
17648 (ppc_collect_ptrace_register): New function.
17649 (ppc_supply_ptrace_register): New function.
17650 (ppc_breakpoint): Change type to "unsigned int".
17651 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17652 (the_low_target): Conditionally provide initializers for the
889bf7c5 17653 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
17654 collect_ptrace_register and supply_ptrace_register members.
17655
9b4b61c8
UW
176562008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17657
17658 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17659 * server.c (gdbserver_xmltarget): Define.
17660 (get_features_xml): Use it to replace "target.xml" and arch_string.
17661
17662 * configure.srv: Remove srv_xmltarget. Add XML files that were
17663 mentioned there to srv_xmlfiles instead. Remove conditional tests
17664 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17665 srv_xmlfiles and srv_regobj to include all possible choices.
17666 * configure.ac (srv_xmltarget): Remove.
17667 (srv_xmlfiles): Do not add "target.xml".
17668 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17669 checks for supplementary target information.
17670 * configure: Regenerate.
17671 * Makefile.in (XML_TARGET): Remove.
17672 (target.xml): Remove rule.
17673 (clean): Do not clean up target.xml.
17674 (.PRECIOUS): Do not mention target.xml.
17675
17676 * target.h (struct target_ops): Remove arch_string member.
17677 * linux-low.c (linux_arch_string): Remove.
17678 (linux_target_ops): Remove arch_string initializer.
17679 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17680 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17681 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17682 * spu-low.c (spu_arch_string): Remove.
17683 (spu_target_ops): Remove arch_string initializer.
17684 * win32-low.c (win32_arch_string): Remove.
17685 (win32_target_ops): Remove arch_string initializer.
17686 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17687 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17688 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17689
ee1a7ae4
UW
176902008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17691
17692 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17693 by collect_ptrace_register and supply_ptrace_register hooks.
17694 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17695 instead of checking for the_low_target.left_pad_xfer.
17696 (usr_store_inferior_registers): Use collect_ptrace_register callback
17697 instead of checking for the_low_target.left_pad_xfer.
17698
17699 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17700 (s390_supply_ptrace_register): Likewise.
17701 (s390_fill_gregset): Call s390_collect_ptrace_register.
17702 (the_low_target): Update.
17703
17704 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17705 (ppc_supply_ptrace_register): Likewise.
17706 (the_low_target): Update.
17707
17708 * linux-i386-low.c (the_low_target): Update.
17709 * linux-x86-64-low.c (the_low_target): Update.
17710
d61ddec4
UW
177112008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17712
17713 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17714 reg-s390.o and reg-s390x.o.
17715
17716 * linux-low.c (new_inferior): New global variable.
17717 (linux_create_inferior, linux_attach): Set it.
17718 (linux_wait_for_process): Call the_low_target.arch_setup after the
17719 target has stopped for the first time.
17720 (initialize_low): Do not call the_low_target.arch_setup.
17721
17722 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17723 (s390_set_pc): Likewise.
17724 (s390_arch_setup): New function.
17725 (the_low_target): Use s390_arch_setup as arch_setup routine.
17726
17727 * regcache.c (realloc_register_cache): New function.
17728 (set_register_cache): Call it for each existing regcache.
17729
d05b4ac3
UW
177302008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17731
17732 * server.h (init_registers): Remove prototype.
17733
17734 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17735 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17736 instead of init_registers ().
17737 * linux-arm-low.c (init_registers_arm): Add prototype.
17738 (init_registers_arm_with_iwmmxt): Likewise.
17739 (the_low_target): Add initializer for arch_setup field.
17740 * linux-cris-low.c (init_registers_cris): Add prototype.
17741 (the_low_target): Add initializer for arch_setup field.
17742 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17743 (the_low_target): Add initializer for arch_setup field.
17744 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17745 (the_low_target): Add initializer for arch_setup field.
17746 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17747 (the_low_target): Add initializer for arch_setup field.
17748 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17749 (the_low_target): Add initializer for arch_setup field.
17750 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17751 (the_low_target): Add initializer for arch_setup field.
17752 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17753 (init_registers_mips64_linux): Likewise.
17754 (the_low_target): Add initializer for arch_setup field.
17755 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17756 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17757 (the_low_target): Add initializer for arch_setup field.
17758 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17759 (init_registers_powerpc_64): Likewise.
17760 (the_low_target): Add initializer for arch_setup field.
17761 * linux-s390-low.c (init_registers_s390): Add prototype.
17762 (init_registers_s390x): Likewise.
17763 (the_low_target): Add initializer for arch_setup field.
17764 * linux-sh-low.c (init_registers_sh): Add prototype.
17765 (the_low_target): Add initializer for arch_setup field.
17766 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17767 (the_low_target): Add initializer for arch_setup field.
17768 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17769 (the_low_target): Add initializer for arch_setup field.
17770
17771 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17772 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17773 instead of init_registers ().
17774 * win32-arm-low.c (init_registers_arm): Add prototype.
17775 (the_low_target): Add initializer for arch_setup field.
17776 * win32-i386-low.c (init_registers_i386): Add prototype.
17777 (the_low_target): Add initializer for arch_setup field.
17778
17779 * spu-low.c (init_registers_spu): Add prototype.
17780 (initialize_low): Call initialie_registers_spu () instead of
17781 initialize_registers ().
17782
fd96d250
PA
177832008-02-19 Pedro Alves <pedro@codesourcery.com>
17784
17785 * server.c (handle_v_requests): When handling the vRun and vAttach
17786 packets, if already debugging a process, don't kill it. Return an
17787 error instead.
17788
d41b6bb4
DJ
177892008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17790
17791 * server.c (handle_query): Correct length check.
17792
5ac588cf
PA
177932008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17794
17795 * win32-low.c (do_initial_child_stuff): Add process handle
17796 parameter. Set current_process_handle and current_process_id from the
17797 parameters. Clear globals.
17798 (win32_create_inferior): Don't set current_process_handle and
17799 current_process_id here. Instead pass them on the call to
17800 do_initial_child_stuff.
17801 (win32_attach): Likewise.
17802 (win32_clear_inferiors): New.
17803 (win32_kill): Don't close the current process handle or the
17804 current thread handle here. Instead call win32_clear_inferiors.
17805 (win32_detach): Don't open a new handle to the process. Call
17806 win32_clear_inferiors.
17807 (win32_join): Don't rely on current_process_handle; open a new
17808 handle using the process id.
17809 (win32_wait): Call win32_clear_inferiors when the inferior process
17810 has exited.
17811
ecd7ecbc
DJ
178122008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17813
17814 * server.c (monitor_show_help): Add "exit".
17815
1525d545
MG
178162008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17817
ecd7ecbc 17818 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
17819 (clean): Add reg-xtensa.c.
17820 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
17821 * configure.srv (xtensa*-*-linux*) New target.
17822 * linux-xtensa-low.c: New.
17823 * xtensa-xtregs.c: New.
1525d545 17824
59a016f0
PA
178252008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17826
17827 * hostio.c: Don't include errno.h.
17828 (errno_to_fileio_errno): Move to hostio-errno.
17829 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17830 error number outputting to the target->hostio_last_error callback.
17831 (hostio_packet_error): Use FILEIO_EINVAL directly.
17832 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17833 calls to hostio_error.
17834 * hostio-errno.c: New.
17835 * server.h (hostio_last_error_from_errno): Declare.
17836 * target.h (target_ops): Add hostio_last_error member.
17837 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17838 as hostio_last_error handler.
889bf7c5 17839 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
17840 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17841 (wince_hostio_last_error): New functions.
17842 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17843 as hostio_last_error handler.
17844 (win32_target_ops) [!_WIN32_WCE]: Register
17845 hostio_last_error_from_errno as hostio_last_error handler.
17846 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17847 (hostio-errno.o): New rule.
17848 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17849 * configure.srv (srv_hostio_err_objs): New variable. Default to
17850 hostio-errno.o.
17851 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17852 * configure: Regenerate.
17853
2d717e4f
DJ
178542008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17855
17856 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17857 (linux_kill, linux_detach): Clean up the process list.
17858 * remote-utils.c (remote_open): Improve port number parsing.
17859 (putpkt_binary, input_interrupt): Only send interrupts if the target
17860 is running.
17861 * server.c (extended_protocol): Make static.
17862 (attached): Define earlier.
17863 (exit_requested, response_needed, program_argv): New variables.
17864 (target_running): New.
17865 (start_inferior): Clear attached here.
17866 (attach_inferior): Set attached here.
17867 (require_running): Define.
17868 (handle_query): Use require_running and target_running. Implement
17869 "monitor exit".
17870 (handle_v_attach, handle_v_run): New.
17871 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17872 (gdbserver_usage): Update.
17873 (main): Redo argument parsing. Handle --debug and --multi. Handle
17874 --attach along with other options or after the port. Save
17875 program_argv. Support no initial program. Resynchronize
17876 communication with GDB after an error. Handle "monitor exit".
17877 Use require_running and target_running. Always allow the extended
17878 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17879 restart in extended mode.
17880 * README: Refer to the GDB manual. Update --attach usage.
17881
7407e2de
AS
178822007-12-20 Andreas Schwab <schwab@suse.de>
17883
17884 * linux-low.c (STACK_SIZE): Define.
17885 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17886 (linux_test_for_tracefork): Likewise.
17887
b65d95c5
DJ
178882007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17889
17890 * linux-low.c (linux_wait_for_event): Update messages. Do not
17891 reinsert auto-delete breakpoints.
17892 * mem-break.c (struct breakpoint): Change return type of handler to
17893 int.
17894 (set_breakpoint_at): Update handler type.
17895 (reinsert_breakpoint_handler): Return 1 instead of calling
17896 delete_breakpoint.
17897 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17898 setting a new one.
17899 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17900 * mem-break.h (set_breakpoint_at): Update handler type.
17901 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17902 * win32-low.c (auto_delete_breakpoint): New.
17903 (get_child_debug_event): Use it.
17904
4e799345
DJ
179052007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17906
17907 * configure.ac: Check for pread and pwrite.
17908 * hostio.c (handle_pread): Fall back to lseek and read.
17909 (handle_pwrite): Fall back to lseek and write.
17910 * config.in, configure: Regenerated.
17911
27524b67
DJ
179122007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17913
17914 * server.c (myresume): Add own_buf argument.
17915 (main): Update calls.
17916
a20d5e98
DJ
179172007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17918
17919 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17920 * remote-utils.c (remote_open): Do not call disable_async_io.
17921 (block_async_io): Delete.
17922 (unblock_async_io): Make static.
17923 (initialize_async_io): New.
17924 * server.c (handle_v_cont): Handle async I/O here.
17925 (myresume): Likewise. Move other common resume tasks here...
17926 (main): ... from here. Call initialize_async_io. Disable async
17927 I/O before the main loop.
17928 * server.h (initialize_async_io): Declare.
17929 (block_async_io, unblock_async_io): Delete prototypes.
17930 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17931
b79d787e
DJ
179322007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17933
17934 * remote-utils.c (readchar): Allow binary data in received messages.
17935
d97903b2
PA
179362007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17937
17938 * win32-low.c (attaching): New global.
17939 (win32_create_inferior): Clear the `attaching' global.
17940 (win32_attach): Set the `attaching' global.
17941 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17942 attaching. Only set a breakpoint at the entry point if not
17943 attaching.
17944
311de423
PA
179452007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17946
17947 * server.c (main): Don't report dll events on the initial
17948 connection on attaches.
17949
6c2d16d2
PA
179502007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17951
17952 * server.c (main): Relax numerical bases supported for the pid of
17953 the --attach command line argument.
17954
5ca906e6
PA
179552007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17956
17957 * win32-low.c (win32_attach): Call OpenProcess before
17958 DebugActiveProcess, not after. Add last error output to error
17959 call.
17960
9c6c8194
PA
179612007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17962
17963 * win32-low.c (win32_get_thread_context)
17964 (win32_set_thread_context): New functions.
17965 (thread_rec): Use win32_get_thread_context.
17966 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17967 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17968 field.
17969
4d5d1aaa
PA
179702007-12-03 Leo Zayas
17971 Pedro Alves <pedro_alves@portugalmail.pt>
17972
17973 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17974 global variables.
17975 (child_add_thread): Minor cleanup.
17976 (child_continue): Resume artificially suspended threads before
17977 calling ContinueDebugEvent.
17978 (suspend_one_thread): New.
17979 (fake_breakpoint_event): New.
17980 (get_child_debug_event): Change return type to int. Check here if
17981 gdb sent an interrupt request. If a soft interrupt was requested,
17982 fake a breakpoint event. Return 0 if there is no event to handle,
17983 and 1 otherwise.
17984 (win32_wait): Don't check here if gdb sent an interrupt request.
17985 Ensure there is a valid event to handle.
17986 (win32_request_interrupt): Add soft interruption method as last
17987 resort.
17988
c436e841
PA
179892007-12-03 Leo Zayas
17990 Pedro Alves <pedro_alves@portugalmail.pt>
17991
17992 * win32-low.h (win32_thread_info): Add descriptions to the
17993 structure members. Replace `suspend_count' counter by a
17994 `suspended' flag.
17995 * win32-low.c (thread_rec): Update condition of when to get the
17996 context from the inferior. Rely on ContextFlags being set if it
17997 has already been retrieved. Only suspend the inferior thread if
17998 we haven't already. Warn if that fails.
17999 (continue_one_thread): s/suspend_count/suspended/. Only call
18000 ResumeThread once. Warn if that fails.
18001
e7b5fa67
PA
180022007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18003
18004 * win32-low.c (win32_wait): Don't read from the inferior when it
18005 has already exited.
18006
a385171d
PA
180072007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18008
18009 * Makefile.in (win32_low_h): New variable.
18010 (win32-low.o): Add dependency on $(win32_low_h).
18011 (win32-arm-low.o, win32-i386-low.o): New rules.
18012
f80c84b3
DJ
180132007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18014
18015 * hostio.c: Correct copyright year.
18016
a6b151f1
DJ
180172007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18018
18019 * Makefile.in (OBS): Add hostio.o.
18020 (hostio.o): New rule.
18021 * server.h (handle_vFile): Declare.
18022 * hostio.c: New file.
18023 * server.c (handle_v_requests): Take packet_len and new_packet_len
18024 for binary packets. Call handle_vFile.
18025 (main): Update call to handle_v_requests.
18026
f9387fc3
DJ
180272007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18028
18029 * linux-low.c: Include <sched.h>.
18030
51c2684e
DJ
180312007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18032
18033 * linux-low.c (linux_tracefork_grandchild): New.
18034 (linux_tracefork_child): Use clone.
18035 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18036
75f83163
JB
180372007-10-31 Joel Brobecker <brobecker@adacore.com>
18038
18039 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18040
da5898ce
DJ
180412007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18042
18043 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18044
24a09b5f
DJ
180452007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18046
18047 * inferiors.c (change_inferior_id): Delete.
18048 (add_pid_to_list, pull_pid_from_list): New.
18049 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18050 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18051 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18052 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18053 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18054 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18055 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18056 (using_threads): Always set to 1.
18057 (handle_extended_wait): New.
18058 (add_process): Do not set TID.
18059 (linux_create_inferior): Set must_set_ptrace_flags.
18060 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18061 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18062 (linux_thread_alive): Rename TID argument to LWPID.
18063 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18064 (linux_wait_for_event): Do not use TID or check using_threads. Update
18065 call to dead_thread_notify. Call handle_extended_wait.
18066 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18067 (send_sigstop): Delete sigstop_sent.
18068 (wait_for_sigstop): Avoid TID.
18069 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18070 (linux_test_for_tracefork): New.
18071 (linux_lookup_signals): Use thread_db_active and
18072 linux_supports_tracefork_flag.
18073 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18074 * linux-low.h (get_process_thread): Avoid TID.
18075 (struct process_ifo): Move thread_known and tid to the end. Remove
18076 sigstop_sent.
18077 (linux_attach_lwp, thread_db_init): Update prototypes.
18078 * server.h (change_inferior_id): Delete prototype.
18079 (add_pid_to_list, pull_pid_from_list): New prototypes.
18080 * thread-db.c (thread_db_use_events): New.
18081 (find_first_thread): Rename to...
18082 (find_one_thread): ...this. Update callers and messages. Do not
18083 call fatal. Check thread_db_use_events. Do not call
18084 change_inferior_id or new_thread_notify.
18085 (maybe_attach_thread): Update. Do not call new_thread_notify.
18086 (thread_db_init): Set thread_db_use_events. Check use_events.
18087 * utils.c (fatal, warning): Correct message prefix.
18088
30ed0a8f
DJ
180892007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18090
18091 * Makefile.in (clean): Remove new files.
18092 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18093 (powerpc-64.o, powerpc-64.c): New rules.
18094 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18095 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18096 with SPE.
18097 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18098 SPE targets.
18099 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18100 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18101 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18102 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18103 (target_regsets): Add AltiVec and SPE register sets.
18104 * configure.ac: Check for AltiVec and SPE.
18105 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18106 (ppc_fill_vrregset, ppc_store_vrregset): New.
18107 (target_regsets): Add AltiVec register set.
18108 * configure: Regenerated.
18109
fd462a61
DJ
181102007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18111
18112 * linux-low.c (O_LARGEFILE): Define.
18113 (linux_read_memory): Use /proc/PID/mem.
18114 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18115 * configure, config.in: Regenerated.
18116
69f223ed
DJ
181172007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18118
18119 * linux-low.c (linux_wait_for_event): Do not pass signals while
18120 single-stepping.
18121
aec18585
PA
181222007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18123
18124 * win32-low.c (create_process): New.
18125 (win32_create_inferior): Use create_process instead of
18126 CreateProcess. If create_process failed retry appending an ".exe"
18127 suffix. Store the GetLastError result immediatelly after
18128 create_process calls and use it on the call to error.
18129
34d86ddd
PA
181302007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18131
18132 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18133
5a0e3bd0
JB
181342007-08-23 Joel Brobecker <brobecker@adacore.com>
18135
18136 * configure.ac: Switch license to GPLv3.
18137
f88c79e6
MS
181382007-08-01 Michael Snyder <msnyder@access-company.com>
18139
18140 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18141
6b3d9b83
PA
181422007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18143
18144 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18145 typedef.
18146 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18147 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18148 CloseToolhelp32Snapshot.
18149 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18150 CloseToolhelp32Snapshot.
18151
c588c53c
MS
181522007-07-27 Michael Snyder <michael.snyder@access-company.com>
18153
18154 * server.c (main): Check for inferior exit before main loop.
18155
aa0403d9
PA
181562007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18157
18158 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18159 instead of on tmp_desc.
18160
255e7678
DJ
181612007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18162 Daniel Jacobowitz <dan@codesourcery.com>
18163
18164 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18165 (add_thread): Minor cleanups.
18166 (clear_inferiors): Move lower in the file. Clear the DLL
18167 list.
18168 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18169 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18170 (xml_escape_text): New.
18171 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18172 for qSupported.
18173 (handle_v_cont): Report errors.
18174 (gdbserver_version): Update.
18175 (main): Correct size of own_buf. Do not report initial DLL events.
18176 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18177 (unloaded_dll, xml_escape_text): New.
18178 * win32-low.c (enum target_waitkind): Update comments.
18179 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18180 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18181 (win32_EnumProcessModules, win32_GetModuleInformation)
18182 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18183 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18184 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18185 (win32_Module32First, win32_Module32Next, load_toolhelp)
18186 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18187 (get_child_debug_event): Handle DLL events.
18188 (win32_wait): Likewise.
18189
0d37add9
DJ
181902007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18191
18192 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18193 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18194
45e2715e
PA
181952007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18196
18197 * win32-low.c (handle_output_debug_string): Ignore event if not
18198 waiting.
18199
c5674cf1
PA
182002007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18201
18202 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18203
2bbe3cc1
DJ
182042007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18205
18206 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18207
ae13219e
DJ
182082007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18209
18210 * inferiors.c (change_inferior_id): Add comment.
18211 * linux-low.c (check_removed_breakpoint): Add an early
18212 prototype. Improve debug output.
18213 (linux_attach): Doc update.
18214 (linux_detach_one_process, linux_detach): Clean up before releasing
18215 each process.
18216 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18217 * linux-low.h (struct process_info): Doc improvement.
18218 * mem-break.c (delete_all_breakpoints): New.
18219 * mem-break.h (delete_all_breakpoints): New prototype.
18220 * thread-db.c (find_first_thread): New.
18221 (thread_db_create_event): Call it instead of
18222 thread_db_find_new_threads. Clean up unused variables.
18223 (maybe_attach_thread): Remove first thread handling.
18224 (thread_db_find_new_threads): Use find_first_thread.
18225 (thread_db_get_tls_address): Likewise.
18226
4105de34
DJ
182272007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18228
18229 * thread-db.c (thread_db_find_new_threads): Add prototype.
18230 (thread_db_create_event): Check for the main thread before adding
18231 a new thread.
18232 (maybe_attach_thread): Only enable event reporting if TID == 0.
18233 (thread_db_get_tls_address): Check for new threads.
18234
2b876972
DJ
182352007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18236
18237 * linux-low.c (linux_create_inferior): Try execv before execvp.
18238 * spu-low.c (spu_create_inferior): Likewise.
18239
7a245884
DJ
182402007-06-13 Mike Frysinger <vapier@gentoo.org>
18241
18242 * linux-low.c (linux_create_inferior): Change execv to execvp.
18243 * spu-low.c (spu_create_inferior): Likewies.
18244
117ce543
DJ
182452007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18246
18247 * Makefile.in (clean): Clean new files instead of deleted ones.
18248 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18249 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18250 rules.
18251 * configure.srv: Specify XML files and new regformats for MIPS and
18252 MIPS64 GNU/Linux.
18253 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18254 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18255 an entry for the restart register.
18256 (mips_cannot_fetch_register, mips_cannot_store_register)
18257 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18258 register names to match the XML descriptions.
18259 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18260 restart register instead of $0.
18261
0e7f50da
UW
182622007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18263 Markus Deuling <deuling@de.ibm.com>
18264
18265 * remote-utils.c (decode_xfer_write): New function.
18266 * server.h (decode_xfer_write): Add prototype.
18267 * server.c (handle_query): Add PACKET_LEN argument. Support
18268 qXfer:spu:read and qXfer:spu:write packets.
18269 (main): Pass packet_len to handle_query.
18270 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18271 * target.h (target_ops): Add qxfer_spu.
18272
374c1d38
UW
182732007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18274
18275 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18276 accessing non-seekable spufs files.
18277
bb63802a
UW
182782007-05-16 Markus Deuling <deuling@de.ibm.com>
18279
889bf7c5 18280 * server.c (handle_query): Add reply for qC packet.
bb63802a 18281
7390519e
PA
182822007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18283 Leo Zayas <lerele@champenstudios@com>
18284
18285 * server.h (check_remote_input_interrupt_request): New function.
18286 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18287 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18288 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18289 (check_remote_input_interrupt_request): New function.
18290 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 18291 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
18292 winapi_GenerateConsoleCtrlEvent): New typedefs.
18293 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18294 to 250 ms.
18295 (win32_wait): Check for remote interrupt request
18296 with check_remote_input_interrupt_request.
18297 (win32_request_interrupt): New function.
18298 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18299
34b34921
PA
183002007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18301
18302 * win32-low.c (debug_registers_changed,
18303 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18304 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18305 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18306 (thread_rec): Get context using the low target.
18307 (child_add_thread): Call thread_added on the low target,
18308 which does the same thing.
18309 (regptr): Delete.
18310 (do_initial_child_stuff): Remove debug registers references.
18311 Set context using the low target. Resume threads after
18312 setting the contexts.
18313 (child_continue): Remove dead variable. Remove debug
18314 registers references.
18315 (child_fetch_inferior_registers): Go through the low target.
18316 (do_child_store_inferior_registers): Remove.
18317 (child_store_inferior_registers): Go through the low target.
18318 (win32_resume): Remove debug registers references.
18319 Set context using the low target.
18320 (handle_exception): Change return type to void. Don't record
18321 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18322 first chance exception.
889bf7c5 18323 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
18324 goto loop. Always return after waiting for debug event.
18325 (win32_wait): Convert to switch statement. Handle spurious
18326 events.
18327
18328 * win32-i386-low.c (debug_registers_changed,
18329 debug_registers_used): New.
18330 (initial_stuff): Rename to ...
18331 (i386_initial_stuff): ... this. Clear debug registers
18332 state variables.
18333 (store_debug_registers): Delete.
18334 (i386_get_thread_context): New.
18335 (load_debug_registers): Delete.
18336 (i386_set_thread_context): New.
18337 (i386_thread_added): New.
18338 (single_step): Rename to ...
18339 (i386_single_step): ... this.
18340 (do_fetch_inferior_registers): Rename to ...
18341 (i386_fetch_inferior_register): ... this.
18342 (i386_store_inferior_register): New.
18343 (the_low_target): Adapt to new interface.
18344
18345 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18346 (arm_get_thread_context): New.
18347 (arm_set_thread_context): New.
18348 (regptr): New.
18349 (do_fetch_inferior_registers): Rename to ...
18350 (arm_fetch_inferior_register): ... this.
18351 (arm_store_inferior_register): New.
18352 (arm_wince_breakpoint): Reimplement as unsigned long.
18353 (arm_wince_breakpoint_len): Define.
18354 (the_low_target): Adapt to new interface.
18355
18356 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18357 load_debug_registers. Add get_thread_context, set_thread_context,
18358 thread_added and store_inferior_register. Rename
18359 fetch_inferior_registers to fetch_inferior_register.
18360 (regptr): Remove declaration.
18361
dd6953e1
PA
183622007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18363
18364 * linux-low.c (linux_detach): Change return type to int. Return 0.
18365 * spu-low.c (spu_detach): Likewise.
18366
444d6139
PA
183672007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18368
18369 * target.h (target_ops): Change return type of detach to int.
18370 Add join.
18371 (join_inferior): New.
18372 * server.c (main): Don't skip detach support on mingw32.
18373 If the inferior doesn't support detaching return error.
18374 Call join_inferior instead of using waitpid.
18375 * linux-low.c (linux_join): New.
18376 (linux_target_op): Add linux_join.
18377 * spu-low.c (spu_join): New.
18378 (spu_target_ops): Add spu_join.
18379 * win32-low.c (win32_detach): Adapt to new interface.
18380 Reopen current_process_handle before detaching. Issue a child
18381 resume before detaching.
18382 (win32_join): New.
18383 (win32_target_op): Add win32_join.
18384
1d5315fe
PA
183852007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18386
18387 * win32-low.c (win32-attach): Fix return value.
18388 * target.h (target_ops): Describe ATTACH return values.
18389
bf914831
PA
183902007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18391
18392 * win32-low.c (GETPROCADDRESS): Define.
18393 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18394 (winapi_DebugSetProcessKillOnExit): Likewise.
18395 (win32_create_inferior): Force usage of ansi CreateProcessA.
18396 (win32_attach): Use GETPROCADDRESS.
18397 (win32_detach): Likewise.
18398
f72f3e60
PA
183992007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18400
18401 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18402
ed50f18f
PA
184032007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18404
18405 * win32-low.c: Commit leftover changes from 2007-03-29.
18406
0c2ead7e
DJ
184072007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18408
18409 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18410 fields short instead of int. Add explicit padding.
18411 (i387_cache_to_fsave): Remove unnecessary casts.
18412 (i387_fsave_to_cache): Doc fix.
18413 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18414
73725ff3
DJ
184152007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18416
18417 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18418 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18419
d99f33d8
PA
184202007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18421
18422 * configure.srv (arm*-*-mingw32ce*): Move near the other
18423 arm targets.
18424
68070c10
PA
184252007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18426
2482afc6 18427 * configure.ac: Add errno checking.
68070c10
PA
18428 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18429 sys/file.h and malloc.h.
18430 (AC_CHECK_DECLS): Add perror.
18431 (srv_mingwce): Handle.
2482afc6 18432 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
18433 win32-i386-low.o to srv_tgtobj.
18434 (i[34567]86-*-mingw*): Likewise.
18435 (arm*-*-mingw32ce*): Add case.
18436 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18437 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18438 [__MINGW32CE__] (strerror): New function.
18439 [__MINGW32CE__] (errno): Define to GetLastError.
18440 [__MINGW32CE__] (COUNTOF): New macro.
18441 (remote_open): Remove extra close call.
18442 * mem-break.c (delete_breakpoint_at): New function.
18443 * mem-break.h (delete_breakpoint_at): Declare.
18444 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18445 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18446 [USE_WIN32API] (read, write): Add char* casts.
18447 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18448 * server.h: Include wincecompat.h on Windows CE.
18449 [HAVE_ERRNO_H]: Check.
18450 (perror): Declare if not declared.
18451 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18452 (perror_with_name): Remove errno declaration.
18453 * wincecompat.h: New.
18454 * wincecompat.c: New.
18455 * win32-low.h: New.
18456 * win32-arm-low.c: New.
18457 * win32-i386-low.c: New.
18458 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18459 (OUTMSG2): Make it safe.
18460 (_T): New macro.
18461 (COUNTOF): New macro.
18462 (NUM_REGS): Get it from the low target.
18463 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18464 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18465 (thread_rec): Let low target handle debug registers.
18466 (child_add_thread): Likewise.
18467 (child_init_thread_list): Likewise.
18468 (continue_one_thread): Likewise.
18469 (regptr): New.
18470 (do_child_fetch_inferior_registers): Move to ...
18471 * win32-i386-low.c: ... here, and rename to ...
18472 (do_fetch_inferior_registers): ... this.
889bf7c5 18473 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
18474 Go through the low target.
18475 (do_child_store_inferior_registers): Use regptr.
18476 (strwinerror): New function.
18477 (win32_create_inferior): Handle Windows CE.
18478 Use strwinerror instead of strerror on Windows error
18479 codes. Add program to the error output.
18480 Don't close the main thread handle on Windows CE.
18481 (win32_attach): Use coredll.dll on Windows CE.
18482 (win32_kill): Close current process and current
18483 thread handles.
18484 (win32_detach): Use coredll.dll on Windows CE.
18485 (win32_resume): Let low target handle debug registers, and
18486 step request.
18487 (handle_exception): Add/Remove initial breakpoint. Avoid
18488 non-existant WSTOPSIG on Windows CE.
18489 (win32_read_inferior_memory): Cast to remove warning.
18490 (win32_arch_string): Go through the low target.
18491 (initialize_low): Call set_breakpoint_data with the low
18492 target's breakpoint.
18493 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18494 FOP_REGNUM, mappings): Move to ...
18495 * win32-i386-low.c: ... here.
18496 * win32-low.c (win32_thread_info): Move to ...
18497 * win32-low.h: ... here.
18498 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18499 win32-arm-low.c and wincecompat.c.
18500 (all:): Add $EXEEXT.
18501 (install-only:): Likewise.
18502 (gdbserver:): Likewise.
18503 (gdbreplay:): Likewise.
18504 * config.in: Regenerate.
18505 * configure: Regenerate.
18506
41093d81
PA
185072007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18508
18509 * win32-low.c: Rename typedef thread_info to
18510 win32_thread_info throughout.
18511
544afa54
PA
185122007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18513
18514 * win32-i386-low.c: Rename to ...
18515 * win32-low.c: ... this.
18516 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18517 * Makefile.in: Likewise.
18518
bce7165d
PA
185192007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18520
18521 * remote-utils.c (monitor_output): Constify msg parameter.
18522 * server.h (monitor_output): Likewise.
18523 * win32-i386-low.c (handle_output_debug_string): New.
18524 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18525 handle_output_debug_string.
18526 (get_child_debug_event): Likewise.
18527
506c7aa0
DJ
185282007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18529
18530 * server.c (main): Correct strtoul check.
18531
42c81e2a
DJ
185322007-03-27 Jon Ringle <jon@ringle.org>
18533
18534 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18535
9453113a
DJ
185362007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18537
18538 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18539
64a69107
DJ
185402007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18541
18542 * terminal.h: Check HAVE_SGTTY_H.
18543
185442007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
18545
18546 * remote-utils.c (remote_open): Print out the assigned port number.
18547
c74d0ad8
DJ
185482007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18549
18550 * remote-utils.c (monitor_output): New function.
18551 * server.c (debug_threads): Define here.
18552 (monitor_show_help): New function.
18553 (handle_query): Handle qRcmd.
18554 (main): Do not handle 'd' packet.
18555 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18556 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18557 of debug_threads.
18558
de7c3b4a
PA
185592007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18560
18561 * Makefile.in (EXEEXT): New.
18562 (clean): Use $(EXEEXT).
18563
ef57601b
PA
185642007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18565
18566 * target.h (target_ops): Rename send_signal to request_interrupt,
18567 and remove enum target_signal parameter.
18568 * linux-low.c (linux_request_interrupt): Rename from
18569 linux_send_signal, and always send SIGINT.
18570 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18571 and always send SIGINT.
18572 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18573 of send_signal.
18574 (input_interrupt): Likewise.
18575
820f2bda
PA
185762007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18577
18578 * server.c (get_features_xml): Check if target implemented
18579 arch_string.
18580 * win32-i386-low.c (win32_arch_string): New.
18581 (win32_target_ops): Add win32_arch_string as arch_string member.
18582
ab39bf24
UW
185832007-02-22 Markus Deuling <deuling@de.ibm.com>
18584
18585 * spu-low.c (spu_arch_string): New.
18586 (spu_target_ops): Add spu_arch_string.
18587
61ff6e04
DJ
185882007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18589
18590 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18591 * configure.ac: Do not check for terminal.h.
18592 * configure, config.in: Regenerated.
18593
fb1e4ffc
DJ
185942007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18595
18596 * Makefile.in (OBS): Add $(XML_BUILTIN).
18597 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18598 (clean): Update.
18599 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18600 (arm-with-iwmmxt.c): New.
18601 * config.in, configure: Regenerate.
18602 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18603 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18604 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18605 (arm*-*-linux*): Add iWMMXt and regset support.
18606 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18607 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18608 (arm_store_wmmxregset, target_regsets): New.
18609 * server.c (get_features_xml): Take annex argument. Check builtin
18610 XML documents.
18611 (handle_query): Handle multiple annexes.
18612
0f48aa01
DJ
186132007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18614
18615 * remote-utils.c [USE_WIN32API] (read, write): Define.
18616 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18617 write.
18618
23181151
DJ
186192007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18620
18621 * linux-i386-low.c (the_low_target): Set arch_string.
18622 * linux-x86-64-low.c (the_low_target): Likewise.
18623 * linux-low.c (linux_arch_string): New.
18624 (linux_target_ops): Add it.
18625 * linux-low.h (struct linux_target_ops): Add arch_string.
18626 * server.c (write_qxfer_response): Use const void * for DATA.
18627 (get_features_xml): New.
18628 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18629 * target.h (struct target_ops): Add arch_string method.
18630
9d606399
DJ
186312007-01-03 Denis Pilat <denis.pilat@st.com>
18632 Daniel Jacobowitz <dan@codesourcery.com>
18633
18634 * linux-low.c (linux_kill): Handle being called with no threads.
18635 * win32-i386-low.c (win32_kill): Likewise.
18636 (get_child_debug_event): Clear current_process_handle.
18637
186382006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
18639 Daniel Jacobowitz <dan@codesourcery.com>
18640
18641 * remote-utils.c (remote_open): Check the type of specified
18642 serial port devices before opening them.
18643 * server.c (main): Kill the inferior if an error occurs during
18644 the first remote_open.
18645
a5e13d24
DJ
186462006-12-05 Markus Deuling <deuling@de.ibm.com>
18647
18648 * README: Update supported targets.
18649
186947f7
DJ
186502006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18651
18652 * Makefile.in (clean): Remove reg-mips64.c.
18653 (reg-mips64.c, reg-mips64.o): New rules.
18654 * configure.srv: Handle mips64. Include regset support for mips.
18655 * linux-mips-low.c (union mips_register): New.
18656 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18657 (mips_breakpoint, mips_breakpoint_at): Use int.
18658 (mips_collect_register, mips_supply_register)
18659 (mips_collect_register_32bit, mips_supply_register_32bit)
18660 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18661 (mips_store_fpregset, target_regsets): New.
18662 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18663
a13e2c95
UW
186642006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18665
18666 * configure.srv: Add target "spu*-*-*".
18667 * Makefile.in (clean): Remove reg-spu.c.
18668 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18669 * spu-low.c: New file.
18670
cb7283db
DJ
186712006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18672
18673 * configure.ac: Correct td_thr_tls_get_addr test.
18674 * configure: Regenerated.
18675
89be2091
DJ
186762006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18677
18678 * linux-low.c (linux_wait_for_event): Reformat. Use the
18679 pass_signals array.
18680 * remote-utils.c (decode_address_to_semicolon): New.
18681 * server.c (pass_signals, handle_general_set): New.
18682 (handle_query): Mention QPassSignals for qSupported.
18683 (main): Call handle_general_set.
18684 * server.h (pass_signals, decode_address_to_semicolon): New.
18685
000ef4f0
DJ
186862006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18687
18688 * server.c (handle_query): Correct error handling for read_auxv.
18689
b7149293
UW
186902005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18691
18692 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18693 and srv_linux_thread_db to yes.
18694 * linux-s390-low.c (s390_fill_gregset): New function.
18695 (target_regsets): Define data structure.
18696
dae5f5cf
DJ
186972006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18698
18699 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18700 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18701 * config.in, configure: Regenerated.
18702 * inferiors.c (gdb_id_to_thread): New function.
18703 (gdb_id_to_thread_id): Use it.
18704 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18705 * linux-low.h (struct process_info): Add th member.
18706 (thread_db_get_tls_address): New prototype.
18707 * remote-utils.c (decode_address): Make non-static.
18708 * server.c (handle_query): Handle qGetTLSAddr.
18709 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18710 * target.h (struct target_ops): Add get_tls_address.
18711 * thread-db.c (maybe_attach_thread): Save the thread handle.
18712 (thread_db_get_tls_address): New.
18713
32ca6d61
DJ
187142006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18715
18716 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18717 (linux_resume_one_process): Take a siginfo_t *. Update all
18718 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18719 (struct pending_signals): Add a siginfo_t.
18720 (linux_wait_for_process): Always set last_status.
18721 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18722 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18723 * linux-low.h (struct process_info): Add last_status.
18724
5ffff7c1
DJ
187252006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18726
18727 * remote-utils.c (try_rle): New function.
18728 (putpkt_binary): Use it.
18729
8695c747
DJ
187302006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18731
18732 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18733 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18734 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18735 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18736 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18737 point registers.
18738
290fadea
RS
187392006-08-08 Richard Sandiford <richard@codesourcery.com>
18740
18741 * server.c (terminal_fd): New variable.
18742 (old_foreground_pgrp): Likewise.
18743 (restore_old_foreground_pgrp): New function.
18744 (start_inferior): Record the terminal file descriptor in terminal_fd
18745 and its original foreground group in old_foreground_pgrp. Register
18746 restore_old_foreground_pgrp with atexit().
18747
9f2e1e63
DJ
187482006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18749
18750 * server.c (handle_query): Correct qPart to qXfer.
18751
b80864fb
DJ
187522006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18753
18754 * configure.ac: Check for more headers which are missing on
18755 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18756 * configure.srv: Add Cygwin and mingw32.
18757 * remote-utils.c: Don't include headers unconditionally which
18758 are missing on mingw32. Include <winsock.h> for mingw32.
18759 (remote_open): Adjust for mingw32 support. Flush
18760 standard error after writing to it.
18761 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18762 (unblock_async_io, enable_async_io, disable_async_io)
18763 (readchar, getpkt): Update for Winsock support.
18764 (prepare_resume_reply): Expect a protocol signal number.
18765 * server.c: Disable <sys/wait.h> on mingw32.
18766 (start_inferior): Adjust for mingw32 support. Flush
18767 standard error after writing to it.
18768 (attach_inferior): Likewise. Use protocol signal
18769 numbers.
18770 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18771 and names.
18772 * win32-i386-low.c: New file.
18773 * Makefile.in (XM_CLIBS): Set.
18774 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18775 (win32-i386-low.o): New dependency rule.
18776 * linux-low.c (linux_wait): Use target signal numbers.
18777 * target.h (struct target_ops): Doc fix.
18778 * server.h (target_signal_to_name): New prototype.
18779 * gdbreplay.c: Don't include headers unconditionally which
18780 are missing on mingw32. Include <winsock.h> for mingw32.
18781 (remote_close, remote_open): Adjust for Winsock support.
18782 * configure, config.in: Regenerated.
18783
0876f84a
DJ
187842006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18785
18786 * server.c (decode_xfer_read, write_qxfer_response): New.
18787 (handle_query): Take a packet length argument. Handle
18788 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18789 the qSupported response.
18790 (main): Update call to handle_query.
18791
01f9e8fa
DJ
187922006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18793
18794 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18795 (putpkt_binary): Renamed from putpkt and adjusted for binary
18796 data.
18797 (putpkt): New wrapper for putpkt_binary.
18798 (readchar): Don't mask off the high bit.
18799 (decode_X_packet): New function.
18800 * server.c (main): Call putpkt_binary if a handler sets the packet
18801 length. Save the length of the incoming packet. Handle 'X'.
18802 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18803
be2a5f71
DJ
188042006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18805
18806 * server.c (handle_query): Handle qSupported.
18807
ea025f5f
DJ
188082006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18809
18810 * remote-utils.c (all_symbols_looked_up): New variable.
18811 (look_up_one_symbol): Check it.
18812 * server.h (look_up_one_symbol): New declaration.
18813 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18814
9308fc88
DJ
188152006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18816
18817 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 18818 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
18819 (PTRACE_GET_THREAD_AREA): Define.
18820 (ps_get_thread_area): New function.
18821
52fb6437
NS
188222006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18823
18824 * configure.srv (m68k*-*-uclinux*): New target.
18825 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18826 (linux_resume_one_process): Remove extraneous cast.
18827 (linux_read_offsets): New.
18828 (linux_target_op): Add linux_read_offsets on mmuless systems.
18829 * server.c (handle_query): Add qOffsets logic.
18830 * target.h (struct target_ops): Add read_offsets.
18831
21b0f40c
DJ
188322006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18833
18834 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18835 (PTRACE_GET_THREAD_AREA): Define.
18836 (ps_get_thread_area): New function.
18837 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18838 (linux-x86-64-low.o): Update.
18839
0050a760
DJ
188402006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18841
18842 * configure.ac: Remove checks for prfpregset_t.
18843 * gdb_proc_service.h: New file.
18844 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18845 new "gdb_proc_service.h".
18846 * proc-service.c: Likewise.
18847 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18848 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18849 * Makefile.in (gdb_proc_service_h): Updated.
18850 * configure, config.in: Regenerated.
18851
b92a518e
DJ
188522006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18853
18854 * remote-utils.c (prepare_resume_reply): Move declaration
18855 of gdb_id_from_wait to the top of the block.
18856
545587ee
DJ
188572006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18858
18859 * linux-low.c (regsets_store_inferior_registers): Read the regset
18860 from the target before filling it.
18861
9db87ebd
DJ
188622006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18863
18864 * server.c (attach_inferior): Return SIGTRAP for a successful
18865 attach.
18866
dd24457d
DJ
188672006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18868
18869 * Makefile.in (OBS): Add version.o.
18870 (STAGESTUFF): Delete.
18871 (version.o): Add dependencies.
18872 (version.c): Replace rule.
18873 (clean): Remove version.c.
18874 * server.c (gdbserver_version): New.
18875 (gdbserver_usage): Use printf.
18876 (main): Handle --version and --help.
18877 * server.h (version, host_name): Add declarations.
18878
6f0f660e
EZ
188792005-12-23 Eli Zaretskii <eliz@gnu.org>
18880
889bf7c5
PA
18881 * linux-arm-low.c:
18882 * linux-arm-low.c:
18883 * inferiors.c:
18884 * i387-fp.h:
18885 * i387-fp.c:
18886 * gdbreplay.c:
18887 * regcache.c:
18888 * proc-service.c:
18889 * mem-break.h:
18890 * mem-break.c:
18891 * linux-x86-64-low.c:
18892 * linux-sh-low.c:
18893 * linux-s390-low.c:
18894 * linux-ppc64-low.c:
18895 * linux-ppc-low.c:
18896 * linux-mips-low.c:
18897 * linux-m68k-low.c:
18898 * linux-m32r-low.c:
18899 * linux-low.h:
18900 * linux-low.c:
18901 * linux-ia64-low.c:
18902 * linux-i386-low.c:
18903 * linux-crisv32-low.c:
18904 * thread-db.c:
18905 * terminal.h:
18906 * target.h:
18907 * target.c:
18908 * server.h:
18909 * server.c:
18910 * remote-utils.c:
18911 * regcache.h:
18912 * utils.c:
18913 * Makefile.in:
18914 * configure.ac:
6f0f660e
EZ
18915 * gdbserver.1: Add (C) after Copyright. Update the FSF
18916 address.
18917
9d1fb177
DJ
189182005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18919
18920 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18921 (arm_breakpoint_at): Recognize both breakpoints.
18922 (the_low_target): Use the correct breakpoint instruction.
18923
011a70c2
DJ
189242005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18925
18926 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18927 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18928 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18929 (the_low_target): Update.
18930
7fb85e41
AS
189312005-10-25 Andreas Schwab <schwab@suse.de>
18932
18933 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18934
18935 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18936 (ia64_num_regs): Reduce to 462.
18937
3db0444b
DJ
189382005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18939
18940 * acinclude.m4: Correct quoting.
18941 * aclocal.m4: Regenerated.
18942
18943 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18944 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18945 (thread_db_init): Call thread_db_err_str.
18946 * configure.ac: Check for TD_VERSION.
18947 * config.in, configure: Regenerated.
18948
bee0189a
DJ
189492005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18950
18951 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18952
e9d25b98
DJ
189532005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18954
18955 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18956 is not available. Define HAVE_PTRACE_GETREGS if it is.
18957 * config.in, configure: Regenerated.
18958 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18959 * linux-i386-low.c, linux-m68k-low.c: Update to use
18960 HAVE_PTRACE_GETREGS.
18961 * linux-low.c (regsets_fetch_inferior_registers)
18962 (regsets_store_inferior_registers): Only return 0 if we processed
18963 GENERAL_REGS.
18964 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18965 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18966
a06660f7
DJ
189672005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18968
18969 * inferiors.c (struct thread_info): Add gdb_id.
18970 (add_thread): Add gdb_id argument.
18971 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
18972 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
18973 calls to add_thread.
18974 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
18975 * server.c (handle_query): Use thread_to_gdb_id.
18976 (handle_v_cont, main): Use gdb_id_to_thread_id.
18977 * server.h (add_thread): Update prototype.
18978 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
18979 prototypes.
18980
5a1f5858
DJ
189812005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18982
18983 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18984 left-padded registers.
18985 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18986 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18987
e122f1f5
SE
189882005-07-01 Steve Ellcey <sje@cup.hp.com>
18989
18990 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18991 * configure: Regenerate.
18992 * config.in: Regenerate.
18993 * server.h (NEED_DECLARATION_STRERROR):
18994 Replace with !HAVE_DECL_STRERROR.
18995
d592fa2f
DJ
189962005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18997
18998 * linux-low.c (linux_wait, linux_send_signal): Don't test
18999 an unsigned long variable for > 0 if it could be MAX_ULONG.
19000 * server.c (myresume): Likewise.
19001 * target.c (set_desired_inferior): Likewise.
19002
ccbd4912
MK
190032005-06-13 Mark Kettenis <kettenis@gnu.org>
19004
19005 * configure.ac: Simplify and improve check for socklen_t.
19006 * configure, config.in: Regenerate.
19007
f450004a
DJ
190082005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19009
19010 * acconfig.h: Remove.
19011 * configure.ac: Add a test for socklen_t. Use three-argument
19012 AC_DEFINE throughout.
19013 * config.in: Regenerated using autoheader 2.59.
19014 * configure: Regenerated.
19015
19016 * gdbreplay.c (socklen_t): Provide a default.
19017 (remote_open): Use socklen_t.
19018 * remote-utils.c (socklen_t): Provide a default.
19019 (remote_open): Use socklen_t.
19020 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19021 unsigned char.
19022
19023 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19024 char for buffers.
19025 * linux-low.c (linux_read_memory, linux_write_memory)
19026 (linux_read_auxv): Likewise.
19027 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19028 (check_mem_write): Likewise.
19029 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19030 Likewise.
19031 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19032 (registers_from_string, register_data): Likewise.
19033 * server.c (handle_query, main): Likewise.
19034 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19035 (decode_M_packet): Likewise.
19036 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19037 * target.h (struct target_ops): Update read_memory, write_memory,
19038 and read_auxv.
19039 (read_inferior_memory, write_inferior_memory): Update.
19040 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19041 to unsigned char *.
19042 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19043 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19044 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19045 linux-s390-low.c, linux-sh-low.c: Update for changes in
19046 read_inferior_memory and the_low_target->breakpoint.
19047
eee84df1
DJ
190482005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19049
19050 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19051 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19052 * configure.srv: Add powerpc64-*-linux*.
19053 * linux-ppc64-low.c: New file.
19054
45b134e5
OF
190552005-05-23 Orjan Friberg <orjanf@axis.com>
19056
19057 * linux-cris-low.c: New file with support for CRIS.
19058 * linux-crisv32-low.c: Ditto for CRISv32.
19059 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19060 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 19061 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
19062 reg-crisv32.o, and reg-crisv32.c to make rules.
19063 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19064 recognized targets.
19065
48d93c75
UW
190662005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19067
19068 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19069 of sizeof (PTRACE_XFER_TYPE).
19070 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19071
e013ee27
OF
190722005-05-12 Orjan Friberg <orjanf@axis.com>
19073
889bf7c5 19074 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
19075 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19076 pointers for hardware watchpoint support.
19077 * linux-low.h (struct linux_target_ops): Ditto.
19078 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19079 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19080 to linux_target_ops.
19081 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19082 reply packet.
19083 * server.c (main): Recognize 'Z' and 'z' packets.
19084
b0ded00b
UW
190852005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19086
19087 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19088 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19089 (the_low_target): Add new members.
19090
8643e2ad
DJ
190912005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19092
19093 * proc-service.c (ps_lgetregs): Search all_processes instead of
19094 all_threads.
19095
fc620387
DJ
190962005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19097
19098 * server.c (start_inferior): Change return type to int.
19099 (attach_inferior): Change sigptr to int *.
19100 (handle_v_cont, handle_v_requests): Change signal to int *.
19101 (main): Change signal to int.
19102
191032005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
19104
19105 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19106 * configure.srv: Add m32r*-*-linux*.
19107 * linux-m32r-low.c: New file.
19108
e0e76420
DJ
191092005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19110
19111 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19112
a1928bad
DJ
191132005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19114
19115 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19116 Take unsigned long arguments for PIDs.
19117 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19118 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19119 (wait_for_sigstop, linux_resume_one_process)
19120 (regsets_fetch_inferior_registers, linux_send_signal)
19121 (linux_read_auxv): Likewise. Update the types of variables holding
19122 PIDs. Update format string specifiers.
19123 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19124 * remote-utils.c (prepare_resume_reply): Likewise.
19125 * server.c (cont_thread, general_thread, step_thread)
19126 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19127 unsigned long.
19128 (handle_query): Update format specifiers.
19129 (handle_v_cont, main): Use strtoul for thread IDs.
19130 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19131 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19132 (general_thread, step_thread, thread_from_wait)
19133 (old_thread_from_wait): Update.
19134 * target.h (struct thread_resume): Use unsigned long for THREAD.
19135 (struct target_ops): Use unsigned long for arguments to attach and
19136 thread_alive.
19137
dcdb98d2
DJ
191382005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19139
19140 * acinclude.m4: Include bfd/bfd.m4 directly.
19141 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19142 <agriffis@toolchain.org>.
19143 * aclocal.m4, configure: Regenerated.
19144
bec39cab
AC
191452005-01-07 Andrew Cagney <cagney@gnu.org>
19146
19147 * configure.ac: Rename configure.in, require autoconf 2.59.
19148 * configure: Re-generate.
19149
434c4c77
DJ
191502004-12-08 Daniel Jacobowitz <dan@debian.org>
19151
19152 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19153 LIBS when finished.
19154 * aclocal.m4: Regenerated.
19155 * configure: Regenerated.
19156
db1d3e1b
AS
191572004-11-21 Andreas Schwab <schwab@suse.de>
19158
19159 * linux-m68k-low.c (m68k_num_gregs): Define.
19160 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19161 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19162 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19163 (m68k_breakpoint_at): New. Add to the_low_target.
19164
19165 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19166 srv_linux_thread_db to yes.
19167
43360365
JB
191682004-10-20 Joel Brobecker <brobecker@gnat.com>
19169
19170 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19171 (ARCH_SET_FS): Likewise.
19172 (ARCH_GET_FS): Likewise.
19173 (ARCH_GET_GS): Likewise.
19174
fd500816
DJ
191752004-10-16 Daniel Jacobowitz <dan@debian.org>
19176
19177 * linux-i386-low.c (ps_get_thread_area): New.
19178 * linux-x86-64-low.c (ps_get_thread_area): New.
19179 * linux-low.c: Include <sys/syscall.h>.
19180 (linux_kill_one_process): Don't kill the first thread here.
19181 (linux_kill): Kill the first thread here.
19182 (kill_lwp): New function.
19183 (send_sigstop, linux_send_signal): Use it.
19184 * proc-service.c: Clean up #ifdefs.
19185 (fpregset_info): Delete.
19186 (ps_lgetregs): Update and enable implementation.
19187 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19188 implementations.
19189 * remote-utils.c (struct sym_cache, symbol_cache): New.
19190 (input_interrupt): Print a clearer message.
19191 (async_io_enabled): New variable.
19192 (enable_async_io, disable_async_io): Use it. Update comments.
19193 (look_up_one_symbol): Use the symbol cache.
19194 * thread-db.c (thread_db_look_up_symbols): New function.
19195 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19196
f6de3c42
DJ
191972004-10-16 Daniel Jacobowitz <dan@debian.org>
19198
19199 * configure.in: Test for -rdynamic.
19200 * configure: Regenerated.
19201 * Makefile (INTERNAL_LDFLAGS): New.
19202 (gdbserver, gdbreplay): Use it.
19203
2c0fc042
AC
192042004-09-02 Andrew Cagney <cagney@gnu.org>
19205
19206 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19207
075b3282
DJ
192082004-03-23 Daniel Jacobowitz <drow@mvista.com>
19209
19210 * linux-low.c (linux_wait): Clear all_processes list also.
19211
fa6a77dc
DJ
192122004-03-12 Daniel Jacobowitz <drow@mvista.com>
19213
19214 * linux-low.c: Include <errno.h>. Remove extern declaration of
19215 errno.
19216
6d782a97
DJ
192172004-03-12 Daniel Jacobowitz <drow@mvista.com>
19218
19219 * gdbreplay.c, server.h, utils.c: Update copyright years.
19220
3a7fb99b
DJ
192212004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19222
19223 * server.c (main): Print child status or termination signal from
19224 variable 'signal', not 'sig'.
19225
c3e735a6
DJ
192262004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19227
19228 * linux-low.c (linux_read_memory): Change return type to
19229 int. Check for and return error from ptrace().
19230 * target.c (read_inferior_memory): Change return type to int. Pass
19231 back return status from the_target->read_memory().
19232 * target.h (struct target_ops): Adapt *read_memory() prototype.
19233 Update comment.
19234 (read_inferior_memory): Adapt prototype.
19235 * server.c (main): Return an error packet if
19236 read_inferior_memory() returns an error.
19237
a59d1c82
DJ
192382004-03-04 Daniel Jacobowitz <drow@mvista.com>
19239
19240 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19241 Unify with other clean targets.
19242
dc3f8883
DJ
192432004-02-29 Daniel Jacobowitz <drow@mvista.com>
19244
19245 * server.c (handle_v_cont): Call set_desired_inferior.
19246
89a208da
DJ
192472004-02-29 Daniel Jacobowitz <drow@mvista.com>
19248
19249 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19250
62ea82f5
DJ
192512004-02-29 Daniel Jacobowitz <drow@mvista.com>
19252
19253 * linux-low.c (linux_wait): Unblock async I/O.
19254 (linux_resume): Block and enable async I/O.
19255 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19256 * server.h (block_async_io, unblock_async_io): Add prototypes.
19257
6910d122
DJ
192582004-02-29 Daniel Jacobowitz <drow@mvista.com>
19259
19260 * remote-utils.c (remote_open): Print a status notice after
19261 opening a TCP port.
19262 * server.c (attach_inferior): Print a status notice after
19263 attaching.
19264
192652004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
19266
19267 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19268
c89dc5d4
DJ
192692004-02-26 Daniel Jacobowitz <drow@mvista.com>
19270
19271 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19272 error packet.
19273 * server.c, target.h: Update copyright years.
19274
4b8dad4a
RM
192752004-02-25 Roland McGrath <roland@redhat.com>
19276
19277 * target.h (struct target_ops): New member `read_auxv'.
19278 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19279 * linux-low.c (linux_read_auxv): New function.
19280 (linux_target_ops): Initialize `read_auxv' member to that.
19281
d7446758
JB
192822004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19283
19284 Committed by Jim Blandy <jimb@redhat.com>.
19285
19286 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 19287 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
19288 instead of GPR_SIZE to distiguish s390 and s390x targets.
19289
5544ad89
DJ
192902004-01-31 Daniel Jacobowitz <drow@mvista.com>
19291
19292 * linux-low.c: Update copyright year.
19293 (check_removed_breakpoint): Clear pending_is_breakpoint.
19294 (linux_set_resume_request, linux_queue_one_thread)
19295 (resume_status_pending_p): New functions.
19296 (linux_continue_one_thread): Use process->resume.
19297 (linux_resume): Only resume threads if there are no pending events.
19298 * linux-low.h (struct process_info): Add resume request
19299 pointer.
19300
2a68b70e
DJ
193012004-01-30 Daniel Jacobowitz <drow@mvista.com>
19302
19303 * regcache.c (new_register_cache): Clear the allocated register
19304 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19305
64386c31
DJ
193062003-10-13 Daniel Jacobowitz <drow@mvista.com>
19307
19308 * linux-low.c (linux_resume): Take a struct thread_resume *
19309 argument.
19310 (linux_wait): Update call.
19311 (resume_ptr): New static variable.
19312 (linux_continue_one_thread): Renamed from
19313 linux_continue_one_process. Use resume_ptr.
19314 (linux_resume): Use linux_continue_one_thread.
19315 * server.c (handle_v_cont, handle_v_requests): New functions.
19316 (myresume): New function.
19317 (main): Handle 'v' case.
19318 * target.h (struct thread_resume): New type.
19319 (struct target_ops): Change argument of "resume" to struct
19320 thread_resume *.
19321 (myresume): Delete macro.
19322
c938e9b0
L
193232003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19324
19325 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19326 (uninstall): Support DESTDIR.
19327
7f313d07
BC
19328Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19329
19330 * configure.srv: Add xscale*linux copy of arm*linux entry.
19331
3b2fc2ea
DJ
193322003-07-24 Daniel Jacobowitz <drow@mvista.com>
19333
19334 * linux-arm-low.c (arm_reinsert_addr): New function.
19335 (the_low_target): Add arm_reinsert_addr.
19336
1c0a559e
MK
193372003-07-08 Mark Kettenis <kettenis@gnu.org>
19338
19339 * mem-break.c: Remove whitespace at end of file.
19340
43d5792c
DJ
193412003-06-28 Daniel Jacobowitz <drow@mvista.com>
19342
19343 * configure.in: Check whether we need to prototype strerror.
19344 * server.h: Optionally prototype strerror.
19345 * gdbreplay.c (perror_with_name): Use strerror.
19346 * linux-low.c (linux_attach_lwp): Use strerror.
19347 * utils.c (perror_with_name): Use strerror.
19348 * config.in, configure: Regenerated.
19349
c8a86edf
DJ
193502003-06-28 Daniel Jacobowitz <drow@mvista.com>
19351
19352 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19353 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19354
73d37363
DJ
193552003-06-20 Daniel Jacobowitz <drow@mvista.com>
19356
19357 * Makefile.in (SFILES): Update.
19358 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19359 low-sun3.c: Remove files.
19360
6ad8ae5c
DJ
193612003-06-17 Daniel Jacobowitz <drow@mvista.com>
19362
19363 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19364 (linux_detach_one_process, linux_detach): New functions.
19365 (linux_target_ops): Add linux_detach.
19366 * server.c (main): Handle 'D' packet.
19367 * target.h (struct target_ops): Add "detach" member.
19368 (detach_inferior): Define.
19369
1581182a
MK
193702003-06-13 Mark Kettenis <kettenis@gnu.org>
19371
19372 From Kelley Cook <kelleycook@wideopenwest.com>:
19373 * configure.srv: Accept i[34567]86 variants.
19374
e5379b03
DJ
193752003-06-05 Daniel Jacobowitz <drow@mvista.com>
19376
19377 * linux-low.c (linux_wait_for_event): Correct comment typos.
19378 (linux_resume_one_process): Call check_removed_breakpoint.
19379 (linux_send_signal): New function.
19380 (linux_target_ops): Add linux_send_signal.
19381 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19382 of kill.
19383 * target.h (struct target_ops): Add send_signal.
19384
2ff29de4
JB
193852003-05-29 Jim Blandy <jimb@redhat.com>
19386
19387 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19388 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19389 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19390 away part of the register's value.
19391
254787d4
DJ
193922003-03-26 Daniel Jacobowitz <drow@mvista.com>
19393
19394 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19395 (linux_wait_for_event, linux_init_signals): Likewise.
19396
94e10508
DJ
193972003-03-17 Daniel Jacobowitz <drow@mvista.com>
19398
19399 * configure.in: Check for stdlib.h.
19400 * configure: Regenerated.
19401 * config.in: Regenerated.
19402
4c0711e0
DJ
194032003-01-04 Andreas Schwab <schwab@suse.de>
19404
19405 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19406
ef66e766
AC
194072003-01-02 Andrew Cagney <ac131313@redhat.com>
19408
19409 * Makefile.in: Remove obsolete code.
19410
a1358604
DJ
194112002-11-20 Daniel Jacobowitz <drow@mvista.com>
19412
19413 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19414 defined(PT_FPR0_HI).
19415
23ce3b1c
DJ
194162002-11-17 Stuart Hughes <seh@zee2.com>
19417
19418 * linux-arm-low.c (arm_num_regs): Increase.
19419 (arm_regmap): Include status register.
19420
194212002-11-17 Daniel Jacobowitz <drow@mvista.com>
19422
19423 * linux-low.c (register_addr): Remove incorrect -1 check.
19424
a9fa9f7d
DJ
194252002-08-29 Daniel Jacobowitz <drow@mvista.com>
19426
19427 * linux-low.c (linux_create_inferior): Call setpgid. Return
19428 the new PID.
19429 (unstopped_p, linux_signal_pid): Remove.
19430 (linux_target_ops): Remove linux_signal_pid.
19431 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19432 global instead of target method.
19433 * target.h (struct target_ops): Remove signal_pid. Update comment
19434 for create_inferior.
19435 * server.c (signal_pid): New variable.
19436 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 19437 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
19438 (attach_inferior): Set signal_pid.
19439
17574093
DJ
194402002-08-23 Daniel Jacobowitz <drow@mvista.com>
19441
19442 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19443
194442002-08-20 Jim Blandy <jimb@redhat.com>
19445
19446 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19447 default for this.
19448
194492002-08-01 Andrew Cagney <cagney@redhat.com>
19450
19451 * Makefile.in: Make chill references obsolete.
19452
194532002-07-24 Kevin Buettner <kevinb@redhat.com>
19454
19455 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19456 * configure: Regenerate.
19457 * config.in: Regenerate.
19458
194592002-07-09 David O'Brien <obrien@FreeBSD.org>
19460
19461 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19462 (perror_with_name, remote_close, remote_open, expect, play): Static.
19463
194642002-07-04 Michal Ludvig <mludvig@suse.cz>
19465
4b8dad4a 19466 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
19467 byte offsets instead of an array of indexes.
19468 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19469
194702002-06-13 Daniel Jacobowitz <drow@mvista.com>
19471
19472 * regcache.c: Add comment.
19473
194742002-06-11 Daniel Jacobowitz <drow@mvista.com>
19475
19476 * thread-db.c: New file.
19477 * proc-service.c: New file.
19478 * acinclude.m4: New file.
19479 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19480 proc-service.o, and thread-db.o.
19481 (linux-low.o): Add USE_THREAD_DB.
19482 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19483 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19484 * aclocal.m4: Regenerated.
19485 * config.in: Regenerated.
19486 * configure: Regenerated.
19487 * configure.in: Check for proc_service.h, sys/procfs.h,
19488 thread_db.h, and linux/elf.h headrs.
19489 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19490 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19491 Check for -lthread_db and thread support.
19492 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19493 PowerPC, and SuperH.
19494 * i387-fp.c: Constify arguments.
19495 * i387-fp.h: Likewise.
19496 * inferiors.c: (struct thread_info): Renamed from
19497 `struct inferior_info'. Remove PID member. Use generic inferior
19498 list header. All uses updated.
19499 (inferiors, signal_pid): Removed.
19500 (all_threads): New variable.
19501 (get_thread): Define.
19502 (add_inferior_to_list): New function.
19503 (for_each_inferior): New function.
19504 (change_inferior_id): New function.
19505 (add_inferior): Removed.
19506 (remove_inferior): New function.
19507 (add_thread): New function.
19508 (free_one_thread): New function.
19509 (remove_thread): New function.
19510 (clear_inferiors): Use for_each_inferior and free_one_thread.
19511 (find_inferior): New function.
19512 (find_inferior_id): New function.
19513 (inferior_target_data): Update argument type.
19514 (set_inferior_target_data): Likewise.
19515 (inferior_regcache_data): Likewise.
19516 (set_inferior_regcache_data): Likewise.
19517 * linux-low.c (linux_bp_reinsert): Remove.
19518 (all_processes, stopping_threads, using_thrads)
19519 (struct pending_signals, debug_threads, pid_of): New.
19520 (inferior_pid): Replace with macro.
19521 (struct inferior_linux_data): Remove.
19522 (get_stop_pc, add_process): New functions.
19523 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19524 Use add_process and add_thread.
19525 (linux_attach_lwp): New function, based on old linux_attach. Use
19526 add_process and add_thread. Set stop_expected for new threads.
19527 (linux_attach): New function.
19528 (linux_kill_one_process): New function.
19529 (linux_kill): Kill all LWPs.
19530 (linux_thread_alive): Use find_inferior_id.
19531 (check_removed_breakpoints, status_pending_p): New functions.
19532 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19533 Update. Use WNOHANG. Wait for cloned processes also. Update process
19534 struct for the found process.
19535 (linux_wait_for_event): New function.
19536 (linux_wait): Use it. Support LWPs.
19537 (send_sigstop, wait_for_sigstop, stop_all_processes)
19538 (linux_resume_one_process, linux_continue_one_process): New functions.
19539 (linux_resume): Support LWPs.
19540 (REGISTER_RAW_SIZE): Remove.
19541 (fetch_register): Use register_size instead. Call supply_register.
19542 (usr_store_inferior_registers): Likewise. Call collect_register.
19543 Fix recursive case.
19544 (regsets_fetch_inferior_registers): Improve error message.
19545 (regsets_store_inferior_registers): Add debugging.
19546 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19547 (unstopped_p, linux_signal_pid): New functions.
19548 (linux_target_ops): Add linux_signal_pid.
19549 (linux_init_signals): New function.
19550 (initialize_low): Call it. Initialize using_threads.
19551 * regcache.c (inferior_regcache_data): Add valid
19552 flag.
19553 (get_regcache): Fetch registers lazily. Add fetch argument
19554 and update all callers.
19555 (regcache_invalidate_one, regcache_invalidate): New
19556 functions.
19557 (new_register_cache): Renamed from create_register_cache.
19558 Return the new regcache.
19559 (free_register_cache): Change argument to a void *.
19560 (registers_to_string, registers_from_string): Call get_regcache
19561 with fetch flag set.
19562 (register_data): Make static. Pass fetch flag to get_regcache.
19563 (supply_register): Call get_regcache with fetch flag clear.
19564 (collect_register): Call get_regcache with fetch flag set.
19565 (collect_register_as_string): New function.
19566 * regcache.h: Update.
19567 * remote-utils.c (putpkt): Flush after debug output and use
19568 stderr.
19569 Handle input interrupts while waiting for an ACK.
19570 (input_interrupt): Use signal_pid method.
19571 (getpkt): Flush after debug output and use stderr.
19572 (outreg): Use collect_register_as_string.
19573 (new_thread_notify, dead_thread_notify): New functions.
19574 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19575 and general_thread.
19576 (look_up_one_symbol): Flush after debug output.
19577 * server.c (step_thread, server_waiting): New variables.
19578 (start_inferior): Don't use signal_pid. Update call to mywait.
19579 (attach_inferior): Update call to mywait.
19580 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19581 (main): Don't fetch/store registers explicitly. Use
19582 set_desired_inferior. Support proposed ``Hs'' packet. Update
19583 calls to mywait.
19584 * server.h: Update.
19585 (struct inferior_list, struct_inferior_list_entry): New.
19586 * target.c (set_desired_inferior): New.
19587 (write_inferior_memory): Constify.
19588 (mywait): New function.
19589 * target.h: Update.
19590 (struct target_ops): New signal_pid method.
19591 (mywait): Removed macro, added prototype.
19592
19593 * linux-low.h (regset_func): Removed.
19594 (regset_fill_func, regset_store_func): New.
19595 (enum regset_type): New.
19596 (struct regset_info): Add type field. Use new operation types.
19597 (struct linux_target_ops): stop_pc renamed to get_pc.
19598 Add decr_pc_after_break and breakpoint_at.
19599 (get_process, get_thread_proess, get_process_thread)
19600 (strut process_info, all_processes, linux_attach_lwp)
19601 (thread_db_init): New.
19602
19603 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19604 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19605 (the_low_target): Add new members.
19606 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19607 (i386_store_fpxregset): Constify.
19608 (target_regsets): Add new kind identifier.
19609 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19610 (i386_set_pc): Add debugging.
19611 (i386_breakpoint_at): New function.
19612 (the_low_target): Add new members.
19613 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19614 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19615 (mips_breakpoint_at): New.
19616 (the_low_target): Add new members.
19617 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19618 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19619 (the_low_target): Add new members.
19620 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19621 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19622 (the_low_target): Add new members.
19623 * linux-x86-64-low.c (target_regsets): Add new kind
19624 identifier.
19625
196262002-05-15 Daniel Jacobowitz <drow@mvista.com>
19627
19628 From Martin Pool <mbp@samba.org>:
19629 * server.c (gdbserver_usage): New function.
19630 (main): Call it.
19631
196322002-05-14 Daniel Jacobowitz <drow@mvista.com>
19633
19634 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19635 stop_at -> stop_pc.
19636
196372002-05-04 Andrew Cagney <ac131313@redhat.com>
19638
19639 * Makefile.in: Remove obsolete code.
19640
196412002-04-24 Michal Ludvig <mludvig@suse.cz>
19642
19643 * linux-low.c (regsets_fetch_inferior_registers),
19644 (regsets_store_inferior_registers): Removed cast to int from
19645 ptrace() calls.
19646 * regcache.h: Added declaration of struct inferior_info.
19647
196482002-04-20 Daniel Jacobowitz <drow@mvista.com>
19649
19650 * inferiors.c (struct inferior_info): Add regcache_data.
19651 (add_inferior): Call create_register_cache.
19652 (clear_inferiors): Call free_register_cache.
19653 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19654 * regcache.c (struct inferior_regcache_data): New.
19655 (registers): Remove.
19656 (get_regcache): New function.
19657 (create_register_cache, free_register_cache): New functions.
19658 (set_register_cache): Don't initialize the register cache here.
19659 (registers_to_string, registers_from_string, register_data): Call
19660 get_regcache.
19661 * regcache.h: Add prototypes.
19662 * server.h: Likewise.
19663
196642002-04-20 Daniel Jacobowitz <drow@mvista.com>
19665
19666 * mem-break.c: New file.
19667 * mem-break.h: New file.
19668 * Makefile.in: Add mem-break.o rule; update server.h
19669 dependencies.
19670 * inferiors.c (struct inferior_info): Add target_data
19671 member.
19672 (clear_inferiors): Free target_data member if set.
19673 (inferior_target_data, set_inferior_target_data): New functions.
19674 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19675 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19676 * linux-low.c (linux_bp_reinsert): New variable.
19677 (struct inferior_linux_data): New.
19678 (linux_create_inferior): Use set_inferior_target_data.
19679 (linux_attach): Likewise. Call add_inferior.
19680 (linux_wait_for_one_inferior): New function.
19681 (linux_wait): Call it.
19682 (linux_write_memory): Add const.
19683 (initialize_low): Call set_breakpoint_data.
19684 * linux-low.h (struct linux_target_ops): Add breakpoint
19685 handling members.
19686 * server.c (attach_inferior): Remove extra add_inferior
19687 call.
19688 * server.h: Include mem-break.h. Update inferior.c
19689 prototypes.
19690 * target.c (read_inferior_memory)
19691 (write_inferior_memory): New functions.
19692 * target.h (read_inferior_memory)
19693 (write_inferior_memory): Change macros to prototypes.
19694 (struct target_ops): Update comments. Add const to write_memory
19695 definition.
19696
196972002-04-11 Daniel Jacobowitz <drow@mvista.com>
19698
19699 * linux-low.c (usr_store_inferior_registers): Support
19700 registers which are allowed to fail to store.
19701 * linux-low.h (linux_target_ops): Likewise.
19702 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19703 (ppc_cannot_store_register): FPSCR may not be storable.
19704
197052002-04-09 Daniel Jacobowitz <drow@mvista.com>
19706
19707 * server.h: Include <string.h> if HAVE_STRING_H.
19708 * ChangeLog: Correct paths in last ChangeLog entry.
19709
197102002-04-09 Daniel Jacobowitz <drow@mvista.com>
19711
19712 * linux-low.h: Remove obsolete prototypes.
19713 (struct linux_target_ops): New.
19714 (extern the_low_target): New.
19715 * linux-low.c (num_regs, regmap): Remove declarations.
19716 (register_addr): Use the_low_target explicitly.
19717 (fetch_register): Likewise.
19718 (usr_fetch_inferior_registers): Likewise.
19719 (usr_store_inferior_registers): Likewise.
19720 * linux-arm-low.c (num_regs): Remove.
19721 (arm_num_regs): Define.
19722 (arm_regmap): Renamed from regmap, made static.
19723 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19724 made static.
19725 (arm_cannot_store_register): Renamed from cannot_store_register,
19726 made static.
19727 (the_low_target): New.
19728 * linux-i386-low.c (num_regs): Remove.
19729 (i386_num_regs): Define.
19730 (i386_regmap): Renamed from regmap, made static.
19731 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19732 made static.
19733 (i386_cannot_store_register): Renamed from cannot_store_register,
19734 made static.
19735 (the_low_target): New.
19736 * linux-ia64-low.c (num_regs): Remove.
19737 (ia64_num_regs): Define.
19738 (ia64_regmap): Renamed from regmap, made static.
19739 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19740 made static.
19741 (ia64_cannot_store_register): Renamed from cannot_store_register,
19742 made static.
19743 (the_low_target): New.
19744 * linux-m68k-low.c (num_regs): Remove.
19745 (m68k_num_regs): Define.
19746 (m68k_regmap): Renamed from regmap, made static.
19747 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19748 made static.
19749 (m68k_cannot_store_register): Renamed from cannot_store_register,
19750 made static.
19751 (the_low_target): New.
19752 * linux-mips-low.c (num_regs): Remove.
19753 (mips_num_regs): Define.
19754 (mips_regmap): Renamed from regmap, made static.
19755 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19756 made static.
19757 (mips_cannot_store_register): Renamed from cannot_store_register,
19758 made static.
19759 (the_low_target): New.
19760 * linux-ppc-low.c (num_regs): Remove.
19761 (ppc_num_regs): Define.
19762 (ppc_regmap): Renamed from regmap, made static.
19763 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19764 made static.
19765 (ppc_cannot_store_register): Renamed from cannot_store_register,
19766 made static.
19767 (the_low_target): New.
19768 * linux-s390-low.c (num_regs): Remove.
19769 (s390_num_regs): Define.
19770 (s390_regmap): Renamed from regmap, made static.
19771 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19772 made static.
19773 (s390_cannot_store_register): Renamed from cannot_store_register,
19774 made static.
19775 (the_low_target): New.
19776 * linux-sh-low.c (num_regs): Remove.
19777 (sh_num_regs): Define.
19778 (sh_regmap): Renamed from regmap, made static.
19779 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19780 made static.
19781 (sh_cannot_store_register): Renamed from cannot_store_register,
19782 made static.
19783 (the_low_target): New.
19784 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19785 (the_low_target): New.
19786
197872002-04-09 Daniel Jacobowitz <drow@mvista.com>
19788
19789 * Makefile.in: Add stamp-h target.
19790 * configure.in: Create stamp-h.
19791 * configure: Regenerated.
19792
197932002-04-09 Daniel Jacobowitz <drow@mvista.com>
19794
19795 * inferiors.c: New file.
19796 * target.c: New file.
19797 * target.h: New file.
19798 * Makefile.in: Add target.o and inferiors.o. Update
19799 dependencies.
19800 * linux-low.c (inferior_pid): New static variable,
19801 moved from server.c.
19802 (linux_create_inferior): Renamed from create_inferior.
19803 Call add_inferior. Return 0 on success instead of a PID.
19804 (linux_attach): Renamed from myattach.
19805 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19806 (linux_thread_alive): Renamed from mythread_alive.
19807 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19808 child dies.
19809 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19810 (regsets_store_inferior_registers): Correct error message.
19811 Add missing ``return 0''.
19812 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19813 (linux_store_registers): Renamed from store_inferior_registers.
19814 (linux_read_memory): Renamed from read_inferior_memory.
19815 (linux_write_memory): Renamed from write_inferior_memory.
19816 (linux_target_ops): New structure.
19817 (initialize_low): Call set_target_ops ().
19818 * remote-utils.c (unhexify): New function.
19819 (hexify): New function.
19820 (input_interrupt): Send signals to ``signal_pid''.
19821 * server.c (inferior_pid): Remove.
19822 (start_inferior): Update create_inferior call.
19823 (attach_inferior): Call add_inferior.
19824 (handle_query): New function.
19825 (main): Call handle_query for `q' packets.
19826 * server.h: Include "target.h". Remove obsolete prototypes.
19827 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19828
198292002-04-09 Daniel Jacobowitz <drow@mvista.com>
19830
19831 * Makefile.in: Add WARN_CFLAGS. Update configury
19832 dependencies.
19833 * configure.in: Check for <string.h>
19834 * configure: Regenerate.
19835 * config.in: Regenerate.
19836 * gdbreplay.c: Include needed system headers.
19837 (remote_open): Remove strchr prototype.
19838 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19839 * regcache.c (supply_register): Change buf argument to const void *.
19840 (supply_register_by_name): Likewise.
19841 (collect_register): Change buf argument to void *.
19842 (collect_register_by_name): Likewise.
19843 * regcache.h: Add missing prototypes.
19844 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19845 * server.c (handle_query): New function.
19846 (attached): New static variable, moved out of main.
19847 (main): Quiet longjmp clobber warnings.
19848 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19849 * utils.c (error): Remove NORETURN.
19850 (fatal): Likewise.
This page took 2.348199 seconds and 4 git commands to generate.