Move gdb/selftest.m4 to gdbsupport/selftest.m4
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
272cd5a3
SM
12020-03-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * acinclude.m4: Update path to selftest.m4.
4
db6878ac
SM
52020-03-12 Simon Marchi <simon.marchi@efficios.com>
6
7 * configure.ac: Don't source bfd/development.sh, move
8 GDB_AC_COMMON higher.
9 * configure: Re-generate.
10
4d696a5c
SM
112020-03-12 Simon Marchi <simon.marchi@efficios.com>
12
13 * configure: Re-generate.
14
a0761e34
SM
152020-03-11 Simon Marchi <simon.marchi@efficios.com>
16
17 * configure: Re-generate.
18
20ea4a60
AB
192020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
20
21 * .dir-locals.el: New file.
22
842806cb
TBA
232020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
24
25 * .gitattributes: New file.
26
442131c1
AB
272020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
28
29 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
30 reply into an S reply.
31 * server.cc (disable_packet_T): New global.
32 (captured_main): Set new global when appropriate.
33 * server.h (disable_packet_T): Declare.
34
dda42c0b
TT
352020-02-21 Tom Tromey <tom@tromey.com>
36
37 * Makefile.in (mostlyclean): New target.
38
52405d85
TBA
392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
40
41 * target.h (struct process_stratum_target): Remove.
42 (class process_target): Rename to ...
43 (class process_stratum_target): ... this.
44 * linux-low.h (class linux_process_target): Derive from
45 'process_stratum_target'.
46 * linux-low.cc (linux_target_ops): Remove.
47 (initialize_low): Set the_target to the singleton instance of
48 linux_process_target.
49 * lynx-low.h (class lynx_process_target): Derive from
50 'process_stratum_target'.
51 * lynx-low.cc (lynx_target_ops): Remove.
52 (initialize_low): Set the_target to the singleton instance of
53 lynx_process_target.
54 * nto-low.h (class nto_process_target): Derive from
55 'process_stratum_target'.
56 * nto-low.cc (nto_target_ops): Remove.
57 (initialize_low): Set the_target to the singleton instance of
58 nto_process_target.
59 * win32-low.h (class win32_process_target): Derive from
60 'process_stratum_target'.
61 * win32-low.cc (win32_target_ops): Remove.
62 (initialize_low): Set the_target to the singleton instance of
63 win32_process_target.
64
65 Replace 'the_target->pt' with 'the_target' in the uses below.
66
67 * hostio.cc (hostio_error)
68 (handle_setfs)
69 (handle_open)
70 (handle_unlink)
71 (handle_readlink)
72 * linux-aarch32-low.cc (arm_breakpoint_at)
73 * linux-aarch64-low.cc (aarch64_breakpoint_at)
74 * linux-arm-low.cc (arm_sigreturn_next_pc)
75 (arm_get_hwcap)
76 (arm_get_syscall_trapinfo)
77 * linux-cris-low.cc (cris_breakpoint_at)
78 * linux-crisv32-low.cc (cris_breakpoint_at)
79 * linux-low.cc (handle_extended_wait)
80 (linux_wait_1)
81 (linux_read_memory)
82 (linux_process_target::breakpoint_kind_from_pc)
83 (linux_get_auxv)
84 * linux-m32r-low.cc (m32r_breakpoint_at)
85 * linux-mips-low.cc (mips_breakpoint_at)
86 * linux-nios2-low.cc (nios2_breakpoint_at)
87 * linux-ppc-low.cc (ppc_breakpoint_at)
88 * linux-s390-low.cc (s390_get_hwcap)
89 * linux-sh-low.cc (sh_breakpoint_at)
90 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
91 (sparc_store_gregset_from_stack)
92 (sparc_breakpoint_at)
93 * linux-tic6x-low.cc (tic6x_breakpoint_at)
94 * linux-tile-low.cc (tile_breakpoint_at)
95 * linux-x86-low.cc (x86_breakpoint_at)
96 * linux-xtensa-low.cc (xtensa_breakpoint_at)
97 * mem-break.cc (bp_size)
98 (bp_opcode)
99 (insert_memory_breakpoint)
100 (set_raw_breakpoint_at)
101 (delete_raw_breakpoint)
102 (z_type_supported)
103 (uninsert_raw_breakpoint)
104 (reinsert_raw_breakpoint)
105 (validate_inserted_breakpoint)
106 * regcache.cc (regcache_read_pc)
107 (regcache_write_pc)
108 * remote-utils.cc (putpkt_binary_1)
109 (input_interrupt)
110 (getpkt)
111 (prepare_resume_reply)
112 * server.cc (handle_general_set)
113 (handle_detach)
114 (handle_qxfer_auxv)
115 (handle_qxfer_exec_file)
116 (handle_qxfer_libraries_svr4)
117 (handle_qxfer_osdata)
118 (handle_qxfer_siginfo)
119 (handle_qxfer_fdpic)
120 (handle_query)
121 (resume)
122 (handle_v_requests)
123 (queue_stop_reply_callback)
124 (captured_main)
125 * target.cc (prepare_to_access_memory)
126 (done_accessing_memory)
127 (read_inferior_memory)
128 (target_write_memory)
129 (target_stop_and_wait)
130 (target_wait)
131 (target_mourn_inferior)
132 (target_continue_no_signal)
133 (target_continue)
134 (target_supports_multi_process)
135 (kill_inferior)
136 * target.h
137 (target_create_inferior)
138 (target_post_create_inferior)
139 (myattach)
140 (target_supports_fork_events)
141 (target_supports_vfork_events)
142 (target_supports_exec_events)
143 (target_handle_new_gdb_connection)
144 (detach_inferior)
145 (mythread_alive)
146 (fetch_inferior_registers)
147 (store_inferior_registers)
148 (join_inferior)
149 (target_supports_non_stop)
150 (target_async)
151 (target_process_qsupported)
152 (target_supports_catch_syscall)
153 (target_get_ipa_tdesc_idx)
154 (target_supports_tracepoints)
155 (target_supports_fast_tracepoints)
156 (target_get_min_fast_tracepoint_insn_len)
157 (target_thread_stopped)
158 (target_pause_all)
159 (target_unpause_all)
160 (target_stabilize_threads)
161 (target_install_fast_tracepoint_jump_pad)
162 (target_emit_ops)
163 (target_supports_disable_randomization)
164 (target_supports_agent)
165 (target_enable_btrace)
166 (target_disable_btrace)
167 (target_read_btrace)
168 (target_read_btrace_conf)
169 (target_supports_range_stepping)
170 (target_supports_stopped_by_sw_breakpoint)
171 (target_stopped_by_sw_breakpoint)
172 (target_supports_stopped_by_hw_breakpoint)
173 (target_supports_hardware_single_step)
174 (target_stopped_by_hw_breakpoint)
175 (target_breakpoint_kind_from_pc)
176 (target_breakpoint_kind_from_current_state)
177 (target_supports_software_single_step)
178 (target_core_of_thread)
179 (target_thread_name)
180 (target_thread_handle)
181 * win32-low.cc (do_initial_child_stuff)
182
183 Rename target op default definitions listed below.
184
185 * target.cc (process_target::post_create_inferior): Rename as ...
186 (process_stratum_target::post_create_inferior): ... this.
187 (process_target::prepare_to_access_memory): Rename as ...
188 (process_stratum_target::prepare_to_access_memory): ... this.
189 (process_target::done_accessing_memory): Rename as ...
190 (process_stratum_target::done_accessing_memory): ... this.
191 (process_target::look_up_symbols): Rename as ...
192 (process_stratum_target::look_up_symbols): ... this.
193 (process_target::supports_read_auxv): Rename as ...
194 (process_stratum_target::supports_read_auxv): ... this.
195 (process_target::read_auxv): Rename as ...
196 (process_stratum_target::read_auxv): ... this.
197 (process_target::supports_z_point_type): Rename as ...
198 (process_stratum_target::supports_z_point_type): ... this.
199 (process_target::insert_point): Rename as ...
200 (process_stratum_target::insert_point): ... this.
201 (process_target::remove_point): Rename as ...
202 (process_stratum_target::remove_point): ... this.
203 (process_target::stopped_by_sw_breakpoint): Rename as ...
204 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
205 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
206 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
207 (process_target::stopped_by_hw_breakpoint): Rename as ...
208 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
209 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
210 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
211 (process_target::supports_hardware_single_step): Rename as ...
212 (process_stratum_target::supports_hardware_single_step): ... this.
213 (process_target::stopped_by_watchpoint): Rename as ...
214 (process_stratum_target::stopped_by_watchpoint): ... this.
215 (process_target::stopped_data_address): Rename as ...
216 (process_stratum_target::stopped_data_address): ... this.
217 (process_target::supports_read_offsets): Rename as ...
218 (process_stratum_target::supports_read_offsets): ... this.
219 (process_target::read_offsets): Rename as ...
220 (process_stratum_target::read_offsets): ... this.
221 (process_target::supports_get_tls_address): Rename as ...
222 (process_stratum_target::supports_get_tls_address): ... this.
223 (process_target::get_tls_address): Rename as ...
224 (process_stratum_target::get_tls_address): ... this.
225 (process_target::hostio_last_error): Rename as ...
226 (process_stratum_target::hostio_last_error): ... this.
227 (process_target::supports_qxfer_osdata): Rename as ...
228 (process_stratum_target::supports_qxfer_osdata): ... this.
229 (process_target::qxfer_osdata): Rename as ...
230 (process_stratum_target::qxfer_osdata): ... this.
231 (process_target::supports_qxfer_siginfo): Rename as ...
232 (process_stratum_target::supports_qxfer_siginfo): ... this.
233 (process_target::qxfer_siginfo): Rename as ...
234 (process_stratum_target::qxfer_siginfo): ... this.
235 (process_target::supports_non_stop): Rename as ...
236 (process_stratum_target::supports_non_stop): ... this.
237 (process_target::async): Rename as ...
238 (process_stratum_target::async): ... this.
239 (process_target::start_non_stop): Rename as ...
240 (process_stratum_target::start_non_stop): ... this.
241 (process_target::supports_multi_process): Rename as ...
242 (process_stratum_target::supports_multi_process): ... this.
243 (process_target::supports_fork_events): Rename as ...
244 (process_stratum_target::supports_fork_events): ... this.
245 (process_target::supports_vfork_events): Rename as ...
246 (process_stratum_target::supports_vfork_events): ... this.
247 (process_target::supports_exec_events): Rename as ...
248 (process_stratum_target::supports_exec_events): ... this.
249 (process_target::handle_new_gdb_connection): Rename as ...
250 (process_stratum_target::handle_new_gdb_connection): ... this.
251 (process_target::handle_monitor_command): Rename as ...
252 (process_stratum_target::handle_monitor_command): ... this.
253 (process_target::core_of_thread): Rename as ...
254 (process_stratum_target::core_of_thread): ... this.
255 (process_target::supports_read_loadmap): Rename as ...
256 (process_stratum_target::supports_read_loadmap): ... this.
257 (process_target::read_loadmap): Rename as ...
258 (process_stratum_target::read_loadmap): ... this.
259 (process_target::process_qsupported): Rename as ...
260 (process_stratum_target::process_qsupported): ... this.
261 (process_target::supports_tracepoints): Rename as ...
262 (process_stratum_target::supports_tracepoints): ... this.
263 (process_target::read_pc): Rename as ...
264 (process_stratum_target::read_pc): ... this.
265 (process_target::write_pc): Rename as ...
266 (process_stratum_target::write_pc): ... this.
267 (process_target::supports_thread_stopped): Rename as ...
268 (process_stratum_target::supports_thread_stopped): ... this.
269 (process_target::thread_stopped): Rename as ...
270 (process_stratum_target::thread_stopped): ... this.
271 (process_target::supports_get_tib_address): Rename as ...
272 (process_stratum_target::supports_get_tib_address): ... this.
273 (process_target::get_tib_address): Rename as ...
274 (process_stratum_target::get_tib_address): ... this.
275 (process_target::pause_all): Rename as ...
276 (process_stratum_target::pause_all): ... this.
277 (process_target::unpause_all): Rename as ...
278 (process_stratum_target::unpause_all): ... this.
279 (process_target::stabilize_threads): Rename as ...
280 (process_stratum_target::stabilize_threads): ... this.
281 (process_target::supports_fast_tracepoints): Rename as ...
282 (process_stratum_target::supports_fast_tracepoints): ... this.
283 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
284 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
285 (process_target::emit_ops): Rename as ...
286 (process_stratum_target::emit_ops): ... this.
287 (process_target::supports_disable_randomization): Rename as ...
288 (process_stratum_target::supports_disable_randomization): ... this.
289 (process_target::supports_qxfer_libraries_svr4): Rename as ...
290 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
291 (process_target::qxfer_libraries_svr4): Rename as ...
292 (process_stratum_target::qxfer_libraries_svr4): ... this.
293 (process_target::supports_agent): Rename as ...
294 (process_stratum_target::supports_agent): ... this.
295 (process_target::enable_btrace): Rename as ...
296 (process_stratum_target::enable_btrace): ... this.
297 (process_target::disable_btrace): Rename as ...
298 (process_stratum_target::disable_btrace): ... this.
299 (process_target::read_btrace): Rename as ...
300 (process_stratum_target::read_btrace): ... this.
301 (process_target::read_btrace_conf): Rename as ...
302 (process_stratum_target::read_btrace_conf): ... this.
303 (process_target::supports_range_stepping): Rename as ...
304 (process_stratum_target::supports_range_stepping): ... this.
305 (process_target::supports_pid_to_exec_file): Rename as ...
306 (process_stratum_target::supports_pid_to_exec_file): ... this.
307 (process_target::pid_to_exec_file): Rename as ...
308 (process_stratum_target::pid_to_exec_file): ... this.
309 (process_target::supports_multifs): Rename as ...
310 (process_stratum_target::supports_multifs): ... this.
311 (process_target::multifs_open): Rename as ...
312 (process_stratum_target::multifs_open): ... this.
313 (process_target::multifs_unlink): Rename as ...
314 (process_stratum_target::multifs_unlink): ... this.
315 (process_target::multifs_readlink): Rename as ...
316 (process_stratum_target::multifs_readlink): ... this.
317 (process_target::breakpoint_kind_from_pc): Rename as ...
318 (process_stratum_target::breakpoint_kind_from_pc): ... this.
319 (process_target::breakpoint_kind_from_current_state): Rename as ...
320 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
321 (process_target::thread_name): Rename as ...
322 (process_stratum_target::thread_name): ... this.
323 (process_target::thread_handle): Rename as ...
324 (process_stratum_target::thread_handle): ... this.
325 (process_target::supports_software_single_step): Rename as ...
326 (process_stratum_target::supports_software_single_step): ... this.
327 (process_target::supports_catch_syscall): Rename as ...
328 (process_stratum_target::supports_catch_syscall): ... this.
329 (process_target::get_ipa_tdesc_idx): Rename as ...
330 (process_stratum_target::get_ipa_tdesc_idx): ... this.
331
478f9adf
PA
3322020-02-20 Pedro Alves <palves@redhat.com>
333
334 * target.cc (set_target_ops): Simply copy the given target pointer
335 instead of creating a copy of the pointed object.
336
d633e831
TBA
3372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
338
339 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
340 of process_target.
341
342 * target.h (struct process_stratum_target): Remove the target op.
343 (class process_target): Add the target op.
344 (target_get_ipa_tdesc_idx): Update the macro.
345 * target.cc (process_target::get_ipa_tdesc_idx): Define.
346
347 Update the derived classes and callers below.
348
349 * linux-low.cc (linux_target_ops): Update.
350 (linux_get_ipa_tdesc_idx): Turn into ...
351 (linux_process_target::get_ipa_tdesc_idx): ... this.
352 * linux-low.h (class linux_process_target): Update.
353 * lynx-low.cc (lynx_target_ops): Update.
354 * nto-low.cc (nto_target_ops): Update.
355 * win32-low.cc (win32_target_ops): Update.
356
bc8d3ae4
TBA
3572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
358
359 Turn process_stratum_target's supports_catch_syscall op into a
360 method of process_target.
361
362 * target.h (struct process_stratum_target): Remove the target op.
363 (class process_target): Add the target op.
364 (target_supports_catch_syscall): Update the macro.
365 * target.cc (process_target::supports_catch_syscall): Define.
366
367 Update the derived classes and callers below.
368
369 * linux-low.cc (linux_target_ops): Update.
370 (linux_supports_catch_syscall): Turn into ...
371 (linux_process_target::supports_catch_syscall): ... this.
372 * linux-low.h (class linux_process_target): Update.
373 * lynx-low.cc (lynx_target_ops): Update.
374 * nto-low.cc (nto_target_ops): Update.
375 * win32-low.cc (win32_target_ops): Update.
376
5303a34f
TBA
3772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
378
379 Turn process_stratum_target's supports_software_single_step op
380 into a method of process_target.
381
382 * target.h (struct process_stratum_target): Remove the target op.
383 (class process_target): Add the target op.
384 (target_supports_software_single_step): Update the macro.
385 * target.cc (process_target::supports_software_single_step): Define.
386
387 Update the derived classes and callers below.
388
389 * linux-low.cc (linux_target_ops): Update.
390 (linux_supports_software_single_step): Turn into ...
391 (linux_process_target::supports_software_single_step): ... this.
392 * linux-low.h (class linux_process_target): Update.
393 * lynx-low.cc (lynx_target_ops): Update.
394 * nto-low.cc (nto_target_ops): Update.
395 * win32-low.cc (win32_target_ops): Update.
396
7f63b89b
TBA
3972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
398
399 Turn process_stratum_target's thread_name and thread_handle ops
400 into methods of process_target.
401
402 * target.h (struct process_stratum_target): Remove the target ops.
403 (class process_target): Add the target ops.
404 (target_thread_name): Update the macro.
405 (target_thread_handle): Update the macro.
406 * target.cc (process_target::thread_name): Define.
407 (process_target::thread_handle): Define.
408
409 Update the derived classes and callers below.
410
411 * linux-low.cc (linux_target_ops): Update.
412 (linux_process_target::thread_name): Define.
413 (linux_process_target::thread_handle): Define.
414 * linux-low.h (class linux_process_target): Update.
415 * lynx-low.cc (lynx_target_ops): Update.
416 * nto-low.cc (nto_target_ops): Update.
417 * win32-low.cc (win32_target_ops): Update.
418
d367006f
TBA
4192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
420
421 Turn process_stratum_target's breakpoint_kind_from_pc,
422 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
423 ops into methods of process_target.
424
425 * target.h (struct process_stratum_target): Remove the target op.
426 (class process_target): Add the target op.
427 (target_breakpoint_kind_from_pc): Update the macro.
428 (target_breakpoint_kind_from_current_state): Update the macro.
429 (default_breakpoint_kind_from_pc): Remove declaration.
430 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
431 (process_target::breakpoint_kind_from_pc): ... this.
432 (process_target::breakpoint_kind_from_current_state): Define.
433
434 Update the derived classes and callers below.
435
436 * mem-break.cc (bp_size): Update.
437 (bp_opcode): Update.
438 * linux-low.cc (linux_target_ops): Update.
439 (linux_wait_1): Update.
440 (linux_breakpoint_kind_from_pc): Turn into ...
441 (linux_process_target::breakpoint_kind_from_pc): ... this.
442 (linux_sw_breakpoint_from_kind): Turn into ...
443 (linux_process_target::sw_breakpoint_from_kind): ... this.
444 (linux_breakpoint_kind_from_current_state): Turn into ...
445 (linux_process_target::breakpoint_kind_from_current_state): ... this.
446 * linux-low.h (class linux_process_target): Update.
447 * lynx-low.cc (lynx_target_ops): Update.
448 (lynx_process_target::sw_breakpoint_from_kind): Define.
449 * lynx-low.h (class lynx_process_target): Update.
450 * nto-low.cc (nto_target_ops): Update.
451 (nto_sw_breakpoint_from_kind): Turn into ...
452 (nto_process_target::sw_breakpoint_from_kind): ... this.
453 * nto-low.h (class nto_process_target): Update.
454 * win32-low.cc (win32_target_ops): Update.
455 (win32_sw_breakpoint_from_kind): Turn into ...
456 (win32_process_target::sw_breakpoint_from_kind): ... this.
457 * win32-low.h (class win32_process_target): Update.
458
c9b7b804
TBA
4592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
460
461 Turn process_stratum_target's multifs_open, multifs_readlink,
462 multifs_unlink ops into methods of process_target.
463
464 * target.h (struct process_stratum_target): Remove the target ops.
465 (class process_target): Add the target ops. Also add
466 'supports_multifs'.
467 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
468 "sys/stat.h".
469 (process_target::supports_multifs): Define.
470 (process_target::multifs_open): Define.
471 (process_target::multifs_readlink): Define.
472 (process_target::multifs_unlink): Define.
473
474 Update the derived classes and callers below.
475
476 * hostio.cc (handle_setfs): Update.
477 (handle_open): Update.
478 (handle_unlink): Update.
479 (handle_readlink): Update.
480 * linux-low.cc (linux_target_ops): Update.
481 (linux_process_target::supports_multifs): Define.
482 (linux_process_target::multifs_open): Define.
483 (linux_process_target::multifs_readlink): Define.
484 (linux_process_target::multifs_unlink): Define.
485 * linux-low.h (class linux_process_target): Update.
486 * lynx-low.cc (lynx_target_ops): Update.
487 * nto-low.cc (nto_target_ops): Update.
488 * win32-low.cc (win32_target_ops): Update.
489
8247b823
TBA
4902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
491
492 Turn process_stratum_target's pid_to_exec_file op into a method
493 of process_target.
494
495 * target.h (struct process_stratum_target): Remove the target op.
496 (class process_target): Add the target op. Also add
497 'supports_pid_to_exec_file'.
498 * target.cc (process_target::pid_to_exec_file): Define.
499 (process_target::supports_pid_to_exec_file): Define.
500
501 Update the derived classes and callers below.
502
503 * server.cc (handle_qxfer_exec_file): Update.
504 (handle_query): Update.
505 * linux-low.cc (linux_target_ops): Update.
506 (linux_process_target::supports_pid_to_exec_file): Define.
507 (linux_process_target::pid_to_exec_file): Define.
508 * linux-low.h (class linux_process_target): Update.
509 * lynx-low.cc (lynx_target_ops): Update.
510 * nto-low.cc (nto_target_ops): Update.
511 * win32-low.cc (win32_target_ops): Update.
512
2526e0cd
TBA
5132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
514
515 Turn process_stratum_target's supports_range_stepping op into a
516 method of process_target.
517
518 * target.h (struct process_stratum_target): Remove the target op.
519 (class process_target): Add the target op.
520 (target_supports_range_stepping): Update the macro.
521 * target.cc (process_target::supports_range_stepping): Define.
522
523 Update the derived classes and callers below.
524
525 * linux-low.cc (linux_target_ops): Update.
526 (linux_supports_range_stepping): Turn into ...
527 (linux_process_target::supports_range_stepping): ... this.
528 * linux-low.h (class linux_process_target): Update.
529 * lynx-low.cc (lynx_target_ops): Update.
530 * nto-low.cc (nto_target_ops): Update.
531 * win32-low.cc (win32_target_ops): Update.
532
79597bdd
TBA
5332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
534
535 Turn process_stratum_target's btrace-related ops (enable_btrace,
536 disable_btrace, read_btrace, read_btrace_conf) into methods of
537 process_target.
538
539 * target.h (struct process_stratum_target): Remove the target ops.
540 (class process_target): Add the target ops.
541 (target_enable_btrace): Update.
542 (target_disable_btrace): Update.
543 (target_read_btrace): Update.
544 (target_read_btrace_conf): Update.
545 * target.cc (process_target::enable_btrace): Define.
546 (process_target::disable_btrace): Define.
547 (process_target::read_btrace): Define.
548 (process_target::read_btrace_conf): Define.
549
550 Update the derived classes and callers below.
551
552 * linux-low.cc (linux_target_ops): Update.
553 (linux_process_target:enable_btrace): Define as a wrapper around
554 linux_enable_btrace.
555 (linux_low_disable_btrace): Turn into ...
556 (linux_process_target::disable_btrace): ... this.
557 (linux_low_read_btrace): Turn into ...
558 (linux_process_target::read_btrace): ... this.
559 (linux_low_btrace_conf): Turn into ...
560 (linux_process_target::read_btrace_conf): ... this.
561 * linux-low.h (class linux_process_target): Update.
562 * lynx-low.cc (lynx_target_ops): Update.
563 * nto-low.cc (nto_target_ops): Update.
564 * win32-low.cc (win32_target_ops): Update.
565
c0245cb9
TBA
5662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
567
568 Turn process_stratum_target's supports_agent op into a method of
569 process_target.
570
571 * target.h (struct process_stratum_target): Remove the target op.
572 (class process_target): Add the target op.
573 (target_supports_agent): Update the macro.
574 * target.cc (process_target::supports_agent): Define.
575
576 Update the derived classes and callers below.
577
578 * linux-low.cc (linux_target_ops): Update.
579 (linux_supports_agent): Turn into ...
580 (linux_process_target::supports_agent): ... this.
581 * linux-low.h (class linux_process_target): Update.
582 * lynx-low.cc (lynx_target_ops): Update.
583 * nto-low.cc (nto_target_ops): Update.
584 * win32-low.cc (win32_target_ops): Update.
585
974387bb
TBA
5862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
587
588 Turn process_stratum_target's qxfer_libraries_svr4 op into a
589 method of process_target.
590
591 * target.h (struct process_stratum_target): Remove the target op.
592 (class process_target): Add the target op. Also add
593 'supports_qxfer_libraries_svr4'.
594 * target.cc (process_target::qxfer_libraries_svr4): Define.
595 (process_target::supports_qxfer_libraries_svr4): Define.
596
597 Update the derived classes and callers below.
598
599 * server.cc (handle_qxfer_libraries_svr4): Update.
600 (handle_query): Update.
601 * linux-low.cc (linux_target_ops): Update.
602 (linux_process_target::supports_qxfer_libraries_svr4): Define.
603 (linux_qxfer_libraries_svr4): Turn into ...
604 (linux_process_target::qxfer_libraries_svr4): ... this.
605 * linux-low.h (class linux_process_target): Update.
606 * lynx-low.cc (lynx_target_ops): Update.
607 * nto-low.cc (nto_target_ops): Update.
608 * win32-low.cc (win32_target_ops): Update.
609
c756403b
TBA
6102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
611
612 Turn process_stratum_target's supports_disable_randomization op
613 into a method of process_target.
614
615 * target.h (struct process_stratum_target): Remove the target op.
616 (class process_target): Add the target op.
617 (target_supports_disable_randomization): Update the macro.
618 * target.cc (process_target::supports_disable_randomization): Define.
619
620 Update the derived classes and callers below.
621
622 * linux-low.cc (linux_target_ops): Update.
623 (linux_supports_disable_randomization): Turn into ...
624 (linux_process_target::supports_disable_randomization): ... this.
625 * linux-low.h (class linux_process_target): Update.
626 * lynx-low.cc (lynx_target_ops): Update.
627 * nto-low.cc (nto_target_ops): Update.
628 * win32-low.cc (win32_target_ops): Update.
629
345dafad
TBA
6302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
631
632 Turn process_stratum_target's emit_ops op into a method of
633 process_target.
634
635 * target.h (struct process_stratum_target): Remove the target op.
636 (class process_target): Add the target op.
637 (target_emit_ops): Update the macro.
638 * target.cc (process_target::emit_ops): Define.
639
640 Update the derived classes and callers below.
641
642 * linux-low.cc (linux_target_ops): Update.
643 (linux_emit_ops): Turn into ...
644 (linux_process_target::emit_ops): ... this.
645 * linux-low.h (class linux_process_target): Update.
646 * lynx-low.cc (lynx_target_ops): Update.
647 * nto-low.cc (nto_target_ops): Update.
648 * win32-low.cc (win32_target_ops): Update.
649
c23c9391
TBA
6502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
651
652 Turn process_stratum_target's install_fast_tracepoint_jump_pad
653 and get_min_fast_tracepoint_insn_len ops into methods of
654 process_target.
655
656 * target.h (struct process_stratum_target): Remove the target ops.
657 (class process_target): Add the target ops. Also add
658 'supports_fast_tracepoints'.
659 (target_supports_fast_tracepoints): Update the macro.
660 (target_get_min_fast_tracepoint_insn_len): Update the macro.
661 (install_fast_tracepoint_jump_pad): Update and rename the macro
662 to ...
663 (target_install_fast_tracepoint_jump_pad): ... this.
664 * target.cc (process_target::supports_fast_tracepoints): Define.
665 (process_target::install_fast_tracepoint_jump_pad): Define.
666 (process_target::get_min_fast_tracepoint_insn_len): Define.
667
668 Update the derived classes and callers below.
669
670 * tracepoint.cc (install_fast_tracepoint): Update.
671 * linux-low.cc (linux_target_ops): Update.
672 (linux_process_target::supports_fast_tracepoints): Define.
673 (linux_install_fast_tracepoint_jump_pad): Turn into ...
674 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
675 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
676 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
677 * linux-low.h (class linux_process_target): Update.
678 * lynx-low.cc (lynx_target_ops): Update.
679 * nto-low.cc (nto_target_ops): Update.
680 * win32-low.cc (win32_target_ops): Update.
681
5c9eb2f2
TBA
6822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
683
684 Turn process_stratum_target's stabilize_threads op into a
685 method of process_target.
686
687 * target.h (struct process_stratum_target): Remove the target op.
688 (class process_target): Add the target op.
689 (target_stabilize_threads): Update the macro.
690 * target.cc (process_target::stabilize_threads): Define.
691
692 Update the derived classes and callers below.
693
694 * server.cc (handle_status): Update.
695 * tracepoint.cc (cmd_qtdp): Update.
696 (cmd_qtstart): Update.
697 * linux-low.cc (linux_target_ops): Update.
698 (linux_stabilize_threads): Turn into ...
699 (linux_process_target::stabilize_threads): ... this.
700 (linux_wait_1): Update.
701 * linux-low.h (class linux_process_target): Update.
702 * lynx-low.cc (lynx_target_ops): Update.
703 * nto-low.cc (nto_target_ops): Update.
704 * win32-low.cc (win32_target_ops): Update.
705
29e8dc09
TBA
7062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
707
708 Turn process_stratum_target's pause_all and unpause_all ops
709 into methods of process_target.
710
711 * target.h (struct process_stratum_target): Remove the target ops.
712 (class process_target): Add the target ops.
713 (pause_all): Update the macro and rename to...
714 (target_pause_all): ... this.
715 (unpause_all): Update the macro and rename to...
716 (target_unpause_all): ... this.
717 * target.cc (process_target::pause_all): Define.
718 (process_target::unpause_all): Define.
719
720 Update the derived classes and callers below.
721
722 * server.cc (handle_status): Update.
723 * tracepoint.cc (clear_installed_tracepoints): Update.
724 (cmd_qtdp): Update.
725 (cmd_qtstart): Update.
726 (stop_tracing): Update.
727 (cmd_qtstatus): Update.
728 (upload_fast_traceframes): Update.
729 (run_inferior_command): Update.
730 * linux-low.cc (linux_target_ops): Update.
731 (linux_pause_all): Turn into ...
732 (linux_process_target::pause_all): ... this.
733 (linux_unpause_all): Turn into ...
734 (linux_process_target::unpause_all): ... this.
735 (linux_process_target::prepare_to_access_memory): Update.
736 (linux_process_target::done_accessing_memory): Update.
737 * linux-low.h (class linux_process_target): Update.
738 * lynx-low.cc (lynx_target_ops): Update.
739 * nto-low.cc (nto_target_ops): Update.
740 * win32-low.cc (win32_target_ops): Update.
741
4e2e869c
TBA
7422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
743
744 Turn process_stratum_target's get_tib_address op into a method of
745 process_target.
746
747 * target.h (struct process_stratum_target): Remove the target op.
748 (class process_target): Add the target op. Also add
749 'supports_get_tib_address'.
750 * target.cc (process_target::get_tib_address): Define.
751 (process_target::supports_get_tib_address): Define.
752
753 Update the derived classes and callers below.
754
755 * server.cc (handle_query): Update.
756 * linux-low.cc (win32_target_ops): Update.
757 * lynx-low.cc (lynx_target_ops): Update.
758 * nto-low.cc (nto_target_ops): Update.
759 * win32-low.cc (win32_target_ops): Update.
760 (win32_process_target::supports_get_tib_address): Define.
761 (win32_get_tib_address): Turn into ...
762 (win32_process_target::get_tib_address): ... this.
763 * win32-low.h (class win32_process_target): Update.
764
68119632
TBA
7652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
766
767 Turn process_stratum_target's thread_stopped op into a method of
768 process_target.
769
770 * target.h (struct process_stratum_target): Remove the target op.
771 (class process_target): Add the target op. Also add
772 'supports_thread_stopped'.
773 (target_thread_stopped): Update the macro.
774 * target.cc (process_target::thread_stopped): Define.
775 (process_target::supports_thread_stopped): Define.
776 (prepare_to_access_memory): Update.
777
778 Update the derived classes and callers below.
779
780 * server.cc (queue_stop_reply_callback): Update.
781 * linux-low.cc (linux_target_ops): Update.
782 (linux_process_target::supports_thread_stopped): Define.
783 (linux_thread_stopped): Turn into ...
784 (linux_process_target::thread_stopped): ... this.
785 * linux-low.h (class linux_process_target): Update.
786 * lynx-low.cc (lynx_target_ops): Update.
787 * nto-low.cc (nto_target_ops): Update.
788 * win32-low.cc (win32_target_ops): Update.
789
770d8f6a
TBA
7902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
791
792 Turn process_stratum_target's read_pc and write_pc ops into
793 methods of process_target.
794
795 * target.h (struct process_stratum_target): Remove the target ops.
796 (class process_target): Add the target ops.
797 * target.cc (process_target::read_pc): Define.
798 (process_target::write_pc): Define.
799
800 Update the derived classes and callers below.
801
802 * regcache.cc (regcache_read_pc): Update.
803 (regcache_write_pc): Update.
804 * linux-low.cc (linux_target_ops): Update.
805 (linux_read_pc): Turn into ...
806 (linux_process_target::read_pc): ... this.
807 (linux_write_pc): Turn into ...
808 (linux_process_target::write_pc): ... this.
809 * linux-low.h (class linux_process_target): Update.
810 * lynx-low.cc (lynx_target_ops): Update.
811 * nto-low.cc (nto_target_ops): Update.
812 * win32-low.cc (win32_target_ops): Update.
813
290732bf
TBA
8142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
815
816 Turn process_stratum_target's supports_tracepoints op into a
817 method of process_target.
818
819 * target.h (struct process_stratum_target): Remove the target op.
820 (class process_target): Add the target op.
821 (target_supports_tracepoints): Update the macro.
822 * target.cc (process_target::supports_tracepoints): Define.
823
824 Update the derived classes and callers below.
825
826 * linux-low.cc (linux_target_ops): Update.
827 (linux_supports_tracepoints): Turn into ...
828 (linux_process_target::supports_tracepoints): ... this.
829 * linux-low.h (class linux_process_target): Update.
830 * lynx-low.cc (lynx_target_ops): Update.
831 * nto-low.cc (nto_target_ops): Update.
832 * win32-low.cc (win32_target_ops): Update.
833
0df28b1b
TBA
8342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
835
836 Turn process_stratum_target's process_qsupported op into a method
837 of process_target.
838
839 * target.h (struct process_stratum_target): Remove the target op.
840 (class process_target): Add the target op.
841 (target_process_qsupported): Update the macro.
842 * target.cc (process_target::process_qsupported): Define.
843
844 Update the derived classes and callers below.
845
846 * linux-low.cc (linux_target_ops): Update.
847 (linux_process_qsupported): Turn into ...
848 (linux_process_target::process_qsupported): ... this.
849 * linux-low.h (class linux_process_target): Update.
850 * lynx-low.cc (lynx_target_ops): Update.
851 * nto-low.cc (nto_target_ops): Update.
852 * win32-low.cc (win32_target_ops): Update.
853
9da41fda
TBA
8542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
855
856 Turn process_stratum_target's read_loadmap op into a method of
857 process_target.
858
859 * target.h (struct process_stratum_target): Remove the target op.
860 (class process_target): Add the target op. Also add
861 'supports_read_loadmap'.
862 * target.cc (process_target::read_loadmap): Define.
863 (process_target::supports_read_loadmap): Define.
864
865 Update the derived classes and callers below.
866
867 * server.cc (handle_qxfer_fdpic): Update.
868 (handle_query): Update.
869 * linux-low.cc (linux_target_ops): Update.
870 (linux_process_target::supports_read_loadmap): Define.
871 (linux_read_loadmap): Turn into ...
872 (linux_process_target::read_loadmap): ... this.
873 * linux-low.h (class linux_process_target): Update.
874 * lynx-low.cc (lynx_target_ops): Update.
875 * nto-low.cc (nto_target_ops): Update.
876 * win32-low.cc (win32_target_ops): Update.
877
95a45fc1
TBA
8782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
879
880 Turn process_stratum_target's core_of_thread op into a method of
881 process_target.
882
883 * target.h (struct process_stratum_target): Remove the target op.
884 (class process_target): Add the target op.
885 (target_core_of_thread): Update the macro.
886 * target.cc (process_target::core_of_thread): Define.
887
888 Update the derived classes and callers below.
889
890 * linux-low.cc (linux_target_ops): Update.
891 (linux_process_target::core_of_thread): Define.
892 * linux-low.h (class linux_process_target): Update.
893 * lynx-low.cc (lynx_target_ops): Update.
894 * nto-low.cc (nto_target_ops): Update.
895 * win32-low.cc (win32_target_ops): Update.
896
55cf3021
TBA
8972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
898
899 Turn process_stratum_target's handle_monitor_command op into a
900 method of process_target.
901
902 * target.h (struct process_stratum_target): Remove the target op.
903 (class process_target): Add the target op.
904 (target_handle_monitor_command): Update the macro.
905 * target.cc (process_target::handle_monitor_command): Define.
906
907 Update the derived classes and callers below.
908
909 * server.cc (handle_query): Update.
910 * linux-low.cc (linux_target_ops): Update.
911 (linux_process_target::handle_monitor_command): Define.
912 * linux-low.h (class linux_process_target): Update.
913 * lynx-low.cc (lynx_target_ops): Update.
914 * nto-low.cc (nto_target_ops): Update.
915 * win32-low.cc (win32_target_ops): Update.
916
fb00dfce
TBA
9172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
918
919 Turn process_stratum_target's handle_new_gdb_connection op into a
920 method of process_target.
921
922 * target.h (struct process_stratum_target): Remove the target op.
923 (class process_target): Add the target op.
924 (target_handle_new_gdb_connection): Update the macro.
925 * target.cc (process_target::handle_new_gdb_connection): Define.
926
927 Update the derived classes and callers below.
928
929 * linux-low.cc (linux_target_ops): Update.
930 (linux_handle_new_gdb_connection): Turn into ...
931 (linux_process_target::handle_new_gdb_connection): ... this.
932 * linux-low.h (class linux_process_target): Update.
933 * lynx-low.cc (lynx_target_ops): Update.
934 * nto-low.cc (nto_target_ops): Update.
935 * win32-low.cc (win32_target_ops): Update.
936
9690a72a
TBA
9372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
938
939 Turn process_stratum_target's supports_fork_events,
940 supports_vfork_events, and supports_exec_events ops into methods
941 of process_target.
942
943 * target.h (struct process_stratum_target): Remove the target ops.
944 (class process_target): Add the target ops.
945 (target_supports_fork_events): Update the macro.
946 (target_supports_vfork_events): Update the macro.
947 (target_supports_exec_events): Update the macro.
948 * target.cc (process_target::supports_fork_events): Define.
949 (process_target::supports_vfork_events): Define.
950 (process_target::supports_exec_events): Define.
951
952 Update the derived classes and callers below.
953
954 * linux-low.cc (linux_target_ops): Update.
955 (linux_supports_fork_events): Turn into ...
956 (linux_process_target::supports_fork_events): ... this.
957 (linux_supports_vfork_events): Turn into ...
958 (linux_process_target::supports_vfork_events): ... this.
959 (linux_supports_exec_events): Turn into ...
960 (linux_process_target::supports_exec_events): ... this.
961 * linux-low.h (class linux_process_target): Update.
962 * lynx-low.cc (lynx_target_ops): Update.
963 * nto-low.cc (nto_target_ops): Update.
964 * win32-low.cc (win32_target_ops): Update.
965
652aef77
TBA
9662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
967
968 Turn process_stratum_target's supports_multi_process op into a
969 method of process_target.
970
971 * target.h (struct process_stratum_target): Remove the target op.
972 (class process_target): Add the target op.
973 * target.cc (process_target::supports_multi_process): Define.
974 (target_supports_multi_process): Update.
975
976 Update the derived classes and callers below.
977
978 * linux-low.cc (linux_target_ops): Update.
979 (linux_supports_multi_process): Turn into ...
980 (linux_process_target::supports_multi_process): ... this.
981 * linux-low.h (class linux_process_target): Update.
982 * lynx-low.cc (lynx_target_ops): Update.
983 * nto-low.cc (nto_target_ops): Update.
984 * win32-low.cc (win32_target_ops): Update.
985
0dc587d4
TBA
9862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
987
988 Turn process_stratum_target's supports_non_stop, async, and
989 start_non_stop ops into methods of process_target.
990
991 * target.h (struct process_stratum_target): Remove the target ops.
992 (class process_target): Add the target ops.
993 (target_supports_non_stop): Update the macro.
994 (target_async): Update the macro.
995 (start_non_stop): Remove declaration.
996 * target.cc (process_target::supports_non_stop): Define.
997 (process_target::async): Define.
998 (process_target::start_non_stop): Define.
999 (start_non_stop): Remove.
1000
1001 Update the derived classes and callers below.
1002
1003 * server.cc (handle_qxfer_siginfo): Update.
1004 (handle_query): Update.
1005 * linux-low.cc (linux_target_ops): Update.
1006 (linux_supports_non_stop): Turn into ...
1007 (linux_process_target::supports_non_stop): ... this.
1008 (linux_async): Turn into ...
1009 (linux_process_target::async): ... this.
1010 (linux_start_non_stop): Turn into ...
1011 (linux_process_target::start_non_stop): ... this.
1012 * linux-low.h (class linux_process_target): Update.
1013 * lynx-low.cc (lynx_target_ops): Update.
1014 * nto-low.cc (nto_target_ops): Update.
1015 (nto_supports_non_stop): Remove; rely on the default behavior
1016 instead.
1017 * win32-low.cc (win32_target_ops): Update.
1018
d7abedf7
TBA
10192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1020
1021 Turn process_stratum_target's qxfer_siginfo op into a method of
1022 process_target.
1023
1024 * target.h (struct process_stratum_target): Remove the target op.
1025 (class process_target): Add the target op. Also add
1026 'supports_qxfer_siginfo'.
1027 * target.cc (process_target::qxfer_siginfo): Define.
1028 (process_target::supports_qxfer_siginfo): Define.
1029
1030 Update the derived classes and callers below.
1031
1032 * server.cc (handle_qxfer_siginfo): Update.
1033 (handle_query): Update.
1034 * linux-low.cc (linux_target_ops): Update.
1035 (linux_process_target::supports_qxfer_siginfo): Define.
1036 (linux_xfer_siginfo): Turn into ...
1037 (linux_process_target::qxfer_siginfo): ... this.
1038 * linux-low.h (class linux_process_target): Update.
1039 * lynx-low.cc (lynx_target_ops): Update.
1040 * nto-low.cc (nto_target_ops): Update.
1041 * win32-low.cc (win32_target_ops): Update.
1042
2d0795ee
TBA
10432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1044
1045 Turn process_stratum_target's qxfer_osdata op into a method of
1046 process_target.
1047
1048 * target.h (struct process_stratum_target): Remove the target op.
1049 (class process_target): Add the target op. Also add
1050 'supports_qxfer_osdata'.
1051 * target.cc (process_target::qxfer_osdata): Define.
1052 (process_target::supports_qxfer_osdata): Define.
1053
1054 Update the derived classes and callers below.
1055
1056 * server.cc (handle_qxfer_osdata): Update.
1057 (handle_query): Update.
1058 * linux-low.cc (linux_target_ops): Update.
1059 (linux_process_target::supports_qxfer_osdata): Define.
1060 (linux_qxfer_osdata): Turn into ...
1061 (linux_process_target::qxfer_osdata): ... this.
1062 * linux-low.h (class linux_process_target): Update.
1063 * lynx-low.cc (lynx_target_ops): Update.
1064 * nto-low.cc (nto_target_ops): Update.
1065 * win32-low.cc (win32_target_ops): Update.
1066
ea06bbaa
TBA
10672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1068
1069 Turn process_stratum_target's hostio_last_error op into a
1070 method of process_target.
1071
1072 * target.h (struct process_stratum_target): Remove the target op.
1073 (class process_target): Add the target op.
1074 * target.cc: Add "hostio.h" to includes.
1075 (process_target::hostio_last_error): Define.
1076
1077 Update the derived classes and callers below.
1078
1079 * hostio.cc (hostio_error): Update.
1080 * linux-low.cc: Remove "hostio.h" from includes.
1081 (linux_target_ops): Update.
1082 * lynx-low.cc (lynx_target_ops): Update.
1083 * nto-low.cc (nto_target_ops): Update.
1084 * win32-low.h (class win32_process_target): Update.
1085 * win32-low.cc (win32_target_ops): Update.
1086 (wince_hostio_last_error): Turn into ...
1087 (win32_process_target::hostio_last_error): ... this.
1088
6e3fd7e9
TBA
10892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1090
1091 Turn process_stratum_target's get_tls_address op into a method of
1092 process_target.
1093
1094 * target.h (struct process_stratum_target): Remove the target op.
1095 (class process_target): Add the target op. Also add
1096 'supports_get_tls_address'.
1097 * target.cc (process_target::get_tls_address): Define.
1098 (process_target::supports_get_tls_address): Define.
1099
1100 Update the derived classes and callers below.
1101
1102 * server.cc (handle_query): Update.
1103 * linux-low.cc (linux_target_ops): Update.
1104 (linux_process_target::supports_get_tls_address): Define.
1105 (linux_process_target::get_tls_address): Define.
1106 * linux-low.h (class linux_process_target): Update.
1107 * lynx-low.cc (lynx_target_ops): Update.
1108 * nto-low.cc (nto_target_ops): Update.
1109 * win32-low.cc (win32_target_ops): Update.
1110
5203ae1e
TBA
11112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1112
1113 Turn process_stratum_target's read_offsets op into a method of
1114 process_target.
1115
1116 * target.h (struct process_stratum_target): Remove the target op.
1117 (class process_target): Add the target op. Also add
1118 'supports_read_offsets'.
1119 * target.cc (process_target::read_offsets): Define.
1120 (process_target::supports_read_offsets): Define.
1121
1122 Update the derived classes and callers below.
1123
1124 * server.cc (handle_query): Update.
1125 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1126 (linux_target_ops): Update.
1127 (linux_process_target::supports_read_offsets): Define.
1128 (linux_read_offsets): Turn into ...
1129 (linux_process_target::read_offsets): ... this.
1130 * linux-low.h (class linux_process_target): Update.
1131 * lynx-low.cc (lynx_target_ops): Update.
1132 * nto-low.cc (nto_target_ops): Update.
1133 * win32-low.cc (win32_target_ops): Update.
1134
6eeb5c55
TBA
11352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1136
1137 Turn process_stratum_target's stopped_by_watchpoint and
1138 stopped_data_address ops into methods of process_target.
1139
1140 * target.h (struct process_stratum_target): Remove the target ops.
1141 (class process_target): Add the target ops.
1142 * target.cc (process_target::stopped_by_watchpoint): Define.
1143 (process_target::stopped_data_address): Define.
1144
1145 Update the derived classes and callers below.
1146
1147 * remote-utils.cc (prepare_resume_reply): Update.
1148 * linux-low.cc (linux_target_ops): Update.
1149 (linux_stopped_by_watchpoint): Turn into ...
1150 (linux_process_target::stopped_by_watchpoint): ... this.
1151 (linux_stopped_data_address): Turn into ...
1152 (linux_process_target::stopped_data_address): ... this.
1153 * linux-low.h (class linux_process_target): Update.
1154 * lynx-low.cc (lynx_target_ops): Update.
1155 * nto-low.cc (nto_target_ops): Update.
1156 (nto_stopped_by_watchpoint): Turn into ...
1157 (nto_process_target::stopped_by_watchpoint): ... this.
1158 (nto_stopped_data_address): Turn into ...
1159 (nto_process_target::stopped_data_address): ... this.
1160 * nto-low.h (class nto_process_target): Update.
1161 * win32-low.cc (win32_target_ops): Update.
1162 (win32_stopped_by_watchpoint): Turn into ...
1163 (win32_process_target::stopped_by_watchpoint): ... this.
1164 (win32_stopped_data_address): Turn into ...
1165 (win32_process_target::stopped_data_address): ... this.
1166 * win32-low.h (class win32_process_target): Update.
1167
22aa6223
TBA
11682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1169
1170 Turn process_stratum_target's supports_hardware_single_step op into
1171 a method of process_target.
1172
1173 * target.h (struct process_stratum_target): Remove the target op.
1174 (class process_target): Add the target op.
1175 (target_supports_hardware_single_step): Update the macro.
1176 (target_can_do_hardware_single_step): Remove declaration.
1177 * target.cc (process_target::supports_hardware_single_step): Define.
1178 (target_can_do_hardware_single_step): Remove.
1179
1180 Update the derived classes and callers below.
1181
1182 * linux-low.h (class linux_process_target): Update.
1183 * linux-low.cc (linux_target_ops): Update.
1184 (linux_supports_hardware_single_step): Turn into ...
1185 (linux_process_target::supports_hardware_single_step): ... this.
1186 * lynx-low.h (class lynx_process_target): Update.
1187 * lynx-low.cc (lynx_target_ops): Update.
1188 (lynx_process_target::supports_hardware_single_step): Define.
1189 * nto-low.h (class nto_process_target): Update.
1190 * nto-low.cc (nto_target_ops): Update.
1191 (nto_process_target::supports_hardware_single_step): Define.
1192 * win32-low.h (class win32_process_target): Update.
1193 * win32-low.cc (win32_target_ops): Update.
1194 (win32_process_target::supports_hardware_single_step): Define.
1195
93fe88b2
TBA
11962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1197
1198 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1199 ops into methods of process_target.
1200
1201 * target.h (struct process_stratum_target): Remove the target ops.
1202 (class process_target): Add the target ops.
1203 (target_stopped_by_hw_breakpoint): Update the macro.
1204 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1205 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1206 (process_target::supports_stopped_by_hw_breakpoint): Define.
1207
1208 Update the derived classes and callers below.
1209
1210 * linux-low.cc (linux_target_ops): Update.
1211 (linux_stopped_by_hw_breakpoint): Turn into ...
1212 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1213 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1214 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1215 * linux-low.h (class linux_process_target): Update.
1216 * lynx-low.cc (lynx_target_ops): Update.
1217 * nto-low.cc (nto_target_ops): Update.
1218 * win32-low.cc (win32_target_ops): Update.
1219
84320c4e
TBA
12202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1221
1222 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1223 ops into methods of process_target.
1224
1225 * target.h (struct process_stratum_target): Remove the target ops.
1226 (class process_target): Add the target ops.
1227 (target_stopped_by_sw_breakpoint): Update the macro.
1228 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1229 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1230 (process_target::supports_stopped_by_sw_breakpoint): Define.
1231
1232 Update the derived classes and callers below.
1233
1234 * linux-low.cc (linux_target_ops): Update.
1235 (linux_stopped_by_sw_breakpoint): Turn into ...
1236 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1237 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1238 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1239 * linux-low.h (class linux_process_target): Update.
1240 * lynx-low.cc (lynx_target_ops): Update.
1241 * nto-low.cc (nto_target_ops): Update.
1242 * win32-low.cc (win32_target_ops): Update.
1243
7e0bde70
TBA
12442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1245
1246 Turn process_stratum_target's insert_point and remove_point ops
1247 into methods of process_target.
1248
1249 * target.h (struct process_stratum_target): Remove the target ops.
1250 (class process_target): Add the target ops.
1251 * target.cc (process_target::insert_point): Define.
1252 (process_target::remove_point): Define.
1253
1254 Update the derived classes and callers below.
1255
1256 * mem-break.cc (set_raw_breakpoint_at): Update.
1257 (delete_raw_breakpoint): Update.
1258 (uninsert_raw_breakpoint): Update.
1259 (reinsert_raw_breakpoint): Update.
1260 * linux-low.cc (linux_target_ops): Update.
1261 (linux_insert_point): Turn into ...
1262 (linux_process_target::insert_point): ... this.
1263 (linux_remove_point): Turn into ...
1264 (linux_process_target::remove_point): ... this.
1265 * linux-low.h (class linux_process_target): Update.
1266 * lynx-low.cc (lynx_target_ops): Update.
1267 * nto-low.cc (nto_target_ops): Update.
1268 (nto_insert_point): Turn into ...
1269 (nto_process_target::insert_point): ... this.
1270 (nto_remove_point): Turn into ...
1271 (nto_process_target::remove_point): ... this.
1272 * nto-low.h (class nto_process_target): Update.
1273 * win32-low.cc (win32_target_ops): Update.
1274 (win32_insert_point): Turn into ...
1275 (win32_process_target::insert_point): ... this.
1276 (win32_remove_point): Turn into ...
1277 (win32_process_target::remove_point): ... this.
1278 * win32-low.h (class win32_process_target): Update.
1279
a2b2297a
TBA
12802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1281
1282 Turn process_stratum_target's supports_z_point_type op into a
1283 method of process_target.
1284
1285 * target.h (struct process_stratum_target): Remove the target op.
1286 (class process_target): Add the target op.
1287 * target.cc (process_target::supports_z_point_type): Define.
1288
1289 Update the derived classes and callers below.
1290
1291 * mem-break.cc (z_type_supported): Update.
1292 * linux-low.cc (linux_target_ops): Update.
1293 (linux_supports_z_point_type): Turn into ...
1294 (linux_process_target::supports_z_point_type): ... this.
1295 * linux-low.h (class linux_process_target): Update.
1296 * lynx-low.cc (lynx_target_ops): Update.
1297 * nto-low.cc (nto_target_ops): Update.
1298 (nto_supports_z_point_type): Turn into ...
1299 (nto_process_target::supports_z_point_type): ... this.
1300 * nto-low.h (class nto_process_target): Update.
1301 * win32-low.cc (win32_target_ops): Update.
1302 (win32_supports_z_point_type): Turn into ...
1303 (win32_process_target::supports_z_point_type): ... this.
1304 * win32-low.h (class win32_process_target): Update.
1305
eac215cc
TBA
13062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1307
1308 Turn process_stratum_target's read_auxv op into a method of
1309 process_target.
1310
1311 * target.h (class process_stratum_target): Remove the target op.
1312 (struct process_target): Add the target op. Also add
1313 'supports_read_auxv'.
1314 * target.cc (process_target::read_auxv): Define.
1315 (process_target::supports_read_auxv): Define.
1316
1317 Update the derived classes and callers below.
1318
1319 * server.cc (handle_qxfer_auxv): Update.
1320 (handle_query): Update.
1321 * linux-low.cc (linux_target_ops): Update.
1322 (linux_process_target::supports_read_auxv): Define.
1323 (linux_read_auxv): Turn into ...
1324 (linux_process_target::read_auxv): ... this.
1325 * linux-low.h (class linux_process_target): Update.
1326 * lynx-low.cc (lynx_target_ops): Update.
1327 * nto-low.cc (nto_target_ops): Update.
1328 (nto_process_target::supports_read_auxv): Define.
1329 (nto_read_auxv): Turn into ...
1330 (nto_process_target::read_auxv): ... this.
1331 * nto-low.h (class nto_process_target): Update.
1332 * win32-low.cc (win32_target_ops): Update.
1333
eb497a2a
TBA
13342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1335
1336 Turn process_stratum_target's request_interrupt op into a method of
1337 process_target.
1338
1339 * target.h (struct process_stratum_target): Remove the target op.
1340 (class process_target): Add the target op.
1341
1342 Update the derived classes and callers below.
1343
1344 * remote-utils.cc (putpkt_binary_1): Update.
1345 (input_interrupt): Update.
1346 (getpkt): Update.
1347 * server.cc (handle_v_requests): Update.
1348 * linux-low.cc (linux_target_ops): Update.
1349 (linux_request_interrupt): Turn into ...
1350 (linux_process_target::request_interrupt): ... this.
1351 * linux-low.h (class linux_process_target): Update.
1352 * lynx-low.cc (lynx_target_ops): Update.
1353 (lynx_request_interrupt): Turn into ...
1354 (lynx_process_target::request_interrupt): ... this.
1355 * lynx-low.h (class lynx_process_target): Update.
1356 * nto-low.cc (nto_target_ops): Update.
1357 (nto_request_interrupt): Turn into ...
1358 (nto_process_target::request_interrupt): ... this.
1359 * nto-low.h (class nto_process_target): Update.
1360 * win32-low.cc (win32_target_ops): Update.
1361 (win32_request_interrupt): Turn into ...
1362 (win32_process_target::request_interrupt): ... this.
1363 * win32-low.h (class win32_process_target): Update.
1364
2a31c7aa
TBA
13652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1366
1367 Turn process_stratum_target's look_up_symbols op into a method of
1368 process_target.
1369
1370 * target.h (struct process_stratum_target): Remove the target op.
1371 (class process_target): Add the target op.
1372 * target.cc (process_target::look_up_symbols): Define.
1373
1374 Update the derived classes and callers below.
1375
1376 * server.cc (handle_query): Update.
1377 * linux-low.cc (linux_target_ops): Update.
1378 (linux_look_up_symbols): Turn into ...
1379 (linux_process_target::look_up_symbols): ... this.
1380 * linux-low.h (class linux_process_target): Update.
1381 * lynx-low.cc (lynx_target_ops): Update.
1382 * nto-low.cc (nto_target_ops): Update.
1383 * win32-low.cc (win32_target_ops): Update.
1384
e2558df3
TBA
13852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1386
1387 Turn process_stratum_target's read_memory and write_memory
1388 ops into methods of process_target.
1389
1390 * target.h (struct process_stratum_target): Remove the target ops.
1391 (class process_target): Add the target ops.
1392
1393 Update the derived classes and callers below.
1394
1395 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1396 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1397 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1398 (arm_get_syscall_trapinfo): Update.
1399 * linux-cris-low.cc (cris_breakpoint_at): Update.
1400 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1401 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1402 * linux-mips-low.cc (mips_breakpoint_at): Update.
1403 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1404 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1405 * linux-sh-low.cc (sh_breakpoint_at): Update.
1406 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1407 (sparc_store_gregset_from_stack): Update.
1408 (sparc_breakpoint_at): Update.
1409 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1410 * linux-tile-low.cc (tile_breakpoint_at): Update.
1411 * linux-x86-low.cc (x86_breakpoint_at): Update.
1412 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1413 * mem-brea.cc (insert_memory_breakpoint): Update.
1414 (validate_inserted_breakpoint): Update.
1415 * target.cc (read_inferior_memory): Update.
1416 (target_write_memory): Update.
1417 * linux-low.cc (linux_target_ops): Update.
1418 (linux_read_memory): Make a wrapper around the read_memory target
1419 op call.
1420 (linux_process_target::read_memory): Rename from linux_read_memory.
1421 (linux_write_memory): Turn into ...
1422 (linux_process_target::write_memory): ... this.
1423 * linux-low.h (class linux_process_target): Update.
1424 * lynx-low.cc (lynx_target_ops): Update.
1425 (lynx_read_memory): Turn into ...
1426 (lynx_process_target::read_memory): ... this.
1427 (lynx_write_memory): Turn into ...
1428 (lynx_process_target::write_memory): ... this.
1429 * lynx-low.h (class lynx_process_target): Update.
1430 * nto-low.cc (nto_target_ops): Update.
1431 (nto_read_memory): Turn into ...
1432 (nto_process_target::read_memory): ... this.
1433 (nto_write_memory): Turn into ...
1434 (nto_process_target::write_memory): ... this.
1435 * nto-low.h (class nto_process_target): Update.
1436 * win32-low.cc (win32_target_ops): Update.
1437 (win32_read_inferior_memory): Turn into ...
1438 (win32_process_target::read_memory): ... this.
1439 (win32_write_inferior_memory): Turn into ...
1440 (win32_process_target::write_memory): ... this.
1441 * win32-low.h (class win32_process_target): Update.
1442
79b44087
TBA
14432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1444
1445 Turn process_stratum_target's prepare_to_access_memory and
1446 done_accessing_memory ops into methods of process_target.
1447
1448 * target.h (struct process_stratum_target): Remove the target ops.
1449 (class process_target): Add the target ops.
1450 * target.cc (process_target::prepare_to_access_memory): Define.
1451 (process_target::done_accessing_memory): Define.
1452 (prepare_to_access_memory): Update.
1453 (done_accessing_memory): Update.
1454
1455 Update the derived classes and callers below.
1456
1457 * linux-low.cc (linux_target_ops): Update.
1458 (linux_prepare_to_access_memory): Turn into ...
1459 (linux_process_target::prepare_to_access_memory): ... this.
1460 (linux_done_accessing_memory): Turn into ...
1461 (linux_process_target::done_accessing_memory): ... this.
1462 * linux-low.h (class linux_process_target): Update.
1463 * lynx-low.cc (lynx_target_ops): Update.
1464 * nto-low.cc (nto_target_ops): Update.
1465 * win32-low.cc (win32_target_ops): Update.
1466
a5a4d4cd
TBA
14672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1468
1469 Turn process_stratum_target's fetch_registers and store_registers
1470 ops into methods of process_target.
1471
1472 * target.h (struct process_stratum_target): Remove the target ops.
1473 (class process_target): Add the target ops.
1474 (fetch_inferior_registers): Update the macro.
1475 (store_inferior_registers): Update the macro.
1476
1477 Update the derived classes and callers below.
1478
1479 * linux-low.cc (linux_target_ops): Update.
1480 (linux_fetch_registers): Turn into ...
1481 (linux_process_target::fetch_registers): ... this.
1482 (linux_store_registers): Turn into ...
1483 (linux_process_target::store_registers): ... this.
1484 * linux-low.h (class linux_process_target): Update.
1485 * lynx-low.cc (lynx_target_ops): Update.
1486 (lynx_fetch_registers): Turn into ...
1487 (lynx_process_target::fetch_registers): ... this.
1488 (lynx_store_registers): Turn into ...
1489 (lynx_process_target::store_registers): ... this.
1490 * lynx-low.h (class lynx_process_target): Update.
1491 * nto-low.cc (nto_target_ops): Update.
1492 (nto_fetch_registers): Turn into ...
1493 (nto_process_target::fetch_registers): ... this.
1494 (nto_store_registers): Turn into ...
1495 (nto_process_target::store_registers): ... this.
1496 * nto-low.h (class nto_process_target): Update.
1497 * win32-low.cc (win32_target_ops): Update.
1498 (win32_fetch_inferior_registers): Turn into ...
1499 (win32_process_target::fetch_registers): ... this.
1500 (win32_store_inferior_registers): Turn into ...
1501 (win32_process_target::store_registers): ... this.
1502 * win32-low.h (class win32_process_target): Update.
1503
6532e7e3
TBA
15042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1505
1506 Turn process_stratum_target's wait op into a method of
1507 process_target.
1508
1509 * target.h (struct process_stratum_target): Remove the target op.
1510 (class process_target): Add the target op.
1511
1512 Update the derived classes and callers below.
1513
1514 * target.cc (target_wait): Update.
1515 * linux-low.cc (linux_target_ops): Update.
1516 (linux_wait): Turn into ...
1517 (linux_process_target::wait): ... this.
1518 * linux-low.h (class linux_process_target): Update.
1519 * lynx-low.cc (lynx_target_ops): Update.
1520 (lynx_wait): Turn into ...
1521 (lynx_process_target::wait): ... this.
1522 * lynx-low.h (class lynx_process_target): Update.
1523 * nto-low.cc (nto_target_ops): Update.
1524 (nto_wait): Turn into ...
1525 (nto_process_target::wait): ... this.
1526 * nto-low.h (class nto_process_target): Update.
1527 * win32-low.cc (win32_target_ops): Update.
1528 (win32_wait): Turn into ...
1529 (win32_process_target::wait): ... this.
1530 (do_initial_child_stuff): Update.
1531 * win32-low.h (class win32_process_target): Update.
1532
0e4d7e35
TBA
15332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1534
1535 Turn process_stratum_target's resume op into a method of
1536 process_target.
1537
1538 * target.h (struct process_stratum_target): Remove the target op.
1539 (class process_target): Add the target op.
1540
1541 Update the derived classes and callers below.
1542
1543 * server.cc (resume): Update.
1544 * target.cc (target_stop_and_wait): Update.
1545 (target_continue_no_signal): Update.
1546 (target_continue): Update.
1547 * linux-low.cc (linux_target_ops): Update.
1548 (linux_resume): Turn into ...
1549 (linux_process_target::resume): ... this.
1550 * linux-low.h (class linux_process_target): Update.
1551 * lynx-low.cc (lynx_target_ops): Update.
1552 (lynx_resume): Turn into ...
1553 (lynx_process_target::resume): ... this.
1554 * lynx-low.h (class lynx_process_target): Update.
1555 * nto-low.cc (nto_target_ops): Update.
1556 (nto_resume): Turn into ...
1557 (nto_process_target::resume): ... this.
1558 * nto-low.h (class nto_process_target): Update.
1559 * win32-low.cc (win32_target_ops): Update.
1560 (win32_resume): Turn into ...
1561 (win32_process_target::resume): ... this.
1562 (win32_process_target::detach): Update.
1563 (do_initial_child_stuff): Update.
1564 * win32-low.h (class win32_process_target): Update.
1565
13d3d99b
TBA
15662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1567
1568 Turn process_stratum_target's thread_alive op into a method of
1569 process_target.
1570
1571 * target.h (struct process_stratum_target): Remove the target op.
1572 (class process_target): Add the target op.
1573 (mythread_alive): Update the macro.
1574
1575 Update the derived classes and callers below.
1576
1577 * linux-low.cc (linux_target_ops): Update.
1578 (linux_thread_alive): Turn into ...
1579 (linux_process_target::thread_alive): ... this.
1580 (wait_for_sigstop): Update.
1581 * linux-low.h (class linux_process_target): Update.
1582 * lynx-low.cc (lynx_target_ops): Update.
1583 (lynx_thread_alive): Turn into ...
1584 (lynx_process_target::thread_alive): ... this.
1585 * lynx-low.h (class lynx_process_target): Update.
1586 * nto-low.cc (nto_target_ops): Update.
1587 (nto_thread_alive): Turn into ...
1588 (nto_process_target::thread_alive): ... this.
1589 * nto-low.h (class nto_process_target): Update.
1590 * win32-low.cc (win32_target_ops): Update.
1591 (win32_thread_alive): Turn into ...
1592 (win32_process_target::thread_alive): ... this.
1593 * win32-low.h (class win32_process_target): Update.
1594
95a49a39
TBA
15952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1596
1597 Turn process_stratum_target's join op into a method of
1598 process_target.
1599
1600 * target.h (struct process_stratum_target): Remove the target op.
1601 (class process_target): Add the target op.
1602 (join_inferior): Update the macro.
1603
1604 Update the derived classes and callers below.
1605
1606 * linux-low.cc (linux_target_ops): Update.
1607 (linux_join): Turn into ...
1608 (linux_process_target::join): ... this.
1609 * linux-low.h (class linux_process_target): Update.
1610 * lynx-low.cc (lynx_target_ops): Update.
1611 (lynx_join): Turn into ...
1612 (lynx_process_target::join): ... this.
1613 * lynx-low.h (class lynx_process_target): Update.
1614 * nto-low.cc (nto_target_ops): Update.
1615 (nto_process_target::join): Define.
1616 * nto-low.h (class nto_process_target): Update.
1617 * win32-low.cc (win32_target_ops): Update.
1618 (win32_join): Turn into ...
1619 (win32_process_target::join): ... this.
1620 * win32-low.h (class win32_process_target): Update.
1621
8adb37b9
TBA
16222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1623
1624 Turn process_stratum_target's mourn op into a method of
1625 process_target.
1626
1627 * target.h (struct process_stratum_target): Remove the target op.
1628 (class process_target): Add the target op.
1629
1630 Update the derived classes and callers below.
1631
1632 * target.cc (target_mourn_inferior): Update.
1633 * linux-low.cc (linux_target_ops): Update.
1634 (linux_mourn): Turn into ...
1635 (linux_process_target::mourn): ... this.
1636 (handle_extended_wait): Update.
1637 (linux_process_target::kill): Update.
1638 (linux_process_target::detach): Update.
1639 * linux-low.h (class linux_process_target): Update.
1640 * lynx-low.cc (lynx_target_ops): Update.
1641 (lynx_mourn): Turn into ...
1642 (lynx_process_target::mourn): ... this.
1643 * lynx-low.h (class lynx_process_target): Update.
1644 * nto-low.cc (nto_target_ops): Update.
1645 (nto_mourn): Turn into ...
1646 (nto_process_target::mourn): ... this.
1647 * nto-low.h (class nto_process_target): Update.
1648 * win32-low.cc (win32_target_ops): Update.
1649 (win32_mourn): Turn into ...
1650 (win32_process_target::mourn): ... this.
1651 * win32-low.h (class win32_process_target): Update.
1652
9061c9cf
TBA
16532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1654
1655 Turn process_stratum_target's detach op into a method of
1656 process_target.
1657
1658 * target.h (struct process_stratum_target): Remove the target op.
1659 (class process_target): Add the target op.
1660 (detach_inferior): Update the macro.
1661
1662 Update the derived classes and callers below.
1663
1664 * linux-low.cc (linux_target_ops): Update.
1665 (linux_detach): Turn into ...
1666 (linux_process_target::detach): ... this.
1667 * linux-low.h (class linux_process_target): Update.
1668 * lynx-low.cc (lynx_target_ops): Update.
1669 (lynx_detach): Turn into ...
1670 (lynx_process_target::detach): ... this.
1671 * lynx-low.h (class lynx_process_target): Update.
1672 * nto-low.cc (nto_target_ops): Update.
1673 (nto_detach): Turn into ...
1674 (nto_process_target::detach): ... this.
1675 * nto-low.h (class nto_process_target): Update.
1676 * win32-low.cc (win32_target_ops): Update.
1677 (win32_detach): Turn into ...
1678 (win32_process_target::detach): ... this.
1679 * win32-low.h (class win32_process_target): Update.
1680
c6885a57
TBA
16812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1682
1683 Turn process_stratum_target's kill op into a method of
1684 process_target.
1685
1686 * target.h (struct process_stratum_target): Remove the target op.
1687 (class process_target): Add the target op.
1688
1689 Update the derived classes and callers below.
1690
1691 * target.cc (kill_inferior): Update.
1692 * linux-low.cc (linux_target_ops): Update.
1693 (linux_kill): Turn into ...
1694 (linux_process_target::kill): ... this.
1695 * linux-low.h (class linux_process_target): Update.
1696 * lynx-low.cc (lynx_target_ops): Update.
1697 (lynx_kill): Turn into ...
1698 (lynx_process_target::kill): ... this.
1699 * lynx-low.h (class lynx_process_target): Update.
1700 * nto-low.cc (nto_target_ops): Update.
1701 (nto_kill): Turn into ...
1702 (nto_process_target::kill): ... this.
1703 * nto-low.h (class nto_process_target): Update.
1704 * win32-low.cc (win32_target_ops): Update.
1705 (win32_kill): Turn into ...
1706 (win32_process_target::kill): ... this.
1707 * win32-low.h (class win32_process_target): Update.
1708
ef03dad8
TBA
17092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1710
1711 Turn process_stratum_target's attach op into a method of
1712 process_target.
1713
1714 * target.h (struct process_stratum_target): Remove the target op.
1715 (class process_target): Add the target op.
1716 (myattach): Update the macro.
1717
1718 Update the derived classes and callers below.
1719
1720 * linux-low.cc (linux_target_ops): Update.
1721 (linux_attach): Turn into ...
1722 (linux_process_target::attach): ... this.
1723 * linux-low.h (class linux_process_target): Update.
1724 * lynx-low.cc (lynx_target_ops): Update.
1725 (lynx_attach): Turn into ...
1726 (lynx_process_target::attach): ... this.
1727 * lynx-low.h (class lynx_process_target): Update.
1728 * nto-low.cc (nto_target_ops): Update.
1729 (nto_attach): Turn into ...
1730 (nto_process_target::attach): ... this.
1731 * nto-low.h (class nto_process_target): Update.
1732 * win32-low.cc (win32_target_ops): Update.
1733 (win32_attach): Turn into ...
1734 (win32_process_target::attach): ... this.
1735 * win32-low.h (class win32_process_target): Update.
1736
6dee9afb
TBA
17372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1738
1739 Turn process_stratum_target's post_create_inferior op into a method
1740 of process_target.
1741
1742 * target.h (struct process_stratum_target): Remove the target op.
1743 (class process_target): Add the target op.
1744 (target_post_create_inferior): Update the macro.
1745 * target.cc (process_target::post_create_inferior): Define.
1746
1747 Update the derived classes and callers below.
1748
1749 * linux-low.cc (linux_target_ops): Update.
1750 (linux_post_create_inferior): Turn into ...
1751 (linux_process_target::post_create_inferior): ... this.
1752 * linux-low.h (class linux_process_target): Update.
1753 * lynx-low.cc (lynx_target_ops): Update.
1754 * nto-low.cc (nto_target_ops): Update.
1755 * win32-low.cc (win32_target_ops): Update.
1756
15295543
TBA
17572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1758
1759 Turn process_stratum_target's create_inferior op into a method of
1760 process_target.
1761
1762 * target.h (struct process_stratum_target): Remove the target op.
1763 (class process_target): Add the target op.
1764 (create_inferior): Rename the macro to ...
1765 (target_create_inferior): ... this.
1766
1767 Update the derived classes and callers below.
1768
1769 * server.cc (handle_v_run): Update.
1770 (captured_main): Update.
1771 (process_serial_event): Update.
1772 * linux-low.cc (linux_target_ops): Update.
1773 (linux_create_inferior): Turn into ...
1774 (linux_process_target::create_inferior): ... this.
1775 * linux-low.h (class linux_process_target): Update.
1776 * lynx-low.cc (lynx_target_ops): Update.
1777 (lynx_create_inferior): Turn into ...
1778 (lynx_process_target::create_inferior): ... this.
1779 * lynx-low.h (class lynx_process_target): Update.
1780 * nto-low.cc (nto_target_ops): Update.
1781 (nto_create_inferior): Turn into ...
1782 (nto_process_target::create_inferior): ... this.
1783 * nto-low.h (class nto_process_target): Update.
1784 * win32-low.cc (win32_target_ops): Update.
1785 (win32_create_inferior): Turn into ...
1786 (win32_process_target::create_inferior): ... this.
1787 * win32-low.h (class win32_process_target): Update.
1788
5ef9273d
TBA
17892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1790
1791 * target.h (class process_target): New class definition.
1792 (struct process_stratum_target) <pt>: New field with type
1793 'process_target*'.
1794 * linux-low.h (class linux_process_target): Define as a derived
1795 class of 'process_target'.
1796 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1797 as the 'pt' field.
1798 * lynx-low.h (class lynx_process_target): Define as a derived
1799 class of 'process_target'.
1800 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1801 as the 'pt' field.
1802 * nto-low.h (class nto_process_target): Define as a derived
1803 class of 'process_target'.
1804 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1805 as the 'pt' field.
1806 * win32-low.h (class win32_process_target): Define as a derived
1807 class of 'process_target'.
1808 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1809 as the 'pt' field.
1810
9f1528a1
AB
18112020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 * configure: Regenerate.
1814
bf84f706
MR
18152020-02-19 Maciej W. Rozycki <macro@wdc.com>
1816 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * linux-riscv-low.cc: New file.
1819 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1820 and nat/riscv-linux-tdesc.c.
1821 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1822 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1823 Define.
1824
1a627e7e
TT
18252020-02-14 Tom Tromey <tom@tromey.com>
1826
1827 * acinclude.m4: Don't include acx_configure_dir.m4.
1828 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1829 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1830 (all, install-only, uninstall, clean-info, clean)
1831 (maintainer-clean): Don't recurse.
1832 (subdir_do, all-lib): Remove.
1833 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1834 (GNULIB_H): Remove.
1835 (generated_files): Update.
1836 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1837 * configure: Rebuild.
1838 * configure.ac: Don't configure gnulib or libiberty.
1839 (GNULIB): Update.
1840
a9b34532
EZ
18412020-02-14 Eli Zaretskii <eliz@gnu.org>
1842
1843 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1844 preparing the command line for CreateProcess.
1845 (win32_create_inferior): Reflect the program name in debugging
1846 output that shows the process and its command line.
1847
feacfcac
SM
18482020-02-13 Simon Marchi <simon.marchi@efficios.com>
1849
1850 * Makefile.in: Rename source files from .c to .cc.
1851 * %.c: Rename to %.cc.
1852 * configure.ac: Rename server.c to server.cc.
1853 * configure: Re-generate.
1854
06b3c5bd
SM
18552020-02-13 Simon Marchi <simon.marchi@efficios.com>
1856
1857 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1858
052793ad
HD
18592020-02-12 Hannes Domani <ssbssa@yahoo.de>
1860
1861 * win32-low.c (win32_create_inferior): Set signal_pid.
1862
f20e3e82
MR
18632020-02-12 Maciej W. Rozycki <macro@wdc.com>
1864 Pedro Alves <palves@redhat.com>
1865
1866 Skip building gdbserver in a cross-configuration.
1867 * configure.srv: Set $gdbserver_host depending on whether $target
1868 is $host. Use $gdbserver_host instead of $host.
1869
8ddd8e0e
SM
18702020-02-11 Simon Marchi <simon.marchi@efficios.com>
1871
1872 * configure: Re-generate.
1873
898e7f60
SM
18742020-02-11 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * configure: Re-generate.
1877
58df732b
SM
18782020-02-11 Simon Marchi <simon.marchi@efficios.com>
1879
1880 * acinclude.m4: Update warning.m4 path.
1881
7928d571
HD
18822020-02-09 Hannes Domani <ssbssa@yahoo.de>
1883
1884 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1885 (handle_exception): Set siginfo_er.
1886 (win32_xfer_siginfo): New function.
1887
919adfe8
TT
18882020-02-07 Tom Tromey <tom@tromey.com>
1889 Pedro Alves <palves@redhat.com>
1890
1891 * README: Update build documentation.
1892 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1893 host, not target.
1894 * configure.ac: Update paths.
1895 * configure: Rebuild.
1896 * acinclude.m4: Update paths.
1897 * Makefile.in: Update include paths.
1898 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1899 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1900 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1901 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1902 (%-generated.c): Update paths.
1903 * Move entire directory from ../gdb/gdbserver.
1904
287c844a
MR
19052020-01-29 Maciej W. Rozycki <macro@wdc.com>
1906
1907 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1908
548a204f
PFC
19092020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1910
1911 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1912 assignment instead of srv_linux_obj.
1913
a2236a08
HD
19142020-01-28 Hannes Domani <ssbssa@yahoo.de>
1915
1916 * server.c (handle_qxfer_libraries): Write segment-address with
1917 paddress.
1918
bdaed379
HD
19192020-01-24 Hannes Domani <ssbssa@yahoo.de>
1920
1921 * Makefile.in (install-strip): New target.
1922 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1923 * aclocal.m4: Regenerate.
1924 * configure: Regenerate.
1925 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1926
42cd72aa
MR
19272020-01-24 Maciej W. Rozycki <macro@wdc.com>
1928
1929 * Makefile.in (SFILES): Adjust paths to point to real files.
1930 (OBS): Move waitstatus.o to target/waitstatus.o.
1931 (TAGS): Transform paths appropriately.
1932 (%.o): Rename to...
1933 (nat/%.o): ... this pattern rule.
1934 (%.o): Rename to...
1935 (target/%.o): ... this pattern rule.
1936 * configure.srv: Adjust paths throughout to include nat/ prefix
1937 with the revant files.
1938 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1939 * configure: Regenerate.
1940
42ba50ec
MR
19412020-01-24 Maciej W. Rozycki <macro@wdc.com>
1942
1943 * Makefile.in (TAGS): Remove config files from the recipe.
1944
05ea2a05
TT
19452020-01-14 Tom Tromey <tom@tromey.com>
1946
1947 * configure: Rebuild.
1948 * configure.ac: Remove any checks that were added to common.m4.
1949 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1950 lib-link.m4.
1951
01027315
TT
19522020-01-14 Tom Tromey <tom@tromey.com>
1953
1954 * server.h: Include config.h.
1955 * gdbreplay.c: Include config.h.
1956 * configure: Rebuild.
1957 * configure.ac: Don't source common.host.
1958 * acinclude.m4: Update path.
1959 * Makefile.in (INCSUPPORT): New variable.
1960 (INCLUDE_CFLAGS): Add INCSUPPORT.
1961 (SFILES): Update paths.
1962 (version-generated.c): Update path to create-version.sh.
1963 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1964
b2ceabe8
TT
19652020-01-14 Tom Tromey <tom@tromey.com>
1966
1967 * configure.ac (LIBS): Use WIN32APILIBS.
1968 (USE_WIN32API): Don't define.
1969 * configure: Rebuild.
1970
25c51f71
TT
19712020-01-14 Tom Tromey <tom@tromey.com>
1972
1973 * configure: Rebuild.
1974
c0bd321d
SM
19752020-01-13 Simon Marchi <simon.marchi@efficios.com>
1976
1977 * Makefile.in (%-generated.c): Remove rule for files from
1978 regformats/i386.
1979
bb564c58
SM
19802020-01-13 Simon Marchi <simon.marchi@efficios.com>
1981
1982 * configure: Re-generate.
1983
6e37c371
SM
19842020-01-13 Simon Marchi <simon.marchi@efficios.com>
1985
1986 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1987 Define to static.
1988 * tracepoint.c (stop_tracing, flush_trace_buffer,
1989 about_to_request_buffer_space, get_trace_state_variable_value,
1990 set_trace_state_variable_value, gdb_collect): Add declaration.
1991
df4a0200
SM
19922020-01-13 Simon Marchi <simon.marchi@efficios.com>
1993
1994 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1995 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1996 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1997 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1998 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1999 static.
2000
89e94ec9
SM
20012020-01-13 Simon Marchi <simon.marchi@efficios.com>
2002
2003 * inferiors.c: Include gdbsupport/common-inferior.h.
2004
2552728a
SM
20052020-01-13 Simon Marchi <simon.marchi@efficios.com>
2006
2007 * hostio-errno.c: Include hostio.h.
2008
4025fa09
SM
20092020-01-13 Simon Marchi <simon.marchi@efficios.com>
2010
2011 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2012 prerequisite.
2013
c0b0a142
SM
20142020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2015
2016 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2017 * linux-arm-tdesc.h: Include arch/arm.h.
2018
bb1183e2
SM
20192020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2020
2021 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2022
f5df0b5f
SM
20232020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2024
2025 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2026 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2027
5b6d1e4f
PA
20282020-01-10 Pedro Alves <palves@redhat.com>
2029
2030 * fork-child.c (post_fork_inferior): Pass target down to
2031 startup_inferior.
2032 * inferiors.c (switch_to_thread): Add process_stratum_target
2033 parameter.
2034 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2035 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2036 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2037 * remote-utils.c (prepare_resume_reply): Pass the target to
2038 switch_to_thread.
2039 * target.c (the_target): Now a process_stratum_target.
2040 (done_accessing_memory): Pass the target to switch_to_thread.
2041 (set_target_ops): Ajust to use process_stratum_target.
2042 * target.h (struct target_ops): Rename to ...
2043 (struct process_stratum_target): ... this.
2044 (the_target, set_target_ops): Adjust.
2045 (prepare_to_access_memory): Adjust comment.
2046 * win32-low.c (child_xfer_memory): Adjust to use
2047 process_stratum_target.
2048 (win32_target_ops): Now a process_stratum_target.
2049
559e7e50
EZ
20502020-01-06 Eli Zaretskii <eliz@gnu.org>
2051 Pedro Alves <palves@redhat.com>
2052
2053 * win32-low.c (get_child_debug_event): Extract the fatal exception
2054 from the exit status and convert to the equivalent Posix signal
2055 number.
2056 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2057 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2058
48189bec
HD
20592020-01-01 Hannes Domani <ssbssa@yahoo.de>
2060
2061 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2062
5dd8bf88
JB
20632020-01-01 Joel Brobecker <brobecker@adacore.com>
2064
2065 * server.c (gdbserver_version): Change copyright year to 2020.
2066 * gdbreplay.c (gdbreplay_version): Likewise.
2067
0ad6b8ee
CB
20682019-12-19 Christian Biesinger <cbiesinger@google.com>
2069
2070 * configure: Regenerate.
2071 * configure.ac: Quote variable arguments of test.
2072
1ee7b812
BE
20732019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2074
2075 * Makefile.in: Fix build with GNU Make 3.81
2076
d9fa87f4
TT
20772019-12-16 Tom Tromey <tromey@adacore.com>
2078
2079 * server.c (get_exec_file): Constify result.
2080
ab7d13f0
CB
20812019-12-10 Christian Biesinger <cbiesinger@google.com>
2082
2083 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2084 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2085 * config.in: Regenerate.
2086 * configure: Regenerate.
2087 * configure.ac: Don't check for strerror.
2088 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2089 Call safe_strerror instead of strerror.
2090 * server.h (strerror): Remove this now-unnecessary declaration.
2091 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2092 strerror.
2093 (gdb_agent_helper_thread): Likewise.
2094 * utils.c (perror_with_name): Likewise.
2095
4da8c3a8
TT
20962019-11-26 Tom Tromey <tom@tromey.com>
2097
2098 * configure, config.in: Rebuild.
2099
21987b9c
TT
21002019-11-26 Tom Tromey <tom@tromey.com>
2101
2102 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2103 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2104 gdb_sigmask.
2105 * configure, config.in: Rebuild.
2106
5e030278
TT
21072019-11-26 Tom Tromey <tom@tromey.com>
2108
2109 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2110 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2111 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2112 * acinclude.m4: Include ax_pthread.m4.
2113 * config.in, configure: Rebuild.
2114
6d91ce9a
CB
21152019-11-26 Christian Biesinger <cbiesinger@google.com>
2116
2117 * debug.c (debug_set_output): Call safe_strerror instead of
2118 strerror.
2119 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2120 (linux_kill_one_lwp): Likewise.
2121 (linux_detach_one_lwp): Likewise.
2122 (linux_wait_for_event_filtered): Likewise.
2123 (store_register): Likewise.
2124 * lynx-low.c (lynx_attach): Likewise.
2125 * mem-break.c (insert_memory_breakpoint): Likewise.
2126 (remove_memory_breakpoint): Likewise.
2127 (delete_fast_tracepoint_jump): Likewise.
2128 (set_fast_tracepoint_jump): Likewise.
2129 (uninsert_fast_tracepoint_jumps_at): Likewise.
2130 (reinsert_fast_tracepoint_jumps_at): Likewise.
2131 * nto-low.c (nto_xfer_memory): Likewise.
2132 (nto_resume): Likewise.
2133
6cdd651f
LM
21342019-11-20 Luis Machado <luis.machado@linaro.org>
2135
2136 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2137 instead of register count.
2138 * tdesc.c (tdesc_contains_feature): New function.
2139 * tdesc.h (tdesc_contains_feature): New prototype.
2140
cd850b40
CB
21412019-11-15 Christian Biesinger <cbiesinger@google.com>
2142
2143 * Makefile.in: Add safe-strerror.c.
2144 * configure: Regenerate.
2145 * configure.ac: Don't source common.host.
2146
5abebf3c
CB
21472019-11-15 Christian Biesinger <cbiesinger@google.com>
2148
2149 * config.in: Regenerate.
2150 * configure: Regenerate.
2151
e06f3d6e
AB
21522019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * ax.c (ax_printf): Handle size_t_arg.
2155
ca3a04f6
CB
21562019-11-06 Christian Biesinger <cbiesinger@google.com>
2157
2158 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2159 * mi/mi-main.c (output_cores): Likewise.
2160 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2161 (linux_xfer_osdata_modules): Likewise.
2162 * remote.c (register_remote_support_xml): Likewise.
2163 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2164 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2165
e48f6033
CB
21662019-11-01 Christian Biesinger <cbiesinger@google.com>
2167
2168 * configure: Regenerate.
2169 * configure.ac: Remove check for strerror_r.
2170
e7e97a2e
CB
21712019-10-31 Christian Biesinger <cbiesinger@google.com>
2172
2173 * config.in: Regenerate.
2174 * configure: Regenerate.
2175 * configure.ac: Also check for strerror_r.
2176
75cafaa6
CB
21772019-10-31 Christian Biesinger <cbiesinger@google.com>
2178
2179 * ax.h (debug_agent): Remove duplicate declaration.
2180
30baf67b
TV
21812019-10-26 Tom de Vries <tdevries@suse.de>
2182
2183 * linux-aarch64-low.c: Fix typos in comments.
2184 * linux-arm-low.c: Same.
2185 * linux-low.c: Same.
2186 * linux-ppc-low.c: Same.
2187 * proc-service.c: Same.
2188 * regcache.h: Same.
2189 * server.c: Same.
2190 * tracepoint.c: Same.
2191 * win32-low.c: Same.
2192
52c64cf7
TT
21932019-10-25 Tom Tromey <tromey@adacore.com>
2194
2195 * utils.c (xstrdup): Remove.
2196
c12d372d
TT
21972019-10-23 Tom Tromey <tom@tromey.com>
2198
2199 * configure, config.in: Rebuild.
2200
4d0b984b
TT
22012019-10-23 Tom Tromey <tom@tromey.com>
2202
2203 * configure: Rebuild.
2204 * acinclude.m4: Use m4_include, not sinclude.
2205
c5adaa19
TT
22062019-10-17 Tom Tromey <tromey@adacore.com>
2207
2208 * configure: Rebuild.
2209 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2210 in AC_CONFIG_FILES invocation.
2211 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2212 invocation.
2213
fec4e896
CB
22142019-10-16 Christian Biesinger <cbiesinger@google.com>
2215
2216 * server.c: Include xml-builtin.h.
2217 (get_xml_features): Don't declare xml_builtins here.
2218
00975ff6
AB
22192019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * Makefile.in: Remove references to vec-ipa.o.
2222
0dc32745
AB
22232019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * Makefile.in: Remove references to vec.c.
2226
3e6ec53a
CB
22272019-10-02 Christian Biesinger <cbiesinger@google.com>
2228
2229 * server.c (server_waiting): Change to bool.
2230 (extended_protocol): Likewise.
2231 (response_needed): Likewise.
2232 (exit_requested): Likewise.
2233 (run_once): Likewise.
2234 (report_no_resumed): Likewise.
2235 (non_stop): Likewise.
2236 (disable_packet_vCont): Likewise.
2237 (disable_packet_Tthread): Likewise.
2238 (disable_packet_qC): Likewise.
2239 (disable_packet_qfThreadInfo): Likewise.
2240 (handle_general_set): Update.
2241 (handle_detach): Update.
2242 (handle_monitor_command): Update.
2243 (handle_query): Update.
2244 (captured_main): Update.
2245 (process_serial_event): Update.
2246 * server.h (server_waiting): Change to bool.
2247 (disable_packet_vCont): Likewise.
2248 (disable_packet_Tthread): Likewise.
2249 (disable_packet_qC): Likewise.
2250 (disable_packet_qfThreadInfo): Likewise.
2251 (run_once): Likewise.
2252 (non_stop): Likewise.
2253 * target.c (target_stop_and_wait): Update.
2254
80fd2826
TT
22552019-10-02 Tom Tromey <tromey@adacore.com>
2256
2257 * Makefile.in (SFILES): Add common-inferior.c.
2258 (OBS): Add common-inferior.o.
2259 * server.c (startup_with_shell): Don't define.
2260
46f29a9a
AB
22612019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * linux-low.c (linux_low_read_btrace): Update for change to
2264 std::vector.
2265
f9d949fb
CB
22662019-09-20 Christian Biesinger <cbiesinger@google.com>
2267
2268 * debug.c (debug_threads): Remove comment in favor of the header.
2269 * debug.h (using_threads): Add declaration.
2270 (debug_threads): Add comment.
2271 * linux-aarch64-low.c: Include debug.h and remove declaration of
2272 debug_threads.
2273 * nto-low.c: Likewise.
2274 * remote-utils.c: Likewise.
2275 * thread-db.c: Likewise.
2276
abf516c6
UW
22772019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2278
2279 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2280 and powerpc-cell64l-ipa.o.
2281 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2282 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2283 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2284 (spu*-*-*): Remove.
2285
2286 * spu-low.c: Remove file.
2287
2288 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2289 (parse_spufs_run): Remove.
2290 (ppc_get_pc): Remove Cell/B.E. support.
2291 (ppc_set_pc): Likewise.
2292 (ppc_breakpoint_at): Likewise.
2293 (ppc_arch_setup): Likewise.
2294 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2295 tdesc_powerpc_cell32l.
2296 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2297 or init_registers_powerpc_cell32l.
2298 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2299 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2300 or init_registers_powerpc_cell32l.
2301 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2302 (init_registers_powerpc_cell32l): Remove prototype.
2303 (init_registers_powerpc_cell64l): Likewise.
2304
2305 * target.h (struct target_ops): Remove qxfer_spu member.
2306 * server.c (handle_qxfer_spu): Remove.
2307 (qxfer_packets): Remove entry for "spu".
2308 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2309 * linux-low.c (SPUFS_MAGIC): Remove.
2310 (spu_enumerate_spu_ids): Remove.
2311 (linux_qxfer_spu): Remove.
2312 (linux_target_ops): Remove qxfer_spu member.
2313 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2314 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2315 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2316
2d41fa11
SDJ
23172019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2318
2319 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2320 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2321 * config.in: Regenerate.
2322 * configure: Regenerate.
2323
d59b55f0
TT
23242019-08-15 Tom Tromey <tromey@adacore.com>
2325
2326 * target.c (target_write_memory): Use gdb::byte_vector.
2327
4196ab2a
TT
23282019-08-15 Tom Tromey <tromey@adacore.com>
2329
2330 * tracepoint.c (write_inferior_data_pointer)
2331 (write_inferior_integer, write_inferior_int8)
2332 (write_inferior_uinteger, m_tracepoint_action_download)
2333 (r_tracepoint_action_download, x_tracepoint_action_download)
2334 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2335 (download_agent_expr, download_tracepoint_1)
2336 (download_trace_state_variables, upload_fast_traceframes): Update.
2337 * server.c (gdb_write_memory): Update.
2338 * remote-utils.c (relocate_instruction): Update.
2339 * proc-service.c (ps_pdwrite): Update.
2340 * mem-break.c (remove_memory_breakpoint)
2341 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2342 (uninsert_fast_tracepoint_jumps_at)
2343 (reinsert_fast_tracepoint_jumps_at): Update.
2344 * linux-x86-low.c (append_insns)
2345 (i386_install_fast_tracepoint_jump_pad)
2346 (amd64_write_goto_address, i386_write_goto_address): Update.
2347 * linux-s390-low.c (append_insns, s390_write_goto_address):
2348 Update.
2349 * linux-ppc-low.c (ppc_relocate_instruction)
2350 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2351 (ppc_write_goto_address): Update.
2352 * linux-aarch64-low.c (append_insns): Update.
2353 * target.h (struct target_ops): Update.
2354 (write_inferior_memory): Don't declare.
2355 * target.c (target_write_memory): Rename from
2356 write_inferior_memory. Remove old target_write_memory.
2357
c6778d00
TT
23582019-08-15 Tom Tromey <tromey@adacore.com>
2359
2360 * target.c (write_inferior_memory): Use std::vector.
2361
404f2902
FCE
23622019-08-06 Frank Ch. Eigler <fche@redhat.com>
2363
2364 PR build/24886
2365 * configure.ac: Drop enable-libmcheck support.
2366 * configure, config.in: Rebuild.
2367 * acinclude.m4: Don't include it.
2368
4c5aa8e0
AH
23692019-07-19 Alan Hayward <alan.hayward@arm.com>
2370
2371 * configure.srv: Remove Arm xml files.
2372
7cc17433
AH
23732019-07-19 Alan Hayward <alan.hayward@arm.com>
2374
2375 * configure.srv: Add new files. Remove xml generated files.
2376 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2377 registers.
2378 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2379 * linux-aarch32-tdesc.c: New file.
2380 * linux-aarch32-tdesc.h: New file.
2381 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2382 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2383 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2384 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2385 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2386 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2387 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2388 (arm_read_description): Call arm_linux_read_description.
2389 (initialize_low_arch): Don't init registers.
2390 * linux-arm-tdesc.c: New file.
2391 * linux-arm-tdesc.h: New file.
2392
166a82be
AH
23932019-07-10 Alan Hayward <alan.hayward@arm.com>
2394
2395 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2396 Move counter inside for.
2397 (arm_read_description): Check ptrace earlier.
2398 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2399
268a13a5
TT
24002019-07-09 Tom Tromey <tom@tromey.com>
2401
2402 * configure: Rebuild.
2403 * configure.ac: Change common to gdbsupport.
2404 * acinclude.m4: Change common to gdbsupport.
2405 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2406 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2407 common to gdbsupport.
2408 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2409 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2410 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2411 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2412 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2413 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2414 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2415 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2416 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2417 common to gdbsupport.
2418
350fab54
AH
24192019-07-04 Alan Hayward <alan.hayward@arm.com>
2420
2421 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2422 defines.
2423 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2424
2b40fda7
AH
24252019-07-04 Alan Hayward <alan.hayward@arm.com>
2426
2427 * configure.srv: Remove legacy xml.
2428 * linux-aarch64-low.c (initialize_low_arch): Remove
2429 initialize_low_tdesc call.
2430 * linux-aarch64-tdesc-selftest.c: Remove file.
2431 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2432 * linux-x86-low.c (initialize_low_arch): Remove
2433 initialize_low_tdesc call.
2434 * linux-x86-tdesc-selftest.c: Remove file.
2435 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2436
7d10623d
TV
24372019-06-20 Tom de Vries <tdevries@suse.de>
2438
2439 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2440 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2441
8d6a48df
TV
24422019-06-19 Tom de Vries <tdevries@suse.de>
2443
2444 * debug.h (debug_write): Change return type to ssize_t.
2445 * debug.c (debug_write): Same.
2446
73cc7272
TT
24472019-06-14 Tom Tromey <tom@tromey.com>
2448
2449 * configure.ac: Use new path to gnulib.
2450 * configure: Rebuild.
2451 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2452 to gnulib.
2453
08f10e02
TT
24542019-06-11 Tom Tromey <tom@tromey.com>
2455
2456 * Makefile.in (SFILES): Add alloc.c.
2457 (OBS): Add alloc.o.
2458 (IPA_OBJS): Add alloc-ipa.o.
2459 (alloc-ipa.o): New target.
2460 (%.o: ../%.c): New pattern rule.
2461
422186a9
TT
24622019-06-10 Tom Tromey <tromey@adacore.com>
2463
2464 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2465 end warning with a newline.
2466 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2467 newline.
2468 * thread-db.c (attach_thread): Don't end warning with a newline.
2469 (thread_db_notice_clone): Likewise.
2470 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2471 newline.
2472 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2473 end warning with a newline.
2474
b02f78f9
PA
24752019-06-04 Pedro Alves <palves@redhat.com>
2476
2477 * server.c (captured_main): Use make_unique_xstrdup.
2478
88ed7edb
TT
24792019-06-02 Tom Tromey <tom@tromey.com>
2480
2481 * gdbreplay.c (fromhex): Remove.
2482 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2483
33a6bc35
TT
24842019-05-29 Tom Tromey <tromey@adacore.com>
2485
2486 * configure: Rebuild.
2487
e90a813d
KB
24882019-05-06 Kevin Buettner <kevinb@redhat.com>
2489
2490 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2491 sign extension code on 32-bit builds.
2492
353ea2d1
EZ
24932019-05-03 Eli Zaretskii <eliz@gnu.org>
2494
2495 * remote-utils.c:
2496 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2497
b494cdff
TT
24982019-04-19 Tom Tromey <tom@tromey.com>
2499
2500 * server.c (struct vstop_notif): Derive from notif_event.
2501 <base>: Remove.
2502 (queue_stop_reply): Update.
2503 (remove_all_on_match_ptid): Change type. Rewrite.
2504 (discard_queued_stop_replies): Rewrite.
2505 (in_queued_stop_replies_ptid): Change type.
2506 (in_queued_stop_replies): Rewrite.
2507 (notif_stop): Update.
2508 (queue_stop_reply_callback): Update.
2509 (captured_main): Don't call initialize_notif.
2510 (push_stop_notification): Update.
2511 * notif.c (notif_write_event, handle_notif_ack)
2512 (notif_event_enque, notif_push): Update.
2513 (notif_event_xfree, initialize_notif): Remove.
2514 * notif.h (struct notif_event): Include <list>, not
2515 "common/queue.h".
2516 (struct notif_server) <queue>: Now a std::list.
2517 (notif_event_p): Remove typedef.
2518 (initialize_notif): Don't declare.
2519 (struct notif_event): Add virtual destructor.
2520
a7e559cc
AH
25212019-04-17 Alan Hayward <alan.hayward@arm.com>
2522
2523 * ax.c (ax_vdebug): Call debug_printf.
2524 * debug.c (debug_write): New function.
2525 * debug.h (debug_write): New declaration.
2526 * linux-low.c (sigchld_handler): Call debug_write.
2527
aeb2e706
AH
25282019-04-17 Alan Hayward <alan.hayward@arm.com>
2529
2530 * debug.c (debug_set_output): New function.
2531 (debug_vprintf): Send output to debug_file.
2532 (debug_flush): Likewise.
2533 * debug.h (debug_set_output): New declaration.
2534 * server.c (handle_monitor_command): Add debug-file option.
2535 (captured_main): Likewise.
2536
c1bc0935
AH
25372019-04-17 Alan Hayward <alan.hayward@arm.com>
2538
2539 * debug.c (remote_debug): Add definition.
2540 * debug.h (remote_debug): Add declaration.
2541 * hostio.c (remote_debug): Remove declaration.
2542 * remote-utils.c (struct ui_file): Likewise.
2543 (remote_debug): Likewise.
2544 * remote-utils.h (remote_debug): Likewise,
2545 * server.c (remote_debug): Remove definition.
2546
3f52fdbc
KB
25472019-04-10 Kevin Buettner <kevinb@redhat.com>
2548
2549 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2550 when using a 64-bit gdbserver.
2551
b0319eaa
TT
25522019-04-09 Tom Tromey <tromey@adacore.com>
2553
2554 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2555
eedc3f4f
TT
25562019-04-08 Tom Tromey <tom@tromey.com>
2557
2558 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2559 throw.
2560 (linux_resume_one_lwp): Likewise.
2561
230d2906
TT
25622019-04-08 Tom Tromey <tom@tromey.com>
2563
2564 * gdbreplay.c: Update.
2565 * linux-low.c: Update.
2566 * server.c: Update.
2567
a70b8144
TT
25682019-04-08 Tom Tromey <tom@tromey.com>
2569
2570 * server.c: Use C++ exception handling.
2571 * linux-low.c: Use C++ exception handling.
2572 * gdbreplay.c: Use C++ exception handling.
2573
3d6e9d23
TT
25742019-04-08 Tom Tromey <tom@tromey.com>
2575
2576 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2577 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2578 (captured_main, main): Update.
2579 * gdbreplay.c (main): Update.
2580
0570503d
PFC
25812019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2582
2583 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2584 value in argument pointer, return 1 if the entry is found and 0
2585 otherwise. Move comment.
2586 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2587 * linux-low.h (linux_get_auxv): Declare.
2588 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2589
227a9e65
TT
25902019-04-05 Tom Tromey <tromey@adacore.com>
2591
2592 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2593 variables.
2594
69f4c9cc
AH
25952019-03-28 Alan Hayward <alan.hayward@arm.com>
2596
2597 * linux-low.c (AT_HWCAP2): Add define if not already included.
2598
974c89e0
AH
25992019-03-26 Alan Hayward <alan.hayward@arm.com>
2600
2601 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2602 (aarch64_arch_setup): Call linux_get_hwcap.
2603 * linux-arm-low.c (arm_get_hwcap): Remove function.
2604 (arm_read_description): Call linux_get_hwcap.
2605 * linux-low.c (linux_get_auxv): New function.
2606 (linux_get_hwcap): Likewise.
2607 (linux_get_hwcap2): Likewise.
2608 * linux-low.h (linux_get_hwcap): New declaration.
2609 (linux_get_hwcap2): Likewise.
2610 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2611 (ppc_arch_setup): Call linux_get_hwcap.
2612 * linux-s390-low.c (s390_get_hwcap): Remove function.
2613 (s390_arch_setup): Call linux_get_hwcap.
2614
1ef53e6b
AH
26152019-03-22 Alan Hayward <alan.hayward@arm.com>
2616 Jiong Wang <jiong.wang@arm.com>
2617
2618 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2619 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2620 to fail.
2621 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2622
ee4fbcfa
AH
26232019-03-22 Alan Hayward <alan.hayward@arm.com>
2624 Jiong Wang <jiong.wang@arm.com>
2625
2626 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2627 (aarch64_get_hwcap): New function.
2628 (aarch64_arch_setup): Read APIA hwcap.
2629
6dc0ebde
AH
26302019-03-22 Alan Hayward <alan.hayward@arm.com>
2631 Jiong Wang <jiong.wang@arm.com>
2632
2633 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2634 (initialize_low_tracepoint): Likewise.
2635 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2636 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2637 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2638 (aarch64_linux_read_description): Likewise.
2639 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2640
1163a4b7
JB
26412019-03-12 John Baldwin <jhb@FreeBSD.org>
2642
2643 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2644 i386_create_target_description for 'segments' parameter.
2645 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2646 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2647 * win32-i386-low.c (i386_arch_setup): Likewise.
2648
d3a70e03
TT
26492019-03-12 Tom Tromey <tromey@adacore.com>
2650
2651 * linux-low.c (iterate_over_lwps): Update.
2652
37991b4f
TT
26532019-03-06 Tom Tromey <tom@tromey.com>
2654
2655 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2656 (captured_main): Use SCOPE_EXIT.
2657
45950eb6
SDJ
26582019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2659
2660 * configure.srv: Use '$enable_unittest' instead of '$development'
2661 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2662 case.
2663
43ac54fc
TT
26642019-02-27 Tom Tromey <tromey@adacore.com>
2665
2666 * gdbreplay.c (logchar): Handle \r\n.
2667
df0da8a2
AH
26682019-02-07 Alan Hayward <alan.hayward@arm.com>
2669
2670 * linux-low.c (linux_attach): Add process before lwp.
2671 * server.c (attach_inferior): Check if already attached.
2672
1a5c2598
TT
26732019-02-07 Tom Tromey <tom@tromey.com>
2674
2675 * x86-tdesc.h: Rename include guard.
2676 * x86-low.h: Add include guard.
2677 * wincecompat.h: Rename include guard.
2678 * win32-low.h: Add include guard.
2679 * utils.h: Rename include guard.
2680 * tracepoint.h: Rename include guard.
2681 * tdesc.h: Rename include guard.
2682 * target.h: Rename include guard.
2683 * server.h: Rename include guard.
2684 * remote-utils.h: Rename include guard.
2685 * regcache.h: Rename include guard.
2686 * nto-low.h: Rename include guard.
2687 * notif.h: Add include guard.
2688 * mem-break.h: Rename include guard.
2689 * lynx-low.h: Add include guard.
2690 * linux-x86-tdesc.h: Add include guard.
2691 * linux-s390-tdesc.h: Add include guard.
2692 * linux-ppc-tdesc-init.h: Add include guard.
2693 * linux-low.h: Add include guard.
2694 * linux-aarch64-tdesc.h: Add include guard.
2695 * linux-aarch32-low.h: Add include guard.
2696 * inferiors.h: Rename include guard.
2697 * i387-fp.h: Rename include guard.
2698 * hostio.h: Rename include guard.
2699 * gdbthread.h: Rename include guard.
2700 * gdb_proc_service.h: Rename include guard.
2701 * event-loop.h: Rename include guard.
2702 * dll.h: Rename include guard.
2703 * debug.h: Rename include guard.
2704 * ax.h: Rename include guard.
2705
956cc47c
SN
27062018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2707
2708 PR gdb/23985
2709 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2710 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2711
a0707f3c
TT
27122019-01-25 Tom Tromey <tom@tromey.com>
2713
2714 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2715
0747795c
TT
27162019-01-25 Tom Tromey <tom@tromey.com>
2717
2718 * win32-low.c: Fix common/ includes.
2719 * win32-i386-low.c: Fix common/ includes.
2720 * tracepoint.c: Fix common/ includes.
2721 * thread-db.c: Fix common/ includes.
2722 * target.h: Fix common/ includes.
2723 * symbol.c: Fix common/ includes.
2724 * spu-low.c: Fix common/ includes.
2725 * server.h: Fix common/ includes.
2726 * server.c: Fix common/ includes.
2727 * remote-utils.c: Fix common/ includes.
2728 * regcache.h: Fix common/ includes.
2729 * regcache.c: Fix common/ includes.
2730 * nto-x86-low.c: Fix common/ includes.
2731 * notif.h: Fix common/ includes.
2732 * mem-break.h: Fix common/ includes.
2733 * lynx-low.c: Fix common/ includes.
2734 * lynx-i386-low.c: Fix common/ includes.
2735 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2736 * linux-x86-low.c: Fix common/ includes.
2737 * linux-low.c: Fix common/ includes.
2738 * inferiors.h: Fix common/ includes.
2739 * i387-fp.c: Fix common/ includes.
2740 * hostio.c: Fix common/ includes.
2741 * hostio-errno.c: Fix common/ includes.
2742 * gdbthread.h: Fix common/ includes.
2743 * gdbreplay.c: Fix common/ includes.
2744 * fork-child.c: Fix common/ includes.
2745 * event-loop.c: Fix common/ includes.
2746 * ax.c:
2747 (enum gdb_agent_op): Fix common/ includes.
2748
be6d4f74
TT
27492019-01-21 Tom Tromey <tom@tromey.com>
2750
2751 * tracepoint.c: Fix includes.
2752 * remote-utils.c: Fix includes.
2753 * linux-x86-low.c: Fix includes.
2754
66d91b39
JB
27552019-01-01 Joel Brobecker <brobecker@adacore.com>
2756
2757 * gdbreplay.c (gdbreplay_version): Update copyright year in
2758 version message.
2759 * server.c (gdbserver_version): Likewise.
2760
754e3168
AH
27612018-12-05 Alan Hayward <alan.hayward@arm.com>
2762
2763 * linux-low.c (add_lwp): Switch ordering.
2764
d105de22
TT
27652018-11-29 Tom Tromey <tom@tromey.com>
2766
2767 * win32-low.c (win32_join): Take pid, not process.
2768 * target.h (struct target_ops) <join>: Change argument type.
2769 (join_inferior): Change argument name.
2770 * spu-low.c (spu_join): Take pid, not process.
2771 * server.c (handle_detach): Preserve pid before destroying
2772 process.
2773 * lynx-low.c (lynx_join): Take pid, not process.
2774 * linux-low.c (linux_join): Take pid, not process.
2775
50138245
AH
27762018-11-23 Alan Hayward <alan.hayward@arm.com>
2777
2778 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2779 (aarch64_cannot_fetch_register): Likewise.
2780 (struct linux_target_ops): Update references.
2781
64f57f3d
PFC
27822018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2783
2784 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2785
8d619c01
EBM
27862018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2787
2788 * configure.srv (ipa_ppc_linux_regobj): Add
2789 powerpc-isa207-htm-vsx32l-ipa.o and
2790 powerpc-isa207-htm-vsx64l-ipa.o.
2791 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2792 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2793 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2794 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2795 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2796 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2797 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2798 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2799 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2800 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2801 (init_registers_powerpc_isa207_htm_vsx32l)
2802 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2803 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2804 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2805 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2806 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2807 (ppc_store_tm_ctarregset): New functions.
2808 (ppc_regsets): Add entries for HTM regsets.
2809 (ppc_arch_setup): Set htm in features struct when needed. Set
2810 sizes for the HTM regsets.
2811 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2812 (initialize_low_arch): Call
2813 init_registers_powerpc_isa207_htm_vsx32l and
2814 init_registers_powerpc_isa207_htm_vsx64l.
2815 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2816 PPC_TDESC_ISA207_HTM_VSX.
2817 (initialize_low_tracepoint): Call
2818 init_registers_powerpc_isa207_htm_vsx32l and
2819 init_registers_powerpc_isa207_htm_vsx64l.
2820
232bfb86
EBM
28212018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2822
2823 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2824 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2825 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2826 (ppc_store_pmuregset): New functions.
2827 (ppc_regsets): Add entries for ebb and pmu regsets.
2828 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2829 pmu regsets are available. Set sizes for these regsets.
2830
f2cf6173
EBM
28312018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2832
2833 * configure.srv (ipa_ppc_linux_regobj): Add
2834 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2835 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2836 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2837 rs6000/powerpc-isa207-vsx32l.xml, and
2838 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2839 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2840 <PPC_TDESC_ISA207_VSX>: New enum value.
2841 (init_registers_powerpc_isa207_vsx32l): Declare.
2842 (init_registers_powerpc_isa207_vsx64l): Declare.
2843 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2844 (ppc_store_tarregset): New function.
2845 (ppc_regsets): Add entry for the TAR regset.
2846 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2847 size for the TAR regsets.
2848 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2849 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2850 and init_registers_powerpc_isa207_vsx64l.
2851 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2852 (initialize_low_tracepoint): Call
2853 init_registers_powerpc_isa207_vsx32l and
2854 init_registers_powerpc_isa207_vsx64l.
2855
7ca18ed6
EBM
28562018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2857 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2858
2859 * configure.srv (ipa_ppc_linux_regobj): Add
2860 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2861 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2862 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2863 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2864 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2865 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2866 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2867 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2868 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2869 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2870 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2871 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2872 (ppc_hwcap): Add comment.
2873 (ppc_hwcap2): New global.
2874 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2875 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2876 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2877 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2878 when needed. Set sizes for the the DSCR and PPR regsets.
2879 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2880 (initialize_low_arch): Call
2881 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2882 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2883 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2884 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2885 (initialize_low_tracepoint): Call
2886 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2887 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2888
5c849b22
PFC
28892018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2890
2891 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2892
8ecfd7bd
SDJ
28932018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2894 Simon Marchi <simark@simark.ca>
2895
2896 * acinclude.m4: Include "../selftest.m4".
2897 * configure: Regenerate.
2898 * configure.ac: Use "GDB_AC_SELFTEST".
2899 * configure.srv: Use "$enable_unittests" instead of
2900 "$development" when checking whether unit tests have been
2901 enabled.
2902 * server.c (captured_main): Update message informing that
2903 selftests have been disabled.
2904
96643e35
TT
29052018-10-04 Tom Tromey <tom@tromey.com>
2906
2907 * configure: Rebuild.
2908
da4ae14a
TT
29092018-10-04 Tom Tromey <tom@tromey.com>
2910
2911 * server.c (handle_status): Rename inner "thread".
2912 (process_serial_event): Declare "res" in 'm' case.
2913 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2914 (iterate_over_lwps): Rename inner "thread".
2915 (linux_qxfer_libraries_svr4): Rename inner "len".
2916 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2917
7c619dbd
GB
29182018-10-01 Gary Benson <gbenson@redhat.com>
2919
2920 * gdb_proc_service.h: Moved common code to
2921 common/gdb_proc_service.h.
2922
3795e814
GB
29232018-10-01 Gary Benson <gbenson@redhat.com>
2924
2925 * gdb_proc_service.h: Synchronize comments and whitespace with
2926 GDB's version of this file.
2927
49b036f1
TT
29282018-09-25 Tom Tromey <tom@tromey.com>
2929
2930 * configure: Rebuild.
2931 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2932
8ff03f0b
SM
29332018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2934
2935 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2936 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2937 ($(IPA_LIB)): Sort IPA_OBJS.
2938
a1cd91dc
SM
29392018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2940
2941 * Makefile.in: Remove references to $(ADD_DEPS).
2942
752312ba
TT
29432018-09-16 Tom Tromey <tom@tromey.com>
2944
2945 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2946 variables.
2947 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2948 variables.
2949
f1628857
TT
29502018-09-05 Tom Tromey <tom@tromey.com>
2951
2952 * configure: Rebuild.
2953
ad202fcc
SM
29542018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2955
2956 PR build/23399
2957 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2958
d3d8724a
TT
29592018-08-27 Tom Tromey <tom@tromey.com>
2960
2961 PR build/23087:
2962 * configure: Rebuild.
2963
b4f183d2
TT
29642018-08-27 Tom Tromey <tom@tromey.com>
2965
2966 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2967 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2968 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2969 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2970 (s390x_emit_stack_adjust): Add casts to unsigned char.
2971
4e2aa472
SM
29722018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2973
2974 PR gdb/23374
2975 PR gdb/23375
2976 * server.h (struct client_state) <disable_randomization>:
2977 Initialize to 1.
2978
cf4088a9
SM
29792018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2980
2981 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2982 variable.
2983 (mips_supply_ptrace_register): Likewise.
2984
a0de763e
TT
29852018-07-22 Tom Tromey <tom@tromey.com>
2986
2987 * configure: Rebuild.
2988
b0a7723d
TT
29892018-07-22 Tom Tromey <tom@tromey.com>
2990
2991 * win32-low.c (win32_create_inferior): Remove unused variables.
2992 * gdbreplay.c (remote_open): Remove unused variable.
2993 * remote-utils.c (remote_prepare): Remove unused variable.
2994 * x86-tdesc.h (X86_TDESC_H): Define.
2995 (amd64_expedite_regs): Define conditionally.
2996 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2997 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2998 * remote-utils.c (readchar): Remove unused variable.
2999
a780ef4f
PA
30002018-07-13 Pedro Alves <palves@redhat.com>
3001
3002 * linux-low.c (linux_kill): Change parameter to process_info
3003 pointer instead of pid. Adjust.
3004 * lynx-low.c (lynx_kill): Likewise.
3005 * nto-low.c (nto_kill): Likewise.
3006 * spu-low.c (spu_kill): Likewise.
3007 * win32-low.c (win32_kill): Likewise.
3008 * server.c (handle_v_kill, kill_inferior_callback)
3009 (detach_or_kill_for_exit): Adjust.
3010 * target.c (kill_inferior): Change parameter to process_info
3011 pointer instead of pid. Adjust.
3012 * target.h (struct target_ops) <kill>: Change parameter to
3013 process_info pointer instead of pid. Adjust all implementations
3014 and callers.
3015 (kill_inferior): Likewise.
3016
ef2ddb33
PA
30172018-07-13 Pedro Alves <palves@redhat.com>
3018
3019 * linux-low.c (linux_detach, linux_join): Change parameter to
3020 process_info pointer instead of pid. Adjust.
3021 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3022 * nto-low.c (nto_detach): Likewise.
3023 * spu-low.c (spu_detach, spu_join): Likewise.
3024 * win32-low.c (win32_detach, win32_join): Likewise.
3025 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3026 * target.h (struct target_ops) <detach, join>: Change parameter to
3027 process_info pointer instead of pid. Adjust all implementations
3028 and callers.
3029 (detach_inferior, join_inferior): Rename 'pid' parameter to
3030 'proc'.
3031
c7ab0aef
SDJ
30322018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3033 Jan Kratochvil <jan.kratochvil@redhat.com>
3034 Paul Fertser <fercerpav@gmail.com>
3035 Tsutomu Seki <sekiriki@gmail.com>
3036
3037 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3038 (OBS): Add 'common/netstuff.o'.
3039 (GDBREPLAY_OBS): Likewise.
3040 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3041 (remote_open): Implement support for IPv6
3042 connections.
3043 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3044 and 'wspiapi.h'.
3045 (handle_accept_event): Accept connections from IPv6 sources.
3046 (remote_prepare): Handle IPv6-style hostnames; implement
3047 support for IPv6 connections.
3048 (remote_open): Implement support for printing connections from
3049 IPv6 sources.
3050
31445d10
PA
30512018-07-11 Pedro Alves <palves@redhat.com>
3052
3053 PR gdb/23377
3054 * mem-break.c (any_persistent_commands): Add process_info
3055 parameter and use it instead of relying on the current process.
3056 Change return type to bool.
3057 * mem-break.h (any_persistent_commands): Add process_info
3058 parameter and change return type to bool.
3059 * server.c (handle_detach): Remove require_running_or_return call.
3060 Look up the process_info for the process we're about to detach.
3061 If not found, return back error to GDB. Adjust
3062 any_persistent_commands call to pass down a process pointer.
3063
cb197132
PA
30642018-07-11 Pedro Alves <palves@redhat.com>
3065
3066 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3067 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3068 instead of collect_register_by_name.
3069 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3070 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3071
1b919490
VB
30722018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3073 Pedro Alves <palves@redhat.com>
3074
3075 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3076
d7e15655
TT
30772018-07-03 Tom Tromey <tom@tromey.com>
3078
3079 * linux-low.c: Update.
3080 * lynx-low.c: Update.
3081 * mem-break.c: Update.
3082 * nto-low.c: Update.
3083 * remote-utils.c: Update.
3084 * server.c: Update.
3085 * spu-low.c: Update.
3086 * target.c: Update.
3087 * win32-low.c: Update.
3088
26a57c92
TT
30892018-07-03 Tom Tromey <tom@tromey.com>
3090
3091 * server.c: Update.
3092
0e998d96
TT
30932018-07-03 Tom Tromey <tom@tromey.com>
3094
3095 * linux-low.c: Update.
3096
cc6bcb54
TT
30972018-07-03 Tom Tromey <tom@tromey.com>
3098
3099 * target.c: Update.
3100
e38504b3
TT
31012018-07-03 Tom Tromey <tom@tromey.com>
3102
3103 * linux-low.c: Update.
3104 * linux-mips-low.c: Update.
3105 * lynx-low.c: Update.
3106 * nto-low.c: Update.
3107 * remote-utils.c: Update.
3108 * server.c: Update.
3109 * spu-low.c: Update.
3110 * target.c: Update.
3111 * thread-db.c: Update.
3112
e99b03dc
TT
31132018-07-03 Tom Tromey <tom@tromey.com>
3114
3115 * linux-low.c: Update.
3116 * linux-mips-low.c: Update.
3117 * lynx-low.c: Update.
3118 * mem-break.c: Update.
3119 * nto-low.c: Update.
3120 * remote-utils.c: Update.
3121 * server.c: Update.
3122 * spu-low.c: Update.
3123 * target.c: Update.
3124 * tracepoint.c: Update.
3125
f2907e49
TT
31262018-07-03 Tom Tromey <tom@tromey.com>
3127
3128 * linux-low.c: Update.
3129 * linux-ppc-low.c: Update.
3130 * linux-x86-low.c: Update.
3131 * proc-service.c: Update.
3132 * server.c: Update.
3133 * spu-low.c: Update.
3134 * thread-db.c: Update.
3135 * win32-low.c: Update.
3136
fd79271b
TT
31372018-07-03 Tom Tromey <tom@tromey.com>
3138
3139 * linux-low.c: Update.
3140 * lynx-low.c: Update.
3141 * nto-low.c: Update.
3142 * remote-utils.c: Update.
3143 * spu-low.c: Update.
3144 * thread-db.c: Update.
3145 * win32-low.c: Update.
3146
c0867626
SDJ
31472018-06-29 Joel Brobecker <brobecker@adacore.com>
3148
3149 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3150 parameter in call to 'amd64_create_target_description'.
3151
2512d7ef
JK
31522018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3153
3154 * x86-tdesc.h: Remove executable permission flag.
3155
d0ac1c44
SM
31562018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3157
3158 * configure.ac: Remove AC_PREREQ, add missing quoting.
3159 * configure: Re-generate.
3160 * config.in: Re-generate.
3161 * aclocal.m4: Re-generate.
3162
c4eb05ff
SM
31632018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3164
3165 * tracepoint.h (current_traceframe): Remove declaration.
3166
02895270
AH
31672018-06-18 Alan Hayward <alan.hayward@arm.com>
3168
3169 * linux-aarch64-low.c (is_sve_tdesc): New function.
3170 (aarch64_sve_regs_copy_to_regcache): Likewise.
3171 (aarch64_sve_regs_copy_from_regcache): Likewise.
3172 (aarch64_regs_info): Add SVE checks.
3173 (initialize_low_arch): Initialize SVE.
3174
e9902bfc
AH
31752018-06-18 Alan Hayward <alan.hayward@arm.com>
3176
3177 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3178
fefa175e
AH
31792018-06-11 Alan Hayward <alan.hayward@arm.com>
3180
3181 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3182 (initialize_low_tracepoint): Likewise
3183 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3184 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3185 param.
3186 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3187 checks.
3188 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3189
b91ad3ff
AH
31902018-06-11 Alan Hayward <alan.hayward@arm.com>
3191
3192 * server.h (PBUFSIZ): Increase size
3193
f868386e
AH
31942018-06-11 Alan Hayward <alan.hayward@arm.com>
3195
3196 * regcache.c (regcache::raw_compare): New function.
3197 * regcache.h (regcache::raw_compare): New declaration.
3198
9c861883
AH
31992018-06-11 Alan Hayward <alan.hayward@arm.com>
3200
3201 * regcache.c (new_register_cache): Use new.
3202 (free_register_cache): Use delete.
3203 (register_data): Use const.
3204 (supply_register): Move body inside regcache.
3205 (regcache::raw_supply): New override function.
3206 (collect_register): Move body inside regcache.
3207 (regcache::raw_collect): New override function.
3208 (regcache::get_register_status): New override function.
3209 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3210
40591844
TT
32112018-06-09 Tom Tromey <tom@tromey.com>
3212
3213 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3214 declare queue.
3215 (event_queue): Use std::queue.
3216 (gdb_event_xfree): Remove.
3217 (initialize_event_loop, process_event, wait_for_event): Update.
3218
6341380d
SC
32192018-06-08 Stan Cox <scox@redhat.com>
3220
3221 * win32-low.c (win32_create_inferior): last_ptid and last_status
3222 moved to client_state.
3223
03349c93
PA
32242018-06-08 Pedro Alves <palves@redhat.com>
3225
3226 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3227 common/common-exceptions.o, common/common-utils.o,
3228 common/errors.o, common/print-utils.o and utils.o.
3229 * gdbreplay.c: Include "common-defs.h" instead of the two
3230 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3231 string.h or alloca.h.
3232 (perror_with_name): Delete.
3233 (remote_open): Use xstrdup instead of strdup.
3234 (main): Rename to ...
3235 (captured_main): ... this.
3236 (main): New.
3237
8dcc53b3
TT
32382018-06-08 Tom Tromey <tom@tromey.com>
3239
3240 * linux-low.c (linux_low_read_btrace): Update.
3241
c12a5089
SC
32422018-06-04 Stan Cox <scox@redhat.com>
3243
3244 * server.h (struct client_state): New.
3245 * server.c (cont_thread, general_thread, multi_process)
3246 (report_fork_events, report_vfork_events, report_exec_events)
3247 (report_thread_events, swbreak_feature, hwbreak_feature)
3248 (vCont_supported, disable_randomization, pass_signals)
3249 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3250 Moved to client_state.
3251 * remote-utils.c (remote_debug, noack_mode)
3252 (transport_is_reliable): Moved to client_state.
3253 * tracepoint.c (current_traceframe): Moved to client_state.
3254
3255 Update all callers.
3256 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3257 linux-low.c, remote-utils.h, target.c: Use client_state.
3258
122394f1
AH
32592018-05-31 Alan Hayward <alan.hayward@arm.com>
3260
3261 * configure.srv: Add new c/h file.
3262
95228a0d
AH
32632018-05-31 Alan Hayward <alan.hayward@arm.com>
3264
3265 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3266 null VQ.
3267
d8dab6c3
MR
32682018-05-25 Maciej W. Rozycki <macro@mips.com>
3269
3270 * gdb.arch/mips-fpregset-core.exp: New test.
3271 * gdb.arch/mips-fpregset-core.c: New test source.
3272
81e25b7c
EK
32732018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3274
3275 PR server/23198
3276 * hostio.c (require_int): Do not report overflow for integers
3277 between 0xfffffff and 0x7fffffff.
3278
7e947ad3
MR
32792018-05-22 Maciej W. Rozycki <macro@mips.com>
3280
3281 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3282 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3283 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3284 functions.
3285 (the_low_target): Wire them.
3286
1d75a658
PFC
32872018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3288
3289 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3290 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3291 mode. Call collect_register_by_name with vscr using
3292 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3293 (ppc_store_vrregset): Add and set vscr_offset variable as in
3294 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3295 vscr_offset.
3296
d078308a
PFC
32972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3298
3299 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3300 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3301 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3302
7273b5fc
PFC
33032018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3304
3305 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3306 (ppc_store_vsxregset): Likewise.
3307 (ppc_fill_vrregset): Likewise.
3308 (ppc_store_vrregset): Likewise.
3309 (ppc_fill_evrregset): Likewise.
3310 (ppc_store_evrregset): Likewise.
3311 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3312 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3313 needed.
3314
2e077f5e
PFC
33152018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3316
3317 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3318 wordsize of the inferior. Call ppc_linux_target_wordsize.
3319
bd64614e
PFC
33202018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3321
3322 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3323 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3324 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3325 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3326 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3327 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3328 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3329 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3330 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3331 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3332 (tdesc_powerpc_e500l): Remove.
3333 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3334 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3335 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3336 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3337 linux-ppc-tdesc.h.
3338 (ppc_arch_setup): Remove target description matching code. Fill a
3339 ppc_linux_features struct and call ppc_linux_match_description
3340 with it.
3341
75d74cca
MR
33422018-05-22 Maciej W. Rozycki <macro@mips.com>
3343
3344 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3345 width of the requested register exceeds the width of the
3346 `ptrace' data type.
3347 (mips_cannot_store_register): Likewise.
3348
e4439e43
MR
33492018-05-21 Maciej W. Rozycki <macro@mips.com>
3350
3351 * linux-mips-low.c (mips_fetch_register): New function. Update
3352 preceding comment.
3353 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3354 (the_low_target): Wire `mips_fetch_register'.
3355
55271bf9
JB
33562018-05-10 Joel Brobecker <brobecker@adacore.com>
3357
3358 * lynx-i386-low.c (LYNXOS_178): New macro.
3359 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3360 the layout on LynxOS-178.
3361 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3362 handle floating point registers that are not supported by
3363 LynxOS-178.
3364
1a34f210
TT
33652018-05-10 Tom Tromey <tom@tromey.com>
3366
3367 * configure: Rebuild.
3368
190852c8
JB
33692018-05-10 Joel Brobecker <brobecker@adacore.com>
3370
3371 PR server/23158:
3372 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3373 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3374 Use it to set the expedite_regs field in the given tdesc.
3375 * x86-tdesc.h: New file.
3376 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3377 Adjust following the addition of the new expedite_regs parameter
3378 to init_target_desc.
3379 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3380 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3381 (i386_linux_read_description, amd64_linux_read_description):
3382 Adjust following the addition of the new expedite_regs parameter
3383 to init_target_desc.
3384 * lynx-i386-low.c: #include "x86-tdesc.h".
3385 (lynx_i386_arch_setup): Adjust following the addition of the new
3386 expedite_regs parameter to init_target_desc.
3387 * nto-x86-low.c: #include "x86-tdesc.h".
3388 (nto_x86_arch_setup): Adjust following the addition of the new
3389 expedite_regs parameter to init_target_desc.
3390 * win32-i386-low.c: #include "x86-tdesc.h".
3391 (i386_arch_setup): Adjust following the addition of the new
3392 expedite_regs parameter to init_target_desc.
3393
7dbac825
JB
33942018-05-10 Joel Brobecker <brobecker@adacore.com>
3395
3396 PR server/23158:
3397 * win32-low.c (win32_create_inferior): Add call to my_wait
3398 setting last_status global.
3399
906994d9
JB
34002018-05-10 Joel Brobecker <brobecker@adacore.com>
3401
3402 PR server/23158:
3403 * win32-low.c (create_process): Only call gdb_tilde_expand if
3404 inferior_cwd is not NULL.
3405
8ee22052
AB
34062018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3407
3408 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3409 registers to the cache if their values have changed.
3410 (i387_xsave_to_cache): Provide default values for x87 control
3411 registers when these features are available, but disabled.
3412 * regcache.c (supply_register_by_name_zeroed): New function.
3413 * regcache.h (supply_register_by_name_zeroed): Declare new
3414 function.
3415
aff689d3
TT
34162018-05-07 Tom Tromey <tom@tromey.com>
3417
3418 * configure: Rebuild.
3419
85e26832
TT
34202018-05-04 Tom Tromey <tom@tromey.com>
3421
3422 * configure: Rebuild.
3423
a3b60e45
JK
34242018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3425 Pedro Alves <palves@redhat.com>
3426
3427 * linux-aarch64-low.c (aarch64_stopped_data_address):
3428 Likewise.
3429
632e107b
TT
34302018-04-27 Tom Tromey <tom@tromey.com>
3431
3432 * configure: Rebuild.
3433
458412c3
TT
34342018-04-23 Tom Tromey <tom@tromey.com>
3435
3436 * configure: Rebuild.
3437
f31c089e
SM
34382018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3439
3440 * Makefile.in (depcomp): Add "..".
3441 (all_deps_files): New and use it.
3442
b319b098
AH
34432018-04-18 Alan Hayward <alan.hayward@arm.com>
3444
3445 * configure.srv (aarch64*-*-linux*): Don't include xml.
3446 (i[34567]86-*-cygwin*): Likewise.
3447 (i[34567]86-*-linux*): Likewise.
3448 (i[34567]86-*-lynxos*): Likewise.
3449 (i[34567]86-*-mingw32ce*): Likewise.
3450 (i[34567]86-*-mingw*): Likewise.
3451 (i[34567]86-*-nto*): Likewise.
3452 (tic6x-*-uclinux): Likewise.
3453 (x86_64-*-linux*): Likewise.
3454 (x86_64-*-mingw*): Likewise.
3455 (x86_64-*-cygwin*): Likewise.
3456
3b74854b
AH
34572018-04-18 Alan Hayward <alan.hayward@arm.com>
3458
3459 * tdesc.c: Remove xml parameter.
3460
e98577a9
AH
34612018-04-18 Alan Hayward <alan.hayward@arm.com>
3462
3463 * server.c (get_features_xml): Remove cast.
3464 * tdesc.c (void target_desc::accept): Fill in function.
3465 (tdesc_get_features_xml): Remove old xml creation.
3466 (print_xml_feature::visit_pre): Add xml vistor.
3467 * tdesc.h (struct target_desc): Make xmltarget mutable.
3468 (tdesc_get_features_xml): Remove declaration.
3469
d278f585
AH
34702018-04-18 Alan Hayward <alan.hayward@arm.com>
3471
3472 * tdesc.c (tdesc_architecture_name): Add new function.
3473 (tdesc_osabi_name): Likewise.
3474 (tdesc_get_features_xml): Use new functions.
3475
eee8a18d
AH
34762018-04-18 Alan Hayward <alan.hayward@arm.com>
3477
3478 * tdesc.c (tdesc_create_flags): Remove.
3479 (tdesc_add_flag): Likewise.
3480 (tdesc_named_type): Likewise.
3481 (tdesc_create_union): Likewise.
3482 (tdesc_create_struct): Likewise.
3483 (tdesc_create_vector): Likewise.
3484 (tdesc_add_bitfield): Likewise.
3485 (tdesc_add_field): Likewise.
3486 (tdesc_set_struct_size): Likewise.
3487
82ec9bc7
AH
34882018-04-18 Alan Hayward <alan.hayward@arm.com>
3489
3490 * tdesc.c (~target_desc): Remove implictly deleted items.
3491 (init_target_desc): Iterate all features.
3492 (tdesc_get_features_xml): Use vector.
3493 (tdesc_create_feature): Create feature.
3494 * tdesc.h (tdesc_feature) Remove
3495 (target_desc): Add features.
3496
ea3e7d71
AH
34972018-04-18 Alan Hayward <alan.hayward@arm.com>
3498
3499 * Makefile.in: Add common/tdesc.c
3500 * tdesc.c (init_target_desc): init all reg_defs from register
3501 vector.
3502 (tdesc_create_reg): Create tdesc_reg.
3503 * tdesc.h (tdesc_feature): Add register vector.
3504
17d08cd4
SM
35052018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3506
3507 * tdesc.h (struct target_desc) <features>: Change type to
3508 std::vector<std::string>.
3509 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3510 changes.
3511 (tdesc_get_features_xml): Likewise.
3512 (tdesc_create_feature): Likewise.
3513
5cd3e386
AH
35142018-03-26 Alan Hayward <alan.hayward@arm.com>
3515
3516 * regcache.c (find_register_by_number): Return a ref.
3517 (find_regno): Use references.
3518 (register_size): Likewise.
3519 (register_data): Likewise.
3520 * tdesc.c (target_desc::~target_desc): Remove free calls.
3521 (target_desc::operator==): Use std::vector compare.
3522 (init_target_desc): Use reference.
3523 (tdesc_create_reg): Use reg constructors.
3524 * tdesc.h (struct target_desc): Replace pointer with object.
3525
dff7492c
AH
35262018-03-23 Alan Hayward <alan.hayward@arm.com>
3527
3528 * regcache.c (find_register_by_number): Make static.
3529 (find_regno): Use find_register_by_number
3530 * regcache.h (struct reg): Remove declaration.
3531
d80e5242
AH
35322018-03-23 Alan Hayward <alan.hayward@arm.com>
3533
3534 * tdesc.c (target_desc::~target_desc): Move to here.
3535 (target_desc::operator==): Likewise.
3536 * tdesc.h (target_desc::~target_desc): Move from here.
3537 (target_desc::operator==): Likewise.
3538
f69c5afb
AA
35392018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3540
3541 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3542
ce29f843
AA
35432018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3544
3545 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3546 S390_TDESC_GS.
3547 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3548 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3549 and init_registers_s390_gs_linux64.
3550
c49bd90b
AA
35512018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3552
3553 * linux-s390-low.c (s390_fill_gs): Remove function.
3554 (s390_fill_gsbc): Remove function.
3555 (s390_regsets): Set fill functions for the guarded storage regsets
3556 to NULL.
3557
7edb9bd3
AA
35582018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3559
3560 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3561 the word size. Add comment.
3562 (s390_get_wordsize): New function.
3563 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3564 pswm with it. Instead, use s390_get_wordsize to determine the
3565 word size first and derive the correct tdesc from that directly.
3566
39be3c7e
SM
35672018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3568
3569 * Makefile.in: Include silent-rules.mk.
3570 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3571 (COMPILE): Add ECHO_CXX.
3572 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3573 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3574 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3575 (version-generated.c): Add ECHO_GEN.
3576 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3577 (IPAGENT_COMPILE): Add ECHO_CXX.
3578 (%-generated.c): Add ECHO_REGDAT.
3579
3ae9ce5d
TT
35802018-03-14 Tom Tromey <tom@tromey.com>
3581
3582 PR cli/14977:
3583 * ax.c (ax_printf): Special case for NULL.
3584
e6a58aa8
SM
35852018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3586
3587 * linux-low.c (linux_qxfer_libraries_svr4): Use
3588 xml_escape_text_append.
3589
f6e8a41e
SM
35902018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3591
3592 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3593
b9671caf
SM
35942018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3595
3596 * server.c (handle_general_set): Remove unnecessary xstrdup.
3597
e80aaf61
SM
35982018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3599
3600 * server.c (parse_debug_format_options): Adjust to
3601 delim_string_to_char_ptr_vec changes.
3602 * thread-db.c (thread_db_load_search): Adjust to
3603 dirnames_to_char_ptr_vec changes.
3604
b1223e78
MM
36052018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3606
3607 * target.h (target_enable_btrace, target_disable_btrace)
3608 (target_read_btrace, target_read_btrace_conf): Turn macro into
3609 inline function. Throw error if target method is not defined.
3610 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3611 check for btrace target method. Be prepared to handle exceptions
3612 from btrace target methods.
3613
81561546
SDJ
36142018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3615
3616 * server.c (captured_main): Change order of error message printed
3617 when the current working directory cannot be found.
3618
25e3c82c
SDJ
36192018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3620
3621 * server.c: Include "filenames.h" and "pathstuff.h".
3622 (program_name): Delete variable.
3623 (program_path): New anonymous class.
3624 (get_exec_wrapper): Use "program_path" instead of
3625 "program_name".
3626 (handle_v_run): Likewise.
3627 (captured_main): Likewise.
3628 (process_serial_event): Likewise.
3629
b4987c95
SDJ
36302018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3631
3632 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3633 (OBJS): Add "pathstuff.o".
3634 * server.c (current_directory): New global variable.
3635 (captured_main): Initialize "current_directory".
3636
f46cd62a
AH
36372018-02-26 Alan Hayward <alan.hayward@arm.com>
3638
3639 * tdesc.c: Use common/tdesc.h.
3640 * tdesc.h: Likewise.
3641
a543c5ca
AH
36422018-02-20 Alan Hayward <alan.hayward@arm.com>
3643 Simon Marchi <simon.marchi@ericsson.com>
3644
3645 * Makefile.in: Switch order of make rules.
3646
b5884fa7
AH
36472018-02-19 Alan Hayward <alan.hayward@arm.com>
3648
3649 * Makefile.in: Add common directory in build.
3650 * configure.ac: Add common reference.
3651 * configure: Regenerate.
3652
de6242d3
MM
36532018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3654
3655 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3656 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3657 * spu-low.c (spu_target_ops): Likewise.
3658 * win32-low.c (win32_target_ops): Likewise.
3659 * server.c (supported_btrace_packets): Report packets unconditionally.
3660 * target.h (target_ops) <supports_btrace>: Remove.
3661 (target_supports_btrace): Remove.
3662
9ee23a85
MM
36632018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3664
3665 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3666 (handle_btrace_disable): Change return type to void. Use exceptions
3667 to report errors.
3668 (handle_btrace_general_set): Catch exception and copy message to
3669 return message.
3670
8ce47547
TT
36712018-02-08 Tom Tromey <tom@tromey.com>
3672
3673 * linux-low.c (install_software_single_step_breakpoints): Use
3674 make_scoped_restore.
3675 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3676 (do_restore_current_thread_cleanup): Remove.
3677 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3678 declare.
3679
45dd3607
TT
36802018-02-08 Tom Tromey <tom@tromey.com>
3681
3682 * mem-break.c (set_raw_breakpoint_at): Use
3683 gdb::unique_xmalloc_ptr.
3684
e671cd59
PA
36852018-01-30 Pedro Alves <palves@redhat.com>
3686
3687 PR gdb/13211
3688 * target.c (target_terminal::terminal_state): Rename to ...
3689 (target_terminal::m_terminal_state): ... this.
3690
a0aad537
JC
36912018-01-19 James Clarke <jrtc27@jrtc27.com>
3692
3693 * linux-low.c (handle_extended_wait): Surround call to
3694 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3695
4d9b86e1
SM
36962018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3697
3698 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3699 linux_ptrace_attach_fail_reason_string now returning an
3700 std::string.
3701 (linux_attach): Likewise.
3702 * thread-db.c (attach_thread): Likewise.
3703
f517c180
EA
37042018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3705
3706 PR gdb/21559
3707 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3708 checking for fs_base/gs_base fields in struct user_regs_struct.
3709 * configure: Regenerate.
3710
9a70f35c
YQ
37112018-01-16 Yao Qi <yao.qi@linaro.org>
3712
3713 PR gdb/18749
3714 * linux-low.c (fetch_register): Call supply_register instead of
3715 error.
3716
605fd3c6
YQ
37172018-01-08 Yao Qi <yao.qi@linaro.org>
3718 Simon Marchi <simon.marchi@ericsson.com>
3719
3720 * Makefile.in (OBS): Remove selftest.o.
3721 * configure.ac: Set srv_selftest_objs if $development is true.
3722 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3723 * configure: Re-generated.
3724 * server.c (captured_main): Wrap variable selftest_filter with
3725 GDB_SELF_TEST.
3726
2cc05030
SM
37272018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3728
3729 * server.c (parse_debug_format_options): Return std::string.
3730 (handle_monitor_command, captured_main): Adjust.
3731
e379cee6
PA
37322018-01-05 Pedro Alves <palves@redhat.com>
3733
3734 PR gdb/18653
3735 * server.c (captured_main): Pass quiet=false to
3736 save_original_signals_state.
3737
82e1e79a
JB
37382018-01-01 Joel Brobecker <brobecker@adacore.com>
3739
3740 * gdbreplay.c (gdbreplay_version): Update copyright year in
3741 version message.
3742 * server.c (gdbserver_version): Likewise.
3743
8e481c3b
TT
37442017-12-08 Tom Tromey <tom@tromey.com>
3745
3746 * ax.c (ax_printf): Update.
3747
a8806230
YQ
37482017-12-07 Yao Qi <yao.qi@linaro.org>
3749
3750 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3751 aarch64_linux_read_description.
3752 * linux-amd64-ipa.c (idx2mask): New array.
3753 (get_ipa_tdesc): Move idx2mask out.
3754 (initialize_low_tracepoint): Initialize target descriptions.
3755 * linux-i386-ipa.c (idx2mask): New array.
3756 (get_ipa_tdesc): Move idx2mask out.
3757 (initialize_low_tracepoint): Initialize target descriptions.
3758
d4a0e8b5
SM
37592017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3760
3761 * tdesc.c (struct tdesc_type): Change return type.
3762 (tdesc_add_flag): Change parameter type.
3763 (tdesc_add_bitfield): Likewise.
3764 (tdesc_add_field): Likewise.
3765 (tdesc_set_struct_size): Likewise.
3766
798a7429
SM
37672017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3768
3769 * regcache.c (registers_to_string): Remove unused variable.
3770
c0e15c9b
SM
37712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3772
3773 * inferiors.c (for_each_inferior_with_data): Remove.
3774 * inferiors.h (for_each_inferior_with_data): Remove.
3775 * server.c (handle_qxfer_threads_worker): Change parameter type.
3776 (handle_qxfer_threads_proper): Use for_each_thread.
3777
f0045347
SM
37782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3779
3780 * inferiors.c (for_each_inferior): Remove.
3781 (clear_inferiors): Use for_each_thread.
3782 * inferiors.h (for_each_inferior): Remove.
3783 * linux-low.c (linux_wait_for_event_filtered): Use
3784 for_each_thread.
3785 (linux_stabilize_threads): Likewise.
3786 * regcache.c (regcache_release): Likewise.
3787 * server.c (gdb_wants_all_threads_stopped): Likewise.
3788 (clear_pending_status_callback): Remove.
3789 (handle_status): Use for_each_thread.
3790 (captured_main): Likewise.
3791 * win32-low.c (child_init_thread_list): Likewise.
3792 (win32_clear_inferiors): Likewise.
3793 (fake_breakpoint_event): Likewise.
3794
9521758b
SM
37952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3796
3797 * inferiors.h (find_inferior): Remove.
3798 * inferiors.c (find_inferior): Remove.
3799
8f86d7aa
SM
38002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3801
3802 * linux-low.c (resume_status_pending_p): Update comment.
3803 (need_step_over_p): Update comment.
3804
e2b44075
SM
38052017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3806
3807 * linux-low.c (proceed_one_lwp): Return void, change parameter
3808 type.
3809 (unsuspend_and_proceed_one_lwp): Likewise.
3810 (proceed_all_lwps): Use for_each_thread.
3811 (unstop_all_lwps): Likewise.
3812
c80825ff
SM
38132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3814
3815 * linux-low.c (linux_resume_one_thread): Return void, take
3816 parameter directly.
3817 (linux_resume): Use for_each_thread.
3818
df3e4dbe
SM
38192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3820
3821 * linux-low.c (send_sigstop_callback): Return void, change
3822 parameter type. Rename to...
3823 (send_sigstop): ... this.
3824 (suspend_and_send_sigstop_callback): Return void, change parameter
3825 type. Rename to...
3826 (suspend_and_send_sigstop): ... this.
3827 (stop_all_lwps): Use for_each_thread.
3828
5a6b0a41
SM
38292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3830
3831 * linux-low.c (lwp_running): Return bool, remove unused
3832 argument.
3833 (linux_stabilize_threads): Use find_thread.
3834
39a64da5
SM
38352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3836
3837 * linux-low.c (select_singlestep_lwp_callback): Remove.
3838 (count_events_callback): Remove.
3839 (select_event_lwp_callback): Remove.
3840 (select_event_lwp): Use find_thread/for_each_thread.
3841
a1385b7b
SM
38422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3843
3844 * linux-low.c (not_stopped_callback): Return bool, take filter
3845 argument directly.
3846 (linux_wait_for_event_filtered): Use find_thread.
3847 (linux_wait_1): Likewise.
3848
454296a2
SM
38492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * linux-low.c (same_lwp): Remove.
3852 (find_lwp_pid): Use find_thread.
3853
6b2a85da
SM
38542017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3855
3856 * linux-low.c (delete_lwp_callback): Remove.
3857 (linux_mourn): Use for_each_thread.
3858
798a38e8
SM
38592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3860
3861 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3862 args parameter, don't check for pid.
3863 (linux_detach): Use for_each_thread.
3864
e4eb0dec
SM
38652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3866
3867 * linux-low.c (struct counter): Remove.
3868 (second_thread_of_pid_p): Remove.
3869 (last_thread_of_process_p): Use find_thread.
3870
83e1b6c1
SM
38712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3872
3873 * inferiors.c (find_inferior_in_random): Remove.
3874 * inferiors.h (find_inferior_in_random): Remove.
3875 * linux-low.c (status_pending_p_callback): Return bool, accept
3876 parameter ptid directly.
3877 (linux_wait_for_event_filtered): Use find_thread_in_random.
3878 (linux_wait_1): Likewise.
3879
8dc7b443
SM
38802017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3881
3882 * inferiors.c (find_inferior_id): Remove.
3883 (find_thread_ptid): Move implemention from find_inferior_id to
3884 here.
3885 * inferiors.h (find_inferior_id): Remove.
3886 * server.c (handle_status): Use find_thread_ptid.
3887 (process_serial_event): Likewise.
3888 * thread-db.c (find_one_thread): Likewise.
3889 (thread_db_thread_handle): Likewise.
3890 * win32-low.c (thread_rec): Likewise.
3891 (child_delete_thread): Likewise.
3892 (win32_thread_alive): Likewise.
3893 (get_child_debug_event): Likewise.
3894
da25033c
SM
38952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3896
3897 * linux-mips-low.c (update_watch_registers_callback): Return
3898 void, remove pid_p parameter, don't check for pid.
3899 (mips_insert_point, mips_remove_point): Use for_each_thread.
3900
c91bb56b
SM
39012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3902
3903 * lynx.low (lynx_delete_thread_callback): Remove.
3904 (lynx_mourn): Use for_each_thread.
3905
634a3254
SM
39062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3907
3908 * regcache.c (regcache_invalidate_one): Remove.
3909 (regcache_invalidate_pid): use for_each_thread.
3910
41272101
TT
39112017-11-26 Tom Tromey <tom@tromey.com>
3912
3913 * linux-low.c (linux_create_inferior): Update.
3914
f5291a6f
UW
39152017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3916
3917 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3918
6654d750
AH
39192017-11-24 Alan Hayward <alan.hayward@arm.com>
3920
3921 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3922 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3923 * linux-aarch64-tdesc-selftest.c: New file.
3924 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3925
39262017-11-24 Alan Hayward <alan.hayward@arm.com>
3927
3928 * configure.srv: Add new file.
3929 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3930 * linux-aarch64-tdesc-selftest.c: New file.
3931 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3932
49bdb7ee
AH
39332017-11-24 Alan Hayward <alan.hayward@arm.com>
3934
3935 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3936 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3937 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3938
d6d7ce56
AH
39392017-11-24 Alan Hayward <alan.hayward@arm.com>
3940
3941 * configure.srv: Add new files.
3942 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3943 aarch64_linux_read_description.
3944 * linux-aarch64-low.c (aarch64_linux_read_description):
3945 Merge with aarch64_arch_setup.
3946 (aarch64_arch_setup): Call aarch64_linux_read_description.
3947 * linux-aarch64-tdesc.c: New file.
3948 * linux-aarch64-tdesc.h: New file.
3949
506fe5f4
YQ
39502017-11-24 Yao Qi <yao.qi@linaro.org>
3951
3952 * configure.srv: Set $srv_regobj for tic6x-linux.
3953 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3954 (tic6x_read_description): Move some code to tic6x_arch_setup.
3955 (tic6x_tdesc_test): New function.
3956 (initialize_low_arch): Call selftests::register_test.
3957
29f9a567
YQ
39582017-11-22 Yao Qi <yao.qi@linaro.org>
3959
3960 * remote-utils.c (prepare_resume_reply): Use memcpy.
3961
578290ec
SM
39622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3963
3964 * linux-low.c (kill_one_lwp_callback): Return void, take
3965 argument directly, don't filter on pid.
3966 (linux_kill): Use for_each_thread.
3967
eca55aec
SM
39682017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3969
3970 * linux-low.c (need_step_over_p): Return bool, remove dummy
3971 argument.
3972 (linux_resume, proceed_all_lwps): Use find_thread.
3973
25c28b4d
SM
39742017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3975
3976 * linux-low.c (resume_status_pending_p): Return bool, remove
3977 flag_p argument.
3978 (linux_resume): Use find_thread.
3979
5fdda392
SM
39802017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3981
3982 * linux-low.c (struct thread_resume_array): Remove.
3983 (linux_set_resume_request): Return void, take arguments
3984 directly.
3985 (linux_resume): Use for_each_thread.
3986
fcb056a5
SM
39872017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3988
3989 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3990 return bool, remove data argument.
3991 (linux_stabilize_threads): Use find_thread.
3992
139720c5
SM
39932017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3994
3995 * linux-low.c (unsuspend_one_lwp): Remove.
3996 (unsuspend_all_lwps): Use for_each_thread, inline code from
3997 unsuspend_one_lwp.
3998
6d1e5673
SM
39992017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4000
4001 * gdbthread.h (find_thread): Add overload with ptid_t filter.
4002 * linux-low.c (struct iterate_over_lwps_args): Remove.
4003 (iterate_over_lwps_filter): Remove.
4004 (iterate_over_lwps): Use find_thread.
4005
bbf550d5
SM
40062017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4007
4008 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4009 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4010 code from reset_lwp_ptrace_options_callback.
4011
00192f77
SM
40122017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4013
4014 * linux-arm-low.c (struct update_registers_data): Remove.
4015 (update_registers_callback): Return void, take arguments
4016 directly, don't check thread's pid.
4017 (arm_insert_point, arm_remove_point): Use for_each_thread.
4018
2bee2b6c
SM
40192017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4020
4021 * win32-low.c (continue_one_thread): Return void, take argument
4022 directly.
4023 (child_continue): Use for_each_thread.
4024
0b360f19
SM
40252017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4026
4027 * win32-i386-low.c (update_debug_registers_callback): Rename
4028 to ...
4029 (update_debug_registers): ... this, return void, remove pid_p arg.
4030 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4031
f27866ba
SM
40322017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4033
4034 * inferiors.h (struct process_info): Add constructor, initialize
4035 fields..
4036 <syscalls_to_catch>: Change type to std::vector<int>.
4037 * inferiors.c (add_process): Allocate process_info with new.
4038 (remove_process): Free process_info with delete.
4039 * linux-low.c (handle_extended_wait): Adjust.
4040 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4041 * server.c (handle_general_set): Adjust.
4042
e849ea89
PA
40432017-11-16 Pedro Alves <palves@redhat.com>
4044
4045 * remote-utils.c (remote_close): Block SIGIO signals instead of
4046 uninstalling the SIGIO handler.
4047
1d0aa65c
AH
40482017-11-16 Alan Hayward <alan.hayward@arm.com>
4049
4050 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4051
3491a34c
YQ
40522017-11-16 Yao Qi <yao.qi@linaro.org>
4053
4054 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4055 (tic6x_store_gregset): Likewise.
4056 (tic6x_usrregs_info): Move it up.
4057
a602f924
AH
40582017-11-15 Alan Hayward <alan.hayward@arm.com>
4059
4060 * Makefile.in: Update arch rules.
4061 * configure.srv: Explicitly mark arch/ files.
4062
5616b6c3
AS
40632017-11-13 Andreas Schwab <schwab@suse.de>
4064
4065 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4066 function.
4067 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4068
d1928160
PA
40692017-11-06 Pedro Alves <palves@redhat.com>
4070
4071 * config.in, configure: Regenerate.
4072
bac608e7
SM
40732017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4074
4075 * target.c (struct thread_search): Remove.
4076 (thread_search_callback): Remove.
4077 (prepare_to_access_memory): Use for_each_thread instead of
4078 find_inferior. Inline code from thread_search_callback.
4079
eaddb425
SM
40802017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4081
4082 * server.c (struct visit_actioned_threads_data): Remove.
4083 (visit_actioned_threads): Change prototype to take arguments
4084 directly.
4085 (resume): Use find_thread instead of find_inferior.
4086
99078d34
SM
40872017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4088
4089 * server.c (queue_stop_reply_callback): Change prototype, return
4090 void.
4091 (find_status_pending_thread_callback): Remove.
4092 (handle_status): Replace find_inferior with find_thread and
4093 for_each_thread.
4094
cc628f3d
AH
40952017-10-25 Alan Hayward <alan.hayward@arm.com>
4096
4097 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4098 with REGNO.
4099 (aarch64_store_gregset): Likewise.
4100 (aarch64_fill_fpregset): Likewise.
4101 (aarch64_store_fpregset): Likewise.
4102
4d3bb80e
SM
41032017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4104
4105 * gdbthread.h (find_thread, for_each_thread): New functions.
4106 * inferiors.c (thread_of_pid): Remove.
4107 (find_any_thread_of_pid): Use find_thread.
4108 * linux-low.c (num_lwps): Use for_each_thread.
4109
7a7cdfa0
YQ
41102017-10-17 Yao Qi <yao.qi@linaro.org>
4111
4112 * Makefile.in: Remove one rule.
4113 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4114
e675d170
YQ
41152017-10-17 Yao Qi <yao.qi@linaro.org>
4116
4117 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4118 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4119
7eb4e0f9
YQ
41202017-10-17 Yao Qi <yao.qi@linaro.org>
4121
4122 * configure.srv: Rename arm.o with arch/arm.o.
4123
60d6cfc9
YQ
41242017-10-17 Yao Qi <yao.qi@linaro.org>
4125
4126 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4127 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4128 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4129 (arch-i386.o, arch-amd64.o): Remove rules.
4130 (arch/%.o): New rule.
4131 Update POSTCOMPILE and COMPILE.pre.
4132 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4133 * configure: Re-generated.
4134 * configure.srv: Replace arch-i386.o with arch/i386.o.
4135 Replace arch-amd64.o with arch/amd64.o.
4136
5bfda255
YQ
41372017-10-16 Yao Qi <yao.qi@linaro.org>
4138
4139 * configure: Regenerated.
4140
9c80ecd6
SM
41412017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4142
4143 * inferiors.h: (struct inferior_list): Remove.
4144 (struct inferior_list_entry); Remove.
4145 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4146 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4147 get_first_inferior): Remove.
4148 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4149 find_inferior_id, find_inferior_in_random): Change signature.
4150 * inferiors.c (all_threads): Change type to
4151 std::list<thread_info *>.
4152 (get_thread): Remove macro.
4153 (find_inferior, find_inferior_id): Change signature, implement
4154 using find_thread.
4155 (find_inferior_in_random): Change signature, implement using
4156 find_thread_in_random.
4157 (for_each_inferior, for_each_inferior_with_data): Change
4158 signature, implement using for_each_thread.
4159 (add_inferior_to_list, remove_inferior): Remove.
4160 (add_thread, get_first_thread, thread_of_pid,
4161 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4162 (get_first_inferior, one_inferior_p, clear_inferior_list):
4163 Remove.
4164 (clear_inferiors, get_thread_process): Update.
4165 * gdbthread.h: Include <list>.
4166 (struct thread_info) <entry>: Remove field.
4167 <id>: New field.
4168 (all_threads): Change type to std::list<thread_info *>.
4169 (get_first_inferior): Add doc.
4170 (find_thread, for_each_thread, find_thread_in_random): New
4171 functions.
4172 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4173 * linux-arm-low.c (update_registers_callback): Update.
4174 * linux-low.c (second_thread_of_pid_p): Update.
4175 (kill_one_lwp_callback, linux_detach_lwp_callback,
4176 delete_lwp_callback, status_pending_p_callback, same_lwp,
4177 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4178 iterate_over_lwps, not_stopped_callback,
4179 resume_stopped_resumed_lwps, count_events_callback,
4180 select_singlestep_lwp_callback, select_event_lwp_callback,
4181 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4182 suspend_and_send_sigstop_callback, wait_for_sigstop,
4183 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4184 lwp_running, linux_set_resume_request, resume_status_pending_p,
4185 need_step_over_p, start_step_over, linux_resume_one_thread,
4186 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4187 reset_lwp_ptrace_options_callback): Update.
4188 * linux-mips-low.c (update_watch_registers_callback): Update.
4189 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4190 Update.
4191 (free_register_cache_thread_one): Remove.
4192 (regcache_release): Update.
4193 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4194 handle_qxfer_threads_worker): Update.
4195 (handle_query): Update, use list iterator.
4196 (visit_actioned_threads, handle_pending_status,
4197 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4198 clear_pending_status_callback, set_pending_status_callback,
4199 find_status_pending_thread_callback, handle_status,
4200 process_serial_event): Update.
4201 * target.c (thread_search_callback): Update.
4202 * thread-db.c (thread_db_get_tls_address): Update.
4203 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4204 Update.
4205 * win32-i386-low.c (update_debug_registers_callback): Update.
4206 * win32-low.c (delete_thread_info, child_delete_thread,
4207 continue_one_thread, suspend_one_thread,
4208 get_child_debug_event): Adjust.
4209
9179355e
SM
42102017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4211
4212 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4213 * inferiors.h: Include <list>.
4214 (struct process_info) <entry>: Remove field.
4215 <pid>: New field.
4216 (pid_of): Change macro to function.
4217 (ptid_of, lwpid_of): Remove macro.
4218 (all_processes): Change type to std::list<process_info *>.
4219 (ALL_PROCESSES): Remove macro.
4220 (for_each_process, find_process): New function.
4221 * inferiors.c (all_processes): Change type to
4222 std::list<process_info *>.
4223 (find_thread_process): Adjust.
4224 (add_process): Likewise.
4225 (remove_process): Likewise.
4226 (find_process_pid): Likewise.
4227 (get_first_process): Likewise.
4228 (started_inferior_callback): Remove.
4229 (have_started_inferiors_p): Adjust.
4230 (attached_inferior_callback): Remove.
4231 (have_attached_inferiors_p): Adjust.
4232 * linux-low.c (check_zombie_leaders): Likewise.
4233 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4234 (x86_linux_update_xmltarget): Adjust.
4235 * server.c (handle_query): Likewise.
4236 (gdb_reattached_process): Remove.
4237 (handle_status): Adjust.
4238 (kill_inferior_callback): Likewise.
4239 (detach_or_kill_inferior): Remove.
4240 (print_started_pid): Likewise.
4241 (print_attached_pid): Likewise.
4242 (detach_or_kill_for_exit): Update.
4243 (process_serial_event): Likewise.
4244 * linux-arm-low.c (arm_new_fork): Likewise.
4245
c9cb8905
SM
42462017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4247
4248 * dll.h: Include <list>.
4249 (struct dll_info): Add constructor.
4250 <entry>: Remove field.
4251 (all_dlls): Change type to std::list<dll_info>.
4252 * dll.c: Include <algorithm>.
4253 (get_dll): Remove macro.
4254 (all_dlls): Change type to std::list<dll_info *>.
4255 (free_one_dll): Remove.
4256 (match_dll): Likewise.
4257 (loaded_dll): Adjust.
4258 (unloaded_dll): Adjust to all_dlls type change, use
4259 std::find_if. Inline code from match_dll.
4260 (clear_dlls): Adjust to all_dlls type change.
4261 * server.c (emit_dll_description): Remove.
4262 (handle_qxfer_libraries): Adjust to all_dlls type change,
4263 integrate emit_dll_description's functionality.
4264
04ec7890
SM
42652017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4266
4267 * linux-low.h (struct linux_target_ops) <delete_process>: New
4268 field.
4269 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4270 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4271 (struct linux_target_ops): Add delete_process callback.
4272 * linux-arm-low.c (arm_delete_process): New.
4273 (struct linux_target_ops): Add delete_process callback.
4274 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4275 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4276 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4277 * linux-mips-low.c (mips_linux_delete_process): New.
4278 (struct linux_target_ops): Add delete_process callback.
4279 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4280 * linux-s390-low.c (struct linux_target_ops): Likewise.
4281 * linux-sh-low.c (struct linux_target_ops): Likewise.
4282 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4283 * linux-tile-low.c (struct linux_target_ops): Likewise.
4284 * linux-x86-low.c (x86_linux_delete_process): New.
4285 (struct linux_target_ops): Add delete_process callback.
4286 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4287
466eecee
SM
42882017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4289
4290 * linux-aarch64-low.c (the_low_target): Add thread delete
4291 callback.
4292 * linux-arm-low.c (arm_delete_thread): New function.
4293 (the_low_target): Add thread delete callback.
4294 * linux-bfin-low.c (the_low_target): Likewise.
4295 * linux-crisv32-low.c (the_low_target): Likewise.
4296 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4297 set.
4298 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4299 field.
4300 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4301 * linux-mips-low.c (mips_linux_delete_thread): New function.
4302 (the_low_target): Add thread delete callback.
4303 * linux-ppc-low.c (the_low_target): Likewise.
4304 * linux-s390-low.c (the_low_target): Likewise.
4305 * linux-sh-low.c (the_low_target): Likewise.
4306 * linux-tic6x-low.c (the_low_target): Likewise.
4307 * linux-tile-low.c (the_low_target): Likewise.
4308 * linux-x86-low.c (the_low_target): Likewise.
4309 * linux-xtensa-low.c (the_low_target): Likewise.
4310
b79f7801
YZ
43112017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4312
4313 * win32-low.c: Include "common-inferior.h".
4314
bc3b087d
SDJ
43152017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4316
4317 * inferiors.c (set_inferior_cwd): New function.
4318 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4319 (handle_query): Inform that QSetWorkingDir is supported.
4320 * win32-low.c (create_process): Pass the inferior's cwd to
4321 CreateProcess.
4322
d092c5a2
SDJ
43232017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4324
4325 * inferiors.c (current_inferior_cwd): New global variable.
4326 (get_inferior_cwd): New function.
4327 * inferiors.h (struct process_info) <cwd>: New field.
4328
7da0a886
SDJ
43292017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4330
4331 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4332 (OBS): Add gdb_tilde_expand.o.
4333
289a6840
SM
43342017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4335
4336 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4337 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4338
256642e8
PA
43392017-09-29 Pedro Alves <palves@redhat.com>
4340
4341 * ax.c (gdb_parse_agent_expr): Constify.
4342 * ax.h (gdb_parse_agent_expr): Constify.
4343 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4344 Constify.
4345 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4346 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4347 * remote-utils.h (read_ptid): Constify.
4348 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4349 (process_point_options, process_serial_event): Constify.
4350 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4351 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4352 (cmd_qtbuffer): Constify.
4353
5b9ca4d4
PA
43542017-09-29 Pedro Alves <palves@redhat.com>
4355
4356 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4357 fails.
4358
94c207e0
PA
43592017-09-29 Pedro Alves <palves@redhat.com>
4360
4361 * linux-low.c (handle_extended_wait): Pass parent thread instead
4362 of process to thread_db_notice_clone.
4363 * linux-low.h (thread_db_notice_clone): Replace parent process
4364 parameter with parent thread parameter.
4365 * thread-db.c (find_one_thread): Add comment.
4366 (thread_db_notice_clone): Replace parent process parameter with
4367 parent thread parameter. Temporarily switch to the parent thread.
4368
75352e28
SDJ
43692017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4370
4371 * gdbthread.h: Include "common-gdbthread.h".
4372 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4373 "if" when validating the ptid.
4374 * remote-utils.c: Include "gdbthread.h".
4375 (prepare_resume_reply): Use "switch_to_thread".
4376 * target.c (done_accessing_memory): Likewise.
4377
ad339634
AA
43782017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4379
4380 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4381 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4382 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4383 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4384 s390x-gs-linux64-ipa.o to ipa_obj.
4385 * linux-s390-low.c (HWCAP_S390_GS): New define.
4386 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4387 New functions.
4388 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4389 (s390_arch_setup): Check for guarded-storage support and choose
4390 appropriate tdesc.
4391 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4392 init_registers_s390x_gs_linux64.
4393 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4394 enum value.
4395 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4396 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4397
cc4d742f
SM
43982017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4399
4400 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4401
f6327dcb
KB
44022017-09-21 Kevin Buettner <kevinb@redhat.com>
4403
4404 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4405 (thread_db_thread_handle): Declare.
4406 * linux-low.c (linux_target_ops): Initialize thread_handle.
4407 * server.c (handle_qxfer_threads_worker): Add support for
4408 "handle" attribute.
4409 * target.h (struct target_ops): Add new function pointer,
4410 thread_handle.
4411 (target_thread_handle): Define.
4412 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4413 field in lwp.
4414 (thread_db_thread_handle): New function.
4415
86299109
KB
44162017-09-21 Kevin Buettner <kevinb@redhat.com>
4417
4418 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4419 * linux-low.h (thread_db_notice_clone): Declare.
4420 * thread-db.c (thread_db_notice_clone): New function.
4421
f557a88a
PA
44222017-09-21 Pedro Alves <palves@redhat.com>
4423
4424 * server.c (gdb_read_memory, handle_status, process_serial_event)
4425 (handle_serial_event, handle_target_event): Adjust to
4426 set_desired_thread prototype change.
4427 * target.c (set_desired_thread): Remove 'use_general' parameter
4428 and adjust.
4429 * target.h (set_desired_thread): Remove 'use_general' parameter.
4430
223ffa71
TT
44312017-09-20 Tom Tromey <tom@tromey.com>
4432
4433 * target.c (target_terminal::terminal_state): Define.
4434 (target_terminal::init): Rename from target_terminal_init.
4435 (target_terminal::inferior): Rename from
4436 target_terminal_inferior.
4437 (target_terminal::ours): Rename from target_terminal_ours.
4438 (target_terminal::ours_for_output, target_terminal::info): New.
4439
04fd3ba9
SM
44402017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4441
4442 * server.c (accumulate_file_name_length): Remove.
4443 (emit_dll_description): Adjust to std::string change.
4444 (handle_qxfer_libraries): Use std::string to hold document.
4445
5e187554
SM
44462017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4447
4448 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4449 return type of xml_escape_text.
4450 * server.c (emit_dll_description): Likewise.
4451
1526853e
SM
44522017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4453
4454 * server.c (captured_main): Accept argument for --selftest.
4455 Update run_tests call.
4456 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4457 when registering selftests.
4458
c4dfafab
SDJ
44592017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4460
4461 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4462 instead of "VEC" for "target_desc.reg_defs".
4463 (regcache_cpy): Likewise.
4464 (registers_to_string): Likewise.
4465 (registers_from_string): Likewise.
4466 (find_regno): Likewise.
4467 (supply_regblock): Likewise.
4468 (regcache_raw_read_unsigned): Likewise.
4469 * tdesc.c (init_target_desc): Likewise.
4470 (tdesc_create_reg): Likewise.
4471 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4472 (struct target_desc) <reg_defs>: Convert to "std::vector".
4473 (target_desc): Do not initialize "reg_defs".
4474 (~target_desc): Update code to use "std::vector" instead of "VEC"
4475 for "target_desc.reg_defs".
4476 (operator==): Likewise.
4477
124aceb4
SM
44782017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4479
4480 * inferiors.h (thread_to_gdb_id): Remove.
4481 * inferiors.c (thread_to_gdb_id): Remove.
4482 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4483 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4484 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4485 Likewise.
4486 * nto-low.c (nto_fetch_registers, nto_store_registers,
4487 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4488
96cde54f
SM
44892017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4490
4491 * inferiors.h (gdb_id_to_thread_id): Remove.
4492 * inferiors.c (gdb_id_to_thread_id): Remove.
4493 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4494 removal. Move pid declaration closer to where it's used.
4495
e8ca139e
SM
44962017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4497
4498 * server.c (handle_detach): New function.
4499 (process_serial_event): Move code out, call handle_detach.
4500
f8a4e119
SM
45012017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4502
4503 * server.c (require_running): Rename to ...
4504 (require_running_or_return): ... this ...
4505 (require_running_or_break): ... and this.
4506 (handle_query, process_serial_event): Adjust.
4507
0eb0a407
SM
45082017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4509
4510 * linux-low.c (linux_set_resume_request): Remove unused
4511 variables.
4512
785922a5
SM
45132017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4514
4515 * server.c (first_thread_of): Remove.
4516 (process_serial_event): Replace usage of first_thread_of with
4517 find_any_thread_of_pid.
4518 * tracepoint.c (same_process_p): Remove.
4519 (gdb_agent_about_to_close): Replace usage of same_process_p with
4520 find_any_thread_of_pid.
4521 * linux-x86-low.c (same_process_callback): Remove.
4522 (x86_arch_setup_process_callback): Replace usage of
4523 same_process_callback with find_any_thread_of_pid.
4524 * thread-db.c (any_thread_of): Remove.
4525 (switch_to_process): Replace usage of any_thread_of with
4526 find_any_thread_of_pid.
4527 * inferiors.c (thread_pid_matches_callback): Remove.
4528 (find_thread_process): Adjust to use find_any_thread_of_pid.
4529
a059f00c
SDJ
45302017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4531
4532 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 4533 with "!VEC_empty".
a059f00c 4534
cc397f3a
SDJ
45352017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4536
4537 * linux-low.c (handle_extended_wait): Use
4538 "allocate_target_description" instead of "XNEW".
4539 * linux-x86-low.c (initialize_low_arch): Likewise.
4540
22916b07
YQ
45412017-09-05 Yao Qi <yao.qi@linaro.org>
4542
4543 * configure.srv (srv_i386_regobj): Remove.
4544 (srv_amd64_regobj): Remove.
4545 (srv_regobj): Set it to "" for x86 non-linux targets.
4546 * linux-x86-tdesc.c (i386_linux_read_description):
4547 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4548 (init_registers_i386): Remove the declaration.
4549 (tdesc_i386): Remove the declaration.
4550 (lynx_i386_arch_setup): Call i386_create_target_description.
4551 * nto-x86-low.c: Likewise.
4552 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4553 [!__x86_64__]: include arch/i386.h.
4554 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4555
38602d55
YQ
45562017-09-05 Yao Qi <yao.qi@linaro.org>
4557
4558 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4559 i386/amd64-XXX-linux from it.
4560
44b886ff
YQ
45612017-09-05 Yao Qi <yao.qi@linaro.org>
4562
4563 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4564 false.
4565 (ipa_amd64_linux_regobj): Remove.
4566 (ipa_x32_linux_regobj): Remove.
4567
b4570e4b
YQ
45682017-09-05 Yao Qi <yao.qi@linaro.org>
4569
4570 * Makefile.in (arch-amd64.o): New rule.
4571 * configure.srv: Append arch-amd64.o.
4572 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4573 (get_ipa_tdesc): Call amd64_linux_read_description.
4574 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4575 and init_registers_amd64_XXX.
4576 * linux-x86-low.c (x86_linux_read_description): Call
4577 amd64_linux_read_description.
4578 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4579 (initialize_low_arch): Don't call init_registers_x32_XXX and
4580 init_registers_amd64_XXX.
4581 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4582 and tdesc_amd64_XXX.
4583 [__x86_64__] (amd64_tdesc_test): New function.
4584 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4585 and init_registers_amd64_XXX.
4586 * linux-x86-tdesc.c: Include arch/amd64.h.
4587 (xcr0_to_tdesc_idx): New function.
4588 (i386_linux_read_description): New function.
4589 (amd64_get_ipa_tdesc_idx): New function.
4590 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4591 (amd64_get_ipa_tdesc): Declare.
4592
d1f28ea2
YQ
45932017-09-05 Yao Qi <yao.qi@linaro.org>
4594
4595 * configure.srv (srv_i386_linux_xmlfiles): Remove
4596 i386/i386-XXX-linux.xml from it.
4597
25a93583
YQ
45982017-09-05 Yao Qi <yao.qi@linaro.org>
4599
4600 * configure.srv: Set srv_i386_linux_regobj empty if $development
4601 is false.
4602 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4603 initialize_low_tdesc.
4604 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4605 with #if initialize_low_tdesc.
4606 * linux-x86-tdesc-selftest.c: New file.
4607 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4608
5f035c07
YQ
46092017-09-05 Yao Qi <yao.qi@linaro.org>
4610
4611 * Makefile.in (arch-i386.o): New rule.
4612 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4613 (x86_64-*-linux*): Likewise.
4614 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4615 include arch/i386.h.
4616 (i386_linux_read_description): Remove code and call
4617 i386_create_target_description.
4618 * tdesc.c (allocate_target_description): New function.
4619 * tdesc.h (set_tdesc_architecture): Remove declaration.
4620 (set_tdesc_osabi): Likewise.
4621
0abe8a89
YQ
46222017-09-05 Yao Qi <yao.qi@linaro.org>
4623
4624 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4625 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4626 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4627 .xmltarget.
4628 * server.c (get_features_xml): Call tdesc_get_features_xml.
4629 * tdesc.c (set_tdesc_architecture): New function.
4630 (set_tdesc_osabi): New function.
4631 (tdesc_get_features_xml): New function.
4632 (tdesc_create_feature): Add an argument.
4633 * tdesc.h (struct target_desc) <features>: New field.
4634 <arch, osabi>: New field.
4635 (~target_desc): xfree features, arch, and osabi.
4636 (target_desc::oerator==): Don't compare .xmltarget.
4637 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4638 (set_tdesc_osabi): Likewise.
4639 (tdesc_get_features_xml): Likewise.
4640
0a188386
YQ
46412017-09-05 Yao Qi <yao.qi@linaro.org>
4642
4643 * linux-x86-tdesc.c: Include selftest.h.
4644 (i386_tdesc_test): New function.
4645 (initialize_low_tdesc): Call selftests::register_test.
4646 * tdesc.h: Include regdef.h.
4647 (target_desc): Override operator == and !=.
4648
f49ff000
YQ
46492017-09-05 Yao Qi <yao.qi@linaro.org>
4650
4651 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4652 (ipa_obj): Likewise.
4653 * linux-i386-ipa.c: Include common/x86-xstate.h
4654 (get_ipa_tdesc): Call i386_linux_read_description.
4655 (initialize_low_tracepoint): Don't call init_registers_XXX
4656 functions, call initialize_low_tdesc instead.
4657 * linux-x86-low.c (x86_linux_read_description): Call
4658 i386_linux_read_description.
4659 (initialize_low_arch): Don't call init_registers_i386_XXX
4660 functions, call initialize_low_tdesc.
4661 * linux-x86-tdesc.c: New file.
4662 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4663 (i386_get_ipa_tdesc_idx): Declare.
4664 (i386_get_ipa_tdesc): Declare.
4665 (initialize_low_tdesc): Declare.
4666
2b68ef2f
YQ
46672017-09-05 Yao Qi <yao.qi@linaro.org>
4668
4669 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4670 instead of 0.
4671
f7000548
YQ
46722017-09-05 Yao Qi <yao.qi@linaro.org>
4673
4674 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4675 * regcache.c (get_thread_regcache): Use VEC_length.
4676 (init_register_cache): Likewise.
4677 (regcache_cpy): Likewise.
4678 (registers_to_string): Iterate reg_defs via VEC_iterate.
4679 (find_regno): Likewise.
4680 (find_register_by_number): Use VEC_index.
4681 (register_size): Call find_register_by_number.
4682 (register_data): Call find_register_by_number.
4683 (supply_regblock): Use VEC_length.
4684 (regcache_raw_read_unsigned): Likewise.
4685 * tdesc.c (init_target_desc): Iterate reg_defs via
4686 VEC_iterate.
4687 (default_description): Update initializer.
4688 (copy_target_description): Don't update field num_registers.
4689 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4690 <num_registers>: Remove.
4691
50a421ac
SM
46922017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4693
4694 * Makefile.in (.SECONDARY): Define target.
4695
23fdd69e
SM
46962017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4697
4698 * linux-low.c (linux_wait_1): Adjust.
4699 * server.c (queue_stop_reply_callback): Adjust.
4700
0a2dde4a
SDJ
47012017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4702
4703 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4704 QEnvironmentUnset and QEnvironmentReset packets.
4705 (handle_query): Inform remote that QEnvironmentHexEncoded,
4706 QEnvironmentUnset and QEnvironmentReset are supported.
4707
6afd337d
SM
47082017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4709
4710 * inferiors.h (inferior_target_data): Rename to ...
4711 (thread_target_data): ... this.
4712 (inferior_regcache_data): Rename to ...
4713 (thread_regcache_data): ... this.
4714 (set_inferior_regcache_data): Rename to ...
4715 (set_thread_regcache_data): ... this.
4716 * inferiors.c (inferior_target_data): Rename to ...
4717 (thread_target_data): ... this.
4718 (inferior_regcache_data): Rename to ...
4719 (thread_regcache_data): ... this.
4720 (set_inferior_regcache_data): Rename to ...
4721 (set_thread_regcache_data): ... this.
4722 (free_one_thread): Update.
4723 * linux-low.h (get_thread_lwp): Update.
4724 * regcache.c (get_thread_regcache): Update.
4725 (regcache_invalidate_thread): Update.
4726 (free_register_cache_thread): Update.
4727 * win32-i386-low.c (update_debug_registers_callback): Update.
4728 (win32_get_current_dr): Update.
4729 * win32-low.c (thread_rec): Update.
4730 (delete_thread_info): Update.
4731 (continue_one_thread): Update.
4732 (suspend_one_thread): Update.
4733
a160cc46
SM
47342017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4735
4736 * inferiors.c (set_inferior_target_data): Remove.
4737 * inferiors.h (set_inferior_target_data): Remove.
4738
6d580b63
YQ
47392017-08-18 Yao Qi <yao.qi@linaro.org>
4740
4741 * Makefile.in (OBS): Add selftest.o.
4742 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4743 * configure, config.in: Re-generated.
4744 * server.c: Include common/sefltest.h.
4745 (captured_main): Handle option --selftest.
4746
f5a29eb0
YQ
47472017-08-09 Yao Qi <yao.qi@linaro.org>
4748
4749 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4750 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4751 i386-avx-mpx.o and i386-mmx.o.
4752 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4753 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4754 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4755 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4756 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4757 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4758 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4759 i386/amd64-avx-mpx.xml.
4760
57757c2f
YQ
47612017-08-09 Yao Qi <yao.qi@linaro.org>
4762
4763 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4764 and x32-avx-avx512.o.
4765 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4766 i386/x32-avx-avx512.xml.
4767
229d26fc
SM
47682017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4769
4770 * tracepoint.h (enum class fast_tpoint_collect_result): New
4771 enumeration.
4772 (fast_tracepoint_collecting): Change return type to
4773 fast_tpoint_collect_result.
4774 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4775 * linux-low.h: Include tracepoint.h.
4776 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4777 fast_tpoint_collect_result.
4778 * linux-low.c (handle_tracepoints): Adjust.
4779 (linux_fast_tracepoint_collecting): Change return type to
4780 fast_tpoint_collect_result.
4781 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4782 linux_wait_1, stuck_in_jump_pad_callback,
4783 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4784 proceed_one_lwp): Adjust to type change.
4785
2e1e43e1
YQ
47862017-07-10 Yao Qi <yao.qi@linaro.org>
4787
4788 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4789
adc764e7
YQ
47902017-06-29 Yao Qi <yao.qi@linaro.org>
4791
4792 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4793 Remove.
4794 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4795
a206891a
SM
47962017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4797
4798 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4799
9a6c7d9c
SDJ
48002017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4801
4802 * linux-low.c (linux_create_inferior): Adjust code to access the
4803 environment information via 'gdb_environ' class.
4804 * lynx-low.c (lynx_create_inferior): Likewise.
4805 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4806 (get_environ): Return a pointer to 'our_environ'.
4807 (captured_main): Initialize 'our_environ'.
4808 * server.h (get_environ): Adjust prototype.
4809 * spu-low.c (spu_create_inferior): Adjust code to access the
4810 environment information via 'gdb_environ' class.
4811
ae3e2ccf
SM
48122017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4813
4814 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4815 usage of "register" keyword.
4816
3e019bdc
SM
48172017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4818
4819 * configure: Re-generate.
4820
8465943a
SM
48212017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4822
4823 * configure: Re-generate.
4824
cf0dd6f0
SM
48252017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4826
4827 * Makefile.in (COMPILE.pre): Add "-x c++".
4828
9845682b
SDJ
48292017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4830
4831 * fork-child.c: Conditionally include <signal.h>.
4832
aefd8b33
SDJ
48332017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4834
4835 * server.c (handle_general_set): Handle new packet
4836 "QStartupWithShell".
4837 (handle_query): Add "QStartupWithShell" to the list of supported
4838 packets.
4839 (gdbserver_usage): Add help text explaining the
4840 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4841 options.
4842 (captured_main): Recognize and act upon the presence of the new
4843 CLI options.
4844
2090129c
SDJ
48452017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4846 Pedro Alves <palves@redhat.com>
4847
4848 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4849 * configure: Regenerate.
4850 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4851 "fork-inferior.o".
4852 (i[34567]86-*-lynxos*): Likewise.
4853 (spu*-*-*): Likewise.
4854 * fork-child.c: New file.
4855 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4856 and "environ.h".
4857 (linux_ptrace_fun): New function.
4858 (linux_create_inferior): Adjust function prototype to reflect
4859 change on "target.h". Adjust function code to use
4860 "fork_inferior".
4861 (linux_request_interrupt): Delete "signal_pid".
4862 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4863 (lynx_ptrace_fun): New function.
4864 (lynx_create_inferior): Adjust function prototype to reflect
4865 change on "target.h". Adjust function code to use
4866 "fork_inferior".
4867 * nto-low.c (nto_create_inferior): Adjust function prototype and
4868 code to reflect change on "target.h". Update comments.
4869 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4870 "common-terminal.h" and "environ.h".
4871 (terminal_fd): Moved to fork-child.c.
4872 (old_foreground_pgrp): Likewise.
4873 (restore_old_foreground_pgrp): Likewise.
4874 (last_status): Make it global.
4875 (last_ptid): Likewise.
4876 (our_environ): New variable.
4877 (startup_with_shell): Likewise.
4878 (program_name): Likewise.
4879 (program_argv): Rename to...
4880 (program_args): ...this.
4881 (wrapper_argv): New variable.
4882 (start_inferior): Delete function.
4883 (get_exec_wrapper): New function.
4884 (get_exec_file): Likewise.
4885 (get_environ): Likewise.
4886 (prefork_hook): Likewise.
4887 (post_fork_inferior): Likewise.
4888 (postfork_hook): Likewise.
4889 (postfork_child_hook): Likewise.
4890 (handle_v_run): Update code to deal with arguments coming from the
4891 remote host. Update calls from "start_inferior" to
4892 "create_inferior".
4893 (captured_main): Likewise. Initialize environment variable. Call
4894 "have_job_control".
4895 * server.h (post_fork_inferior): New prototype.
4896 (get_environ): Likewise.
4897 (last_status): Declare.
4898 (last_ptid): Likewise.
4899 (signal_pid): Likewise.
4900 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4901 (spu_ptrace_fun): New function.
4902 (spu_create_inferior): Adjust function prototype to reflect change
4903 on "target.h". Adjust function code to use "fork_inferior".
4904 * target.c (target_terminal_init): New function.
4905 (target_terminal_inferior): Likewise.
4906 (target_terminal_ours): Likewise.
4907 * target.h: Include <vector>.
4908 (struct target_ops) <create_inferior>: Update prototype.
4909 (create_inferior): Update macro.
4910 * utils.c (gdb_flush_out_err): New function.
4911 * win32-low.c (win32_create_inferior): Adjust function prototype
4912 and code to reflect change on "target.h".
4913
043a4934
SDJ
49142017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4915
4916 * inferiors.c (switch_to_thread): New function.
4917
15652511
SDJ
49182017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4919
4920 * Makefile.in (SFILE): Add "common/job-control.c".
4921 (OBS): Add "job-control.o".
4922
21ea5acd
SDJ
49232017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4924
4925 * Makefile: Remove "@host_makefile_frag@".
4926
e13cb306
PA
49272017-05-05 Pedro Alves <palves@redhat.com>
4928
4929 * configure: Regenerate.
4930
c94fee56
SDJ
49312017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4932
4933 * configure: Regenerate.
4934
a0ff9e1a
SM
49352017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4936
4937 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4938 software_single_step change of return type to
4939 std::vector<CORE_ADDR>.
4940 * linux-low.c (install_software_single_step_breakpoints):
4941 Likewise.
4942 * linux-low.h (install_software_single_step_breakpoints):
4943 Likewise.
4944
be628ab8
SDJ
49452017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4946
4947 * remote-utils.c: Include "gdb_termios.h" instead of
4948 "terminal.h".
4949 * terminal.h: Delete file.
4950
7c5ded6a
SDJ
49512017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4952
4953 * server.c: Include <vector>.
4954 <program_argv, wrapper_argv>: Convert to std::vector.
4955 (start_inferior): Rewrite function to use C++.
4956 (handle_v_run): Likewise. Update code that calculates the argv
4957 based on the vRun packet; use C++.
4958 (captured_main): Likewise.
4959
436252de
SM
49602017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4961
4962 * server.c (handle_v_cont): Initialize thread_resume::thread
4963 with null_ptid.
4964
9bf2a700
PA
49652017-04-05 Pedro Alves <palves@redhat.com>
4966
4967 * configure: Regenerate.
4968
a121b7c1
PA
49692017-04-05 Pedro Alves <palves@redhat.com>
4970
4971 * gdbreplay.c (sync_error): Constify.
4972 * linux-x86-low.c (push_opcode): Constify.
4973
21c8a587
PA
49742017-04-05 Pedro Alves <palves@redhat.com>
4975
4976 * win32-low.c (get_child_debug_event)
4977 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4978 Report TARGET_WAITKIND_SPURIOUS instead.
4979
fb32b4f7
PA
49802017-04-05 Pedro Alves <palves@redhat.com>
4981
e79be6e5
SM
4982 * remote-utils.c (remote_prepare, remote_open): Constify.
4983 * remote-utils.h (remote_prepare, remote_open): Constify.
4984 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 4985
65dd1e59
SM
49862017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4987
4988 * Makefile.in (clean): Clear .deps.
4989
8fa5b777
SM
49902017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4991
4992 * .gitignore: Remove generated files, replace with wildcard.
4993 * (clean): Replace removal of generated files with wildcard.
4994 (version.c): Replace with...
4995 (version-generated.c): ...this.
4996 (xml-builtin.c): Replace with...
4997 (xml-builtin-generated.c): ...this.
4998 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4999 (%.c: *regformats*): Replace with...
5000 (%-generated.c: *regformats*): ...this.
5001
a12e714b
MF
50022017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5003
5004 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5005 (xtensa_fill_gregset): Call collect_register_by_name for
5006 threadptr register.
5007 (xtensa_store_gregset): Call supply_register_by_name for
5008 threadptr register.
5009
1a09b50a
MF
50102017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5011
5012 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5013 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5014 (xtensa_store_gregset): Call supply_register for all registers in
5015 a0_regnum..a0_regnum + C0_NREGS range.
5016
1a01e7c6
SM
50172017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5018
5019 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5020 (ax-ipa.o: ax.c): Remove.
5021 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5022 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5023 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5024 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5025 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5026
36bc18a8
SM
50272017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5028
5029 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5030 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5031 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5032 (errors-ipa.o: ../common/errors.c): Remove.
5033 (format-ipa.o: ../common/format.c): Remove.
5034 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5035
a8ebe3d5
SM
50362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5037
5038 * Makefile.in (%-ipa.o: %.c): New rule.
5039 (tracepoint-ipa.o: tracepoint.c): Remove.
5040 (utils-ipa.o: utils.c): Remove.
5041 (remote-utils-ipa.o: remote-utils.c): Remove.
5042 (regcache-ipa.o: regcache.c): Remove.
5043 (i386-linux-ipa.o: i386-linux.c): Remove.
5044 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5045 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5046 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5047 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5048 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5049 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5050 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5051 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5052 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5053 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5054 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5055 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5056 (aarch64-ipa.o: aarch64.c): Remove.
5057 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5058 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5059 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5060 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5061 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5062 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5063 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5064 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5065 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5066 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5067 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5068 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5069 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5070 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5071 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5072 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5073 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5074 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5075 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5076 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5077 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5078 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5079 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5080 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5081 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5082 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5083 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5084 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5085 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5086 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5087 (tdesc-ipa.o: tdesc.c): Remove.
5088 (x32-linux-ipa.o: x32-linux.c): Remove.
5089 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5090 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5091
50cfacb7
SM
50922017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5093
5094 * Makefile.in (%.o: ../arch/%.c): New rule.
5095 (arm.o: ../arch/arm.c): Remove.
5096 (arm-linux.o: ../arch/arm-linux.c): Remove.
5097 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5098 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5099
c5a22423
SM
51002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5101
5102 * Makefile.in (%.o: ../nat/%.c): New rule.
5103 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5104 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5105 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5106 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5107 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5108 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5109 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5110 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5111 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5112 (linux-personality.o: ../nat/linux-personality.c): Remove.
5113 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5114 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5115 (x86-linux.o: ../nat/x86-linux.c): Remove.
5116 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5117 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5118
6bda016b
SM
51192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5120
5121 * Makefile.in (%.o: ../common/%.c): New rule.
5122 (signals.o: ../common/signals.c): Remove.
5123 (print-utils.o: ../common/print-utils.c): Remove.
5124 (rsp-low.o: ../common/rsp-low.c): Remove.
5125 (common-utils.o: ../common/common-utils.c): Remove.
5126 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5127 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5128 (vec.o: ../common/vec.c): Remove.
5129 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5130 (xml-utils.o: ../common/xml-utils.c): Remove.
5131 (ptid.o: ../common/ptid.c): Remove.
5132 (buffer.o: ../common/buffer.c): Remove.
5133 (format.o: ../common/format.c): Remove.
5134 (filestuff.o: ../common/filestuff.c): Remove.
5135 (agent.o: ../common/agent.c): Remove.
5136 (errors.o: ../common/errors.c): Remove.
5137 (environ.o: ../common/environ.c): Remove.
5138 (common-debug.o: ../common/common-debug.c): Remove.
5139 (cleanups.o: ../common/cleanups.c): Remove.
5140 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5141 (fileio.o: ../common/fileio.c): Remove.
5142 (common-regcache.o: ../common/common-regcache.c): Remove.
5143 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5144 (new-op.o: ../common/new-op.c): Remove.
5145 (btrace-common.o: ../common/btrace-common.c): Remove.
5146
21122961
SM
51472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5148
5149 * Makefile.in (%.o: ../target/%.c): New rule.
5150 (waitstatus.o: ../target/waitstatus.c): Remove.
5151
c362e621
SM
51522017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5153
5154 * Makefile.in
5155 (%.c: ../regformats/%.dat,
5156 (%.c: ../regformats/arm/%.dat,
5157 (%.c: ../regformats/i386/%.dat,
5158 (%.c: ../regformats/rs6000/%.dat): New rules.
5159 (aarch64.c): Remove.
5160 (reg-arm.c): Remove.
5161 (arm-with-iwmmxt.c): Remove.
5162 (arm-with-vfpv2.c): Remove.
5163 (arm-with-vfpv3.c): Remove.
5164 (arm-with-neon.c): Remove.
5165 (reg-bfin.c): Remove.
5166 (reg-cris.c): Remove.
5167 (reg-crisv32.c): Remove.
5168 (i386.c): Remove.
5169 (i386-linux.c): Remove.
5170 (i386-avx.c): Remove.
5171 (i386-avx-linux.c): Remove.
5172 (i386-avx-avx512.c): Remove.
5173 (i386-avx-avx512-linux.c): Remove.
5174 (i386-mpx.c): Remove.
5175 (i386-mpx-linux.c): Remove.
5176 (i386-avx-mpx-avx512-pku.c): Remove.
5177 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5178 (i386-avx-mpx.c): Remove.
5179 (i386-avx-mpx-linux.c): Remove.
5180 (i386-mmx.c): Remove.
5181 (i386-mmx-linux.c): Remove.
5182 (reg-ia64.c): Remove.
5183 (reg-m32r.c): Remove.
5184 (reg-m68k.c): Remove.
5185 (reg-cf.c): Remove.
5186 (mips-linux.c): Remove.
5187 (mips-dsp-linux.c): Remove.
5188 (mips64-linux.c): Remove.
5189 (mips64-dsp-linux.c): Remove.
5190 (nios2-linux.c): Remove.
5191 (powerpc-32.c): Remove.
5192 (powerpc-32l.c): Remove.
5193 (powerpc-altivec32l.c): Remove.
5194 (powerpc-cell32l.c): Remove.
5195 (powerpc-vsx32l.c): Remove.
5196 (powerpc-isa205-32l.c): Remove.
5197 (powerpc-isa205-altivec32l.c): Remove.
5198 (powerpc-isa205-vsx32l.c): Remove.
5199 (powerpc-e500l.c): Remove.
5200 (powerpc-64l.c): Remove.
5201 (powerpc-altivec64l.c): Remove.
5202 (powerpc-cell64l.c): Remove.
5203 (powerpc-vsx64l.c): Remove.
5204 (powerpc-isa205-64l.c): Remove.
5205 (powerpc-isa205-altivec64l.c): Remove.
5206 (powerpc-isa205-vsx64l.c): Remove.
5207 (s390-linux32.c): Remove.
5208 (s390-linux32v1.c): Remove.
5209 (s390-linux32v2.c): Remove.
5210 (s390-linux64.c): Remove.
5211 (s390-linux64v1.c): Remove.
5212 (s390-linux64v2.c): Remove.
5213 (s390-te-linux64.c): Remove.
5214 (s390-vx-linux64.c): Remove.
5215 (s390-tevx-linux64.c): Remove.
5216 (s390x-linux64.c): Remove.
5217 (s390x-linux64v1.c): Remove.
5218 (s390x-linux64v2.c): Remove.
5219 (s390x-te-linux64.c): Remove.
5220 (s390x-vx-linux64.c): Remove.
5221 (s390x-tevx-linux64.c): Remove.
5222 (tic6x-c64xp-linux.c): Remove.
5223 (tic6x-c64x-linux.c): Remove.
5224 (tic6x-c62x-linux.c): Remove.
5225 (reg-sh.c): Remove.
5226 (reg-sparc64.c): Remove.
5227 (reg-spu.c): Remove.
5228 (amd64.c): Remove.
5229 (amd64-linux.c): Remove.
5230 (amd64-avx.c): Remove.
5231 (amd64-avx-linux.c): Remove.
5232 (amd64-avx-avx512.c): Remove.
5233 (amd64-avx-avx512-linux.c): Remove.
5234 (amd64-mpx.c): Remove.
5235 (amd64-mpx-linux.c): Remove.
5236 (amd64-avx-mpx-avx512-pku.c): Remove.
5237 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5238 (amd64-avx-mpx.c): Remove.
5239 (amd64-avx-mpx-linux.c): Remove.
5240 (x32.c): Remove.
5241 (x32-linux.c): Remove.
5242 (x32-avx.c): Remove.
5243 (x32-avx-linux.c): Remove.
5244 (x32-avx-avx512.c): Remove.
5245 (x32-avx-avx512-linux.c): Remove.
5246 (reg-xtensa.c): Remove.
5247 (reg-tilegx.c): Remove.
5248 (reg-tilegx32.c): Remove.
5249
1672e0d9
SDJ
52502017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5251
5252 * Makefile.in (SFILES): Add "common/environ.c".
5253 (OBJS): Add "common/environ.h".
5254
239b6d10
WT
52552017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5256
5257 * configure.ac: Check if the fs_base and gs_base members of
5258 `struct user_regs_struct' exist.
5259 * config.in: Regenerated.
5260 * configure: Likewise.
5261
694b382c
AT
52622017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5263
5264 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5265 target_read_memory.
5266 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5267 (get_next_pcs_syscall_next_pc): Likewise.
5268
7dc53023
LM
52692016-12-23 Luis Machado <lgustavo@codesourcery.com>
5270
5271 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5272 * nto-x86-low.c: Likewise.
5273
ad02e4fe
SM
52742016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5275
5276 * Makefile.in: Include disable-implicit-rules.mk.
5277
dcb07cfa
PA
52782016-11-23 Pedro Alves <palves@redhat.com>
5279
5280 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5281 (debug_vprintf): Use std::chrono::steady_clock instead of
5282 gettimeofday. Use '.' instead of ':'.
5283 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5284 (get_timestamp): Use std::chrono::steady_clock instead of
5285 gettimeofday.
5286
8629c02c
SM
52872016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5288
5289 * Makefile.in: Fix whitespace formatting.
5290
b593ecca
SM
52912016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5292
5293 * Makefile.in (SFILES, OBS): Flatten list and order
5294 alphabetically.
5295
9986ba08
PA
52962016-11-23 Pedro Alves <palves@redhat.com>
5297
5298 * event-loop.c (handle_file_event): Use warning.
5299 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5300 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5301 Use warning.
5302
4eefa7bc
PA
53032016-11-23 Pedro Alves <palves@redhat.com>
5304
5305 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5306 output.
5307 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5308 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5309 debug_printf and debug_flush for debug output.
5310 * server.c (handle_general_set): Likewise.
5311 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5312 output.
5313
5443506e
SM
53142016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5315
5316 * Makefile.in (.c.o): Replace rule with ...
5317 (%.o: %.c): ... this one.
5318
3b165252
SM
53192016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5320
5321 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5322 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5323 make.
5324 * configure.ac: Remove checks for the make program.
5325 * configure: Re-generate.
5326
0bcda685
PA
53272016-10-28 Pedro Alves <palves@redhat.com>
5328
5329 * Makefile.in (CXX_DIALECT): Get from configure.
5330 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5331 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5332 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5333 * config.in: Regenerate.
5334 * configure: Regenerate.
5335
c3805894
YQ
53362016-10-27 Yao Qi <yao.qi@linaro.org>
5337
5338 * linux-low.c (linux_supports_range_stepping): Return true if
5339 can_software_single_step return true.
5340
89342618
YQ
53412016-10-27 Yao Qi <yao.qi@linaro.org>
5342
5343 * inferiors.c (find_inferior_in_random): New function.
5344 * inferiors.h (find_inferior_in_random): Declare.
5345 * linux-low.c (linux_wait_for_event_filtered): Call
5346 find_inferior_in_random instead of find_inferior.
5347
e3652c84
YQ
53482016-10-27 Yao Qi <yao.qi@linaro.org>
5349
5350 * linux-low.c (linux_wait_1): If single-step breakpoints are
5351 inserted, remove them.
5352
5a04c4cf
PA
53532016-10-26 Pedro Alves <palves@redhat.com>
5354
5355 * linux-low.c (handle_extended_wait): Link parent/child fork
5356 threads.
5357 (linux_wait_1): Unlink them.
5358 (linux_set_resume_request): Ignore resume requests for
5359 already-resumed and unhandled fork child threads.
5360 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5361 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5362 New functions.
5363 (handle_v_requests) <vCont>: Don't call require_running.
5364 * server.h (in_queued_stop_replies): New declaration.
5365
cb93dc7f
YQ
53662016-10-24 Yao Qi <yao.qi@linaro.org>
5367
5368 PR server/20733
5369 * linux-aarch64-low.c (append_insns): Cast the return value to
5370 'uint32_t *'.
5371
a1078bea
YQ
53722016-10-10 Yao Qi <yao.qi@linaro.org>
5373
5374 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5375
1fb77080
SDJ
53762016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5377
5378 * target.c (target_supports_multi_process): New function, moved
5379 from...
5380 * target.h (target_supports_multi_process): ... here. Remove
5381 macro.
5382
39b5a3b9
TT
53832016-10-05 Tom Tromey <tom@tromey.com>
5384
5385 PR remote/20655:
5386 * tracepoint.c (handle_tracepoint_bkpts): Check
5387 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5388
c1d0b70a
YQ
53892016-10-05 Yao Qi <yao.qi@linaro.org>
5390
5391 * configure.srv: Update the path of arm-*.xml files.
5392
0a69eedb
YQ
53932016-10-05 Terry Guo <terry.guo@arm.com>
5394 Yao Qi <yao.qi@linaro.org>
5395
5396 * Makefile.in: Adjust the path of rules.
5397 * configure.srv: Update the path of xml files.
5398 * regformats/arm-with-iwmmxt.dat: Regenerated.
5399 * regformats/arm-with-neon.dat: Likewise.
5400 * regformats/arm-with-vfpv2.dat: Likewise.
5401 * regformats/arm-with-vfpv3.dat Likewise.
5402
17e16485
YQ
54032016-09-30 Yao Qi <yao.qi@linaro.org>
5404
5405 PR gdbserver/20627
5406 * target.c (target_stop_and_wait): Don't call
5407 target_continue_no_signal, use resume_stop instead.
5408
edeeb602
YQ
54092016-09-26 Yao Qi <yao.qi@linaro.org>
5410
5411 * linux-low.c (linux_wait_1): Call debug_exit.
5412
503b1c39
PA
54132016-09-23 Pedro Alves <palves@redhat.com>
5414
5415 * Makefile.in (SFILES): Add common/new-op.c.
5416 (OBS): Add common/new-op.o.
5417 (new-op.o): New rule.
5418
74172ecf
SM
54192016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5420
5421 * .gitinore: Ignore more files.
5422
fc6cda2e
YQ
54232016-09-21 Yao Qi <yao.qi@linaro.org>
5424
5425 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5426 23.
5427
bc1e6c81
SDJ
54282016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5429
5430 * server.c (start_inferior): Call target_mourn_inferior instead of
5431 mourn_inferior; pass ptid_t argument to it.
5432 (resume): Likewise.
5433 (handle_target_event): Likewise.
5434 * target.c (target_mourn_inferior): New function.
5435 * target.h (mourn_inferior): Delete macro.
5436
0e00e962
AA
54372016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5438
5439 * linux-low.c (lwp_is_stepping): New function.
5440
1d8cb77d
CL
54412016-09-06 Carl Love <cel@us.ibm.com>
5442
5443 * server.c (start_inferior): Fixed comment, requested comment change
5444 didn't get updated correctly. Removed reference to ptrace () call as
5445 it is only true on Linux systems.
5446
7313bced
CL
54472016-09-06 Carl Love <cel@us.ibm.com>
5448
5449 * server.c (start_inferior): Do not call
5450 function target_post_create_inferior () if the
5451 inferior process has already exited.
5452
cf6de44d
PA
54532016-09-05 Pedro Alves <palves@redhat.com>
5454
5455 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5456 (COMPILE.pre, CC_LD): Use CXX directly.
5457 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5458 * acinclude.m4: Don't include build-with-cxx.m4.
5459 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5460 * configure: Regenerate.
5461
c1da6748
AT
54622016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5463
5464 PR gdb/19495
5465 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5466 call writing data to own_buf.
5467
f2b9e3df
SDJ
54682016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5469
5470 * target.c (mywait): Call target_wait instead of
5471 the_target->wait.
5472 (target_wait): New function.
5473
049a8570
SDJ
54742016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5475
5476 * server.c (start_inferior): New variable 'ptid'. Replace calls
5477 to the_target->resume by target_continue{,_no_signal}, depending
5478 on the case.
5479 * target.c (target_stop_and_wait): Call target_continue_no_signal
5480 instead of the_target->resume.
5481 (target_continue): New function.
5482
3aa5cfa0
AT
54832016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5484
5485 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5486
754653a7
AZ
54872016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5488
5489 PR server/20491
5490 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5491 ps_prochandle.
5492 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5493 * linux-arm-low.c (ps_get_thread_area): Likewise.
5494 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5495 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5496 * linux-mips-low.c (ps_get_thread_area): Likewise.
5497 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5498 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5499 * linux-x86-low.c (ps_get_thread_area): Likewise.
5500 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5501
ed036b40
PA
55022016-08-19 Pedro Alves <palves@redhat.com>
5503
5504 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5505
c8ef42ee
PA
55062016-08-19 Pedro Alves <palves@redhat.com>
5507
5508 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5509 comment. Use memcpy instead of casting through unsigned long.
5510
9c235a72
PA
55112016-08-19 Pedro Alves <palves@redhat.com>
5512
5513 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5514 allocating around 0x80000000.
5515
201506da
PA
55162016-08-19 Pedro Alves <palves@redhat.com>
5517
5518 PR gdb/20415
5519 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5520 (x32-avx512-linux-ipa.o): New rules.
5521 * configure.ac (x86_64-*-linux*): New x32 check.
5522 * configure.srv (ipa_x32_linux_regobj): New.
5523 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5524 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5525 descriptions.
5526 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5527 descriptions.
5528 * configure: Regenerate.
5529
f348d89a
PA
55302016-08-09 Pedro Alves <palves@redhat.com>
5531
5532 PR gdb/18653
5533 * Makefile.in (OBS): Add signals-state-save-restore.o.
5534 (signals-state-save-restore.o): New rule.
5535 * config.in: Regenerate.
5536 * configure: Regenerate.
5537 * linux-low.c: Include "signals-state-save-restore.h".
5538 (linux_create_inferior): Call
5539 restore_original_signals_state.
5540 * server.c: Include "dispositions-save-restore.h".
5541 (captured_main): Call save_original_signals_state.
5542
1baf5149
PA
55432016-08-05 Pedro Alves <palves@redhat.com>
5544
5545 * configure: Regenerate.
5546
fcd4a73d
YQ
55472016-08-04 Yao Qi <yao.qi@linaro.org>
5548
5549 * linux-low.c (regsets_fetch_inferior_registers): Check
5550 errno is ESRCH or not.
5551
979659d0
YQ
55522016-08-02 Yao Qi <yao.qi@linaro.org>
5553
5554 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5555 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5556 (thread_db_load_search): Update.
5557 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5558 td_ta_set_event and td_ta_event_getmsg.
5559
6598661d
PA
55602016-07-26 Pedro Alves <palves@redhat.com>
5561
5562 PR server/20414
5563 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5564 of unsigned long for 64-bit registers and use uint32_t instead of
5565 unsigned int for 32-bit registers.
5566
9cf12d57
PA
55672016-07-26 Pedro Alves <palves@redhat.com>
5568
5569 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5570 to 'ptrace'.
5571
305450ed
TT
55722016-07-21 Tom Tromey <tom@tromey.com>
5573
5574 * configure: Rebuild.
5575
2583da7c
YQ
55762016-07-21 Yao Qi <yao.qi@linaro.org>
5577
5578 * mem-break.c (find_gdb_breakpoint): Cast bp to
5579 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5580
21536b36
YQ
55812016-07-21 Yao Qi <yao.qi@linaro.org>
5582
5583 * server.c (handle_v_requests): Support s and S actions
5584 if target_supports_software_single_step return true.
5585
8901d193
YQ
55862016-07-21 Yao Qi <yao.qi@linaro.org>
5587
5588 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5589 is resume_step, call maybe_hw_step.
5590 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5591 and unstop them.
5592 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5593 breakpoints or not.
5594 (proceed_one_lwp): If resume request is resume_step, install
5595 reinsert breakpoints and call maybe_hw_step.
5596
0e9a339e
YQ
55972016-07-21 Yao Qi <yao.qi@linaro.org>
5598
5599 * linux-low.c (proceed_one_lwp): Declare.
5600 (linux_resume_one_thread): Remove local variable 'step'.
5601 Lift code enqueue signal. Call proceed_one_lwp instead of
5602 linux_resume_one_lwp.
5603
4281b351
YQ
56042016-07-21 Yao Qi <yao.qi@linaro.org>
5605
5606 * linux-low.c (linux_resume_one_thread): Call
5607 enqueue_pending_signal.
5608
984a2c04
YQ
56092016-07-21 Yao Qi <yao.qi@linaro.org>
5610
5611 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5612 * inferiors.c (do_restore_current_thread_cleanup): New function.
5613 (make_cleanup_restore_current_thread): Likewise.
5614 * linux-low.c (install_software_single_step_breakpoints): Call
5615 make_cleanup_restore_current_thread. Switch current_thread to
5616 thread.
5617
bec903c9
YQ
56182016-07-21 Yao Qi <yao.qi@linaro.org>
5619
5620 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5621 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5622 (clone_one_breakpoint): Likewise.
5623 (delete_reinsert_breakpoints): Change parameter to thread.
5624 Callers updated.
5625 (has_reinsert_breakpoints): Likewise.
5626 (uninsert_reinsert_breakpoints): Likewise.
5627 (reinsert_reinsert_breakpoints): Likewise.
5628 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5629 (delete_reinsert_breakpoints): Likewise.
5630 (reinsert_reinsert_breakpoints): Likewise.
5631 (uninsert_reinsert_breakpoints): Likewise.
5632 (has_reinsert_breakpoints): Likewise.
5633
63c40ec7
YQ
56342016-07-21 Yao Qi <yao.qi@linaro.org>
5635
5636 * inferiors.c (get_thread_process): Make parameter const.
5637 * inferiors.h (get_thread_process): Update declaration.
5638 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5639 Add new parameters child_thread and parent_thread. Callers
5640 updated.
5641 * mem-break.h (clone_all_breakpoints): Update declaration.
5642
9aa76cd0
YQ
56432016-07-21 Yao Qi <yao.qi@linaro.org>
5644
5645 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5646 <command_list, handler>: Remove.
5647 (struct gdb_breakpoint): New.
5648 (struct other_breakpoint): New.
5649 (struct reinsert_breakpoint): New.
5650 (is_gdb_breakpoint): New function.
5651 (any_persistent_commands): Update command_list if
5652 is_gdb_breakpoint returns true.
5653 (set_breakpoint): Create breakpoints according to their types.
5654 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5655 (set_gdb_breakpoint_1): Likewise.
5656 (set_gdb_breakpoint): Likewise.
5657 (clear_breakpoint_conditions): Change parameter type to
5658 'struct gdb_breakpoint *'.
5659 (clear_breakpoint_commands): Likewise.
5660 (clear_breakpoint_conditions_and_commands): Likewise.
5661 (add_condition_to_breakpoint): Likewise.
5662 (add_breakpoint_condition): Likewise.
5663 (add_commands_to_breakpoint): Likewise.
5664 (check_breakpoints): Check other_breakpoint.
5665 (clone_one_breakpoint): Clone breakpopint according to its type.
5666 * mem-break.h (struct gdb_breakpoint): Declare.
5667 (set_gdb_breakpoint): Update declaration.
5668 (clear_breakpoint_conditions_and_commands): Likewise.
5669 (add_breakpoint_condition): Likewise.
5670 (add_breakpoint_commands): Likewise.
5671 * server.c (process_point_options): Change parameter type to
5672 'struct gdb_breakpoint *'.
5673
811f8301
YQ
56742016-07-21 Yao Qi <yao.qi@linaro.org>
5675
5676 * mem-break.c (set_breakpoint_at): Rename it to ...
5677 (set_breakpoint_type_at): ... it.
5678 (set_breakpoint_at): Call set_breakpoint_type_at.
5679 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5680 * mem-break.h (set_breakpoint_at): Update comments.
5681
b1c51e36
CLT
56822016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5683
5684 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5685 to buf parameter.
5686 (nios2_store_gregset): Likewise.
5687
ced2dffb
PA
56882016-07-01 Pedro Alves <palves@redhat.com>
5689 Antoine Tremblay <antoine.tremblay@ericsson.com>
5690
5691 * linux-low.c: Change interface to take the target lwp_info
5692 pointer directly and return void. Handle detaching from a zombie
5693 thread.
5694 (linux_detach_lwp_callback): New function.
5695 (linux_detach): Detach from the leader thread after detaching from
5696 the clone threads.
5697
2ac09a5b
YQ
56982016-06-28 Yao Qi <yao.qi@linaro.org>
5699
5700 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5701 for variable new_offset.
5702 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5703 (aarch64_ftrace_insn_reloc_cb): Likewise.
5704 (aarch64_ftrace_insn_reloc_tb): Likewise.
5705 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5706 PRIx64 instead of PRIx32.
5707
79e7fd4f
YQ
57082016-06-28 Yao Qi <yao.qi@linaro.org>
5709
5710 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5711 (the_low_target): Install arm_get_syscall_trapinfo.
5712
061fc021
YQ
57132016-06-28 Yao Qi <yao.qi@linaro.org>
5714
5715 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5716 function.
5717 (the_low_target): Install aarch64_get_syscall_trapinfo.
5718
4cc32bec
YQ
57192016-06-28 Yao Qi <yao.qi@linaro.org>
5720
5721 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5722 Callers updated.
5723 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5724 Remove parameter sysno.
5725 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5726 sysret.
5727
782c1122
AA
57282016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5729
5730 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5731 (s390_emit_ne_goto): Likewise.
5732 (s390_emit_lt_goto): Likewise.
5733 (s390_emit_le_goto): Likewise.
5734 (s390_emit_gt_goto): Likewise.
5735 (s390_emit_ge_goto): Likewise.
5736 (s390x_emit_eq_goto): Likewise.
5737 (s390x_emit_ne_goto): Likewise.
5738 (s390x_emit_lt_goto): Likewise.
5739 (s390x_emit_le_goto): Likewise.
5740 (s390x_emit_gt_goto): Likewise.
5741 (s390x_emit_ge_goto): Likewise.
5742 (s390_emit_ops_impl): Mark variable static.
5743 (s390x_emit_ops): Likewise.
5744
2e7b624b
YQ
57452016-06-17 Yao Qi <yao.qi@linaro.org>
5746
5747 * linux-low.c (handle_extended_wait): Call
5748 uninsert_reinsert_breakpoints for the parent process. Remove
5749 reinsert breakpoints from the child process. Reinsert them to
5750 the parent process when vfork is done.
5751 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5752 (reinsert_reinsert_breakpoints): New function.
5753 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5754 (reinsert_reinsert_breakpoints): Declare.
5755
8a81c5d7
YQ
57562016-06-17 Yao Qi <yao.qi@linaro.org>
5757
5758 * linux-low.c (handle_extended_wait): If the parent is doing
5759 step-over, remove the reinsert breakpoints from the forked child.
5760
f50bf8e5
YQ
57612016-06-17 Yao Qi <yao.qi@linaro.org>
5762
5763 * linux-low.c (unsuspend_all_lwps): Declare.
5764 (linux_low_filter_event): If thread exited, call finish_step_over.
5765 If step-over is finished, unsuspend other threads.
5766
8376a3cb
YQ
57672016-06-17 Yao Qi <yao.qi@linaro.org>
5768
5769 * linux-low.c (linux_resume_one_lwp_throw): Assert
5770 has_reinsert_breakpoints returns false.
5771 * mem-break.c (delete_disabled_breakpoints): Assert
5772 bp type isn't reinsert_breakpoint.
5773
f79b145d
YQ
57742016-06-17 Yao Qi <yao.qi@linaro.org>
5775
5776 * linux-low.c (maybe_hw_step): New function.
5777 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5778 (finish_step_over): Switch current_thread to lwp temporarily,
5779 and assert has_reinsert_breakpoints returns true.
5780 (proceed_one_lwp): Call maybe_hw_step.
5781 * mem-break.c (has_reinsert_breakpoints): New function.
5782 * mem-break.h (has_reinsert_breakpoints): Declare.
5783
0ae534d2
JT
57842016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5785
5786 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5787
fcdad592
YQ
57882016-05-17 Yao Qi <yao.qi@linaro.org>
5789
5790 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5791 instead of find_inferior.
5792
9e784964
YQ
57932016-05-05 Yao Qi <yao.qi@linaro.org>
5794
5795 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5796 Initialize res to zero.
5797
cf2ebb6e
YQ
57982016-05-05 Yao Qi <yao.qi@linaro.org>
5799
5800 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5801 to uint32_t.
5802
c1aebf87
UW
58032016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5804
5805 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5806 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5807 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5808
35fd2deb 58092016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 5810 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
5811
5812 * tracepoint.c (write_inferior_int8): New function.
5813 (cmd_qtenable_disable): Write enable flag using
5814 write_inferior_int8.
5815
484b3c32
YQ
58162016-04-25 Yao Qi <yao.qi@linaro.org>
5817
5818 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5819 (need_step_over_p): Return zero if the LWP has pending signals
5820 can be delivered on software single step target.
5821
85ba7d86
YQ
58222016-04-25 Yao Qi <yao.qi@linaro.org>
5823
5824 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5825 return instead of error.
5826
3539aa13
YQ
58272016-04-22 Yao Qi <yao.qi@linaro.org>
5828
5829 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5830 to 23.
5831
5b061e98
YQ
58322016-04-22 Yao Qi <yao.qi@linaro.org>
5833
5834 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5835 signal when stepping over breakpoint with software single
5836 step.
5837
3451269c
PA
58382016-04-21 Pedro Alves <palves@redhat.com>
5839
5840 * linux-s390-low.c (s390_collect_ptrace_register)
5841 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5842 add casts.
5843 (s390_check_regset): Use void * instead of gdb_byte *.
5844
a2358508
PA
58452016-04-20 Pedro Alves <palves@redhat.com>
5846
5847 * configure: Renegerate.
5848
6885166d
YQ
58492016-04-20 Yao Qi <yao.qi@linaro.org>
5850
5851 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5852 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5853 number 16.
5854 (arm_store_gregset): Likewise.
5855
2b863f51
WT
58562016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5857
5858 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5859 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5860 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5861 (amd64-avx-mpx-linux.c): New rules.
5862 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5863 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5864 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5865 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5866 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5867 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5868 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5869 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5870 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5871 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5872 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5873 * linux-x86-low.c (x86_linux_read_description): Add case for
5874 X86_XSTATE_AVX_MPX_MASK.
5875 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5876 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5877 init_registers_i386_avx_mpx_linux.
5878 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5879 (initialize_low_tracepoint): Call
5880 init_registers_i386_avx_mpx_linux.
5881 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5882 (initialize_low_tracepoint): Call
5883 init_registers_amd64_avx_mpx_linux.
5884 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5885 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5886 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5887 declarations.
5888
9b30624b
PA
58892016-04-18 Pedro Alves <palves@redhat.com>
5890
5891 * configure: Regenerate.
5892
45e3745e
AT
58932016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5894
5895 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5896 (aarch64_emit_sub): Likewise.
5897
2afc13ff
PA
58982016-04-12 Pedro Alves <palves@redhat.com>
5899
5900 * utils.c (prepare_to_throw_exception): Delete.
5901
6e774b13
SM
59022016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5903
5904 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5905
4dca19f8
MK
59062016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5907
5908 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5909
d0a9981f
MK
59102016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5911
5912 * linux-aarch64-ipa.c: Add <elf.h> include.
5913 * linux-ppc-ipa.c: Add <elf.h> include.
5914 * linux-s390-ipa.c: Add <elf.h> include.
5915
252db07e
MK
59162016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5917
5918 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5919 (get_raw_reg_ptr): Likewise.
5920 (get_trace_state_variable_value_ptr): Likewise.
5921 (set_trace_state_variable_value_ptr): Likewise.
5922 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5923 char *.
5924
14e2b6d9
MK
59252016-03-31 Wei-cheng Wang <cole945@gmail.com>
5926 Marcin Kościelnicki <koriakin@0x04.net>
5927
5928 PR/17221
5929 * linux-ppc-low.c (emit_insns): New function.
5930 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5931 (ppc_emit_prologue): New function.
5932 (ppc_emit_epilogue): New function.
5933 (ppc_emit_add): New function.
5934 (ppc_emit_sub): New function.
5935 (ppc_emit_mul): New function.
5936 (ppc_emit_lsh): New function.
5937 (ppc_emit_rsh_signed): New function.
5938 (ppc_emit_rsh_unsigned): New function.
5939 (ppc_emit_ext): New function.
5940 (ppc_emit_zero_ext): New function.
5941 (ppc_emit_log_not): New function.
5942 (ppc_emit_bit_and): New function.
5943 (ppc_emit_bit_or): New function.
5944 (ppc_emit_bit_xor): New function.
5945 (ppc_emit_bit_not): New function.
5946 (ppc_emit_equal): New function.
5947 (ppc_emit_less_signed): New function.
5948 (ppc_emit_less_unsigned): New function.
5949 (ppc_emit_ref): New function.
5950 (ppc_emit_const): New function.
5951 (ppc_emit_reg): New function.
5952 (ppc_emit_pop): New function.
5953 (ppc_emit_stack_flush): New function.
5954 (ppc_emit_swap): New function.
5955 (ppc_emit_stack_adjust): New function.
5956 (ppc_emit_call): New function.
5957 (ppc_emit_int_call_1): New function.
5958 (ppc_emit_void_call_2): New function.
5959 (ppc_emit_if_goto): New function.
5960 (ppc_emit_goto): New function.
5961 (ppc_emit_eq_goto): New function.
5962 (ppc_emit_ne_goto): New function.
5963 (ppc_emit_lt_goto): New function.
5964 (ppc_emit_le_goto): New function.
5965 (ppc_emit_gt_goto): New function.
5966 (ppc_emit_ge_goto): New function.
5967 (ppc_write_goto_address): New function.
5968 (ppc_emit_ops_impl): New static variable.
5969 (ppc64v1_emit_prologue): New function.
5970 (ppc64v2_emit_prologue): New function.
5971 (ppc64_emit_epilogue): New function.
5972 (ppc64_emit_add): New function.
5973 (ppc64_emit_sub): New function.
5974 (ppc64_emit_mul): New function.
5975 (ppc64_emit_lsh): New function.
5976 (ppc64_emit_rsh_signed): New function.
5977 (ppc64_emit_rsh_unsigned): New function.
5978 (ppc64_emit_ext): New function.
5979 (ppc64_emit_zero_ext): New function.
5980 (ppc64_emit_log_not): New function.
5981 (ppc64_emit_bit_and): New function.
5982 (ppc64_emit_bit_or): New function.
5983 (ppc64_emit_bit_xor): New function.
5984 (ppc64_emit_bit_not): New function.
5985 (ppc64_emit_equal): New function.
5986 (ppc64_emit_less_signed): New function.
5987 (ppc64_emit_less_unsigned): New function.
5988 (ppc64_emit_ref): New function.
5989 (ppc64_emit_const): New function.
5990 (ppc64v1_emit_reg): New function.
5991 (ppc64v2_emit_reg): New function.
5992 (ppc64_emit_pop): New function.
5993 (ppc64_emit_stack_flush): New function.
5994 (ppc64_emit_swap): New function.
5995 (ppc64v1_emit_call): New function.
5996 (ppc64v2_emit_call): New function.
5997 (ppc64v1_emit_int_call_1): New function.
5998 (ppc64v2_emit_int_call_1): New function.
5999 (ppc64v1_emit_void_call_2): New function.
6000 (ppc64v2_emit_void_call_2): New function.
6001 (ppc64_emit_if_goto): New function.
6002 (ppc64_emit_eq_goto): New function.
6003 (ppc64_emit_ne_goto): New function.
6004 (ppc64_emit_lt_goto): New function.
6005 (ppc64_emit_le_goto): New function.
6006 (ppc64_emit_gt_goto): New function.
6007 (ppc64_emit_ge_goto): New function.
6008 (ppc64v1_emit_ops_impl): New static variable.
6009 (ppc64v2_emit_ops_impl): New static variable.
6010 (ppc_emit_ops): New function.
6011 (linux_low_target): Wire in ppc_emit_ops.
6012
a2174ba4
MK
60132016-03-31 Wei-cheng Wang <cole945@gmail.com>
6014 Marcin Kościelnicki <koriakin@0x04.net>
6015
6016 PR/17221
6017 * Makefile.in: Add powerpc-*-ipa.o
6018 * configure.srv: Add ipa_obj for powerpc*-linux.
6019 * linux-ppc-ipa.c: New file.
6020 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6021 includes.
6022 (PPC_FIELD): New macro.
6023 (PPC_SEXT): New macro.
6024 (PPC_OP6): New macro.
6025 (PPC_BO): New macro.
6026 (PPC_LI): New macro.
6027 (PPC_BD): New macro.
6028 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6029 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6030 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6031 (ppc_get_thread_area): New function.
6032 (is_elfv2_inferior): New function.
6033 (gen_ds_form): New function.
6034 (GEN_STD): New macro.
6035 (GEN_STDU): New macro.
6036 (GEN_LD): New macro.
6037 (GEN_LDU): New macro.
6038 (gen_d_form): New function.
6039 (GEN_ADDI): New macro.
6040 (GEN_ADDIS): New macro.
6041 (GEN_LI): New macro.
6042 (GEN_LIS): New macro.
6043 (GEN_ORI): New macro.
6044 (GEN_ORIS): New macro.
6045 (GEN_LWZ): New macro.
6046 (GEN_STW): New macro.
6047 (GEN_STWU): New macro.
6048 (gen_xfx_form): New function.
6049 (GEN_MFSPR): New macro.
6050 (GEN_MTSPR): New macro.
6051 (GEN_MFCR): New macro.
6052 (GEN_MTCR): New macro.
6053 (GEN_SYNC): New macro.
6054 (GEN_LWSYNC): New macro.
6055 (gen_x_form): New function.
6056 (GEN_OR): New macro.
6057 (GEN_MR): New macro.
6058 (GEN_LWARX): New macro.
6059 (GEN_STWCX): New macro.
6060 (GEN_CMPW): New macro.
6061 (gen_md_form): New function.
6062 (GEN_RLDICL): New macro.
6063 (GEN_RLDICR): New macro.
6064 (gen_i_form): New function.
6065 (GEN_B): New macro.
6066 (GEN_BL): New macro.
6067 (gen_b_form): New function.
6068 (GEN_BNE): New macro.
6069 (GEN_LOAD): New macro.
6070 (GEN_STORE): New macro.
6071 (gen_limm): New function.
6072 (gen_atomic_xchg): New function.
6073 (gen_call): New function.
6074 (ppc_relocate_instruction): New function.
6075 (ppc_install_fast_tracepoint_jump_pad): New function.
6076 (ppc_get_min_fast_tracepoint_insn_len): New function.
6077 (ppc_get_ipa_tdesc_idx): New function.
6078 (the_low_target): Wire in the new functions.
6079 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6080 tdescs.
6081 * linux-ppc-tdesc.h: New file.
6082
a13c4696
MK
60832016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6084
6085 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6086 (alloc_jump_pad_buffer): New function.
6087 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6088 (alloc_jump_pad_buffer): New function.
6089 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6090 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6091 (alloc_jump_pad_buffer): New function.
6092 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6093 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6094 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6095 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6096
1cda1512
MK
60972016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6098
6099 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6100 * linux-amd64-ipa.c: Likewise.
6101 * linux-i386-ipa.c: Likewise.
6102 * linux-s390-ipa.c: Likewise.
6103 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6104 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6105 set_trace_state_variable_value_ptr.
6106 (struct ipa_sym_addresses): Likewise.
6107 (symbol_list): Likewise.
6108 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6109 accessing gdb_collect directly.
6110 (gdb_collect_ptr_type): New typedef.
6111 (get_raw_reg_ptr_type): New typedef.
6112 (get_trace_state_variable_value_ptr_type): New typedef.
6113 (set_trace_state_variable_value_ptr_type): New typedef.
6114 (gdb_collect_ptr): New global.
6115 (get_raw_reg_ptr): New global.
6116 (get_trace_state_variable_value_ptr): New global.
6117 (set_trace_state_variable_value_ptr): New global.
6118 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6119 accessing get_raw_reg directly.
6120 (get_get_tsv_func_addr): Likewise for
6121 get_trace_state_variable_value_ptr.
6122 (get_set_tsv_func_addr): Likewise for
6123 set_trace_state_variable_value_ptr.
6124 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6125
72fb5488
SM
61262016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6127
6128 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6129
28170b88
MK
61302016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6131
6132 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6133 packets.
6134 (relocate_instruction): Remove own_buf.
6135 * server.c (own_buf): Make global.
6136 (handle_v_requests): Make global.
6137 * server.h (own_buf): New declaration.
6138 (handle_v_requests): New prototype.
6139
f39e8743
MK
61402016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6141
6142 PR 18377
6143 * linux-s390-low.c (add_insns): New function.
6144 (s390_emit_prologue): New function.
6145 (s390_emit_epilogue): New function.
6146 (s390_emit_add): New function.
6147 (s390_emit_sub): New function.
6148 (s390_emit_mul): New function.
6149 (s390_emit_lsh): New function.
6150 (s390_emit_rsh_signed): New function.
6151 (s390_emit_rsh_unsigned): New function.
6152 (s390_emit_ext): New function.
6153 (s390_emit_log_not): New function.
6154 (s390_emit_bit_and): New function.
6155 (s390_emit_bit_or): New function.
6156 (s390_emit_bit_xor): New function.
6157 (s390_emit_bit_not): New function.
6158 (s390_emit_equal): New function.
6159 (s390_emit_less_signed): New function.
6160 (s390_emit_less_unsigned): New function.
6161 (s390_emit_ref): New function.
6162 (s390_emit_if_goto): New function.
6163 (s390_emit_goto): New function.
6164 (s390_write_goto_address): New function.
6165 (s390_emit_litpool): New function.
6166 (s390_emit_const): New function.
6167 (s390_emit_call): New function.
6168 (s390_emit_reg): New function.
6169 (s390_emit_pop): New function.
6170 (s390_emit_stack_flush): New function.
6171 (s390_emit_zero_ext): New function.
6172 (s390_emit_swap): New function.
6173 (s390_emit_stack_adjust): New function.
6174 (s390_emit_set_r2): New function.
6175 (s390_emit_int_call_1): New function.
6176 (s390_emit_void_call_2): New function.
6177 (s390_emit_eq_goto): New function.
6178 (s390_emit_ne_goto): New function.
6179 (s390_emit_lt_goto): New function.
6180 (s390_emit_le_goto): New function.
6181 (s390_emit_gt_goto): New function.
6182 (s390_emit_ge_goto): New function.
6183 (s390x_emit_prologue): New function.
6184 (s390x_emit_epilogue): New function.
6185 (s390x_emit_add): New function.
6186 (s390x_emit_sub): New function.
6187 (s390x_emit_mul): New function.
6188 (s390x_emit_lsh): New function.
6189 (s390x_emit_rsh_signed): New function.
6190 (s390x_emit_rsh_unsigned): New function.
6191 (s390x_emit_ext): New function.
6192 (s390x_emit_log_not): New function.
6193 (s390x_emit_bit_and): New function.
6194 (s390x_emit_bit_or): New function.
6195 (s390x_emit_bit_xor): New function.
6196 (s390x_emit_bit_not): New function.
6197 (s390x_emit_equal): New function.
6198 (s390x_emit_less_signed): New function.
6199 (s390x_emit_less_unsigned): New function.
6200 (s390x_emit_ref): New function.
6201 (s390x_emit_if_goto): New function.
6202 (s390x_emit_const): New function.
6203 (s390x_emit_call): New function.
6204 (s390x_emit_reg): New function.
6205 (s390x_emit_pop): New function.
6206 (s390x_emit_stack_flush): New function.
6207 (s390x_emit_zero_ext): New function.
6208 (s390x_emit_swap): New function.
6209 (s390x_emit_stack_adjust): New function.
6210 (s390x_emit_int_call_1): New function.
6211 (s390x_emit_void_call_2): New function.
6212 (s390x_emit_eq_goto): New function.
6213 (s390x_emit_ne_goto): New function.
6214 (s390x_emit_lt_goto): New function.
6215 (s390x_emit_le_goto): New function.
6216 (s390x_emit_gt_goto): New function.
6217 (s390x_emit_ge_goto): New function.
6218 (s390_emit_ops): New function.
6219 (struct linux_target_ops): Fill in emit_ops hook.
6220
abd9baf9
MK
62212016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6222
6223 PR 18377
6224 * Makefile.in: Add s390 IPA files.
6225 * configure.srv: Build IPA for s390.
6226 * linux-s390-ipa.c: New file.
6227 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6228 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6229 (tdesc_s390_linux32): Likewise.
6230 (init_registers_s390_linux32v1): Likewise.
6231 (tdesc_s390_linux32v1): Likewise.
6232 (init_registers_s390_linux32v2): Likewise.
6233 (tdesc_s390_linux32v2): Likewise.
6234 (init_registers_s390_linux64): Likewise.
6235 (tdesc_s390_linux64): Likewise.
6236 (init_registers_s390_linux64v1): Likewise.
6237 (tdesc_s390_linux64v1): Likewise.
6238 (init_registers_s390_linux64v2): Likewise.
6239 (tdesc_s390_linux64v2): Likewise.
6240 (init_registers_s390_te_linux64): Likewise.
6241 (tdesc_s390_te_linux64): Likewise.
6242 (init_registers_s390_vx_linux64): Likewise.
6243 (tdesc_s390_vx_linux64): Likewise.
6244 (init_registers_s390_tevx_linux64): Likewise.
6245 (tdesc_s390_tevx_linux64): Likewise.
6246 (init_registers_s390x_linux64): Likewise.
6247 (tdesc_s390x_linux64): Likewise.
6248 (init_registers_s390x_linux64v1): Likewise.
6249 (tdesc_s390x_linux64v1): Likewise.
6250 (init_registers_s390x_linux64v2): Likewise.
6251 (tdesc_s390x_linux64v2): Likewise.
6252 (init_registers_s390x_te_linux64): Likewise.
6253 (tdesc_s390x_te_linux64): Likewise.
6254 (init_registers_s390x_vx_linux64): Likewise.
6255 (tdesc_s390x_vx_linux64): Likewise.
6256 (init_registers_s390x_tevx_linux64): Likewise.
6257 (tdesc_s390x_tevx_linux64): Likewise.
6258 (have_hwcap_s390_vx): New static variable.
6259 (s390_arch_setup): Fill have_hwcap_s390_vx.
6260 (s390_get_thread_area): New function.
6261 (s390_ft_entry_gpr_esa): New const.
6262 (s390_ft_entry_gpr_zarch): New const.
6263 (s390_ft_entry_misc): New const.
6264 (s390_ft_entry_fr): New const.
6265 (s390_ft_entry_vr): New const.
6266 (s390_ft_main_31): New const.
6267 (s390_ft_main_64): New const.
6268 (s390_ft_exit_fr): New const.
6269 (s390_ft_exit_vr): New const.
6270 (s390_ft_exit_misc): New const.
6271 (s390_ft_exit_gpr_esa): New const.
6272 (s390_ft_exit_gpr_zarch): New const.
6273 (append_insns): New function.
6274 (s390_relocate_instruction): New function.
6275 (s390_install_fast_tracepoint_jump_pad): New function.
6276 (s390_get_min_fast_tracepoint_insn_len): New function.
6277 (s390_get_ipa_tdesc_idx): New function.
6278 (struct linux_target_ops): Wire in the above functions.
6279 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6280 * linux-s390-tdesc.h: New file.
6281
a4105d04
MK
62822016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6283
6284 * linux-s390-low.c (s390_supports_tracepoints): New function.
6285 (struct linux_target_ops): Fill supports_tracepoints hook.
6286
35ac8b3e
YQ
62872016-03-18 Yao Qi <yao.qi@linaro.org>
6288
6289 * linux-low.c (lwp_signal_can_be_delivered): New function.
6290 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6291
94610ec4
YQ
62922016-03-18 Yao Qi <yao.qi@linaro.org>
6293
6294 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6295 0 if signal is enqueued. Remove 'signal' from one debugging
6296 message. Move one debugging message to some lines below.
6297 Remove code setting 'signal' to 0.
6298
80aea927
YQ
62992016-03-18 Yao Qi <yao.qi@linaro.org>
6300
6301 * linux-low.c (linux_low_filter_event): Remove redundant
6302 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6303
b04fd3be
MK
63042016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6305
6306 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6307 (struct linux_target_ops): Wire in the above.
6308
c40c8d4b
YQ
63092016-03-03 Yao Qi <yao.qi@linaro.org>
6310
6311 * linux-low.c: Update comments to start_step_over.
6312
0f8288ae
YQ
63132016-03-03 Yao Qi <yao.qi@linaro.org>
6314
6315 PR server/19736
6316 * linux-low.c (handle_extended_wait): Set child suspended
6317 if event_lwp->bp_reinsert isn't zero.
6318
fdbd04a8
YQ
63192016-03-02 Yao Qi <yao.qi@linaro.org>
6320
6321 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6322 enqueue_pending_signal.
6323
6896a8fa
MK
63242016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6325
6326 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6327 is actually loaded.
6328
ab503087
MK
63292016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6330
6331 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6332 (s390_regmap_3264) [!__s390x__]: New global.
6333 (s390_collect_ptrace_register): Skip map entries containing -1.
6334 (s390_supply_ptrace_register): Ditto.
6335 (s390_fill_gprs_high): New function.
6336 (s390_store_gprs_high): New function.
6337 (s390_regsets): Add NT_S390_HIGH_GPRS.
6338 (s390_get_hwcap): Enable on 31-bit.
6339 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6340 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6341 Detect NT_S390_HIGH_GPRS.
6342 (s390_usrregs_info_3264): Enable on 31-bit.
6343 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6344 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6345
ae91f625
MK
63462016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6347
6348 PR gdb/13808
6349 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6350 * configure.srv: Ditto.
6351 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6352 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6353 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6354 (init_registers_amd64_linux): Remove prototype.
6355 (tdesc_amd64_linux): Remove declaration.
6356 (get_ipa_tdesc): New function.
6357 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6358 initialize remaining tdescs.
6359 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6360 (init_registers_i386_linux): Remove prototype.
6361 (tdesc_i386_linux): Remove declaration.
6362 (get_ipa_tdesc): New function.
6363 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6364 initialize remaining tdescs.
6365 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6366 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6367 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6368 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6369 (x86_get_ipa_tdesc_idx): New function.
6370 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6371 * linux-x86-tdesc.h: New file.
6372 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6373 (target_get_ipa_tdesc_idx): New macro.
6374 * tracepoint.c (ipa_tdesc_idx): New macro.
6375 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6376 (symbol_list): Add ipa_tdesc_idx.
6377 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6378 (ipa_tdesc): Remove.
6379 (ipa_tdesc_idx): New variable.
6380 (get_context_regcache): Use get_ipa_tdesc.
6381 (gdb_collect): Ditto.
6382 (gdb_probe): Ditto.
6383 * tracepoint.h (get_ipa_tdesc): New prototype.
6384 (ipa_tdesc): Remove.
6385
e7ad2f14
PA
63862016-02-24 Pedro Alves <palves@redhat.com>
6387
6388 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6389 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6390 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6391 Factor out common code between the USE_SIGTRAP_SIGINFO and
6392 !USE_SIGTRAP_SIGINFO blocks.
6393 (linux_low_filter_event): Call save_stop_reason instead of
6394 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6395 Update comments.
6396 (linux_wait_1): Update comments.
6397
657f9cde
WW
63982016-02-24 Wei-cheng Wang <cole945@gmail.com>
6399
6400 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6401 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6402 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6403 ppc_insert_point, ppc_remove_point.
6404
b00b61e1
MK
64052016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6406
6407 * linux-s390-low.c (s390_supports_z_point_type): New function.
6408 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6409
553cb527
YQ
64102016-02-16 Yao Qi <yao.qi@linaro.org>
6411
6412 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6413 PC. Get pc from regcache_read_pc.
6414
a5652c21
YQ
64152016-02-12 Yao Qi <yao.qi@linaro.org>
6416
6417 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6418 or linux_get_pc_32bit.
6419 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6420
ed443b61
YQ
64212016-02-12 Yao Qi <yao.qi@linaro.org>
6422
6423 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6424 arm_linux_get_next_pcs_fixup.
6425
020ecd38
MK
64262016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6427
6428 * tracepoint.c (x_tracepoint_action_download): Change
6429 write_inferior_data_ptr to write_inferior_data_pointer.
6430 (cmd_qtstart): Likewise.
6431 (write_inferior_data_ptr): Remove.
6432 (download_agent_expr): Change write_inferior_data_ptr to
6433 write_inferior_data_pointer.
6434 (download_tracepoint_1): Likewise.
6435 (download_tracepoint): Likewise.
6436 (download_trace_state_variables): Likewise.
6437
7cae9051
WW
64382016-02-11 Wei-cheng Wang <cole945@gmail.com>
6439 Marcin Kościelnicki <koriakin@0x04.net>
6440
6441 * tracepoint.c (struct tracepoint_action_ops): Remove.
6442 (struct tracepoint_action): Remove ops.
6443 (m_tracepoint_action_download, r_tracepoint_action_download)
6444 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6445 size and offset accordingly.
6446 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6447 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6448 (tracepoint_action_send, tracepoint_action_download): New functions.
6449 Helpers for trace action handlers.
6450 (add_tracepoint_action): Remove setup actions ops.
6451 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6452
9f6a71b4
YQ
64532016-02-10 Yao Qi <yao.qi@linaro.org>
6454
6455 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6456
1e94266c
SM
64572016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6458
6459 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6460 to AC_OUTPUT.
6461 * configure: Regenerate.
6462
8adce034
SM
64632016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6464
6465 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6466 void * to gdb_byte *.
6467 * linux-low.c (siginfo_fixup): Likewise.
6468 (linux_xfer_siginfo): Likewise.
6469 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6470 Likewise.
6471 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6472
93813b37
WT
64732016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6474
6475 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6476 to srv_tgtobj.
6477 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6478 to srv_tgtobj.
6479 * linux-x86-low.c [__x86_64__]: Include
6480 "nat/amd64-linux-siginfo.h".
6481 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6482 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6483 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6484 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6485 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6486 (cpt_si_fd, si_timerid, si_overrun): Move from
6487 nat/amd64-linux-siginfo.c.
6488 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6489
8424cc97
SM
64902016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6491
6492 * server.c (skip_to_semicolon): Remove.
6493 (process_point_options): Use strchrnul instead of
6494 skip_to_semicolon.
6495
4d18591b
YQ
64962016-01-26 Yao Qi <yao.qi@linaro.org>
6497
6498 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6499 * linux-low.c (install_software_single_step_breakpoints): Don't
6500 call regcache_read_pc.
6501 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6502 argument pc.
6503
d8020970
YQ
65042016-01-26 Yao Qi <yao.qi@linaro.org>
6505
6506 * linux-low.c (install_software_single_step_breakpoints): Call
6507 regcache_read_pc instead of get_pc.
6508
8b207339
YQ
65092016-01-26 Yao Qi <yao.qi@linaro.org>
6510
6511 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6512 (unblock_async_io): Rename to ...
6513 (block_unblock_async_io): ... it. New function.
6514 (enable_async_io): Don't install SIGIO handler. Unblock it
6515 instead.
6516 (disable_async_io): Don't ignore SIGIO. Block it instead.
6517 (initialize_async_io): Install SIGIO handler. Don't call
6518 unblock_async_io.
6519
18879fef
YQ
65202016-01-26 Yao Qi <yao.qi@linaro.org>
6521
6522 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6523 first character is '\003', call *the_target->request_interrupt.
6524
a0f8e08a
YQ
65252016-01-25 Yao Qi <yao.qi@linaro.org>
6526
6527 * remote-utils.c (new_thread_notify): Remove.
6528 (dead_thread_notify): Likewise.
6529 * remote-utils.h (new_thread_notify): Remove declaration.
6530 (dead_thread_notify): Likewise.
6531
cc5fd9ab
MK
65322016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6533
6534 * gdb.trace/pending.exp: Fix expected message on continue.
6535
99e8eb11
MK
65362016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6537
6538 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6539 it works properly on big-endian machines where sizeof (CORE_ADDR)
6540 != sizeof (void *).
6541
a994041d
PA
65422016-01-21 Pedro Alves <palves@redhat.com>
6543
6544 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6545 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6546 * configure: Regenerate.
6547
f7a6a40d
YQ
65482016-01-21 Yao Qi <yao.qi@linaro.org>
6549
6550 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6551 is_thumb and set it according to CPSR saved on the stack.
6552 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6553 arm_sigreturn_next_pc.
6554
6f69e520
YQ
65552016-01-18 Yao Qi <yao.qi@linaro.org>
6556
6557 * linux-low.c (linux_set_pc_64bit): New function.
6558 (linux_get_pc_64bit): New function.
6559 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6560 Declare.
6561 * linux-sparc-low.c (debug_threads): Remove declaration.
6562 (sparc_get_pc): Remove.
6563 (the_low_target): Use linux_get_pc_64bit instead of
6564 sparc_get_pc.
6565 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6566 (the_low_target): Use linux_get_pc_64bit and
6567 linux_set_pc_64bit.
6568
276d4552
YQ
65692016-01-18 Yao Qi <yao.qi@linaro.org>
6570
6571 * linux-arm-low.c (debug_threads): Remove declaration.
6572 (arm_get_pc, arm_set_pc): Remove.
6573 (the_low_target): Use linux_get_pc_32bit and
6574 linux_set_pc_32bit.
6575 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6576 (the_low_target): Use linux_get_pc_32bit and
6577 linux_set_pc_32bit.
6578 * linux-cris-low.c (debug_threads): Remove declaration.
6579 (cris_get_pc, cris_set_pc,): Remove.
6580 (the_low_target): Use linux_get_pc_32bit and
6581 linux_set_pc_32bit.
6582 * linux-crisv32-low.c (debug_threads): Remove declaration.
6583 (cris_get_pc, cris_set_pc): Remove.
6584 (the_low_target): Use linux_get_pc_32bit and
6585 linux_set_pc_32bit.
6586 * linux-low.c: Include inttypes.h.
6587 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6588 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6589 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6590 (the_low_target): Use linux_get_pc_32bit and
6591 linux_set_pc_32bit.
6592 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6593 (the_low_target): Use linux_get_pc_32bit and
6594 linux_set_pc_32bit.
6595 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6596 (the_low_target): Use linux_get_pc_32bit and
6597 linux_set_pc_32bit.
6598 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6599 (the_low_target): Use linux_get_pc_32bit and
6600 linux_set_pc_32bit.
6601 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6602 (the_low_target): Use linux_get_pc_32bit and
6603 linux_set_pc_32bit.
6604
eb0edac8
GB
66052016-01-18 Gary Benson <gbenson@redhat.com>
6606
6607 * configure.ac (AC_FUNC_FORK): New check.
6608 * config.in: Regenerate.
6609 * configure: Likewise.
6610
1b451dda
YQ
66112016-01-14 Yao Qi <yao.qi@linaro.org>
6612
6613 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6614 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6615 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6616 arm_get_next_pcs_ctor.
6617
82075af2
JS
66182016-01-12 Josh Stone <jistone@redhat.com>
6619 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6620
6621 * inferiors.h: Include "gdb_vecs.h".
6622 (struct process_info): Add syscalls_to_catch.
6623 * inferiors.c (remove_process): Free syscalls_to_catch.
6624 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6625 syscall_return stops.
6626 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6627 * server.c (handle_general_set): Handle QCatchSyscalls.
6628 (handle_query): Report support for QCatchSyscalls.
6629 * target.h (struct target_ops): Add supports_catch_syscall.
6630 (target_supports_catch_syscall): New macro.
6631 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6632 (struct lwp_info): Add syscall_state.
6633 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6634 Maintain syscall_state and syscalls_to_catch across exec.
6635 (get_syscall_trapinfo): New function, proxy to the_low_target.
6636 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6637 (linux_low_filter_event): Toggle syscall_state entry/return for
6638 syscall traps, and set it ignored for all others.
6639 (gdb_catching_syscalls_p): New function.
6640 (gdb_catch_this_syscall_p): New function.
6641 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6642 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6643 (linux_supports_catch_syscall): New function.
6644 (linux_target_ops): Install it.
6645 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6646 (the_low_target): Install it.
6647
8f13a3ce
MF
66482016-01-12 Mike Frysinger <vapier@gentoo.org>
6649
6650 * acinclude.m4: Include new ../warning.m4 file.
6651 * configure: Regenerated.
6652 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6653
5b3da067
MF
66542016-01-12 Mike Frysinger <vapier@gentoo.org>
6655
6656 * ax.c (is_goto_target): Mark static.
6657 * linux-low.c (register_addr): Likewise.
6658 (linux_fetch_registers, linux_store_registers): Likewise.
6659 * mem-break.c (any_persistent_commands): Fix old prototype.
6660 (add_commands_to_breakpoint): Mark static.
6661 * regcache.c (find_register_by_name): Delete unused func.
6662 * remote-utils.c (hex_or_minus_one): Mark static.
6663 * server.c (monitor_show_help): Mark static.
6664 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6665 handle_v_requests): Likewise.
6666
bc504a31
PA
66672016-01-12 Pedro Alves <palves@redhat.com>
6668
6669 Remove use of the registered trademark symbol throughout.
6670
5a0dd67a
YQ
66712016-01-08 Yao Qi <yao.qi@linaro.org>
6672
6673 * remote-utils.c (getpkt): If c is '\003', call target hook
6674 request_interrupt.
6675
b2ca446f
YQ
66762016-01-06 Yao Qi <yao.qi@linaro.org>
6677
6678 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6679 linux-aarch32-low.c.
6680 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6681 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6682 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6683 (thumb2_breakpoint): Declare.
6684 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6685 linux-aarch32-low.h.
6686 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6687 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6688 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6689
edd88788
JB
66902016-01-01 Joel Brobecker <brobecker@adacore.com>
6691
6692 * gdbreplay.c (gdbreplay_version): Change copyright year in
6693 version message.
6694 * server.c (gdbserver_version): Likewise.
6695
65da7f14
PP
66962015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6697
6698 * server.c (crc32_table): Delete.
6699 (crc32): Use libiberty's xcrc32 function.
6700
4abd5ed2
JB
67012015-12-22 Joel Brobecker <brobecker@adacore.com>
6702
6703 * lynx-low.c (lynx_delete_thread_callback): New function.
6704 (lynx_mourn): Properly delete our process and all of its
6705 threads. Remove call to clear_inferiors.
6706
0e50fe5c
JB
67072015-12-22 Joel Brobecker <brobecker@adacore.com>
6708
6709 * target.c (thread_search_callback): Add check that
6710 the thread_stopped target callback is not NULL before
6711 calling it.
6712
35adc03f
YQ
67132015-12-21 Yao Qi <yao.qi@linaro.org>
6714
6715 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6716 arm breakpoint.
6717
bd2b2909
AT
67182015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6719
6720 * server.c (handle_query): Call target_supports_software_single_step.
6721
7fe5e27e
AT
67222015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6723
6724 * linux-low.c (single_step): New function.
6725 (linux_resume_one_lwp_throw): Call single_step.
6726 (start_step_over): Likewise.
6727
d9311bfa
AT
67282015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6729
6730 * Makefile.in (SFILES): Append arch/arm-linux.c,
6731 arch/arm-get-next-pcs.c.
6732 (arm-linux.o): New rule.
6733 (arm-get-next-pcs.o): New rule.
6734 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6735 arm-linux.o.
6736 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6737 to linux-aarch32-low.c.
6738 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6739 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6740 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6741 (thumb2_breakpoint_len): Likewise.
6742 (arm_is_thumb_mode): Make non-static.
6743 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6744 from linux-aarch32-low.c.
6745 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6746 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6747 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6748 (thumb2_breakpoint_len): Likewise.
6749 (arm_is_thumb_mode): New declaration.
6750 * linux-arm-low.c: Include arch/arm-linux.h
6751 aarch/arm-get-next-pcs.h, sys/syscall.h.
6752 (get_next_pcs_ops): New struct.
6753 (get_next_pcs_addr_bits_remove): New function.
6754 (get_next_pcs_is_thumb): New function.
6755 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6756 (arm_sigreturn_next_pc): Likewise.
6757 (get_next_pcs_syscall_next_pc): Likewise.
6758 (arm_gdbserver_get_next_pcs): Likewise.
6759 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6760 Initialize.
6761 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6762 * server.h: Include gdb_vecs.h.
6763
68ce2059
AT
67642015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6765
6766 * Makefile.in (SFILES): Append common/common-regcache.c.
6767 (OBS): Append common-regcache.o.
6768 (common-regcache.o): New rule.
6769 * regcache.c (init_register_cache): Initialize cache to
6770 REG_UNAVAILABLE.
6771 (regcache_raw_read_unsigned): New function.
6772 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6773 register_status enum.
6774
fa5308bd
AT
67752015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6776
6777 * linux-aarch64-low.c (the_low_targets): Rename
6778 breakpoint_reinsert_addr to get_next_pcs.
6779 * linux-arm-low.c (the_low_targets): Likewise.
6780 * linux-bfin-low.c (the_low_targets): Likewise.
6781 * linux-cris-low.c (the_low_targets): Likewise.
6782 * linux-crisv32-low.c (the_low_targets): Likewise.
6783 * linux-low.c (can_software_single_step): Likewise.
6784 (install_software_single_step_breakpoints): New function.
6785 (start_step_over): Use install_software_single_step_breakpoints.
6786 * linux-low.h: New CORE_ADDR vector.
6787 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6788 get_next_pcs.
6789 * linux-mips-low.c (the_low_targets): Likewise.
6790 * linux-nios2-low.c (the_low_targets): Likewise.
6791 * linux-sparc-low.c (the_low_targets): Likewise.
6792
4a6ed09b
PA
67932015-12-17 Pedro Alves <palves@redhat.com>
6794
6795 * linux-low.c (linux_kill_one_lwp): Remove references to
6796 LinuxThreads.
6797 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6798 to 'kill'.
6799 (linux_init_signals): Delete.
6800 (initialize_low): Adjust.
6801 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6802
7544db95
PA
68032015-12-16 Pedro Alves <palves@redhat.com>
6804
6805 * configure.ac (compiler warning flags): When testing a
6806 -Wno-foo option, check whether -Wfoo works instead.
6807 * configure: Regenerate.
6808
8020350c
DB
68092015-12-11 Don Breazeal <donb@codesourcery.com>
6810
6811 * server.c (process_serial_event): Don't exit from gdbserver
6812 in remote mode if there are still active inferiors.
6813
db91f502
YQ
68142015-12-11 Yao Qi <yao.qi@linaro.org>
6815
6816 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6817 arm_breakpoint_at if the process is 32-bit.
6818
b37a6290
YQ
68192015-12-11 Yao Qi <yao.qi@linaro.org>
6820
6821 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6822 arm breakpoint.
6823
17b1509a
YQ
68242015-12-07 Yao Qi <yao.qi@linaro.org>
6825
6826 * configure.srv: Append arm.o to srv_tgtobj for
6827 aarch64*-*-linux* target.
6828 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6829 from linux-arm-low.c.
6830 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6831 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6832 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6833 (thumb2_breakpoint_len): Likewise.
6834 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6835 (arm_breakpoint_kinds): Likewise.
6836 (arm_breakpoint_kind_from_pc): Likewise.
6837 (arm_sw_breakpoint_from_kind): Likewise.
6838 (arm_breakpoint_kind_from_current_state): Likewise.
6839 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6840 (arm_sw_breakpoint_from_kind): Declare.
6841 (arm_breakpoint_kind_from_current_state): Declare.
6842 (arm_breakpoint_at): Declare.
6843 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6844 arm_sw_breakpoint_from_kind if process is 32-bit.
6845 (aarch64_breakpoint_kind_from_pc): New function.
6846 (aarch64_breakpoint_kind_from_current_state): New function.
6847 (the_low_target): Initialize fields breakpoint_kind_from_pc
6848 and breakpoint_kind_from_current_state.
6849 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6850 linux-aarch32-low.c.
6851 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6852 (arm_breakpoint, arm_breakpoint_len): Likewise.
6853 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6854 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6855 (arm_is_thumb_mode): Likewise.
6856 (arm_breakpoint_at): Likewise.
6857 (arm_breakpoint_kind_from_pc): Likewise.
6858 (arm_sw_breakpoint_from_kind): Likewise.
6859 (arm_breakpoint_kind_from_current_state): Likewise.
6860
6861 Revert:
6862 2015-08-04 Yao Qi <yao.qi@linaro.org>
6863
6864 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6865 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6866 * server.c (extended_protocol): Remove "static".
6867 * server.h (extended_protocol): Declare it.
6868
ece66d65
JS
68692015-12-04 Josh Stone <jistone@redhat.com>
6870
6871 * target.h (struct target_ops) <arch_setup>: Rename to ...
6872 (struct target_ops) <post_create_inferior>: ... this.
6873 (target_arch_setup): Rename to ...
6874 (target_post_create_inferior): ... this, calling post_create_inferior.
6875 * server.c (start_inferior): Update target_arch_setup calls to
6876 target_post_create_inferior.
6877 * linux-low.c (linux_low_ptrace_options): Forward declare.
6878 (linux_arch_setup): Update its comment for general use.
6879 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6880 (struct linux_target_ops): Use linux_post_create_inferior.
6881 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6882 to post_create_inferior.
6883 * nto-low.c (struct nto_target_ops): Likewise.
6884 * spu-low.c (struct spu_target_ops): Likewise.
6885 * win32-low.c (struct win32_target_ops): Likewise.
6886
e58c48b4
AT
68872015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6888
6889 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6890
fbec8956
AT
68912015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6892
6893 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6894 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6895 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6896 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6897 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6898 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6899 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6900 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6901 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6902 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6903 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6904 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6905
9b4c5f87
AT
69062015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6907
6908 * linux-low.c (linux_look_up_symbols): Don't call
6909 linux_supports_traceclone.
6910 * linux-low.h (thread_db_init): Remove use_events argument.
6911 * thread-db.c (thread_db_use_event): Remove global variable.
6912 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6913 (struct thread_db) <td_create_bp>: Remove field.
6914 (thread_db_create_event): Remove function.
6915 (thread_db_enable_reporting): Likewise.
6916 (find_one_thread): Don't check for thread_db_use_events.
6917 (attach_thread): Likewise.
6918 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6919 (try_thread_db_load_1): Don't check for thread_db_use_events.
6920 (thread_db_init): Remove use_events argument and thread events
6921 handling.
6922 (remove_thread_event_breakpoints): Remove function.
6923 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6924
7d00775e
AT
69252015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6926
6927 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6928 New function.
6929 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6930 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6931 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6932 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6933 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6934 Initialize.
6935 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6936 New function.
6937 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6938 * linux-low.c (can_hardware_single_step): Use
6939 supports_hardware_single_step.
6940 (can_software_single_step): New function.
6941 (start_step_over): Call can_software_single_step.
6942 (linux_supports_hardware_single_step): New function.
6943 (struct target_ops) <supports_software_single_step>: Initialize.
6944 * linux-low.h (struct linux_target_ops)
6945 <supports_hardware_single_step>: Initialize.
6946 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6947 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6948 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6949 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6950 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6951 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6952 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6953 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6954 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6955 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6956 Initialize.
6957 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6958 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6959 Initialize.
6960 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6961 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6962 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6963 New function.
6964 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6965 * target.h (struct target_ops): <supports_software_single_step>:
6966 New field.
6967 (target_supports_software_single_step): New macro.
6968
2d97cd35
AT
69692015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6970
6971 * linux-low.c (linux_wait_1): Fix pc advance condition.
6972 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6973 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6974
769ef81f
AT
69752015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6976
6977 * linux-arm-low.c (arm_is_thumb_mode): New function.
6978 (arm_breakpoint_at): Use arm_is_thumb_mode.
6979 (arm_breakpoint_kind_from_current_state): New function.
6980 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6981 Initialize.
6982 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6983 (linux_breakpoint_kind_from_current_state): New function.
6984 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6985 * linux-low.h (struct linux_target_ops)
6986 <breakpoint_kind_from_current_state>: New field.
6987 * target.h (struct target_ops): Likewise.
6988 (target_breakpoint_kind_from_current_state): New macro.
6989
1bebeeca
PA
69902015-11-30 Pedro Alves <palves@redhat.com>
6991
6992 * linux-low.c (linux_resume): Wake up the event loop before
6993 returning.
6994
a67a9fae
PA
69952015-11-30 Pedro Alves <palves@redhat.com>
6996
6997 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6998 check.
6999 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7000 to -1.
7001 * target.c (struct thread_search): New structure.
7002 (thread_search_callback): New function.
7003 (prev_general_thread): New global.
7004 (prepare_to_access_memory, done_accessing_memory): New functions.
7005 * target.h (prepare_to_access_memory, done_accessing_memory):
7006 Replace macros with function declarations.
7007
f2faf941
PA
70082015-11-30 Pedro Alves <palves@redhat.com>
7009
7010 PR 14618
7011 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7012 report TARGET_WAITKIND_NO_RESUMED.
7013 * remote-utils.c (prepare_resume_reply): Handle
7014 TARGET_WAITKIND_NO_RESUMED.
7015 * server.c (report_no_resumed): New global.
7016 (handle_query) <qSupported>: Handle "no-resumed+". Report
7017 "no-resumed+" support.
7018 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7019 return error if the client doesn't support no-resumed events.
7020 (push_stop_notification): New function.
7021 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7022 events if the client supports them.
7023
a681f9c9
PA
70242015-11-30 Pedro Alves <palves@redhat.com>
7025
7026 * linux-low.c (thread_still_has_status_pending_p): Don't check
7027 vCont;t here.
7028 (lwp_resumed): New function.
7029 (status_pending_p_callback): Return early if the LWP is not
7030 supposed to be resumed.
7031
65706a29
PA
70322015-11-30 Pedro Alves <palves@redhat.com>
7033
7034 * linux-low.c (handle_extended_wait): Assert that the LWP's
7035 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7036 thread create events, leave the new child's status pending.
7037 (linux_low_filter_event): If GDB wants to hear about thread exit
7038 events, leave the LWP marked dead and don't delete it.
7039 (linux_wait_for_event_filtered): Don't check for thread exit.
7040 (filter_exit_event): New function.
7041 (linux_wait_1): Use it, when returning an exit event.
7042 (linux_resume_one_lwp_throw): Assert that the LWP's
7043 waitstatus is TARGET_WAITKIND_IGNORE.
7044 * remote-utils.c (prepare_resume_reply): Handle
7045 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7046 * server.c (report_thread_events): New global.
7047 (handle_general_set): Handle QThreadEvents.
7048 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7049 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7050 TARGET_WAITKIND_THREAD_EXITED.
7051 * server.h (report_thread_events): Declare.
7052
56cf4bed
PA
70532015-11-30 Pedro Alves <palves@redhat.com>
7054
7055 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7056 the thread's last_resume_kind was resume_stop.
7057
500c1d85
PA
70582015-11-30 Pedro Alves <palves@redhat.com>
7059
7060 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7061 before returning.
7062
de979965
PA
70632015-11-30 Pedro Alves <palves@redhat.com>
7064
7065 * server.c (handle_v_requests): Handle vCtrlC.
7066
34c65914
PA
70672015-11-30 Pedro Alves <palves@redhat.com>
7068
7069 * gdbthread.h (find_any_thread_of_pid): Declare.
7070 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7071 functions.
7072 * server.c (handle_query): If current_thread is NULL, look for
7073 another thread of the selected process.
7074
79efa585 70752015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 7076 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
7077
7078 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7079 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7080 name in reply.
7081 * target.h (struct target_ops) <thread_name>: New field.
7082 (target_thread_name): New macro.
7083
80d82c19
JB
70842015-11-23 Joel Brobecker <brobecker@adacore.com>
7085
7086 * regcache.h (regcache_invalidate_pid): Add declaration.
7087 * regcache.c (regcache_invalidate_pid): New function, extracted
7088 from regcache_invalidate.
7089 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7090 Add trivial documentation comment.
7091 * lynx-low.c: Use regcache_invalidate_pid instead of
7092 regcache_invalidate.
7093
64da5dd5
JB
70942015-11-23 Joel Brobecker <brobecker@adacore.com>
7095
7096 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7097 and Elf64_auxv_t if the target is Android.
7098
37ce4055
DE
70992015-11-22 Doug Evans <xdje42@gmail.com>
7100
7101 * target.h: #include <sys/types.h>.
7102
06e03fff
PA
71032015-11-19 Pedro Alves <palves@redhat.com>
7104
7105 * linux-low.c (linux_process_qsupported): Change prototype.
7106 Adjust.
7107 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7108 Change prototype.
7109 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7110 and adjust to loop over all features.
7111 * server.c (handle_query) <qSupported>: Adjust to call
7112 target_process_qsupported once, passing it a vector of unprocessed
7113 features.
7114 * target.h (struct target_ops) <process_qsupported>: Change
7115 prototype.
7116 (target_process_qsupported): Adjust.
7117
9a084706
PA
71182015-11-19 Pedro Alves <palves@redhat.com>
7119
7120 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7121 mode.
7122 * configure: Regenerate.
7123
dad44a1f
PA
71242015-11-19 Pedro Alves <palves@redhat.com>
7125
7126 * configure: Regenerate.
7127
231c0592
YQ
71282015-11-19 Yao Qi <yao.qi@linaro.org>
7129
7130 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7131 type to uint32_t.
7132
6c1c9a8b
YQ
71332015-11-19 Yao Qi <yao.qi@linaro.org>
7134
7135 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7136 (struct aarch64_operand): Move enum out.
7137
9caa3311
YQ
71382015-11-19 Yao Qi <yao.qi@linaro.org>
7139
7140 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7141 struct user_fpsimd_state *.
7142 (aarch64_store_fpregset): Likewise.
7143
6a69a054
YQ
71442015-11-19 Yao Qi <yao.qi@linaro.org>
7145
7146 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7147 struct user_pt_regs *.
7148 (aarch64_store_gregset): Likewise.
7149
1798301e
PA
71502015-11-18 Pedro Alves <palves@redhat.com>
7151
7152 * Makefile.in (all_object_files): Add $IPA_OBJS.
7153
ce7715e2
PA
71542015-11-17 Pedro Alves <palves@redhat.com>
7155
7156 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7157 GDB_SIGNAL_0 and gdb_signal_to_string.
7158
c0879059
PA
71592015-11-17 Pedro Alves <palves@redhat.com>
7160
7161 * win32-low.c (handle_output_debug_string): Remove parameter.
7162 (win32_kill): Remove our_status local and adjust call to
7163 handle_output_debug_string.
7164 (get_child_debug_event): Adjust call to
7165 handle_output_debug_string.
7166
1996e237
SM
71672015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7168
7169 * linux-mips-low.c (mips_fill_gregset): Add cast.
7170 (mips_store_gregset): Likewise.
7171 (mips_fill_fpregset): Likewise.
7172 (mips_store_fpregset): Likewise.
7173
cbec665b
SM
71742015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7175
7176 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7177 priv.
7178
eb3e3c67
SM
71792015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7180
7181 * linux-mips-low.c (mips_linux_new_thread): Change type of
7182 watch_type to enum target_hw_bp_type.
7183
171de4b8
SM
71842015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7185
7186 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7187 Change return type to arm_hwbp_type.
7188
04248ead
SM
71892015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7190
7191 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7192 (arm_store_gregset): Likewise.
7193 * linux-arm-low.c (arm_get_hwcap): Likewise.
7194 (arm_read_description): Likewise.
7195
04b3479c
SM
71962015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7197
7198 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7199
2bc84e8a
SM
72002015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7201
7202 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7203 (ppc_fill_vsxregset): Likewise.
7204 (ppc_store_vsxregset): Likewise.
7205 (ppc_fill_vrregset): Likewise.
7206 (ppc_store_vrregset): Likewise.
7207 (ppc_fill_evrregset): Likewise.
7208 (ppc_store_evrregset): Likewise.
7209
e6c5bb05
SM
72102015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7211
7212 * linux-ppc-low.c (ppc_usrregs_info): Remove
7213 forward-declaration.
7214 (ppc_arch_setup): Move lower in file.
7215
7ea45d72
SM
72162015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7217
7218 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7219 (ps_pdwrite): Likewise.
7220
69291610
HW
72212015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7222
7223 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7224 to after assert checks.
7225
b42945fd
SM
72262015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7227
7228 * proc-service.c (ps_pdread): Add/adjust casts.
7229 (ps_pdwrite): Add/adjust casts.
7230
d6f85c84
SM
72312015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7232
7233 * server.c (handle_search_memory_1): Cast return value of
7234 memmem.
7235
f98cd059
SM
72362015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7237
7238 * server.c (write_qxfer_response): Change type of data to
7239 gdb_byte *.
7240
d2412fa5
PA
72412015-10-29 Pedro Alves <palves@redhat.com>
7242
7243 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7244
c17414a2
PA
72452015-10-29 Pedro Alves <palves@redhat.com>
7246
7247 * tracepoint.c (clear_installed_tracepoints): Add casts.
7248
e053fbc4
PA
72492015-10-29 Pedro Alves <palves@redhat.com>
7250
7251 * server.c (handle_v_cont, process_serial_event): Add enum
7252 gdb_signal casts to signal parsing code.
7253
add67df8
PA
72542015-10-29 Pedro Alves <palves@redhat.com>
7255
7256 * linux-low.h (NULL_REGSET): Define.
7257 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7258 * linux-arm-low.c (arm_regsets): Likewise.
7259 * linux-crisv32-low.c (cris_regsets): Likewise.
7260 * linux-m68k-low.c (m68k_regsets): Likewise.
7261 * linux-mips-low.c (mips_regsets): Likewise.
7262 * linux-nios2-low.c (nios2_regsets): Likewise.
7263 * linux-ppc-low.c (ppc_regsets): Likewise.
7264 * linux-s390-low.c (s390_regsets): Likewise.
7265 * linux-sh-low.c (sh_regsets): Likewise.
7266 * linux-sparc-low.c (sparc_regsets): Likewise.
7267 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7268 * linux-tile-low.c (tile_regsets): Likewise.
7269 * linux-x86-low.c (x86_regsets): Likewise.
7270 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7271
50bc912a
PA
72722015-10-29 Pedro Alves <palves@redhat.com>
7273
7274 * linux-low.h (NULL_REGSET): Define.
7275 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7276 * linux-arm-low.c (arm_regsets): Likewise.
7277 * linux-crisv32-low.c (cris_regsets): Likewise.
7278 * linux-m68k-low.c (m68k_regsets): Likewise.
7279 * linux-mips-low.c (mips_regsets): Likewise.
7280 * linux-nios2-low.c (nios2_regsets): Likewise.
7281 * linux-ppc-low.c (ppc_regsets): Likewise.
7282 * linux-s390-low.c (s390_regsets): Likewise.
7283 * linux-sh-low.c (sh_regsets): Likewise.
7284 * linux-sparc-low.c (sparc_regsets): Likewise.
7285 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7286 * linux-tile-low.c (tile_regsets): Likewise.
7287 * linux-x86-low.c (x86_regsets): Likewise.
7288 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7289
682b2546
DE
72902015-10-26 Doug Evans <dje@google.com>
7291
7292 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7293
963843d4
DE
72942015-10-26 Doug Evans <dje@google.com>
7295
7296 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7297
d41401ac
DE
72982015-10-26 Doug Evans <dje@google.com>
7299
7300 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7301 for debug_printf.
7302 (attach_thread, find_new_threads_callback): Ditto.
7303
3db28855
AT
73042015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7305
7306 * mem-break.h (set_breakpoint_data): Remove.
7307
fb78e89c
AT
73082015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7309
7310 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7311 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7312 (initialize_low): Remove set_breakpoint_data call.
7313 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7314 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7315 (initialize_low): Remove set_breakpoint_data call.
7316 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7317 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7318 (initialize_low): Remove set_breakpoint_data call.
7319
2e6ee069
AT
73202015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7321
7322 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7323 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7324 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7325 * target.h (target_breakpoint_kind_from_pc): New macro.
7326
1652a986
AT
73272015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7328
7329 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7330 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7331 the default breakpoint kind.
7332
abeead09
AT
73332015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7334
7335 * linux-arm-low.c (arm_supports_z_point_type): Add software
7336 breakpoint support.
7337
b0b4b501
AT
73382015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7339
7340 * linux-arm-low.c: Refactor breakpoint definitions.
7341 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7342 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7343
8689682c
AT
73442015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7345
7346 * Makefile.in: Add arm.c/o.
7347 * configure.srv: Likewise.
7348 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7349 (arm_breakpoint_kind_from_pc): New function.
7350 (arm_sw_breakpoint_from_kind): Return proper kind.
7351 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7352
27165294
AT
73532015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7354
7355 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7356 removal.
7357 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7358 (struct raw_breakpoint) <size>: Remove.
7359 (struct raw_breakpoint) <kind>: Add.
7360 (bp_size): New function.
7361 (bp_opcode): Likewise.
7362 (find_raw_breakpoint_at): Adjust for kind.
7363 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7364 (remove_memory_breakpoint): Adjust for kind call bp_size.
7365 (set_raw_breakpoint_at): Adjust for kind.
7366 (set_breakpoint): Likewise.
7367 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7368 (delete_raw_breakpoint): Adjust for kind.
7369 (delete_breakpoint): Likewise.
7370 (find_gdb_breakpoint): Likewise.
7371 (set_gdb_breakpoint_1): Likewise.
7372 (set_gdb_breakpoint): Likewise.
7373 (delete_gdb_breakpoint_1): Likewise.
7374 (delete_gdb_breakpoint): Likewise.
7375 (uninsert_raw_breakpoint): Likewise.
7376 (reinsert_raw_breakpoint): Likewise.
7377 (set_breakpoint_data): Remove.
7378 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7379 (check_mem_read): Adjust for kind call bp_size.
7380 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7381 (clone_one_breakpoint): Adjust for kind.
7382 * mem-break.h (set_gdb_breakpoint): Likewise.
7383 (delete_gdb_breakpoint): Likewise.
7384 * server.c (process_serial_event): Likewise.
7385
dd373349
AT
73862015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7387
7388 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7389 (struct linux_target_ops) <breakpoint>: Remove.
7390 (struct linux_target_ops) <breakpoint_len>: Remove.
7391 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7392 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7393 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7394 (arm_sw_breakpoint_from_kind): New function.
7395 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7396 (struct linux_target_ops) <breakpoint>: Remove.
7397 (struct linux_target_ops) <breakpoint_len>: Remove.
7398 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7399 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7400 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7401 (struct linux_target_ops) <breakpoint>: Remove.
7402 (struct linux_target_ops) <breakpoint_len>: Remove.
7403 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7404 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7405 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7406 (struct linux_target_ops) <breakpoint>: Remove.
7407 (struct linux_target_ops) <breakpoint_len>: Remove.
7408 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7409 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7410 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7411 and sw_breakpoint_from_kind to increment the pc.
7412 (linux_breakpoint_kind_from_pc): New function.
7413 (linux_sw_breakpoint_from_kind): New function.
7414 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7415 (initialize_low): Call breakpoint_kind_from_pc and
7416 sw_breakpoint_from_kind to replace breakpoint_data/len.
7417 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7418 New field.
7419 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7420 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7421 (struct linux_target_ops) <breakpoint>: Remove.
7422 (struct linux_target_ops) <breakpoint_len>: Remove.
7423 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7424 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7425 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7426 (struct linux_target_ops) <breakpoint>: Remove.
7427 (struct linux_target_ops) <breakpoint_len>: Remove.
7428 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7429 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7430 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7431 (struct linux_target_ops) <breakpoint>: Remove.
7432 (struct linux_target_ops) <breakpoint_len>: Remove.
7433 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7434 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7435 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7436 (struct linux_target_ops) <breakpoint>: Remove.
7437 (struct linux_target_ops) <breakpoint_len>: Remove.
7438 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7439 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7440 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7441 (struct linux_target_ops) <breakpoint>: Remove.
7442 (struct linux_target_ops) <breakpoint_len>: Remove.
7443 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7444 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7445 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7446 (struct linux_target_ops) <breakpoint>: Remove.
7447 (struct linux_target_ops) <breakpoint_len>: Remove.
7448 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7449 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7450 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7451 (struct linux_target_ops) <breakpoint>: Remove.
7452 (struct linux_target_ops) <breakpoint_len>: Remove.
7453 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7454 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7455 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7456 (struct linux_target_ops) <breakpoint>: Remove.
7457 (struct linux_target_ops) <breakpoint_len>: Remove.
7458 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7459 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7460 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7461 (struct linux_target_ops) <breakpoint>: Remove.
7462 (struct linux_target_ops) <breakpoint_len>: Remove.
7463 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7464 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7465 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7466 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7467 (struct linux_target_ops) <breakpoint>: Remove.
7468 (struct linux_target_ops) <breakpoint_len>: Remove.
7469 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7470 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7471 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7472 (struct linux_target_ops) <breakpoint>: Remove.
7473 (struct linux_target_ops) <breakpoint_len>: Remove.
7474 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7475 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7476
4cd98a19
AT
74772015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7478
7479 * linux-cris-low.c (cris_get_pc): Remove void arg.
7480
774ee6d2
AR
74812015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7482
7483 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7484 variable name.
7485
833dcd29
AR
74862015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7487
7488 * inferiors.c (thread_pid_matches_callback): New function.
7489 (find_thread_process): New function.
7490 (remove_thread): Reset current_thread.
7491 (remove_process): Assert threads have been removed first.
7492
8d689ee5
YQ
74932015-10-15 Yao Qi <yao.qi@linaro.org>
7494
7495 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7496 if it is 3.
7497 (aarch64_remove_point): Likewise.
7498 * regcache.c (regcache_register_size): New function.
7499
1c2e1515
YQ
75002015-10-12 Yao Qi <yao.qi@linaro.org>
7501
7502 * linux-aarch64-low.c: Update all callers as emit_load_store
7503 is renamed to aarch64_emit_load_store.
7504
e1c587c3
YQ
75052015-10-12 Yao Qi <yao.qi@linaro.org>
7506
7507 * linux-aarch64-low.c: Update all callers of function renaming
7508 from emit_insn to aarch64_emit_insn.
7509
b6542f81
YQ
75102015-10-12 Yao Qi <yao.qi@linaro.org>
7511
7512 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7513 arch/aarch64-insn.h.
7514 (struct aarch64_memory_operand): Likewise.
7515 (ENCODE): Likewise.
7516 (emit_insn): Move to arch/aarch64-insn.c.
7517 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7518 (emit_load_store): Move to arch/aarch64-insn.c.
7519 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7520 (can_encode_int32): Remove.
7521
246994ce
YQ
75222015-10-12 Yao Qi <yao.qi@linaro.org>
7523
7524 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7525 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7526 (aarch64_relocate_instruction): Likewise.
7527 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7528 (struct aarch64_insn_visitor): Likewise.
7529
0badd99f
YQ
75302015-10-12 Yao Qi <yao.qi@linaro.org>
7531
7532 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7533 (struct aarch64_insn_visitor): New.
7534 (struct aarch64_insn_relocation_data): New.
7535 (aarch64_ftrace_insn_reloc_b): New function.
7536 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7537 (aarch64_ftrace_insn_reloc_cb): Likewise.
7538 (aarch64_ftrace_insn_reloc_tb): Likewise.
7539 (aarch64_ftrace_insn_reloc_adr): Likewise.
7540 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7541 (aarch64_ftrace_insn_reloc_others): Likewise.
7542 (visitor): New.
7543 (aarch64_relocate_instruction): Use visitor.
7544
dfaffe9d
YQ
75452015-10-12 Yao Qi <yao.qi@linaro.org>
7546
7547 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7548 int. Add argument buf.
7549 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7550 aarch64_relocate_instruction.
7551
70b439f0
YQ
75522015-10-12 Yao Qi <yao.qi@linaro.org>
7553
7554 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7555 argument insn. Remove local variable insn. Don't call
7556 target_read_uint32.
7557 (aarch64_install_fast_tracepoint_jump_pad): Call
7558 target_read_uint32.
7559
7781c06f
YQ
75602015-09-30 Yao Qi <yao.qi@linaro.org>
7561
7562 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7563 (emit_load_store_pair): Likewise.
7564
9a3c8263
SM
75652015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7566
7567 * dll.c (match_dll): Add cast(s).
7568 (unloaded_dll): Likewise.
7569 * linux-low.c (second_thread_of_pid_p): Likewise.
7570 (delete_lwp_callback): Likewise.
7571 (count_events_callback): Likewise.
7572 (select_event_lwp_callback): Likewise.
7573 (linux_set_resume_request): Likewise.
7574 * server.c (accumulate_file_name_length): Likewise.
7575 (emit_dll_description): Likewise.
7576 (handle_qxfer_threads_worker): Likewise.
7577 (visit_actioned_threads): Likewise.
7578 * thread-db.c (any_thread_of): Likewise.
7579 * tracepoint.c (same_process_p): Likewise.
7580 (match_blocktype): Likewise.
7581 (build_traceframe_info_xml): Likewise.
7582
224c3ddb
SM
75832015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7584
7585 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7586 assignment.
7587 (gdb_unparse_agent_expr): Likewise.
7588 * hostio.c (require_data): Likewise.
7589 (handle_pread): Likewise.
7590 * linux-low.c (disable_regset): Likewise.
7591 (fetch_register): Likewise.
7592 (store_register): Likewise.
7593 (get_dynamic): Likewise.
7594 (linux_qxfer_libraries_svr4): Likewise.
7595 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7596 (set_fast_tracepoint_jump): Likewise.
7597 (uninsert_fast_tracepoint_jumps_at): Likewise.
7598 (reinsert_fast_tracepoint_jumps_at): Likewise.
7599 (validate_inserted_breakpoint): Likewise.
7600 (clone_agent_expr): Likewise.
7601 * regcache.c (init_register_cache): Likewise.
7602 * remote-utils.c (putpkt_binary_1): Likewise.
7603 (decode_M_packet): Likewise.
7604 (decode_X_packet): Likewise.
7605 (look_up_one_symbol): Likewise.
7606 (relocate_instruction): Likewise.
7607 (monitor_output): Likewise.
7608 * server.c (handle_search_memory): Likewise.
7609 (handle_qxfer_exec_file): Likewise.
7610 (handle_qxfer_libraries): Likewise.
7611 (handle_qxfer): Likewise.
7612 (handle_query): Likewise.
7613 (handle_v_cont): Likewise.
7614 (handle_v_run): Likewise.
7615 (captured_main): Likewise.
7616 * target.c (write_inferior_memory): Likewise.
7617 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7618 * tracepoint.c (init_trace_buffer): Likewise.
7619 (add_tracepoint_action): Likewise.
7620 (add_traceframe): Likewise.
7621 (add_traceframe_block): Likewise.
7622 (cmd_qtdpsrc): Likewise.
7623 (cmd_qtdv): Likewise.
7624 (cmd_qtstatus): Likewise.
7625 (response_source): Likewise.
7626 (response_tsv): Likewise.
7627 (cmd_qtnotes): Likewise.
7628 (gdb_collect): Likewise.
7629 (initialize_tracepoint): Likewise.
7630
afbe19f8
PL
76312015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7632
7633 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7634 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7635 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7636 <NOP>: New.
7637 (enum aarch64_condition_codes): New enum.
7638 (w0): New static global.
7639 (fp): Likewise.
7640 (lr): Likewise.
7641 (struct aarch64_memory_operand) <type>: New
7642 MEMORY_OPERAND_POSTINDEX type.
7643 (postindex_memory_operand): New helper function.
7644 (emit_ret): New function.
7645 (emit_load_store_pair): New function, factored out of emit_stp
7646 with support for MEMORY_OPERAND_POSTINDEX.
7647 (emit_stp): Rewrite using emit_load_store_pair.
7648 (emit_ldp): New function.
7649 (emit_load_store): Likewise.
7650 (emit_ldr): Mention post-index instruction in comment.
7651 (emit_ldrh): New function.
7652 (emit_ldrb): New function.
7653 (emit_ldrsw): Mention post-index instruction in comment.
7654 (emit_str): Likewise.
7655 (emit_subs): New function.
7656 (emit_cmp): Likewise.
7657 (emit_and): Likewise.
7658 (emit_orr): Likewise.
7659 (emit_orn): Likewise.
7660 (emit_eor): Likewise.
7661 (emit_mvn): Likewise.
7662 (emit_lslv): Likewise.
7663 (emit_lsrv): Likewise.
7664 (emit_asrv): Likewise.
7665 (emit_mul): Likewise.
7666 (emit_sbfm): Likewise.
7667 (emit_sbfx): Likewise.
7668 (emit_ubfm): Likewise.
7669 (emit_ubfx): Likewise.
7670 (emit_csinc): Likewise.
7671 (emit_cset): Likewise.
7672 (emit_nop): Likewise.
7673 (emit_ops_insns): New helper function.
7674 (emit_pop): Likewise.
7675 (emit_push): Likewise.
7676 (aarch64_emit_prologue): New function.
7677 (aarch64_emit_epilogue): Likewise.
7678 (aarch64_emit_add): Likewise.
7679 (aarch64_emit_sub): Likewise.
7680 (aarch64_emit_mul): Likewise.
7681 (aarch64_emit_lsh): Likewise.
7682 (aarch64_emit_rsh_signed): Likewise.
7683 (aarch64_emit_rsh_unsigned): Likewise.
7684 (aarch64_emit_ext): Likewise.
7685 (aarch64_emit_log_not): Likewise.
7686 (aarch64_emit_bit_and): Likewise.
7687 (aarch64_emit_bit_or): Likewise.
7688 (aarch64_emit_bit_xor): Likewise.
7689 (aarch64_emit_bit_not): Likewise.
7690 (aarch64_emit_equal): Likewise.
7691 (aarch64_emit_less_signed): Likewise.
7692 (aarch64_emit_less_unsigned): Likewise.
7693 (aarch64_emit_ref): Likewise.
7694 (aarch64_emit_if_goto): Likewise.
7695 (aarch64_emit_goto): Likewise.
7696 (aarch64_write_goto_address): Likewise.
7697 (aarch64_emit_const): Likewise.
7698 (aarch64_emit_call): Likewise.
7699 (aarch64_emit_reg): Likewise.
7700 (aarch64_emit_pop): Likewise.
7701 (aarch64_emit_stack_flush): Likewise.
7702 (aarch64_emit_zero_ext): Likewise.
7703 (aarch64_emit_swap): Likewise.
7704 (aarch64_emit_stack_adjust): Likewise.
7705 (aarch64_emit_int_call_1): Likewise.
7706 (aarch64_emit_void_call_2): Likewise.
7707 (aarch64_emit_eq_goto): Likewise.
7708 (aarch64_emit_ne_goto): Likewise.
7709 (aarch64_emit_lt_goto): Likewise.
7710 (aarch64_emit_le_goto): Likewise.
7711 (aarch64_emit_gt_goto): Likewise.
7712 (aarch64_emit_ge_got): Likewise.
7713 (aarch64_emit_ops_impl): New static global variable.
7714 (aarch64_emit_ops): New target function, return
7715 &aarch64_emit_ops_impl.
7716 (struct linux_target_ops): Install it.
7717
bb903df0
PL
77182015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7719
7720 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7721 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7722 aarch64-ipa.o.
7723 * linux-aarch64-ipa.c: New file.
7724 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7725 and endian.h.
7726 (aarch64_get_thread_area): New target method.
7727 (extract_signed_bitfield): New helper function.
7728 (aarch64_decode_ldr_literal): New function.
7729 (enum aarch64_opcodes): New enum.
7730 (struct aarch64_register): New struct.
7731 (struct aarch64_operand): New struct.
7732 (x0): New static global.
7733 (x1): Likewise.
7734 (x2): Likewise.
7735 (x3): Likewise.
7736 (x4): Likewise.
7737 (w2): Likewise.
7738 (ip0): Likewise.
7739 (sp): Likewise.
7740 (xzr): Likewise.
7741 (aarch64_register): New helper function.
7742 (register_operand): Likewise.
7743 (immediate_operand): Likewise.
7744 (struct aarch64_memory_operand): New struct.
7745 (offset_memory_operand): New helper function.
7746 (preindex_memory_operand): Likewise.
7747 (enum aarch64_system_control_registers): New enum.
7748 (ENCODE): New macro.
7749 (emit_insn): New helper function.
7750 (emit_b): New function.
7751 (emit_bcond): Likewise.
7752 (emit_cb): Likewise.
7753 (emit_tb): Likewise.
7754 (emit_blr): Likewise.
7755 (emit_stp): Likewise.
7756 (emit_ldp_q_offset): Likewise.
7757 (emit_stp_q_offset): Likewise.
7758 (emit_load_store): Likewise.
7759 (emit_ldr): Likewise.
7760 (emit_ldrsw): Likewise.
7761 (emit_str): Likewise.
7762 (emit_ldaxr): Likewise.
7763 (emit_stxr): Likewise.
7764 (emit_stlr): Likewise.
7765 (emit_data_processing_reg): Likewise.
7766 (emit_data_processing): Likewise.
7767 (emit_add): Likewise.
7768 (emit_sub): Likewise.
7769 (emit_mov): Likewise.
7770 (emit_movk): Likewise.
7771 (emit_mov_addr): Likewise.
7772 (emit_mrs): Likewise.
7773 (emit_msr): Likewise.
7774 (emit_sevl): Likewise.
7775 (emit_wfe): Likewise.
7776 (append_insns): Likewise.
7777 (can_encode_int32_in): New helper function.
7778 (aarch64_relocate_instruction): New function.
7779 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7780 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7781 (struct linux_target_ops): Install aarch64_get_thread_area,
7782 aarch64_install_fast_tracepoint_jump_pad and
7783 aarch64_get_min_fast_tracepoint_insn_len.
7784
787749ea
PL
77852015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7786
7787 * Makefile.in (aarch64-insn.o): New rule.
7788 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7789
9812b2e6
YQ
77902015-09-21 Yao Qi <yao.qi@linaro.org>
7791
7792 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7793
18fe412b
YQ
77942015-09-21 Yao Qi <yao.qi@linaro.org>
7795
7796 * tracepoint.c (max_jump_pad_size): Remove.
7797
a0cc84cd
YQ
77982015-09-18 Yao Qi <yao.qi@linaro.org>
7799
7800 * linux-aarch64-low.c: Don't include sys/uio.h.
7801 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7802
d78908cf
WW
78032015-09-16 Wei-cheng Wang <cole945@gmail.com>
7804
7805 * tracepoint.c (eval_result_type): Change prototype.
7806 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7807
d57e0d50
PA
78082015-09-15 Pedro Alves <palves@redhat.com>
7809
7810 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7811 Check whether to report exec events instead of checking whether
7812 multiprocess is enabled.
7813
5a676acc
PA
78142015-09-15 Pedro Alves <palves@redhat.com>
7815
7816 PR remote/18965
7817 * remote-utils.c (prepare_resume_reply): Merge
7818 TARGET_WAITKIND_VFORK_DONE switch case with the
7819 TARGET_WAITKIND_FORKED case.
7820
7c5d0fad
YQ
78212015-09-15 Yao Qi <yao.qi@linaro.org>
7822
7823 * server.c (handle_query): Check string comparison using
7824 "else if" instead of "if".
7825
750ce8d1
YQ
78262015-09-15 Yao Qi <yao.qi@linaro.org>
7827
7828 * server.c (vCont_supported): New global variable.
7829 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7830 matches. Append ";vContSupported+" to own_buf.
7831 (handle_v_requests): Append ";s;S" to own_buf if target supports
7832 hardware single step or vCont_supported is false.
7833 (capture_main): Set vCont_supported to zero.
7834
70b90b91
YQ
78352015-09-15 Yao Qi <yao.qi@linaro.org>
7836
7837 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7838 it to ...
7839 (linux_supports_hardware_single_step): ... New function.
7840 (linux_target_ops): Update.
7841 * lynx-low.c (lynx_target_ops): Set field
7842 supports_hardware_single_step to target_can_do_hardware_single_step.
7843 * nto-low.c (nto_target_ops): Likewise.
7844 * spu-low.c (spu_target_ops): Likewise.
7845 * win32-low.c (win32_target_ops): Likewise.
7846 * target.c (target_can_do_hardware_single_step): New function.
7847 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7848 Remove. <supports_hardware_single_step>: New field.
7849 (target_supports_conditional_breakpoints): Remove.
7850 (target_supports_hardware_single_step): New macro.
7851 (target_can_do_hardware_single_step): Declare.
7852 * server.c (handle_query): Use target_supports_hardware_single_step
7853 instead of target_supports_conditional_breakpoints.
7854
ade90bde
YQ
78552015-09-15 Yao Qi <yao.qi@linaro.org>
7856
7857 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7858 function.
7859 (struct linux_target_ops the_low_target): Install
7860 aarch64_linux_siginfo_fixup.
7861
94585166
DB
78622015-09-11 Don Breazeal <donb@codesourcery.com>
7863 Luis Machado <lgustavo@codesourcery.com>
7864
7865 * linux-low.c (linux_mourn): Static declaration.
7866 (linux_arch_setup): Move in front of
7867 handle_extended_wait.
7868 (linux_arch_setup_thread): New function.
7869 (handle_extended_wait): Handle exec events. Call
7870 linux_arch_setup_thread. Make event_lwp argument a
7871 pointer-to-a-pointer.
7872 (check_zombie_leaders): Do not check stopped threads.
7873 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7874 (linux_low_filter_event): Add lwp and thread for exec'ing
7875 non-leader thread if leader thread has been deleted.
7876 Refactor code into linux_arch_setup_thread and call it.
7877 Pass child lwp pointer by reference to handle_extended_wait.
7878 (linux_wait_for_event_filtered): Update comment.
7879 (linux_wait_1): Prevent clobbering exec event status.
7880 (linux_supports_exec_events): New function.
7881 (linux_target_ops) <supports_exec_events>: Initialize new member.
7882 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7883 new member.
7884 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7885 * server.c (report_exec_events): New global variable.
7886 (handle_query): Handle qSupported query for exec-events feature.
7887 (captured_main): Initialize report_exec_events.
7888 * server.h (report_exec_events): Declare new global variable.
7889 * target.h (struct target_ops) <supports_exec_events>: New
7890 member.
7891 (target_supports_exec_events): New macro.
7892 * win32-low.c (win32_target_ops) <supports_exec_events>:
7893 Initialize new member.
7894
0568462b
MM
78952015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7896
7897 * linux-low.c (linux_low_enable_btrace): Remove.
7898 (linux_target_ops): Replace linux_low_enable_btrace with
7899 linux_enable_btrace.
7900
39edd165
YQ
79012015-09-03 Yao Qi <yao.qi@linaro.org>
7902
7903 * linux-aarch64-low.c (aarch64_insert_point): Call
7904 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7905 returns true.
7906
1db33b5a
UW
79072015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7908
7909 * linux-low.c (check_stopped_by_breakpoint): Use
7910 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7911
ab290430
PA
79122015-08-27 Pedro Alves <palves@redhat.com>
7913
7914 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7915
8d749320
SM
79162015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7917
6711b7f8
SM
7918 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7919 the XNEW-family equivalent.
8d749320
SM
7920 (compile_bytecodes): Likewise.
7921 * dll.c (loaded_dll): Likewise.
7922 * event-loop.c (append_callback_event): Likewise.
7923 (create_file_handler): Likewise.
7924 (create_file_event): Likewise.
7925 * hostio.c (handle_open): Likewise.
7926 * inferiors.c (add_thread): Likewise.
7927 (add_process): Likewise.
7928 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7929 * linux-arm-low.c (arm_new_process): Likewise.
7930 (arm_new_thread): Likewise.
7931 * linux-low.c (add_to_pid_list): Likewise.
7932 (linux_add_process): Likewise.
7933 (handle_extended_wait): Likewise.
7934 (add_lwp): Likewise.
7935 (enqueue_one_deferred_signal): Likewise.
7936 (enqueue_pending_signal): Likewise.
7937 (linux_resume_one_lwp_throw): Likewise.
7938 (linux_resume_one_thread): Likewise.
7939 (linux_read_memory): Likewise.
7940 (linux_write_memory): Likewise.
7941 * linux-mips-low.c (mips_linux_new_process): Likewise.
7942 (mips_linux_new_thread): Likewise.
7943 (mips_add_watchpoint): Likewise.
7944 * linux-x86-low.c (initialize_low_arch): Likewise.
7945 * lynx-low.c (lynx_add_process): Likewise.
7946 * mem-break.c (set_raw_breakpoint_at): Likewise.
7947 (set_breakpoint): Likewise.
7948 (add_condition_to_breakpoint): Likewise.
7949 (add_commands_to_breakpoint): Likewise.
7950 (clone_agent_expr): Likewise.
7951 (clone_one_breakpoint): Likewise.
7952 * regcache.c (new_register_cache): Likewise.
7953 * remote-utils.c (look_up_one_symbol): Likewise.
7954 * server.c (queue_stop_reply): Likewise.
7955 (start_inferior): Likewise.
7956 (queue_stop_reply_callback): Likewise.
7957 (handle_target_event): Likewise.
7958 * spu-low.c (fetch_ppc_memory): Likewise.
7959 (store_ppc_memory): Likewise.
7960 * target.c (set_target_ops): Likewise.
7961 * thread-db.c (thread_db_load_search): Likewise.
7962 (try_thread_db_load_1): Likewise.
7963 * tracepoint.c (add_tracepoint): Likewise.
7964 (add_tracepoint_action): Likewise.
7965 (create_trace_state_variable): Likewise.
7966 (cmd_qtdpsrc): Likewise.
7967 (cmd_qtro): Likewise.
7968 (add_while_stepping_state): Likewise.
7969 * win32-low.c (child_add_thread): Likewise.
7970 (get_image_name): Likewise.
7971
ed8b7b42
YQ
79722015-08-25 Yao Qi <yao.qi@linaro.org>
7973
7974 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7975
db3cb7cb
YQ
79762015-08-25 Yao Qi <yao.qi@linaro.org>
7977
7978 * Makefile.in (aarch64-linux.o): New rule.
7979 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7980 srv_tgtobj.
7981 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7982 (aarch64_init_debug_reg_state): Make it extern.
7983 (aarch64_linux_prepare_to_resume): Remove.
7984
f6011a1c
YQ
79852015-08-25 Yao Qi <yao.qi@linaro.org>
7986
7987 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7988 lwp_arch_private_info and ptid_of_lwp.
7989
88e2cf7e
YQ
79902015-08-25 Yao Qi <yao.qi@linaro.org>
7991
7992 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7993 Find proc_info by find_process_pid. All callers updated.
7994
5e35436e
YQ
79952015-08-25 Yao Qi <yao.qi@linaro.org>
7996
7997 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7998 Remove.
7999 (debug_reg_change_callback): Remove.
8000 (aarch64_notify_debug_reg_change): Remove.
8001
4a8a7965
YQ
80022015-08-25 Yao Qi <yao.qi@linaro.org>
8003
8004 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8005 Call current_lwp_ptid.
8006
32a271ee
YQ
80072015-08-25 Yao Qi <yao.qi@linaro.org>
8008
8009 * linux-aarch64-low.c (debug_reg_change_callback): Use
8010 debug_printf.
8011
0d51c8d7
YQ
80122015-08-25 Yao Qi <yao.qi@linaro.org>
8013
8014 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8015
31a43dd5
YQ
80162015-08-25 Yao Qi <yao.qi@linaro.org>
8017
8018 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8019
8ee52567
YQ
80202015-08-25 Yao Qi <yao.qi@linaro.org>
8021
8022 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8023 the code.
8024
ff3f0f45
YQ
80252015-08-25 Yao Qi <yao.qi@linaro.org>
8026
8027 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8028 Remove.
8029 (debug_reg_change_callback): Remove argument entry and add argument
8030 lwp. Remove local variable thread. Don't print thread id in the
8031 debugging output. Don't check whether pid of thread equals to pid.
8032 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8033 iterate_over_lwps instead find_inferior.
8034
3d40fbb5
PA
80352015-08-24 Pedro Alves <palves@redhat.com>
8036
8037 * inferiors.c (get_first_process): New function.
8038 * inferiors.h (get_first_process): New declaration.
8039 * remote-utils.c (read_ptid): Default to the first process in the
8040 list, instead of to the current thread's process.
8041
438e1e42
PA
80422015-08-24 Pedro Alves <palves@redhat.com>
8043
8044 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8045 * event-loop.c: Likewise.
8046 * remote-utils.c: Likewise.
8047 * tracepoint.c: Likewise.
8048
a8c6d4fc
PA
80492015-08-24 Pedro Alves <palves@redhat.com>
8050
8051 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8052 ptid_get_lwp.
8053
99b0bb12
PA
80542015-08-21 Pedro Alves <palves@redhat.com>
8055
8056 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8057 instead of literal 1.
8058
f8904751
PA
80592015-08-21 Pedro Alves <palves@redhat.com>
8060
8061 * tdesc.c (default_description): Explicitly zero-initialize.
8062
465a859e
PA
80632015-08-21 Pedro Alves <palves@redhat.com>
8064
8065 PR gdb/18749
8066 * inferiors.c (remove_thread): Discard any pending stop reply for
8067 this thread.
8068 * server.c (remove_all_on_match_pid): Rename to ...
8069 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8070 instead of a pid.
8071 (discard_queued_stop_replies): Change parameter to a ptid. Now
8072 extern.
8073 (handle_v_kill, kill_inferior_callback, captured_main)
8074 (process_serial_event): Adjust.
8075 * server.h (discard_queued_stop_replies): Declare.
8076
f0db101d
PA
80772015-08-21 Pedro Alves <palves@redhat.com>
8078
8079 * linux-low.c (wait_for_sigstop): Always switch to no thread
8080 selected if the previously current thread dies.
8081 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8082 process instead of the current thread's.
8083 * remote-utils.c (input_interrupt): Don't check if there's no
8084 current thread.
8085 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8086 current thread to the general thread fails, error out.
8087 (handle_qxfer_auxv, handle_qxfer_libraries)
8088 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8089 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8090 (handle_query): Check if there's a thread selected instead of
8091 checking whether there's any thread in the thread list.
8092 (handle_qxfer_threads, handle_qxfer_btrace)
8093 (handle_qxfer_btrace_conf): Don't error out early if there's no
8094 thread in the thread list.
8095 (handle_v_cont, myresume): Don't set the current thread to the
8096 continue thread.
8097 (process_serial_event) <Hg handling>: Also set thread_id if the
8098 previous general thread is still alive.
8099 (process_serial_event) <g/G handling>: If setting the current
8100 thread to the general thread fails, error out.
8101 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8102 thread's lwp instead of the current thread's.
8103 * target.c (set_desired_thread): If the desired thread was not
8104 found, leave the current thread pointing to NULL. Return an int
8105 (boolean) indicating success.
8106 * target.h (set_desired_thread): Change return type to int.
8107
40045d91
MF
81082015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8109
8110 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8111 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8112 #includes.
8113 (ps_get_thread_area): New function.
8114
45face3b
GB
81152015-08-19 Gary Benson <gbenson@redhat.com>
8116
8117 * hostio.c (handle_pread): Do not attempt to read more data
8118 than hostio_reply_with_data can fit in a packet.
8119
16d5f642
JB
81202015-08-18 Joel Brobecker <brobecker@adacore.com>
8121
8122 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8123
a738da3a
MF
81242015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8125
8126 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8127
33ebda9d
PA
81282015-08-06 Pedro Alves <palves@redhat.com>
8129
8130 * tracepoint.c (expr_eval_result): Now an int.
8131
a44892be
PA
81322015-08-06 Pedro Alves <palves@redhat.com>
8133
8134 * gdbthread.h (struct regcache): Forward declare.
8135 (struct thread_info) <regcache_data>: Now a struct regcache
8136 pointer.
8137 * inferiors.c (inferior_regcache_data)
8138 (set_inferior_regcache_data): Now work with struct regcache
8139 pointers.
8140 * inferiors.h (struct regcache): Forward declare.
8141 (inferior_regcache_data, set_inferior_regcache_data): Now work
8142 with struct regcache pointers.
8143 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8144 (free_register_cache_thread): Remove struct regcache pointer
8145 casts.
8146
608a1e46
PA
81472015-08-06 Pedro Alves <palves@redhat.com>
8148
8149 * server.c (captured_main): On error, print the exception message
8150 to stderr, and if run_once is set, throw a quit.
8151
f0ce0d3a
PA
81522015-08-06 Pedro Alves <palves@redhat.com>
8153
8154 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8155 the current thread.
8156
bf47e248
PA
81572015-08-06 Pedro Alves <palves@redhat.com>
8158
8159 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8160 reading beyond the passed in buffer length.
8161
b6b9ffcc
PL
81622015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8163
8164 * tracepoint.c (symbol_list) <required>: Remove.
8165
863d01bd
PA
81662015-08-06 Pedro Alves <palves@redhat.com>
8167
8168 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8169 count if stopping and suspending threads.
8170 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8171 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8172 (linux_detach): Complete an ongoing step-over.
8173 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8174 throughout.
8175 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8176 (linux_wait_1): If passing a signal to the inferior after
8177 finishing a step-over, unsuspend and re-resume all lwps. If we
8178 see a single-step event but the thread should be continuing, don't
8179 pass the trap to gdb.
8180 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8181 internal_error instead of gdb_assert.
8182 (enqueue_pending_signal): New function.
8183 (check_ptrace_stopped_lwp_gone): Add debug output.
8184 (start_step_over): Use internal_error instead of gdb_assert.
8185 (complete_ongoing_step_over): New function.
8186 (linux_resume_one_thread): Don't resume a suspended thread.
8187 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8188 it stepping.
8189
00db26fa
PA
81902015-08-06 Pedro Alves <palves@redhat.com>
8191
8192 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8193 (linux_thread_alive): Use lwp_is_marked_dead.
8194 (extended_event_reported): Delete.
8195 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8196 instead of extended_event_reported.
8197 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8198 as well.
8199 (lwp_is_marked_dead): New function.
8200 (lwp_running): Use lwp_is_marked_dead.
8201 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8202 comment.
8203
ad071a30
PA
82042015-08-06 Pedro Alves <palves@redhat.com>
8205
8206 * linux-low.c (linux_wait_1): Move fork event output out of the
8207 !report_to_gdb check. Pass event_child->waitstatus to
8208 target_waitstatus_to_string instead of ourstatus.
8209
524b57e6
YQ
82102015-08-04 Yao Qi <yao.qi@linaro.org>
8211
8212 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8213 if current_thread is 32 bit.
8214
6085d6f6
YQ
82152015-08-04 Yao Qi <yao.qi@linaro.org>
8216
8217 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8218 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8219 * server.c (extended_protocol): Remove "static".
8220 * server.h (extended_protocol): Declare it.
8221
8a7e4587
YQ
82222015-08-04 Yao Qi <yao.qi@linaro.org>
8223
8224 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8225 both aarch64 and aarch32.
8226 (aarch64_set_pc): Likewise.
8227
3b53ae99
YQ
82282015-08-04 Yao Qi <yao.qi@linaro.org>
8229
8230 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8231 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8232 arm-with-neon.xml to srv_xmlfiles.
8233 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8234 (is_64bit_tdesc): New function.
8235 (aarch64_linux_read_description): New function.
8236 (aarch64_arch_setup): Call aarch64_linux_read_description.
8237 (regs_info): Rename to regs_info_aarch64.
8238 (aarch64_regs_info): Return right regs_info.
8239 (initialize_low_arch): Call initialize_low_arch_aarch32.
8240
bd9e6534
YQ
82412015-08-04 Yao Qi <yao.qi@linaro.org>
8242
8243 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8244 * linux-aarch32-low.c: New file.
8245 * linux-aarch32-low.h: New file.
8246 * linux-arm-low.c (arm_fill_gregset): Move it to
8247 linux-aarch32-low.c.
8248 (arm_store_gregset): Likewise.
8249 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8250 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8251 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8252 (regs_info): Rename to regs_info_arm.
8253 (arm_regs_info): Return regs_info_aarch32 if
8254 have_ptrace_getregset is 1 and target description is
8255 arm_with_neon or arm_with_vfpv3.
8256 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8257 Call initialize_low_arch_aarch32 instead.
8258
ded48a5e
YQ
82592015-08-04 Yao Qi <yao.qi@linaro.org>
8260
8261 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8262 * linux-low.c: ... here.
8263 * linux-low.h (have_ptrace_getregset): Declare it.
8264
96e9210f
PA
82652015-08-04 Pedro Alves <palves@redhat.com>
8266
8267 * thread-db.c (struct thread_db): Use new typedefs.
8268 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8269 CHK calls.
8270 (disable_thread_event_reporting): Cast result of dlsym to
8271 destination function pointer type.
8272 (thread_db_mourn): Use td_ta_delete_ftype.
8273
af60a1ef
SL
82742015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8275
8276 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8277 arch variant.
8278 (CDX_BREAKPOINT): Define for R2.
8279 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8280 (the_low_target): Add comments.
8281
e8b41681
YQ
82822015-07-30 Yao Qi <yao.qi@linaro.org>
8283
8284 * linux-arm-low.c (arm_hwcap): Remove it.
8285 (arm_read_description): New local variable arm_hwcap. Don't
8286 set arm_hwcap to zero.
8287
89abb039
YQ
82882015-07-30 Yao Qi <yao.qi@linaro.org>
8289
8290 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8291 Use regcache->tdesc instead.
8292 (arm_store_wmmxregset): Likewise.
8293 (arm_fill_vfpregset): Likewise.
8294 (arm_store_vfpregset): Likewise.
8295
deca266c
YQ
82962015-07-30 Yao Qi <yao.qi@linaro.org>
8297
8298 * linux-arm-low.c: Include arch/arm.h.
8299 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8300 (arm_store_gregset): Likewise.
8301
aa58a496
SM
83022015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8303
8304 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8305 ptrace's 4th parameter.
8306
50904b25
YQ
83072015-07-27 Yao Qi <yao.qi@linaro.org>
8308
8309 * configure.srv (case aarch64*-*-linux*): Don't set
8310 srv_linux_usrregs.
8311
5826e159
PA
83122015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8313
8314 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8315 sys/ptrace.h.
8316 * linux-arm-low.c: Likewise.
8317 * linux-cris-low.c: Likewise.
8318 * linux-crisv32-low.c: Likewise.
8319 * linux-low.c: Likewise.
8320 * linux-m68k-low.c: Likewise.
8321 * linux-mips-low.c: Likewise.
8322 * linux-nios2-low.c: Likewise.
8323 * linux-s390-low.c: Likewise.
8324 * linux-sparc-low.c: Likewise.
8325 * linux-tic6x-low.c: Likewise.
8326 * linux-tile-low.c: Likewise.
8327 * linux-x86-low.c: Likewise.
8328
54019719
PA
83292015-07-24 Pedro Alves <palves@redhat.com>
8330
8331 * config.in: Regenerate.
8332 * configure: Regenerate.
8333
eb7aa561
PA
83342015-07-24 Pedro Alves <palves@redhat.com>
8335
8336 * acinclude.m4: Include ../ptrace.m4.
8337 * configure.ac: Call GDB_AC_PTRACE.
8338 * config.in, configure: Regenerate.
8339
55d7b841
YQ
83402015-07-24 Yao Qi <yao.qi@linaro.org>
8341
8342 * linux-low.c (linux_create_inferior): Remove setting to
8343 proc->priv->new_inferior.
8344 (linux_attach): Likewise.
8345 (linux_low_filter_event): Likewise.
8346 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8347
c06cbd92
YQ
83482015-07-24 Yao Qi <yao.qi@linaro.org>
8349
8350 * linux-low.c (linux_arch_setup): New function.
8351 (linux_low_filter_event): If proc->tdesc is NULL and
8352 proc->attached is true, call the_low_target.arch_setup.
8353 Otherwise, keep status pending, and return.
8354 (linux_resume_one_lwp_throw): Don't call get_pc if
8355 thread->while_stepping isn't NULL. Don't call
8356 get_thread_regcache if proc->tdesc is NULL.
8357 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8358 (linux_target_ops): Install arch_setup.
8359 * server.c (start_inferior): Call the_target->arch_setup.
8360 * target.h (struct target_ops) <arch_setup>: New field.
8361 (target_arch_setup): New marco.
8362 * lynx-low.c (lynx_target_ops): Update.
8363 * nto-low.c (nto_target_ops): Update.
8364 * spu-low.c (spu_target_ops): Update.
8365 * win32-low.c (win32_target_ops): Update.
8366
5ae3ebba
YQ
83672015-07-24 Yao Qi <yao.qi@linaro.org>
8368
8369 * linux-low.c (linux_add_process): Don't set
8370 proc->priv->new_inferior.
8371 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8372 (linux_attach): Likewise.
8373
eb97750b
YQ
83742015-07-24 Yao Qi <yao.qi@linaro.org>
8375
8376 * server.c (start_inferior): Code refactor.
8377
51aee833
YQ
83782015-07-24 Yao Qi <yao.qi@linaro.org>
8379
8380 * server.c (process_serial_event): Set general_thread.
8381
af1b22f3
YQ
83822015-07-21 Yao Qi <yao.qi@linaro.org>
8383
8384 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8385 aarch64_linux_get_debug_reg_capacity.
8386
554717a3
YQ
83872015-07-17 Yao Qi <yao.qi@linaro.org>
8388
8389 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8390 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8391 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8392 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8393 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8394 (AARCH64_HWP_ALIGNMENT): Likewise.
8395 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8396 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8397 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8398 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8399 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8400 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8401 (struct aarch64_debug_reg_state): Likewise.
8402 (struct arch_lwp_info): Likewise.
8403 (aarch64_align_watchpoint): Likewise.
8404 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8405 (aarch64_watchpoint_length): Likewise.
8406 (aarch64_point_encode_ctrl_reg): Likewise
8407 (aarch64_point_is_aligned): Likewise.
8408 (aarch64_align_watchpoint): Likewise.
8409 (aarch64_linux_set_debug_regs):
8410 (aarch64_dr_state_insert_one_point): Likewise.
8411 (aarch64_dr_state_remove_one_point): Likewise.
8412 (aarch64_handle_breakpoint): Likewise.
8413 (aarch64_handle_aligned_watchpoint): Likewise.
8414 (aarch64_handle_unaligned_watchpoint): Likewise.
8415 (aarch64_handle_watchpoint): Likewise.
8416
c67ca4de
YQ
84172015-07-17 Yao Qi <yao.qi@linaro.org>
8418
8419 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8420 and don't aarch64_get_debug_reg_state. All callers update.
8421 (aarch64_handle_aligned_watchpoint): Likewise.
8422 (aarch64_handle_unaligned_watchpoint): Likewise.
8423 (aarch64_handle_watchpoint): Likewise.
8424 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8425 (aarch64_remove_point): Likewise.
8426
25abf979
YQ
84272015-07-17 Yao Qi <yao.qi@linaro.org>
8428
8429 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8430 debug_printf.
8431 (aarch64_handle_unaligned_watchpoint): Likewise.
8432
db1ff28b
JK
84332015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8434
8435 Revert the previous 3 commits:
8436 Move gdb_regex* to common/
8437 Move linux_find_memory_regions_full & co.
8438 gdbserver build-id attribute generator
8439
700ca40f
JK
84402015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8441 Jan Kratochvil <jan.kratochvil@redhat.com>
8442
8443 gdbserver build-id attribute generator.
8444 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8445 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8446 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8447 (find_phdr): New.
8448 (get_dynamic): Use find_pdhr to traverse program headers.
8449 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8450 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8451 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8452 (get_hex_build_id): New.
8453 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8454 to reply XML document.
8455
9904185c
JK
84562015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8457 Jan Kratochvil <jan.kratochvil@redhat.com>
8458
8459 * target.c: Include target/target-utils.h and fcntl.h.
8460 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8461 (target_fileio_read_stralloc): New functions.
8462
6e5b4429
JK
84632015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8464
8465 * Makefile.in (OBS): Add gdb_regex.o.
8466 (gdb_regex.o): New.
8467 * config.in: Rebuilt.
8468 * configure: Rebuilt.
8469
ddc98fbf
JK
84702015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8471 Jan Kratochvil <jan.kratochvil@redhat.com>
8472
8473 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8474 * Makefile.in (OBS): Add target-utils.o.
8475 (linux-maps.o, target-utils.o): New.
8476 * configure.srv (srv_linux_obj): Add linux-maps.o.
8477
e57bb7a0
PL
84782015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8479
8480 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8481 function, return 1.
8482 (the_low_target): Install it.
8483
586b02a9
PA
84842015-07-14 Pedro Alves <palves@redhat.com>
8485
8486 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8487 Instead, ignore ECHILD, and throw an error for other errnos.
8488
58c1b36c
PA
84892015-07-10 Pedro Alves <palves@redhat.com>
8490
8491 * event-loop.c (struct callback_event) <data>: Change type to
8492 gdb_client_data instance instead of gdb_client_data pointer.
8493 (append_callback_event): Adjust.
8494
421530db
PL
84952015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8496
8497 * linux-aarch64-low.c: Add comments for each linux_target_ops
8498 method. Remove comments already covered in target_ops and
8499 linux_target_ops definitions.
8500 (the_low_target): Add comments for each unimplemented method.
8501
c2d65f38
YQ
85022015-07-09 Yao Qi <yao.qi@linaro.org>
8503
8504 * linux-aarch64-low.c (aarch64_regmap): Remove.
8505 (aarch64_usrregs_info): Remove.
8506 (regs_info): Set field usrregs to NULL.
8507
b20a6524
MM
85082015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8509
8510 * linux-low.c: Include "rsp-low.h"
8511 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8512 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8513 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8514 (handle_btrace_enable_pt): New.
8515 (handle_btrace_general_set): Support "pt".
8516 (handle_btrace_conf_general_set): Support "pt:size".
8517
96c97461
PL
85182015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8519
8520 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8521 Z_PACKET_SW_BP.
8522
37d66942
PL
85232015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8524
8525 * linux-aarch64-low.c: Remove comment about endianness.
8526 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8527 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8528 memcmp.
8529
dc06243f
GB
85302015-06-24 Gary Benson <gbenson@redhat.com>
8531
8532 * linux-i386-ipa.c (stdint.h): Do not include.
8533 * lynx-i386-low.c (stdint.h): Likewise.
8534 * lynx-ppc-low.c (stdint.h): Likewise.
8535 * mem-break.c (stdint.h): Likewise.
8536 * thread-db.c (stdint.h): Likewise.
8537 * tracepoint.c (stdint.h): Likewise.
8538 * win32-low.c (stdint.h): Likewise.
8539
124e13d9
SM
85402015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8541
8542 * server.c (write_qxfer_response): Update call to
8543 remote_escape_output.
8544
909c2cda
JK
85452015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8546 Jan Kratochvil <jan.kratochvil@redhat.com>
8547
8548 Merge multiple hex conversions.
8549 * gdbreplay.c (tohex): Rename to 'fromhex'.
8550 (logchar): Use fromhex.
8551
24c05f46
JK
85522015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8553
8554 * server.c (handle_qxfer_libraries): Set `version' attribute for
8555 <library-list>.
8556
14d2069a
GB
85572015-06-10 Gary Benson <gbenson@redhat.com>
8558
8559 * target.h (struct target_ops) <multifs_open>: New field.
8560 <multifs_unlink>: Likewise.
8561 <multifs_readlink>: Likewise.
8562 * linux-low.c (nat/linux-namespaces.h): New include.
8563 (linux_target_ops): Initialize the_target->multifs_open,
8564 the_target->multifs_unlink and the_target->multifs_readlink.
8565 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8566 * hostio.c (hostio_fs_pid): New static variable.
8567 (hostio_handle_new_gdb_connection): New function.
8568 (handle_setfs): Likewise.
8569 (handle_open): Use the_target->multifs_open as appropriate.
8570 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8571 (handle_readlink): Use the_target->multifs_readlink as
8572 appropriate.
8573 (handle_vFile): Handle vFile:setfs packets.
8574 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8575 after target_handle_new_gdb_connection.
8576
4b8b5e72
GB
85772015-06-10 Gary Benson <gbenson@redhat.com>
8578
8579 * configure.ac (AC_CHECK_FUNCS): Add setns.
8580 * config.in: Regenerate.
8581 * configure: Likewise.
8582 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8583 (linux-namespaces.o): New rule.
8584 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8585
3ac2e371
GB
85862015-06-09 Gary Benson <gbenson@redhat.com>
8587
8588 * hostio.c (handle_open): Process mode argument with
8589 fileio_to_host_mode.
8590
ca9b78ce
YQ
85912015-06-01 Yao Qi <yao.qi@linaro.org>
8592
8593 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8594 * linux-x86-low.c: Likewise.
8595
bfacd19d
DB
85962015-05-28 Don Breazeal <donb@codesourcery.com>
8597
8598 * linux-low.c (handle_extended_wait): Initialize
8599 thread_info.last_resume_kind for new fork children.
8600
452003ef
PA
86012015-05-15 Pedro Alves <palves@redhat.com>
8602
8603 * target.h (target_handle_new_gdb_connection): Rewrite using if
8604 wrapped in do/while.
8605
1041a03c
JB
86062015-05-14 Joel Brobecker <brobecker@adacore.com>
8607
8608 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8609 * configure, config.in: Regenerate.
8610 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8611 Declare typedef.
8612
c269dbdb
DB
86132015-05-12 Don Breazeal <donb@codesourcery.com>
8614
8615 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8616 PTRACE_EVENT_VFORK_DONE.
8617 (linux_low_ptrace_options, extended_event_reported): Add vfork
8618 events.
8619 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8620 and "vforkdone" for RSP 'T' Stop Reply Packet.
8621 * server.h (report_vfork_events): Declare
8622 global variable.
8623
3a8a0396
DB
86242015-05-12 Don Breazeal <donb@codesourcery.com>
8625
8626 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8627 (the_low_target) <new_fork>: Initialize new member.
8628 * linux-arm-low.c (arm_new_fork): New function.
8629 (the_low_target) <new_fork>: Initialize new member.
8630 * linux-low.c (handle_extended_wait): Call new target function
8631 new_fork.
8632 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8633 * linux-mips-low.c (mips_add_watchpoint): New function
8634 extracted from mips_insert_point.
8635 (the_low_target) <new_fork>: Initialize new member.
8636 (mips_linux_new_fork): New function.
8637 (mips_insert_point): Call mips_add_watchpoint.
8638 * linux-x86-low.c (x86_linux_new_fork): New function.
8639 (the_low_target) <new_fork>: Initialize new member.
8640
de0d863e
DB
86412015-05-12 Don Breazeal <donb@codesourcery.com>
8642
8643 * linux-low.c (handle_extended_wait): Implement return value,
8644 rename argument 'event_child' to 'event_lwp', handle
8645 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8646 (linux_low_ptrace_options): New function.
8647 (linux_low_filter_event): Call linux_low_ptrace_options,
8648 use different argument fo linux_enable_event_reporting,
8649 use return value from handle_extended_wait.
8650 (extended_event_reported): New function.
8651 (linux_wait_1): Call extended_event_reported and set
8652 status to report fork events.
8653 (linux_write_memory): Add pid to debug message.
8654 (reset_lwp_ptrace_options_callback): New function.
8655 (linux_handle_new_gdb_connection): New function.
8656 (linux_target_ops): Initialize new structure member.
8657 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8658 * lynx-low.c: Initialize new structure member.
8659 * remote-utils.c (prepare_resume_reply): Implement stop reason
8660 "fork" for "T" stop message.
8661 * server.c (handle_query): Call handle_new_gdb_connection.
8662 * server.h (report_fork_events): Declare global flag.
8663 * target.h (struct target_ops) <handle_new_gdb_connection>:
8664 New member.
8665 (target_handle_new_gdb_connection): New macro.
8666 * win32-low.c: Initialize new structure member.
8667
ddcbc397
DB
86682015-05-12 Don Breazeal <donb@codesourcery.com>
8669
8670 * mem-break.c (APPEND_TO_LIST): Define macro.
8671 (clone_agent_expr): New function.
8672 (clone_one_breakpoint): New function.
8673 (clone_all_breakpoints): New function.
8674 * mem-break.h: Declare new functions.
8675
89245bc0
DB
86762015-05-12 Don Breazeal <donb@codesourcery.com>
8677
8678 * linux-low.c (linux_supports_fork_events): New function.
8679 (linux_supports_vfork_events): New function.
8680 (linux_target_ops): Initialize new structure members.
8681 (initialize_low): Call linux_check_ptrace_features.
8682 * lynx-low.c (lynx_target_ops): Initialize new structure
8683 members.
8684 * server.c (report_fork_events, report_vfork_events):
8685 New global flags.
8686 (handle_query): Add new features to qSupported packet and
8687 response.
8688 (captured_main): Initialize new global variables.
8689 * target.h (struct target_ops) <supports_fork_events>:
8690 New member.
8691 <supports_vfork_events>: New member.
8692 (target_supports_fork_events): New macro.
8693 (target_supports_vfork_events): New macro.
8694 * win32-low.c (win32_target_ops): Initialize new structure
8695 members.
8696
835205d0
GB
86972015-05-12 Gary Benson <gbenson@redhat.com>
8698
8699 * server.c (handle_qxfer_exec_file): Use current process
8700 if annex is empty.
8701
21e94bd9
SL
87022015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8703
8704 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8705 Remove HAVE_PTRACE_GETREGS conditionals.
8706 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8707 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8708
45614f15
YQ
87092015-05-08 Yao Qi <yao.qi@linaro.org>
8710
8711 * linux-low.c (linux_supports_conditional_breakpoints): New
8712 function.
8713 (linux_target_ops): Install new target method.
8714 * lynx-low.c (lynx_target_ops): Install NULL hook for
8715 supports_conditional_breakpoints.
8716 * nto-low.c (nto_target_ops): Likewise.
8717 * spu-low.c (spu_target_ops): Likewise.
8718 * win32-low.c (win32_target_ops): Likewise.
8719 * server.c (handle_query): Check
8720 target_supports_conditional_breakpoints.
8721 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8722 New field.
8723 (target_supports_conditional_breakpoints): New macro.
8724
80ad801e
PA
87252015-05-06 Pedro Alves <palves@redhat.com>
8726
8727 PR server/18081
8728 * server.c (start_inferior): If the process exits, mourn it.
8729
819843c7
GB
87302015-04-21 Gary Benson <gbenson@redhat.com>
8731
8732 * hostio.c (fileio_open_flags_to_host): Factored out to
8733 fileio_to_host_openflags in common/fileio.c. Single use
8734 updated.
8735
a2d5a9d7
MF
87362015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8737
8738 * linux-xtensa-low.c (xtensa_fill_gregset)
8739 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8740 XCHAL_HAVE_LOOP.
8741
deb44829
MF
87422015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8743
8744 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8745 (regs_info): Replace usrregs pointer with NULL.
8746
e57f1de3
GB
87472015-04-17 Gary Benson <gbenson@redhat.com>
8748
8749 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8750 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8751 * server.c (handle_qxfer_exec_file): New function.
8752 (qxfer_packets): Add exec-file entry.
8753 (handle_query): Report qXfer:exec-file:read as supported packet.
8754
62828379
RN
87552015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8756
8757 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8758
b88bb450
GB
87592015-04-09 Gary Benson <gbenson@redhat.com>
8760
8761 * hostio-errno.c (errno_to_fileio_error): Remove function.
8762 Update caller to use remote_fileio_to_fio_error.
8763
c8f4bfdd
YQ
87642015-04-09 Yao Qi <yao.qi@linaro.org>
8765
8766 * linux-low.c (linux_insert_point): Call
8767 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8768 (linux_remove_point): Call remove_memory_breakpoint if type is
8769 raw_bkpt_type_sw.
8770 * linux-x86-low.c (x86_insert_point): Don't call
8771 insert_memory_breakpoint.
8772 (x86_remove_point): Don't call remove_memory_breakpoint.
8773
41f98f02
PA
87742015-04-01 Pedro Alves <palves@redhat.com>
8775 Cleber Rosa <crosa@redhat.com>
8776
8777 * server.c (gdbserver_usage): Reorganize and extend the usage
8778 message.
8779
2bf6fb9d
PA
87802015-03-24 Pedro Alves <palves@redhat.com>
8781
8782 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8783 output. Also dump TRAP_TRACE.
8784 (linux_low_filter_event): In debug output, distinguish a
8785 resume_stop SIGSTOP from a delayed SIGSTOP.
8786
369f6daa
GB
87872015-03-24 Gary Benson <gbenson@redhat.com>
8788
8789 * linux-x86-low.c (x86_linux_new_thread): Moved to
8790 nat/x86-linux.c.
8791 (x86_linux_prepare_to_resume): Likewise.
8792
8e5d4070
GB
87932015-03-24 Gary Benson <gbenson@redhat.com>
8794
8795 * Makefile.in (x86-linux-dregs.o): New rule.
8796 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8797 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8798 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8799 (x86_linux_dr_get): Likewise.
8800 (x86_linux_dr_set): Likewise.
8801 (update_debug_registers_callback): Likewise.
8802 (x86_linux_dr_set_addr): Likewise.
8803 (x86_linux_dr_get_addr): Likewise.
8804 (x86_linux_dr_set_control): Likewise.
8805 (x86_linux_dr_get_control): Likewise.
8806 (x86_linux_dr_get_status): Likewise.
8807 (x86_linux_update_debug_registers): Likewise.
8808
2b95d440
GB
88092015-03-24 Gary Benson <gbenson@redhat.com>
8810
8811 * linux-x86-low.c (x86_linux_update_debug_registers):
8812 New function, factored out from...
8813 (x86_linux_prepare_to_resume): ...this.
8814
14b0bc68
GB
88152015-03-24 Gary Benson <gbenson@redhat.com>
8816
8817 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8818 (x86_linux_dr_set): Likewise.
8819 (update_debug_registers_callback): Likewise.
8820 (x86_linux_dr_set_addr): Likewise.
8821 (x86_linux_dr_get_addr): Likewise.
8822 (x86_linux_dr_set_control): Likewise.
8823 (x86_linux_dr_get_control): Likewise.
8824 (x86_linux_dr_get_status): Likewise.
8825 (x86_linux_prepare_to_resume): Likewise.
8826
5dfe6ca8
GB
88272015-03-24 Gary Benson <gbenson@redhat.com>
8828
8829 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8830 Use perror_with_name. Pass string through gettext.
8831 (x86_linux_dr_set): Likewise.
8832
d33472ad
GB
88332015-03-24 Gary Benson <gbenson@redhat.com>
8834
8835 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8836 (x86_linux_dr_set_addr): ...this.
8837 (x86_dr_low_get_addr): Rename to...
8838 (x86_linux_dr_get_addr): ...this.
8839 (x86_dr_low_set_control): Rename to...
8840 (x86_linux_dr_set_control): ...this.
8841 (x86_dr_low_get_control): Rename to...
8842 (x86_linux_dr_get_control): ...this.
8843 (x86_dr_low_get_status): Rename to...
8844 (x86_linux_dr_get_status): ...this.
8845 (x86_dr_low): Update with new function names.
8846
4b134ca1
GB
88472015-03-24 Gary Benson <gbenson@redhat.com>
8848
8849 * Makefile.in (x86-linux.o): New rule.
8850 * configure.srv: Add x86-linux.o to relevant targets.
8851 * linux-low.c (lwp_set_arch_private_info): New function.
8852 (lwp_arch_private_info): Likewise.
8853 * linux-x86-low.c: Include nat/x86-linux.h.
8854 (arch_lwp_info): Removed structure.
8855 (update_debug_registers_callback):
8856 Use lwp_set_debug_registers_changed.
8857 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8858 and lwp_set_debug_registers_changed.
8859 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8860
34c703da
GB
88612015-03-24 Gary Benson <gbenson@redhat.com>
8862
8863 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8864 * linux-arm-low.c (arm_new_thread): Likewise.
8865 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8866 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8867 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8868 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8869
cff068da
GB
88702015-03-24 Gary Benson <gbenson@redhat.com>
8871
8872 * linux-low.c (ptid_of_lwp): New function.
8873 (lwp_is_stopped): Likewise.
8874 (lwp_stop_reason): Likewise.
8875 * linux-x86-low.c (update_debug_registers_callback):
8876 Use lwp_is_stopped.
8877 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8878 lwp_stop_reason.
8879
b2f7c7e8
GB
88802015-03-24 Gary Benson <gbenson@redhat.com>
8881
8882 * linux-low.h (linux_stop_lwp): Remove declaration.
8883
6d4ee8c6
GB
88842015-03-24 Gary Benson <gbenson@redhat.com>
8885
8886 * linux-low.h: Include nat/linux-nat.h.
8887 * linux-low.c (iterate_over_lwps_args): New structure.
8888 (iterate_over_lwps_filter): New function.
8889 (iterate_over_lwps): Likewise.
8890 * linux-x86-low.c (update_debug_registers_callback):
8891 Update signature to what iterate_over_lwps expects.
8892 Remove PID check that iterate_over_lwps now performs.
8893 (x86_dr_low_set_addr): Use iterate_over_lwps.
8894 (x86_dr_low_set_control): Likewise.
8895
70a0bb6b
GB
88962015-03-24 Gary Benson <gbenson@redhat.com>
8897
8898 * linux-x86-low.c (x86_debug_reg_state): New function.
8899 (x86_linux_prepare_to_resume): Use the above.
8900
7b669087
GB
89012015-03-24 Gary Benson <gbenson@redhat.com>
8902
8903 * linux-low.c (current_lwp_ptid): New function.
8904 * linux-x86-low.c: Include nat/linux-nat.h.
8905 (x86_dr_low_get_addr): Use current_lwp_ptid.
8906 (x86_dr_low_get_control): Likewise.
8907 (x86_dr_low_get_status): Likewise.
8908
eef49a3d
PA
89092015-03-20 Pedro Alves <palves@redhat.com>
8910
8911 * tracepoint.c (cmd_qtstatus): Make "str" const.
8912
b2333d22
PA
89132015-03-20 Pedro Alves <palves@redhat.com>
8914
8915 * server.c (handle_general_set): Make "req_str" const.
8916
23f238d3
PA
89172015-03-19 Pedro Alves <palves@redhat.com>
8918
8919 * linux-low.c (linux_resume_one_lwp): Rename to ...
8920 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8921 instead call perror_with_name.
8922 (check_ptrace_stopped_lwp_gone): New function.
8923 (linux_resume_one_lwp): Reimplement as wrapper around
8924 linux_resume_one_lwp_throw that swallows errors if the LWP is
8925 gone.
8926
91baf43f
PA
89272015-03-19 Pedro Alves <palves@redhat.com>
8928
8929 * linux-low.c (count_events_callback, select_event_lwp_callback):
8930 No longer check whether the thread has resume_stop as last resume
8931 kind.
8932
8bf3b159
PA
89332015-03-19 Pedro Alves <palves@redhat.com>
8934
8935 * linux-low.c (count_events_callback, select_event_lwp_callback):
8936 Use the lwp's status_pending_p field, not the thread's.
8937
b90fc188
PA
89382015-03-19 Pedro Alves <palves@redhat.com>
8939
8940 * linux-low.c (select_event_lwp_callback): Update comments to
8941 no longer mention SIGTRAP.
8942
464b0089
GB
89432015-03-18 Gary Benson <gbenson@redhat.com>
8944
8945 * server.c (handle_query): Do not report vFile:fstat as supported.
8946
aa9e327f
GB
89472015-03-11 Gary Benson <gbenson@redhat.com>
8948
8949 * hostio.c (sys/types.h): New include.
8950 (sys/stat.h): Likewise.
8951 (common-remote-fileio.h): Likewise.
8952 (handle_fstat): New function.
8953 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 8954
791c0056
GB
89552015-03-11 Gary Benson <gbenson@redhat.com>
8956
8957 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8958 struct stat.st_blocks and struct stat.st_blksize.
8959 * configure: Regenerate.
8960 * config.in: Likewise.
8961 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8962 (OBS): Add common-remote-fileio.o.
8963 (common-remote-fileio.o): New rule.
8964
9a9df970
PA
89652015-03-09 Pedro Alves <palves@redhat.com>
8966
8967 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8968 'struct sockaddr' pointer in 'accept' call.
8969
9eb1356e
PA
89702015-03-09 Pedro Alves <palves@redhat.com>
8971
8972 Revert:
8973 2015-03-07 Pedro Alves <palves@redhat.com>
8974 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8975 or <winsock2.h> here. Instead include "gdb_socket.h".
8976 (remote_open): Use union gdb_sockaddr_u.
8977 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8978 or <winsock2.h> here. Instead include "gdb_socket.h".
8979 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8980 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8981 or <sys/un.h>.
8982 (init_named_socket, gdb_agent_helper_thread): Use union
8983 gdb_sockaddr_u.
8984
aac331e4
PA
89852015-03-07 Pedro Alves <palves@redhat.com>
8986
8987 * configure.ac (build_warnings): Move
8988 -Wdeclaration-after-statement to the C-specific set.
8989 * configure: Regenerate.
8990
366c75fc
PA
89912015-03-07 Pedro Alves <palves@redhat.com>
8992
8993 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8994 or <winsock2.h> here. Instead include "gdb_socket.h".
8995 (remote_open): Use union gdb_sockaddr_u.
8996 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8997 or <winsock2.h> here. Instead include "gdb_socket.h".
8998 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8999 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9000 or <sys/un.h>.
9001 (init_named_socket, gdb_agent_helper_thread): Use union
9002 gdb_sockaddr_u.
9003
492d29ea
PA
90042015-03-07 Pedro Alves <palves@redhat.com>
9005
9006 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9007 instead.
9008
60a191ed
YQ
90092015-03-06 Yao Qi <yao.qi@linaro.org>
9010
9011 * linux-aarch64-low.c (aarch64_insert_point): Use
9012 show_debug_regs as a boolean.
9013 (aarch64_remove_point): Likewise.
9014
f5771b1d
PA
90152015-03-05 Pedro Alves <palves@redhat.com>
9016
9017 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9018 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9019 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9020 * nto-low.c (nto_target_ops): Likewise.
9021 * spu-low.c (spu_target_ops): Likewise.
9022 * win32-low.c (win32_target_ops): Likewise.
9023
3e572f71
PA
90242015-03-04 Pedro Alves <palves@redhat.com>
9025
72f4393d 9026 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
9027 Decide whether a breakpoint triggered based on the SIGTRAP's
9028 siginfo.si_code.
72f4393d
L
9029 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9030 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
9031 (linux_low_filter_event): Check for breakpoints before checking
9032 watchpoints.
9033 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9034 siginfo.si_code.
72f4393d
L
9035 (linux_stopped_by_sw_breakpoint)
9036 (linux_supports_stopped_by_sw_breakpoint)
9037 (linux_stopped_by_hw_breakpoint)
9038 (linux_supports_stopped_by_hw_breakpoint): New functions.
9039 (linux_target_ops): Install new target methods.
3e572f71 9040
1ec68e26
PA
90412015-03-04 Pedro Alves <palves@redhat.com>
9042
9043 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9044 * server.c (swbreak_feature, hwbreak_feature): New globals.
9045 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9046 (captured_main): Clear swbreak_feature and hwbreak_feature.
9047 * server.h (swbreak_feature, hwbreak_feature): Declare.
9048 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9049 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9050 supports_stopped_by_hw_breakpoint>: New fields.
9051 (target_supports_stopped_by_sw_breakpoint)
9052 (target_stopped_by_sw_breakpoint)
9053 (target_supports_stopped_by_hw_breakpoint)
9054 (target_stopped_by_hw_breakpoint): Declare.
9055
15c66dd6
PA
90562015-03-04 Pedro Alves <palves@redhat.com>
9057
9058 enum lwp_stop_reason -> enum target_stop_reason
9059 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9060 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9061 (linux_wait_1, stuck_in_jump_pad_callback)
9062 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9063 (linux_stopped_by_watchpoint):
9064 * linux-low.h (enum lwp_stop_reason): Delete.
9065 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9066 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9067
98fc70d6
YQ
90682015-03-04 Yao Qi <yao.qi@linaro.org>
9069
9070 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9071
dd2ac174
GB
90722015-03-03 Gary Benson <gbenson@redhat.com>
9073
9074 * hostio.c (handle_vFile): Fix prefix lengths.
9075
d68e53f4
MM
90762015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9077
9078 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9079 ptr_bits.
9080
bf2d68ab
AA
90812015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9082
9083 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9084 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9085 (clean): Add "rm -f" for above C files.
9086 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9087 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9088 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9089 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9090 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9091 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9092 (init_registers_s390x_vx_linux64)
9093 (init_registers_s390x_tevx_linux64)
9094 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9095 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9096 declarations.
9097 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9098 (s390_store_vxrs_high): New functions.
9099 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9100 NT_S390_VXRS_HIGH.
9101 (s390_arch_setup): Add logic for selecting one of the new target
9102 descriptions. Activate the new vector regsets if applicable.
9103 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9104 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9105 and init_registers_s390x_tevx_linux64.
9106
c966a859
PA
91072015-03-01 Pedro Alves <palves@redhat.com>
9108
9109 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9110 parameter.
9111
4180215b
PA
91122015-02-27 Pedro Alves <palves@redhat.com>
9113
9114 * linux-x86-low.c (u_debugreg_offset): New function.
9115 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9116
749bab01
PA
91172015-02-27 Pedro Alves <palves@redhat.com>
9118
9119 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9120 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9121 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9122 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9123 (ps_lsetfpregs, ps_getpid)
9124 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9125 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9126 (ps_lsetxregs, ps_plog): Declare.
9127
3c14e5a3
PA
91282015-02-27 Pedro Alves <palves@redhat.com>
9129
9130 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9131 IP_AGENT_EXPORT_FUNC.
9132 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9133 IP_AGENT_EXPORT_FUNC.
9134 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9135 (IP_AGENT_EXPORT): Delete.
9136 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9137 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9138 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9139 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9140 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9141 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9142 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9143 (traceframe_read_count, traceframe_write_count)
9144 (traceframes_created, trace_state_variables, get_raw_reg)
9145 (get_trace_state_variable_value, set_trace_state_variable_value)
9146 (ust_loaded, helper_thread_id, cmd_buf): Use
9147 IPA_SYM_EXPORTED_NAME.
9148 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9149 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9150 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9151 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9152 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9153 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9154 EXTERN_C_PUSH/EXTERN_C_POP.
9155 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9156 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9157 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9158 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9159 (traceframe_write_count, traceframe_read_count)
9160 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9161 (about_to_request_buffer_space, get_trace_state_variable_value)
9162 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9163 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9164 EXTERN_C_PUSH/EXTERN_C_POP.
9165 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9166 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9167 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9168 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9169 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9170 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9171 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9172 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9173 Define.
9174 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9175 (IP_AGENT_EXPORT_VAR_DECL): Define.
9176 (tracing): Declare.
9177 (gdb_agent_get_raw_reg): Declare.
9178
fe978cb0
PA
91792015-02-27 Tom Tromey <tromey@redhat.com>
9180 Pedro Alves <palves@redhat.com>
9181
9182 Rename symbols whose names are reserved C++ keywords throughout.
9183
3bc3d82a
PA
91842015-02-27 Pedro Alves <palves@redhat.com>
9185
9186 * Makefile.in (COMPILER): New, get it from autoconf.
9187 (CXX): Get from autoconf instead.
9188 (COMPILE.pre): Use COMPILER.
9189 (CC-LD): Rename to ...
9190 (CC_LD): ... this. Use COMPILER.
9191 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9192 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9193 * acinclude.m4: Include build-with-cxx.m4.
9194 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9195 Disable -Werror by default if building in C++ mode.
9196 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9197 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9198 the C++ compiler. Save/restore CXXFLAGS too.
9199 * configure: Regenerate.
9200
07697489
PA
92012015-02-27 Pedro Alves <palves@redhat.com>
9202
9203 * acinclude.m4: Include libiberty.m4.
9204 * configure.ac: Call libiberty_INIT.
9205 * config.in, configure: Regenerate.
9206
9beb7c4e
PA
92072015-02-26 Pedro Alves <palves@redhat.com>
9208
9209 * linux-low.c (linux_wait_1): When incrementing the PC past a
9210 program breakpoint always use the_low_target.breakpoint_len as
9211 increment, rather than the maximum between that and
9212 the_low_target.decr_pc_after_break.
9213
8090aef2
PA
92142015-02-23 Pedro Alves <palves@redhat.com>
9215
9216 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9217 thread was doing a step-over; always adjust the PC if
9218 we stepped over a permanent breakpoint.
9219 (linux_wait_1): If we stepped over breakpoint that was on top of a
9220 permanent breakpoint, manually advance the PC past it.
9221
bc9540e8
PA
92222015-02-23 Pedro Alves <palves@redhat.com>
9223
9224 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9225 modes.
9226 (x86_fill_gregset, x86_store_gregset): Use it when handling
9227 $orig_eax.
9228
2db9a427
PA
92292015-02-20 Pedro Alves <palves@redhat.com>
9230
9231 * thread-db.c: Include "nat/linux-procfs.h".
9232 (thread_db_init): Skip listing new threads if the kernel supports
9233 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9234
afa8d396
PA
92352015-02-20 Pedro Alves <palves@redhat.com>
9236
9237 * linux-low.c (status_pending_p_callback): Use ptid_match.
9238
c9587f88
AT
92392015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9240
9241 PR breakpoints/16812
9242 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9243 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9244 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9245
b05ec7a5
AT
92462015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9247
9248 PR breakpoints/15956
9249 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9250
d33501a5
MM
92512015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9252
9253 * linux-low.c (linux_low_btrace_conf): Print size.
9254 * server.c (handle_btrace_conf_general_set): New.
9255 (hanle_general_set): Call handle_btrace_conf_general_set.
9256 (handle_query): Report Qbtrace-conf:bts:size as supported.
9257
f4abbc16
MM
92582015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9259
9260 * linux-low.c (linux_low_enable_btrace): Update parameters.
9261 (linux_low_btrace_conf): New.
9262 (linux_target_ops)<to_btrace_conf>: Initialize.
9263 * server.c (current_btrace_conf): New.
9264 (handle_btrace_enable): Rename to ...
9265 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
9266 to target_enable_btrace. Update comment. Update users.
9267 (handle_qxfer_btrace_conf): New.
9268 (qxfer_packets): Add btrace-conf entry.
9269 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9270 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9271 (target_ops)<read_btrace_conf>: New.
9272 (target_enable_btrace): Update parameters.
9273 (target_read_btrace_conf): New.
9274
043c3577
MM
92752015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9276
9277 * server.c (handle_btrace_general_set): Remove call to
9278 target_supports_btrace.
9279 (supported_btrace_packets): New.
9280 (handle_query): Call supported_btrace_packets.
9281 * target.h: include btrace-common.h.
9282 (btrace_target_info): Removed.
9283 (supports_btrace, target_supports_btrace): Update parameters.
9284
734b0e4b
MM
92852015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9286
9287 * Makefile.in (SFILES): Add common/btrace-common.c.
9288 (OBS): Add common/btrace-common.o.
9289 (btrace-common.o): Add build rules.
9290 * linux-low: Include btrace-common.h.
9291 (linux_low_read_btrace): Use struct btrace_data. Call
9292 btrace_data_init and btrace_data_fini.
9293
d6c146e9
PA
92942015-02-06 Pedro Alves <palves@redhat.com>
9295
9296 * thread-db.c (find_new_threads_callback): Add debug output.
9297
20ba1ce6
PA
92982015-02-04 Pedro Alves <palves@redhat.com>
9299
9300 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9301 (resume_stopped_resumed_lwps): New function.
9302 (linux_wait_for_event_filtered): Use it.
9303
8cc73a39
SDJ
93042015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9305
9306 * Makefile.in (SFILES): Add linux-personality.c.
9307 (linux-personality.o): New rule.
9308 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9309 list of objects to be built.
9310 * linux-low.c: Include nat/linux-personality.h.
9311 (linux_create_inferior): Remove code to disable address space
9312 randomization (moved to ../nat/linux-personality.c). Create
9313 cleanup to disable address space randomization.
9314
fb23d554
SDJ
93152015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9316
9317 * Makefile.in (posix-strerror.o): New rule.
9318 (mingw-strerror.o): Likewise.
9319 * configure: Regenerated.
9320 * configure.ac: Source file ../common/common.host. Initialize new
9321 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9322
cdf43629
YQ
93232015-01-14 Yao Qi <yao@codesourcery.com>
9324
9325 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9326 (ppc-linux.o): New rule.
9327 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9328 * configure.ac: AC_CHECK_FUNCS(getauxval).
9329 * config.in: Re-generated.
9330 * configure: Re-generated.
9331 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9332 ppc64_64bit_inferior_p
9333
514c5338
YQ
93342015-01-14 Yao Qi <yao@codesourcery.com>
9335
9336 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9337 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9338 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9339 (PT_ORIG_R3, PT_TRAP): Likewise.
9340 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9341 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9342 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9343
3368c1e5
JB
93442015-01-10 Joel Brobecker <brobecker@adacore.com>
9345
9346 * i387-fp.c (i387_cache_to_xsave): In look over
9347 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9348 zmmh_low_space field by use of zmmh_high_space.
9349
582511be
PA
93502015-01-09 Pedro Alves <palves@redhat.com>
9351
9352 * linux-low.c (step_over_bkpt): Move higher up in the file.
9353 (handle_extended_wait): Don't store the stop_pc here.
9354 (get_stop_pc): Adjust comments and rename to ...
9355 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9356 stopped for a software breakpoint or hardware breakpoint.
9357 (thread_still_has_status_pending_p): New function.
9358 (status_pending_p_callback): Use
9359 thread_still_has_status_pending_p. If the event is no longer
9360 interesting, resume the LWP.
9361 (handle_tracepoints): Add assert.
9362 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9363 (wstatus_maybe_breakpoint): New function.
9364 (cancel_breakpoint): Delete function.
9365 (check_stopped_by_watchpoint): New function, factored out from
9366 linux_low_filter_event.
9367 (lp_status_maybe_breakpoint): Delete function.
9368 (linux_low_filter_event): Remove filter_ptid argument.
9369 Leave thread group exits pending here. Store the LWP's stop PC.
9370 Always leave events pending.
9371 (linux_wait_for_event_filtered): Pull all events out of the
9372 kernel, and leave them all pending.
9373 (count_events_callback, select_event_lwp_callback): Consider all
9374 events.
9375 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9376 (select_event_lwp): Only give preference to the stepping LWP in
9377 all-stop mode. Adjust comments.
9378 (ignore_event): New function.
9379 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9380 references to cancel_breakpoints. Adjust to renames. Also give
9381 equal priority to all LWPs that have had events in non-stop mode.
9382 If reporting a software breakpoint event, unadjust the LWP's PC.
9383 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9384 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9385 Adjust.
9386 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9387 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9388 (linux_stopped_by_watchpoint): Adjust.
9389 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9390 * linux-low.h (enum lwp_stop_reason): New.
9391 (struct lwp_info) <stop_pc>: Adjust comment.
9392 <stopped_by_watchpoint>: Delete field.
9393 <stop_reason>: New field.
9394 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9395 * mem-break.c (software_breakpoint_inserted_here)
9396 (hardware_breakpoint_inserted_here): New function.
9397 * mem-break.h (software_breakpoint_inserted_here)
9398 (hardware_breakpoint_inserted_here): Declare.
9399 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9400 (cancel_breakpoints): Delete.
9401 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9402 (upload_fast_traceframes): Remove references to
9403 cancel_breakpoints.
9404
a33e3959
PA
94052015-01-09 Pedro Alves <palves@redhat.com>
9406
9407 * thread-db.c (find_new_threads_callback): Ignore thread if the
9408 kernel thread ID is -1.
9409
8784d563
PA
94102015-01-09 Pedro Alves <palves@redhat.com>
9411
9412 * linux-low.c (linux_attach_fail_reason_string): Move to
9413 nat/linux-ptrace.c, and rename.
9414 (linux_attach_lwp): Update comment.
9415 (attach_proc_task_lwp_callback): New function.
9416 (linux_attach): Adjust to rename and use
9417 linux_proc_attach_tgid_threads.
9418 (linux_attach_fail_reason_string): Delete declaration.
9419
76f2b779
JB
94202015-01-01 Joel Brobecker <brobecker@adacore.com>
9421
9422 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9423 * server.c (gdbserver_version): Likewise.
9424
fafcc06a
SDJ
94252014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9426
9427 * remote-utils.c: Include ctype.h.
9428 (input_interrupt): Explicitly handle the case when the char
9429 received is the NUL byte. Improve the printing of non-ASCII
9430 characters.
9431
beed38b8
JB
94322014-12-16 Joel Brobecker <brobecker@adacore.com>
9433
9434 * linux-low.c (linux_low_filter_event): Update call to
9435 linux_enable_event_reporting following the addition of
9436 a new parameter to that function.
9437
bf330350
CU
94382014-12-16 Catalin Udma <catalin.udma@freescale.com>
9439
9440 PR server/17457
9441 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9442 (AARCH64_FPCR_REGNO): Likewise.
9443 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9444 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9445 (aarch64_store_fpregset): Likewise.
9446
5227d625
JB
94472014-12-15 Joel Brobecker <brobecker@adacore.com>
9448
9449 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9450 Remove FIXME comment about assumption about N.
9451
f93b65a0
JB
94522014-12-13 Joel Brobecker <brobecker@adacore.com>
9453
9454 * configure.ac: If large-file support is disabled in GDBserver,
9455 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9456 * configure: Regenerate.
9457
e5a9158d
AA
94582014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9459
9460 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9461 warning upon ENODATA from ptrace.
9462 * linux-s390-low.c (s390_store_tdb): New.
9463 (s390_regsets): Add regset for NT_S390_TDB.
9464
feea5f36
AA
94652014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9466
9467 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9468 without a fill_function.
9469 * linux-s390-low.c (s390_fill_last_break): Remove.
9470 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9471 (s390_arch_setup): Use regset's size instead of fill_function for
9472 loop end condition.
9473
098dbe61
AA
94742014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9475
9476 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9477 the regset's store function when ptrace returned an error.
9478 * regcache.c (get_thread_regcache): Invalidate register cache
9479 before fetching inferior's registers.
9480
28eef672
AA
94812014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9482
9483 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9484 while-loop as for-loop.
9485 (regsets_store_inferior_registers): Likewise.
9486
bdca27a2
YQ
94872014-11-28 Yao Qi <yao@codesourcery.com>
9488
9489 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9490 * config.in, configure: Re-generate.
9491 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9492 is defined.
9493
9c232dda
YQ
94942014-11-21 Yao Qi <yao@codesourcery.com>
9495
9496 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9497 (AC_CHECK_HEADERS): Remove malloc.h.
9498 * configure: Re-generated.
9499 * config.in: Re-generated.
9500 * server.h: Don't include alloca.h and malloc.h.
9501 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9502 Don't include malloc.h.
9503
43968415
JB
95042014-11-17 Joel Brobecker <brobecker@adacore.com>
9505
9506 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9507 corresponding ERRNO check in same block.
9508
40e91bc7
PA
95092014-11-12 Pedro Alves <palves@redhat.com>
9510
9511 * server.c (cont_thread): Update comment.
9512 (start_inferior, attach_inferior): No longer clear cont_thread.
9513 (handle_v_cont): No longer set cont_thread.
9514 (captured_main): Clear cont_thread each time a GDB connects.
9515
c2c118cf
PA
95162014-11-12 Pedro Alves <palves@redhat.com>
9517
9518 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9519 thread, and don't resume all threads if the Hc thread has exited.
9520
78708b7c
PA
95212014-11-12 Pedro Alves <palves@redhat.com>
9522
9523 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9524 the process group instead of to a specific LWP.
9525
a2abc7de
PA
95262014-10-15 Pedro Alves <palves@redhat.com>
9527
9528 PR server/17487
9529 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9530 parameter.
9531 (arm_set_thread_context): Delete.
9532 (the_low_target): Adjust.
9533 * win32-i386-low.c (debug_registers_changed)
9534 (debug_registers_used): Delete.
9535 (update_debug_registers_callback): New function.
9536 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9537 needing to update their debug registers.
9538 (win32_get_current_dr): New function.
9539 (x86_dr_low_get_addr, x86_dr_low_get_control)
9540 (x86_dr_low_get_status): Fetch the debug register from the thread
9541 record's context.
9542 (i386_initial_stuff): Adjust.
9543 (i386_get_thread_context): Remove current_event parameter. Don't
9544 clear debug_registers_changed nor copy DR values to
9545 debug_reg_state.
9546 (i386_set_thread_context): Delete.
9547 (i386_prepare_to_resume): New function.
9548 (i386_thread_added): Mark the thread as needing to update irs
9549 debug registers.
9550 (the_low_target): Remove i386_set_thread_context and install
9551 i386_prepare_to_resume.
9552 * win32-low.c (win32_get_thread_context): Adjust.
9553 (win32_set_thread_context): Use SetThreadContext
9554 directly.
9555 (win32_prepare_to_resume): New function.
9556 (win32_require_context): New function, factored out from ...
9557 (thread_rec): ... this.
9558 (continue_one_thread): Call win32_prepare_to_resume on each thread
9559 we're about to continue.
9560 (win32_resume): Call win32_prepare_to_resume on the event thread.
9561 * win32-low.h (struct win32_thread_info)
9562 <debug_registers_changed>: New field.
9563 (struct win32_target_ops): Change prototype of set_thread_context,
9564 delete set_thread_context and add prepare_to_resume.
9565 (win32_require_context): New declaration.
9566
a442d071
GB
95672014-10-08 Gary Benson <gbenson@redhat.com>
9568
9569 * server.h: Do not include common-exceptions.h.
9570
6f1947e8
GB
95712014-10-08 Gary Benson <gbenson@redhat.com>
9572
9573 * server.h: Do not include cleanups.h.
9574
63b434a4
JH
95752014-09-30 James Hogan <james.hogan@imgtec.com>
9576
9577 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9578 mips64-dsp-linux.c.
9579
c4d9ceb6
YQ
95802014-09-23 Yao Qi <yao@codesourcery.com>
9581
9582 * linux-low.c (lp_status_maybe_breakpoint): New function.
9583 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9584 (count_events_callback): Likewise.
9585 (select_event_lwp_callback): Likewise.
9586 (cancel_breakpoints_callback): Likewise.
9587
89a5711c
DB
95882014-09-19 Don Breazeal <donb@codesourcery.com>
9589
9590 * linux-low.c (handle_extended_wait): Call
9591 linux_ptrace_get_extended_event.
9592 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9593 linux_is_extended_waitstatus.
9594
bffc0964
JB
95952014-09-16 Joel Brobecker <brobecker@adacore.com>
9596
9597 * Makefile.in (CPPFLAGS): Define.
9598 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9599 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9600
0bfdf32f
GB
96012014-09-16 Gary Benson <gbenson@redhat.com>
9602
9603 * inferiors.h (current_inferior): Renamed as...
9604 (current_thread): New variable. All uses updated.
9605 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9606 (maybe_move_out_of_jump_pad): Likewise.
9607 (cancel_breakpoint): Likewise.
9608 (linux_low_filter_event): Likewise.
9609 (wait_for_sigstop): Likewise.
9610 (linux_resume_one_lwp): Likewise.
9611 (need_step_over_p): Likewise.
9612 (start_step_over): Likewise.
9613 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9614 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9615 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9616 and save_inferior as saved_thread.
9617 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9618 saved_thread.
9619 (regcache_invalidate_thread): Likewise.
9620 * remote-utils.c (prepare_resume_reply): Likewise.
9621 * thread-db.c (thread_db_get_tls_address): Likewise.
9622 (disable_thread_event_reporting): Likewise.
9623 (remove_thread_event_breakpoints): Likewise.
9624 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9625 as saved_thread.
9626 * target.h (set_desired_inferior): Renamed as...
9627 (set_desired_thread): New declaration. All uses updated.
9628 * server.c (myresume): Updated comment to reference thread instead
9629 of inferior.
9630 (handle_serial_event): Likewise.
9631 (handle_target_event): Likewise.
9632
361c8ade
GB
96332014-09-12 Tom Tromey <tromey@redhat.com>
9634 Gary Benson <gbenson@redhat.com>
9635
9636 * regcache.h: Include common-regcache.h.
9637 (regcache_read_pc): Don't declare.
9638 * regcache.c (get_thread_regcache_for_ptid): New function.
9639
bd9269f7
GB
96402014-09-11 Tom Tromey <tromey@redhat.com>
9641 Gary Benson <gbenson@redhat.com>
9642
9643 * symbol.c: New file.
9644 * Makefile.in (SFILES): Add symbol.c.
9645 (OBS): Add symbol.o.
9646
f8c1d06b
GB
96472014-09-11 Gary Benson <gbenson@redhat.com>
9648
9649 * target.c (target_stop_ptid, target_continue_ptid): New
9650 functions.
9651
721ec300
GB
96522014-09-11 Tom Tromey <tromey@redhat.com>
9653 Gary Benson <gbenson@redhat.com>
9654
9655 * target.h: Include target/target.h.
9656 * target.c (target_read_memory, target_read_uint32)
9657 (target_write_memory): New functions.
9658
c5e92cca
GB
96592014-09-11 Gary Benson <gbenson@redhat.com>
9660
9661 * server.h (debug_hw_points): Don't declare.
9662 * server.c (debug_hw_points): Don't define. Replace all uses
9663 with show_debug_regs.
9664 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9665 all uses with show_debug_regs.
9666
2e4bb98a
EBM
96672014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9668
9669 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9670 endianness into account.
9671 (ppc_supply_ptrace_register): Likewise.
9672
ac740bc7
JH
96732014-09-03 James Hogan <james.hogan@imgtec.com>
9674
9675 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9676 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9677
97ea6506
GB
96782014-09-03 Gary Benson <gbenson@redhat.com>
9679
9680 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9681 ALL_DEBUG_ADDRESS_REGISTERS.
9682
df7e5265
GB
96832014-09-02 Gary Benson <gbenson@redhat.com>
9684
9685 * i386-low.h: Renamed as...
9686 * x86-low.h: New file. All type, function and variable name
9687 prefixes changed from "i386_" to "x86_". All references updated.
9688 * i386-low.c: Renamed as...
9689 * x86-low.c: New file. All type, function and variable name
9690 prefixes changed from "i386_" to "x86_". All references updated.
9691
ed859da7
GB
96922014-09-02 Gary Benson <gbenson@redhat.com>
9693
9694 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9695 (x86_linux_new_thread): Likewise.
9696
860789c7
GB
96972014-08-29 Gary Benson <gbenson@redhat.com>
9698
9699 * server.h (setjmp.h): Do not include.
9700 (toplevel): Do not declare.
9701 (common-exceptions.h): Include.
9702 (cleanups.h): Likewise.
9703 * server.c (toplevel): Do not define.
9704 (exit_code): New static global.
9705 (detach_or_kill_for_exit_cleanup): New function.
9706 (main): New function. Original main renamed to...
9707 (captured_main): New function.
9708 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9709
ff55e1b5
GB
97102014-08-29 Gary Benson <gbenson@redhat.com>
9711
9712 * Makefile.in (SFILES): Add common/common-exceptions.c.
9713 (OBS): Add common-exceptions.o.
9714 (common-exceptions.o): New rule.
9715 * utils.c (prepare_to_throw_exception): New function.
9716
e9bcb658
GB
97172014-08-29 Gary Benson <gbenson@redhat.com>
9718
9719 * config.in: Regenerate.
9720 * configure: Likewise.
9721
e3180625
GB
97222014-08-29 Gary Benson <gbenson@redhat.com>
9723
9724 * Makefile.in (SFILES): Add common/cleanups.c.
9725 (OBS): cleanups.o.
9726 (cleanups.o): New rule.
9727
e3d6ba5d
GB
97282014-08-29 Gary Benson <gbenson@redhat.com>
9729
9730 * utils.c (internal_vwarning): New function.
9731
7096e886
GB
97322014-08-28 Gary Benson <gbenson@redhat.com>
9733
9734 * utils.h (fatal): Remove declaration.
9735 * utils.c (fatal): Remove function.
9736
14ce3192
GB
97372014-08-28 Gary Benson <gbenson@redhat.com>
9738
9739 * tracepoint.c (gdb_agent_init): Replace fatal with
9740 perror_with_name.
9741 (initialize_tracepoint): Likewise.
9742
50278d59
GB
97432014-08-28 Gary Benson <gbenson@redhat.com>
9744
9745 * remote-utils.c (remote_prepare): Replace fatal with error.
9746
aa96c426
GB
97472014-08-28 Gary Benson <gbenson@redhat.com>
9748
9749 * linux-low.c (linux_async): Replace fatal with warning.
9750 Tidy up and return.
9751 (linux_start_non_stop): Return -1 if linux_async failed.
9752
f7160e97
GB
97532014-08-28 Gary Benson <gbenson@redhat.com>
9754
9755 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9756 gdb_assert.
9757 (i386_dr_low_get_addr): Remove vague comment.
9758 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9759 gdb_assert.
9760
38e08fca
GB
97612014-08-28 Gary Benson <gbenson@redhat.com>
9762
9763 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9764 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9765 internal_error.
9766 (linux_resume_one_lwp): Likewise.
9767 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9768 gdb_assert.
9769 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9770 with internal_error.
9771 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9772 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9773 (find_register_by_name): Replace fatal with internal_error.
9774 (find_regno): Likewise.
9775 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9776 * thread-db.c (thread_db_create_event): Likewise.
9777 (thread_db_load_search): Likewise.
9778 (try_thread_db_load_1): Likewise.
9779 * tracepoint.c (get_jump_space_head): Replace fatal with
9780 internal_error.
9781 (claim_trampoline_space): Likewise.
9782 (have_fast_tracepoint_trampoline_buffer): Likewise.
9783 (cmd_qtstart): Likewise.
9784 (stop_tracing): Likewise.
9785 (fast_tracepoint_collecting): Likewise.
9786 (target_malloc): Likewise.
9787 (download_tracepoint): Likewise.
9788 (download_trace_state_variables): Replace check with gdb_assert.
9789 (upload_fast_traceframes): Replace fatal with internal_error.
9790
34abf635
GB
97912014-08-19 Tom Tromey <tromey@redhat.com>
9792 Gary Benson <gbenson@redhat.com>
9793
9794 * Makefile.in (SFILES): Add common/common-debug.c.
9795 (OBS): Add common-debug.o.
9796 (common-debug.o): New rule.
9797 * debug.h (debug_printf): Don't declare.
9798 * debug.c (debug_printf): Renamed and rewritten as...
9799 (debug_vprintf): New function.
9800
f6e94d78
GB
98012014-08-19 Gary Benson <gbenson@redhat.com>
9802
9803 * utils.h: Do not include print-utils.h.
9804
9239eeab
GB
98052014-08-19 Tom Tromey <tromey@redhat.com>
9806 Gary Benson <gbenson@redhat.com>
9807
9808 * server.h: Add static assertion.
9809 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9810
ef87c8bb
GB
98112014-08-19 Tom Tromey <tromey@redhat.com>
9812 Gary Benson <gbenson@redhat.com>
9813
9814 * Makefile.in (SFILES): Add common/errors.c.
9815 (OBS): Add errors.o.
9816 (IPA_OBS): Add errors-ipa.o.
9817 (errors.o): New rule.
9818 (errors-ipa.o): Likewise.
9819 * utils.h (perror_with_name, error, warning): Don't declare.
9820 * utils.c (warning): Renamed and rewritten as...
9821 (vwarning): New function.
9822 (error): Renamed and rewritten as...
9823 (verror): New function.
9824 (internal_error): Renamed and rewritten as...
9825 (internal_verror): New function.
9826
bb974a24
GB
98272014-08-07 Gary Benson <gbenson@redhat.com>
9828
9829 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9830 * configure: Regenerate.
9831 * config.in: Likewise.
9832 * server.h: Do not include errno.h.
9833 * event-loop.c: Likewise.
9834 * hostio-errno.c: Likewise.
9835 * linux-low.c: Likewise.
9836 * remote-utils.c: Likewise.
9837 * spu-low.c: Likewise.
9838 * utils.c: Likewise.
9839 * gdbreplay.c: Unconditionally include errno.h.
9840
6d3d12eb
GB
98412014-08-07 Gary Benson <gbenson@redhat.com>
9842
9843 * server.h: Do not include string.h.
9844 * event-loop.c: Likewise.
9845 * linux-low.c: Likewise.
9846 * regcache.c: Likewise.
9847 * remote-utils.c: Likewise.
9848 * spu-low.c: Likewise.
9849 * utils.c: Likewise.
9850
dccbb609
GB
98512014-08-07 Gary Benson <gbenson@redhat.com>
9852
9853 * server.h: Do not include gdb_assert.h.
9854
e76df0d0
GB
98552014-08-07 Gary Benson <gbenson@redhat.com>
9856
9857 * server.h: Do not include common-utils.h.
9858
4cb9c816
GB
98592014-08-07 Gary Benson <gbenson@redhat.com>
9860
9861 * server.h: Do not include ptid.h.
9862 * notif.h: Likewise.
9863
3995eeee
GB
98642014-08-07 Gary Benson <gbenson@redhat.com>
9865
9866 * server.h: Do not include gdb_locale.h.
9867
cb9f1a9b
GB
98682014-08-07 Gary Benson <gbenson@redhat.com>
9869
9870 * server.h: Do not include gdb/signals.h.
9871 * win32-low.c: Likewise.
9872
a5fceff8
GB
98732014-08-07 Gary Benson <gbenson@redhat.com>
9874
9875 * server.h: Do not include pathmax.h.
9876
b9391142
GB
98772014-08-07 Gary Benson <gbenson@redhat.com>
9878
9879 * server.h: Do not include libiberty.h.
9880 * linux-bfin-low.c: Likewise.
9881
0e443c87
GB
98822014-08-07 Gary Benson <gbenson@redhat.com>
9883
9884 * server.h: Do not include ansidecl.h.
9885
8ebb3f56
GB
98862014-08-07 Gary Benson <gbenson@redhat.com>
9887
9888 * linux-x86-low.c: Do not include stddef.h.
9889 * lynx-ppc-low.c: Likewise.
9890 * tracepoint.c: Likewise.
9891
8980bdf6
GB
98922014-08-07 Gary Benson <gbenson@redhat.com>
9893
9894 * server.h: Do not include stdarg.h.
9895 * nto-low.c: Likewise.
9896
d7096f71
GB
98972014-08-07 Gary Benson <gbenson@redhat.com>
9898
9899 * server.h: Do not include stdlib.h.
9900 * inferiors.c: Likewise.
9901 * linux-low.c: Likewise.
9902 * regcache.c: Likewise.
9903 * spu-low.c: Likewise.
9904 * tracepoint.c: Likewise.
9905 * utils.c: Likewise.
9906
d02f550d
GB
99072014-08-07 Gary Benson <gbenson@redhat.com>
9908
9909 * server.h: Do not include stdio.h.
9910 * linux-low.c: Likewise.
9911 * remote-utils.c: Likewise.
9912 * spu-low.c: Likewise.
9913 * utils.c: Likewise.
9914 * wincecompat.c: Likewise.
9915
87f6c4e3
GB
99162014-08-06 Gary Benson <gbenson@redhat.com>
9917
9918 * regcache.c (init_register_cache): Move conditionals inside if.
9919
7089dca4
GB
99202014-08-06 Gary Benson <gbenson@redhat.com>
9921
9922 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9923
462f517e
GB
99242014-07-31 Gary Benson <gbenson@redhat.com>
9925
9926 * ax.h: Do not include server.h.
9927 * gdbthread.h: Likewise.
9928 * lynx-low.h: Likewise.
9929 * notif.h: Likewise.
9930
976411d6
GB
99312014-07-30 Gary Benson <gbenson@redhat.com>
9932
9933 * server.h: Include common-defs.h.
9934 Do not include config.h or build-gnulib-gdbserver/config.h.
9935
d41f6d8e
GB
99362014-07-30 Gary Benson <gbenson@redhat.com>
9937
9938 * hostio-errno.c: Move server.h to top of includes list.
9939 * inferiors.c: Likewise.
9940 * linux-x86-low.c: Likewise.
9941 * notif.c: Include server.h.
9942
314c6a35
TT
99432014-07-24 Tom Tromey <tromey@redhat.com>
9944 Gary Benson <gbenson@redhat.com>
9945
9946 * server.h (CORE_ADDR): Now unsigned.
9947
69ff6be5
PA
99482014-07-16 Pedro Alves <palves@redhat.com>
9949
9950 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9951
ce9e3fe7
PA
99522014-07-15 Pedro Alves <palves@redhat.com>
9953
9954 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9955 copy.
9956
e76126e8
PA
99572014-07-11 Pedro Alves <palves@redhat.com>
9958
9959 * linux-low.c (kill_wait_lwp): New function, based on
9960 kill_one_lwp_callback, but use my_waitpid directly.
9961 (kill_one_lwp_callback, linux_kill): Use it.
9962
8e9db26e
PA
99632014-06-23 Pedro Alves <palves@redhat.com>
9964
9965 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9966 before setting DR0..DR3.
9967
698b3e08
GB
99682014-06-20 Gary Benson <gbenson@redhat.com>
9969
9970 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9971 * configure: Regenerated.
9972 * config.in: Likewise.
9973
125f8a3d
GB
99742014-06-20 Gary Benson <gbenson@redhat.com>
9975
9976 * Makefile.in (SFILES): Update locations for files moved
9977 from common to nat.
9978 (object file files): Reordered.
9979
42995dbd
GB
99802014-06-20 Gary Benson <gbenson@redhat.com>
9981
9982 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9983 (i386_dr_low_set_addr): Likewise.
9984 (i386_dr_low_get_addr): Likewise.
9985 (i386_dr_low_can_set_control): Likewise.
9986 (i386_dr_low_set_control): Likewise.
9987 (i386_dr_low_get_control): Likewise.
9988 (i386_dr_low_get_status): Likewise.
9989 (i386_get_debug_register_length): Likewise.
9990 * linux-x86-low.c (i386_dr_low_set_addr):
9991 Changed signature. Made static.
9992 (i386_dr_low_get_addr): Likewise.
9993 (i386_dr_low_set_control): Likewise.
9994 (i386_dr_low_get_control): Likewise.
9995 (i386_dr_low_get_status): Likewise.
9996 (i386_dr_low): New global variable.
9997 * win32-i386-low.c (i386_dr_low_set_addr):
9998 Changed signature. Made static.
9999 (i386_dr_low_get_addr): Likewise.
10000 (i386_dr_low_set_control): Likewise.
10001 (i386_dr_low_get_control): Likewise.
10002 (i386_dr_low_get_status): Likewise.
10003 (i386_dr_low): New global variable.
10004
e1d2394b
MS
100052014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10006
10007 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10008 * Makefile.in (AR, AR_FLAGS): Define.
10009 * configure: Regenerate.
10010
3a8ee006
GB
100112014-06-19 Gary Benson <gbenson@redhat.com>
10012
10013 * Makefile.in (i386-dregs.o): New rule.
10014 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10015 * i386-low.c (target.h): Remove include.
10016 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10017 (DR_CONTROL_SHIFT): Likewise.
10018 (DR_CONTROL_SIZE): Likewise.
10019 (DR_RW_EXECUTE): Likewise.
10020 (DR_RW_WRITE): Likewise.
10021 (DR_RW_READ): Likewise.
10022 (DR_RW_IORW): Likewise.
10023 (DR_LEN_1): Likewise.
10024 (DR_LEN_2): Likewise.
10025 (DR_LEN_4): Likewise.
10026 (DR_LEN_8): Likewise.
10027 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10028 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10029 (DR_ENABLE_SIZE): Likewise.
10030 (DR_LOCAL_SLOWDOWN): Likewise.
10031 (DR_GLOBAL_SLOWDOWN): Likewise.
10032 (DR_CONTROL_RESERVED): Likewise.
10033 (I386_DR_CONTROL_MASK): Likewise.
10034 (I386_DR_VACANT): Likewise.
10035 (I386_DR_LOCAL_ENABLE): Likewise.
10036 (I386_DR_GLOBAL_ENABLE): Likewise.
10037 (I386_DR_DISABLE): Likewise.
10038 (I386_DR_SET_RW_LEN): Likewise.
10039 (I386_DR_GET_RW_LEN): Likewise.
10040 (I386_DR_WATCH_HIT): Likewise.
10041 (i386_wp_op_t): Likewise.
10042 (i386_show_dr): Likewise.
10043 (i386_length_and_rw_bits): Likewise.
10044 (i386_insert_aligned_watchpoint): Likewise.
10045 (i386_remove_aligned_watchpoint): Likewise.
10046 (i386_handle_nonaligned_watchpoint): Likewise.
10047 i386_update_inferior_debug_regs(): Likewise.
10048 (i386_dr_insert_watchpoint): Likewise.
10049 (i386_dr_remove_watchpoint): Likewise.
10050 (i386_dr_region_ok_for_watchpoint): Likewise.
10051 (i386_dr_stopped_data_address): Likewise.
10052 (i386_dr_stopped_by_watchpoint): Likewise.
10053
8f26655c
GB
100542014-06-19 Gary Benson <gbenson@redhat.com>
10055
10056 * i386-low.c (i386_dr_show): Renamed to
10057 i386_show_dr and made static. All uses updated.
10058 (i386_dr_length_and_rw_bits): Renamed to
10059 i386_length_and_rw_bits and made static.
10060 All uses updated.
10061 (i386_dr_insert_aligned_watchpoint): Renamed to
10062 i386_insert_aligned_watchpoint and made static.
10063 All uses updated.
10064 (i386_dr_remove_aligned_watchpoint): Renamed to
10065 i386_remove_aligned_watchpoint and made static.
10066 All uses updated.
10067 (i386_dr_update_inferior_debug_regs): Renamed to
10068 i386_update_inferior_debug_regs and made static.
10069 All uses updated.
10070
b9228891
GB
100712014-06-18 Gary Benson <gbenson@redhat.com>
10072
5171def3
GB
10073 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10074 (i386_dr_low_can_set_control): Likewise.
10075 (i386_get_debug_register_length): Likewise.
10076 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10077 (i386_dr_low_can_set_control): Likewise.
10078 (i386_get_debug_register_length): Likewise.
10079
100802014-06-17 Gary Benson <gbenson@redhat.com>
10081
b9228891
GB
10082 * i386-low.h (i386-dregs.h): New include.
10083 (DR_FIRSTADDR): Now in i386-dregs.h.
10084 (DR_LASTADDR): Likewise.
10085 (DR_NADDR): Likewise.
10086 (DR_STATUS): Likewise.
10087 (DR_CONTROL): Likewise.
10088 (i386_debug_reg_state): Likewise.
10089 (i386_dr_insert_watchpoint): Likewise.
10090 (i386_dr_remove_watchpoint): Likewise.
10091 (i386_dr_region_ok_for_watchpoint): Likewise.
10092 (i386_dr_stopped_data_address): Likewise.
10093 (i386_dr_stopped_by_watchpoint): Likewise.
10094 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10095
4be83cc2
GB
100962014-06-18 Gary Benson <gbenson@redhat.com>
10097
10098 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10099 i386_dr_insert_watchpoint.
10100 (i386_low_remove_watchpoint): Renamed to
10101 i386_dr_remove_watchpoint.
10102 (i386_low_region_ok_for_watchpoint): Renamed to
10103 i386_dr_region_ok_for_watchpoint.
10104 (i386_low_stopped_data_address): Renamed to
10105 i386_dr_stopped_data_address.
10106 (i386_low_stopped_by_watchpoint): Renamed to
10107 i386_dr_stopped_by_watchpoint.
10108 * i386-low.c (i386_show_dr): Renamed to
10109 i386_dr_show and made nonstatic. All uses updated.
10110 (i386_length_and_rw_bits): Renamed to
10111 i386_dr_length_and_rw_bits and made nonstatic.
10112 All uses updated.
10113 (i386_insert_aligned_watchpoint): Renamed to
10114 i386_dr_insert_aligned_watchpoint and made nonstatic.
10115 All uses updated.
10116 (i386_remove_aligned_watchpoint): Renamed to
10117 i386_dr_remove_aligned_watchpoint and made nonstatic.
10118 All uses updated.
10119 (i386_update_inferior_debug_regs): Renamed to
10120 i386_dr_update_inferior_debug_regs and made nonstatic.
10121 All uses updated.
10122 (i386_low_insert_watchpoint): Renamed to
10123 i386_dr_insert_watchpoint. All uses updated.
10124 (i386_low_remove_watchpoint): Renamed to
10125 i386_dr_remove_watchpoint. All uses updated.
10126 (i386_low_region_ok_for_watchpoint): Renamed to
10127 i386_dr_region_ok_for_watchpoint. All uses updated.
10128 (i386_low_stopped_data_address): Renamed to
10129 i386_dr_stopped_data_address. All uses updated.
10130 (i386_low_stopped_by_watchpoint): Renamed to
10131 i386_dr_stopped_by_watchpoint. All uses updated.
10132
131aa0d4
GB
101332014-06-18 Gary Benson <gbenson@redhat.com>
10134
10135 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10136 (i386_dr_low_can_set_control): Likewise.
10137 (i386_insert_aligned_watchpoint): New check.
10138
d9305f7f
GB
101392014-06-18 Gary Benson <gbenson@redhat.com>
10140
10141 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10142 Renamed to state.
10143
e927c9fc
GB
101442014-06-18 Gary Benson <gbenson@redhat.com>
10145
10146 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10147 instead of fatal and error.
10148 (i386_handle_nonaligned_watchpoint): Likewise.
10149
1b6d4134
GB
101502014-06-18 Gary Benson <gbenson@redhat.com>
10151
10152 * i386-low.c (i386_get_debug_register_length): New macro.
10153 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10154 (i386_show_dr): Use debug_printf instead of fprintf. Use
10155 phex to format values.
10156
6e62758f
GB
101572014-06-18 Gary Benson <gbenson@redhat.com>
10158
10159 * i386-low.h: Comment changes.
10160 * i386-low.c: Likewise.
10161
fc6e2f03
GB
101622014-06-18 Gary Benson <gbenson@redhat.com>
10163
10164 * i386-low.c: Whitespace changes.
10165
f9d1eeed
TT
101662014-06-12 Tom Tromey <tromey@redhat.com>
10167
10168 * utils.c (freeargv): Remove.
10169
0b04e523
TT
101702014-06-12 Tom Tromey <tromey@redhat.com>
10171
10172 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10173 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10174 (parse_debug_format_options): Likewise.
10175 (gdbserver_usage): Likewise.
10176 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10177 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10178 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10179 against libiberty.
10180 ($(LIBGNU)): Depend on libiberty.
10181 (all-lib): Recurse into all subdirs.
10182 (install-only): Invoke "install" target in subdirs.
10183 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10184 targets.
10185 * configure: Rebuild.
10186 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10187 for vasprintf, vsnprintf, or gettimeofday.
10188 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10189 srv_tgtobj.
10190
270c9937
JB
101912014-06-05 Joel Brobecker <brobecker@adacore.com>
10192
10193 * development.sh: Delete.
10194 * Makefile.in (config.status): Adjust dependency on development.sh.
10195 * configure.ac: Adjust development.sh source call.
10196 * configure: Regenerate.
10197
0a261ed8
PA
101982014-06-02 Pedro Alves <palves@redhat.com>
10199
10200 * ax.c (gdb_free_agent_expr): New function.
10201 * ax.h (gdb_free_agent_expr): New declaration.
10202 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10203 list.
10204 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10205 static.
10206 (clear_breakpoint_conditions_and_commands): New function.
10207 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10208 (clear_breakpoint_conditions_and_commands): New declaration.
10209
e9dae05e
RR
102102014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10211
10212 * linux-aarch64-low.c (asm/ptrace.h): Include.
10213
5876f503
JK
102142014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10215
10216 Fix TLS access for -static -pthread.
10217 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10218 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10219 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10220
802e8e6d
PA
102212014-05-20 Pedro Alves <palves@redhat.com>
10222
10223 * linux-aarch64-low.c (aarch64_insert_point)
10224 (aarch64_remove_point): No longer check whether the type is
10225 supported here. Adjust to new interface.
10226 (the_low_target): Install aarch64_supports_z_point_type as
10227 supports_z_point_type method.
10228 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10229 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10230 instead of a Z packet char. Adjust.
10231 (arm_supports_z_point_type): New function.
10232 (arm_insert_point, arm_remove_point): Adjust to new interface.
10233 (the_low_target): Install arm_supports_z_point_type.
10234 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10235 (cris_insert_point, cris_remove_point): Adjust to new interface.
10236 Don't check whether the type is supported here.
10237 (the_low_target): Install cris_supports_z_point_type.
10238 * linux-low.c (linux_supports_z_point_type): New function.
10239 (linux_insert_point, linux_remove_point): Adjust to new interface.
10240 * linux-low.h (struct linux_target_ops) <insert_point,
10241 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10242 raw_breakpoint pointer parameter.
10243 <supports_z_point_type>: New method.
10244 * linux-mips-low.c (mips_supports_z_point_type): New function.
10245 (mips_insert_point, mips_remove_point): Adjust to new interface.
10246 Use mips_supports_z_point_type.
10247 (the_low_target): Install mips_supports_z_point_type.
10248 * linux-ppc-low.c (the_low_target): Install NULL as
10249 supports_z_point_type method.
10250 * linux-s390-low.c (the_low_target): Install NULL as
10251 supports_z_point_type method.
10252 * linux-sparc-low.c (the_low_target): Install NULL as
10253 supports_z_point_type method.
10254 * linux-x86-low.c (x86_supports_z_point_type): New function.
10255 (x86_insert_point): Adjust to new insert_point interface. Use
10256 insert_memory_breakpoint. Adjust to new
10257 i386_low_insert_watchpoint interface.
10258 (x86_remove_point): Adjust to remove_point interface. Use
10259 remove_memory_breakpoint. Adjust to new
10260 i386_low_remove_watchpoint interface.
10261 (the_low_target): Install x86_supports_z_point_type.
10262 * lynx-low.c (lynx_target_ops): Install NULL as
10263 supports_z_point_type callback.
10264 * nto-low.c (nto_supports_z_point_type): New.
10265 (nto_insert_point, nto_remove_point): Adjust to new interface.
10266 (nto_target_ops): Install nto_supports_z_point_type.
10267 * mem-break.c: Adjust intro comment.
10268 (struct raw_breakpoint) <raw_type, size>: New fields.
10269 <inserted>: Update comment.
10270 <shlib_disabled>: Delete field.
10271 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10272 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10273 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10274 (raw_bkpt_type_to_target_hw_bp_type): New function.
10275 (find_enabled_raw_code_breakpoint_at): New function.
10276 (find_raw_breakpoint_at): New type and size parameters. Use them.
10277 (insert_memory_breakpoint): New function, based off
10278 set_raw_breakpoint_at.
10279 (remove_memory_breakpoint): New function.
10280 (set_raw_breakpoint_at): Reimplement.
10281 (set_breakpoint): New, based on set_breakpoint_at.
10282 (set_breakpoint_at): Reimplement.
10283 (delete_raw_breakpoint): Go through the_target->remove_point
10284 instead of assuming memory breakpoints.
10285 (find_gdb_breakpoint_at): Delete.
10286 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10287 (find_gdb_breakpoint): New function.
10288 (set_gdb_breakpoint_at): Delete.
10289 (z_type_supported): New function.
10290 (set_gdb_breakpoint_1): New function, loosely based off
10291 set_gdb_breakpoint_at.
10292 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10293 (delete_gdb_breakpoint_at): Delete.
10294 (delete_gdb_breakpoint_1): New function, loosely based off
10295 delete_gdb_breakpoint_at.
10296 (delete_gdb_breakpoint): New function.
10297 (clear_gdb_breakpoint_conditions): Rename to ...
10298 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10299 breakpoint.
10300 (add_condition_to_breakpoint): Make static.
10301 (add_breakpoint_condition): Take a struct breakpoint pointer
10302 instead of an address. Adjust.
10303 (gdb_condition_true_at_breakpoint): Rename to ...
10304 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10305 z_type parameter.
10306 (gdb_condition_true_at_breakpoint): Reimplement.
10307 (add_breakpoint_commands): Take a struct breakpoint pointer
10308 instead of an address. Adjust.
10309 (gdb_no_commands_at_breakpoint): Rename to ...
10310 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10311 parameter. Return true if no breakpoint was found. Change debug
10312 output.
10313 (gdb_no_commands_at_breakpoint): Reimplement.
10314 (run_breakpoint_commands): Rename to ...
10315 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10316 and change return type to boolean.
10317 (run_breakpoint_commands): New function.
10318 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10319 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10320 breakpoint. Go through the_target->remove_point instead of
10321 assuming memory breakpoint.
10322 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10323 software and hardware breakpoints.
10324 (reinsert_raw_breakpoint): Go through the_target->insert_point
10325 instead of assuming memory breakpoint.
10326 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10327 software and hardware breakpoints.
10328 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10329 Check both software and hardware breakpoints.
10330 (validate_inserted_breakpoint): Assert the breakpoint is a
10331 software breakpoint. Set the inserted flag to -1 instead of
10332 setting shlib_disabled.
10333 (delete_disabled_breakpoints): Adjust.
10334 (validate_breakpoints): Only validate software breakpoints.
10335 Adjust to inserted flag change.
10336 (check_mem_read, check_mem_write): Skip breakpoint types other
10337 than software breakpoints. Adjust to inserted flag change.
10338 * mem-break.h (enum raw_bkpt_type): New enum.
10339 (raw_breakpoint, struct process_info): Forward declare.
10340 (Z_packet_to_target_hw_bp_type): Delete declaration.
10341 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10342 (set_gdb_breakpoint, delete_gdb_breakpoint)
10343 (clear_breakpoint_conditions): New declarations.
10344 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10345 (breakpoint_inserted_here): Update comment.
10346 (add_breakpoint_condition, add_breakpoint_commands): Replace
10347 address parameter with a breakpoint pointer parameter.
10348 (gdb_breakpoint_here): Update comment.
10349 (delete_gdb_breakpoint_at): Delete.
10350 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10351 * server.c (process_point_options): Take a struct breakpoint
10352 pointer instead of an address. Adjust.
10353 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10354 delete_gdb_breakpoint.
10355 * spu-low.c (spu_target_ops): Install NULL as
10356 supports_z_point_type method.
10357 * target.h: Include mem-break.h.
10358 (struct target_ops) <prepare_to_access_memory>: Update comment.
10359 <supports_z_point_type>: New field.
10360 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10361 instead of a char. Also take a raw breakpoint pointer.
10362 * win32-arm-low.c (the_low_target): Install NULL as
10363 supports_z_point_type.
10364 * win32-i386-low.c (i386_supports_z_point_type): New function.
10365 (i386_insert_point, i386_remove_point): Adjust to new interface.
10366 (the_low_target): Install i386_supports_z_point_type.
10367 * win32-low.c (win32_supports_z_point_type): New function.
10368 (win32_insert_point, win32_remove_point): Adjust to new interface.
10369 (win32_target_ops): Install win32_supports_z_point_type.
10370 * win32-low.h (struct win32_target_ops):
10371 <supports_z_point_type>: New method.
10372 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10373 instead of a char. Also take a raw breakpoint pointer.
10374
932539e3
PA
103752014-05-20 Pedro Alves <palves@redhat.com>
10376
10377 * mem-break.h: Include break-common.h.
10378 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10379 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10380 (Z_packet_to_target_hw_bp_type): New declaration.
10381 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10382 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10383 (Z_PACKET_ACCESS_WP): Delete macros.
10384 (Z_packet_to_hw_type): Delete function.
10385 * i386-low.h: Don't include break-common.h here.
10386 (Z_packet_to_hw_type): Delete declaration.
10387 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10388 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10389 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10390 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10391 * linux-aarch64-low.c: Don't include break-common.h here.
10392 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10393 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10394 (Z_packet_to_target_hw_bp_type): Delete function.
10395 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10396 function.
10397 (mips_insert_point, mips_remove_point): Use
10398 Z_packet_to_target_hw_bp_type.
10399
4ff0d3d8
PA
104002014-05-20 Pedro Alves <palves@redhat.com>
10401
10402 * linux-aarch64-low.c: Include break-common.h.
10403 (enum target_point_type): Delete.
10404 (Z_packet_to_point_type): Rename to ...
10405 (Z_packet_to_target_hw_bp_type): ... this, and return a
10406 target_hw_bp_type instead.
10407 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10408 instead of an enum target_point_type.
10409 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10410 breakpoint type.
10411 (aarch64_dr_state_insert_one_point)
10412 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10413 (aarch64_handle_aligned_watchpoint)
10414 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10415 Take an enum target_hw_bp_type instead of an enum
10416 target_point_type.
10417 (aarch64_supports_z_point_type): New function.
10418 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10419 use Z_packet_to_target_hw_bp_type.
10420
786dc519
JB
104212014-05-20 Joel Brobecker <brobecker@adacore.com>
10422
10423 * configure.ac: Only use -Werror by default when DEVELOPMENT
10424 is true.
10425 * configure: Regenerate.
10426
9e0aa64f
JK
104272014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10428
10429 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10430 * linux-x86-low.c (X86_64_USER_REGS): New.
10431 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10432
2b577b92
YQ
104332014-04-28 Yao Qi <yao@codesourcery.com>
10434
10435 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10436 name.
10437
94611da2
PA
104382014-04-25 Pedro Alves <palves@redhat.com>
10439
10440 PR server/16255
10441 * linux-low.c (linux_attach_fail_reason_string): New function.
10442 (linux_attach_lwp): Delete.
10443 (linux_attach_lwp_1): Rename to ...
10444 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10445 argument. Remove "initial" parameter. Return int instead of
10446 void. Don't error or warn here.
10447 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10448 failure to attach to the tgid. Call warning when failing to
10449 attach to an lwp.
10450 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10451 argument. Remove "initial" parameter. Return int instead of
10452 void. Don't error or warn here.
10453 (linux_attach_fail_reason_string): New declaration.
10454 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10455 interface change. Use linux_attach_fail_reason_string.
10456
01f9f808
MS
104572014-04-24 Michael Sturm <michael.sturm@mintel.com>
10458 Walfred Tedeschi <walfred.tedeschi@intel.com>
10459
10460 * Makefile.in: Added rules to handle new files
10461 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10462 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10463 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10464 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10465 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10466 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10467 x32-avx512-linux.o.
10468 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10469 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10470 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10471 i386/x32-avx512.xml.
10472 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10473 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10474 i386/x32-avx512-linux.xml.
10475 * i387-fp.c (num_avx512_k_registers): New constant for number
10476 of K registers.
10477 (num_avx512_zmmh_low_registers): New constant for number of
10478 lower ZMM registers (0-15).
10479 (num_avx512_zmmh_high_registers): New constant for number of
10480 higher ZMM registers (16-31).
10481 (num_avx512_ymmh_registers): New contant for number of higher
10482 YMM registers (ymm16-31 added by avx521 on x86_64).
10483 (num_avx512_xmm_registers): New constant for number of higher
10484 XMM registers (xmm16-31 added by AVX512 on x86_64).
10485 (struct i387_xsave): Add space for AVX512 registers.
10486 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10487 Add code to handle AVX512 registers.
10488 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10489 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10490 prototypei from generated file.
10491 (tdesc_amd64_avx512_linux): Likewise.
10492 (init_registers_x32_avx512_linux): Likewise.
10493 (tdesc_x32_avx512_linux): Likewise.
10494 (init_registers_i386_avx512_linux): Likewise.
10495 (tdesc_i386_avx512_linux): Likewise.
10496 (x86_64_regmap): Add AVX512 registers.
10497 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10498 mask.
10499 (initialize_low_arch): Add code to initialize AVX512 registers.
10500
51aa91f9
PA
105012014-04-23 Pedro Alves <palves@redhat.com>
10502
10503 * mem-break.c (find_gdb_breakpoint_at): Make static.
10504 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10505
a4165e94
PA
105062014-04-23 Pedro Alves <palves@redhat.com>
10507
10508 * i386-low.c: Don't include break-common.h here.
10509 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10510 prototype to take target_hw_bp_type as argument instead of a Z
10511 packet char.
10512 * i386-low.h: Include break-common.h here.
10513 (Z_packet_to_hw_type): Declare.
10514 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10515 prototypes.
10516 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10517 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10518 (x86_remove_point): Convert the packet number to a
10519 target_hw_bp_type before calling i386_low_remove_watchpoint.
10520 * win32-i386-low.c (i386_insert_point): Convert the packet number
10521 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10522 (i386_remove_point): Convert the packet number to a
10523 target_hw_bp_type before calling i386_low_remove_watchpoint.
10524
b8acf843
PA
105252014-04-23 Pedro Alves <palves@redhat.com>
10526
10527 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10528
d708bcd1
PA
105292014-04-10 Pedro Alves <palves@redhat.com>
10530
10531 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10532 Check if the condition or command is NULL before checking if the
10533 breakpoint is known. On success, return true.
10534 * mem-break.h (add_breakpoint_condition): Document return.
10535 (add_breakpoint_commands): Add describing comment.
10536 * server.c (skip_to_semicolon): New function.
10537 (process_point_options): Use it.
10538
2eec7d5b
PA
105392014-04-09 Pedro Alves <palves@redhat.com>
10540
10541 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10542 to lwpid_of.
10543
fa96cb38
PA
105442014-02-27 Pedro Alves <palves@redhat.com>
10545
10546 PR 12702
10547 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10548 macros.
10549 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10550 output.
10551 (last_thread_of_process_p): Take a PID argument instead of a
10552 thread pointer.
10553 (linux_wait_for_lwp): Delete.
10554 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10555 functions.
10556 (linux_low_filter_event): New function, party factored out from
10557 linux_wait_for_event.
10558 (linux_wait_for_event): Rename to ...
10559 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10560 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10561 sigsuspend. Check for zombie leaders.
10562 (linux_wait_for_event): Reimplement as wrapper around
10563 linux_wait_for_event_filtered.
10564 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10565 a normal or signal exit is seen, it's the whole process exiting.
10566 (wait_for_sigstop): No longer a for_each_inferior callback.
10567 Rewrite on top of linux_wait_for_event_filtered.
10568 (stop_all_lwps): Call wait_for_sigstop directly.
10569 * server.c (resume, handle_target_event): Handle
10570 TARGET_WAITKIND_NO_RESUMED.
10571
d763de10
JB
105722014-02-26 Joel Brobecker <brobecker@adacore.com>
10573
10574 * win32-low.c (psapi_get_dll_name,
10575 * win32_CreateToolhelp32Snapshot): Delete.
10576 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10577 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10578 Delete.
10579 (handle_load_dll): Add function description.
10580 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10581
850a0f76
JB
105822014-02-26 Joel Brobecker <brobecker@adacore.com>
10583
10584 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10585 Add comment.
10586 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10587 base address when calling win32_add_one_solib.
10588 (handle_load_dll): Delete local variable load_addr.
10589 Remove 0x1000 offset applied to DLL base address when calling
10590 win32_add_one_solib.
10591 (handle_unload_dll): Add comment.
10592
f25b3fc3
JB
105932014-02-26 Joel Brobecker <brobecker@adacore.com>
10594
10595 * win32-low.c (win32_add_all_dlls): Renames
10596 win32_ensure_ntdll_loaded. Rewrite function documentation.
10597 Adjust implementation to always load all DLLs.
10598 Add 0x1000 offset to DLL base address when calling
10599 win32_add_one_solib.
10600 (child_initialization_done): New static global.
10601 (do_initial_child_stuff): Set child_initialization_done to
10602 zero during child initialization, and 1 after. Replace call
10603 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10604 Add comment.
10605 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10606 (handle_unload_dll): Add function documentation.
10607 (get_child_debug_event): Ignore load and unload DLL events
10608 during child initialization.
10609
d86d4aaf
DE
106102014-02-20 Doug Evans <dje@google.com>
10611
3bc32da3 10612 Remove global all_lwps.
d86d4aaf
DE
10613 * inferiors.h (ptid_of): Move here from linux-low.h.
10614 (pid_of, lwpid_of): Ditto.
10615 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10616 parameter is a struct thread_info * now.
10617 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10618 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10619 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10620 directly.
10621 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10622 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10623 * linux-arm-low.c (update_registers_callback): Update, "entry"
10624 parameter is a struct thread_info * now.
10625 Fetch lwpid from current_inferior directly.
10626 (arm_insert_point): Pass &all_threads to find_inferior instead of
10627 &all_lwps.
10628 (arm_remove_point): Ditto.
10629 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10630 (arm_prepare_to_resume): Fetch pid from thread.
10631 (arm_read_description): Fetch lwpid from current_inferior directly.
10632 * linux-low.c (all_lwps): Delete.
10633 (delete_lwp): Delete call to remove_inferior.
10634 (handle_extended_wait): Fetch lwpid from thread.
10635 (add_lwp): Don't set lwp->entry.id. Remove call to
10636 add_inferior_to_list.
10637 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10638 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10639 (kill_one_lwp_callback): Ditto.
10640 (linux_kill): Don't dereference NULL pointer.
10641 Fetch ptid,lwpid from thread.
10642 (get_detach_signal): Fetch ptid from thread.
10643 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10644 Simplify call to regcache_invalidate_thread.
10645 (delete_lwp_callback): Update, "entry" parameter is a
10646 struct thread_info * now. Fetch pid from thread.
10647 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10648 (status_pending_p_callback): Update, "entry" parameter is a
10649 struct thread_info * now. Fetch ptid from thread.
10650 (find_lwp_pid): Update, "entry" parameter is a
10651 struct thread_info * now.
10652 (linux_wait_for_lwp): Fetch pid from thread.
10653 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10654 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10655 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10656 (dequeue_one_deferred_signal): Ditto.
10657 (cancel_breakpoint): Fetch ptid from current_inferior.
10658 (linux_wait_for_event): Pass &all_threads to find_inferior,
10659 not &all_lwps. Fetch ptid, lwpid from thread.
10660 (count_events_callback): Update, "entry" parameter is a
10661 struct thread_info * now.
10662 (select_singlestep_lwp_callback): Ditto.
10663 (select_event_lwp_callback): Ditto.
10664 (cancel_breakpoints_callback): Ditto.
10665 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10666 not &all_lwps.
10667 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10668 (unsuspend_one_lwp): Update, "entry" parameter is a
10669 struct thread_info * now.
10670 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10671 not &all_lwps.
10672 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10673 Fetch lwpid from thread, not lwp.
10674 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10675 Pass &all_threads to find_inferior, not &all_lwps.
10676 (send_sigstop): Fetch lwpid from thread, not lwp.
10677 (send_sigstop_callback): Update, "entry" parameter is a
10678 struct thread_info * now.
10679 (suspend_and_send_sigstop_callback): Ditto.
10680 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10681 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10682 struct thread_info * now.
10683 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10684 from thread, lwp.
10685 (lwp_running): Update, "entry" parameter is a
10686 struct thread_info * now.
10687 (stop_all_lwps): Fetch ptid from thread.
10688 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10689 (linux_resume_one_lwp): Fetch lwpid from thread.
10690 (linux_set_resume_request): Update, "entry" parameter is a
10691 struct thread_info * now. Fetch pid, lwpid from thread.
10692 (resume_status_pending_p): Update, "entry" parameter is a
10693 struct thread_info * now.
10694 (need_step_over_p): Ditto. Fetch lwpid from thread.
10695 (start_step_over): Fetch lwpid from thread.
10696 (linux_resume_one_thread): Update, "entry" parameter is a
10697 struct thread_info * now. Fetch lwpid from thread.
10698 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10699 (proceed_one_lwp): Update, "entry" parameter is a
10700 struct thread_info * now. Fetch lwpid from thread.
10701 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10702 struct thread_info * now.
10703 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10704 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10705 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10706 directly.
10707 (regsets_store_inferior_registers): Ditto.
10708 (fetch_register, store_register): Ditto.
10709 (linux_read_memory, linux_write_memory): Ditto.
10710 (linux_request_interrupt): Ditto.
10711 (linux_read_auxv): Ditto.
10712 (linux_xfer_siginfo): Ditto.
10713 (linux_qxfer_spu): Ditto.
10714 (linux_qxfer_libraries_svr4): Ditto.
10715 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10716 moved to inferiors.h.
10717 (get_lwp): Delete.
10718 (get_thread_lwp): Update.
10719 (struct lwp_info): Delete member "entry". Simplify comment for
10720 member "thread".
10721 (all_lwps): Delete.
10722 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10723 current_inferior directly.
10724 (update_watch_registers_callback): Update, "entry" parameter is a
10725 struct thread_info * now. Fetch pid from thread.
10726 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10727 (mips_insert_point): Fetch lwpid from current_inferior.
10728 Pass &all_threads to find_inferior, not &all_lwps.
10729 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10730 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10731 directly.
10732 (mips_stopped_data_address): Ditto.
10733 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10734 directly.
10735 * linux-tile-low.c (tile_arch_setup): Ditto.
10736 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10737 (update_debug_registers_callback): Update, "entry" parameter is a
10738 struct thread_info * now. Fetch pid from thread.
10739 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10740 Pass &all_threads to find_inferior, not &all_lwps.
10741 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10742 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10743 Pass &all_threads to find_inferior, not &all_lwps.
10744 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10745 (i386_dr_low_get_status): Ditto.
10746 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10747 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10748 (x86_linux_read_description): Ditto.
10749 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10750
3b8361aa
DE
107512014-02-20 Doug Evans <dje@google.com>
10752
10753 * inferiors.c (get_first_inferior): Fix buglet.
10754
f7667f0d
DE
107552014-02-19 Doug Evans <dje@google.com>
10756
10757 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10758 * inferiors.c (add_thread): Change result type to struct thread_info *.
10759 All callers updated.
10760 (add_lwp): Call add_thread here instead of in callers.
10761 All callers updated.
10762 * linux-low.h (get_lwp_thread): Rewrite.
10763 (struct lwp_info): New member "thread".
10764
b3312d80
DE
107652014-02-19 Doug Evans <dje@google.com>
10766
10767 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10768 All callers updated.
10769
ecc6f45c
DE
107702014-02-19 Doug Evans <dje@google.com>
10771
10772 * inferiors.c (add_thread): Fix whitespace.
10773
649ebbca
DE
107742014-02-19 Doug Evans <dje@google.com>
10775
10776 * dll.c (clear_dlls): Replace accessing list implemention details
10777 with API function.
10778 * gdbthread.h (get_first_thread): Declare.
10779 * inferiors.c (for_each_inferior_with_data): New function.
10780 (get_first_thread): New function.
10781 (find_thread_ptid): Simplify.
10782 (get_first_inferior): New function.
10783 (clear_list): Delete.
10784 (one_inferior_p): New function.
10785 (clear_inferior_list): New function.
10786 (clear_inferiors): Update.
10787 * inferiors.h (for_each_inferior_with_data): Declare.
10788 (clear_inferior_list): Declare.
10789 (one_inferior_p): Declare.
10790 (get_first_inferior): Declare.
10791 * linux-low.c (linux_wait_for_event): Replace accessing list
10792 implemention details with API function.
10793 * server.c (target_running): Ditto.
10794 (accumulate_file_name_length): New function.
10795 (emit_dll_description): New function.
10796 (handle_qxfer_libraries): Replace accessing list implemention
10797 details with API function.
10798 (handle_qxfer_threads_worker): New function.
10799 (handle_qxfer_threads_proper): Replace accessing list implemention
10800 details with API function.
10801 (handle_query): Ditto.
10802 (visit_actioned_threads_callback_ftype): New typedef.
10803 (visit_actioned_threads_data): New struct.
10804 (visit_actioned_threads): Rewrite to be find_inferior callback.
10805 (resume): Call find_inferior.
10806 (handle_status): Replace accessing list implemention
10807 details with API function.
10808 (process_serial_event): Replace accessing list implemention details
10809 with API function.
10810 * target.c (set_desired_inferior): Replace accessing list implemention
10811 details with API function.
10812 * tracepoint.c (same_process_p): New function.
10813 (gdb_agent_about_to_close): Replace accessing list implemention
10814 details with API function.
10815 * win32-low.c (child_delete_thread): Replace accessing list
10816 implemention details with API function.
10817 (match_dll_by_basename): New function.
10818 (dll_is_loaded_by_basename): New function.
10819 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10820 details call to dll_is_loaded_by_basename.
10821
80894984
DE
108222014-02-19 Doug Evans <dje@google.com>
10823
10824 * dll.h (struct dll_info): Add comment.
10825 * gdbthread.h (struct thread_info): Add comment.
10826 (current_ptid): Simplify.
10827 * inferiors.c (add_process): Update.
10828 (remove_process): Update.
10829 * inferiors.h (struct process_info): Rename member "head" to "entry".
10830 * linux-low.c (delete_lwp): Update.
10831 (add_lwp): Update.
10832 (last_thread_of_process_p): Update.
10833 (kill_one_lwp_callback, linux_kill): Update.
10834 (status_pending_p_callback): Update.
10835 (wait_for_sigstop): Update. Simplify read of ptid.
10836 (start_step_over): Update.
10837 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10838 (get_lwp_thread): Update.
10839 (struct lwp_info): Rename member "head" to "entry".
10840 * regcache.h (inferior_list_entry): Delete.
10841 * server.c (kill_inferior_callback): Update.
10842 (detach_or_kill_inferior_callback): Update.
10843 (print_started_pid): Update.
10844 (print_attached_pid): Update.
10845 (process_serial_event): Simplify read of ptid.
10846 * thread-db.c (thread_db_create_event): Update.
10847 (thread_db_get_tls_address): Update.
10848 * win32-low.c (current_inferior_ptid): Simplify.
10849
46917d26
TT
108502014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10853 argument.
10854 (target_supports_btrace): Update.
10855
0759a81e
YQ
108562014-02-14 Yao Qi <yao@codesourcery.com>
10857
10858 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10859 (rsp-low-ipa.o): New target.
10860
a7191e8b
TT
108612014-02-12 Tom Tromey <tromey@redhat.com>
10862
10863 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10864 convert_ascii_to_int.
10865 * regcache.c (registers_to_string): Likewise.
10866 * remote-utils.c (decode_M_packet): Likewise.
10867 * server.c (process_serial_event): Likewise.
10868
ff0e980e
TT
108692014-02-12 Tom Tromey <tromey@redhat.com>
10870
10871 * server.c (handle_query, handle_v_run): Use hex2bin, not
10872 unhexify.
10873 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10874
e9371aff
TT
108752014-02-12 Tom Tromey <tromey@redhat.com>
10876
10877 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10878 convert_int_to_ascii.
10879 * regcache.c (registers_to_string, collect_register_as_string):
10880 Likewise.
10881 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10882 Likewise.
10883 * server.c (process_serial_event): Likewise.
10884 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10885 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10886
971dc0b8
TT
108872014-02-12 Tom Tromey <tromey@redhat.com>
10888
10889 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10890 bin2hex, not hexify.
10891 * tracepoint.c (cmd_qtstatus): Likewise.
10892
0a822afb
TT
108932014-02-12 Tom Tromey <tromey@redhat.com>
10894
10895 * remote-utils.c (monitor_output): Pass explicit length to
10896 hexify.
10897
9c3d6531
TT
108982014-02-12 Tom Tromey <tromey@redhat.com>
10899
10900 * tracepoint.c: Include rsp-low.h.
10901 * server.c: Include rsp-low.h.
10902 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10903 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10904 declare.
10905 * remote-utils.c: Include rsp-low.h.
10906 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10907 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10908 (convert_int_to_ascii, convert_ascii_to_int): Move to
10909 common/rsp-low.c.
10910 * regcache.c: Include rsp-low.h.
10911 * ax.c: Include rsp-low.h.
10912 * Makefile.in (SFILES): Add common/rsp-low.c.
10913 (OBS): Add rsp-low.o.
10914 (rsp-low.o): New target.
10915
01fd3ea5
TT
109162014-02-12 Tom Tromey <tromey@redhat.com>
10917
10918 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10919 Include print-utils.h.
10920 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10921 (plongest, thirty_two, phex_nz): Remove.
10922 * Makefile.in (SFILES): Add common/print-utils.c.
10923 (OBS): Add print-utils.o.
10924 (print-utils-ipa.o): New target.
10925 (print-utils.o): New target.
10926 (IPA_OBJS): Add print-utils-ipa.o.
10927
e99dc820
TT
109282014-02-06 Tom Tromey <tromey@redhat.com>
10929
10930 * Makefile.in (SFILES): Fix indentation.
10931
ee1e2d4f
DE
109322014-02-05 Doug Evans <dje@google.com>
10933
10934 * linux-low.c (linux_wait_for_event): Improve comment.
10935 (linux_wait_1): Keep current_inferior in sync with event_child.
10936
f5a02773
DE
109372014-01-22 Doug Evans <dje@google.com>
10938
10939 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10940
87ce2a04
DE
109412014-01-22 Doug Evans <dje@google.com>
10942
10943 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10944 * configure: Regenerate.
10945 * config.in: Regenerate.
10946 * Makefile.in (SFILES): Add debug.c.
10947 (OBS): Add debug.o.
10948 * debug.c: New file.
10949 * debug.h: New file.
10950 * linux-aarch64-low.c (*): Update all debugging printfs to use
10951 debug_printf instead of fprintf.
10952 * linux-arm-low.c (*): Ditto.
10953 * linux-cris-low.c (*): Ditto.
10954 * linux-crisv32-low.c (*): Ditto.
10955 * linux-m32r-low.c (*): Ditto.
10956 * linux-sparc-low.c (*): Ditto.
10957 * linux-x86.c (*): Ditto.
10958 * linux-low.c (*): Ditto.
10959 (linux_wait_1): Add calls to debug_enter, debug_exit.
10960 (linux_wait): Remove redundant debugging printf.
10961 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10962 (linux_resume, unstop_all_lwps): Ditto.
10963 * mem-break.c (*): Update all debugging printfs to use
10964 debug_printf instead of fprintf.
10965 * remote-utils.c (*): Ditto.
10966 * thread-db.c (*): Ditto.
10967 * server.c #include <ctype.h>, "gdb_vecs.h".
10968 (debug_threads): Moved to debug.c.
10969 (*): Update all debugging printfs to use debug_printf instead of
10970 fprintf.
10971 (start_inferior): Replace call to fflush with call to debug_flush.
10972 (monitor_show_help): Mention set debug-format.
10973 (parse_debug_format_options): New function.
10974 (handle_monitor_command): Handle "monitor set debug-format".
10975 (gdbserver_usage): Mention --debug-format.
10976 (main): Parse --debug-format.
10977 * server.h (debug_threads): Declaration moved to debug.h.
10978 #include "debug.h".
10979 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10980 trace_debug_1 that uses debug_printf.
10981 (tracepoint_look_up_symbols): Update all debugging printfs to use
10982 debug_printf instead of fprintf.
10983
e671835b
BS
109842014-01-20 Baruch Siach <baruch@tkos.co.il>
10985
10986 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10987 sys/ptrace.h.
10988
b5737fa9
PA
109892014-01-17 Pedro Alves <palves@redhat.com>
10990
ea38d2a9 10991 PR build/16445
c7faa97a
PA
10992 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10993 defined after including gdb_proc_service.h.
b5737fa9 10994
40ed484e
DE
109952014-01-16 Doug Evans <dje@google.com>
10996
10997 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10998 (match_dll): Use it.
10999
969c39fb
MM
110002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11001
11002 * target.h (target_ops) <read_btrace>: Change parameters and
11003 return type to allow error reporting.
11004 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11005 trace reading errors on.
11006 * linux-low.c (linux_low_read_btrace): Pass trace reading
11007 errors on.
11008 (linux_low_disable_btrace): New.
11009
ab7f45ba
DE
110102014-01-15 Doug Evans <dje@google.com>
11011
11012 * inferiors.c (thread_id_to_gdb_id): Delete.
11013 * inferiors.h (thread_id_to_gdb_id): Delete.
11014
66af0f44
EZ
110152014-01-13 Eli Zaretskii <eliz@gnu.org>
11016
11017 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11018 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11019 versions.
11020
9939e131
PA
110212014-01-08 Pedro Alves <palves@redhat.com>
11022
11023 * server.c (handle_status): Don't discard previous queued stop
11024 replies or thread's pending status here.
11025 (main) <disconnection>: Do it here instead.
11026
b7ea362b
PA
110272014-01-08 Pedro Alves <palves@redhat.com>
11028
11029 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11030 * server.c (visit_actioned_threads, handle_pending_status): New
11031 function.
11032 (handle_v_cont): Factor out parts to ...
11033 (resume): ... this new function. If in all-stop, and a thread
11034 being resumed has a pending status, report it without actually
11035 resuming.
11036 (myresume): Adjust to use the new 'resume' function.
11037 (clear_pending_status_callback, set_pending_status_callback)
11038 (find_status_pending_thread_callback): New functions.
11039 (handle_status): Handle the case of multiple threads having
11040 interesting statuses to report. Report threads' real last signal
11041 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11042 with an interesting thread to report the status for, instead of
11043 always reporting the status of the first thread.
11044
28498c42
JB
110452014-01-01 Joel Brobecker <brobecker@adacore.com>
11046
11047 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11048 * gdbreplay.c (gdbreplay_version): Likewise.
11049
f45c82da
YZ
110502013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11051
11052 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11053 iov.iov_len with the real length in use.
11054
379a5e2d
JB
110552013-12-13 Joel Brobecker <brobecker@adacore.com>
11056
11057 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11058 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11059 for all targets that use win32-low.c.
11060 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11061 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11062
4210d83e
PA
110632013-12-13 Pedro Alves <palves@redhat.com>
11064
11065 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11066 if equal to TARGET_WAITKIND_LOADED.
11067 * win32-low.c (cached_status): New static global.
11068 (win32_wait): Add declaration.
11069 (do_initial_child_stuff): Flush all initial pending debug events
11070 up to the initial breakpoint.
11071 (win32_wait): If CACHED_STATUS was set, return that instead
11072 of doing a real wait. Remove the code resuming the execution
11073 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11074 during the initial phase. Also remove the code changing
11075 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11076 TARGET_WAITKIND_STOPPED.
11077
e7f0d979
YQ
110782013-12-11 Yao Qi <yao@codesourcery.com>
11079
11080 * notif.c (handle_notif_ack): Return 0 if no notification
11081 matches.
11082
ebcf782c
DE
110832013-11-20 Doug Evans <dje@google.com>
11084
11085 * linux-low.c (linux_set_resume_request): Fix comment.
11086
20ad9378
DE
110872013-11-20 Doug Evans <dje@google.com>
11088
11089 * linux-low.c (resume_status_pending_p): Tweak comment.
11090
a196ebeb
WT
110912013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11092
11093 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11094 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11095 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11096 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11097 (srv_amd64_regobj): Add amd64-mpx.o.
11098 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11099 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11100 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11101 * i387-fp.c (num_pl_bnd_register) Added constant.
11102 (num_pl_bnd_cfg_registers) Added constant.
11103 (struct i387_xsave) Added reserved area and MPX fields.
11104 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11105 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11106 function.
11107 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11108 (init_registers_amd64_mpx_linux): Declare new function.
11109 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11110 (x86_64_regmap): Add MPX registers.
11111 (x86_linux_read_description): Add MPX case.
11112 (initialize_low_arch): Initialize MPX targets.
11113
0080a2f6
TT
111142013-11-18 Tom Tromey <tromey@redhat.com>
11115
11116 * configure: Rebuild.
11117 * configure.ac: Don't check for stdlib.h.
11118 * gdbreplay.c: Unconditionally include stdlib.h.
11119
2978b111
TT
111202013-11-18 Tom Tromey <tromey@redhat.com>
11121
11122 * config.in: Rebuild.
11123 * configure: Rebuild.
11124 * configure.ac: Don't use AC_HEADER_DIRENT.
11125
a3d08894
TT
111262013-11-18 Tom Tromey <tromey@redhat.com>
11127
11128 * server.h: Don't check HAVE_STRING_H.
11129 * gdbreplay.c: Don't check HAVE_STRING_H.
11130 * configure: Rebuild.
11131
0a5dd17d
TT
111322013-11-18 Tom Tromey <tromey@redhat.com>
11133
11134 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11135 LIBGNU.
11136
1bd2f0ba
TT
111372013-11-08 Tom Tromey <tromey@redhat.com>
11138
11139 * configure, config.in: Rebuild.
11140 * configure.ac: Remove unused configury.
11141
3266f10b
TT
111422013-11-08 Tom Tromey <tromey@redhat.com>
11143
11144 * acinclude.m4: Include common.m4, codeset.m4.
11145 * configure, config.in: Rebuild.
11146 * configure.ac: Use GDB_AC_COMMON.
11147
6682d959
AA
111482013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11149
11150 * linux-s390-low.c (HWCAP_S390_TE): New define.
11151 (s390_arch_setup): Consider the TE field in the HWCAP for
11152 determining 'have_regset_tdb'.
11153
fd0a4d76
SDJ
111542013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11155
11156 PR gdb/16014
11157 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11158 call to sizeof.
11159
1a3d890b
PA
111602013-10-02 Pedro Alves <palves@redhat.com>
11161
11162 * server.c (process_serial_event): Don't output "GDBserver
11163 exiting" if GDB is connected through stdio.
11164 * target.c (mywait): Likewise, be silent if GDB is connected
11165 through stdio.
11166
97ad4581
JB
111672013-10-01 Joel Brobecker <brobecker@adacore.com>
11168
11169 * lynx-low.c (lynx_add_threads_after_attach): New function.
11170 (lynx_attach): Remove call to add_thread. Add call to
11171 lynx_add_threads_after_attach instead.
11172
5b4e221c
MF
111732013-09-28 Mike Frysinger <vapier@gentoo.org>
11174
11175 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11176 * config.in, configure: Regenerated.
11177
ee47b2f8
YQ
111782013-09-18 Yao Qi <yao@codesourcery.com>
11179
11180 PR server/15959
11181 * server.c (start_inferior): Clear 'resume_info'.
11182
d6707650 111832013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 11184
d6707650
JW
11185 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11186 for each register.
11187
9243dd0e 111882013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 11189
9243dd0e
JW
11190 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11191 linux-tile-low.o to srv_tgtobj.
11192
c623a6ef
WN
111932013-09-16 Will Newton <will.newton@linaro.org>
11194
11195 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11196 out regs.
11197
fb71d39e
PA
111982013-09-06 Pedro Alves <palves@redhat.com>
11199
11200 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11201 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11202 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11203 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11204 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11205 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11206
8e7e9910
PA
112072013-09-06 Pedro Alves <palves@redhat.com>
11208
11209 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11210 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11211
7c3a12ca
PA
112122013-09-06 Pedro Alves <palves@redhat.com>
11213
11214 * linux-amd64-ipa.c: Include tracepoint.h.
11215 * linux-i386-ipa.c: Include tracepoint.h.
11216
8eb3d7b6
RW
112172013-09-06 Ricard Wanderlof <ricardw@axis.com>
11218
11219 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11220 (ps_get_thread_area): New function.
11221
eddddb9d
RW
112222013-09-06 Ricard Wanderlof <ricardw@axis.com>
11223
11224 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11225 (initialize_low_arch): Call init_registers_crisv32 rather than
11226 init_register_crisv32.
11227
533b0600
PA
112282013-09-05 Pedro Alves <palves@redhat.com>
11229
11230 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11231 to ...
11232 * hostio.h: ... this new file.
11233 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11234 win32-low.c: Include hostio.h.
11235
0ce3d3b5
PA
112362013-09-05 Pedro Alves <palves@redhat.com>
11237
11238 * server.h (gdb_client_data, handler_func, callback_handler_func)
11239 (delete_file_handler, add_file_handler, append_callback_event)
11240 (delete_callback_event, start_event_loop, initialize_event_loop):
11241 Move to event-loop.h and include it.
11242 * event-loop.h: New file.
11243
799cdc37
PA
112442013-09-05 Pedro Alves <palves@redhat.com>
11245
11246 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11247 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11248 (loaded_dll, unloaded_dll): Move to ...
11249 * dll.h: ... this new file.
11250 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11251
6a6bbd9d
PA
112522013-09-05 Pedro Alves <palves@redhat.com>
11253
11254 * server.h (current_process, get_thread_process, all_processes)
11255 (add_inferior_to_list, for_each_inferior, current_inferior)
11256 (remove_inferior, add_process, remove_process, find_process_pid)
11257 (have_started_inferiors_p, have_attached_inferiors_p)
11258 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11259 (clear_inferiors, find_inferior, find_inferior_id)
11260 (inferior_target_data, set_inferior_target_data)
11261 (inferior_regcache_data, set_inferior_regcache_data): Move to
11262 inferiors.h, and include it.
11263 * inferiors.h: New file.
11264
f699aaba
PA
112652013-09-05 Pedro Alves <palves@redhat.com>
11266
11267 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11268 Move ...
72f4393d 11269 * ax.h: ... here.
f699aaba 11270
c144c7a0
PA
112712013-09-05 Pedro Alves <palves@redhat.com>
11272
11273 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11274 tracepoint.h.
11275 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11276 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11277 (handle_tracepoint_general_set, handle_tracepoint_query)
11278 (tracepoint_finished_step, tracepoint_was_hit)
11279 (release_while_stepping_state_list, current_traceframe)
11280 (in_readonly_region, traceframe_read_mem)
11281 (fetch_traceframe_registers, traceframe_read_sdata)
11282 (traceframe_read_info, struct fast_tpoint_collect_status)
11283 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11284 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11285 (supply_fast_tracepoint_registers)
11286 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11287 (ipa_tdesc, claim_trampoline_space)
11288 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11289 (agent_mem_read, agent_get_trace_state_variable_value)
11290 (agent_set_trace_state_variable_value, agent_tsv_read)
11291 (agent_mem_read_string, get_raw_reg_func_addr)
11292 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11293 * tracepoint.h: ... this new file.
11294
ff42e6ab
PA
112952013-09-05 Pedro Alves <palves@redhat.com>
11296
11297 * server.h (perror_with_name, error, fatal, warning, paddress)
11298 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11299 include it.
11300 * utils.h: New file.
11301
541af0f4
PA
113022013-09-05 Pedro Alves <palves@redhat.com>
11303
11304 * server.h (remote_debug, noack_mode, transport_is_reliable)
11305 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11306 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11307 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11308 (write_enn, initialize_async_io, enable_async_io)
11309 (disable_async_io, check_remote_input_interrupt_request)
11310 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11311 (dead_thread_notify, prepare_resume_reply)
11312 (decode_address_to_semicolon, decode_address, decode_m_packet)
11313 (decode_M_packet, decode_X_packet, decode_xfer_write)
11314 (decode_search_memory_packet, unhexify, hexify)
11315 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11316 (look_up_one_symbol, relocate_instruction)
11317 (monitor_output): Move to remote-utils.h, and include it.
11318 * remote-utils.h: New file.
11319
eebdf26b
PA
113202013-09-05 Pedro Alves <palves@redhat.com>
11321
11322 * server.h (_): Delete.
11323
3aafd2ff
PA
113242013-09-02 Pedro Alves <palves@redhat.com>
11325
11326 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11327 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11328 allocated.
11329 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11330
cee83bcb
PM
113312013-09-02 Pierre Muller <muller@sourceware.org>
11332
11333 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11334 or WriteProcessMemory complete successfully and handle
11335 ERROR_PARTIAL_COPY error.
11336
9a13b2fa
PA
113372013-09-02 Pedro Alves <palves@redhat.com>
11338
11339 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11340 error instead of EIO.
11341
602e3198
JK
113422013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11343
11344 PR server/15604
11345 * linux-low.c: Include filestuff.h.
11346 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11347 * lynx-low.c: Include filestuff.h.
11348 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11349 * server.c: Include filestuff.h.
11350 (main): Call notice_open_fds.
11351 * spu-low.c: Include filestuff.h.
11352 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11353
96d7229d
LM
113542013-08-22 Luis Machado <lgustavo@codesourcery.com>
11355
11356 * Makefile.in: Explain why ../target and ../nat are not
11357 listed as include file search paths.
11358 (linux-waitpid.o): New object file rule.
11359 * configure.srv (srv_native_linux_obj): New variable.
11360 Replace all occurrences of linux native object files with
11361 $srv_native_linux_obj.
11362 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11363 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11364 (linux_enable_event_reporting): Remove declaration.
11365 (my_waitpid): Moved to common/linux-waitpid.c.
11366 (linux_wait_for_event): Pass ptid when calling
11367 linux_enable_event_reporting.
11368 (linux_supports_tracefork_flag): Remove.
11369 (linux_enable_event_reporting): Likewise.
11370 (linux_tracefork_grandchild): Remove.
11371 (STACK_SIZE): Moved to common/linux-ptrace.c.
11372 (linux_tracefork_child): Remove.
11373 (linux_test_for_tracefork): Remove.
11374 (linux_look_up_symbols): Call linux_supports_traceclone.
11375 (initialize_low): Remove call to linux_test_for_tracefork.
11376 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11377 common/linux-ptrace.h.
11378 (PTRACE_TYPE_ARG4): Likewise.
11379 Include linux-ptrace.h.
11380
32940073
PA
113812013-08-21 Pedro Alves <palves@redhat.com>
11382
11383 * config.in: Renegerate.
11384
33b60d58 113852013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 11386
33b60d58
LM
11387 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11388 (SFILES): Remove $(srcdir)/common/target-common.c and
11389 add $(srcdir)/target/waitstatus.c.
11390 (OBS): Remove target-common.o and add waitstatus.o.
11391 (server_h): Remove $(srcdir)/../common/target-common.h and
11392 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11393 and $(srcdir)/../target/waitstatus.h.
11394 (target-common.o): Remove.
11395 (waitstatus.o): New target object file.
11396 * target.h: Do not include target-common.h and
11397 include target/resume.h, target/wait.h and
11398 target/waitstatus.h.
11399
b8e1b30e
LM
114002013-08-13 Luis Machado <lgustavo@codesourcery.com>
11401
11402 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11403 to PTRACE_TYPE_ARG3.
11404 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11405 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11406 PTRACE_TYPE_ARG4.
11407 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11408 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11409
7a60ad40
YQ
114102013-07-27 Jie Zhang <jie@codesourcery.com>
11411 Daniel Jacobowitz <dan@codesourcery.com>
11412 Yao Qi <yao@codesourcery.com>
11413
11414 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11415 (mips-linux-watch.o): New rule.
11416 (mips_linux_watch_h): New variable.
11417 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11418 srv_tgtobj.
11419 * linux-mips-low.c: Include mips-linux-watch.h.
11420 (struct arch_process_info, struct arch_lwp_info): New.
11421 (update_watch_registers_callback): New function.
11422 (mips_linux_new_process, mips_linux_new_thread) New functions.
11423 (mips_linux_prepare_to_resume, mips_insert_point): New
11424 functions.
11425 (mips_remove_point, mips_stopped_by_watchpoint): New
11426 functions.
11427 (rsp_bp_type_to_target_hw_bp_type): New function.
11428 (mips_stopped_data_address): New function.
11429 (the_low_target): Add watchpoint support functions.
11430
de6f69ad
YQ
114312013-07-27 Yao Qi <yao@codesourcery.com>
11432
11433 * i386-low.c: Include break-common.h.
11434 (enum target_hw_bp_type): Remove.
11435
3360c0bf
LM
114362013-07-24 Luis Machado <lgustavo@codesourcery.com>
11437
11438 * Makefile.in (SFILES): /common/target-common.c.
11439 (OBS): Add target-common.o.
11440 (server_h): Add $(srcdir)/../common/target-common.h.
11441 (target-common.o): New target.
11442 * server.c (queue_stop_reply_callback): Free
11443 status string after use.
11444 * target.c (target_waitstatus_to_string): Remove.
11445 * target.h: Include target-common.h.
11446 (resume_kind): Likewise.
11447 (target_waitkind): Likewise.
11448 (target_waitstatus): Likewise.
11449 (TARGET_WNOHANG): Likewise.
11450
bd885420
YQ
114512013-07-04 Yao Qi <yao@codesourcery.com>
11452
11453 * Makefile.in (host_alias): Use @host_noncanonical@.
11454 (target_alias): Use @target_noncanonical@.
11455 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11456 ACX_NONCANONICAL_HOST.
11457 * configure: Regenerated.
11458
11459 Revert:
11460 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11461
11462 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11463 * configure: Rebuild.
11464 * Makefile.in (version_host, version_target): Get from configure.
11465 (version.c): Use $(version_host) and $(version_target).
11466
17ef446e
PA
114672013-07-03 Pedro Alves <palves@redhat.com>
11468
11469 * Makefile.in (config.status): Depend on development.sh.
11470 * acinclude.m4: Include libmcheck.m4.
11471 * configure: Regenerate.
11472
7a9a7487
MG
114732013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11474
11475 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11476 attribute inside the parentheses.
11477 (winapi_DebugSetProcessKillOnExit): Ditto.
11478 (winapi_DebugBreakProcess): Ditto.
11479 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 11480
49b64de6
MG
114812013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11482
11483 * notif.h (notif_event): Add a dummy member to avoid compiler
11484 errors.
11485
d5749ee7
PA
114862013-07-01 Pedro Alves <palves@redhat.com>
11487
11488 * hostio.c (HOSTIO_PATH_MAX): Define.
11489 (require_filename, handle_open, handle_unlink, handle_readlink):
11490 Use it.
11491
d8d2a3ee
PA
114922013-07-01 Pedro Alves <palves@redhat.com>
11493
11494 * server.h: Include "pathmax.h".
11495 * linux-low.c: Don't include sys/param.h.
11496 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11497 MAXPATHLEN.
11498 * win32-low.c: Don't include sys/param.h.
11499 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11500
bc7dea8d
PA
115012013-07-01 Pedro Alves <palves@redhat.com>
11502
11503 * event-loop.c: Don't check HAVE_UNISTD_H before including
11504 <unistd.h>.
11505 * gdbreplay.c: Likewise.
11506 * remote-utils.c: Likewise.
11507 * server.c: Likewise.
11508 * configure.ac: Don't check for unistd.h.
11509 * configure: Regenerate.
11510
d6c2da54
TT
115112013-06-28 Tom Tromey <tromey@redhat.com>
11512
11513 * Makefile.in (version.c): Use version.in, not
11514 common/version.in.
11515
257b6bec
MG
115162013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11517
11518 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11519 * configure: Rebuild.
11520 * Makefile.in (version_host, version_target): Get from configure.
11521 (version.c): Use $(version_host) and $(version_target).
11522
86ebe149
DK
115232013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11524
11525 Fix trace-status to output user name without trailing colon.
11526 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11527
f30aa5af
DK
115282013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11529
11530 Fix trace-status to output proper start-time and stop-time.
11531 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11532 output start time and stop time in hex as gdb expects.
11533
28a93511
YQ
115342013-06-26 Pedro Alves <pedro@codesourcery.com>
11535
11536 * tracepoint.c (build_traceframe_info_xml): Output trace state
11537 variables present in the trace buffer.
11538
01208463
TT
115392013-06-24 Tom Tromey <tromey@redhat.com>
11540
11541 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11542 create-version.sh.
11543 (version.o): Remove.
11544 * gdbreplay.c: Include version.h.
11545 (version, host_name): Don't declare.
11546 * server.h: Include version.h.
11547 (version, host_name): Don't declare.
11548
760256f9
PA
115492013-06-12 Pedro Alves <palves@redhat.com>
11550
11551 * linux-x86-low.c (linux_is_elf64): Delete global.
11552 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11553 with local linux_pid_exe_is_elf_64_file use.
11554
030031ee
PA
115552013-06-11 Pedro Alves <palves@redhat.com>
11556
11557 * linux-low.c (regset_disabled, disable_regset): New functions.
11558 (regsets_fetch_inferior_registers)
11559 (regsets_store_inferior_registers): Use them.
11560 (initialize_regsets_info); Don't allocate the disabled_regsets
11561 array here.
11562 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11563 comment.
11564
5da6eb0a
PA
115652013-06-11 Pedro Alves <palves@redhat.com>
11566
11567 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11568 xmalloc.
11569
7e5aaa09
PA
115702013-06-11 Pedro Alves <palves@redhat.com>
11571
11572 * linux-x86-low.c (initialize_low_arch): Call
11573 init_registers_x32_avx_linux.
11574
d878444c
JK
115752013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11576
11577 Fix compatibility with Android Bionic.
11578 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11579 it is not empty.
11580
3aee8918
PA
115812013-06-07 Pedro Alves <palves@redhat.com>
11582
5f2b57b5 11583 PR server/14823
3aee8918
PA
11584 * Makefile.in (OBS): Add tdesc.o.
11585 (IPA_OBJS): Add tdesc-ipa.o.
11586 (tdesc-ipa.o): New rule.
11587 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11588 interface.
11589 * linux-low.c (new_inferior): Delete.
11590 (disabled_regsets, num_regsets): Delete.
11591 (linux_add_process): Adjust to set the new per-process
11592 new_inferior flag.
11593 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11594 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11595 was a stop. When calling arch_setup, switch the current inferior
11596 to the thread that got an event.
11597 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11598 (regsets_fetch_inferior_registers)
11599 (regsets_store_inferior_registers): New regsets_info parameter.
11600 Adjust to use it.
11601 (linux_register_in_regsets): New regs_info parameter. Adjust to
11602 use it.
11603 (register_addr, fetch_register, store_register): New usrregs_info
11604 parameter. Adjust to use it.
11605 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11606 parameter regs_info. Adjust to use it.
11607 (linux_fetch_registers): Get the current inferior's regs_info, and
11608 adjust to use it.
11609 (linux_store_registers): Ditto.
11610 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11611 (initialize_low): Don't initialize the target_regsets here. Call
11612 initialize_low_arch.
11613 * linux-low.h (target_regsets): Delete declaration.
11614 (struct regsets_info): New.
11615 (struct usrregs_info): New.
11616 (struct regs_info): New.
11617 (struct process_info_private) <new_inferior>: New field.
11618 (struct linux_target_ops): Delete the num_regs, regmap, and
11619 regset_bitmap fields. New field regs_info.
11620 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11621 * i387-fp.c (num_xmm_registers): Delete.
11622 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11623 calls to new interface.
11624 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11625 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11626 Infer the number of xmm registers from the regcache's target
11627 description.
11628 * i387-fp.h (num_xmm_registers): Delete.
11629 * inferiors.c (add_thread): Don't install the thread's regcache
11630 here.
11631 * proc-service.c (gregset_info): Fetch the current inferior's
11632 regs_info. Adjust to use it.
11633 * regcache.c: Include tdesc.h.
11634 (register_bytes, reg_defs, num_registers)
11635 (gdbserver_expedite_regs): Delete.
11636 (get_thread_regcache): If the thread doesn't have a regcache yet,
11637 create one, instead of aborting gdbserver.
11638 (regcache_invalidate_one): Rename to ...
11639 (regcache_invalidate_thread): ... this.
11640 (regcache_invalidate_one): New.
11641 (regcache_invalidate): Only invalidate registers of the current
11642 process.
11643 (init_register_cache): Add target_desc parameter, and use it.
11644 (new_register_cache): Ditto. Assert the target description has a
11645 non zero registers_size.
11646 (regcache_cpy): Add assertions. Adjust.
11647 (realloc_register_cache, set_register_cache): Delete.
11648 (registers_to_string, registers_from_string): Adjust.
11649 (find_register_by_name, find_regno, find_register_by_number)
11650 (register_cache_size): Add target_desc parameter, and use it.
11651 (free_register_cache_thread, free_register_cache_thread_one)
11652 (regcache_release, register_cache_size): New.
11653 (register_size): Add target_desc parameter, and use it.
11654 (register_data, supply_register, supply_register_zeroed)
11655 (supply_regblock, supply_register_by_name, collect_register)
11656 (collect_register_as_string, collect_register_by_name): Adjust.
11657 * regcache.h (struct target_desc): Forward declare.
11658 (struct regcache) <tdesc>: New field.
11659 (init_register_cache, new_register_cache): Add target_desc
11660 parameter.
11661 (regcache_invalidate_thread): Declare.
11662 (regcache_invalidate_one): Delete declaration.
11663 (regcache_release): Declare.
11664 (find_register_by_number, register_cache_size, register_size)
11665 (find_regno): Add target_desc parameter.
11666 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11667 declarations.
11668 * remote-utils.c: Include tdesc.h.
11669 (outreg, prepare_resume_reply): Adjust.
11670 * server.c: Include tdesc.h.
11671 (gdbserver_xmltarget): Delete declaration.
11672 (get_features_xml, process_serial_event): Adjust.
11673 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11674 declare.
11675 (struct process_info) <tdesc>: New field.
11676 (ipa_tdesc): Declare.
11677 * tdesc.c: New file.
11678 * tdesc.h: New file.
11679 * tracepoint.c: Include tdesc.h.
11680 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11681 (get_context_regcache): Adjust to pass ipa_tdesc down.
11682 (do_action_at_tracepoint): Adjust to get the register cache size
11683 from the context regcache's description.
11684 (traceframe_walk_blocks): Adjust to get the register cache size
11685 from the current trace frame's description.
11686 (traceframe_get_pc): Adjust to get current trace frame's
11687 description and pass it down.
11688 (gdb_collect): Adjust to get the register cache size from the
11689 IPA's description.
11690 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11691 (gdbserver_xmltarget): Delete.
11692 (initialize_low_tracepoint): Set the ipa's target description.
11693 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11694 (initialize_low_tracepoint): Set the ipa's target description.
11695 * linux-x86-low.c: Include tdesc.h.
11696 [__x86_64__] (is_64bit_tdesc): New.
11697 (ps_get_thread_area, x86_get_thread_area): Use it.
11698 (i386_cannot_store_register): Rename to ...
11699 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11700 (i386_cannot_fetch_register): Rename to ...
11701 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11702 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11703 to new interface.
11704 (target_regsets): Rename to ...
11705 (x86_regsets): ... this.
11706 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11707 interface.
11708 (x86_siginfo_fixup): Use is_64bit_tdesc.
11709 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11710 (tdesc_x32_avx_linux, tdesc_x32_linux)
11711 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11712 Declare.
11713 (x86_linux_update_xmltarget): Delete.
11714 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11715 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11716 (AMD64_LINUX_USER64_CS): New.
11717 (x86_linux_read_description): New, based on
11718 x86_linux_update_xmltarget.
11719 (same_process_callback): New.
11720 (x86_arch_setup_process_callback): New.
11721 (x86_linux_update_xmltarget): New.
11722 (x86_regsets_info): New.
11723 (amd64_linux_regs_info): New.
11724 (i386_linux_usrregs_info): New.
11725 (i386_linux_regs_info): New.
11726 (x86_linux_regs_info): New.
11727 (x86_arch_setup): Reimplement.
11728 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11729 (x86_emit_ops): Ditto.
11730 (the_low_target): Adjust. Install x86_linux_regs_info,
11731 x86_cannot_fetch_register, and x86_cannot_store_register.
11732 (initialize_low_arch): New.
11733 * linux-ia64-low.c (tdesc_ia64): Declare.
11734 (ia64_fetch_register): Adjust.
11735 (ia64_usrregs_info, regs_info): New globals.
11736 (ia64_regs_info): New function.
11737 (the_low_target): Adjust.
11738 (initialize_low_arch): New function.
11739 * linux-sparc-low.c (tdesc_sparc64): Declare.
11740 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11741 Adjust.
11742 (sparc_arch_setup): New function.
11743 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11744 (the_low_target): Adjust.
11745 (initialize_low_arch): New function.
11746 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11747 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11748 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11749 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11750 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11751 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11752 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11753 (tdesc_powerpc_isa205_vsx64l): Declare.
11754 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11755 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11756 (ppc_set_pc, ppc_get_hwcap): Adjust.
11757 (ppc_usrregs_info): Forward declare.
11758 (!__powerpc64__) ppc_regmap_adjusted: New global.
11759 (ppc_arch_setup): Adjust to the current process'es target
11760 description.
11761 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11762 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11763 (ppc_store_evrregset): Adjust.
11764 (target_regsets): Rename to ...
11765 (ppc_regsets): ... this, and make static.
11766 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11767 (ppc_regs_info): New function.
11768 (the_low_target): Adjust.
11769 (initialize_low_arch): New function.
11770 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11771 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11772 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11773 (tdesc_s390x_linux64v2): Declare.
11774 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11775 (s390_fill_gregset, s390_store_last_break): Adjust.
11776 (target_regsets): Rename to ...
11777 (s390_regsets): ... this, and make static.
11778 (s390_get_pc, s390_set_pc): Adjust.
11779 (s390_get_hwcap): New target_desc parameter, and use it.
11780 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11781 (s390_arch_setup): Adjust to set the current process'es target
11782 description. Don't adjust the regmap.
11783 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11784 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11785 (regs_info_3264): New globals.
11786 (s390_regs_info): New function.
11787 (the_low_target): Adjust.
11788 (initialize_low_arch): New function.
11789 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11790 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11791 [__mips64] (init_registers_mips_linux)
11792 (init_registers_mips_dsp_linux): Delete defines.
11793 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11794 (have_dsp): New global.
11795 (mips_read_description): New, based on mips_arch_setup.
11796 (mips_arch_setup): Reimplement.
11797 (get_usrregs_info): New function.
11798 (mips_cannot_fetch_register, mips_cannot_store_register)
11799 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11800 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11801 (target_regsets): Rename to ...
11802 (mips_regsets): ... this, and make static.
11803 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11804 (dsp_regs_info, regs_info): New globals.
11805 (mips_regs_info): New function.
11806 (the_low_target): Adjust.
11807 (initialize_low_arch): New function.
11808 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11809 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11810 Declare.
11811 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11812 (arm_read_description): New, with bits factored from
11813 arm_arch_setup.
11814 (arm_arch_setup): Reimplement.
11815 (target_regsets): Rename to ...
11816 (arm_regsets): ... this, and make static.
11817 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11818 (arm_regs_info): New function.
11819 (the_low_target): Adjust.
11820 (initialize_low_arch): New function.
11821 * linux-m68k-low.c (tdesc_m68k): Declare.
11822 (target_regsets): Rename to ...
11823 (m68k_regsets): ... this, and make static.
11824 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11825 (m68k_regs_info): New function.
11826 (m68k_arch_setup): New function.
11827 (the_low_target): Adjust.
11828 (initialize_low_arch): New function.
11829 * linux-sh-low.c (tdesc_sharch): Declare.
11830 (target_regsets): Rename to ...
11831 (sh_regsets): ... this, and make static.
11832 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11833 (sh_regs_info, sh_arch_setup): New functions.
11834 (the_low_target): Adjust.
11835 (initialize_low_arch): New function.
11836 * linux-bfin-low.c (tdesc_bfin): Declare.
11837 (bfin_arch_setup): New function.
11838 (bfin_usrregs_info, regs_info): New globals.
11839 (bfin_regs_info): New function.
11840 (the_low_target): Adjust.
11841 (initialize_low_arch): New function.
11842 * linux-cris-low.c (tdesc_cris): Declare.
11843 (cris_arch_setup): New function.
11844 (cris_usrregs_info, regs_info): New globals.
11845 (cris_regs_info): New function.
11846 (the_low_target): Adjust.
11847 (initialize_low_arch): New function.
11848 * linux-cris-low.c (tdesc_crisv32): Declare.
11849 (cris_arch_setup): New function.
11850 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11851 (cris_regs_info): New function.
11852 (the_low_target): Adjust.
11853 (initialize_low_arch): New function.
11854 * linux-m32r-low.c (tdesc_m32r): Declare.
11855 (m32r_arch_setup): New function.
11856 (m32r_usrregs_info, regs_info): New globals.
11857 (m32r_regs_info): Adjust.
11858 (initialize_low_arch): New function.
11859 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11860 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11861 (tic6x_usrregs_info): Forward declare.
11862 (tic6x_read_description): New function, based on ...
11863 (tic6x_arch_setup): ... this. Reimplement.
11864 (target_regsets): Rename to ...
11865 (tic6x_regsets): ... this, and make static.
11866 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11867 (tic6x_regs_info): New function.
11868 (the_low_target): Adjust.
11869 (initialize_low_arch): New function.
11870 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11871 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11872 (target_regsets): Rename to ...
11873 (xtensa_regsets): ... this, and make static.
11874 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11875 globals.
11876 (xtensa_arch_setup, xtensa_regs_info): New functions.
11877 (the_low_target): Adjust.
11878 (initialize_low_arch): New function.
11879 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11880 (nios2_arch_setup): Set the current process'es tdesc.
11881 (target_regsets): Rename to ...
11882 (nios2_regsets): ... this.
11883 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11884 (nios2_regs_info): New function.
11885 (the_low_target): Adjust.
11886 (initialize_low_arch): New function.
a261b8f5
PA
11887 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11888 (aarch64_arch_setup): Set the current process'es tdesc.
11889 (target_regsets): Rename to ...
11890 (aarch64_regsets): ... this.
11891 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11892 (aarch64_regs_info): New function.
11893 (the_low_target): Adjust.
11894 (initialize_low_arch): New function.
3aee8918
PA
11895 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11896 globals.
11897 (target_regsets): Rename to ...
11898 (tile_regsets): ... this.
11899 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11900 (tile_regs_info): New function.
11901 (tile_arch_setup): Set the current process'es tdesc.
11902 (the_low_target): Adjust.
11903 (initialize_low_arch): New function.
11904 * spu-low.c (tdesc_spu): Declare.
11905 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11906 * win32-arm-low.c (tdesc_arm): Declare.
11907 (arm_arch_setup): New function.
11908 (the_low_target): Install arm_arch_setup instead of
11909 init_registers_arm.
11910 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11911 (init_windows_x86): Rename to ...
11912 (i386_arch_setup): ... this. Set `win32_tdesc'.
11913 (the_low_target): Adjust.
11914 * win32-low.c (win32_tdesc): New global.
11915 (child_add_thread): Don't create the thread cache here.
11916 (do_initial_child_stuff): Set the new process'es tdesc.
11917 * win32-low.h (struct target_desc): Forward declare.
11918 (win32_tdesc): Declare.
11919 * lynx-i386-low.c (tdesc_i386): Declare global.
11920 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11921 * lynx-low.c (lynx_tdesc): New global.
11922 (lynx_add_process): Set the new process'es tdesc.
11923 * lynx-low.h (struct target_desc): Forward declare.
11924 (lynx_tdesc): Declare global.
11925 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11926 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11927 * nto-low.c (nto_tdesc): New global.
11928 (do_attach): Set the new process'es tdesc.
11929 * nto-low.h (struct target_desc): Forward declare.
11930 (nto_tdesc): Declare.
11931 * nto-x86-low.c (tdesc_i386): Declare.
11932 (nto_x86_arch_setup): Set `nto_tdesc'.
11933
b1fbec62
GB
119342013-06-04 Gary Benson <gbenson@redhat.com>
11935
11936 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11937 to qSupported response when appropriate.
11938 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11939 with nonzero-length annex.
11940 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11941 arguments supplied in annex.
11942
d1ec4ce7
DE
119432013-05-31 Doug Evans <dje@google.com>
11944
ac44adcb 11945 PR server/15594
d1ec4ce7
DE
11946 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11947 64 bits in 64-cross-32 environment.
11948
9b25f2d3
PA
119492013-05-28 Pedro Alves <palves@redhat.com>
11950
11951 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11952 (aarch64-without-fpu.c): Delete rule.
11953 * configure.srv (aarch64*-*-linux*): Remove references to
11954 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11955 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11956 declaration.
11957
6740dc9c
PA
119582013-05-24 Pedro Alves <palves@redhat.com>
11959
11960 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11961 instead of strchr/decode_address. Error if the range isn't split
11962 with a ','. Don't assume there's be a ':' in the action.
11963
c2d6af84
PA
119642013-05-23 Yao Qi <yao@codesourcery.com>
11965 Pedro Alves <palves@redhat.com>
11966
11967 * linux-low.c (lwp_in_step_range): New function.
11968 (linux_wait_1): If the thread was range stepping and stopped
11969 outside the stepping range, report the stop to GDB. Otherwise,
11970 continue stepping. Add range stepping debug output.
11971 (linux_set_resume_request): Copy the step range from the resume
11972 request to the lwp.
11973 (linux_supports_range_stepping): New.
11974 (linux_target_ops) <supports_range_stepping>: Set to
11975 linux_supports_range_stepping.
11976 * linux-low.h (struct linux_target_ops)
11977 <supports_range_stepping>: New field.
11978 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11979 * linux-x86-low.c (x86_supports_range_stepping): New.
11980 (the_low_target) <supports_range_stepping>: Set to
11981 x86_supports_range_stepping.
11982 * server.c (handle_v_cont): Handle 'r' action.
11983 (handle_v_requests): Append ";r" if the target supports range
11984 stepping.
11985 * target.h (struct thread_resume) <step_range_start,
11986 step_range_end>: New fields.
11987 (struct target_ops) <supports_range_stepping>:
11988 New field.
11989 (target_supports_range_stepping): New macro.
11990
58794e1a
JB
119912013-05-17 Joel Brobecker <brobecker@adacore.com>
11992
11993 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11994 confusion in comment.
11995
d631c5a7
JB
119962013-05-17 Joel Brobecker <brobecker@adacore.com>
11997
11998 * lynx-low.c (struct process_info_private): New type.
11999 (lynx_add_process): New function.
12000 (lynx_create_inferior, lynx_attach): Replace calls to
12001 add_process by calls to lynx_add_process.
12002 (lynx_resume): If PTID is null, then try using
12003 current_process()->private->last_wait_event_ptid.
12004 Add comments.
12005 (lynx_clear_inferiors): Delete. The contents of that function
12006 has been inlined in lynx_mourn;
12007 (lynx_wait_1): Save the ptid in the process's private data.
12008 (lynx_mourn): Free the process' private data. Replace call
12009 to lynx_clear_inferiors by call to clear_inferiors.
12010
96f7a20f
YQ
120112013-05-17 Yao Qi <yao@codesourcery.com>
12012
12013 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12014 the right place.
12015
db0dfaa0
LM
120162013-05-16 Luis Machado <lgustavo@codesourcery.com>
12017
12018 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12019 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12020 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12021 PT_TEXT_END_ADDR guards. Update comments.
12022 (linux_target_op) <read_offsets>: Conditionally define to
12023 linux_read_offsets if the target is UCLIBC and if it defines
12024 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12025
68f5f838
SL
120262013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12027 Andrew Jenner <andrew@codesourcery.com>
12028
12029 * Makefile.in (SFILES): Add linux-nios2-low.c.
12030 (clean): Add action to delete nios2-linux.c.
12031 (nios2-linux.c): New rule.
12032 * configure.srv: Add nios2*-*-linux*.
12033 * linux-nios2-low.c: New.
12034
1ebff1fd
HAQ
120352013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12036
12037 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12038
f6150862
HZ
120392013-04-25 Hui Zhu <hui@codesourcery.com>
12040
12041 PR gdb/15186
f6150862
HZ
12042 * ax.c (ax_printf): Add fflush.
12043
614c279d
TT
120442013-04-22 Tom Tromey <tromey@redhat.com>
12045
12046 * Makefile.in (SFILES): Add filestuff.c.
12047 (OBS): Add filestuff.o.
12048 (filestuff.o): New target.
12049 * config.in, configure: Rebuild.
12050 * configure.ac: Check for fdwalk, pipe2.
12051
7d4e5717
PA
120522013-04-17 Pedro Alves <palves@redhat.com>
12053
12054 * configure.ac (USE_THREAD_DB): Delete variable.
12055 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12056 Don't AC_SUBST USE_THREAD_DB.
12057 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12058 * config.in, configure: Regenerate.
12059
d5c93e41
PA
120602013-04-16 Pedro Alves <palves@redhat.com>
12061
12062 * linux-low.h (struct lwp_info) <thread_known>: Move under
12063 the USE_THREAD_DB #ifdef.
12064
04f5fe89
PA
120652013-04-16 Pedro Alves <palves@redhat.com>
12066
12067 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12068 (linux-low.o): Delete rule.
12069 * linux-low.h: Always include "gdb_thread_db.h" instead of
12070 conditionally including thread_db.h.
12071 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12072 HAVE_THREAD_DB_H.
12073
480b27bf
JK
120742013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12075
12076 * Makefile.in (install-only): Fix make install regression.
12077
43662968
JK
120782013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12079
12080 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12081 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12082 installation.
12083 * gdbserver.1: Remove.
12084
3e74e146
PA
120852013-03-22 Pedro Alves <palves@redhat.com>
12086
12087 * linux-low.c (handle_extended_wait): Don't call
12088 linux_enable_event_reporting.
12089
a8347a2a
TT
120902013-03-15 Tony Theodore <tonyt@logyst.com>
12091
12092 PR build/9098:
12093 * Makefile.in (SHELL): Use @SHELL@.
12094
eeb56fa7
SDJ
120952013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12096
12097 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12098 compiler warning.
12099
4fa7e2ff
JB
121002013-03-13 Joel Brobecker <brobecker@adacore.com>
12101
12102 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12103 Remove extraneous NULL element.
12104
8ddb1965
YQ
121052013-03-13 Yao Qi <yao@codesourcery.com>
12106
12107 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12108 'V' block in trace frame.
12109
9accd112
MM
121102013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12111
12112 * target.h (struct target_ops): Add btrace ops.
12113 (target_supports_btrace): New macro.
12114 (target_enable_btrace): New macro.
12115 (target_disable_btrace): New macro.
12116 (target_read_btrace): New macro.
12117 * gdbthread.h (struct thread_info): Add btrace field.
12118 * server.c: Include btrace-common.h.
12119 (handle_btrace_general_set): New function.
12120 (handle_btrace_enable): New function.
12121 (handle_btrace_disable): New function.
12122 (handle_general_set): Call handle_btrace_general_set.
12123 (handle_qxfer_btrace): New function.
12124 (struct qxfer qxfer_packets[]): Add btrace entry.
12125 * inferiors.c (remove_thread): Disable btrace.
12126 * linux-low: Include linux-btrace.h.
12127 (linux_low_enable_btrace): New function.
12128 (linux_low_read_btrace): New function.
12129 (linux_target_ops): Add btrace ops.
12130 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12131 Add srv_linux_btrace=yes.
12132 (x86_64-*-linux*): Add linux-btrace.o.
12133 Add srv_linux_btrace=yes.
12134 * configure.ac: Define HAVE_LINUX_BTRACE.
12135 * config.in: Regenerated.
12136 * configure: Regenerated.
12137
5cc22e4c
MM
121382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12139
12140 * server.c (handle_qxfer): Preserve error message if -3 is
12141 returned.
12142 (qxfer): Document the -3 return value.
12143
7c97f91e
MM
121442013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12145
12146 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12147 (linux_btrace_h): New variable.
12148 (linux-btrace.o): New rule.
12149
be9a119c 121502013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
12151 Hafiz Abid Qadeer <abidh@codesourcery.com>
12152
12153 * tracepoint.c (trace_buffer_size): New global.
12154 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12155 (init_trace_buffer): Change to one-argument function. Allocate
12156 trace buffer memory.
12157 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12158 handle QTBuffer:size packet.
12159 (cmd_bigqtbuffer_size): New function.
12160 (initialize_tracepoint): Call init_trace_buffer with
12161 DEFAULT_TRACE_BUFFER_SIZE.
12162 * server.c (handle_query): Add QTBuffer:size in the
12163 supported packets.
12164
e64f7499
YQ
121652013-03-07 Yao Qi <yao@codesourcery.com>
12166
12167 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12168 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12169 of -1.
12170 (cmd_qtsp): Adjust condition. Do post increment.
12171 Set cur_action and cur_step_action back to 0.
12172
f0ae6fc3
PA
121732013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12174
12175 PR server/15236
12176 * linux-low.c (linux_write_memory): Return early success if LEN is
12177 zero.
12178
b5b0b0af
CV
121792013-03-05 Corinna Vinschen <vinschen@redhat.de>
12180
334ad4a8 12181 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 12182
589bc927
TT
121832013-02-28 Tom Tromey <tromey@redhat.com>
12184
12185 * configure.ac: Invoke AC_SYS_LARGEFILE.
12186 * configure, config.in: Rebuild.
12187
dfe07582
CV
121882013-02-28 Corinna Vinschen <vinschen@redhat.com>
12189
12190 * win32-low.c: Throughout, fix format strings and casts of
12191 printf-like functions to avoid type related warnings on all
12192 platforms.
12193 (get_child_debug_event): Print dwDebugEventCode as hex since
12194 that's how it's usually documented.
12195
736cd585
YQ
121962013-02-28 Yao Qi <yao@codesourcery.com>
12197
12198 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12199 pulongest.
12200
e1f58301
JW
122012013-02-27 Jiong Wang <jiwang@tilera.com>
12202
12203 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12204 (reg-tilegx32.c): New rule.
12205 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12206 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12207 different register info initializer according to elf class.
12208 (init_registers_tilgx32): New function. The tilegx32 register info
12209 initializer.
12210 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12211 (tile_store_gregset): Likewise.
12212
d171ca78
YQ
122132013-02-27 Yao Qi <yao@codesourcery.com>
12214
12215 * server.c (process_point_options): Print debug message when
12216 debug_threads is true.
12217
282bbdf3
YQ
122182013-02-26 Yao Qi <yao@codesourcery.com>
12219
12220 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12221
aca22551
PA
122222013-02-19 Pedro Alves <palves@redhat.com>
12223 Kai Tietz <ktietz@redhat.com>
12224
12225 PR gdb/15161
12226
12227 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12228 instead of strtoul to extract address from packet.
12229 (process_serial_event) <'z'>: Likewise.
12230
4f3cee1c
YQ
122312013-02-18 Yao Qi <yao@codesourcery.com>
12232
12233 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12234
8e1d55a3
PA
122352013-02-14 Pedro Alves <palves@redhat.com>
12236
12237 Plug memory leak.
12238
12239 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12240 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12241
458820da
PA
122422013-02-14 Pedro Alves <palves@redhat.com>
12243
12244 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12245
baea0dae
PA
122462013-02-14 Pedro Alves <palves@redhat.com>
12247
12248 * tracepoint.c (save_string): Delete.
12249 (add_tracepoint_action): Use savestring instead of save_string.
12250
0b1afbb3
PA
122512013-02-12 Pedro Alves <palves@redhat.com>
12252
12253 * linux-xtensa-low.c: Ditto.
12254 * xtensa-xtregs.c: Ditto.
12255
8a4ac37e
PA
122562013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12257
12258 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12259 thread_db.
12260
148de6bb
MS
122612013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12262
12263 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12264 aarch64_num_wp_regs and aarch64_num_bp_regs to
12265 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12266
55fac6e0
MS
122672013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12268
12269 * linux-aarch64-low.c (ps_get_thread_area): Replace
12270 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12271
176eb98c
MS
122722013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12273 Marcus Shawcroft <marcus.shawcroft@arm.com>
12274 Nigel Stephens <nigel.stephens@arm.com>
12275 Yufeng Zhang <yufeng.zhang@arm.com>
12276
12277 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12278 (aarch64.c, aarch64-without-fpu.c): New targets.
12279 * configure.srv (aarch64*-*-linux*): New.
12280 * linux-aarch64-low.c: New file.
12281
56f7af9c
MS
122822013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12283
43aaf8b6 12284 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
12285 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12286 (dequeue_one_deferred_signal, linux_resume_one_thread)
12287 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12288 (linux_tracefork_grandchild, linux_test_for_tracefork)
12289 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12290 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12291 where the argument is 0.
12292
60f662b0
YQ
122932013-01-25 Yao Qi <yao@codesourcery.com>
12294
12295 * event-loop.c: Include "queue.h".
12296 (gdb_event_p): New typedef.
12297 (struct gdb_event) <next_event>: Remove.
12298 (event_queue): Change to QUEUE(gdb_event_p).
12299 (async_queue_event): Remove.
12300 (gdb_event_xfree): New.
12301 (initialize_event_loop): New.
12302 (process_event): Use API from QUEUE.
12303 (wait_for_event): Likewise.
12304 * server.c (main): Call initialize_event_loop.
12305 * server.h (initialize_event_loop): Declare.
12306
5ae4861a
YQ
123072013-01-18 Yao Qi <yao@codesourcery.com>
12308
12309 * ax.h (struct eval_agent_expr_context): New.
12310 (gdb_eval_agent_expr): Update declaration.
12311 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12312 TFRAME. Add new argument CTX.
12313 * server.h (struct eval_agent_expr_context): Declare.
12314 (agent_mem_read, agent_tsv_read): Update declaration.
12315 (agent_mem_read_string): Likewise.
12316 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12317 (add_traceframe_block): Add new argument TPOINT.
12318 Increase TPOINT->traceframe_usage.
12319 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12320 eval_tracepoint_agent_expr.
12321 (condition_true_at_tracepoint): Likewise.
12322 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12323 (agent_mem_read_string, agent_tsv_read): Likewise.
12324
85e00e85
YQ
123252013-01-16 Yao Qi <yao@codesourcery.com>
12326
12327 * linux-low.c (linux_resume_one_lwp): Don't check
12328 'lwp->bp_reinsert != 0'.
12329
4039cf45
JB
123302013-01-07 Joel Brobecker <brobecker@adacore.com>
12331 Pedro Alves <palves@redhat.com>
12332
12333 * lynx-low.c (ptrace_request_to_str): Define a temporary
12334 macro and use it to simplify this function's implementation.
12335
9044dee2
JB
123362013-01-07 Joel Brobecker <brobecker@adacore.com>
12337
12338 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12339 sets errno.
12340
e6352c8f
JB
123412013-01-07 Joel Brobecker <brobecker@adacore.com>
12342
12343 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12344
50681a27
JB
123452013-01-07 Joel Brobecker <brobecker@adacore.com>
12346
12347 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12348
3f6e77ef
JB
123492013-01-07 Joel Brobecker <brobecker@adacore.com>
12350
12351 * lynx-low.c (lynx_resume): Use the resume_info parameter
12352 to determine the ptid for the lynx_ptrace call, unless
12353 it is equal to minus_one_ptid, in which case we use the
12354 ptid of the current_inferior.
12355 (lynx_wait_1): After having received a thread create/exit
12356 event, resume the inferior's execution using the signaling
12357 thread's ptid, rather than the old ptid.
12358
7fda33ae
JB
123592013-01-07 Joel Brobecker <brobecker@adacore.com>
12360
12361 * lynx-low.c (lynx_resume): Delete variable ret.
12362
b9786c74
JB
123632013-01-01 Joel Brobecker <brobecker@adacore.com>
12364
12365 * gdbreplay.c (gdbreplay_version): Update copyright year.
12366 * server.c (gdbserver_version): Likewise.
12367
8b93d60f
JB
123682012-12-17 Joel Brobecker <brobecker@adacore.com>
12369
12370 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12371 new thread.
12372
037335a7
JB
123732012-12-17 Joel Brobecker <brobecker@adacore.com>
12374
12375 * lynx-low.c (ptrace_request_to_str): Add handling for
12376 PTRACE_GETTRACESIG.
12377
52d4cbd8
JB
123782012-12-17 Joel Brobecker <brobecker@adacore.com>
12379
12380 * lynx-low.c (lynx_attach): Delete variable new_process.
12381
ab8f6ca9
JB
123822012-12-17 Joel Brobecker <brobecker@adacore.com>
12383
12384 * lynx-low.c (lynx_create_inferior): Delete variable
12385 new_process.
12386
78cbc024
JB
123872012-12-17 Joel Brobecker <brobecker@adacore.com>
12388
12389 * lynx-low.c (ptrace_request_to_str): Do not handle
12390 PTRACE_GETTHREADLIST if this macro does not exist.
12391
14a00470
YQ
123922012-12-15 Yao Qi <yao@codesourcery.com>
12393
12394 * Makefile.in (OBS): Add notif.o.
12395 * notif.c, notif.h: New.
12396 * server.c: Include "notif.h".
12397 (struct vstop_notif) <next>: Remove.
12398 <base>: New field.
12399 (queue_stop_reply): Update.
12400 (push_event, send_next_stop_reply): Remove.
12401 (discard_queued_stop_replies): Update.
12402 (notif_stop): New variable.
12403 (handle_v_stopped): Remove.
12404 (handle_v_requests): Don't call handle_v_stopped. Call
12405 handle_ack_notif instead.
12406 (queue_stop_reply_callback): Call notif_event_enque instead
12407 of queue_stop_reply.
12408 (handle_status): Don't call send_next_stop_reply, call
12409 notif_write_event instead.
12410 (kill_inferior_callback): Likewise.
12411 (detach_or_kill_inferior_callback): Likewise.
12412 (main): Call initialize_notif.
12413 (process_serial_event): Call QUEUE_is_empty.
12414 (handle_target_event): Call notif_push instead of push event.
12415 * server.h (push_event): Remove declaration.
12416
61c125b9
TT
124172012-12-10 Tom Tromey <tromey@redhat.com>
12418
12419 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12420 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12421 macros.
12422 (.c.o): Rewrite.
12423 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12424 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12425 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12426 (amd64-linux-ipa.o, ax.o): Rewrite.
12427 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12428 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12429 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12430 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12431 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12432 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12433 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12434 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12435 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12436 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12437 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12438 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12439 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12440 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12441 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12442 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12443 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12444 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12445 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12446 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12447 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12448 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12449 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12450 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12451 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12452 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12453 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12454 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12455 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12456 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12457 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12458 (reg-tilegx.o): Remove.
12459 (all_object_files): New macro.
12460 Include .deps files.
12461 * aclocal.m4, configure: Rebuild.
12462 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12463 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12464 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12465
e90e9ad9
TT
124662012-12-05 Tom Tromey <tromey@redhat.com>
12467
12468 PR gdb/14917:
12469 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12470
02d403bf 124712012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
12472
12473 * configure.ac: Check for linux/perf_event.h.
12474 * config.in: Regenerated.
12475 * configure: Regenerated.
12476
0270a750
PA
124772012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12478
12479 * hostio.c (handle_readlink): Decrease buffer size
12480 parameter passed to readlink by one byte.
12481
8c29b58e
YQ
124822012-11-26 Yao Qi <yao@codesourcery.com>
12483
12484 * configure.ac (build_warnings): Append '-Wempty-body'.
12485 * configure: Regenerated.
12486 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12487 body.
12488
8bdce1ff
PM
124892012-11-15 Pierre Muller <muller@sourceware.org>
12490
12491 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12492 * config.in: Regenerate.
12493 * configure: Regenerate.
12494 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12495 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12496 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12497 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12498 header.
12499 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12500 instead of <sys/wait.h> header.
12501 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12502
02d403bf 125032012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
12504
12505 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12506 (various make rules): Remove -DGDBSERVER
12507
fbd5db48
YQ
125082012-11-09 Yao Qi <yao@codesourcery.com>
12509
12510 * spu-low.c (current_ptid): Move it to ..
12511 * gdbthread.h: ... here. New.
12512 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12513 * server.c (myresume, process_serial_event): Likewise.
12514 * thread-db.c (thread_db_find_new_threads): Likewise.
12515 * tracepoint.c (run_inferior_command): Likewise.
12516
b3dc46ff
AB
125172012-10-01 Andrew Burgess <aburgess@broadcom.com>
12518
12519 * server.c (handle_search_memory_1): Include access length in
12520 warning message.
12521
07c04788
HPN
125222012-09-05 Michael Brandt <michael.brandt@axis.com>
12523
12524 * linux-crisv32-low.c: Fix compile errors.
12525
918d227b
YQ
125262012-09-04 Yao Qi <yao@codesourcery.com>
12527
12528 * tracepoint.c (cmd_qtsv): Adjust debug message.
12529 Don't check CUR_TPOINT.
12530
18c1b81a
YQ
125312012-08-28 Yao Qi <yao@codesourcery.com>
12532
12533 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12534 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12535 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12536 Remove declarations of xmalloc, xreallloc, xstrdup and
12537 freeargv.
12538 * Makefile.in (libiberty_h): New.
12539 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12540 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12541
dc82f37b
YQ
125422012-08-23 Yao Qi <yao@codesourcery.com>
12543
12544 * server.h: Remove declaration of 'xsnprintf'.
12545
406b1477
KS
125462012-08-22 Keith Seitz <keiths@redhat.com>
12547
12548 * server.h: Include build-gnulib-gbserver/config.h.
12549 * gdbreplay.c: Likewise.
12550
e6712ff1
DE
125512012-08-08 Doug Evans <dje@google.com>
12552
12553 * Makefile.in (SFILES): Add gdb_vecs.c.
12554 (OBS): Add gdb_vecs.o.
12555 (gdb_vecs_h, host_defs_h): New variables.
12556 (thread-db.o): Add $(gdb_vecs_h) dependency.
12557 (gdb_vecs.o): New rule.
12558 * thread-db.c: #include "gdb_vecs.h".
12559 (thread_db_load_search): Use a vector to iterate over path elements.
12560 Handle text appearing after "$pdir".
12561
12562 * configure.ac: Add check for strstr.
12563 * config.in: Regenerate.
12564 * configure: Regenerate.
12565
7c3270ae
UW
125662012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12567
12568 * hostio.c (handle_pread): If pread fails, fall back to attempting
12569 lseek/read.
12570 (handle_pwrite): Likewise for pwrite.
12571
b62e2b27
UW
125722012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12573
12574 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12575 between unsupported TYPE and unimplementable ADDR/LEN combination.
12576 (arm_insert_point): Act on new return value.
12577
78a99e91
PA
125782012-07-31 Pedro Alves <palves@redhat.com>
12579
12580 * server.c (process_point_options): Only skip tokens if we find
12581 one that is unrecognized. Don't treat 'X' specially while
12582 skipping unrecognized tokens.
12583
fcf303ab
UW
125842012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12585
12586 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12587 to 4-byte-align HW breakpoint addresses for Thumb.
12588
7255706c
YQ
125892012-07-27 Yao Qi <yao@codesourcery.com>
12590
12591 PR remote/14161.
12592
12593 * server.h: Declare gdb_agent_about_to_close.
12594 * target.c (kill_inferior): Include "agent.h".
12595 New. Send command 'kill'.
12596 * target.h (kill_inferior): Removed macro.
12597 * tracepoint.c (gdb_agent_about_to_close): New.
12598 (gdb_agent_helper_thread): Handle command 'close'.
12599 Wait endlessly until the inferior stops.
12600 Install gdb_agent_remove_socket to atexit hook.
12601 (agent_socket_name): New static variable.
12602 (gdb_agent_socket_init): Replace local variable 'name' with
12603 'agent_socket_name'.
12604 (gdb_agent_remove_socket): New.
12605
5a3f286f
YQ
126062012-07-27 Yao Qi <yao@codesourcery.com>
12607
12608 * server.c (process_point_options): Stop at 'X' when parsing.
12609
961bd387
ME
126102012-07-19 Michael Eager <eager@eagercon.com>
12611
a261b8f5 12612 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
12613 to hw_execute.
12614 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12615 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12616 hardware breakpoint.
12617
aa7c7447
JK
126182012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12619
12620 * gdbserver/linux-low.c (initialize_low): Call
12621 linux_ptrace_init_warnings.
12622
7f216e7c
DE
126232012-07-02 Doug Evans <dje@google.com>
12624
12625 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12626 pointer to int.
12627
d3ce09f5
SS
126282012-07-02 Stan Shebs <stan@codesourcery.com>
12629
12630 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12631 (ax.o): Add it to build rule.
12632 (ax-ipa.o): Ditto.
12633 (OBS): Add format.o.
12634 (IPA_OBS): Add format.o.
12635 * server.c (handle_query): Claim support for breakpoint commands.
12636 (process_point_options): Add command case.
12637 (process_serial_event): Leave running if there are printfs in
12638 effect.
12639 * mem-break.h (any_persistent_commands): Declare.
12640 (add_breakpoint_commands): Declare.
12641 (gdb_no_commands_at_breakpoint): Declare.
12642 (run_breakpoint_commands): Declare.
12643 * mem-break.c (struct point_command_list): New struct.
12644 (struct breakpoint): New field command_list.
12645 (any_persistent_commands): New function.
12646 (add_commands_to_breakpoint): New function.
12647 (add_breakpoint_commands): New function.
12648 (gdb_no_commands_at_breakpoint): New function.
12649 (run_breakpoint_commands): New function.
12650 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12651 locally.
12652 * ax.c: Include format.h.
12653 (ax_printf): New function.
12654 (gdb_eval_agent_expr): Add printf opcode.
12655
2f8f6aed
YQ
126562012-06-13 Yao Qi <yao@codesourcery.com>
12657
12658 * server.c (start_inferior): Remove duplicated writes to fields
12659 'last_resume_kind' and 'last_status' of 'current_inferior'.
12660
0c9070b3
YQ
126612012-06-12 Yao Qi <yao@codesourcery.com>
12662 Pedro Alves <palves@redhat.com>
12663
12664 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12665 comment.
12666 * server.c (handle_v_cont): Extend comment.
12667
c52daf70
YQ
126682012-06-11 Yao Qi <yao@codesourcery.com>
12669
12670 * linux-low.c (linux_attach): Add 'static'.
12671
d38bbb0a
YQ
126722012-06-06 Yao Qi <yao@codesourcery.com>
12673
12674 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12675
89dc0afd
JK
126762012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12677
12678 Fix gcc -flto compilation warning.
12679 * server.c (main): Make variable multi_mode and attach volatile.
12680
75f62ce7
TJB
126812012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12682
12683 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12684 if the platform doesn't know about it.
12685
65f479b6
PA
126862012-05-30 Jeff Kenton <jkenton@tilera.com>
12687
12688 * Makefile.in (SFILES): Add linux-tile-low.c.
12689 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12690 * configure.srv: Handle tilegx-*-linux*.
12691 * linux-tile-low.c: New file.
12692
0c5bf5a9
JK
126932012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12694
12695 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12696
a493e3e2
PA
126972012-05-24 Pedro Alves <palves@redhat.com>
12698
12699 PR gdb/7205
12700
43aaf8b6 12701 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 12702
2ea28649
PA
127032012-05-24 Pedro Alves <palves@redhat.com>
12704
12705 PR gdb/7205
12706
12707 Replace target_signal with gdb_signal throughout.
12708
8d409d16
MR
127092012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12710
12711 * linux-low.c (linux_store_registers): Avoid the copying sequence
12712 when no data has been retrieved by ptrace.
12713
23512c01
MGD
127142012-05-22 Will Deacon <will.deacon@arm.com>
12715
12716 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12717 Include asm/ptrace.h.
12718 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12719 already defined.
12720
4934b29e
MR
127212012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12722
12723 * linux-low.c (linux_store_registers): Don't re-retrieve data
12724 with ptrace that has already been obtained from /proc. Always
12725 copy any data retrieved with ptrace to the buffer supplied.
12726
bde24c0a
PA
127272012-05-11 Yao Qi <yao@codesourcery.com>
12728 Pedro Alves <palves@redhat.com>
12729
12730 * linux-low.c (enum stopping_threads_kind): New.
12731 (stopping_threads): Change type to `enum stopping_threads_kind'.
12732 (handle_extended_wait): If stopping and suspending threads, leave
12733 the new_lwp suspended too.
12734 (linux_wait_for_event): Adjust.
12735 (stop_all_lwps): Set `stopping_threads' to
12736 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12737 whether we're suspending threads or just stopping them. Assert no
12738 recursion happens.
12739
623b6bdf
YQ
127402012-04-29 Yao Qi <yao@codesourcery.com>
12741
12742 * server.h: Move some code to ...
12743 * gdbthread.h: ... here. New.
12744 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12745 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12746 (nto-low.o, win32-low.o): Likewise.
12747 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12748 * regcache.c, remote-utils.c, server.c: Likewise.
12749 * target.c, tracepoint.c, win32-low.c: Likewise.
12750
f15f9948
TJB
127512012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12752
12753 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12754 (PTRACE_ARG4_TYPE): Likewise.
12755 (PTRACE_XFER_TYPE): Likewise.
12756 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12757 ptrace to PTRACE_ARG3_TYPE.
12758 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12759 (PTRACE_ARG4_TYPE): Likewise.
12760 (PTRACE_XFER_TYPE): Likewise.
12761 (linux_detach_one_lwp): Cast fourth argument of
12762 ptrace to long then PTRACE_ARG4_TYPE.
12763 (regsets_fetch_inferior_registers): Cast third argument of
12764 ptrace to long then PTRACE_ARG3_TYPE.
12765 (regsets_store_inferior_registers): Likewise.
12766
38ea300a
PA
127672012-04-20 Pedro Alves <palves@redhat.com>
12768
12769 * configure: Regenerate.
12770
c971b7fa
PA
127712012-04-19 Pedro Alves <palves@redhat.com>
12772
43aaf8b6 12773 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 12774 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
12775 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12776 (all, install-only, uninstall, clean-info, all-lib, clean): No
12777 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12778 (maintainer-clean realclean distclean): Use subdir_do.
12779 (subdir_do): New.
12780 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 12781 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
12782 * acinclude.m4: Include acx_configure_dir.m4.
12783 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12784 calls. Call AC_PROG_RANLIB. Configure gnulib using
12785 ACX_CONFIGURE_DIR.
12786 (GNULIB): New.
12787 (GNULIB_STDINT_H): Adjust.
12788 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12789 * gdbreplay.c: Include build-gnulib/config.h.
12790 * server.h: Likewise.
12791 * aclocal.m4: Regenerate.
12792 * config.in: Regenerate.
12793 * configure: Regenerate.
c971b7fa 12794
809277f8
PA
127952012-04-19 Pedro Alves <palves@redhat.com>
12796
12797 * Makefile.in (LIBGNU, INCGNU): Adjust.
12798 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12799 (all, install-only, uninstall, clean-info, all-lib, clean)
12800 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12801 * configure.ac: Adjust AC_OUTPUT output.
12802 * aclocal.m4: Regenerate.
12803 * configure: Regenerate.
12804
fd9bb8b8
PA
128052012-04-19 Pedro Alves <palves@redhat.com>
12806
12807 * Makefile.in (generated_files): New.
12808 (server_h): Remove the explicit dependency on config.h, and depend
12809 on $generated_files.
12810
1c298c66
PA
128112012-04-19 Pedro Alves <palves@redhat.com>
12812
12813 * Makefile.in (INCGNU): Add -Ignulib.
12814
57c4b50b
PA
128152012-04-19 Pedro Alves <palves@redhat.com>
12816
12817 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12818 (INCGNU): ... this, and spell out -I here.
12819 (GNULIB_LIB): Rename to ...
12820 (LIBGNU): ... this.
12821 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12822
1030e047
PA
128232012-04-19 Pedro Alves <palves@redhat.com>
12824
12825 * config.in: Regenerate.
12826
447d4319
PA
128272012-04-19 Pedro Alves <palves@redhat.com>
12828
12829 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12830 * server.h (memmem): Remove declaration.
12831 * config.in: Regenerate.
12832 * configure: Regenerate.
12833
aad9eab9
YQ
128342012-04-19 Yao Qi <yao@codesourcery.com>
12835
12836 * Makefile.in (SFILES): Add common/vec.c.
12837 (OBS): Add vec.o.
12838 (vec.o): New rule.
12839
3e10640f
YQ
128402012-04-19 Yao Qi <yao@codesourcery.com>
12841
12842 * remote-utils.c (prepare_resume_reply): Replace with macro
12843 target_core_of_thread.
12844 * server.c (handle_qxfer_threads_proper): Likewise.
12845 * target.h (traget_core_of_thread): New macro.
12846
71622373
PA
128472012-04-18 Pedro Alves <palves@redhat.com>
12848
12849 * aclocal.m4: Regenerate.
12850 * configure: Regenerate.
12851
80d26939
YQ
128522012-04-16 Yao Qi <yao@codesourcery.com>
12853
12854 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12855 duplicated on address.
12856
42476b70
YQ
128572012-04-16 Yao Qi <yao@codesourcery.com>
12858
12859 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12860 (struct tracepoint_action_ops) <send>: New field.
12861 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12862 (agent_expr_send, x_tracepoint_action_send): New.
12863 (l_tracepoint_action_send): New.
12864 (cmd_qtdp): Download and install tracepoint
12865 according to `use_agent'.
12866 (run_inferior_command): Add one more parameter `len'.
12867 Update callers.
12868 (tracepoint_send_agent): New.
12869 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12870
7bc83639
YQ
128712012-04-16 Yao Qi <yao@codesourcery.com>
12872
12873 * tracepoint.c (download_tracepoints): Moved to ...
12874 (cmd_qtstart): ... here.
12875
5f18041e
YQ
128762012-04-14 Yao Qi <yao@codesourcery.com>
12877
12878 * tracepoint.c: Include inttypes.h.
12879 (struct collect_memory_action): Use sized types.
12880 (struct tracepoint): Likewise.
12881 (cmd_qtdp, stop_tracing): Update print specifiers.
12882 (cmd_qtp, response_tracepoint): Likewise.
12883 (collect_data_at_tracepoint): Likewise.
12884 (collect_data_at_step): Likewise.
12885
55a8c076
YQ
128862012-04-14 Yao Qi <yao@codesourcery.com>
12887
12888 Import gnulib module inttypes.
12889 * aclocal.m4, config.in, configure: Regenerated.
12890
dc750257
YQ
128912012-04-14 Yao Qi <yao@codesourcery.com>
12892
12893 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12894 Makefile and config.status at last.
12895
0ab5faf9
YQ
128962012-04-13 Yao Qi <yao@codesourcery.com>
12897
12898 * tracepoint.c: Include stdint.h unconditionally.
12899
18f5fd81
TJB
129002012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12901
12902 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12903 on BFD_HAVE_SYS_PROCFS_TYPE.
12904 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12905 * configure: Regenerate.
12906 * config.in: Likewise.
12907
4d47af5c
L
129082012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12909
12910 * Makefile.in (clean): Also remove x32.c x32-linux.c
12911 x32-avx.c x32-avx-linux.c.
12912 (x32.o): New target.
12913 (x32.c): Likewise.
12914 (x32-linux.o): Likewise.
12915 (x32-linux.c): Likewise.
12916 (x32-avx.o): Likewise.
12917 (x32-avx.c): Likewise.
12918 (x32-avx-linux.o): Likewise.
12919 (x32-avx-linux.c): Likewise.
12920
12921 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12922 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12923 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12924 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12925 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12926 i386/x32-avx-linux.xml.
12927
12928 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12929 (init_registers_x32_avx_linux): Likwise.
12930 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12931 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12932
ecedbe58
PA
129332012-04-13 Pedro Alves <palves@redhat.com>
12934
12935 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12936 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12937 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12938 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12939 the sub-make.
12940
c92b5177
L
129412012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12942
12943 * linux-x86-low.c (compat_x32_clock_t): New.
12944 (compat_x32_siginfo_t): Likewise.
12945 (compat_x32_siginfo_from_siginfo): Likewise.
12946 (siginfo_from_compat_x32_siginfo): Likewise.
12947 (linux_is_elf64): Likewise.
12948 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12949 and siginfo_from_compat_x32_siginfo for x32.
12950 (x86_arch_setup): Set linux_is_elf64.
12951
214d508e
L
129522012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12953
12954 PR gdb/13969
12955 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12956 e_machine field.
12957 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12958 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12959 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12960 compatible with process.
12961
c9a1864a
YQ
129622012-04-12 Yao Qi <yao@codesourcery.com>
12963
12964 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12965 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12966 (install-only, install-info, clean): Handle sub dir gnulib.
12967 (all-lib, am--refresh): New targets.
12968 (memmem.o): Remove target.
12969 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12970 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12971 (AC_REPLACE_FUNCS): Remove memmem.
12972 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12973 (AC_OUTPUT): Generate Makefile in gnulib/.
12974 * aclocal.m4, config.in, configure: Regenerated.
12975
367ba2c2
MR
129762012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12977
12978 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12979
9d236627
PA
129802012-04-05 Pedro Alves <palves@redhat.com>
12981
12982 -Werror=strict-aliasing
12983
12984 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12985 pointer.
12986
111217b3
PA
129872012-04-04 Pedro Alves <palves@redhat.com>
12988
12989 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12990 (sparc_store_gregset_from_stack, sparc_store_gregset)
12991 (sparc_breakpoint_at): Fix formatting.
12992
8365dcf5
TJB
129932012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12994
12995 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12996 are available.
12997 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12998 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12999 * config.in: Regenerate.
13000 * configure: Likewise.
13001
689cc2ae
PA
130022012-03-29 Pedro Alves <palves@redhat.com>
13003
13004 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13005 Correct ptrace arguments.
13006
c14dfd32
PA
130072012-03-28 Pedro Alves <palves@redhat.com>
13008
13009 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13010 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13011 (IA64_FR1_REGNUM): New defines.
13012 (ia64_fetch_register): New.
13013 (the_low_target): Install it.
13014 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13015 field.
13016 * linux-low.c (linux_fetch_registers): Try the
13017 the_low_target.fetch_register hook first.
13018
13019 * linux-arm-low.c (the_low_target): Adjust.
13020 * linux-bfin-low.c (the_low_target): Adjust.
13021 * linux-cris-low.c (the_low_target): Adjust.
13022 * linux-crisv32-low.c (the_low_target): Adjust.
13023 * linux-m32r-low.c (the_low_target): Adjust.
13024 * linux-m68k-low.c (the_low_target): Adjust.
13025 * linux-mips-low.c (the_low_target): Adjust.
13026 * linux-ppc-low.c (the_low_target): Adjust.
13027 * linux-s390-low.c (the_low_target): Adjust.
13028 * linux-sh-low.c (the_low_target): Adjust.
13029 * linux-sparc-low.c (the_low_target): Adjust.
13030 * linux-tic6x-low.c (the_low_target): Adjust.
13031 * linux-x86-low.c (the_low_target): Adjust.
13032 * linux-xtensa-low.c (the_low_target): Adjust.
13033
63c88e13
PA
130342012-03-26 Pedro Alves <palves@redhat.com>
13035
13036 * server.c (handle_qxfer_libraries): Don't bail early if
13037 the_target->qxfer_libraries_svr4 is not NULL.
13038
fb723180
PA
130392012-03-26 Pedro Alves <palves@redhat.com>
13040
13041 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13042
0afae3cf
PA
130432012-03-23 Pedro Alves <palves@redhat.com>
13044
13045 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13046 "library-list-svr4" element's start tag when the the DSO list is
13047 empty.
13048
485f1ee4
PA
130492012-03-23 Pedro Alves <palves@redhat.com>
13050
13051 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13052 a variable whose type size is the same as the inferior's pointer
13053 size.
13054
a5362b9a
TS
130552012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13056
13057 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13058 struct siginfo.
13059 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13060 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13061 * linux-low.h: Include <signal.h>.
13062 (struct siginfo): Remove forward declaration.
13063 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13064 struct siginfo.
13065
d226c142
MF
130662012-03-21 Mike Frysinger <vapier@gentoo.org>
13067
13068 * .gitignore: Ignore more files.
13069
122f36ef
PA
130702012-03-19 Pedro Alves <palves@redhat.com>
13071 Jan Kratochvil <jan.kratochvil@redhat.com>
13072
13073 * server.c (cont_thread, general_thread): Add describing comments.
13074 (start_inferior): Clear `cont_thread'.
13075 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13076 of a process.
13077
fc3e5175
YQ
130782012-03-15 Yao Qi <yao@codesourcery.com>
13079
13080 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13081 handling to ...
13082 (cmd_qtdp): ... here.
13083
8d0d92cd
YQ
130842012-03-15 Yao Qi <yao@codesourcery.com>
13085
13086 * tracepoint.c (struct tracepoint_action_ops): New.
13087 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13088 (m_tracepoint_action_download): New.
13089 (r_tracepoint_action_download): New.
13090 (x_tracepoint_action_download): New.
13091 (l_tracepoint_action_download): New.
13092 (add_tracepoint_action): Install `action->ops' according type.
13093 (download_tracepoint_1): Move code `download' function pointer
13094 of various tracepoint_action_ops.
13095
87b0bb13
JK
130962012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13097
13098 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13099 linux_ptrace_attach_warnings.
13100
5f572dec
JK
131012012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13102
13103 * Makefile.in (linux-ptrace.o): New.
13104 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13105 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13106 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13107 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13108 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13109 of these targets.
13110 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13111
f4647387
YQ
131122012-03-08 Yao Qi <yao@codesourcery.com>
13113 Pedro Alves <palves@redhat.com>
13114
13115 Fix PR server/13392.
13116 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13117 offset of JMP insn.
13118 * tracepoint.c (remove_tracepoint): New.
13119 (cmd_qtdp): Call remove_tracepoint when failed to install.
13120
9b224c5e
PA
131212012-03-07 Pedro Alves <palves@redhat.com>
13122
13123 * linux-low.c (get_detach_signal): New.
13124 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13125 Pass on pending signals to PTRACE_DETACH. Check the result of the
13126 ptrace call.
13127 * server.c (program_signals, program_signals_p): New.
13128 (handle_general_set): Handle QProgramSignals.
13129 * server.h (program_signals, program_signals_p): Declare.
13130
e237a7e2
JK
131312012-03-05 Pedro Alves <palves@redhat.com>
13132 Jan Kratochvil <jan.kratochvil@redhat.com>
13133
13134 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13135 New comment why.
13136
5808517f
YQ
131372012-03-03 Yao Qi <yao@codesourcery.com>
13138
13139 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13140 agent_look_up_symbols.
13141
58b4daa5
YQ
131422012-03-03 Yao Qi <yao@codesourcery.com>
13143
13144 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13145 (linux-x86-low.o): Likewise.
13146 * server.h: Remove in_process_agent_loaded.
13147 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13148 common/agent.c.
13149 Update callers.
13150
8ffcbaaf
YQ
131512012-03-03 Yao Qi <yao@codesourcery.com>
13152
13153 * tracepoint.c (gdb_agent_capability): New global.
13154 (in_process_agent_loaded_ust): Renamed to
13155 `in_process_agent_supports_ust'.
13156 Update callers.
13157 (in_process_agent_supports_ust): Call agent_capability_check.
13158 (clear_installed_tracepoints): Assert that agent supports
13159 agent.
13160
d1feda86
YQ
131612012-03-03 Yao Qi <yao@codesourcery.com>
13162
13163 * linux-low.c (linux_supports_agent): New.
13164 (linux_target_ops): Initialize field `supports_agent' with
13165 linux_supports_agent.
13166 * target.h (struct target_ops) <supports_agent>: New.
13167 (target_supports_agent): New macro.
13168 * server.c (handle_general_set): Handle packet 'QAgent'.
13169 (handle_query): Send `QAgent+'.
13170 * Makefile.in (server.o): Depends on agent.h.
13171
2fa291ac
YQ
131722012-03-03 Yao Qi <yao@codesourcery.com>
13173
13174 * Makefile.in (OBS): Add agent.o.
13175 Add new rule for agent.o.
13176 Track dependence of tracepoint.c on agent.h.
13177 * tracepoint.c (run_inferior_command_1):
13178 (run_inferior_command): Call agent_run_command.
13179 (gdb_ust_connect_sync_socket): Deleted. Move it to
13180 common/agent.c.
13181 (resume_thread, stop_thread): Likewise.
13182 (gdb_ust_socket_init): Renamed to ...
13183 (gdb_agent_socket_init): ... New.
13184 (gdb_ust_thread): Renamed to ...
13185 (gdb_agent_helper_thread): ... New.
13186 (gdb_ust_init): Move some code to ...
13187 (gdb_agent_init): ... here. New.
13188 [HAVE_UST]: Call gdb_ust_init.
13189 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13190 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13191 * config.in, configure: Regenerated.
13192
05044653
PA
131932012-03-02 Pedro Alves <palves@redhat.com>
13194
13195 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13196 * linux-low.c (struct simple_pid_list): New.
13197 (stopped_pids): New a struct simple_pid_list pointer.
13198 (add_to_pid_list, pull_pid_from_list): New.
13199 (handle_extended_wait): Don't assume the first signal new children
13200 report is SIGSTOP. Adjust call to pull_pid_from_list.
13201 (linux_wait_for_lwp): Adjust.
13202
8d00225b
YQ
132032012-03-02 Yao Qi <yao@codesourcery.com>
13204
13205 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13206 debug log.
13207
19560ba5
YQ
132082012-03-02 Yao Qi <yao@codesourcery.com>
13209
13210 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13211 `stop_pc' and `tpoint'. Update caller.
13212
1faeff08
MR
132132012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13214
13215 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13216 * linux-low.c (use_linux_regsets): New macro.
13217 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13218 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13219 (linux_register_in_regsets): New function.
13220 (usr_fetch_inferior_registers): Skip registers covered by
13221 regsets.
13222 (usr_store_inferior_registers): Likewise.
13223 (usr_fetch_inferior_registers): New macro.
13224 (usr_store_inferior_registers): Likewise.
13225 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13226 (linux_store_registers): Likewise.
13227 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13228 prototype.
13229 (init_registers_mips64_dsp_linux): Likewise.
13230 (init_registers_mips_linux): New macro.
13231 (init_registers_mips_dsp_linux): Likewise.
13232 (mips_dsp_num_regs): Likewise.
13233 (DSP_BASE, DSP_CONTROL): New fallback macros.
13234 (mips_base_regs): New macro.
13235 (mips_regmap): Use it. Fix the size.
13236 (mips_dsp_regmap): New variable.
13237 (mips_dsp_regset_bitmap): Likewise.
13238 (mips_arch_setup): New function.
13239 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13240 than mips_regmap.
13241 (mips_cannot_store_register): Likewise.
13242 (the_low_target): Update .arch_setup, .num_regs and .regmap
13243 initializers. Add .regset_bitmap initializer.
13244 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13245 initializer.
13246 * linux-bfin-low.c (the_low_target): Likewise.
13247 * linux-cris-low.c (the_low_target): Likewise.
13248 * linux-crisv32-low.c (the_low_target): Likewise.
13249 * linux-ia64-low.c (the_low_target): Likewise.
13250 * linux-m32r-low.c (the_low_target): Likewise.
13251 * linux-m68k-low.c (the_low_target): Likewise.
13252 * linux-ppc-low.c (the_low_target): Likewise.
13253 * linux-s390-low.c (the_low_target): Likewise.
13254 * linux-sh-low.c (the_low_target): Likewise.
13255 * linux-sparc-low.c (the_low_target): Likewise.
13256 * linux-tic6x-low.c (the_low_target): Likewise.
13257 * linux-x86-low.c (the_low_target): Likewise.
13258 * linux-xtensa-low.c (the_low_target): Likewise.
13259 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13260 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13261 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13262 srv_xmlfiles.
13263 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13264 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13265
c03e6ccc
YQ
132662012-02-29 Yao Qi <yao@codesourcery.com>
13267 Pedro Alves <palves@redhat.com>
13268
13269 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13270 `step_over_finished' is true.
13271
644cebc9
PA
132722012-02-27 Pedro Alves <palves@redhat.com>
13273
13274 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13275 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13276
c14d7ab2
PA
132772012-02-27 Pedro Alves <palves@redhat.com>
13278
13279 PR server/9684
13280 * linux-low.c (pid_is_stopped): New.
13281 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13282
412c89dd
LM
132832012-02-25 Luis Machado <lgustavo@codesourcery.com>
13284
13285 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13286 of conditions.
13287
b745defe
MR
132882012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13289
13290 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13291
9f3a5c85
LM
132922012-02-24 Luis Machado <lgustavo@codesourcery>
13293
13294 * server.c (handle_query): Advertise support for target-side
13295 breakpoint condition evaluation.
13296 (process_point_options): New function.
13297 (process_serial_event): When inserting a breakpoint, check for
13298 a target-side condition that should be evaluated.
13299
13300 * mem-break.c: Include regcache.h and ax.h.
13301 (point_cond_list_t): New data structure.
13302 (breakpoint) <cond_list>: New field.
13303 (find_gdb_breakpoint_at): Make non-static.
13304 (delete_gdb_breakpoint_at): Clear any target-side
13305 conditions.
13306 (clear_gdb_breakpoint_conditions): New function.
13307 (add_condition_to_breakpoint): Likewise.
13308 (add_breakpoint_condition): Likewise.
13309 (gdb_condition_true_at_breakpoint): Likewise.
13310 (gdb_breakpoint_here): Return result directly instead
13311 of going through a local variable.
13312
13313 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13314 (clear_gdb_breakpoint_conditions): Likewise.
13315 (add_breakpoint_condition): Likewise.
13316 (gdb_condition_true_at_breakpoint): Likewise.
13317
13318 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13319 (need_step_over_p): Take target-side breakpoint condition into
13320 consideration.
13321
5e1dc496
LM
133222012-02-24 Luis Machado <lgustavo@codesourcery>
13323
13324 * server.h: Include tracepoint.h.
13325 (agent_mem_read, agent_get_trace_state_variable_value,
13326 agent_set_trace_state_variable_value,
13327 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13328 get_set_tsv_func_addr): New prototypes.
13329
13330 * ax.h: New include file.
13331 * ax.c: New source file.
13332
13333 * tracepoint.c: Include ax.h.
13334 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13335 agent_expr, eval_result_type): Move to ax.h.
13336 (parse_agent_expr): Rename to ...
13337 (gdb_parse_agent_expr): ... this, make it non-static and move
13338 to ax.h.
13339 (unparse_agent_expr) Rename to ...
13340 (gdb_unparse_agent_expr): ... this, make it non-static and move
13341 to ax.h.
13342 (eval_agent_expr): Rename to ...
13343 (eval_tracepoint_agent_expr): ... this.
13344 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13345 forward declarations.
13346 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13347 (agent_get_trace_state_variable_value): New function.
13348 (agent_set_trace_state_variable_value): New function.
13349 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13350 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13351 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13352 (condition_true_at_tracepoint): Likewise.
13353 (parse_agent_expr): Rename to ...
13354 (gdb_parse_agent_expr): ... this and move to ax.c.
13355 (unparse_agent_expr): Rename to ...
13356 (gdb_unparse_agent_expr): ... this and move to ax.c.
13357 (gdb_agent_op_name): Move to ax.c.
13358 (eval_agent_expr): Rename to ...
13359 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13360 and move to ax.c.
13361 (eval_tracepoint_agent_expr): New function.
13362 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 13363 non-static.
5e1dc496
LM
13364 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13365 ax.c.
13366 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13367 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13368 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13369 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13370 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13371 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13372 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13373 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13374 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13375 (compile_bytecodes): Remove forward declaration.
13376 (is_goto_target): Move to ax.c.
13377 (compile_bytecodes): Move to ax.c and call
13378 agent_get_trace_state_variable_value (...) and
13379 agent_set_trace_state_variable_value (...).
13380
13381 * Makefile.in: Update ax.c and IPA dependencies.
13382
277e4e52
PA
133832012-02-24 Pedro Alves <palves@redhat.com>
13384
13385 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13386 (cmd_bigqtbuffer_circular): ... this. Only handle
13387 'QTBuffer:circular:'.
13388 (handle_tracepoint_general_set): Adjust.
13389
bf4c19f7
YQ
133902012-02-16 Yao Qi <yao@codesourcery.com>
13391
13392 * inferiors.c: Move code to ...
13393 * dll.c: .... here. New.
13394 * server.h: Declare clear_dlls.
13395 * Makefile.in (SFILES): Add dll.c.
13396 (OBS): Add dll.o
13397 (dll.o): New rule.
13398
d73f2619
YQ
133992012-02-11 Yao Qi <yao@codesourcery.com>
13400
13401 * server.c: (handle_monitor_command): Add a new parameter
13402 `own_buf'.
13403 (handle_query): Update caller.
13404
f8255c2a
JB
134052012-02-09 Joel Brobecker <brobecker@adacore.com>
13406
13407 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13408 * configure, config.in: Regenerate.
13409 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13410 is not defined.
13411
da84f473
PA
134122012-02-02 Pedro Alves <palves@redhat.com>
13413
13414 Try SIGKILL first, then PTRACE_KILL.
13415 * linux-low.c (linux_kill_one_lwp): New.
13416 (linux_kill_one_lwp): Rename to ...
13417 (kill_one_lwp_callback): ... this. Use the new
13418 linux_kill_one_lwp.
13419
e886a173
PA
134202012-02-02 Pedro Alves <palves@redhat.com>
13421
13422 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13423 inferior.
13424
be07f1a2
PA
134252012-01-27 Pedro Alves <palves@redhat.com>
13426
13427 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13428 (elf_64_file_p): Make static.
13429 (linux_pid_exe_is_elf_64_file): New.
13430 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13431 Delete declarations.
13432 (linux_pid_exe_is_elf_64_file): Declare.
13433 * linux-x86-low.c (x86_arch_setup): Use
13434 linux_pid_exe_is_elf_64_file.
13435
d8301ad1
JK
134362012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13437
13438 * linux-low.c (linux_wait_for_event_1): Rename to ...
13439 (linux_wait_for_event): ... here and merge it with former
13440 linux_wait_for_event - new variable wait_ptid, use it.
13441 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13442
01b17894
PA
134432012-01-23 Pedro Alves <palves@redhat.com>
13444
13445 * server.c (main): Avoid yet another case of infinite loop while
13446 detaching/killing after a longjmp.
13447
e825046f
JK
134482012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13449
13450 Code cleanup.
13451 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13452
b9e7b9c3
UW
134532012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13454
13455 * hostio.c (handle_readlink): New function.
13456 (handle_vFile): Call it to handle "vFile:readlink" packets.
13457
901f9912
UW
134582012-01-20 Pedro Alves <palves@redhat.com>
13459 Ulrich Weigand <ulrich.weigand@linaro.org>
13460
13461 * server.c (handle_v_requests): Only support vAttach and vRun to
13462 start multiple processes when in extended protocol mode.
13463
fc1ab1a0
PA
134642012-01-17 Pedro Alves <palves@redhat.com>
13465
13466 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13467 memalign plus mprotect to allocate the scratch buffer.
13468
7d5d4e98
PA
134692012-01-13 Pedro Alves <palves@redhat.com>
13470
13471 * server.c (attach_inferior): Clear `cont_thread'.
13472
f128d5e9
PA
134732012-01-13 Pedro Alves <palves@redhat.com>
13474
13475 * server.c (main): Avoid infinite loop while detaching/killing
13476 after a longjmp.
13477
06db92f0
DE
134782012-01-09 Doug Evans <dje@google.com>
13479
13480 * server.c (start_inferior): Set last_ptid in --wrapper case.
13481
32d92999
YQ
134822012-01-06 Yao Qi <yao@codesourcery.com>
13483
13484 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13485 defined.
13486 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13487
5e0a92a9
YQ
134882012-01-04 Yao Qi <yao@codesourcery.com>
13489
13490 * tracepoint.c (cmd_qtdp): Print debug message
13491 for static tracepoint.
13492
ae639e8c
YQ
134932012-01-04 Yao Qi <yao@codesourcery.com>
13494
13495 * tracepoint.c (trace_vdebug): Differentiate debug message
13496 between gdbserver and IPA.
13497
f72429c5
YQ
134982012-01-03 Yao Qi <yao@codesourcery.com>
13499
13500 * tracepoint.c (tracepoint_was_hit): Don't collect for
13501 static tracepoint.
13502
12c3e59c
JB
135032012-01-02 Joel Brobecker <brobecker@adacore.com>
13504
13505 * terminal.h: Reformat copyright header.
13506
67827812
JB
135072012-01-02 Joel Brobecker <brobecker@adacore.com>
13508
13509 * server.c (gdbserver_version): Update copyright year.
13510 * gdbreplay.c (gdbreplay_version): Likewise.
13511
3e52c33d
JK
135122011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13513
13514 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13515
13516 Revert:
13517 2011-12-18 Hui Zhu <teawater@gmail.com>
13518 * linux-low.c (linux_create_inferior): Save return value to ret.
13519
66f1260e
HZ
135202011-12-18 Hui Zhu <teawater@gmail.com>
13521
13522 * linux-low.c (linux_create_inferior): Save return value to ret.
13523
e77616d7
DE
135242011-12-16 Doug Evans <dje@google.com>
13525
e7b06c57
DE
13526 * linux-low.c (linux_create_inferior): If stdio connection,
13527 redirect stdin from /dev/null, stdout to stderr.
13528 * remote-utils.c (remote_is_stdio): New static global.
13529 (remote_connection_is_stdio): New function.
13530 (remote_prepare): Handle stdio connection.
13531 (remote_open): Ditto.
13532 (remote_close): Don't close stdin for stdio connections.
13533 (read_prim,write_prim): New functions. Replace all calls to
13534 read/write to these.
13535 * server.c (main): Watch for "-" argument. Move call to
13536 remote_prepare before start_inferior.
13537 * server.h (STDIO_CONNECTION_NAME): New macro.
13538 (remote_connection_is_stdio): Declare.
13539
e77616d7
DE
13540 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13541 in debugging output.
13542
82067193
YQ
135432011-12-15 Yao Qi <yao@codesourcery.com>
13544
13545 * tracepoint.c: Include sys/syscall.h.
13546 (gdb_ust_thread): Remove preprocessor conditional.
13547
82bfbe7e
PA
135482011-12-14 Pedro Alves <pedro@codesourcery.com>
13549
13550 * linux-low.c (linux_detach_one_lwp): Call
13551 the_low_target.prepare_to_resume before detaching.
13552
712c6575
YQ
135532011-12-14 Yao Qi <yao@codesourcery.com>
13554
13555 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13556 of write.
13557
d54d1edf
YQ
135582011-12-14 Yao Qi <yao@codesourcery.com>
13559
13560 * i386-low.c (i386_low_stopped_data_address): Initialize local
13561 variable `control'.
13562
6210a125
PA
135632011-12-13 Pedro Alves <pedro@codesourcery.com>
13564
13565 PR remote/13492
13566
13567 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13568 DR_CONTROL unless necessary. Extend comments.
13569 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13570 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13571
2ece8244
YQ
135722011-12-13 Yao Qi <yao@codesourcery.com>
13573
13574 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13575 macros.
13576 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13577
784867a5
JK
135782011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13579
13580 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13581 Print new debug message for such case.
13582
6bf36717
JK
135832011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13584
13585 Fix overlapping memcpy.
13586 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13587 the read_inferior_memory transfer.
13588 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13589 write_inferior_memory transfer.
13590 (set_fast_tracepoint_jump): New variable buf. Use it for the
13591 read_inferior_memory and write_inferior_memory transfers.
13592 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13593 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13594 Use it for the write_inferior_memory transfer.
13595 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13596 buffers.
13597
50275556
MR
135982011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13599
13600 * linux-low.c (fetch_register, store_register): Make code
13601 consistent, fix formatting.
13602
7325beb4
MR
136032011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13604
13605 * linux-low.c (usr_store_inferior_registers): Factor out code
13606 to handle individual registers into...
13607 (store_register): ... this new function.
13608
c642a434
UW
136092011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13610
13611 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13612 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13613 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13614 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13615 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13616 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13617 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13618 (srv_xmlfiles): Add new XML files.
13619
13620 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13621 and <sys/uio.h>.
13622 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13623 (init_registers_s390_linux32v1): Add prototype.
13624 (init_registers_s390_linux32v2): Likewise.
13625 (init_registers_s390_linux64v1): Likewise.
13626 (init_registers_s390_linux64v2): Likewise.
13627 (init_registers_s390x_linux64v1): Likewise.
13628 (init_registers_s390x_linux64v2): Likewise.
13629 (s390_num_regs): Increment to 52.
13630 (s390_regmap): Add orig_r2 register.
13631 (s390_num_regs_3264): Increment to 68.
13632 (s390_regmap_3264): Add orig_r2 register.
13633 (s390_collect_ptrace_register): Handle orig_r2 register.
13634 (s390_supply_ptrace_register): Likewise.
13635 (s390_fill_last_break): New function.
13636 (s390_store_last_break): Likewise.
13637 (s390_fill_system_call): New function.
13638 (s390_store_system_call): Likewise.
13639 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13640 register sets.
13641 (s390_check_regset): New function.
13642 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13643 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13644 Update target_regsets for available register sets.
13645
2268b414
JK
136462011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13647 Jan Kratochvil <jan.kratochvil@redhat.com>
13648
13649 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13650 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13651 New.
13652 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13653 * linux-low.h (struct process_info_private): New member r_debug.
13654 * server.c (handle_qxfer_libraries): Call
13655 the_target->qxfer_libraries_svr4.
13656 (handle_qxfer_libraries_svr4): New function.
13657 (qxfer_packets): New entry "libraries-svr4".
13658 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13659 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13660 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13661 PACKET_qXfer_libraries_svr4.
13662
d6db1fab
UW
136632011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13664
13665 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13666 PSW address/mask between 8-byte and 16-byte formats.
13667 (s390_supply_ptrace_register): Likewise.
13668 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13669 basic addressing mode bit.
13670
242f5f1c
SS
136712011-11-24 Stan Shebs <stan@codesourcery.com>
13672
13673 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13674
f196051f
SS
136752011-11-17 Stan Shebs <stan@codesourcery.com>
13676
13677 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13678 (tracing_start_time): New global.
13679 (tracing_stop_time): New global.
13680 (tracing_user_name): New global.
13681 (tracing_notes): New global.
13682 (tracing_stop_note): New global.
13683 (cmd_qtstart): Set traceframe_usage, start_time.
13684 (stop_tracing): Set stop_time.
13685 (cmd_qtstatus): Report additional status.
13686 (cmd_qtp): New function.
13687 (handle_tracepoint_query): Call it.
13688 (cmd_qtnotes): New function.
13689 (handle_tracepoint_general_set): Call it.
13690 (get_timestamp): Rename from tsv_get_timestamp.
13691
405f8e94
SS
136922011-11-14 Stan Shebs <stan@codesourcery.com>
13693 Kwok Cheung Yeung <kcy@codesourcery.com>
13694
13695 * linux-x86-low.c (small_jump_insn): New.
13696 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13697 trampoline and error message, build a trampoline and issue a small
13698 jump instruction to it.
13699 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13700 trampoline and error message.
13701 (x86_get_min_fast_tracepoint_insn_len): New.
13702 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13703 * linux-low.h (struct linux_target_ops): Add arguments to
13704 install_fast_tracepoint_jump_pad operation, add new operation.
13705 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13706 arguments.
13707 (linux_get_min_fast_tracepoint_insn_len): New function.
13708 (linux_target_op): Add new operation.
13709 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13710 (gdb_trampoline_buffer_end): Ditto.
13711 (gdb_trampoline_buffer_error): Ditto.
13712 (struct ipa_sym_addresses): Add fields for new IPA variables.
13713 (symbol_list): Add entries for new IPA variables.
13714 (struct tracepoint): Add fields to hold the address range of the
13715 trampoline used by the tracepoint.
13716 (trampoline_buffer_head): New static variable.
13717 (trampoline_buffer_tail): Ditto.
13718 (claim_trampoline_space): New function.
13719 (have_fast_tracepoint_trampoline_buffer): New function.
13720 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13721 structure.
13722 (install_fast_tracepoint): Ditto, also add error buffer argument.
13723 (cmd_qtminftpilen): New function.
13724 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13725 (fast_tracepoint_from_trampoline_address): New function.
13726 (fast_tracepoint_collecting): Handle trampoline as part of jump
13727 pad space.
13728 (set_trampoline_buffer_space): New function.
13729 (initialize_tracepoint): Initialize new IPA variables.
13730 * target.h (struct target_ops): Add arguments to
13731 install_fast_tracepoint_jump_pad operation, add new
13732 get_min_fast_tracepoint_insn_len operation.
13733 (target_get_min_fast_tracepoint_insn_len): New.
13734 (install_fast_tracepoint_jump_pad): Add arguments.
13735 * server.h (IPA_BUFSIZ): Define.
13736 * linux-i386-ipa.c: Include extra header files.
13737 (initialize_fast_tracepoint_trampoline_buffer): New function.
13738 (initialize_low_tracepoint): Call it.
13739 * server.h (set_trampoline_buffer_space): Declare.
13740 (claim_trampoline_space): Ditto.
13741 (have_fast_tracepoint_trampoline_buffer): Ditto.
13742
1e4d1764
YQ
137432011-11-14 Yao Qi <yao@codesourcery.com>
13744
13745 * server.c (handle_query): Handle InstallInTrace for qSupported.
13746 * tracepoint.c (add_tracepoint): Sort list.
13747 (install_tracepoint, download_tracepoint): New.
13748 (cmd_qtdp): Call them to install and download tracepoints.
13749 (sort_tracepoints): Removed.
13750 (cmd_qtstart): Update.
13751
5c73ff4e
YQ
137522011-11-14 Yao Qi <yao@codesourcery.com>
13753
13754 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13755 * mem-break.h: Declare.
13756 * tracepoint.c (cmd_qtstart): Move some code to ...
13757 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13758 New.
13759 (download_tracepoints): Move some code to ...
13760 (download_tracepoint_1): ... here. New.
13761
86a30030
YQ
137622011-11-08 Yao Qi <yao@codesourcery.com>
13763
13764 * remote-utils.c (relocate_instruction): A comment fix.
13765
8d26e50c
JB
137662011-11-07 Joel Brobecker <brobecker@adacore.com>
13767
13768 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13769 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13770 dr_status_mirror and dr_control_mirror from debug_reg_state.
13771 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13772 (i386_initial_stuff): Remove use of deleted globals.
13773 (i386_get_thread_context, i386_set_thread_context,
13774 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13775 from debug_reg_state.
13776
a59306a3
YQ
137772011-11-05 Yao Qi <yao@codesourcery.com>
13778
13779 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13780 address as TPOINT's.
13781
3065dfb6
SS
137822011-11-02 Stan Shebs <stan@codesourcery.com>
13783
13784 * tracepoint.c (agent_mem_read_string): New function.
13785 (eval_agent_expr): Call it for tracenz.
13786 * server.c (handle_query): Report support for tracenz.
13787
fd0d8c7c
YQ
137882011-11-02 Yao Qi <yao@codesourcery.com>
13789
13790 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13791
609086b1
YQ
137922011-11-02 Yao Qi <yao@codesourcery.com>
13793
13794 * target.h: Fix a typo in comment.
13795
b9fd1791
PA
137962011-10-31 Pedro Alves <pedro@codesourcery.com>
13797
13798 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13799 clobber the breakpoints' shadows with fast tracepoint jumps.
13800 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13801 * target.c (write_inferior_memory): Also pass MYADDR down to
13802 check_mem_write.
13803
03583c20
UW
138042011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13805
13806 * configure.ac: Check support for personality routine.
13807 * configure: Regenerate.
13808 * config.in: Likewise.
13809 * linux-low.c: Include <sys/personality.h>.
13810 Define ADDR_NO_RANDOMIZE if necessary.
13811 (linux_create_inferior): Disable address space randomization when
13812 forking inferior, if requested.
13813 (linux_supports_disable_randomization): New function.
13814 (linux_target_ops): Install it.
13815 * server.h (disable_randomization): Declare.
13816 * server.c (disable_randomization): New global variable.
13817 (handle_general_set): Handle QDisableRandomization.
13818 (handle_query): Likewise for qSupported.
13819 (main): Support --disable-randomization and --no-disable-randomization
13820 command line arguments.
13821 * target.h (struct target_ops): Add supports_disable_randomization.
13822 (target_supports_disable_randomization): New macro.
13823
723b724b
MF
138242011-09-29 Mike Frysinger <vapier@gentoo.org>
13825
13826 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13827 ifdef check.
13828 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13829 [!PT_GETDSBT] (target_loadmap): New definition.
13830 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13831 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13832 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13833 and PT_GETDSBT to LINUX_LOADMAP.
13834 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13835 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13836
55329a5c 138372011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
13838
13839 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13840 (arm_linux_hwbp_cap): New static variable.
13841 (arm_linux_get_hwbp_cap): Replace by ...
13842 (arm_linux_init_hwbp_cap): ... this new function.
13843 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13844 (arm_linux_get_hw_watchpoint_count): Likewise.
13845 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13846 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13847 (arm_prepare_to_resume): Use perror_with_name instead of error.
13848
55329a5c 138492011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
13850
13851 * linux-arm-low.c: Include <signal.h>.
13852 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13853 (struct arm_linux_hwbp_cap): New data type.
13854 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13855 (struct arm_linux_hw_breakpoint): New data type.
13856 (MAX_BPTS, MAX_WPTS): Define.
13857 (struct arch_process_info, struct arch_lwp_info): New data types.
13858 (arm_linux_get_hwbp_cap): New function.
13859 (arm_linux_get_hw_breakpoint_count): Likewise.
13860 (arm_linux_get_hw_watchpoint_count): Likewise.
13861 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13862 (arm_hwbp_control_initialize): Likewise.
13863 (arm_hwbp_control_is_enabled): Likewise.
13864 (arm_hwbp_control_is_initialized): Likewise.
13865 (arm_hwbp_control_disable): Likewise.
13866 (arm_linux_hw_breakpoint_equal): Likewise.
13867 (arm_linux_hw_point_initialize): Likewise.
13868 (struct update_registers_data): New data structure.
13869 (update_registers_callback: New function.
13870 (arm_insert_point): Likewise.
13871 (arm_remove_point): Likewise.
13872 (arm_stopped_by_watchpoint): Likewise.
13873 (arm_stopped_data_address): Likewise.
13874 (arm_new_process): Likewise.
13875 (arm_new_thread): Likewise.
13876 (arm_prepare_to_resume): Likewise.
13877 (the_low_target): Register arm_insert_point, arm_remove_point,
13878 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13879 arm_new_thread, and arm_prepare_to_resume.
13880
6b9801d4
SS
138812011-09-15 Stan Shebs <stan@codesourcery.com>
13882
13883 * server.h (struct emit_ops): Add compare-goto fields.
13884 * tracepoint.c (gdb_agent_op_sizes): New table.
13885 (emit_eq_goto): New function.
13886 (emit_ne_goto): New function.
13887 (emit_lt_goto): New function.
13888 (emit_le_goto): New function.
13889 (emit_gt_goto): New function.
13890 (emit_ge_goto): New function.
13891 (is_goto_target): New function.
13892 (compile_bytecodes): Recognize special cases of compare-goto
13893 combinations and call specialized emitters for them.
13894 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13895 (amd64_emit_ne_goto): New function.
13896 (amd64_emit_lt_goto): New function.
13897 (amd64_emit_le_goto): New function.
13898 (amd64_emit_gt_goto): New function.
13899 (amd64_emit_ge_goto): New function.
13900 (amd64_emit_ops): Add the new functions.
13901 (i386_emit_eq_goto): New function.
13902 (i386_emit_ne_goto): New function.
13903 (i386_emit_lt_goto): New function.
13904 (i386_emit_le_goto): New function.
13905 (i386_emit_gt_goto): New function.
13906 (i386_emit_ge_goto): New function.
13907 (i386_emit_ops): Add the new functions.
13908
bf15cbda
SS
139092011-09-08 Stan Shebs <stan@codesourcery.com>
13910
13911 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13912 (i386_emit_epilogue): Restore %ebx.
13913
943ca1dd
JZ
139142011-08-31 Jie Zhang <jzhang918@gmail.com>
13915
13916 * server.c (step_thread): Remove definition.
13917 (process_serial_event): Don't handle Hs.
13918 * server.h (step_thread): Remove declaration.
13919 * target.c (set_desired_inferior): Remove use of step_thread.
13920
e3deef73
LM
139212011-08-24 Luis Machado <lgustavo@codesourcery.com>
13922
13923 * linux-low.c: Include linux-procfs.h.
13924 (linux_attach_lwp_1): Update comments.
13925 (linux_attach): Scan for existing threads when attaching to a
13926 process that is the tgid.
13927 * Makefile.in: Update dependencies.
13928
13da1c97
LM
139292011-08-24 Luis Machado <lgustavo@codesourcery.com>
13930
13931 * configure.srv: Add linux-procfs.o dependencies.
13932
881127c9
YQ
139332011-08-14 Yao Qi <yao@codesourcery.com>
13934
13935 * target.h (struct target_ops): Fix indent.
13936 * win32-low.c (win32_target_ops): Fix comment.
13937
58dbd541
YQ
139382011-08-14 Andrew Jenner <andrew@codesourcery.com>
13939 Yao Qi <yao@codesourcery.com>
13940
13941 * Makefile.in (clean): Remove tic6x-*.c files.
13942 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13943 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13944 (tic6x-c64xp-linux.c): Likewise.
13945 * configure.srv: Add support for tic6x-*-uclinux.
13946 * linux-tic6x-low.c: New.
13947 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13948
78d85199
YQ
139492011-08-14 Andrew Stubbs <ams@codesourcery.com>
13950 Yao Qi <yao@codesourcery.com>
13951
13952 * target.h (struct target_ops): Add read_loadmap.
13953 * linux-low.c (struct target_loadseg): New type.
13954 (struct target_loadmap): New type.
13955 (linux_read_loadmap): New function.
13956 (linux_target_ops): Add linux_read_loadmap.
13957 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
13958 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13959 to NULL.
78d85199 13960
a959a88d
EZ
139612011-08-05 Eli Zaretskii <eliz@gnu.org>
13962
13963 * win32-low.c: Include <stdint.h>.
13964
1ced966e
PA
139652011-07-22 Pedro Alves <pedro@codesourcery.com>
13966
13967 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13968 to the inferior here.
13969 (i386_remove_aligned_watchpoint): Ditto.
13970 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13971 fit part of the watchpoint in the debug registers.
13972 (i386_update_inferior_debug_regs): New.
13973 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13974 registers, and only update the inferior on success.
13975 (i386_low_remove_watchpoint): Ditto.
13976
d26e3629
KY
139772011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13978
13979 * linux-low.c (compare_ints, unique, list_threads, show_process,
13980 linux_core_of_thread): Delete.
13981 (linux_target_ops): Change linux_core_of_thread to
13982 linux_common_core_of_thread.
13983 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13984 * utils.c (malloc_failure): Change type of argument.
13985 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13986 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13987 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13988 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13989 (IPA_OBJS): Add common-utils-ipa.o.
13990 (ptid_h, linux_osdata_h): New macros.
13991 (server_h): Add common/common-utils.h, common/xml-utils.h,
13992 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13993 common/ptid.h.
13994 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13995 ptid.o, buffer.o): New rules.
13996 (linux-low.o): Add common/linux-osdata.h as a dependency.
13997 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13998 * configure.ac: Add AC_HEADER_DIRENT check.
13999 * config.in: Regenerate.
14000 * configure: Regenerate.
14001 * remote-utils.c (xml_escape_text): Delete.
14002 (buffer_grow, buffer_free, buffer_init, buffer_finish,
14003 buffer_xml_printf): Move to common/buffer.c.
14004 * server.c (main): Remove call to initialize_inferiors.
14005 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14006 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14007 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14008 internal_error, gdb_assert, gdb_assert_fail): Delete.
14009 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14010 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14011 common/buffer.h.
14012 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14013 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14014 initialize_inferiors): Delete.
14015
2275a1a7
PA
140162011-07-20 Pedro Alves <pedro@codesourcery.com>
14017
14018 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14019 symbol error.
14020
0a5b1e09
PA
140212011-05-31 Pedro Alves <pedro@codesourcery.com>
14022
14023 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14024 assertion.
14025 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14026
6938fd34
YQ
140272011-05-26 Yao Qi <yao@codesourcery.com>
14028
14029 * Makefile.in (thread-db.o): Track dependence to
14030 common/gdb_thread_db.h.
14031 * thread-db.c: include gdb_thread_db.h from right place.
14032
b481f9e0
TT
140332011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14034
14035 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14036 __FILE__ and __LINE__ to internal_error.
14037
98a5dd13
DE
140382011-05-13 Doug Evans <dje@google.com>
14039
14040 * thread-db.c (try_thread_db_load_from_sdir): New function.
14041 (try_thread_db_load_from_dir): New function.
14042 (thread_db_load_search): Handle $sdir, ignore $pdir.
14043 Remove trying of system directories if search of
14044 libthread-db-search-path fails, that is now done via $sdir.
14045
d248b706
KY
140462011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14047
14048 * server.c (handle_query): Add EnableDisableTracepoints to the list
14049 of supported features.
43aaf8b6 14050 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 14051 tracepoints.
43aaf8b6
PA
14052 (cmd_qtenable_disable): New.
14053 (cmd_qtstart): Install tracepoints even if disabled.
14054 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14055 receiving a QTEnable or QTDisable packet.
14056 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14057 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14058 tracepoints.
14059 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 14060
84e578fb
DE
140612011-05-10 Doug Evans <dje@google.com>
14062
14063 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14064
71f55dd8
DE
140652011-05-04 Doug Evans <dje@google.com>
14066
14067 * linux-low.c (linux_join): Skip process lookup.
14068 * spu-low.c (spu_join): Ditto.
14069 * server.c (join_inferiors_callback): Delete.
14070 (process_serial_event): For 'D' packet (detach) call join_inferior
14071 directly.
14072
4d393d60
JM
140732011-05-04 Joseph Myers <joseph@codesourcery.com>
14074
14075 * README: Don't mention xscale*-*-linux*.
14076 * configure.srv (xscale*-*-linux*): Don't handle target.
14077
b00ad6ff
NF
140782011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14079
14080 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14081 casting pointers.
14082 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14083 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14084 (i386_emit_void_call_2): Likewise.
14085
af96c192
YQ
140862011-04-26 Yao Qi <yao@codesourcery.com>
14087
43aaf8b6
PA
14088 * linux-low.c: Move common macros to linux-ptrace.h.
14089 Include linux-ptrace.h.
af96c192
YQ
14090 * Makefile.in (linux_ptrace_h): New.
14091 (linux-low.o): Depends on linux-ptrace.h.
14092
03f2bd59
JK
140932011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14094
14095 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14096 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14097 (remote_prepare): New function with most of the TCP code from ...
14098 (remote_open): ... here. Detect PORT here unconditionally. Move also
14099 setting transport_is_reliable.
14100 * server.c (run_once): New variable.
14101 (gdbserver_usage): Document it.
14102 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14103 the first run if RUN_ONCE.
14104 * server.h (run_once, remote_prepare): New declarations.
14105
7a9dd1b2
TT
141062011-04-19 Tom Tromey <tromey@redhat.com>
14107
14108 * win32-low.c (handle_load_dll): Remove duplicate "the".
14109
81239425
PM
141102011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14111
14112 Remove support for old Cygwin 1.5 versions.
14113 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14114 function to avoid warning.
14115 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14116 warning.
14117
9e0627f1
PM
141182011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14119
14120 * gdbserver/server.h (Macro _): Define it if not available.
14121
588eebee
MS
141222011-03-14 Michael Snyder <msnyder@vmware.com>
14123
348af9f7 14124 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 14125
43f70d4c
JB
141262011-03-10 Joel Brobecker <brobecker@adacore.com>
14127
14128 * Makefile.in (maintainer-clean realclean distclean): Remove
14129 "make ... subdir_do" command.
14130
348af9f7
MS
141312011-03-10 Michael Snyder <msnyder@vmware.com>
14132
14133 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14134
14135 * server.c (handle_v_run): Free alloced buffer on early return.
14136
e637a4f5
YQ
141372011-03-09 Yao Qi <yao@codesourcery.com>
14138
14139 Revert:
14140 2011-03-04 Yao Qi <yao@codesourcery.com>
14141
14142 * Makefile.in: Remove GNU make feature --directory.
14143
14144 2011-03-05 Yao Qi <yao@codesourcery.com>
14145
14146 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14147 (subdir_do): New make target. Copied from gdb/Makefile.
14148 (maintainer-clean, realclean, distclean, clean): Call corresponding
14149 make targets in common/Makefile.
14150
14151 2011-02-11 Yao Qi <yao@codesourcery.com>
14152
14153 * configure.ac: Call AC_PROG_RANLIB.
14154 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14155 * configure: Regenerate.
14156
e6edda56
JK
141572011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14158
14159 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14160
e5141119
JB
141612011-03-06 Yao Qi <yao@codesourcery.com>
14162
14163 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14164
64794aa4
JB
141652011-03-05 Yao Qi <yao@codesourcery.com>
14166
14167 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14168 (subdir_do): New make target. Copied from gdb/Makefile.
14169 (maintainer-clean, realclean, distclean, clean): Call corresponding
14170 make targets in common/Makefile.
14171
7a762829
YQ
141722011-03-04 Yao Qi <yao@codesourcery.com>
14173
14174 * Makefile.in: Remove GNU make feature --directory.
14175
348af9f7
MS
141762011-03-04 Michael Snyder <msnyder@vmware.com>
14177
14178 * server.c (queue_stop_reply): Call xmalloc not malloc.
14179
141802011-03-02 Michael Snyder <msnyder@vmware.com>
14181
14182 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14183
9f72fee2
MS
141842011-02-28 Michael Snyder <msnyder@vmware.com>
14185
588eebee
MS
14186 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14187 (cmd_qtframe): Ditto.
14188 (cmd_qtbuffer): Ditto.
14189 (cmd_bigqtbuffer): Ditto.
14190
9f72fee2
MS
14191 * utils.c (decimal2str): Initialize 'width' to nine, then
14192 don't mess with it.
14193
8040bd49
UW
141942011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14195
14196 * hostio.c (require_data): Free *data, not data.
14197
7e52cbd0
JK
141982011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14199
14200 * hostio.c (require_data): Use free, not xfree.
14201
9130f83e
MS
142022011-02-27 Michael Snyder <msnyder@vmware.com>
14203
4b812f4e
MS
14204 * server.c (handle_query): Discard unused value.
14205
9130f83e
MS
14206 * hostio.c (require_data): Free malloc memory before returning
14207 error.
14208
69d37113
MS
142092011-02-26 Michael Snyder <msnyder@vmware.com>
14210
14211 * linux-low.c (list_threads): Call closedir for dirent.
14212
35f5825a
MS
142132011-02-27 Michael Snyder <msnyder@vmware.com>
14214
2a589cef
MS
14215 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14216 a case statement falls through.
14217
0adea5f7
MS
14218 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14219
35f5825a
MS
14220 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14221 in comparison.
14222
238f1c74
MS
142232011-02-26 Michael Snyder <msnyder@vmware.com>
14224
14225 * utils.c (decimal2str): Eliminate dead code and dead param.
14226 (pulongest): Drop dead param from call to decimal2str.
14227 (plongest): Ditto.
14228
633ff500
JB
142292011-02-24 Joel Brobecker <brobecker@adacore.com>
14230
14231 Revert the following patch (not approved yet):
14232 2011-02-21 Hui Zhu <teawater@gmail.com>
14233 * tracepoint.c (tp_printf): New function.
14234 (eval_agent_expr): Handle gdb_agent_op_printf.
14235
f9c6ff72
HZ
142362011-02-21 Hui Zhu <teawater@gmail.com>
14237
14238 * tracepoint.c (tp_printf): New function.
14239 (eval_agent_expr): Handle gdb_agent_op_printf.
14240
94d5e490
TT
142412011-02-18 Tom Tromey <tromey@redhat.com>
14242
14243 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14244 (tracepoint.o): Likewise.
14245 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14246 (gdb_agent_op_names): Likewise.
14247
c7f96d2b
TT
142482011-02-18 Tom Tromey <tromey@redhat.com>
14249
14250 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14251 gdb_agent_op_rot>: New constants.
14252 (gdb_agent_op_names): Add pick and roll.
14253 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14254 cases.
14255
0feedb2c
JK
142562011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14257
14258 * aclocal.m4: Regenerated with aclocal-1.11.1.
14259
b3b9301e
PA
142602011-02-14 Pedro Alves <pedro@codesourcery.com>
14261
14262 * server.c (handle_qxfer_traceframe_info): New.
14263 (qxfer_packets): Register "traceframe-info".
14264 (handle_query): Report support for qXfer:traceframe-info:read+.
14265 * tracepoint.c (match_blocktype): New.
14266 (traceframe_find_block_type): Rename to ...
14267 (traceframe_walk_blocks): ... this. Add callback filter argument,
14268 and use it.
14269 (traceframe_find_block_type): New, reimplemented on top of
14270 traceframe_walk_blocks.
14271 (build_traceframe_info_xml): New.
14272 (traceframe_read_info): New.
14273 * server.h (traceframe_read_info): Declare.
14274
4f3e6fb7
YQ
142752011-02-11 Yao Qi <yao@codesourcery.com>
14276
14277 * configure.ac: Call AC_PROG_RANLIB.
14278 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14279 * configure: Regenerate.
14280
764880b7
PA
142812011-02-07 Pedro Alves <pedro@codesourcery.com>
14282
14283 * server.c (gdb_read_memory): Change return semantics to allow
14284 partial transfers.
14285 (handle_search_memory_1): Adjust.
14286 (process_serial_event) <'m' packet>: Handle partial transfers.
14287 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14288
1c79eb8a
PA
142892011-01-28 Pedro Alves <pedro@codesourcery.com>
14290
14291 * regcache.c (init_register_cache): Initialize
14292 regcache->register_status.
14293 (free_register_cache): Release regcache->register_status.
14294 (regcache_cpy): Copy register_status.
14295 (registers_to_string): Print 'x's for unavailable registers.
14296 (supply_register): Mark the register's status valid or
14297 unavailable, depending on whether a buffer was passed in or not.
14298 (supply_register_zeroed): New.
14299 (supply_regblock): Mark the registers' status valid or
14300 unavailable, depending on whether a buffer was passed in or not.
14301 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14302 (struct regcache): New `register_status' field.
14303 (supply_register_zeroed): Declare.
14304 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14305 supply_register_zeroed, rather than passing a NULL buffer to
14306 supply_register.
14307 * tracepoint.c (fetch_traceframe_registers): Update comment.
14308
85724a0e
PA
143092011-01-28 Pedro Alves <pedro@codesourcery.com>
14310
14311 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14312 buffer explicit.
14313
d08aafef
PA
143142011-01-25 Pedro Alves <pedro@codesourcery.com>
14315
14316 * server.h (decode_xfer_write): Change prototype.
14317 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14318 and don't extract the annex here.
14319 * server.c (decode_xfer_read): Remove `annex' parameter,
14320 and don't extract the annex here.
14321 (decode_xfer): New.
14322 (struct qxfer): New.
14323 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14324 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14325 (handle_qxfer_statictrace): New functions, abstracted out from
14326 handle_query, and made to use the struct qxfer interface.
14327 (handle_threads_qxfer_proper): Rename to ...
14328 (handle_qxfer_threads_proper): ... this.
14329 (handle_threads_qxfer): Rename to ...
14330 (handle_qxfer_threads): ... this. Adjust.
14331 (qxfer_packets): New array.
14332 (handle_qxfer): New function.
14333 (handle_query): Use handle_qxfer.
14334
493e2a69
MS
143352011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14336
14337 * gdbreplay.c: Shorten lines of >= 80 columns.
14338 * linux-low.c: Ditto.
14339 * linux-ppc-low.c: Ditto.
14340 * linux-s390-low.c: Ditto.
14341 * linux-sparc-low.c: Ditto.
14342 * linux-x86-low.c: Ditto.
14343 * linux-xtensa-low.c: Ditto.
14344 * mem-break.c: Ditto.
14345 * nto-low.c: Ditto.
14346 * regcache.h: Ditto.
14347 * remote-utils.c: Ditto.
14348 * server.c: Ditto.
14349 * server.h: Ditto.
14350 * thread-db.c: Ditto.
14351 * tracepoint.c: Ditto.
14352 * utils.c: Ditto.
14353 * win32-low.h: Ditto.
14354
44944448
JB
143552011-01-05 Joel Brobecker <brobecker@adacore.com>
14356
14357 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14358 update.
14359
71ce852c
JB
143602011-01-01 Joel Brobecker <brobecker@adacore.com>
14361
14362 * server.c (gdbserver_version): Update copyright year in version
14363 output.
14364 * gdbreplay.c (gdbreplay_version): Ditto.
14365
eb826dc6
MF
143662010-12-29 Jie Zhang <jie.zhang@analog.com>
14367
14368 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14369 * linux-bfin-low.c: New file.
14370 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14371 PT_DATA_ADDR for BFIN targets.
14372 * Makefile.in (SFILES): Add linux-bfin-low.c.
14373 (clean): Remove reg-bfin.c.
14374 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14375 * README: Mention supported Blackfin targets.
14376
39ab222a
MF
143772010-12-23 Mike Frysinger <vapier@gentoo.org>
14378
14379 * .gitignore: New file.
14380
a1f2ce7d
MF
143812010-11-16 Mike Frysinger <vapier@gentoo.org>
14382
14383 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14384
f474844c
JZ
143852010-10-22 Jie Zhang <jie@codesourcery.com>
14386
14387 * Makefile.in: Add FLAGS_TO_PASS variable.
14388 (install): Remove dependency of install-only and recursively
14389 invoke make for install-only.
14390
f1048712
DE
143912010-10-04 Doug Evans <dje@google.com>
14392
14393 * Makefile.in (uninstall): Use $(DESTDIR).
14394
b53a1623
PA
143952010-09-24 Pedro Alves <pedro@codesourcery.com>
14396
e6ee044d
PA
14397 PR gdb/11842
14398
b53a1623
PA
14399 * linux-x86-low.c (compat_siginfo_from_siginfo)
14400 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14401 si_code is < 0. Check for si_code == SI_TIMER before checking for
14402 si_code < 0.
14403
fa1bd1e4
JB
144042010-09-13 Joel Brobecker <brobecker@adacore.com>
14405
14406 * lynx-i386-low.c: New file.
14407 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14408
47fac8f8
JB
144092010-09-13 Joel Brobecker <brobecker@adacore.com>
14410
14411 * lynx-low.c (ptrace_request_to_str): Remove handling for
14412 request values that have been removed in LynxOS 5.x.
14413
1adfc54d
JB
144142010-09-13 Joel Brobecker <brobecker@adacore.com>
14415
14416 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14417 <ptrace.h>
14418
c2a66c29
NS
144192010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14420
14421 * configure.ac: Add --enable-inprocess-agent option.
14422 * configure: Rebuilt.
14423
32fcada3
YQ
144242010-09-06 Yao Qi <yao@codesourcery.com>
14425
14426 * linux-low.c (linux_kill): Remove unused variable.
14427 (linux_stabilize_threads): Likewise.
14428 * server.c (start_inferior): Likewise.
14429 (queue_stop_reply_callback): Likewise.
14430 * tracepoint.c (do_action_at_tracepoint): Likewise.
14431
0cccb683
YQ
144322010-09-06 Yao Qi <yao@codesourcery.com>
14433
14434 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14435 on return.
14436
423ec54c
JK
144372010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14438
14439 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14440
12ac6819
PA
144412010-09-06 Pedro Alves <pedro@codesourcery.com>
14442
14443 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14444 "$(IPA_DEPFILES)".
14445
8ed54b31
JB
144462010-09-01 Joel Brobecker <brobecker@adacore.com>
14447
14448 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14449 gdbserver/lynx-ppc-low.c: New files.
14450 * Makefile.in (lynx_low_h): New variable.
14451 (lynx-low.o, lynx-ppc-low.o): New rules.
14452 * configure.ac: On LynxOS, link with -lnetinet.
14453 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14454 * configure: regenerate.
14455
bb0116a4
JB
144562010-09-01 Joel Brobecker <brobecker@adacore.com>
14457
14458 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14459 * configure.ac: Add check for vasprintf and vsnprintf.
14460 * configure, config.in: Regenerate.
14461 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14462
a778ab81 144632010-09-01 Joel Brobecker <brobecker@adacore.com>
14464
14465 * gdbreplay.c: Move include of alloca.h up, next to include of
14466 malloc.h.
14467 * server.h: Add include of malloc.h.
14468 * mem-break.c: Remove include of malloc.h.
14469 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14470
8b034a19 144712010-09-01 Joel Brobecker <brobecker@adacore.com>
14472
14473 * Makefile.in (memmem.o): Build with -Wno-error.
14474
144752010-09-01 Joel Brobecker <brobecker@adacore.com>
14476
14477 * utils.c (xsnprintf): Make non-static.
14478 * server.h: Add xsnprintf declaration.
14479 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14480 replace calls to snprintf by calls to xsnprintf throughout.
14481
144822010-09-01 Joel Brobecker <brobecker@adacore.com>
14483
14484 * configure.ac: Add configure check for alloca.
14485 * configure, config.in: Regenerate.
14486 * server.h: Include alloca.h if it exists.
14487 * gdbreplay.c: Include alloca.h if it exists.
14488
1a981360
PA
144892010-08-28 Pedro Alves <pedro@codesourcery.com>
14490
14491 * linux-low.c (__SIGRTMIN): Define if not already defined.
14492 (linux_create_inferior): Check for __ANDROID__ rather than
14493 __SIGRTMIN.
14494 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14495 are already deferred.
14496 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14497 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14498 stopped and already has a pending signal to report.
14499 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14500 a pending signal to report or is moving out of a jump pad.
14501 (linux_init_signals): Check for __ANDROID__ rather than
14502 __SIGRTMIN.
14503
b4d51a55
PA
145042010-08-28 Pedro Alves <pedro@codesourcery.com>
14505
14506 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14507 debug_threads check. Avoid a linear search when not doing debug
14508 output.
14509
ec48365d
PA
145102010-08-27 Pedro Alves <pedro@codesourcery.com>
14511
14512 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14513 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14514 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14515 (process_event): Change local fd's type to gdb_fildes_t.
14516 (create_file_handler): Adjust prototype.
14517 (delete_file_handler): Adjust prototype.
14518 (handle_file_event): Adjust prototype. Use pfildes.
14519 (create_file_event): Adjsut prototype.
14520 * remote-utils.c (remote_desc, listen_desc): Change type to
14521 gdb_fildes_t.
14522 * server.h: New gdb_fildes_t typedef.
14523 [USE_WIN32API]: Include winsock2.h.
14524 (delete_file_handler, add_file_handler): Adjust prototypes.
14525 (pfildes): Declare.
14526 * utils.c (pfildes): New.
14527
854d88f0
PA
145282010-08-27 Pedro Alves <pedro@codesourcery.com>
14529
14530 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14531 * configure: Regenerate.
14532
0146f85b
PA
145332010-08-27 Pedro Alves <pedro@codesourcery.com>
14534
14535 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14536 (linux_done_accessing_memory): ... this.
14537 (linux_target_ops): Adjust.
14538 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14539 * nto-low.c (nto_target_ops): Adjust comment.
14540 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14541 * spu-low.c (spu_target_ops): Adjust comment.
14542 * target.h (target_ops): Rename unprepare_to_access_memory field
14543 to done_accessing_memory.
14544 (unprepare_to_access_memory): Rename to ...
14545 (done_accessing_memory): ... this.
14546
90d74c30
PA
145472010-08-26 Pedro Alves <pedro@codesourcery.com>
14548
14549 * linux-low.c (linux_prepare_to_access_memory): New.
14550 (linux_unprepare_to_access_memory): New.
14551 (linux_target_ops): Install them.
14552 * server.c (read_memory): Rename to ...
14553 (gdb_read_memory): ... this. Use
14554 prepare_to_access_memory/prepare_to_access_memory.
14555 (write_memory): Rename to ...
14556 (gdb_write_memory): ... this. Use
14557 prepare_to_access_memory/prepare_to_access_memory.
14558 (handle_search_memory_1): Adjust.
14559 (process_serial_event): Adjust.
14560 * target.h (struct target_ops): New fields
14561 prepare_to_access_memory and unprepare_to_access_memory.
14562 (prepare_to_access_memory, unprepare_to_access_memory): New.
14563 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14564 prepare_to_access_memory/prepare_to_access_memory.
14565 * nto-low.c (nto_target_ops): Adjust.
14566 * spu-low.c (spu_target_ops): Adjust.
14567 * win32-low.c (win32_target_ops): Adjust.
14568
fd467969
PA
145692010-08-26 Pedro Alves <pedro@codesourcery.com>
14570
14571 * Makefile.in (WARN_CFLAGS): Get it from configure.
14572 (WERROR_CFLAGS): New.
14573 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14574 * configure.ac: Introduce --enable-werror, which adds -Werror to
14575 the compiler command line. Enabled by default. Disable with
14576 --disable-werror. Add -Wdeclaration-after-statement
14577 Wpointer-arith and -Wformat-nonliteral to warning flags.
14578 * configure: Regenerate.
14579
331e2f5f
PA
145802010-08-26 Pedro Alves <pedro@codesourcery.com>
14581
14582 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14583
e581f2b4
PA
145842010-08-26 Pedro Alves <pedro@codesourcery.com>
14585
14586 * gdbreplay.c (remote_error): New.
14587 (gdbchar): New.
14588 (expect): Use gdbchar. Check for error reading from GDB.
14589 Clarify sync error output.
14590 (play): Check for errors writing to GDB.
14591 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14592 * remote-utils.c (getpkt): Check for errors writing to the remote
14593 descriptor.
14594
3c11dd79
PA
145952010-08-25 Pedro Alves <pedro@codesourcery.com>
14596
14597 * linux-low.c (linux_wait_1): Move non-debugging code out of
14598 `debug_threads' control.
14599
d20a8ad9
PA
146002010-08-25 Pedro Alves <pedro@codesourcery.com>
14601
14602 * linux-low.c (linux_wait_1): Don't set last_status here.
14603 * server.c (push_event, queue_stop_reply_callback): Assert we're
14604 not pushing a TARGET_WAITKIND_IGNORE event.
14605 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14606 (myresume, handle_target_event): Set the thread's last_resume_kind
14607 and last_status from the target returned status.
14608
964e4306
PA
146092010-08-25 Pedro Alves <pedro@codesourcery.com>
14610
14611 PR threads/10729
14612
14613 * linux-x86-low.c (update_debug_registers_callback): New.
14614 (i386_dr_low_set_addr): Use it.
14615 (i386_dr_low_get_addr): New.
14616 (i386_dr_low_set_control): Use update_debug_registers_callback.
14617 (i386_dr_low_get_control): New.
14618 (i386_dr_low_get_status): Adjust.
14619 * linux-low.c (linux_stop_lwp): New.
14620 * linux-low.h (linux_stop_lwp): Declare.
14621
14622 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14623 argument instead of a i386_debug_reg_state.
14624 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14625 a i386_debug_reg_state.
14626 (i386_insert_aligned_watchpoint): Adjust.
14627 (i386_remove_aligned_watchpoint): Adjust.
14628 (i386_low_stopped_data_address): Read the debug registers from the
14629 inferior instead of from the mirrors.
14630 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14631 (i386_dr_low_get_addr): Declare.
14632 (i386_dr_low_get_control): Declare.
14633 (i386_dr_low_get_status): Change prototype.
14634
14635 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14636 (i386_dr_low_get_addr): New.
14637 (i386_dr_low_get_control): New.
14638 (i386_dr_low_get_status): Adjust prototype. Return
14639 dr_status_mirror.
14640 (i386_initial_stuff): Clear dr_status_mirror and
14641 dr_control_mirror.
14642 (i386_get_thread_context): Adjust.
14643 (i386_set_thread_context): Adjust.
14644 (i386_thread_added): Adjust.
14645
5f21a75b
PA
146462010-08-24 Pedro Alves <pedro@codesourcery.com>
14647
14648 * linux-low.h (linux_thread_area): Delete declaration.
14649
3e4c1235
TS
146502010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14651
14652 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14653 after its termination.
14654
1971b033
PA
146552010-08-09 Pedro Alves <pedro@codesourcery.com>
14656
14657 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14658 (gdb_wants_all_stopped): Delete.
14659 (linux_wait_1): Don't call them.
14660 * server.c (handle_v_cont): Tag all threads as want-stopped.
14661 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14662 stopped as "client-wants-stopped".
14663
310444ac
PA
146642010-07-31 Pedro Alves <pedro@codesourcery.com>
14665
14666 * Makefile.in (signals_h): New.
14667 (server_h): Depend on it.
14668 (server.o): Don't depend on $(signals_def).
14669 (signals.o): Depend on $(signals_def).
14670
a19cae16
JK
146712010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14672
14673 * Makefile.in (signals_def): New.
14674 (server_h): Append include/gdb/signals.h and signals_def.
14675 (server.o): Append signals_def.
14676
30d50328
JK
146772010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14678
14679 * server.c (handle_target_event): Use target_signal_to_host for
14680 resume_info.sig initialization.
14681 * target.h (struct thread_resume) <sig>: New comment.
14682
5c3216e2
OS
146832010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14684
c6f46ca0
OS
14685 * server.c (handle_query): strcpy() the returned string from paddress()
14686 instead of sprintf().
5c3216e2
OS
14687 * utils.c (paddress): Return phex_nz().
14688
6bd31874
JB
146892010-07-07 Joel Brobecker <brobecker@adacore.com>
14690
14691 * server.c (handle_v_cont): Call mourn_inferior if process
14692 just exited.
14693 (myresume): Likewise.
14694
0fb4aa4b
PA
146952010-07-01 Pedro Alves <pedro@codesourcery.com>
14696
14697 Static tracepoints, and integration with UST.
14698
14699 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14700 * mem-break.c (uninsert_all_breakpoints)
14701 (reinsert_all_breakpoints): New.
14702 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14703 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14704 (gdb_agent_ust_loaded, helper_thread_id)
14705 (gdb_agent_helper_thread_id): New macros.
14706 (struct ipa_sym_addresses): Add addr_ust_loaded,
14707 addr_helper_thread_id, addr_cmd_buf.
14708 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14709 (in_process_agent_loaded_ust): New.
14710 (write_e_ust_not_loaded): New.
14711 (maybe_write_ipa_ust_not_loaded): New.
14712 (struct collect_static_trace_data_action): New.
14713 (enum tracepoint_type) <static_tracepoint>: New.
14714 (struct tracepoint) <handle>: Mention static tracepoints.
14715 (struct static_tracepoint_ctx): New.
14716 (CMD_BUF_SIZE): New.
14717 (add_tracepoint_action): Handle static tracepoint actions.
14718 (unprobe_marker_at): New.
14719 (clear_installed_tracepoints): Handle static tracepoints.
14720 (cmd_qtdp): Handle static tracepoints.
14721 (probe_marker_at): New.
14722 (cmd_qtstart): Handle static tracepoints.
14723 (response_tracepoint): Handle static tracepoints.
14724 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14725 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14726 (get_context_regcache): Handle static tracepoints.
14727 (do_action_at_tracepoint): Handle static tracepoint actions.
14728 (traceframe_find_block_type): Handle static trace data blocks.
14729 (traceframe_read_sdata): New.
14730 (download_tracepoints): Download static tracepoint actions.
14731 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14732 (GDB_PROBE_NAME): New.
14733 (ust_ops): New.
14734 (GET_UST_SYM): New.
14735 (USTF): New.
14736 (dlsym_ust): New.
14737 (ust_marker_to_static_tracepoint): New.
14738 (gdb_probe): New.
14739 (collect_ust_data_at_tracepoint): New.
14740 (gdb_ust_probe): New.
14741 (UNIX_PATH_MAX, SOCK_DIR): New.
14742 (gdb_ust_connect_sync_socket): New.
14743 (resume_thread, stop_thread): New.
14744 (run_inferior_command): New.
14745 (init_named_socket): New.
14746 (gdb_ust_socket_init): New.
14747 (cstr_to_hexstr): New.
14748 (next_st): New.
14749 (first_marker, next_marker): New.
14750 (response_ust_marker): New.
14751 (cmd_qtfstm, cmd_qtsstm): New.
14752 (unprobe_marker_at, probe_marker_at): New.
14753 (cmd_qtstmat, gdb_ust_thread): New.
14754 (gdb_ust_init): New.
14755 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14756 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14757 (ST_REGENTRY): New.
14758 (x86_64_st_collect_regmap): New.
14759 (X86_64_NUM_ST_COLLECT_GREGS): New.
14760 (AMD64_RIP_REGNUM): New.
14761 (supply_static_tracepoint_registers): New.
14762 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14763 (ST_REGENTRY): New.
14764 (i386_st_collect_regmap): New.
14765 (i386_NUM_ST_COLLECT_GREGS): New.
14766 (supply_static_tracepoint_registers): New.
14767 * server.c (handle_query): Handle qXfer:statictrace:read.
14768 <qSupported>: Report support for StaticTracepoints, and
14769 qXfer:statictrace:read features.
14770 * server.h (traceframe_read_sdata)
14771 (supply_static_tracepoint_registers): Declare.
14772 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14773 (unpack_varlen_hex): Include in IPA build.
14774 * Makefile.in (ustlibs, ustinc): New.
14775 (IPA_OBJS): Add remote-utils-ipa.o.
14776 ($(IPA_LIB)): Link -ldl and -lpthread.
14777 (UST_CFLAGS): New.
14778 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14779 * config.in, configure: Regenerate.
14780
9e4344e5
PA
147812010-06-20 Ian Lance Taylor <iant@google.com>
14782 Pedro Alves <pedro@codesourcery.com>
14783
14784 * linux-x86-low.c (always_true): Delete.
14785 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14786 trying to fool the compiler with always_true.
14787
c6beb2cb
PA
147882010-06-20 Pedro Alves <pedro@codesourcery.com>
14789
14790 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14791 conditions in gdbserver.
14792
d2ed6730
UW
147932010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14794
14795 * spu-low.c (spu_read_memory): Wrap around local store limit.
14796 (spu_write_memory): Likewise.
14797
4e29fb54
PA
147982010-06-15 Pedro Alves <pedro@codesourcery.com>
14799
14800 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14801 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14802 LONGEST uses.
14803 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14804 uses.
14805 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14806 uses with LONGEST uses.
14807
6a271cae
PA
148082010-06-14 Stan Shebs <stan@codesourcery.com>
14809 Pedro Alves <pedro@codesourcery.com>
14810
14811 Bytecode compiler.
14812
14813 * linux-x86-low.c: Include limits.h.
14814 (add_insns): New.
14815 (always_true): New.
14816 (EMIT_ASM): New.
14817 (EMIT_ASM32): New.
14818 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14819 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14820 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14821 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14822 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14823 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14824 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14825 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14826 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14827 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14828 (amd64_emit_void_call_2): New.
14829 (amd64_emit_ops): New.
14830 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14831 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14832 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14833 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14834 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14835 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14836 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14837 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14838 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14839 (i386_emit_stack_adjust, i386_emit_int_call_1)
14840 (i386_emit_void_call_2): New.
14841 (i386_emit_ops): New.
14842 (x86_emit_ops): New.
14843 (the_low_target): Install x86_emit_ops.
14844 * server.h (struct emit_ops): New.
14845 (get_raw_reg_func_addr): Declare.
14846 (current_insn_ptr, emit_error): Declare.
14847 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14848 (set_trace_state_variable_value): New defines.
14849 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14850 addr_get_trace_state_variable_value and
14851 addr_set_trace_state_variable_value.
14852 (symbol_list): New fields for get_raw_reg,
14853 get_trace_state_variable_value and set_trace_state_variable_value.
14854 (condfn): New typedef.
14855 (struct tracepoint): New field `compiled_cond'.
14856 (do_action_at_tracepoint): Clear compiled_cond.
14857 (get_trace_state_variable_value, set_trace_state_variable_value):
14858 Export in the IPA.
14859 (condition_true_at_tracepoint): If there's a compiled condition,
14860 run that.
14861 (current_insn_ptr, emit_error): New globals.
14862 (struct bytecode_address): New.
14863 (get_raw_reg_func_addr): New.
14864 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14865 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14866 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14867 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14868 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14869 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14870 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14871 (compile_tracepoint_condition, compile_bytecodes): New.
14872 * target.h (emit_ops): Forward declare.
14873 (struct target_ops): New field emit_ops.
14874 (target_emit_ops): New.
14875 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14876 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14877 * linux-low.c (linux_emit_ops): New.
14878 (linux_target_ops): Install it.
14879 * linux-low.h (struct linux_target_ops): New field emit_ops.
14880
92b72907
UW
148812010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14882
14883 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14884 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14885
fa593d66
PA
148862010-06-01 Pedro Alves <pedro@codesourcery.com>
14887 Stan Shebs <stan@codesourcery.com>
14888
14889 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14890 (all): Depend on $(extra_libraries).
14891 (install-only): Install the IPA.
14892 (IPA_OBJS, IPA_LIB): New.
14893 (clean): Remove the IPA lib.
14894 (IPAGENT_CFLAGS): New.
14895 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14896 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14897 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14898 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14899 * configure.ac: Check for atomic builtins support in the compiler.
14900 (IPA_DEPFILES, extra_libraries): Define.
14901 * configure.srv (ipa_obj): Add description.
14902 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14903 (i[34567]86-*-linux*): Set ipa_obj.
14904 (x86_64-*-linux*): Set ipa_obj.
14905 * linux-low.c (stabilizing_threads): New.
14906 (supports_fast_tracepoints): New.
14907 (linux_detach): Stabilize threads before detaching.
14908 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14909 the lwp is either not stabilizing, or is moving out of a jump pad.
14910 (linux_fast_tracepoint_collecting): New.
14911 (maybe_move_out_of_jump_pad): New.
14912 (enqueue_one_deferred_signal): New.
14913 (dequeue_one_deferred_signal): New.
14914 (linux_wait_for_event_1): If moving out of a jump pad, defer
14915 pending signals to later.
14916 (linux_stabilize_threads): New.
14917 (linux_wait_1): Check if threads need moving out of jump pads, and
14918 do it if so.
14919 (stuck_in_jump_pad_callback): New.
14920 (move_out_of_jump_pad_callback): New.
14921 (lwp_running): New.
14922 (linux_resume_one_lwp): Handle moving out of jump pads.
14923 (linux_set_resume_request): Dequeue deferred signals.
14924 (need_step_over_p): Also step over fast tracepoint jumps.
14925 (start_step_over): Also uninsert fast tracepoint jumps.
14926 (finish_step_over): Also reinsert fast tracepoint jumps.
14927 (linux_install_fast_tracepoint_jump): New.
14928 (linux_target_ops): Install linux_stabilize_threads and
14929 linux_install_fast_tracepoint_jump_pad.
14930 * linux-low.h (linux_target_ops) <get_thread_area,
14931 install_fast_tracepoint_jump_pad>: New fields.
14932 (struct lwp_info) <collecting_fast_tracepoint,
14933 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14934 (linux_get_thread_area): Declare.
14935 * linux-x86-low.c (jump_insn): New.
14936 (x86_get_thread_area): New.
14937 (append_insns): New.
14938 (push_opcode): New.
14939 (amd64_install_fast_tracepoint_jump_pad): New.
14940 (i386_install_fast_tracepoint_jump_pad): New.
14941 (x86_install_fast_tracepoint_jump_pad): New.
14942 (the_low_target): Install x86_get_thread_area and
14943 x86_install_fast_tracepoint_jump_pad.
14944 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14945 (struct fast_tracepoint_jump): New.
14946 (fast_tracepoint_jump_insn): New.
14947 (fast_tracepoint_jump_shadow): New.
14948 (find_fast_tracepoint_jump_at): New.
14949 (fast_tracepoint_jump_here): New.
14950 (delete_fast_tracepoint_jump): New.
14951 (set_fast_tracepoint_jump): New.
14952 (uninsert_fast_tracepoint_jumps_at): New.
14953 (reinsert_fast_tracepoint_jumps_at): New.
14954 (set_breakpoint_at): Use write_inferior_memory.
14955 (uninsert_raw_breakpoint): Use write_inferior_memory.
14956 (check_mem_read): Mask out fast tracepoint jumps.
14957 (check_mem_write): Mask out fast tracepoint jumps.
14958 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14959 (set_fast_tracepoint_jump): Declare.
14960 (delete_fast_tracepoint_jump)
14961 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14962 (reinsert_fast_tracepoint_jumps_at): Declare.
14963 * regcache.c: Don't compile many functions when building the
14964 in-process agent library.
14965 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14966 the register buffer in the heap.
14967 (free_register_cache): If the register buffer isn't owned by the
14968 regcache, don't free it.
14969 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14970 pre-existing register caches.
14971 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14972 type.
14973 (convert_ascii_to_int): : Constify `from' parameter type.
14974 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14975 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14976 the needed buffer in-place.
14977 (relocate_instruction): New.
14978 * server.c (handle_query) <qSymbols>: If the target supports
14979 tracepoints, give it a chance of looking up symbols. Report
14980 support for fast tracepoints.
14981 (handle_status): Stabilize threads.
14982 (process_serial_event): Adjust.
14983 * server.h (struct fast_tracepoint_jump): Forward declare.
14984 (struct process_info) <fast_tracepoint_jumps>: New field.
14985 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14986 (decode_X_packet, decode_M_packet): Adjust.
14987 (relocate_instruction): Declare.
14988 (in_process_agent_loaded): Declare.
14989 (tracepoint_look_up_symbols): Declare.
14990 (struct fast_tpoint_collect_status): Declare.
14991 (fast_tracepoint_collecting): Declare.
14992 (force_unlock_trace_buffer): Declare.
14993 (handle_tracepoint_bkpts): Declare.
14994 (initialize_low_tracepoint)
14995 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14996 * target.h (struct target_ops) <stabilize_threads,
14997 install_fast_tracepoint_jump_pad>: New fields.
14998 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14999 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
15000 [HAVE_STDINT_H]: Include stdint.h.
15001 (trace_debug_1): Rename to ...
15002 (trace_vdebug): ... this.
15003 (trace_debug): Rename to ...
15004 (trace_debug_1): ... this. Add `level' parameter.
15005 (trace_debug): New.
15006 (ATTR_USED, ATTR_NOINLINE): New.
15007 (IP_AGENT_EXPORT): New.
15008 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15009 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15010 (about_to_request_buffer_space, trace_buffer_is_full)
15011 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15012 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15013 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15014 (traceframe_write_count, traceframes_created)
15015 (trace_state_variables)
15016 New renaming defines.
15017 (struct ipa_sym_addresses): New.
15018 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15019 (symbol_list): New.
15020 (ipa_sym_addrs): New.
15021 (all_tracepoint_symbols_looked_up): New.
15022 (in_process_agent_loaded): New.
15023 (write_e_ipa_not_loaded): New.
15024 (maybe_write_ipa_not_loaded): New.
15025 (tracepoint_look_up_symbols): New.
15026 (debug_threads) [IN_PROCESS_AGENT]: New.
15027 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15028 (UNKNOWN_SIDE_EFFECTS): New.
15029 (stop_tracing): New.
15030 (flush_trace_buffer): New.
15031 (stop_tracing_bkpt): New.
15032 (flush_trace_buffer_bkpt): New.
15033 (read_inferior_integer): New.
15034 (read_inferior_uinteger): New.
15035 (read_inferior_data_pointer): New.
15036 (write_inferior_data_pointer): New.
15037 (write_inferior_integer): New.
15038 (write_inferior_uinteger): New.
15039 (struct collect_static_trace_data_action): Delete.
15040 (enum tracepoint_type): New.
15041 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
15042 <actions_str, step_actions, step_actions_str>: Only include in
15043 GDBserver.
fa593d66
PA
15044 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15045 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15046 (tracepoints): Use IP_AGENT_EXPORT.
15047 (last_tracepoint): Don't include in the IPA.
15048 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15049 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15050 (alloced_trace_state_variables): New.
15051 (trace_state_variables): Use IP_AGENT_EXPORT.
15052 (traceframe_t): Delete unused variable.
15053 (circular_trace_buffer): Don't include in the IPA.
15054 (trace_buffer_start): Delete.
15055 (struct trace_buffer_control): New.
15056 (trace_buffer_free): Delete.
15057 (struct ipa_trace_buffer_control): New.
15058 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15059 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15060 New.
15061 (trace_buffer_ctrl): New.
15062 (TRACE_BUFFER_CTRL_CURR): New.
15063 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15064 Reimplement as macros.
15065 (trace_buffer_wrap): Delete.
15066 (traceframe_write_count, traceframe_read_count)
15067 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15068 (struct tracepoint_hit_ctx) <type>: New field.
15069 (struct fast_tracepoint_ctx): New.
15070 (memory_barrier): New.
15071 (cmpxchg): New.
15072 (record_tracepoint_error): Update atomically in the IPA.
15073 (clear_inferior_trace_buffer): New.
15074 (about_to_request_buffer_space): New.
15075 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15076 updating the same buffer.
15077 (add_tracepoint): Default the tracepoint's type to trap
15078 tracepoint, and orig_size to -1.
15079 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15080 internal variables.
15081 (create_trace_state_variable): New parameter `gdb'. Handle it.
15082 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15083 (cmd_qtdp): Handle fast tracepoints.
15084 (cmd_qtdv): Adjust.
15085 (max_jump_pad_size): New.
15086 (gdb_jump_pad_head): New.
15087 (get_jump_space_head): New.
15088 (claim_jump_space): New.
15089 (sort_tracepoints): New.
15090 (MAX_JUMP_SIZE): New.
15091 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15092 IPA.
15093 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15094 support. Upload fast traceframes, and delete internal IPA
15095 breakpoints.
15096 (stop_tracing_handler): New.
15097 (flush_trace_buffer_handler): New.
15098 (cmd_qtstop): Upload fast tracepoints.
15099 (response_tracepoint): Handle fast tracepoints.
15100 (tracepoint_finished_step): Upload fast traceframes. Set the
15101 tracepoint hit context's tracepoint type.
15102 (handle_tracepoint_bkpts): New.
15103 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15104 type. Add comment about fast tracepoints.
15105 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15106 non-existing action_str field.
15107 (get_context_regcache): Handle fast tracepoints.
15108 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15109 to the regcache.
15110 (fast_tracepoint_from_jump_pad_address): New.
15111 (fast_tracepoint_from_ipa_tpoint_address): New.
15112 (collecting_t): New.
15113 (force_unlock_trace_buffer): New.
15114 (fast_tracepoint_collecting): New.
15115 (collecting): New.
15116 (gdb_collect): New.
15117 (write_inferior_data_ptr): New.
15118 (target_tp_heap): New.
15119 (target_malloc): New.
15120 (download_agent_expr): New.
15121 (UALIGN): New.
15122 (download_tracepoints): New.
15123 (download_trace_state_variables): New.
15124 (upload_fast_traceframes): New.
15125 (IPA_FIRST_TRACEFRAME): New.
15126 (IPA_NEXT_TRACEFRAME_1): New.
15127 (IPA_NEXT_TRACEFRAME): New.
15128 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15129 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15130 (gdb_jump_pad_buffer_end): New.
15131 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15132 (initialize_tracepoint): Adjust.
15133 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15134 buffer. Initialize the low module.
15135 * utils.c (PREFIX, TOOLNAME): New.
15136 (malloc_failure): Use PREFIX.
15137 (error): In the IPA, an error causes an exit.
15138 (fatal, warning): Use PREFIX.
15139 (internal_error): Use TOOLNAME.
15140 (NUMCELLS): Increase to 10.
15141 * configure, config.in: Regenerate.
15142
d149dd1d
PA
151432010-06-01 Pedro Alves <pedro@codesourcery.com>
15144
15145 * server.c (handle_query) <qSupported>: Do two passes over the
15146 qSupported string to avoid nesting strtok.
15147
f6528abd
JK
151482010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15149
15150 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15151 (CDEPS): New.
15152 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15153 -Wl,--dynamic-list.
15154 * configure: Regenerate.
15155 * proc-service.list: New.
15156
ca2a87a0
JK
151572010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15158
15159 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15160 New comment.
15161
363a6e9f
OS
151622010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15163
15164 * gdbreplay.c (remote_open): Check error return from socket() call by
15165 its equality to -1 not by it being negative.
15166 * remote-utils.c (remote_open): Likewise.
15167
d23b6cb1
PA
151682010-05-23 Pedro Alves <pedro@codesourcery.com>
15169
15170 * config.h: Regenerate.
15171
28d3cf85
MK
151722010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15173
15174 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15175 doesn't provide PTRACE_GET_THREAD_AREA.
15176
fea36a59
MK
151772010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15178
15179 * linux-m68k-low.c: Include <asm/ptrace.h>
15180 (ps_get_thread_area): Implement.
15181
24b066ba
DE
151822010-05-03 Doug Evans <dje@google.com>
15183
15184 * event-loop.c (struct callback_event): New struct.
15185 (callback_list): New global.
15186 (append_callback_event, delete_callback_event): New functions.
15187 (process_callback): New function.
15188 (start_event_loop): Call it.
15189 * remote-utils.c (NOT_SCHEDULED): Define.
15190 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15191 moved out of readchar.
15192 (readchar): Rewrite. Call reschedule before returning.
15193 (reset_readchar): New function.
15194 (remote_close): Call it.
15195 (process_remaining, reschedule): New functions.
15196 * server.h (callback_handler_func): New typedef.
15197 (append_callback_event, delete_callback_event): Declare.
15198
9836d6ea
PA
151992010-05-03 Pedro Alves <pedro@codesourcery.com>
15200
15201 * proc-service.c (ps_pglobal_lookup): Use
15202 thread_db_look_up_one_symbol.
15203 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15204 parameter. Use it instead of all_symbols_looked_up.
15205 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15206 field.
15207 (all_symbols_looked_up): Don't declare.
15208 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15209 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15210 field.
15211 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15212 Set all_symbols_looked_up here.
15213 (thread_db_look_up_one_symbol): New.
15214 (thread_db_get_tls_address): Adjust.
15215 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15216 thread_db object on the heap, and tentatively set it in the
15217 process structure.
15218 (thread_db_init): Don't set all_symbols_looked_up here.
15219 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15220
7984d532
PA
152212010-05-03 Pedro Alves <pedro@codesourcery.com>
15222
15223 * linux-low.c (linux_kill, linux_detach): Adjust.
15224 (status_pending_p_callback): Remove redundant statement. Check
15225 for !TARGET_WAITIKIND_IGNORE, instead of
15226 TARGET_WAITKIND_STOPPED.
15227 (handle_tracepoints): Make sure LWP is locked. Adjust.
15228 (linux_wait_for_event_1): Adjust.
15229 (linux_cancel_breakpoints): New.
15230 (unsuspend_one_lwp): New.
15231 (unsuspend_all_lwps): New.
15232 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15233 (send_sigstop_callback): Change return type to int, add new
15234 `except' parameter and handle it.
15235 (suspend_and_send_sigstop_callback): New.
15236 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15237 pass them down. If SUSPEND, also increment the lwp's suspend
15238 count.
15239 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15240 (need_step_over_p): Don't consider suspended LWPs.
15241 (start_step_over): Adjust.
15242 (proceed_one_lwp): Change return type to int, add new `except'
15243 parameter and handle it.
15244 (unsuspend_and_proceed_one_lwp): New.
15245 (proceed_all_lwps): Use find_inferior instead of
15246 for_each_inferior.
15247 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15248 also decrement the suspend count of LWPs. Pass `except' down,
15249 instead of hacking its suspend count.
15250 (linux_pause_all): Add `freeze' parameter. Adjust.
15251 (linux_unpause_all): New.
15252 (linux_target_ops): Install linux_unpause_all.
15253 * server.c (handle_status): Adjust.
15254 * target.h (struct target_ops): New fields `unpause_all' and
15255 `cancel_breakpoints'. Add new parameter to `pause_all'.
15256 (pause_all): Add new `freeze' parameter.
15257 (unpause_all): New.
15258 (cancel_breakpoints): New.
15259 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15260 cancel breakpoints.
15261 (cmd_qtstart): Pause threads.
15262 (stop_tracing): Pause threads, and cancel breakpoints.
15263 * win32-low.c (win32_target_ops): Adjust.
15264
e471f25b
PA
152652010-05-03 Pedro Alves <pedro@codesourcery.com>
15266
15267 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15268 the inferior right away from here...
15269 (linux_wait_1): ... to here, and adjust to check the thread's
15270 last_resume_kind instead of the lwp's step or stop_expected flags.
15271
1915ef4f
PA
152722010-05-02 Pedro Alves <pedro@codesourcery.com>
15273
15274 * README: Use consistent `GDB' and `GDBserver' spellings.
15275
f9e39928
PA
152762010-05-02 Pedro Alves <pedro@codesourcery.com>
15277
15278 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15279 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15280 (linux_detach_one_lwp): Assume the lwp is stopped.
15281 (any_thread_of): Delete.
15282 (linux_detach): Stop all lwps here. Don't blindly delete all
15283 breakpoints.
15284 (delete_lwp_callback): New.
15285 (linux_mourn): Delete all lwps of the process that is gone.
15286 (linux_wait_1): Don't delete the last lwp of the process here.
15287 * mem-break.h (mark_breakpoints_out): Declare.
15288 * mem-break.c (mark_breakpoints_out): New.
15289 (free_all_breakpoints): Use it.
15290 * server.c (handle_target_event): If the process is gone, mark
15291 breakpoints out.
15292 * thread-db.c (struct thread_db) <create_bp>: New field.
15293 (thread_db_enable_reporting): Fix prototype. Store a thread event
15294 breakpoint reference in the thread_db struct.
15295 (thread_db_load_search): Clear the thread_db object.
15296 (try_thread_db_load_1): Ditto.
15297 (switch_to_process): New.
15298 (disable_thread_event_reporting): Use it.
15299 (remove_thread_event_breakpoints): New.
15300 (thread_db_detach, thread_db_mourn): Use it.
15301
1e7fc18c
PA
153022010-05-01 Pedro Alves <pedro@codesourcery.com>
15303
15304 * linux-low.c (linux_enable_event_reporting): New.
15305 (linux_wait_for_event_1, handle_extended_wait): Use it.
15306
02fc4de7
PA
153072010-04-30 Pedro Alves <pedro@codesourcery.com>
15308
15309 * linux-low.c (linux_kill_one_lwp, linux_kill)
15310 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15311 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15312 SIGSTOP even if the LWP is stopped.
15313 (send_sigstop_callback): New.
15314 (stop_all_lwps): Use send_sigstop_callback instead.
15315 (linux_resume_one_thread): Adjust.
15316 (proceed_one_lwp): Still proceed an LWP that the client has
15317 requested to stop, if we haven't reported it as stopped yet. Make
15318 sure that LWPs the client want stopped, have a pending SIGSTOP.
15319
bc3b5632
DE
153202010-04-26 Doug Evans <dje@google.com>
15321
ae1ada35
DE
15322 * server.c (handle_general_set): Make static.
15323
bc3b5632
DE
15324 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15325 Print received char after testing for error/eof instead of before.
15326 (input_interrupt): Tweak comment.
15327
65730243
DE
153282010-04-23 Doug Evans <dje@google.com>
15329
15330 * server.c (start_inferior): Print inferior argv if --debug.
15331
a8ae7dc0
AR
153322010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15333
15334 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15335 * nto-x86-low.c: Include server.h
15336
1c07cc19
PM
153372010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15338
15339 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15340 be consistent with other sources of this directory.
15341 (init_registers_amd64): Correct name of source file of this function
15342 in the comment.
15343
e0a61e09
PM
153442010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15345
15346 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15347 64-bit executables.
15348
54709339
PM
153492010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15350
15351 * win32-i386-low.c: Add 64-bit support.
15352 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15353 (init_registers_amd64): Declare.
15354 (mappings): Add 64-bit version of array.
15355 (init_windows_x86): New function.
15356 (the_low_target): Change init_arch field to init_windows_x86.
15357
e8f0053d
PM
153582010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15359
15360 * win32-low.c: Adapt to support also 64-bit architecture.
15361 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15362 (get_image_name): Use SIZE_T type for local variable `done'.
15363 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15364 (toolhelp_get_dll_name): Idem.
15365 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15366 Use uintptr_t typecast to avoid warning.
15367 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15368 (handle_exception): Use phex_nz to avoid warning.
15369 (win32_wait): Remove unused local variable `process'.
15370
c481e77e
PM
153712010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15372
15373 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15374 `amd64-avx.o'.
15375
12ea4b69
PM
153762010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15377
15378 * configure.ac: Use `ws2_32' library for srv_mingw.
15379 * configure: Regenerate.
15380 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15381 * remote-utils.c: Likewise.
15382
f6d1620c
L
153832010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15384
15385 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15386 if __x86_64__ is defined.
15387
8e642873
PM
153882010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15389
15390 * configure: Regenerate.
15391
711e434b
PM
153922010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15393
15394 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15395 * target.h (target_ops): New get_tib_address field.
15396 * win32-low.h (win32_thread_info): Add thread_local_base field.
15397 * win32-low.c (child_add_thread): Add tlb argument.
15398 Set thread_local_base field to TLB.
15399 (get_child_debug_event): Adapt to child_add_thread change.
15400 (win32_get_tib_address): New function.
15401 (win32_target_ops): Set get_tib_address field to
15402 win32_get_tib_address.
15403 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15404
505106cd
PA
154052010-04-12 Pedro Alves <pedro@codesourcery.com>
15406
505106cd
PA
15407 * linux-low.c (linux_mourn): Also remove the process.
15408 * server.c (handle_target_event): Don't remove the process here.
15409 * nto-low.c (nto_mourn): New.
15410 (nto_target_ops): Install it.
15411 * spu-low.c (spu_mourn): New.
15412 (spu_target_ops): Install it.
15413 * win32-low.c (win32_mourn): New.
15414 (win32_target_ops): Install it.
15415
e8470a06
PA
154162010-04-12 Pedro Alves <pedro@codesourcery.com>
15417
15418 * server.h (buffer_xml_printf): Remove redundant `;'.
15419
45ba0d02
PA
154202010-04-12 Pedro Alves <pedro@codesourcery.com>
15421
15422 * regcache.c (set_register_cache): Invalidate regcaches before
15423 changing the register cache layout.
15424 (regcache_invalidate_one): Allow a NULL regcache.
15425 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15426 regcaches before changing the register cache layout or the target
15427 regsets.
15428
59e04013
L
154292010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15430
15431 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15432 variable warning on Linux/x86-64.
15433
8336d594
PA
154342010-04-11 Pedro Alves <pedro@codesourcery.com>
15435
15436 GDBserver disconnected tracing support.
15437
15438 * linux-low.c (linux_remove_process): Delete.
15439 (add_lwp): Don't set last_resume_kind here.
15440 (linux_kill): Use `mourn'.
15441 (linux_detach): Use `thread_db_detach', and `mourn'.
15442 (linux_mourn): New.
15443 (linux_attach_lwp_1): Adjust comment.
15444 (linux_attach): last_resume_kind moved the thread_info; adjust.
15445 (status_pending_p_callback): Adjust.
15446 (linux_wait_for_event_1): Adjust.
15447 (count_events_callback, select_singlestep_lwp_callback)
15448 (select_event_lwp_callback, cancel_breakpoints_callback)
15449 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15450 (proceed_one_lwp): Adjust.
15451 (linux_async): Add debug output.
15452 (linux_thread_stopped): New.
15453 (linux_pause_all): New.
15454 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15455 linux_pause_all.
15456 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15457 (thread_db_free): Delete declaration.
15458 (thread_db_detach, thread_db_mourn): Declare.
15459 * thread-db.c (thread_db_init): Use thread_db_mourn.
15460 (thread_db_free): Delete, split in two.
15461 (disable_thread_event_reporting): New.
15462 (thread_db_detach): New.
15463 (thread_db_mourn): New.
15464
15465 * server.h (struct thread_info) <last_resume_kind>: New field.
15466 <attached>: Add comment.
15467 <gdb_detached>: New field.
15468 (handler_func): Change return type to int.
15469 (handle_serial_event, handle_target_event): Ditto.
15470 (gdb_connected): Declare.
15471 (tracing): Delete.
15472 (disconnected_tracing): Declare.
15473 (stop_tracing): Declare.
15474
15475 * server.c (handle_query) <qSupported>: Report support for
15476 disconnected tracing.
15477 (queue_stop_reply_callback): Account for running threads.
15478 (gdb_wants_thread_stopped): New.
15479 (gdb_wants_all_threads_stopped): New.
15480 (gdb_reattached_process): New.
15481 (handle_status): Clear the `gdb_detached' flag of all processes.
15482 In all-stop, stop all threads.
15483 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15484 (process_serial_event): If the remote connection breaks, or if an
15485 exit was forced with "monitor exit", force an event loop exit.
15486 Handle disconnected tracing on detach.
15487 (handle_serial_event): Adjust.
15488 (handle_target_event): If GDB isn't connected, forward events back
15489 to the inferior, unless the last process exited, in which case,
15490 exit gdbserver. Adjust interface.
15491
15492 * remote-utils.c (remote_open): Don't block in accept. Instead
15493 register an event loop source on the listen socket file
15494 descriptor. Refactor bits into ...
15495 (listen_desc): ... this new global.
15496 (gdb_connected): ... this new function.
15497 (enable_async_notification): ... this new function.
15498 (handle_accept_event): ... this new function.
15499 (remote_close): Clear remote_desc.
15500
15501 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15502
15503 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15504 New fields.
15505 (mourn_inferior): Define.
15506 (target_process_qsupported): Avoid the dangling else problem.
15507 (thread_stopped): Define.
15508 (pause_all): Define.
15509 (target_waitstatus_to_string): Declare.
15510 * target.c (target_waitstatus_to_string): New.
15511
15512 * tracepoint.c (tracing): Make extern.
15513 (disconnected_tracing): New.
15514 (stop_tracing): Make extern. Handle tracing stops due to GDB
15515 disconnecting.
15516 (cmd_qtdisconnected): New.
15517 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15518 (handle_tracepoint_general_set): Handle QTDisconnected.
15519
15520 * event-loop.c (event_handler_func): Change return type to int.
15521 (process_event): Bail out if the event handler wants the event
15522 loop to stop.
15523 (handle_file_event): Ditto.
15524 (start_event_loop): Bail out if the event handler wants the event
15525 loop to stop.
15526
15527 * nto-low.c (nto_target_ops): Adjust.
15528 * spu-low.c (spu_wait): Don't remove the process here.
15529 (spu_target_ops): Adjust.
15530 * win32-low.c (win32_wait): Don't remove the process here.
15531 (win32_target_ops): Adjust.
15532
5d267c4c
PA
155332010-04-11 Pedro Alves <pedro@codesourcery.com>
15534
15535 * regcache.c (realloc_register_cache): Invalidate inferior's
15536 regcache before recreating it.
15537
623ccd72
PA
155382010-04-09 Pedro Alves <pedro@codesourcery.com>
15539
15540 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15541
219f2f23
PA
155422010-04-09 Stan Shebs <stan@codesourcery.com>
15543 Pedro Alves <pedro@codesourcery.com>
15544
15545 * server.h (LONGEST): New.
15546 (struct thread_info) <while_stepping>: New field.
15547 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15548 Declare.
15549 (initialize_tracepoint, handle_tracepoint_general_set)
15550 (handle_tracepoint_query, tracepoint_finished_step)
15551 (tracepoint_was_hit, release_while_stepping_state_list):
15552 (current_traceframe): Declare.
15553 * server.c (handle_general_set): Handle tracepoint packets.
15554 (read_memory): New.
15555 (write_memory): New.
15556 (handle_search_memory_1): Use read_memory.
15557 (handle_query): Report support for conditional tracepoints, trace
15558 state variables, and tracepoint sources. Handle tracepoint
15559 queries.
15560 (main): Initialize the tracepoints module.
15561 (process_serial_event): Handle traceframe reads/writes.
15562
15563 * linux-low.c (handle_tracepoints): New.
15564 (linux_wait_1): Call it.
15565 (linux_resume_one_lwp): Handle while-stepping.
15566 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15567 (linux_target_ops): Install them.
15568 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15569 New field.
15570 * linux-x86-low.c (x86_supports_tracepoints): New.
15571 (the_low_target). Install it.
15572
15573 * mem-break.h (delete_breakpoint): Declare.
15574 * mem-break.c (delete_breakpoint): Make external.
15575
15576 * target.h (struct target_ops): Add `supports_tracepoints',
15577 `read_pc', and `write_pc' fields.
15578 (target_supports_tracepoints): Define.
15579 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15580 (phex_nz): New.
15581
15582 * regcache.h (struct regcache) <registers_owned>: New field.
15583 (init_register_cache, regcache_cpy): Declare.
15584 (regcache_read_pc, regcache_write_pc): Declare.
15585 (register_cache_size): Declare.
15586 (supply_regblock): Declare.
15587 * regcache.c (init_register_cache): New.
15588 (new_register_cache): Use it.
15589 (regcache_cpy): New.
15590 (register_cache_size): New.
15591 (supply_regblock): New.
15592 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 15593
219f2f23
PA
15594 * tracepoint.c: New.
15595
15596 * Makefile.in (OBS): Add tracepoint.o.
15597 (tracepoint.o): New rule.
15598
3a13a53b
L
155992010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15600
15601 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15602 (i386-mmx.o): New.
15603 (i386-mmx.c): Likewise.
15604 (i386-mmx-linux.o): Likewise.
15605 (i386-mmx-linux.c): Likewise.
15606
15607 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15608 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15609 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15610 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15611
15612 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15613 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15614 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15615
1570b33e
L
156162010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15617
15618 * Makefile.in (clean): Updated.
15619 (i386-avx.o): New.
15620 (i386-avx.c): Likewise.
15621 (i386-avx-linux.o): Likewise.
15622 (i386-avx-linux.c): Likewise.
15623 (amd64-avx.o): Likewise.
15624 (amd64-avx.c): Likewise.
15625 (amd64-avx-linux.o): Likewise.
15626 (amd64-avx-linux.c): Likewise.
15627
15628 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15629 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15630 (srv_amd64_regobj): Add amd64-avx.o.
15631 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15632 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15633 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15634 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15635 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15636 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15637 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15638
15639 * i387-fp.c: Include "i386-xstate.h".
15640 (i387_xsave): New.
15641 (i387_cache_to_xsave): Likewise.
15642 (i387_xsave_to_cache): Likewise.
15643 (x86_xcr0): Likewise.
15644
15645 * i387-fp.h (i387_cache_to_xsave): Likewise.
15646 (i387_xsave_to_cache): Likewise.
15647 (x86_xcr0): Likewise.
15648
15649 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15650 * linux-crisv32-low.c (target_regsets): Likewise.
15651 * linux-m68k-low.c (target_regsets): Likewise.
15652 * linux-mips-low.c (target_regsets): Likewise.
15653 * linux-ppc-low.c (target_regsets): Likewise.
15654 * linux-s390-low.c (target_regsets): Likewise.
15655 * linux-sh-low.c (target_regsets): Likewise.
15656 * linux-sparc-low.c (target_regsets): Likewise.
15657 * linux-xtensa-low.c (target_regsets): Likewise.
15658
15659 * linux-low.c: Include <sys/uio.h>.
15660 (regsets_fetch_inferior_registers): Support nt_type.
15661 (regsets_store_inferior_registers): Likewise.
15662 (linux_process_qsupported): New.
15663 (linux_target_ops): Add linux_process_qsupported.
15664
15665 * linux-low.h (regset_info): Add nt_type.
15666 (linux_target_ops): Add process_qsupported.
15667
15668 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15669 and <sys/uio.h>.
15670 (init_registers_i386_avx_linux): New.
15671 (init_registers_amd64_avx_linux): Likewise.
15672 (xmltarget_i386_linux_no_xml): Likewise.
15673 (xmltarget_amd64_linux_no_xml): Likewise.
15674 (PTRACE_GETREGSET): Likewise.
15675 (PTRACE_SETREGSET): Likewise.
15676 (x86_fill_xstateregset): Likewise.
15677 (x86_store_xstateregset): Likewise.
15678 (use_xml): Likewise.
15679 (x86_linux_update_xmltarget): Likewise.
15680 (x86_linux_process_qsupported): Likewise.
15681 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15682 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15683 init_registers_i386_linux here. Call
15684 x86_linux_update_xmltarget.
15685 (the_low_target): Add x86_linux_process_qsupported.
15686
15687 * server.c (handle_query): Call target_process_qsupported.
15688
15689 * target.h (target_ops): Add process_qsupported.
15690 (target_process_qsupported): New.
15691
fc7238bb
PA
156922010-04-03 Pedro Alves <pedro@codesourcery.com>
15693
15694 * inferiors.c (add_thread): Set last_status kind to
15695 TARGET_WAITKIND_IGNORE.
15696 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15697 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15698 (linux_wait_1): Move `thread' local definition to block that uses
15699 it. Don't NULL initialize `event_child'.
15700 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15701 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15702 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15703
bdabb078
PA
157042010-04-01 Pedro Alves <pedro@codesourcery.com>
15705
15706 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15707 an extended waitstatus, or by a watchpoint.
15708 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15709 thread was stepping or has been stopped by a watchpoint.
15710
d3bbe7a0
PA
157112010-04-01 Pedro Alves <pedro@codesourcery.com>
15712
15713 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15714 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15715 of another, then delete the previous, and validate all
15716 breakpoints.
15717 (validate_inserted_breakpoint): New.
15718 (delete_disabled_breakpoints): New.
15719 (validate_breakpoints): New.
15720 (check_mem_read): Validate breakpoints before trusting their
15721 shadow. Delete disabled breakpoints.
15722 (check_mem_write): Validate breakpoints before trusting they
15723 should be inserted. Delete disabled breakpoints.
15724 * mem-break.h (validate_breakpoints):
15725 * server.c (handle_query): Validate breakpoints when we see a
15726 qSymbol query.
15727
8b07ae33
PA
157282010-04-01 Pedro Alves <pedro@codesourcery.com>
15729
15730 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15731 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15732 if we could tell there's a GDB breakpoint at stop_pc.
15733 (need_step_over_p): Don't do a step over if we find a GDB
15734 breakpoint at the resume PC.
15735
15736 * mem-break.c (struct raw_breakpoint): New.
15737 (enum bkpt_type): New type `gdb_breakpoint'.
15738 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15739 fields. New field `raw'.
15740 (find_raw_breakpoint_at): New.
15741 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15742 breakpoint instead.
15743 (set_breakpoint_at): Adjust.
15744 (delete_raw_breakpoint): New.
15745 (release_breakpoint): New.
15746 (delete_breakpoint): Rename to...
15747 (delete_breakpoint_1): ... this. Add proc parameter. Use
15748 release_breakpoint. Return ENOENT.
15749 (delete_breakpoint): Reimplement.
15750 (find_breakpoint_at): Delete.
15751 (find_gdb_breakpoint_at): New.
15752 (delete_breakpoint_at): Delete.
15753 (set_gdb_breakpoint_at): New.
15754 (delete_gdb_breakpoint_at): New.
15755 (gdb_breakpoint_here): New.
15756 (set_reinsert_breakpoint): Use release_breakpoint.
15757 (uninsert_breakpoint): Rename to ...
15758 (uninsert_raw_breakpoint): ... this.
15759 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15760 (reinsert_raw_breakpoint): Change parameter type to
15761 raw_breakpoint.
15762 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15763 instead.
15764 (check_breakpoints): Adjust. Use release_breakpoint.
15765 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15766 (breakpoint_inserted_here): Ditto.
15767 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15768 Don't trust the breakpoint's shadow if it is not inserted.
15769 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15770 (delete_all_breakpoints): Adjust.
15771 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15772 use delete_breakpoint_1.
15773
15774 * mem-break.h (breakpoints_supported): Delete declaration.
15775 (set_gdb_breakpoint_at): Declare.
15776 (gdb_breakpoint_here): Declare.
15777 (delete_breakpoint_at): Delete.
15778 (delete_gdb_breakpoint_at): Declare.
15779
15780 * server.h (struct raw_breakpoint): Forward declare.
15781 (struct process_info): New field `raw_breakpoints'.
15782
15783 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15784 breakpoints.
15785
6bf5e0ba
PA
157862010-03-24 Pedro Alves <pedro@codesourcery.com>
15787
15788 * linux-low.c (status_pending_p_callback): Fix comment.
15789 (linux_wait_for_event_1): Move most of the internal breakpoint
15790 handling from here...
15791 (linux_wait_1): ... to here.
15792 (count_events_callback): New.
15793 (select_singlestep_lwp_callback): New.
15794 (select_event_lwp_callback): New.
15795 (cancel_breakpoints_callback): New.
15796 (select_event_lwp): New.
15797 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15798 priority to all LWPs that have had events that should be reported
15799 to the client. Cancel breakpoints when about to reporting the
15800 event to the client, not while stopping lwps. No longer cancel
15801 finished single-steps here.
15802 (cancel_finished_single_step): Delete.
15803 (cancel_finished_single_steps): Delete.
15804
414a389f
PA
158052010-03-24 Pedro Alves <pedro@codesourcery.com>
15806
15807 * mem-break.c (enum bkpt_type): New.
15808 (struct breakpoint): New field `type'.
15809 (set_breakpoint_at): Change return type to struct breakpoint
15810 pointer. Set type to `other_breakpoint' by default.
15811 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15812 in the breakpoint list.
15813 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15814 (reinsert_breakpoint): Rename to ...
15815 (reinsert_raw_breakpoint): ... this.
15816 (reinsert_breakpoints_at): Adjust.
15817 * mem-break.h (struct breakpoint): Declare.
15818 (set_breakpoint_at): Change return type to struct breakpoint
15819 pointer.
15820
2280c721
PA
158212010-03-24 Pedro Alves <pedro@codesourcery.com>
15822
15823 * server.c (handle_query): Assign, not compare.
15824
d50171e4
PA
158252010-03-24 Pedro Alves <pedro@codesourcery.com>
15826
15827 Teach linux gdbserver to step-over-breakpoints.
15828
15829 * linux-low.c (can_hardware_single_step): New.
15830 (supports_breakpoints): New.
15831 (handle_extended_wait): If stopping threads, read the stop pc of
15832 the new cloned LWP.
15833 (get_pc): New.
15834 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15835 low target doesn't support retrieving the PC.
15836 (add_lwp): Set last_resume_kind to resume_continue.
15837 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15838 (linux_attach): Don't clear stop_expected. Set the lwp's
15839 last_resume_kind to resume_stop.
15840 (linux_detach_one_lwp): Don't check for removed breakpoints.
15841 (check_removed_breakpoint): Delete.
15842 (status_pending_p): Rename to ...
15843 (status_pending_p_callback): ... this. Don't check for removed
15844 breakpoints. Don't consider threads that are stopped from GDB's
15845 perspective.
15846 (linux_wait_for_lwp): Always read the stop_pc here.
15847 (cancel_breakpoint): New.
15848 (step_over_bkpt): New global.
15849 (linux_wait_for_event_1): Implement stepping over breakpoints.
15850 (gdb_wants_lwp_stopped): New.
15851 (gdb_wants_all_stopped): New.
15852 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15853 single-step traps here. Store the thread's last reported target
15854 wait status.
15855 (send_sigstop): Don't clear stop_expected. Always set it,
15856 instead.
15857 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15858 (cancel_finished_single_step): New.
15859 (cancel_finished_single_steps): New.
15860 (wait_for_sigstop): Don't cancel finished single-step traps here.
15861 (linux_resume_one_lwp): Don't check for removed breakpoints.
15862 Don't set `step' on non-hardware step archs.
15863 (linux_set_resume_request): Ignore resume_stop requests if already
15864 stopping or stopped. Set the lwp's last_resume_kind.
15865 (resume_status_pending_p): Don't check for removed breakpoints.
15866 (need_step_over_p): New.
15867 (start_step_over): New.
15868 (finish_step_over): New.
15869 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15870 requests. Clear the thread's last reported target waitstatus.
15871 Don't use the `suspended' flag. Don't consider pending breakpoints.
15872 (linux_resume): Start a step-over if necessary.
15873 (proceed_one_lwp): New.
15874 (proceed_all_lwps): New.
15875 (unstop_all_lwps): New.
15876 * linux-low.h (struct lwp_info): Rewrite comment for the
15877 `suspended' flag. Add the `stop_pc' field. Delete the
15878 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15879 Add `'last_resume_kind' and `need_step_over' fields.
15880 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15881 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15882 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15883 (set_raw_breakpoint_at): New.
15884 (set_breakpoint_at): Rewrite to use it.
15885 (reinsert_breakpoint_handler): Delete.
15886 (set_reinsert_breakpoint): New.
15887 (reinsert_breakpoint_by_bp): Delete.
15888 (delete_reinsert_breakpoints): New.
15889 (uninsert_breakpoint): Rewrite.
15890 (uninsert_breakpoints_at): New.
15891 (reinsert_breakpoint): Rewrite.
15892 (reinsert_breakpoints_at): New.
15893 (check_breakpoints): Rewrite.
15894 (breakpoint_here): New.
15895 (breakpoint_inserted_here): New.
15896 (check_mem_read): Adjust.
15897 * mem-break.h (breakpoints_supported, breakpoint_here)
15898 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15899 (reinsert_breakpoint_by_bp): Delete declaration.
15900 (delete_reinsert_breakpoints): Declare.
15901 (reinsert_breakpoint): Delete declaration.
15902 (reinsert_breakpoints_at): Declare.
15903 (uninsert_breakpoint): Delete declaration.
15904 (uninsert_breakpoints_at): Declare.
15905 (check_breakpoints): Adjust prototype.
15906 * server.h: Adjust include order.
15907 (struct thread_info): Declare here. Add a `last_status' field.
15908
30ba68cb
MS
159092010-03-23 Michael Snyder <msnyder@vmware.com>
15910
15911 * server.c (crc32): New function.
15912 (handle_query): Add handling for 'qCRC:' request.
15913
b9a881c2
PA
159142010-03-23 Pedro Alves <pedro@codesourcery.com>
15915
15916 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15917 lwp had been stopped by a watchpoint.
15918
e92d13d5
PA
159192010-03-16 Pedro Alves <pedro@codesourcery.com>
15920
15921 * server.h (internal_error): Declare.
15922 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15923 * utils.c (internal_error): New function.
15924
64daa791
AS
159252010-03-15 Andreas Schwab <schwab@redhat.com>
15926
15927 * configure.srv: Fix typo setting srv_regobj.
15928
f52cd8cd
PA
159292010-03-15 Pedro Alves <pedro@codesourcery.com>
15930
15931 * linux-low.c (fetch_register): Avoid passing a non string literal
15932 format to `error'.
15933 (usr_store_inferior_registers): Ditto.
15934
93ae6fdc
PA
159352010-03-14 Pedro Alves <pedro@codesourcery.com>
15936
15937 * linux-low.c (linux_write_memory): Bail out early if peeking
15938 memory failed.
15939
c3adc08c
PA
159402010-03-14 Pedro Alves <pedro@codesourcery.com>
15941
15942 * linux-low.h (struct lwp_info): New fields
15943 `stopped_by_watchpoint' and `stopped_data_address'.
15944 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15945 here, and cache them in the lwp object.
15946 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15947 directly.
15948 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15949 field.
15950 (linux_stopped_by_watchpoint): Rewrite.
15951 (linux_stopped_data_address): Rewrite.
15952
bce522a2
PA
159532010-03-06 Simo Melenius <simo.melenius@iki.fi>
15954
15955 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15956 switching the current inferior, not before.
15957
90884b2b
L
159582010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15959
15960 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15961 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15962 i386-linux.c and amd64-linux.c.
15963 (reg-i386.o): Removed.
15964 (reg-i386.c): Likewise.
15965 (reg-i386-linux.o): Likewise.
15966 (reg-i386-linux.c): Likewise.
15967 (reg-x86-64.o): Likewise.
15968 (reg-x86-64.c): Likewise.
15969 (reg-x86-64-linux.o): Likewise.
15970 (reg-x86-64-linux.c): Likewise.
15971 (i386.o): New.
15972 (i386.c): Likewise.
15973 (i386-linux.o): Likewise.
15974 (i386-linux.c): Likewise.
15975 (amd64.o): Likewise.
15976 (amd64.c): Likewise.
15977 (amd64-linux.o): Likewise.
15978 (amd64-linux.c): Likewise.
15979
15980 * configure.srv (srv_i386_regobj): New.
15981 (srv_i386_linux_regobj): Likewise.
15982 (srv_amd64_regobj): Likewise.
15983 (srv_amd64_linux_regobj): Likewise.
15984 (srv_i386_32bit_xmlfiles): Likewise.
15985 (srv_i386_64bit_xmlfiles): Likewise.
15986 (srv_i386_xmlfiles): Likewise.
15987 (srv_amd64_xmlfiles): Likewise.
15988 (srv_i386_linux_xmlfiles): Likewise.
15989 (srv_amd64_linux_xmlfiles): Likewise.
15990 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15991 srv_xmlfiles to $srv_i386_xmlfiles.
15992 (i[34567]86-*-mingw32ce*): Likewise.
15993 (i[34567]86-*-mingw*): Likewise.
15994 (i[34567]86-*-nto*): Likewise.
15995 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15996 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15997 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15998 (x86_64-*-linux*): Likewise.
15999
16000 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
16001 (init_registers_amd64_linux): New.
16002 (x86_arch_setup): Replace init_registers_x86_64_linux with
16003 init_registers_amd64_linux.
16004
193f13e6
MK
160052010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16006
16007 * configure.ac: Check for libdl. If it is not available link against
16008 static libthread_db.
16009 * configure: Regenerate.
16010
85d721b8
PA
160112010-02-22 Pedro Alves <pedro@codesourcery.com>
16012
16013 PR9605
16014
16015 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16016 handing a read watchpoint.
16017 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16018
6076632b
DE
160192010-02-12 Doug Evans <dje@google.com>
16020
16021 * linux-low.c (linux_supports_tracefork_flag): Document.
16022 (linux_look_up_symbols): Add comment.
16023
3327ccf7
L
160242010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16025
16026 * regcache.c (supply_register): Clear regcache if buf is NULL.
16027
0718675c 160282010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 16029 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
16030
16031 * inferiors.c (find_inferior): Add function documentation.
16032 (unloaded_dll): Handle the case where the unloaded dll has not
16033 been previously registered in the dll list.
16034
177321bd
DJ
160352010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16036
16037 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16038 (thumb2_breakpoint): New.
16039 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16040
2b009048
DJ
160412010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16042
16043 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16044 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16045 breakpoints.
16046
3be029c7
PA
160472010-01-21 Pedro Alves <pedro@codesourcery.com>
16048
16049 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16050
18f5de3b
JK
160512010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16052
16053 * linux-s390-low.c (s390_collect_ptrace_register)
16054 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16055
3743bb4f
DE
160562010-01-21 Doug Evans <dje@google.com>
16057
14ce3065
DE
16058 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16059 (PTRACE_ARG4_TYPE): New macro.
16060 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16061 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16062 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16063 (usr_store_inferior_registers): Ditto.
16064 (linux_read_memory, linux_write_memory): Ditto.
16065 (linux_test_for_tracefork): Ditto.
16066
3743bb4f
DE
16067 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16068 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16069
8b315be5
PA
160702010-01-21 Pedro Alves <pedro@codesourcery.com>
16071
16072 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16073 target.
16074
85492558
PA
160752010-01-21 Pedro Alves <pedro@codesourcery.com>
16076
16077 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16078 prototype to take a regcache. Adjust.
16079
442ea881
PA
160802010-01-20 Pedro Alves <pedro@codesourcery.com>
16081
16082 * regcache.h (struct thread_info): Forward declare.
16083 (struct regcache): New.
16084 (new_register_cache): Adjust prototype.
16085 (get_thread_regcache): Declare.
16086 (free_register_cache): Adjust prototype.
16087 (registers_to_string, registers_from_string): Ditto.
16088 (supply_register, supply_register_by_name, collect_register)
16089 (collect_register_as_string, collect_register_by_name): Ditto.
16090 * regcache.c (struct inferior_regcache_data): Delete.
16091 (get_regcache): Rename to ...
16092 (get_thread_regcache): ... this. Adjust. Switch inferior before
16093 fetching registers.
16094 (regcache_invalidate_one): Adjust.
16095 (regcache_invalidate): Fix prototype.
16096 (new_register_cache): Return the new register cache.
16097 (free_register_cache): Change prototype.
16098 (realloc_register_cache): Adjust.
16099 (registers_to_string): Change prototype to take a regcache. Adjust.
16100 (registers_from_string): Ditto.
16101 (register_data): Ditto.
16102 (supply_register): Ditto.
16103 (supply_register_by_name): Ditto.
16104 (collect_register): Ditto.
16105 (collect_register_as_string): Ditto.
16106 (collect_register_by_name): Ditto.
16107 * server.c (process_serial_event): Adjust.
16108 * linux-low.h (regset_fill_func, regset_store_func): Change
16109 prototype.
16110 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16111 Change prototype.
16112 * linux-low.c (get_stop_pc): Adjust.
16113 (check_removed_breakpoint): Adjust.
16114 (linux_wait_for_event): Adjust.
16115 (linux_resume_one_lwp): Adjust.
16116 (fetch_register): Add regcache parameter. Adjust.
16117 (usr_store_inferior_registers): Ditto.
16118 (regsets_fetch_inferior_registers): Ditto.
16119 (regsets_store_inferior_registers): Ditto.
16120 (linux_fetch_registers, linux_store_registers): Ditto.
16121 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16122 regcache. Adjust.
43aaf8b6
PA
16123 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16124 Ditto.
442ea881
PA
16125 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16126 prototype to take a regcache.
16127 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16128 * remote-utils.c (convert_ascii_to_int, outreg)
16129 (prepare_resume_reply): Change prototype to take a regcache.
16130 Adjust.
16131 * target.h (struct target_ops) <fetch_registers, store_registers>:
16132 Change prototype to take a regcache.
16133 (fetch_inferior_registers, store_inferior_registers): Change
16134 prototype to take a regcache. Adjust.
16135 * proc-service.c (ps_lgetregs): Adjust.
16136 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16137 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16138 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16139 take a regcache. Adjust.
16140 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16141 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16142 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16143 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16144 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16145 (cris_cannot_fetch_register):
16146 (cris_breakpoint_at): Change prototype to take a regcache.
16147 Adjust.
16148 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16149 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16150 to take a regcache. Adjust.
16151 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16152 Adjust.
16153 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16154 take a regcache. Adjust.
16155 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16156 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16157 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16158 * linux-mips-low.c (mips_get_pc):
16159 (mips_set_pc): Change prototype to take a regcache. Adjust.
16160 (mips_reinsert_addr): Adjust.
16161 (mips_collect_register): Change prototype to take a regcache.
16162 Adjust.
16163 (mips_supply_register):
16164 (mips_collect_register_32bit, mips_supply_register_32bit)
16165 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16166 (mips_store_fpregset): Ditto.
43aaf8b6
PA
16167 * linux-ppc-low.c (ppc_supply_ptrace_register)
16168 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
16169 (parse_spufs_run): Adjust.
16170 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16171 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16172 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16173 take a regcache. Adjust.
16174 * linux-s390-low.c (s390_collect_ptrace_register)
16175 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16176 (s390_set_pc): Change prototype to take a regcache. Adjust.
16177 (s390_arch_setup): Adjust.
16178 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16179 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16180 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16181 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16182 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16183 regcache. Adjust.
16184 (sparc_breakpoint_at): Adjust.
16185 * linux-xtensa-low.c (xtensa_fill_gregset):
16186 (xtensa_store_gregset):
16187 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16188 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16189 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16190 prototype to take a regcache. Adjust.
16191 * win32-arm-low.c (arm_fetch_inferior_register)
16192 (arm_store_inferior_register): Change prototype to take a
16193 regcache. Adjust.
16194 * win32-i386-low.c (i386_fetch_inferior_register)
16195 (i386_store_inferior_register): Change prototype to take a
16196 regcache. Adjust.
16197 * win32-low.c (child_fetch_inferior_registers)
16198 (child_store_inferior_registers): Change prototype to take a
16199 regcache. Adjust.
16200 (win32_wait): Adjust.
16201 (win32_fetch_inferior_registers): Change prototype to take a
16202 regcache. Adjust.
16203 (win32_store_inferior_registers): Adjust.
16204 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16205 store_inferior_register>: Change prototype to take a regcache.
16206
60c3d7b0
DE
162072010-01-20 Doug Evans <dje@google.com>
16208
16209 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16210 #ifdef.
16211 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 16212 (W_STOPCODE): Provide definition if missing.
60c3d7b0 16213
dc146f7c
VP
162142010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16215
16216 * linux-low.c (linux_core_of_thread): New.
16217 (compare_ints, show_process, list_threads): New.
16218 (linux_qxfer_osdata): Report threads and cores.
16219 (linux_target_op): Register linux_core_of_thread.
16220 * remote-utils.c (prepare_resume_reply): Report the core.
16221 (buffer_xml_printf): Support %d specifier.
16222 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16223 New.
16224 (handle_query): Handle qXfer:threads. Announce availability
16225 thereof.
16226 * target.h (struct target_ops): New field core_of_thread.
16227
7803799a
UW
162282010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16229
16230 * Makefile.in (clean): Remove new generated files.
16231 (reg-s390.o, reg-s390.c): Remove rules.
16232 (reg-s390x.o, reg-s390x.c): Likewise.
16233 (s390-linux32.o, s390-linux32.c): Add rules.
16234 (s390-linux64.o, s390-linux64.c): Likewise.
16235 (s390x-linux64.o, s390x-linux64.c): Likewise.
16236 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16237 * linux-s390-low.c: Include <elf.h>.
16238 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16239 (init_registers_s390): Remove prototype.
16240 (init_registers_s390x): Likewise.
16241 (init_registers_s390_linux32): Add prototype.
16242 (init_registers_s390_linux64): Likewise.
16243 (init_registers_s390x_linux64): Likewise.
16244 (s390_num_regs_3264): New define.
16245 (s390_regmap_3264): New global variable.
16246 (s390_cannot_fetch_register): Remove obsolete check.
16247 (s390_cannot_store_register): Likewise.
16248 (s390_collect_ptrace_register): Handle upper/lower register halves.
16249 (s390_supply_ptrace_register): Likewise.
16250 (s390_fill_gregset): Update to register number changes.
16251 (s390_get_hwcap): New routine.
16252 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16253 Install appropriate regmap and register set.
16254
6e7ffa39
JB
162552010-01-01 Joel Brobecker <brobecker@adacore.com>
16256
16257 * server.c (gdbserver_version): Update copyright year to 2010.
16258 * gdbreplay.c (gdbreplay_version): Likewise.
16259
957f3f49
DE
162602009-12-28 Doug Evans <dje@google.com>
16261
16262 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16263 elf/external.h. Include <elf.h> instead but only if necessary.
16264
ca5c370d
PA
162652009-12-28 Pedro Alves <pedro@codesourcery.com>
16266
16267 * linux-low.c (linux_remove_process): Remove `detaching'
16268 parameter. Don't release/detach from thread_db here.
16269 (linux_kill): Release/detach from thread_db here, ...
16270 (linux_detach): ... and here, before actually detaching.
16271 (linux_wait_1): ... and here, when a process exits.
16272 * thread-db.c (any_thread_of): New.
16273 (thread_db_free): Switch the current inferior to a thread of the
16274 passed in process.
16275
4ee62156
DE
162762009-12-21 Doug Evans <dje@google.com>
16277
d90e6a88
DE
16278 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16279
c5f62d5f
DE
16280 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16281 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16282 warning ifndef __NR_tkill. Move setting of errno there too.
16283 Delete unnecessary resetting of errno after syscall.
16284 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16285
10e86dd7
DE
16286 * configure.ac: Check for dladdr.
16287 * config.in: Regenerate.
16288 * configure: Regenerate.
16289 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16290 (try_thread_db_load): Update.
16291
4ee62156
DE
16292 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16293
00f515da
DE
162942009-12-18 Doug Evans <dje@google.com>
16295
e9464885
DE
16296 * event-loop.c: Include unistd.h if it exists.
16297
07d4f67e
DE
16298 * linux-low.c (my_waitpid): Move definition away from being in
16299 between linux_tracefork_child/linux_test_for_tracefork.
16300
00f515da
DE
16301 * gdb_proc_service.h (psaddr_t): Fix type.
16302 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16303 signature to match glibc.
16304
1de1badb
DE
163052009-12-16 Doug Evans <dje@google.com>
16306
16307 * linux-low.c (linux_read_memory): Fix argument to read.
16308
aeeb81d1
PA
163092009-11-26 Pedro Alves <pedro@codesourcery.com>
16310
16311 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16312 events, don't leave current_inferior pointing at null.
16313
10357975
PA
163142009-11-26 Pedro Alves <pedro@codesourcery.com>
16315
16316 * win32-low.c (LOG): Delete.
16317 (OUTMSG): Output to stderr.
16318 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16319 on compile time LOG macro.
16320 (win32_wait): Fix debug output.
16321
cf6e3471
PA
163222009-11-26 Pedro Alves <pedro@codesourcery.com>
16323
16324 * win32-low.c (win32_add_one_solib): If the dll name is
16325 "ntdll.dll", prepend the system directory to the dll path.
16326
0c85e18e
MK
163272009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16328
16329 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16330
9ac544ce 163312009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 16332 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
16333
16334 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16335 * configure.ac: Check for __mcoldfire__ and set
16336 gdb_cv_m68k_is_coldfire.
16337 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16338 reg-cf.o and reg-m68k.o.
16339 * configure: Regenerated.
16340
fd7dd3e6
PA
163412009-11-16 Pedro Alves <pedro@codesourcery.com>
16342
16343 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16344 Pass it to thread_db_free.
16345 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16346 proper `detaching' argument to linux_remove_process.
16347 * linux-low.h (thread_db_free): Add `detaching' parameter.
16348 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16349 to thread_db_free.
16350 (thread_db_free): Add `detaching' parameter. Only
16351 call td_ta_clear_event if detaching from process.
16352
75aa492e
MK
163532009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16354
16355 * thread-db.c (thread_db_free): Fix typo.
16356
21e1bee4
PP
163572009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16358
16359 PR gdb/10838
16360 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16361
8838b45e
NS
163622009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16363
16364 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16365 with an i686 compiler.
16366 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16367 needed.
16368 * configure: Rebuilt.
16369
8a35fb51
SL
163702009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16371
16372 PR gdb/10783
16373
16374 * server.c (handle_search_memory_1): Correct read_addr initialization
16375 in loop for searching subsequent chunks.
16376
96f15937
PP
163772009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16378
16379 * configure.ac: New --with-libthread-db option.
16380 * thread-db.c: Allow direct dependence on libthread_db.
16381 (thread_db_free): Adjust.
16382 * config.in: Regenerate.
16383 * configure: Likewise.
889bf7c5 16384
5f7d1694
PP
163852009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16386
16387 PR gdb/10757
16388 * thread-db.c (attach_thread): New function.
16389 (maybe_attach_thread): Return success/failure.
16390 (find_new_threads_callback): Adjust.
889bf7c5
PA
16391 (thread_db_find_new_threads): Loop until no new threads.
16392
88e3b899
PA
163932009-10-13 Pedro Alves <pedro@codesourcery.com>
16394
16395 * proc-service.c (ps_lgetregs): Formatting.
16396
cdbfd419
PP
163972009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16398
16399 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16400 * configure.ac: Adjust.
16401 * linux-low.h (struct process_info_private): Move members to struct
16402 thread_db.
16403 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16404 * linux-low.c (linux_remove_process): Adjust.
16405 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16406 * server.c (handle_query): Move code ...
16407 (handle_monitor_command): ... here. New function.
16408 * target.h (struct target_ops): New member.
16409 * thread-db.c (struct thread_db): New.
16410 (libthread_db_search_path): New variable.
16411 (thread_db_create_event, thread_db_enable_reporting)
16412 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16413 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16414 (try_thread_db_load_1, dladdr_to_soname): New functions.
16415 (try_thread_db_load, thread_db_load_search): New functions.
16416 (thread_db_init): Search for libthread_db.
16417 (thread_db_free): New function.
16418 (thread_db_handle_monitor_command): Likewise.
16419 * config.in: Regenerate.
16420 * configure: Regenerate.
889bf7c5 16421
4168d2d6
UW
164222009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16423
16424 * spu-low.c (spu_kill): Wait for inferior to terminate.
16425 Call clear_inferiors.
16426 (spu_detach): Call clear_inferiors.
16427
81ecdfbb
RW
164282009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16429
16430 * aclocal.m4: Regenerate.
16431 * config.in: Likewise.
16432 * configure: Likewise.
16433
0b9ff2c0
UW
164342009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16435
16436 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16437 (parse_spufs_run): New function.
16438 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16439 (ppc_breakpoint_at): Handle SPU breakpoints.
16440
efcbbd14
UW
164412009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16442
16443 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16444 (SPUFS_MAGIC): Define.
16445 (spu_enumerate_spu_ids): New function.
16446 (linux_qxfer_spu): New function.
16447 (linux_target_ops): Install linux_qxfer_spu.
16448
f4d9bade
UW
164492009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16450
16451 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16452 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16453 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16454 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16455 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16456 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16457 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16458 (init_registers_powerpc_cell32l): Add prototype.
16459 (init_registers_powerpc_cell64l): Likewise.
16460 (ppc_arch_setup): Detect Cell/B.E. architecture.
16461
96e946ca
RW
164622009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16463
16464 * Makefile.in (datarootdir): New variable.
16465
58d6951d
DJ
164662009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16467
16468 * linux-low.c (linux_write_memory): Update debugging output.
16469 * Makefile.in (clean): Add new descriptions.
16470 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16471 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16472 * configure.srv: Add new files for arm*-*-linux*.
16473 * linux-arm-low.c: Add new declarations.
16474 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16475 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16476 (HWCAP_VFPv3D16): New.
16477 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16478 instead of __IWMMXT__.
16479 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16480 (arm_arch_setup): New.
16481 (target_regsets): Remove #ifdef. Add VFP regset.
16482 (the_low_target): Use arm_arch_setup.
16483
12b42a12
DJ
164842009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16485
16486 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16487 the main thread again.
16488
ac8c974e
AR
164892009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16490
16491 Adding Neutrino gdbserver.
16492 * configure: Regenerated.
16493 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16494 * configure.srv (i[34567]86-*-nto*): New target.
16495 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16496 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16497 (nto_comctrl) [__QNX__]: New function.
16498 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16499
4424e0c3 165002009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
16501
16502 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16503 srv_tgtobj.
16504
912cf4ba
PA
165052009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16506 Pedro Alves <pedro@codesourcery.com>
16507
16508 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16509 don't support CONTEXT_EXTENDED_REGISTERS.
16510 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16511 (the_low_target): Install them.
16512 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16513 failing with ERROR_PIPE_NOT_CONNECTED.
16514
aa5ca48f
DE
165152009-06-30 Doug Evans <dje@google.com>
16516 Pierre Muller <muller@ics.u-strasbg.fr>
16517
16518 Add h/w watchpoint support to x86-linux, win32-i386.
16519 * Makefile.in (SFILES): Add i386-low.c
16520 (i386_low_h): Define.
16521 (i386-low.o): Add dependencies.
16522 (linux-x86-low.o): Add i386-low.h dependency.
16523 (win32-i386-low.o): Ditto.
16524 * i386-low.c: New file.
16525 * i386-low.h: New file.
16526 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16527 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16528 * linux-low.c (linux_add_process): Initialize arch_private.
16529 (linux_remove_process): Free arch_private.
16530 (add_lwp): Initialize arch_private.
16531 (delete_lwp): Free arch_private.
16532 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16533 provided.
16534 * linux-low.h (process_info_private): New member arch_private.
16535 (lwp_info): New member arch_private.
16536 (linux_target_ops): New members new_process, new_thread,
16537 prepare_to_resume.
16538 (ptid_of): New macro.
16539 * linux-x86-low.c: Include stddef.h, i386-low.h.
16540 (arch_process_info): New struct.
16541 (arch_lwp_info): New struct.
16542 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16543 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16544 (i386_dr_low_get_status): New function.
16545 (x86_insert_point, x86_remove_point): New functions.
16546 (x86_stopped_by_watchpoint): New function.
16547 (x86_stopped_data_address): New function.
16548 (x86_linux_new_process, x86_linux_new_thread): New functions.
16549 (x86_linux_prepare_to_resume): New function.
16550 (the_low_target): Add entries for insert_point, remove_point,
16551 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16552 prepare_to_resume.
16553 * server.c (debug_hw_points): New global.
16554 (monitor_show_help): Document set debug-hw-points.
16555 (handle_query): Process "set debug-hw-points".
16556 * server.h (debug_hw_points): Declare.
16557 (paddress): Declare.
16558 * utils.c (NUMCELLS, CELLSIZE): New macros.
16559 (get_sell, xsnprintf, paddress): New functions.
16560 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16561 remove_point, stopped_by_watchpoint, stopped_data_address.
16562 * win32-i386-low.c: Include i386-low.h.
16563 (debug_reg_state): Replaces dr.
16564 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16565 (i386_dr_low_get_status): New function.
16566 (i386_insert_point, i386_remove_point): New functions.
16567 (i386_stopped_by_watchpoint): New function.
16568 (i386_stopped_data_address): New function.
16569 (i386_initial_stuff): Update.
16570 (get_thread_context,set_thread_context,i386_thread_added): Update.
16571 (the_low_target): Add entries for insert_point,
16572 remove_point, stopped_by_watchpoint, stopped_data_address.
16573 * win32-low.c (win32_insert_watchpoint): New function.
16574 (win32_remove_watchpoint): New function.
16575 (win32_stopped_by_watchpoint): New function.
16576 (win32_stopped_data_address): New function.
16577 (win32_target_ops): Add entries for insert_watchpoint,
16578 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16579 * win32-low.h (win32_target_ops): New members insert_point,
16580 remove_point, stopped_by_watchpoint, stopped_data_address.
16581
d993e290
PA
165822009-06-25 Pedro Alves <pedro@codesourcery.com>
16583
16584 * server.c (process_serial_event): Re-return unsupported, not
16585 error, if the type isn't recognized. Re-allow supporting only
16586 insert or remove packets. Also call require_running for
16587 breakpoints. Add missing break statement to default case. Tidy.
16588 * target.h (struct target_ops): Rename insert_watchpoint to
16589 insert_point, and remove_watchpoint to remove_point.
16590
16591 * linux-low.h (struct linux_target_ops): Likewise.
16592 * linux-low.c (linux_insert_watchpoint): Rename to ...
16593 (linux_insert_point): ... this. Adjust.
16594 (linux_remove_watchpoint): Rename to ...
16595 (linux_remove_point): ... this. Adjust.
16596 (linux_target_ops): Adjust.
16597 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16598 (cris_insert_point): ... this.
16599 (cris_remove_watchpoint): Rename to ...
16600 (cris_remove_point): ... this.
16601 (the_low_target): Adjust.
16602
0f54c268
PM
166032009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16604
16605 * server.c (handle_v_kill): Pass signal_pid to
16606 kill_inferior if multi_process is zero.
16607
c6314022
AR
166082009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16609
16610 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16611 * target.h (target_ops): Comment for *_watchpoint to make it clear
16612 the functions can get types '0' and '1'.
16613
4463ce24
AR
166142009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16615
16616 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16617 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16618 * regcache.c (get_regcache): Likewise.
16619 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16620 * win32-low.c (child_fetch_inferior_registers): Remove check for
16621 regno 0.
16622
cf8fd78b
PA
166232009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16624 Pedro Alves <pedro@codesourcery.com>
16625
16626 * target.h (struct target_ops) <supports_multi_process>: New
16627 callback.
16628 (target_supports_multi_process): New.
16629 * server.c (handle_query): Even if GDB reports support, only
16630 enable multi-process if the target also supports it. Report
16631 multi-process support only if the target backend supports it.
16632 * linux-low.c (linux_supports_multi_process): New function.
16633 (linux_target_ops): Install it as target_supports_multi_process
16634 callback.
16635
47c0c975
DE
166362009-05-24 Doug Evans <dje@google.com>
16637
e09875d4
DE
16638 Global renaming of find_thread_pid to find_thread_ptid.
16639 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16640 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16641 All callers updated.
16642
e27d73f6
DE
16643 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16644 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16645 directly.
16646
47c0c975
DE
16647 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16648 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16649 (linux_resume_one_lwp): Ditto.
16650
2acc282a
DE
166512009-05-23 Doug Evans <dje@google.com>
16652
16653 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16654 from struct inferior_list_entry * to struct lwp_info *.
16655 All callers updated.
16656
9f1036c1
DE
166572009-05-13 Doug Evans <dje@google.com>
16658
16659 * linux-x86-low.c: Don't include assert.h.
16660 (x86_siginfo_fixup): Use fatal, not assert.
16661 (x86_arch_setup): Fix comment.
16662
d0722149
DE
166632009-05-12 Doug Evans <dje@google.com>
16664
16665 Biarch support for i386/amd64 gdbserver.
16666 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16667 Add linux-x86-low.c.
16668 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16669 (linux-x86-low.o): Add.
16670 * linux-x86-64-low.c: Delete.
16671 * linux-i386-low.c: Delete.
16672 * linux-x86-low.c: New file.
16673 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16674 linux-x86-low.o.
16675 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16676 linux-x86-low.o.
16677 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16678 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16679 (linux_child_pid_to_exec_file): New function.
16680 (elf_64_header_p, elf_64_file_p): New functions.
16681 (siginfo_fixup): New function.
16682 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16683 give target a chance to convert layout.
16684 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16685 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16686
fdeb2a12
DE
166872009-05-07 Doug Evans <dje@google.com>
16688
16689 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16690 (regsets_store_inferior_registers): Ditto.
16691
a6dbe5df
PA
166922009-05-06 Pedro Alves <pedro@codesourcery.com>
16693
16694 PR server/10048
16695
16696 * linux-low.c (must_set_ptrace_flags): Delete.
16697 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16698 of the global.
16699 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16700 `lwp->must_set_ptrace_flags' instead.
ba42693b 16701 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
16702 (linux_wait_1): ... not here.
16703
5091eb23
DE
167042009-04-30 Doug Evans <dje@google.com>
16705
9f767825
DE
16706 * inferiors.c (started_inferior_callback): New function.
16707 (attached_inferior_callback): New function.
16708 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16709 * server.c (print_started_pid, print_attached_pid): New functions.
16710 (detach_or_kill_for_exit): New function.
16711 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16712 * server.h (have_started_inferiors_p): Declare.
16713 (have_attached_inferiors_p): Declare.
16714
5091eb23
DE
16715 * inferiors.c (remove_process): Fix memory leak, free process.
16716 * linux-low.c (linux_remove_process): New function.
16717 (linux_kill): Call it instead of remove_process.
16718 (linux_detach, linux_wait_1): Ditto.
16719
155c8968
PA
167202009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16721
16722 * configure.srv: Add x86 Windows CE target.
16723
7fe519cb
UW
167242009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16725
16726 * inferiors.c (get_thread_process): Make global.
16727 * server.h (get_thread_process): Add prototype.
16728 * thread-db.c (find_one_thread): Use get_thread_process
16729 instead of current_process.
16730 (thread_db_get_tls_address): Do not crash if called when
16731 thread layer is not yet initialized.
16732
5472f405
UW
167332009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16734
16735 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16736 * spu-low.c (current_tid): Rename to ...
16737 (current_ptid): ... this.
16738 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16739 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16740 ptid_get_lwp (current_ptid) instead of current_tid.
16741 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16742 instead of current_tid. Use find_process_pid to verify pid
16743 argument is valid. Pass proper argument to remove_process.
16744 (spu_thread_alive): Compare current_ptid instead of current_tid.
16745 (spu_resume): Likewise.
16746
55ac2b99
PA
167472009-04-02 Pedro Alves <pedro@codesourcery.com>
16748
16749 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16750 variable.
16751
95954743
PA
167522009-04-01 Pedro Alves <pedro@codesourcery.com>
16753
16754 Implement the multiprocess extensions, and add linux multiprocess
16755 support.
16756
16757 * server.h (ULONGEST): Declare.
16758 (struct ptid, ptid_t): New.
16759 (minus_one_ptid, null_ptid): Declare.
16760 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16761 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16762 (struct inferior_list_entry): Change `id' type from unsigned from
16763 to ptid_t.
16764 (struct sym_cache, struct breakpoint, struct
16765 process_info_private): Forward declare.
16766 (struct process_info): Declare.
16767 (current_process): Declare.
16768 (all_processes): Declare.
16769 (initialize_inferiors): Declare.
16770 (add_thread): Adjust to use ptid_t.
16771 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16772 (add_process, remove_process, find_thread_pid): Declare.
16773 (find_inferior_id): Adjust to use ptid_t.
16774 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16775 (multi_process): Declare.
16776 (push_event): Adjust to use ptid_t.
16777 (read_ptid, write_ptid): Declare.
16778 (prepare_resume_reply): Adjust to use ptid_t.
16779 (clear_symbol_cache): Declare.
16780 * inferiors.c (all_processes): New.
16781 (null_ptid, minus_one_ptid): New.
16782 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16783 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16784 (add_thread): Change unsigned long to ptid. Remove gdb_id
16785 parameter. Adjust.
16786 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16787 (gdb_id_to_thread): Rename to ...
16788 (find_thread_pid): ... this. Change unsigned long to ptid.
16789 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16790 (loaded_dll, pull_pid_from_list): Adjust.
16791 (add_process, remove_process, find_process_pid)
16792 (get_thread_process, current_process, initialize_inferiors): New.
16793 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16794 (struct target_waitstatus) <related_pid>: Ditto.
16795 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16796 return type to int.
16797 (struct target_ops) <join>: Add `pid' argument.
16798 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16799 (struct target_ops) <wait>: Add `ptid' field. Change return type
16800 to ptid.
16801 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16802 (mywait): Add `ptid' argument. Change return type to ptid_t.
16803 (target_pid_to_str): Declare.
16804 * target.c (set_desired_inferior): Adjust to use ptids.
16805 (mywait): Add new `ptid' argument. Adjust.
16806 (target_pid_to_str): New.
16807 * mem-break.h (free_all_breakpoints): Declare.
16808 * mem-break.c (breakpoints): Delelete.
16809 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16810 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16811 to use per-process breakpoint list.
16812 (free_all_breakpoints): New.
16813 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16814 (symbol_cache, all_symbols_looked_up): Delete.
16815 (hexchars): New.
16816 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16817 read_ptid): New.
16818 (prepare_resume_reply): Change ptid argument's type from unsigned
16819 long to ptid_t. Adjust. Implement W;process and X;process.
16820 (free_sym_cache, clear_symbol_cache): New.
16821 (look_up_one_symbol): Adjust to per-process symbol cache. *
16822 * server.c (cont_thread, general_thread, step_thread): Change type
16823 to ptid_t.
16824 (attached): Delete.
16825 (multi_process): New.
16826 (last_ptid): Change type to ptid_t.
16827 (struct vstop_notif) <ptid>: Change type to ptid_t.
16828 (queue_stop_reply, push_event): Change `ptid' argument's type to
16829 ptid_t.
16830 (discard_queued_stop_replies): Add `pid' argument.
16831 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16832 changes. Don't reference the `attached' global.
16833 (attach_inferior): Adjust to mywait interface changes.
16834 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16835 features. Handle and report "multiprocess+". Handle
16836 "qAttached:PID".
16837 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16838 changes.
16839 (handle_v_kill): New.
16840 (handle_v_stopped): Adjust to use target_pid_to_str.
16841 (handle_v_requests): Allow multiple attaches and runs when
16842 multiprocess extensions are in effect. Handle "vKill".
16843 (myresume): Adjust to use ptids.
16844 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16845 (handle_status): Adjust to discard_queued_stop_replies interface
16846 change.
16847 (first_thread_of, kill_inferior_callback)
16848 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16849 (main): Call initialize_inferiors. Adjust to use ptids, killing
16850 and detaching from all inferiors. Handle multiprocess packet
16851 variants.
16852 * linux-low.h: Include gdb_proc_service.h.
16853 (struct process_info_private): New.
16854 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16855 <lwpid_of>: Use ptid_get_lwp.
16856 (get_lwp_thread): Adjust.
16857 (struct lwp_info): Add `dead' member.
16858 (find_lwp_pid): Declare.
16859 * linux-low.c (thread_db_active): Delete.
16860 (new_inferior): Adjust comment.
16861 (inferior_pid): Delete.
16862 (linux_add_process): New.
16863 (handle_extended_wait): Adjust.
16864 (add_lwp): Change unsigned long to ptid.
16865 (linux_create_inferior): Add process to processes table. Adjust
16866 to use ptids. Don't set new_inferior here.
16867 (linux_attach_lwp): Rename to ...
16868 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16869 it. Adjust to use ptids.
16870 (linux_attach_lwp): New.
16871 (linux_attach): Add process to processes table. Don't set
16872 new_inferior here.
16873 (struct counter): New.
16874 (second_thread_of_pid_p, last_thread_of_process_p): New.
16875 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16876 multiple processes.
16877 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16878 processes. Remove process from process table.
16879 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16880 to multiple processes.
16881 (any_thread_of): New.
16882 (linux_detach): Add `pid' argument, and handle it. Remove process
16883 from processes table.
16884 (linux_join): Add `pid' argument. Handle it.
16885 (linux_thread_alive): Change unsighed long argument to ptid_t.
16886 Consider dead lwps as not being alive.
16887 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16888 threads we're not interested in.
16889 (same_lwp, find_lwp_pid): New.
16890 (linux_wait_for_lwp): Change `pid' argument's type from int to
16891 ptid_t. Adjust.
16892 (linux_wait_for_event): Rename to ...
16893 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16894 from int to ptid_t. Adjust.
16895 (linux_wait_for_event): New.
16896 (linux_wait_1): Add `ptid' argument. Change return type to
16897 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16898 that exit from the process table.
16899 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16900 Adjust.
16901 (mark_lwp_dead): New.
16902 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16903 stopping all threads, mark its main lwp as dead.
16904 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16905 ptids.
16906 (fetch_register, usr_store_inferior_registers)
16907 (regsets_fetch_inferior_registers)
16908 (regsets_store_inferior_registers, linux_read_memory)
16909 (linux_write_memory): Inline `inferior_pid'.
16910 (linux_look_up_symbols): Adjust to use per-process
16911 `thread_db_active'.
16912 (linux_request_interrupt): Adjust to use ptids.
16913 (linux_read_auxv): Inline `inferior_pid'.
16914 (initialize_low): Don't reference thread_db_active.
16915 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16916 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16917 (ps_getpid): Return the pid of the current inferior.
16918 * thread-db.c (proc_handle, thread_agent): Delete.
16919 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16920 per-process data.
16921 (find_one_thread): Change argument type to ptid_t. Adjust to
16922 per-process data.
16923 (maybe_attach_thread): Adjust to per-process data and ptids.
16924 (thread_db_find_new_threads): Ditto.
16925 (thread_db_init): Ditto.
16926 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16927 processes table. Adjust to use ptids.
16928 (spu_kill, spu_detach): Adjust interface. Remove process from
16929 processes table.
16930 (spu_join, spu_thread_alive): Adjust interface.
16931 (spu_wait): Adjust interface. Remove process from processes
16932 table. Adjust to use ptids.
16933 * win32-low.c (current_inferior_tid): Delete.
16934 (current_inferior_ptid): New.
16935 (debug_event_ptid): New.
16936 (thread_rec): Take a ptid. Adjust.
16937 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16938 (child_delete_thread): Ditto.
16939 (do_initial_child_stuff): Add `attached' argument. Add process to
16940 processes table.
16941 (child_fetch_inferior_registers, child_store_inferior_registers):
16942 Adjust.
16943 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16944 (win32_attach): Pass 1 to do_initial_child_stuff.
16945 (win32_kill): Adjust interface. Remove process from processes
16946 table.
16947 (win32_detach): Ditto.
16948 (win32_join): Adjust interface.
16949 (win32_thread_alive): Take a ptid.
16950 (win32_resume): Adjust to use ptids.
16951 (get_child_debug_event): Ditto.
16952 (win32_wait): Adjust interface. Remove exiting process from
16953 processes table.
16954
bd99dc85
PA
169552009-04-01 Pedro Alves <pedro@codesourcery.com>
16956
16957 Non-stop mode support.
16958
16959 * server.h (non_stop): Declare.
16960 (gdb_client_data, handler_func): Declare.
16961 (delete_file_handler, add_file_handler, start_event_loop):
16962 Declare.
16963 (handle_serial_event, handle_target_event, push_event)
16964 (putpkt_notif): Declare.
16965 * target.h (enum resume_kind): New.
16966 (struct thread_resume): Replace `step' field by `kind' field.
16967 (TARGET_WNOHANG): Define.
16968 (struct target_ops) <wait>: Add `options' argument.
16969 <supports_non_stop, async, start_non_stop>: New fields.
16970 (target_supports_non_stop, target_async): New.
16971 (start_non_stop): Declare.
16972 (mywait): Add `options' argument.
16973 * target.c (mywait): Add `options' argument. Print child exit
16974 notifications here.
16975 (start_non_stop): New.
16976 * server.c (non_stop, own_buf, mem_buf): New globals.
16977 (struct vstop_notif): New.
16978 (notif_queue): New global.
16979 (queue_stop_reply, push_event, discard_queued_stop_replies)
16980 (send_next_stop_reply): New.
16981 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16982 interface changes.
16983 (attach_inferior): In non-stop mode, don't wait for the target
16984 here.
16985 (handle_general_set): Handle QNonStop.
16986 (handle_query): When handling qC, return the current general
16987 thread, instead of the first thread of the list.
16988 (handle_query): If the backend supports non-stop mode, include
16989 QNonStop+ in the qSupported query response.
16990 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16991 and non-stop mode.
16992 (handle_v_attach, handle_v_run): Handle non-stop mode.
16993 (handle_v_stopped): New.
16994 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16995 (myresume): Adjust to use resume_kind. Handle non-stop.
16996 (queue_stop_reply_callback): New.
16997 (handle_status): Handle non-stop mode.
16998 (main): Clear non_stop flag on reconnection. Use the event-loop.
16999 Refactor serial protocol handling from here ...
17000 (process_serial_event): ... to this new function. When GDB
17001 selects any thread, select one here. In non-stop mode, wait until
17002 GDB acks all pending events before exiting.
17003 (handle_serial_event, handle_target_event): New.
17004 * remote-utils.c (remote_open): Install remote_desc in the event
17005 loop.
17006 (remote_close): Remove remote_desc from the event loop.
17007 (putpkt_binary): Rename to...
17008 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17009 (putpkt_binary): New as wrapper around putpkt_binary_1.
17010 (putpkt_notif): New.
17011 (prepare_resume_reply): In non-stop mode, don't change the
17012 general_thread.
17013 * event-loop.c: New.
17014 * Makefile.in (OBJ): Add event-loop.o.
17015 (event-loop.o): New rule.
17016
17017 * linux-low.h (pid_of): Moved here.
17018 (lwpid_of): New.
17019 (get_lwp_thread): Use lwpid_of.
17020 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17021 * linux-low.c (pid_of): Delete.
17022 (inferior_pid): Use lwpid_of.
17023 (linux_event_pipe): New.
17024 (target_is_async_p): New.
17025 (delete_lwp): New.
17026 (handle_extended_wait): Use lwpid_of.
17027 (add_lwp): Don't set lwpid field.
17028 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17029 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17030 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17031 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17032 first. Adjust to linux_wait_for_event interface changes. Use
17033 lwpid_of.
17034 (linux_detach): Don't delete the main lwp here.
17035 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17036 (status_pending_p): Don't consider explicitly suspended lwps.
17037 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17038 pointer. Add OPTIONS argument. Change return type to int. Use
17039 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17040 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17041 pointer. Add status pointer argument. Return a pid instead of a
17042 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17043 changes. In non-stop mode, don't switch to a random thread.
17044 (linux_wait): Rename to...
17045 (linux_wait_1): ... this. Add target_options argument, and handle
17046 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17047 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17048 clean exit and signal exit code. Don't stop all threads in
17049 non-stop mode. In all-stop mode, only stop all threads when
17050 reporting a stop to GDB. Handle explicit thread stop requests.
17051 (async_file_flush, async_file_mark): New.
17052 (linux_wait): New.
17053 (send_sigstop): Use lwpid_of.
17054 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17055 interface changes. In non-stop mode, don't switch to a random
17056 thread.
17057 (linux_resume_one_lwp): Use lwpid_of.
17058 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17059 (linux_resume_one_thread): ... this. Handle resume_stop. In
17060 non-stop mode, don't look for pending flag in all threads.
17061 (resume_status_pending_p): Don't consider explicitly suspended
17062 threads.
17063 (my_waitpid): Reimplement. Emulate __WALL.
17064 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17065 Use lwpid_of.
17066 (sigchld_handler, linux_supports_non_stop, linux_async)
17067 (linux_start_non_stop): New.
17068 (linux_target_ops): Register linux_supports_non_stop, linux_async
17069 and linux_start_non_stop.
17070 (initialize_low): Install SIGCHLD handler.
17071 * thread-db.c (thread_db_create_event, find_one_thread)
17072 (thread_db_get_tls_address): Use lwpid_of.
17073 * win32-low.c (win32_detach): Adjust to use resume_kind.
17074 (win32_wait): Add `options' argument.
17075 * spu-low.c (spu_resume): Adjust to use resume_kind.
17076 (spu_wait): Add `options' argument.
17077
5b1c542e
PA
170782009-04-01 Pedro Alves <pedro@codesourcery.com>
17079
17080 Decouple target code from remote protocol.
17081
17082 * target.h (enum target_waitkind): New.
17083 (struct target_waitstatus): New.
17084 (struct target_ops) <wait>: Return an unsigned long. Take a
17085 target_waitstatus pointer instead of a char pointer.
17086 (mywait): Likewise.
17087 * target.c (mywait): Change prototype to return an unsigned long.
17088 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17089 * server.h (thread_from_wait, old_thread_from_wait): Delete
17090 declarations.
17091 (prepare_resume_reply): Change prototype to take a
17092 target_waitstatus.
17093 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17094 (last_status, last_ptid): New.
17095 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17096 pid instead of a signal.
17097 (attach_inferior): Remove "status" and "signal" parameters.
17098 Adjust.
17099 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17100 not as an address.
17101 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17102 (handle_v_requests, myresume): Remove "status" and "signal"
17103 parameters. Adjust.
17104 (handle_status): New.
17105 (main): Delete local `status'. Adjust.
17106 * remote-utils.c: Include target.h.
17107 (prepare_resume_reply): Change prototype to take a
17108 target_waitstatus. Adjust.
17109
17110 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17111 interface.
17112 * spu-low.c (spu_wait): Adjust.
17113 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17114 Delete.
17115 (win32_wait): Adjust.
17116
2bd7c093
PA
171172009-04-01 Pedro Alves <pedro@codesourcery.com>
17118
17119 * target.h (struct thread_resume): Delete leave_stopped member.
17120 (struct target_ops): Add a `n' argument to the `resume' callback.
17121 * server.c (start_inferior): Adjust.
17122 (handle_v_cont, myresume): Adjust.
17123 * linux-low.c (check_removed_breakpoint): Adjust to resume
17124 interface change, and to removed leave_stopped field.
17125 (resume_ptr): Delete.
17126 (struct thread_resume_array): New.
17127 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17128 resume interface change.
17129 (linux_continue_one_thread, linux_queue_one_thread)
17130 (resume_status_pending_p): Check if the resume field is NULL
17131 instead of checking the leave_stopped member.
17132 (linux_resume): Adjust to the target resume interface change.
17133 * spu-low.c (spu_resume): Adjust to the target resume interface
17134 change.
17135 * win32-low.c (win32_detach, win32_resume): Ditto.
17136
c35fafde
PA
171372009-04-01 Pedro Alves <pedro@codesourcery.com>
17138
17139 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17140 flag.
17141 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17142 pending.
17143 (linux_continue_one_thread): Only preserve the stepping flag if
17144 there's a pending breakpoint.
17145
0a59d50b
PA
171462009-03-31 Pedro Alves <pedro@codesourcery.com>
17147
17148 * server.c (main): After the inferior having exited, call
17149 remote_close before exiting gdbserver.
17150
f04c6d38
TJB
171512009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17152
17153 Fix size of FPSCR in Power 7 processors.
17154 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17155 (PPC_FEATURE_HAS_DFP): New #define.
17156 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17157 size of the FPSCR.
17158
78e5cee6
PA
171592009-03-23 Pedro Alves <pedro@codesourcery.com>
17160
17161 * server.c (handle_query) Whitespace and formatting.
17162
1b3f6016
PA
171632009-03-22 Pedro Alves <pedro@codesourcery.com>
17164
17165 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17166 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17167 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17168 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17169 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17170 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17171 Makefile.in, configure.ac: Fix whitespace throughout.
17172 * configure: Regenerate.
17173
a07b2135
PA
171742009-03-22 Pedro Alves <pedro@codesourcery.com>
17175
17176 * inferiors.c (find_inferior): Make it safe for the callback
17177 function to delete the currently iterated inferior.
17178
67cc2626
PA
171792009-03-22 Pedro Alves <pedro@codesourcery.com>
17180
17181 * Makefile.in (linuw_low_h): Move higher.
17182 (thread-db.o): Depend on $(linux_low_h).
17183
54a0b537
PA
171842009-03-17 Pedro Alves <pedro@codesourcery.com>
17185
17186 Rename "process" to "lwp" throughout.
17187
17188 * linux-low.c (all_processes): Rename to...
17189 (all_lwps): ... this.
17190 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17191 (add_process): Rename to ...
17192 (add_lwp): ... this. Adjust.
17193 (linux_create_inferior): Adjust.
17194 (linux_attach_lwp): Adjust.
17195 (linux_attach): Adjust.
17196 (linux_kill_one_process): Rename to ...
17197 (linux_kill_one_lwp): ... this. Adjust.
17198 (linux_kill): Adjust.
17199 (linux_detach_one_process): Rename to ...
17200 (linux_detach_one_lwp): ... this. Adjust.
17201 (linux_detach): Adjust.
17202 (check_removed_breakpoint): Adjust.
17203 (status_pending_p): Adjust.
17204 (linux_wait_for_process): Rename to ...
17205 (linux_wait_for_lwp): ... this. Adjust.
17206 (linux_wait_for_event): Adjust.
17207 (send_sigstop): Adjust.
17208 (wait_for_sigstop): Adjust.
17209 (stop_all_processes): Rename to ...
17210 (stop_all_lwps): ... this.
17211 (linux_resume_one_process): Rename to ...
17212 (linux_resume_one_lwp): ... this. Adjust.
17213 (linux_set_resume_request, linux_continue_one_thread)
17214 (linux_queue_one_thread, resume_status_pending_p)
17215 (usr_store_inferior_registers, regsets_store_inferior_registers)
17216 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17217 Adjust.
17218 * linux-low.h (get_process): Rename to ...
17219 (get_lwp): ... this. Adjust.
17220 (get_thread_process): Rename to ...
17221 (get_thread_lwp): ... this. Adjust.
17222 (get_process_thread): Rename to ...
17223 (get_lwp_thread): ... this. Adjust.
17224 (struct process_info): Rename to ...
17225 (struct lwp_info): ... this.
17226 (all_processes): Rename to ...
17227 (all_lwps): ... this.
17228 * proc-service.c (ps_lgetregs): Adjust.
17229 * thread-db.c (thread_db_create_event, find_one_thread)
17230 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17231
0b16c5cf
PA
172322009-03-14 Pedro Alves <pedro@codesourcery.com>
17233
17234 * server.c (handle_query): Handle "qAttached".
17235
32de4b9d
NS
172362009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17237
17238 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17239 GPLv3, update license URL.
17240
2aecd87f
DE
172412009-03-01 Doug Evans <dje@google.com>
17242
93efd302 17243 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
17244 (server_h): Add gdb_signals.h.
17245 (signals.o): Update.
17246 * server.h (target_signal_from_host,target_signal_to_host_p)
17247 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17248
86b1f9c5
PM
172492009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17250
17251 * remote-utils.c (getpkt): Also generate remote-debug
17252 information if noack_mode is set.
17253
4aa995e1
PA
172542009-02-06 Pedro Alves <pedro@codesourcery.com>
17255
17256 * server.c (handle_query): Report qXfer:siginfo:read and
17257 qXfer:siginfo:write as supported and handle them.
17258 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17259 * linux-low.c (linux_xfer_siginfo): New.
17260 (linux_target_ops): Set it.
17261
62709adf
PA
172622009-01-26 Pedro Alves <pedro@codesourcery.com>
17263
17264 * server.c (gdbserver_usage): Mention --remote-debug.
17265 (main): Accept '--remote-debug' switch.
17266
aef93bd7
DE
172672009-01-18 Doug Evans <dje@google.com>
17268
17269 * regcache.c (new_register_cache): No need to check result of xcalloc.
17270 * server.c (handle_search_memory): Back out calls to xmalloc,
17271 result is checked and error is returned to user upon failure.
17272 (handle_query): Ditto. Add more checks for result of malloc.
17273 (handle_v_cont): Check result of malloc, report error back to
17274 user upon failure.
17275 (handle_v_run): Ditto. Call freeargv.
17276 * server.h (freeargv): Declare.
17277 * utils.c (freeargv): New fn.
17278
54363045
DE
172792009-01-15 Doug Evans <dje@google.com>
17280
f626972c
DE
17281 * gdbreplay.c (perror_with_name): Make arg const char *.
17282 * server.h (target_signal_to_name): Make return type const char *.
0842e787 17283 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 17284 * utils.c (perror_with_name): Make arg const char *.
54363045 17285
18aae699
PA
172862009-01-14 Pedro Alves <pedro@codesourcery.com>
17287
17288 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17289 when handling a EXIT_PROCESS_DEBUG_EVENT.
17290
ff703abe
JB
172912009-01-06 Joel Brobecker <brobecker@adacore.com>
17292
17293 * gdbreplay.c (gdbreplay_version): Update copyright year.
17294 * server.c (gdbserver_version): Likewise.
17295
f21cc1a2 172962009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
17297
17298 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 17299 (handle_extended_wait): Improve comment.
0e21c1ec 17300
bca929d3
DE
173012008-12-13 Doug Evans <dje@google.com>
17302
17303 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17304 * server.h (ATTR_MALLOC): New macro.
17305 (xmalloc,xcalloc,xstrdup): Declare.
17306 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17307 * inferiors.c: Ditto.
17308 * linux-low.c: Ditto.
17309 * mem-break.c: Ditto.
17310 * regcache.c: Ditto.
17311 * remote-utils.c: Ditto.
17312 * server.c: Ditto.
17313 * target.c: Ditto.
17314 * win32-low.c: Ditto.
17315
97438e3f
DE
173162008-12-12 Doug Evans <dje@google.com>
17317
896c7fbb
DE
17318 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17319 in debugging printf.
17320
97438e3f
DE
17321 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17322
e3b886f8
DE
173232008-12-09 Doug Evans <dje@google.com>
17324
17325 * linux-low.h (struct process_info): Delete member tid, unused.
17326 * thread-db.c (find_one_thread): Update.
17327 (maybe_attach_thread): Update.
17328
07e059b5
VP
173292008-12-02 Pedro Alves <pedro@codesourcery.com>
17330
889bf7c5
PA
17331 * target.h (struct target_ops): Add qxfer_osdata member.
17332 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17333 and dirent.h.
17334 (linux_qxfer_osdata): New functions.
17335 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17336 callback.
17337 * server.c (handle_query): Handle "qXfer:osdata:read:".
17338 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17339 (buffer_xml_printf): New functions.
17340 * server.h (struct buffer): New.
17341 (buffer_grow_str, buffer_grow_str0): New macros.
17342 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17343 (buffer_xml_printf): Declare.
07e059b5 17344
4cab47ab
DE
173452008-11-24 Doug Evans <dje@google.com>
17346
17347 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17348
f142445f
DJ
173492008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17350
17351 * server.c (handle_v_run): Always use the supplied argument list.
17352
d0107bb6 173532008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 17354
d0107bb6
BW
17355 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17356 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 17357
2c4ad781
TJB
173582008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17359
17360 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17361 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17362 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17363 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17364 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17365 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17366 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17367 XML target descriptions.
17368 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17369 when inferior is running on an ISA 2.05 or later processor. Add
17370 special case to return offset for full 64-bit slot of FPSCR when
17371 in 32-bits.
17372
dfb64f85
DJ
173732008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17374
17375 * Makefile.in (SFILES, clean): Added sparc64 files.
17376 (reg-sparc64.o, reg-sparc64.c): New.
17377 * configure.srv (sparc*-*-linux*): New configuration.
17378 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17379 syscall arguments for SPARC.
17380 (regsets_store_inferior_registers): Likewise.
17381 * linux-sparc-low.c: New file.
17382
66b6e1dd
DE
173832008-10-21 Doug Evans <dje@google.com>
17384
17385 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17386 (READLINE_DIR,READLINE_DEP): Delete.
17387 (INTERNAL_CFLAGS): Update.
17388 (LINTFLAGS): Update.
17389
9b710a42
PA
173902008-10-10 Pedro Alves <pedro@codesourcery.com>
17391
17392 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17393 whole argv from the last run, not just argv[0].
17394
5822d809
PA
173952008-09-08 Pedro Alves <pedro@codesourcery.com>
17396
17397 * regcache.c (new_register_cache): Return NULL if the register
17398 cache size isn't known yet.
17399 (free_register_cache): Avoid dereferencing a NULL regcache.
17400
74aac56f
DJ
174012008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17402
17403 * configure.srv: Merge MIPS and MIPS64.
17404
400b20f5
MR
174052008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17406
17407 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17408
677c5bb1
LM
174092008-08-18 Luis Machado <luisgpm@br.ibm.com>
17410
17411 * Makefile.in: Add required vsx dependencies.
17412
17413 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17414 Declare init_registers_powerpc_vsx32l.
17415 Declare init_registers_powerpc_vsx64l.
17416 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17417 (ppc_arch_setup): Check for VSX in hwcap.
17418 (ppc_fill_vsxregset): New function.
17419 (ppc_store_vsxregset): New function.
17420 Add new VSX entry in regset_info target_regsets.
17421
17422 * configure.srv: Add new VSX dependencies.
17423
a6f3e723
SL
174242008-08-12 Pedro Alves <pedro@codesourcery.com>
17425
17426 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17427 (remote_open): Set or clear transport_is_reliable.
17428 (putpkt_binary): Don't expect acks in noack mode.
17429 (getpkt): Don't send ack/nac in noack mode.
17430 * server.c (handle_general_set): Handle QStartNoAckMode.
17431 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17432 qSupported.
17433 (main): Reset noack_mode on every connection.
17434 * server.h (noack_mode): Declare.
17435
a417dc56
RW
174362008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17437
17438 * Makefile.in (GDBREPLAY_OBS): New variable.
17439 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17440
3221518c
UW
174412008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17442 Daniel Jacobowitz <dan@codesourcery.com>
17443
17444 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17445 (usr_store_inferior_registers): Likewise.
17446 (regsets_store_inferior_registers): Likewise.
17447
ec56be1b
PA
174482008-07-31 Rolf Jansen <rj@surtec.com>
17449 Pedro Alves <pedro@codesourcery.com>
17450
17451 * configure.ac: Check for memmem declaration.
17452 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17453 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17454 (disable_packet_qfThreadInfo): Unconditionally compile.
17455 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17456 * configure, config.in: Regenerate.
17457
2fe5e3ff
DE
174582008-07-28 Doug Kwan <dougkwan@google.com>
17459
17460 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17461 (linux_write_memory): Remove declaration of errno.
17462
836acd6d
UW
174632008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17464
17465 * linux-low.c (handle_extended_wait): Do not use "status"
17466 variable uninitialized.
17467
aeba519e
PA
174682008-07-07 Pedro Alves <pedro@codesourcery.com>
17469
17470 * server.c (handle_v_attach): Inhibit reporting dll changes.
17471
db42f210
PA
174722008-06-27 Pedro Alves <pedro@codesourcery.com>
17473
17474 * remote-utils.c (prepare_resume_reply): If requested, don't
17475 output "thread:TID" in the T stop reply.
17476
17477 * server.c (disable_packet_vCont, disable_packet_Tthread)
17478 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17479 (handle_query): If requested, disable support for qC, qfThreadInfo
17480 and qsThreadInfo.
17481 (handle_v_requests): If requested, disable support for vCont.
17482 (gdbserver_show_disableable): New.
17483 (main): Handle --disable-packet and --disable-packet=LIST.
17484
17485 * server.h (disable_packet_vCont, disable_packet_Tthread)
17486 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17487
8e4c5421
CD
174882008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17489
17490 * server.c (gdbserver_usage): Mention --version.
17491
6e23a804
DJ
174922008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17493
17494 * Makefile.in (gdbreplay.o): New rule.
17495
90aa6a40
JM
174962008-06-06 Joseph Myers <joseph@codesourcery.com>
17497
17498 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17499 message, not gdbserver.
17500
c16158bc 175012008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
17502 Nathan Sidwell <nathan@codesourcery.com>
17503 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
17504
17505 * acinclude.m4: Include ../../config/acx.m4.
17506 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17507 * configure, config.in: Regenerate.
17508 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17509 * server.c (gdbserver_version): Print PKGVERSION.
17510 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17511 (main): Adjust gdbserver_usage calls.
17512 * gdbreplay.c (version, host_name): Add declarations.
17513 (gdbreplay_version, gdbreplay_usage): New.
17514 (main): Accept --version and --help options.
17515
aeb75bf5
DJ
175162008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17517
17518 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17519 (arm_breakpoint_at): Handle Thumb.
17520 (the_low_target): Add comment.
17521
76b233dd
UW
175222008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17523
17524 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17525
08388c79
DE
175262008-05-09 Doug Evans <dje@google.com>
17527
a3c83fae
DE
17528 * server.h (decode_search_memory_packet): Declare.
17529 * remote-utils.c (decode_search_memory_packet): New fn.
17530 * server.c (handle_search_memory_1): New fn.
08388c79
DE
17531 (handle_search_memory): New fn.
17532 (handle_query): Process qSearch:memory packets.
17533
bb9c3d36
UW
175342008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17535
17536 * regcache.c (registers_length): Remove.
17537 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17538 full register packet.
17539 * regcache.h (registers_length): Remove prototype.
17540 * server.h (PBUFSIZ): Define to 16384.
17541
7284e1be
UW
175422008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17543
17544 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17545 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17546 powerpc-64l.o, and powerpc-altivec64l.o.
17547 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17548 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17549 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17550 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17551 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17552 to srv_xmlfiles.
17553
17554 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17555 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17556 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17557 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17558 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17559 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17560 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17561 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17562 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17563 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17564 (clean): Update.
17565
17566 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17567 (init_registers_powerpc_32l): ... this new prototype.
17568 (init_registers_powerpc_32): Remove, replace by ...
17569 (init_registers_powerpc_altivec32l): ... this new prototype.
17570 (init_registers_powerpc_e500): Remove, replace by ...
17571 (init_registers_powerpc_e500l): ... this new prototype.
17572 (init_registers_ppc64): Remove, replace by ...
17573 (init_registers_powerpc_64l): ... this new prototype.
17574 (init_registers_powerpc_64): Remove, replace by ...
17575 (init_registers_powerpc_altivec64l): ... this new prototype.
17576 (ppc_num_regs): Set to 73.
17577 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17578 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17579 (ppc_cannot_store_register): Handle orig_r3 and trap.
17580 (ppc_arch_setup): Update init_registers_... calls.
17581 (ppc_fill_gregset): Handle orig_r3 and trap.
17582
17583 * inferiors.c (clear_inferiors): Reset current_inferior.
17584
fdc59709
PB
175852008-04-23 Paolo Bonzini <bonzini@gnu.org>
17586
889bf7c5
PA
17587 * acinclude.m4: Add override.m4.
17588 * configure: Regenerate.
fdc59709 17589
c9b2f845
UW
175902008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17591
17592 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17593 initial call to init_register_ppc64.
17594
550512b8
UW
175952008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17596
43aaf8b6
PA
17597 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17598 single powerpc*-*-linux* case.
550512b8
UW
17599 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17600
b6430ec3
UW
176012008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17602
17603 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 17604 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
17605 from reg_xmlfiles.
17606 * linux-ppc-low.c: Include <elf.h>.
17607 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17608 (ppc_hwcap): New global variable.
17609 (ppc_regmap): Remove __SPE__ #ifdef sections.
17610 (ppc_regmap_e500): New global variable.
17611 (ppc_cannot_store_register): Update __SPE__ special case.
17612 (ppc_get_hwcap): New function.
17613 (ppc_arch_setup): Use it to determine whether inferior supports
17614 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17615 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17616 Do not access registers if target does not support AltiVec.
17617 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17618 Do not access registers if target does not support SPE.
17619 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17620
52fa2412
UW
176212008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17622
17623 * linux-low.c (disabled_regsets, num_regsets): New.
17624 (use_regsets_p): Delete.
17625 (linux_wait_for_process): Clear disabled_regsets.
17626 (regsets_fetch_inferior_registers): Check and set it.
17627 (regsets_store_inferior_registers): Likewise.
17628 (linux_fetch_registers, linux_store_registers): Do not use
17629 use_regsets_p.
17630 (initialize_low): Allocate disabled_regsets.
17631
e28b3332
DJ
176322008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17633
17634 * Makefile.in (LIBOBJS): New.
17635 (OBS): Use LIBOBJS.
17636 (memmem.o): New rule.
17637 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17638 * configure: Regenerated.
17639
4536995d
UW
176402008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17641
17642 * server.c (handle_query): Never return "unsupported" for
17643 qXfer:features:read queries.
17644
221c031f
UW
176452008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17646
17647 * server.c (get_features_xml): Fix inverted condition.
17648 (handle_query): Always support qXfer:feature:read.
17649
ccd213ac
DJ
176502008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17651
17652 * server.c (wrapper_argv): New.
17653 (start_inferior): Handle wrapper_argv. If set, expect an extra
17654 trap.
17655 (gdbserver_usage): Document --wrapper.
17656 (main): Parse --wrapper.
17657
6fe305f7
UW
176582008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17659
17660 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17661 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17662 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17663 (ppc_set_pc): Likewise.
17664 (ppc_arch_setup): New function.
17665 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17666 of collect_register.
889bf7c5 17667 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 17668
5b0a002e
UW
176692008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17670
17671 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17672 instead of linux-ppc64-low.o.
17673 * linux-ppc64-low.c: Remove file.
17674 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17675 (linux-ppc64-low.o): Remove rule.
17676
17677 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17678 (init_registers_powerpc_64): Likewise.
17679 (ppc_regmap): Conditionally define depending on __powerpc64__.
17680 (ppc_cannot_store_register): Do not special-case "fpscr" when
17681 compiled on __powerpc64__.
17682 (ppc_collect_ptrace_register): New function.
17683 (ppc_supply_ptrace_register): New function.
17684 (ppc_breakpoint): Change type to "unsigned int".
17685 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17686 (the_low_target): Conditionally provide initializers for the
889bf7c5 17687 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
17688 collect_ptrace_register and supply_ptrace_register members.
17689
9b4b61c8
UW
176902008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17691
17692 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17693 * server.c (gdbserver_xmltarget): Define.
17694 (get_features_xml): Use it to replace "target.xml" and arch_string.
17695
17696 * configure.srv: Remove srv_xmltarget. Add XML files that were
17697 mentioned there to srv_xmlfiles instead. Remove conditional tests
17698 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17699 srv_xmlfiles and srv_regobj to include all possible choices.
17700 * configure.ac (srv_xmltarget): Remove.
17701 (srv_xmlfiles): Do not add "target.xml".
17702 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17703 checks for supplementary target information.
17704 * configure: Regenerate.
17705 * Makefile.in (XML_TARGET): Remove.
17706 (target.xml): Remove rule.
17707 (clean): Do not clean up target.xml.
17708 (.PRECIOUS): Do not mention target.xml.
17709
17710 * target.h (struct target_ops): Remove arch_string member.
17711 * linux-low.c (linux_arch_string): Remove.
17712 (linux_target_ops): Remove arch_string initializer.
17713 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17714 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17715 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17716 * spu-low.c (spu_arch_string): Remove.
17717 (spu_target_ops): Remove arch_string initializer.
17718 * win32-low.c (win32_arch_string): Remove.
17719 (win32_target_ops): Remove arch_string initializer.
17720 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17721 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17722 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17723
ee1a7ae4
UW
177242008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17725
17726 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17727 by collect_ptrace_register and supply_ptrace_register hooks.
17728 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17729 instead of checking for the_low_target.left_pad_xfer.
17730 (usr_store_inferior_registers): Use collect_ptrace_register callback
17731 instead of checking for the_low_target.left_pad_xfer.
17732
17733 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17734 (s390_supply_ptrace_register): Likewise.
17735 (s390_fill_gregset): Call s390_collect_ptrace_register.
17736 (the_low_target): Update.
17737
17738 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17739 (ppc_supply_ptrace_register): Likewise.
17740 (the_low_target): Update.
17741
17742 * linux-i386-low.c (the_low_target): Update.
17743 * linux-x86-64-low.c (the_low_target): Update.
17744
d61ddec4
UW
177452008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17746
17747 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17748 reg-s390.o and reg-s390x.o.
17749
17750 * linux-low.c (new_inferior): New global variable.
17751 (linux_create_inferior, linux_attach): Set it.
17752 (linux_wait_for_process): Call the_low_target.arch_setup after the
17753 target has stopped for the first time.
17754 (initialize_low): Do not call the_low_target.arch_setup.
17755
17756 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17757 (s390_set_pc): Likewise.
17758 (s390_arch_setup): New function.
17759 (the_low_target): Use s390_arch_setup as arch_setup routine.
17760
17761 * regcache.c (realloc_register_cache): New function.
17762 (set_register_cache): Call it for each existing regcache.
17763
d05b4ac3
UW
177642008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17765
17766 * server.h (init_registers): Remove prototype.
17767
17768 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17769 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17770 instead of init_registers ().
17771 * linux-arm-low.c (init_registers_arm): Add prototype.
17772 (init_registers_arm_with_iwmmxt): Likewise.
17773 (the_low_target): Add initializer for arch_setup field.
17774 * linux-cris-low.c (init_registers_cris): Add prototype.
17775 (the_low_target): Add initializer for arch_setup field.
17776 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17777 (the_low_target): Add initializer for arch_setup field.
17778 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17779 (the_low_target): Add initializer for arch_setup field.
17780 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17781 (the_low_target): Add initializer for arch_setup field.
17782 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17783 (the_low_target): Add initializer for arch_setup field.
17784 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17785 (the_low_target): Add initializer for arch_setup field.
17786 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17787 (init_registers_mips64_linux): Likewise.
17788 (the_low_target): Add initializer for arch_setup field.
17789 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17790 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17791 (the_low_target): Add initializer for arch_setup field.
17792 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17793 (init_registers_powerpc_64): Likewise.
17794 (the_low_target): Add initializer for arch_setup field.
17795 * linux-s390-low.c (init_registers_s390): Add prototype.
17796 (init_registers_s390x): Likewise.
17797 (the_low_target): Add initializer for arch_setup field.
17798 * linux-sh-low.c (init_registers_sh): Add prototype.
17799 (the_low_target): Add initializer for arch_setup field.
17800 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17801 (the_low_target): Add initializer for arch_setup field.
17802 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17803 (the_low_target): Add initializer for arch_setup field.
17804
17805 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17806 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17807 instead of init_registers ().
17808 * win32-arm-low.c (init_registers_arm): Add prototype.
17809 (the_low_target): Add initializer for arch_setup field.
17810 * win32-i386-low.c (init_registers_i386): Add prototype.
17811 (the_low_target): Add initializer for arch_setup field.
17812
17813 * spu-low.c (init_registers_spu): Add prototype.
17814 (initialize_low): Call initialie_registers_spu () instead of
17815 initialize_registers ().
17816
fd96d250
PA
178172008-02-19 Pedro Alves <pedro@codesourcery.com>
17818
17819 * server.c (handle_v_requests): When handling the vRun and vAttach
17820 packets, if already debugging a process, don't kill it. Return an
17821 error instead.
17822
d41b6bb4
DJ
178232008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17824
17825 * server.c (handle_query): Correct length check.
17826
5ac588cf
PA
178272008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17828
17829 * win32-low.c (do_initial_child_stuff): Add process handle
17830 parameter. Set current_process_handle and current_process_id from the
17831 parameters. Clear globals.
17832 (win32_create_inferior): Don't set current_process_handle and
17833 current_process_id here. Instead pass them on the call to
17834 do_initial_child_stuff.
17835 (win32_attach): Likewise.
17836 (win32_clear_inferiors): New.
17837 (win32_kill): Don't close the current process handle or the
17838 current thread handle here. Instead call win32_clear_inferiors.
17839 (win32_detach): Don't open a new handle to the process. Call
17840 win32_clear_inferiors.
17841 (win32_join): Don't rely on current_process_handle; open a new
17842 handle using the process id.
17843 (win32_wait): Call win32_clear_inferiors when the inferior process
17844 has exited.
17845
ecd7ecbc
DJ
178462008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17847
17848 * server.c (monitor_show_help): Add "exit".
17849
1525d545
MG
178502008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17851
ecd7ecbc 17852 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
17853 (clean): Add reg-xtensa.c.
17854 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
17855 * configure.srv (xtensa*-*-linux*) New target.
17856 * linux-xtensa-low.c: New.
17857 * xtensa-xtregs.c: New.
1525d545 17858
59a016f0
PA
178592008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17860
17861 * hostio.c: Don't include errno.h.
17862 (errno_to_fileio_errno): Move to hostio-errno.
17863 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17864 error number outputting to the target->hostio_last_error callback.
17865 (hostio_packet_error): Use FILEIO_EINVAL directly.
17866 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17867 calls to hostio_error.
17868 * hostio-errno.c: New.
17869 * server.h (hostio_last_error_from_errno): Declare.
17870 * target.h (target_ops): Add hostio_last_error member.
17871 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17872 as hostio_last_error handler.
889bf7c5 17873 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
17874 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17875 (wince_hostio_last_error): New functions.
17876 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17877 as hostio_last_error handler.
17878 (win32_target_ops) [!_WIN32_WCE]: Register
17879 hostio_last_error_from_errno as hostio_last_error handler.
17880 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17881 (hostio-errno.o): New rule.
17882 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17883 * configure.srv (srv_hostio_err_objs): New variable. Default to
17884 hostio-errno.o.
17885 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17886 * configure: Regenerate.
17887
2d717e4f
DJ
178882008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17889
17890 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17891 (linux_kill, linux_detach): Clean up the process list.
17892 * remote-utils.c (remote_open): Improve port number parsing.
17893 (putpkt_binary, input_interrupt): Only send interrupts if the target
17894 is running.
17895 * server.c (extended_protocol): Make static.
17896 (attached): Define earlier.
17897 (exit_requested, response_needed, program_argv): New variables.
17898 (target_running): New.
17899 (start_inferior): Clear attached here.
17900 (attach_inferior): Set attached here.
17901 (require_running): Define.
17902 (handle_query): Use require_running and target_running. Implement
17903 "monitor exit".
17904 (handle_v_attach, handle_v_run): New.
17905 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17906 (gdbserver_usage): Update.
17907 (main): Redo argument parsing. Handle --debug and --multi. Handle
17908 --attach along with other options or after the port. Save
17909 program_argv. Support no initial program. Resynchronize
17910 communication with GDB after an error. Handle "monitor exit".
17911 Use require_running and target_running. Always allow the extended
17912 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17913 restart in extended mode.
17914 * README: Refer to the GDB manual. Update --attach usage.
17915
7407e2de
AS
179162007-12-20 Andreas Schwab <schwab@suse.de>
17917
17918 * linux-low.c (STACK_SIZE): Define.
17919 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17920 (linux_test_for_tracefork): Likewise.
17921
b65d95c5
DJ
179222007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17923
17924 * linux-low.c (linux_wait_for_event): Update messages. Do not
17925 reinsert auto-delete breakpoints.
17926 * mem-break.c (struct breakpoint): Change return type of handler to
17927 int.
17928 (set_breakpoint_at): Update handler type.
17929 (reinsert_breakpoint_handler): Return 1 instead of calling
17930 delete_breakpoint.
17931 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17932 setting a new one.
17933 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17934 * mem-break.h (set_breakpoint_at): Update handler type.
17935 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17936 * win32-low.c (auto_delete_breakpoint): New.
17937 (get_child_debug_event): Use it.
17938
4e799345
DJ
179392007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17940
17941 * configure.ac: Check for pread and pwrite.
17942 * hostio.c (handle_pread): Fall back to lseek and read.
17943 (handle_pwrite): Fall back to lseek and write.
17944 * config.in, configure: Regenerated.
17945
27524b67
DJ
179462007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17947
17948 * server.c (myresume): Add own_buf argument.
17949 (main): Update calls.
17950
a20d5e98
DJ
179512007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17952
17953 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17954 * remote-utils.c (remote_open): Do not call disable_async_io.
17955 (block_async_io): Delete.
17956 (unblock_async_io): Make static.
17957 (initialize_async_io): New.
17958 * server.c (handle_v_cont): Handle async I/O here.
17959 (myresume): Likewise. Move other common resume tasks here...
17960 (main): ... from here. Call initialize_async_io. Disable async
17961 I/O before the main loop.
17962 * server.h (initialize_async_io): Declare.
17963 (block_async_io, unblock_async_io): Delete prototypes.
17964 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17965
b79d787e
DJ
179662007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17967
17968 * remote-utils.c (readchar): Allow binary data in received messages.
17969
d97903b2
PA
179702007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17971
17972 * win32-low.c (attaching): New global.
17973 (win32_create_inferior): Clear the `attaching' global.
17974 (win32_attach): Set the `attaching' global.
17975 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17976 attaching. Only set a breakpoint at the entry point if not
17977 attaching.
17978
311de423
PA
179792007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17980
17981 * server.c (main): Don't report dll events on the initial
17982 connection on attaches.
17983
6c2d16d2
PA
179842007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17985
17986 * server.c (main): Relax numerical bases supported for the pid of
17987 the --attach command line argument.
17988
5ca906e6
PA
179892007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17990
17991 * win32-low.c (win32_attach): Call OpenProcess before
17992 DebugActiveProcess, not after. Add last error output to error
17993 call.
17994
9c6c8194
PA
179952007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17996
17997 * win32-low.c (win32_get_thread_context)
17998 (win32_set_thread_context): New functions.
17999 (thread_rec): Use win32_get_thread_context.
18000 (continue_one_thread, win32_resume): Use win32_set_thread_context.
18001 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
18002 field.
18003
4d5d1aaa
PA
180042007-12-03 Leo Zayas
18005 Pedro Alves <pedro_alves@portugalmail.pt>
18006
18007 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18008 global variables.
18009 (child_add_thread): Minor cleanup.
18010 (child_continue): Resume artificially suspended threads before
18011 calling ContinueDebugEvent.
18012 (suspend_one_thread): New.
18013 (fake_breakpoint_event): New.
18014 (get_child_debug_event): Change return type to int. Check here if
18015 gdb sent an interrupt request. If a soft interrupt was requested,
18016 fake a breakpoint event. Return 0 if there is no event to handle,
18017 and 1 otherwise.
18018 (win32_wait): Don't check here if gdb sent an interrupt request.
18019 Ensure there is a valid event to handle.
18020 (win32_request_interrupt): Add soft interruption method as last
18021 resort.
18022
c436e841
PA
180232007-12-03 Leo Zayas
18024 Pedro Alves <pedro_alves@portugalmail.pt>
18025
18026 * win32-low.h (win32_thread_info): Add descriptions to the
18027 structure members. Replace `suspend_count' counter by a
18028 `suspended' flag.
18029 * win32-low.c (thread_rec): Update condition of when to get the
18030 context from the inferior. Rely on ContextFlags being set if it
18031 has already been retrieved. Only suspend the inferior thread if
18032 we haven't already. Warn if that fails.
18033 (continue_one_thread): s/suspend_count/suspended/. Only call
18034 ResumeThread once. Warn if that fails.
18035
e7b5fa67
PA
180362007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18037
18038 * win32-low.c (win32_wait): Don't read from the inferior when it
18039 has already exited.
18040
a385171d
PA
180412007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18042
18043 * Makefile.in (win32_low_h): New variable.
18044 (win32-low.o): Add dependency on $(win32_low_h).
18045 (win32-arm-low.o, win32-i386-low.o): New rules.
18046
f80c84b3
DJ
180472007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18048
18049 * hostio.c: Correct copyright year.
18050
a6b151f1
DJ
180512007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18052
18053 * Makefile.in (OBS): Add hostio.o.
18054 (hostio.o): New rule.
18055 * server.h (handle_vFile): Declare.
18056 * hostio.c: New file.
18057 * server.c (handle_v_requests): Take packet_len and new_packet_len
18058 for binary packets. Call handle_vFile.
18059 (main): Update call to handle_v_requests.
18060
f9387fc3
DJ
180612007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18062
18063 * linux-low.c: Include <sched.h>.
18064
51c2684e
DJ
180652007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18066
18067 * linux-low.c (linux_tracefork_grandchild): New.
18068 (linux_tracefork_child): Use clone.
18069 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18070
75f83163
JB
180712007-10-31 Joel Brobecker <brobecker@adacore.com>
18072
18073 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18074
da5898ce
DJ
180752007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18076
18077 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18078
24a09b5f
DJ
180792007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18080
18081 * inferiors.c (change_inferior_id): Delete.
18082 (add_pid_to_list, pull_pid_from_list): New.
18083 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18084 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18085 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18086 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18087 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18088 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18089 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18090 (using_threads): Always set to 1.
18091 (handle_extended_wait): New.
18092 (add_process): Do not set TID.
18093 (linux_create_inferior): Set must_set_ptrace_flags.
18094 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18095 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18096 (linux_thread_alive): Rename TID argument to LWPID.
18097 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18098 (linux_wait_for_event): Do not use TID or check using_threads. Update
18099 call to dead_thread_notify. Call handle_extended_wait.
18100 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18101 (send_sigstop): Delete sigstop_sent.
18102 (wait_for_sigstop): Avoid TID.
18103 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18104 (linux_test_for_tracefork): New.
18105 (linux_lookup_signals): Use thread_db_active and
18106 linux_supports_tracefork_flag.
18107 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18108 * linux-low.h (get_process_thread): Avoid TID.
18109 (struct process_ifo): Move thread_known and tid to the end. Remove
18110 sigstop_sent.
18111 (linux_attach_lwp, thread_db_init): Update prototypes.
18112 * server.h (change_inferior_id): Delete prototype.
18113 (add_pid_to_list, pull_pid_from_list): New prototypes.
18114 * thread-db.c (thread_db_use_events): New.
18115 (find_first_thread): Rename to...
18116 (find_one_thread): ...this. Update callers and messages. Do not
18117 call fatal. Check thread_db_use_events. Do not call
18118 change_inferior_id or new_thread_notify.
18119 (maybe_attach_thread): Update. Do not call new_thread_notify.
18120 (thread_db_init): Set thread_db_use_events. Check use_events.
18121 * utils.c (fatal, warning): Correct message prefix.
18122
30ed0a8f
DJ
181232007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18124
18125 * Makefile.in (clean): Remove new files.
18126 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18127 (powerpc-64.o, powerpc-64.c): New rules.
18128 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18129 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18130 with SPE.
18131 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18132 SPE targets.
18133 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18134 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18135 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18136 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18137 (target_regsets): Add AltiVec and SPE register sets.
18138 * configure.ac: Check for AltiVec and SPE.
18139 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18140 (ppc_fill_vrregset, ppc_store_vrregset): New.
18141 (target_regsets): Add AltiVec register set.
18142 * configure: Regenerated.
18143
fd462a61
DJ
181442007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18145
18146 * linux-low.c (O_LARGEFILE): Define.
18147 (linux_read_memory): Use /proc/PID/mem.
18148 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18149 * configure, config.in: Regenerated.
18150
69f223ed
DJ
181512007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18152
18153 * linux-low.c (linux_wait_for_event): Do not pass signals while
18154 single-stepping.
18155
aec18585
PA
181562007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18157
18158 * win32-low.c (create_process): New.
18159 (win32_create_inferior): Use create_process instead of
18160 CreateProcess. If create_process failed retry appending an ".exe"
18161 suffix. Store the GetLastError result immediatelly after
18162 create_process calls and use it on the call to error.
18163
34d86ddd
PA
181642007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18165
18166 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18167
5a0e3bd0
JB
181682007-08-23 Joel Brobecker <brobecker@adacore.com>
18169
18170 * configure.ac: Switch license to GPLv3.
18171
f88c79e6
MS
181722007-08-01 Michael Snyder <msnyder@access-company.com>
18173
18174 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18175
6b3d9b83
PA
181762007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18177
18178 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18179 typedef.
18180 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18181 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18182 CloseToolhelp32Snapshot.
18183 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18184 CloseToolhelp32Snapshot.
18185
c588c53c
MS
181862007-07-27 Michael Snyder <michael.snyder@access-company.com>
18187
18188 * server.c (main): Check for inferior exit before main loop.
18189
aa0403d9
PA
181902007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18191
18192 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18193 instead of on tmp_desc.
18194
255e7678
DJ
181952007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18196 Daniel Jacobowitz <dan@codesourcery.com>
18197
18198 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18199 (add_thread): Minor cleanups.
18200 (clear_inferiors): Move lower in the file. Clear the DLL
18201 list.
18202 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18203 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18204 (xml_escape_text): New.
18205 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18206 for qSupported.
18207 (handle_v_cont): Report errors.
18208 (gdbserver_version): Update.
18209 (main): Correct size of own_buf. Do not report initial DLL events.
18210 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18211 (unloaded_dll, xml_escape_text): New.
18212 * win32-low.c (enum target_waitkind): Update comments.
18213 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18214 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18215 (win32_EnumProcessModules, win32_GetModuleInformation)
18216 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18217 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18218 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18219 (win32_Module32First, win32_Module32Next, load_toolhelp)
18220 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18221 (get_child_debug_event): Handle DLL events.
18222 (win32_wait): Likewise.
18223
0d37add9
DJ
182242007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18225
18226 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18227 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18228
45e2715e
PA
182292007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18230
18231 * win32-low.c (handle_output_debug_string): Ignore event if not
18232 waiting.
18233
c5674cf1
PA
182342007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18235
18236 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18237
2bbe3cc1
DJ
182382007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18239
18240 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18241
ae13219e
DJ
182422007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18243
18244 * inferiors.c (change_inferior_id): Add comment.
18245 * linux-low.c (check_removed_breakpoint): Add an early
18246 prototype. Improve debug output.
18247 (linux_attach): Doc update.
18248 (linux_detach_one_process, linux_detach): Clean up before releasing
18249 each process.
18250 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18251 * linux-low.h (struct process_info): Doc improvement.
18252 * mem-break.c (delete_all_breakpoints): New.
18253 * mem-break.h (delete_all_breakpoints): New prototype.
18254 * thread-db.c (find_first_thread): New.
18255 (thread_db_create_event): Call it instead of
18256 thread_db_find_new_threads. Clean up unused variables.
18257 (maybe_attach_thread): Remove first thread handling.
18258 (thread_db_find_new_threads): Use find_first_thread.
18259 (thread_db_get_tls_address): Likewise.
18260
4105de34
DJ
182612007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18262
18263 * thread-db.c (thread_db_find_new_threads): Add prototype.
18264 (thread_db_create_event): Check for the main thread before adding
18265 a new thread.
18266 (maybe_attach_thread): Only enable event reporting if TID == 0.
18267 (thread_db_get_tls_address): Check for new threads.
18268
2b876972
DJ
182692007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18270
18271 * linux-low.c (linux_create_inferior): Try execv before execvp.
18272 * spu-low.c (spu_create_inferior): Likewise.
18273
7a245884
DJ
182742007-06-13 Mike Frysinger <vapier@gentoo.org>
18275
18276 * linux-low.c (linux_create_inferior): Change execv to execvp.
18277 * spu-low.c (spu_create_inferior): Likewies.
18278
117ce543
DJ
182792007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18280
18281 * Makefile.in (clean): Clean new files instead of deleted ones.
18282 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18283 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18284 rules.
18285 * configure.srv: Specify XML files and new regformats for MIPS and
18286 MIPS64 GNU/Linux.
18287 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18288 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18289 an entry for the restart register.
18290 (mips_cannot_fetch_register, mips_cannot_store_register)
18291 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18292 register names to match the XML descriptions.
18293 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18294 restart register instead of $0.
18295
0e7f50da
UW
182962007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18297 Markus Deuling <deuling@de.ibm.com>
18298
18299 * remote-utils.c (decode_xfer_write): New function.
18300 * server.h (decode_xfer_write): Add prototype.
18301 * server.c (handle_query): Add PACKET_LEN argument. Support
18302 qXfer:spu:read and qXfer:spu:write packets.
18303 (main): Pass packet_len to handle_query.
18304 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18305 * target.h (target_ops): Add qxfer_spu.
18306
374c1d38
UW
183072007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18308
18309 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18310 accessing non-seekable spufs files.
18311
bb63802a
UW
183122007-05-16 Markus Deuling <deuling@de.ibm.com>
18313
889bf7c5 18314 * server.c (handle_query): Add reply for qC packet.
bb63802a 18315
7390519e
PA
183162007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18317 Leo Zayas <lerele@champenstudios@com>
18318
18319 * server.h (check_remote_input_interrupt_request): New function.
18320 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18321 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18322 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18323 (check_remote_input_interrupt_request): New function.
18324 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 18325 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
18326 winapi_GenerateConsoleCtrlEvent): New typedefs.
18327 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18328 to 250 ms.
18329 (win32_wait): Check for remote interrupt request
18330 with check_remote_input_interrupt_request.
18331 (win32_request_interrupt): New function.
18332 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18333
34b34921
PA
183342007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18335
18336 * win32-low.c (debug_registers_changed,
18337 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18338 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18339 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18340 (thread_rec): Get context using the low target.
18341 (child_add_thread): Call thread_added on the low target,
18342 which does the same thing.
18343 (regptr): Delete.
18344 (do_initial_child_stuff): Remove debug registers references.
18345 Set context using the low target. Resume threads after
18346 setting the contexts.
18347 (child_continue): Remove dead variable. Remove debug
18348 registers references.
18349 (child_fetch_inferior_registers): Go through the low target.
18350 (do_child_store_inferior_registers): Remove.
18351 (child_store_inferior_registers): Go through the low target.
18352 (win32_resume): Remove debug registers references.
18353 Set context using the low target.
18354 (handle_exception): Change return type to void. Don't record
18355 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18356 first chance exception.
889bf7c5 18357 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
18358 goto loop. Always return after waiting for debug event.
18359 (win32_wait): Convert to switch statement. Handle spurious
18360 events.
18361
18362 * win32-i386-low.c (debug_registers_changed,
18363 debug_registers_used): New.
18364 (initial_stuff): Rename to ...
18365 (i386_initial_stuff): ... this. Clear debug registers
18366 state variables.
18367 (store_debug_registers): Delete.
18368 (i386_get_thread_context): New.
18369 (load_debug_registers): Delete.
18370 (i386_set_thread_context): New.
18371 (i386_thread_added): New.
18372 (single_step): Rename to ...
18373 (i386_single_step): ... this.
18374 (do_fetch_inferior_registers): Rename to ...
18375 (i386_fetch_inferior_register): ... this.
18376 (i386_store_inferior_register): New.
18377 (the_low_target): Adapt to new interface.
18378
18379 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18380 (arm_get_thread_context): New.
18381 (arm_set_thread_context): New.
18382 (regptr): New.
18383 (do_fetch_inferior_registers): Rename to ...
18384 (arm_fetch_inferior_register): ... this.
18385 (arm_store_inferior_register): New.
18386 (arm_wince_breakpoint): Reimplement as unsigned long.
18387 (arm_wince_breakpoint_len): Define.
18388 (the_low_target): Adapt to new interface.
18389
18390 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18391 load_debug_registers. Add get_thread_context, set_thread_context,
18392 thread_added and store_inferior_register. Rename
18393 fetch_inferior_registers to fetch_inferior_register.
18394 (regptr): Remove declaration.
18395
dd6953e1
PA
183962007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18397
18398 * linux-low.c (linux_detach): Change return type to int. Return 0.
18399 * spu-low.c (spu_detach): Likewise.
18400
444d6139
PA
184012007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18402
18403 * target.h (target_ops): Change return type of detach to int.
18404 Add join.
18405 (join_inferior): New.
18406 * server.c (main): Don't skip detach support on mingw32.
18407 If the inferior doesn't support detaching return error.
18408 Call join_inferior instead of using waitpid.
18409 * linux-low.c (linux_join): New.
18410 (linux_target_op): Add linux_join.
18411 * spu-low.c (spu_join): New.
18412 (spu_target_ops): Add spu_join.
18413 * win32-low.c (win32_detach): Adapt to new interface.
18414 Reopen current_process_handle before detaching. Issue a child
18415 resume before detaching.
18416 (win32_join): New.
18417 (win32_target_op): Add win32_join.
18418
1d5315fe
PA
184192007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18420
18421 * win32-low.c (win32-attach): Fix return value.
18422 * target.h (target_ops): Describe ATTACH return values.
18423
bf914831
PA
184242007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18425
18426 * win32-low.c (GETPROCADDRESS): Define.
18427 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18428 (winapi_DebugSetProcessKillOnExit): Likewise.
18429 (win32_create_inferior): Force usage of ansi CreateProcessA.
18430 (win32_attach): Use GETPROCADDRESS.
18431 (win32_detach): Likewise.
18432
f72f3e60
PA
184332007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18434
18435 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18436
ed50f18f
PA
184372007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18438
18439 * win32-low.c: Commit leftover changes from 2007-03-29.
18440
0c2ead7e
DJ
184412007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18442
18443 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18444 fields short instead of int. Add explicit padding.
18445 (i387_cache_to_fsave): Remove unnecessary casts.
18446 (i387_fsave_to_cache): Doc fix.
18447 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18448
73725ff3
DJ
184492007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18450
18451 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18452 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18453
d99f33d8
PA
184542007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18455
18456 * configure.srv (arm*-*-mingw32ce*): Move near the other
18457 arm targets.
18458
68070c10
PA
184592007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18460
2482afc6 18461 * configure.ac: Add errno checking.
68070c10
PA
18462 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18463 sys/file.h and malloc.h.
18464 (AC_CHECK_DECLS): Add perror.
18465 (srv_mingwce): Handle.
2482afc6 18466 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
18467 win32-i386-low.o to srv_tgtobj.
18468 (i[34567]86-*-mingw*): Likewise.
18469 (arm*-*-mingw32ce*): Add case.
18470 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18471 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18472 [__MINGW32CE__] (strerror): New function.
18473 [__MINGW32CE__] (errno): Define to GetLastError.
18474 [__MINGW32CE__] (COUNTOF): New macro.
18475 (remote_open): Remove extra close call.
18476 * mem-break.c (delete_breakpoint_at): New function.
18477 * mem-break.h (delete_breakpoint_at): Declare.
18478 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18479 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18480 [USE_WIN32API] (read, write): Add char* casts.
18481 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18482 * server.h: Include wincecompat.h on Windows CE.
18483 [HAVE_ERRNO_H]: Check.
18484 (perror): Declare if not declared.
18485 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18486 (perror_with_name): Remove errno declaration.
18487 * wincecompat.h: New.
18488 * wincecompat.c: New.
18489 * win32-low.h: New.
18490 * win32-arm-low.c: New.
18491 * win32-i386-low.c: New.
18492 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18493 (OUTMSG2): Make it safe.
18494 (_T): New macro.
18495 (COUNTOF): New macro.
18496 (NUM_REGS): Get it from the low target.
18497 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18498 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18499 (thread_rec): Let low target handle debug registers.
18500 (child_add_thread): Likewise.
18501 (child_init_thread_list): Likewise.
18502 (continue_one_thread): Likewise.
18503 (regptr): New.
18504 (do_child_fetch_inferior_registers): Move to ...
18505 * win32-i386-low.c: ... here, and rename to ...
18506 (do_fetch_inferior_registers): ... this.
889bf7c5 18507 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
18508 Go through the low target.
18509 (do_child_store_inferior_registers): Use regptr.
18510 (strwinerror): New function.
18511 (win32_create_inferior): Handle Windows CE.
18512 Use strwinerror instead of strerror on Windows error
18513 codes. Add program to the error output.
18514 Don't close the main thread handle on Windows CE.
18515 (win32_attach): Use coredll.dll on Windows CE.
18516 (win32_kill): Close current process and current
18517 thread handles.
18518 (win32_detach): Use coredll.dll on Windows CE.
18519 (win32_resume): Let low target handle debug registers, and
18520 step request.
18521 (handle_exception): Add/Remove initial breakpoint. Avoid
18522 non-existant WSTOPSIG on Windows CE.
18523 (win32_read_inferior_memory): Cast to remove warning.
18524 (win32_arch_string): Go through the low target.
18525 (initialize_low): Call set_breakpoint_data with the low
18526 target's breakpoint.
18527 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18528 FOP_REGNUM, mappings): Move to ...
18529 * win32-i386-low.c: ... here.
18530 * win32-low.c (win32_thread_info): Move to ...
18531 * win32-low.h: ... here.
18532 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18533 win32-arm-low.c and wincecompat.c.
18534 (all:): Add $EXEEXT.
18535 (install-only:): Likewise.
18536 (gdbserver:): Likewise.
18537 (gdbreplay:): Likewise.
18538 * config.in: Regenerate.
18539 * configure: Regenerate.
18540
41093d81
PA
185412007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18542
18543 * win32-low.c: Rename typedef thread_info to
18544 win32_thread_info throughout.
18545
544afa54
PA
185462007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18547
18548 * win32-i386-low.c: Rename to ...
18549 * win32-low.c: ... this.
18550 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18551 * Makefile.in: Likewise.
18552
bce7165d
PA
185532007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18554
18555 * remote-utils.c (monitor_output): Constify msg parameter.
18556 * server.h (monitor_output): Likewise.
18557 * win32-i386-low.c (handle_output_debug_string): New.
18558 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18559 handle_output_debug_string.
18560 (get_child_debug_event): Likewise.
18561
506c7aa0
DJ
185622007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18563
18564 * server.c (main): Correct strtoul check.
18565
42c81e2a
DJ
185662007-03-27 Jon Ringle <jon@ringle.org>
18567
18568 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18569
9453113a
DJ
185702007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18571
18572 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18573
64a69107
DJ
185742007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18575
18576 * terminal.h: Check HAVE_SGTTY_H.
18577
185782007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
18579
18580 * remote-utils.c (remote_open): Print out the assigned port number.
18581
c74d0ad8
DJ
185822007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18583
18584 * remote-utils.c (monitor_output): New function.
18585 * server.c (debug_threads): Define here.
18586 (monitor_show_help): New function.
18587 (handle_query): Handle qRcmd.
18588 (main): Do not handle 'd' packet.
18589 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18590 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18591 of debug_threads.
18592
de7c3b4a
PA
185932007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18594
18595 * Makefile.in (EXEEXT): New.
18596 (clean): Use $(EXEEXT).
18597
ef57601b
PA
185982007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18599
18600 * target.h (target_ops): Rename send_signal to request_interrupt,
18601 and remove enum target_signal parameter.
18602 * linux-low.c (linux_request_interrupt): Rename from
18603 linux_send_signal, and always send SIGINT.
18604 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18605 and always send SIGINT.
18606 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18607 of send_signal.
18608 (input_interrupt): Likewise.
18609
820f2bda
PA
186102007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18611
18612 * server.c (get_features_xml): Check if target implemented
18613 arch_string.
18614 * win32-i386-low.c (win32_arch_string): New.
18615 (win32_target_ops): Add win32_arch_string as arch_string member.
18616
ab39bf24
UW
186172007-02-22 Markus Deuling <deuling@de.ibm.com>
18618
18619 * spu-low.c (spu_arch_string): New.
18620 (spu_target_ops): Add spu_arch_string.
18621
61ff6e04
DJ
186222007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18623
18624 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18625 * configure.ac: Do not check for terminal.h.
18626 * configure, config.in: Regenerated.
18627
fb1e4ffc
DJ
186282007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18629
18630 * Makefile.in (OBS): Add $(XML_BUILTIN).
18631 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18632 (clean): Update.
18633 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18634 (arm-with-iwmmxt.c): New.
18635 * config.in, configure: Regenerate.
18636 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18637 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18638 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18639 (arm*-*-linux*): Add iWMMXt and regset support.
18640 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18641 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18642 (arm_store_wmmxregset, target_regsets): New.
18643 * server.c (get_features_xml): Take annex argument. Check builtin
18644 XML documents.
18645 (handle_query): Handle multiple annexes.
18646
0f48aa01
DJ
186472007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18648
18649 * remote-utils.c [USE_WIN32API] (read, write): Define.
18650 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18651 write.
18652
23181151
DJ
186532007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18654
18655 * linux-i386-low.c (the_low_target): Set arch_string.
18656 * linux-x86-64-low.c (the_low_target): Likewise.
18657 * linux-low.c (linux_arch_string): New.
18658 (linux_target_ops): Add it.
18659 * linux-low.h (struct linux_target_ops): Add arch_string.
18660 * server.c (write_qxfer_response): Use const void * for DATA.
18661 (get_features_xml): New.
18662 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18663 * target.h (struct target_ops): Add arch_string method.
18664
9d606399
DJ
186652007-01-03 Denis Pilat <denis.pilat@st.com>
18666 Daniel Jacobowitz <dan@codesourcery.com>
18667
18668 * linux-low.c (linux_kill): Handle being called with no threads.
18669 * win32-i386-low.c (win32_kill): Likewise.
18670 (get_child_debug_event): Clear current_process_handle.
18671
186722006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
18673 Daniel Jacobowitz <dan@codesourcery.com>
18674
18675 * remote-utils.c (remote_open): Check the type of specified
18676 serial port devices before opening them.
18677 * server.c (main): Kill the inferior if an error occurs during
18678 the first remote_open.
18679
a5e13d24
DJ
186802006-12-05 Markus Deuling <deuling@de.ibm.com>
18681
18682 * README: Update supported targets.
18683
186947f7
DJ
186842006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18685
18686 * Makefile.in (clean): Remove reg-mips64.c.
18687 (reg-mips64.c, reg-mips64.o): New rules.
18688 * configure.srv: Handle mips64. Include regset support for mips.
18689 * linux-mips-low.c (union mips_register): New.
18690 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18691 (mips_breakpoint, mips_breakpoint_at): Use int.
18692 (mips_collect_register, mips_supply_register)
18693 (mips_collect_register_32bit, mips_supply_register_32bit)
18694 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18695 (mips_store_fpregset, target_regsets): New.
18696 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18697
a13e2c95
UW
186982006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18699
18700 * configure.srv: Add target "spu*-*-*".
18701 * Makefile.in (clean): Remove reg-spu.c.
18702 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18703 * spu-low.c: New file.
18704
cb7283db
DJ
187052006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18706
18707 * configure.ac: Correct td_thr_tls_get_addr test.
18708 * configure: Regenerated.
18709
89be2091
DJ
187102006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18711
18712 * linux-low.c (linux_wait_for_event): Reformat. Use the
18713 pass_signals array.
18714 * remote-utils.c (decode_address_to_semicolon): New.
18715 * server.c (pass_signals, handle_general_set): New.
18716 (handle_query): Mention QPassSignals for qSupported.
18717 (main): Call handle_general_set.
18718 * server.h (pass_signals, decode_address_to_semicolon): New.
18719
000ef4f0
DJ
187202006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18721
18722 * server.c (handle_query): Correct error handling for read_auxv.
18723
b7149293
UW
187242005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18725
18726 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18727 and srv_linux_thread_db to yes.
18728 * linux-s390-low.c (s390_fill_gregset): New function.
18729 (target_regsets): Define data structure.
18730
dae5f5cf
DJ
187312006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18732
18733 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18734 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18735 * config.in, configure: Regenerated.
18736 * inferiors.c (gdb_id_to_thread): New function.
18737 (gdb_id_to_thread_id): Use it.
18738 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18739 * linux-low.h (struct process_info): Add th member.
18740 (thread_db_get_tls_address): New prototype.
18741 * remote-utils.c (decode_address): Make non-static.
18742 * server.c (handle_query): Handle qGetTLSAddr.
18743 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18744 * target.h (struct target_ops): Add get_tls_address.
18745 * thread-db.c (maybe_attach_thread): Save the thread handle.
18746 (thread_db_get_tls_address): New.
18747
32ca6d61
DJ
187482006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18749
18750 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18751 (linux_resume_one_process): Take a siginfo_t *. Update all
18752 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18753 (struct pending_signals): Add a siginfo_t.
18754 (linux_wait_for_process): Always set last_status.
18755 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18756 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18757 * linux-low.h (struct process_info): Add last_status.
18758
5ffff7c1
DJ
187592006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18760
18761 * remote-utils.c (try_rle): New function.
18762 (putpkt_binary): Use it.
18763
8695c747
DJ
187642006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18765
18766 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18767 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18768 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18769 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18770 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18771 point registers.
18772
290fadea
RS
187732006-08-08 Richard Sandiford <richard@codesourcery.com>
18774
18775 * server.c (terminal_fd): New variable.
18776 (old_foreground_pgrp): Likewise.
18777 (restore_old_foreground_pgrp): New function.
18778 (start_inferior): Record the terminal file descriptor in terminal_fd
18779 and its original foreground group in old_foreground_pgrp. Register
18780 restore_old_foreground_pgrp with atexit().
18781
9f2e1e63
DJ
187822006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18783
18784 * server.c (handle_query): Correct qPart to qXfer.
18785
b80864fb
DJ
187862006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18787
18788 * configure.ac: Check for more headers which are missing on
18789 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18790 * configure.srv: Add Cygwin and mingw32.
18791 * remote-utils.c: Don't include headers unconditionally which
18792 are missing on mingw32. Include <winsock.h> for mingw32.
18793 (remote_open): Adjust for mingw32 support. Flush
18794 standard error after writing to it.
18795 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18796 (unblock_async_io, enable_async_io, disable_async_io)
18797 (readchar, getpkt): Update for Winsock support.
18798 (prepare_resume_reply): Expect a protocol signal number.
18799 * server.c: Disable <sys/wait.h> on mingw32.
18800 (start_inferior): Adjust for mingw32 support. Flush
18801 standard error after writing to it.
18802 (attach_inferior): Likewise. Use protocol signal
18803 numbers.
18804 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18805 and names.
18806 * win32-i386-low.c: New file.
18807 * Makefile.in (XM_CLIBS): Set.
18808 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18809 (win32-i386-low.o): New dependency rule.
18810 * linux-low.c (linux_wait): Use target signal numbers.
18811 * target.h (struct target_ops): Doc fix.
18812 * server.h (target_signal_to_name): New prototype.
18813 * gdbreplay.c: Don't include headers unconditionally which
18814 are missing on mingw32. Include <winsock.h> for mingw32.
18815 (remote_close, remote_open): Adjust for Winsock support.
18816 * configure, config.in: Regenerated.
18817
0876f84a
DJ
188182006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18819
18820 * server.c (decode_xfer_read, write_qxfer_response): New.
18821 (handle_query): Take a packet length argument. Handle
18822 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18823 the qSupported response.
18824 (main): Update call to handle_query.
18825
01f9e8fa
DJ
188262006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18827
18828 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18829 (putpkt_binary): Renamed from putpkt and adjusted for binary
18830 data.
18831 (putpkt): New wrapper for putpkt_binary.
18832 (readchar): Don't mask off the high bit.
18833 (decode_X_packet): New function.
18834 * server.c (main): Call putpkt_binary if a handler sets the packet
18835 length. Save the length of the incoming packet. Handle 'X'.
18836 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18837
be2a5f71
DJ
188382006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18839
18840 * server.c (handle_query): Handle qSupported.
18841
ea025f5f
DJ
188422006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18843
18844 * remote-utils.c (all_symbols_looked_up): New variable.
18845 (look_up_one_symbol): Check it.
18846 * server.h (look_up_one_symbol): New declaration.
18847 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18848
9308fc88
DJ
188492006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18850
18851 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 18852 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
18853 (PTRACE_GET_THREAD_AREA): Define.
18854 (ps_get_thread_area): New function.
18855
52fb6437
NS
188562006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18857
18858 * configure.srv (m68k*-*-uclinux*): New target.
18859 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18860 (linux_resume_one_process): Remove extraneous cast.
18861 (linux_read_offsets): New.
18862 (linux_target_op): Add linux_read_offsets on mmuless systems.
18863 * server.c (handle_query): Add qOffsets logic.
18864 * target.h (struct target_ops): Add read_offsets.
18865
21b0f40c
DJ
188662006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18867
18868 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18869 (PTRACE_GET_THREAD_AREA): Define.
18870 (ps_get_thread_area): New function.
18871 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18872 (linux-x86-64-low.o): Update.
18873
0050a760
DJ
188742006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18875
18876 * configure.ac: Remove checks for prfpregset_t.
18877 * gdb_proc_service.h: New file.
18878 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18879 new "gdb_proc_service.h".
18880 * proc-service.c: Likewise.
18881 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18882 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18883 * Makefile.in (gdb_proc_service_h): Updated.
18884 * configure, config.in: Regenerated.
18885
b92a518e
DJ
188862006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18887
18888 * remote-utils.c (prepare_resume_reply): Move declaration
18889 of gdb_id_from_wait to the top of the block.
18890
545587ee
DJ
188912006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18892
18893 * linux-low.c (regsets_store_inferior_registers): Read the regset
18894 from the target before filling it.
18895
9db87ebd
DJ
188962006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18897
18898 * server.c (attach_inferior): Return SIGTRAP for a successful
18899 attach.
18900
dd24457d
DJ
189012006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18902
18903 * Makefile.in (OBS): Add version.o.
18904 (STAGESTUFF): Delete.
18905 (version.o): Add dependencies.
18906 (version.c): Replace rule.
18907 (clean): Remove version.c.
18908 * server.c (gdbserver_version): New.
18909 (gdbserver_usage): Use printf.
18910 (main): Handle --version and --help.
18911 * server.h (version, host_name): Add declarations.
18912
6f0f660e
EZ
189132005-12-23 Eli Zaretskii <eliz@gnu.org>
18914
889bf7c5
PA
18915 * linux-arm-low.c:
18916 * linux-arm-low.c:
18917 * inferiors.c:
18918 * i387-fp.h:
18919 * i387-fp.c:
18920 * gdbreplay.c:
18921 * regcache.c:
18922 * proc-service.c:
18923 * mem-break.h:
18924 * mem-break.c:
18925 * linux-x86-64-low.c:
18926 * linux-sh-low.c:
18927 * linux-s390-low.c:
18928 * linux-ppc64-low.c:
18929 * linux-ppc-low.c:
18930 * linux-mips-low.c:
18931 * linux-m68k-low.c:
18932 * linux-m32r-low.c:
18933 * linux-low.h:
18934 * linux-low.c:
18935 * linux-ia64-low.c:
18936 * linux-i386-low.c:
18937 * linux-crisv32-low.c:
18938 * thread-db.c:
18939 * terminal.h:
18940 * target.h:
18941 * target.c:
18942 * server.h:
18943 * server.c:
18944 * remote-utils.c:
18945 * regcache.h:
18946 * utils.c:
18947 * Makefile.in:
18948 * configure.ac:
6f0f660e
EZ
18949 * gdbserver.1: Add (C) after Copyright. Update the FSF
18950 address.
18951
9d1fb177
DJ
189522005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18953
18954 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18955 (arm_breakpoint_at): Recognize both breakpoints.
18956 (the_low_target): Use the correct breakpoint instruction.
18957
011a70c2
DJ
189582005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18959
18960 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18961 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18962 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18963 (the_low_target): Update.
18964
7fb85e41
AS
189652005-10-25 Andreas Schwab <schwab@suse.de>
18966
18967 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18968
18969 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18970 (ia64_num_regs): Reduce to 462.
18971
3db0444b
DJ
189722005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18973
18974 * acinclude.m4: Correct quoting.
18975 * aclocal.m4: Regenerated.
18976
18977 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18978 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18979 (thread_db_init): Call thread_db_err_str.
18980 * configure.ac: Check for TD_VERSION.
18981 * config.in, configure: Regenerated.
18982
bee0189a
DJ
189832005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18984
18985 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18986
e9d25b98
DJ
189872005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18988
18989 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18990 is not available. Define HAVE_PTRACE_GETREGS if it is.
18991 * config.in, configure: Regenerated.
18992 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18993 * linux-i386-low.c, linux-m68k-low.c: Update to use
18994 HAVE_PTRACE_GETREGS.
18995 * linux-low.c (regsets_fetch_inferior_registers)
18996 (regsets_store_inferior_registers): Only return 0 if we processed
18997 GENERAL_REGS.
18998 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18999 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19000
a06660f7
DJ
190012005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19002
19003 * inferiors.c (struct thread_info): Add gdb_id.
19004 (add_thread): Add gdb_id argument.
19005 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19006 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19007 calls to add_thread.
19008 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19009 * server.c (handle_query): Use thread_to_gdb_id.
19010 (handle_v_cont, main): Use gdb_id_to_thread_id.
19011 * server.h (add_thread): Update prototype.
19012 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19013 prototypes.
19014
5a1f5858
DJ
190152005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19016
19017 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19018 left-padded registers.
19019 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19020 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19021
e122f1f5
SE
190222005-07-01 Steve Ellcey <sje@cup.hp.com>
19023
19024 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19025 * configure: Regenerate.
19026 * config.in: Regenerate.
19027 * server.h (NEED_DECLARATION_STRERROR):
19028 Replace with !HAVE_DECL_STRERROR.
19029
d592fa2f
DJ
190302005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19031
19032 * linux-low.c (linux_wait, linux_send_signal): Don't test
19033 an unsigned long variable for > 0 if it could be MAX_ULONG.
19034 * server.c (myresume): Likewise.
19035 * target.c (set_desired_inferior): Likewise.
19036
ccbd4912
MK
190372005-06-13 Mark Kettenis <kettenis@gnu.org>
19038
19039 * configure.ac: Simplify and improve check for socklen_t.
19040 * configure, config.in: Regenerate.
19041
f450004a
DJ
190422005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19043
19044 * acconfig.h: Remove.
19045 * configure.ac: Add a test for socklen_t. Use three-argument
19046 AC_DEFINE throughout.
19047 * config.in: Regenerated using autoheader 2.59.
19048 * configure: Regenerated.
19049
19050 * gdbreplay.c (socklen_t): Provide a default.
19051 (remote_open): Use socklen_t.
19052 * remote-utils.c (socklen_t): Provide a default.
19053 (remote_open): Use socklen_t.
19054 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19055 unsigned char.
19056
19057 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19058 char for buffers.
19059 * linux-low.c (linux_read_memory, linux_write_memory)
19060 (linux_read_auxv): Likewise.
19061 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19062 (check_mem_write): Likewise.
19063 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19064 Likewise.
19065 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19066 (registers_from_string, register_data): Likewise.
19067 * server.c (handle_query, main): Likewise.
19068 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19069 (decode_M_packet): Likewise.
19070 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19071 * target.h (struct target_ops): Update read_memory, write_memory,
19072 and read_auxv.
19073 (read_inferior_memory, write_inferior_memory): Update.
19074 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19075 to unsigned char *.
19076 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19077 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19078 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19079 linux-s390-low.c, linux-sh-low.c: Update for changes in
19080 read_inferior_memory and the_low_target->breakpoint.
19081
eee84df1
DJ
190822005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19083
19084 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19085 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19086 * configure.srv: Add powerpc64-*-linux*.
19087 * linux-ppc64-low.c: New file.
19088
45b134e5
OF
190892005-05-23 Orjan Friberg <orjanf@axis.com>
19090
19091 * linux-cris-low.c: New file with support for CRIS.
19092 * linux-crisv32-low.c: Ditto for CRISv32.
19093 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19094 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 19095 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
19096 reg-crisv32.o, and reg-crisv32.c to make rules.
19097 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19098 recognized targets.
19099
48d93c75
UW
191002005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19101
19102 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19103 of sizeof (PTRACE_XFER_TYPE).
19104 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19105
e013ee27
OF
191062005-05-12 Orjan Friberg <orjanf@axis.com>
19107
889bf7c5 19108 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
19109 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19110 pointers for hardware watchpoint support.
19111 * linux-low.h (struct linux_target_ops): Ditto.
19112 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19113 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19114 to linux_target_ops.
19115 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19116 reply packet.
19117 * server.c (main): Recognize 'Z' and 'z' packets.
19118
b0ded00b
UW
191192005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19120
19121 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19122 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19123 (the_low_target): Add new members.
19124
8643e2ad
DJ
191252005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19126
19127 * proc-service.c (ps_lgetregs): Search all_processes instead of
19128 all_threads.
19129
fc620387
DJ
191302005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19131
19132 * server.c (start_inferior): Change return type to int.
19133 (attach_inferior): Change sigptr to int *.
19134 (handle_v_cont, handle_v_requests): Change signal to int *.
19135 (main): Change signal to int.
19136
191372005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
19138
19139 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19140 * configure.srv: Add m32r*-*-linux*.
19141 * linux-m32r-low.c: New file.
19142
e0e76420
DJ
191432005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19144
19145 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19146
a1928bad
DJ
191472005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19148
19149 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19150 Take unsigned long arguments for PIDs.
19151 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19152 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19153 (wait_for_sigstop, linux_resume_one_process)
19154 (regsets_fetch_inferior_registers, linux_send_signal)
19155 (linux_read_auxv): Likewise. Update the types of variables holding
19156 PIDs. Update format string specifiers.
19157 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19158 * remote-utils.c (prepare_resume_reply): Likewise.
19159 * server.c (cont_thread, general_thread, step_thread)
19160 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19161 unsigned long.
19162 (handle_query): Update format specifiers.
19163 (handle_v_cont, main): Use strtoul for thread IDs.
19164 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19165 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19166 (general_thread, step_thread, thread_from_wait)
19167 (old_thread_from_wait): Update.
19168 * target.h (struct thread_resume): Use unsigned long for THREAD.
19169 (struct target_ops): Use unsigned long for arguments to attach and
19170 thread_alive.
19171
dcdb98d2
DJ
191722005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19173
19174 * acinclude.m4: Include bfd/bfd.m4 directly.
19175 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19176 <agriffis@toolchain.org>.
19177 * aclocal.m4, configure: Regenerated.
19178
bec39cab
AC
191792005-01-07 Andrew Cagney <cagney@gnu.org>
19180
19181 * configure.ac: Rename configure.in, require autoconf 2.59.
19182 * configure: Re-generate.
19183
434c4c77
DJ
191842004-12-08 Daniel Jacobowitz <dan@debian.org>
19185
19186 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19187 LIBS when finished.
19188 * aclocal.m4: Regenerated.
19189 * configure: Regenerated.
19190
db1d3e1b
AS
191912004-11-21 Andreas Schwab <schwab@suse.de>
19192
19193 * linux-m68k-low.c (m68k_num_gregs): Define.
19194 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19195 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19196 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19197 (m68k_breakpoint_at): New. Add to the_low_target.
19198
19199 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19200 srv_linux_thread_db to yes.
19201
43360365
JB
192022004-10-20 Joel Brobecker <brobecker@gnat.com>
19203
19204 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19205 (ARCH_SET_FS): Likewise.
19206 (ARCH_GET_FS): Likewise.
19207 (ARCH_GET_GS): Likewise.
19208
fd500816
DJ
192092004-10-16 Daniel Jacobowitz <dan@debian.org>
19210
19211 * linux-i386-low.c (ps_get_thread_area): New.
19212 * linux-x86-64-low.c (ps_get_thread_area): New.
19213 * linux-low.c: Include <sys/syscall.h>.
19214 (linux_kill_one_process): Don't kill the first thread here.
19215 (linux_kill): Kill the first thread here.
19216 (kill_lwp): New function.
19217 (send_sigstop, linux_send_signal): Use it.
19218 * proc-service.c: Clean up #ifdefs.
19219 (fpregset_info): Delete.
19220 (ps_lgetregs): Update and enable implementation.
19221 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19222 implementations.
19223 * remote-utils.c (struct sym_cache, symbol_cache): New.
19224 (input_interrupt): Print a clearer message.
19225 (async_io_enabled): New variable.
19226 (enable_async_io, disable_async_io): Use it. Update comments.
19227 (look_up_one_symbol): Use the symbol cache.
19228 * thread-db.c (thread_db_look_up_symbols): New function.
19229 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19230
f6de3c42
DJ
192312004-10-16 Daniel Jacobowitz <dan@debian.org>
19232
19233 * configure.in: Test for -rdynamic.
19234 * configure: Regenerated.
19235 * Makefile (INTERNAL_LDFLAGS): New.
19236 (gdbserver, gdbreplay): Use it.
19237
2c0fc042
AC
192382004-09-02 Andrew Cagney <cagney@gnu.org>
19239
19240 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19241
075b3282
DJ
192422004-03-23 Daniel Jacobowitz <drow@mvista.com>
19243
19244 * linux-low.c (linux_wait): Clear all_processes list also.
19245
fa6a77dc
DJ
192462004-03-12 Daniel Jacobowitz <drow@mvista.com>
19247
19248 * linux-low.c: Include <errno.h>. Remove extern declaration of
19249 errno.
19250
6d782a97
DJ
192512004-03-12 Daniel Jacobowitz <drow@mvista.com>
19252
19253 * gdbreplay.c, server.h, utils.c: Update copyright years.
19254
3a7fb99b
DJ
192552004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19256
19257 * server.c (main): Print child status or termination signal from
19258 variable 'signal', not 'sig'.
19259
c3e735a6
DJ
192602004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19261
19262 * linux-low.c (linux_read_memory): Change return type to
19263 int. Check for and return error from ptrace().
19264 * target.c (read_inferior_memory): Change return type to int. Pass
19265 back return status from the_target->read_memory().
19266 * target.h (struct target_ops): Adapt *read_memory() prototype.
19267 Update comment.
19268 (read_inferior_memory): Adapt prototype.
19269 * server.c (main): Return an error packet if
19270 read_inferior_memory() returns an error.
19271
a59d1c82
DJ
192722004-03-04 Daniel Jacobowitz <drow@mvista.com>
19273
19274 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19275 Unify with other clean targets.
19276
dc3f8883
DJ
192772004-02-29 Daniel Jacobowitz <drow@mvista.com>
19278
19279 * server.c (handle_v_cont): Call set_desired_inferior.
19280
89a208da
DJ
192812004-02-29 Daniel Jacobowitz <drow@mvista.com>
19282
19283 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19284
62ea82f5
DJ
192852004-02-29 Daniel Jacobowitz <drow@mvista.com>
19286
19287 * linux-low.c (linux_wait): Unblock async I/O.
19288 (linux_resume): Block and enable async I/O.
19289 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19290 * server.h (block_async_io, unblock_async_io): Add prototypes.
19291
6910d122
DJ
192922004-02-29 Daniel Jacobowitz <drow@mvista.com>
19293
19294 * remote-utils.c (remote_open): Print a status notice after
19295 opening a TCP port.
19296 * server.c (attach_inferior): Print a status notice after
19297 attaching.
19298
192992004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
19300
19301 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19302
c89dc5d4
DJ
193032004-02-26 Daniel Jacobowitz <drow@mvista.com>
19304
19305 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19306 error packet.
19307 * server.c, target.h: Update copyright years.
19308
4b8dad4a
RM
193092004-02-25 Roland McGrath <roland@redhat.com>
19310
19311 * target.h (struct target_ops): New member `read_auxv'.
19312 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19313 * linux-low.c (linux_read_auxv): New function.
19314 (linux_target_ops): Initialize `read_auxv' member to that.
19315
d7446758
JB
193162004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19317
19318 Committed by Jim Blandy <jimb@redhat.com>.
19319
19320 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 19321 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
19322 instead of GPR_SIZE to distiguish s390 and s390x targets.
19323
5544ad89
DJ
193242004-01-31 Daniel Jacobowitz <drow@mvista.com>
19325
19326 * linux-low.c: Update copyright year.
19327 (check_removed_breakpoint): Clear pending_is_breakpoint.
19328 (linux_set_resume_request, linux_queue_one_thread)
19329 (resume_status_pending_p): New functions.
19330 (linux_continue_one_thread): Use process->resume.
19331 (linux_resume): Only resume threads if there are no pending events.
19332 * linux-low.h (struct process_info): Add resume request
19333 pointer.
19334
2a68b70e
DJ
193352004-01-30 Daniel Jacobowitz <drow@mvista.com>
19336
19337 * regcache.c (new_register_cache): Clear the allocated register
19338 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19339
64386c31
DJ
193402003-10-13 Daniel Jacobowitz <drow@mvista.com>
19341
19342 * linux-low.c (linux_resume): Take a struct thread_resume *
19343 argument.
19344 (linux_wait): Update call.
19345 (resume_ptr): New static variable.
19346 (linux_continue_one_thread): Renamed from
19347 linux_continue_one_process. Use resume_ptr.
19348 (linux_resume): Use linux_continue_one_thread.
19349 * server.c (handle_v_cont, handle_v_requests): New functions.
19350 (myresume): New function.
19351 (main): Handle 'v' case.
19352 * target.h (struct thread_resume): New type.
19353 (struct target_ops): Change argument of "resume" to struct
19354 thread_resume *.
19355 (myresume): Delete macro.
19356
c938e9b0
L
193572003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19358
19359 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19360 (uninstall): Support DESTDIR.
19361
7f313d07
BC
19362Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19363
19364 * configure.srv: Add xscale*linux copy of arm*linux entry.
19365
3b2fc2ea
DJ
193662003-07-24 Daniel Jacobowitz <drow@mvista.com>
19367
19368 * linux-arm-low.c (arm_reinsert_addr): New function.
19369 (the_low_target): Add arm_reinsert_addr.
19370
1c0a559e
MK
193712003-07-08 Mark Kettenis <kettenis@gnu.org>
19372
19373 * mem-break.c: Remove whitespace at end of file.
19374
43d5792c
DJ
193752003-06-28 Daniel Jacobowitz <drow@mvista.com>
19376
19377 * configure.in: Check whether we need to prototype strerror.
19378 * server.h: Optionally prototype strerror.
19379 * gdbreplay.c (perror_with_name): Use strerror.
19380 * linux-low.c (linux_attach_lwp): Use strerror.
19381 * utils.c (perror_with_name): Use strerror.
19382 * config.in, configure: Regenerated.
19383
c8a86edf
DJ
193842003-06-28 Daniel Jacobowitz <drow@mvista.com>
19385
19386 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19387 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19388
73d37363
DJ
193892003-06-20 Daniel Jacobowitz <drow@mvista.com>
19390
19391 * Makefile.in (SFILES): Update.
19392 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19393 low-sun3.c: Remove files.
19394
6ad8ae5c
DJ
193952003-06-17 Daniel Jacobowitz <drow@mvista.com>
19396
19397 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19398 (linux_detach_one_process, linux_detach): New functions.
19399 (linux_target_ops): Add linux_detach.
19400 * server.c (main): Handle 'D' packet.
19401 * target.h (struct target_ops): Add "detach" member.
19402 (detach_inferior): Define.
19403
1581182a
MK
194042003-06-13 Mark Kettenis <kettenis@gnu.org>
19405
19406 From Kelley Cook <kelleycook@wideopenwest.com>:
19407 * configure.srv: Accept i[34567]86 variants.
19408
e5379b03
DJ
194092003-06-05 Daniel Jacobowitz <drow@mvista.com>
19410
19411 * linux-low.c (linux_wait_for_event): Correct comment typos.
19412 (linux_resume_one_process): Call check_removed_breakpoint.
19413 (linux_send_signal): New function.
19414 (linux_target_ops): Add linux_send_signal.
19415 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19416 of kill.
19417 * target.h (struct target_ops): Add send_signal.
19418
2ff29de4
JB
194192003-05-29 Jim Blandy <jimb@redhat.com>
19420
19421 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19422 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19423 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19424 away part of the register's value.
19425
254787d4
DJ
194262003-03-26 Daniel Jacobowitz <drow@mvista.com>
19427
19428 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19429 (linux_wait_for_event, linux_init_signals): Likewise.
19430
94e10508
DJ
194312003-03-17 Daniel Jacobowitz <drow@mvista.com>
19432
19433 * configure.in: Check for stdlib.h.
19434 * configure: Regenerated.
19435 * config.in: Regenerated.
19436
4c0711e0
DJ
194372003-01-04 Andreas Schwab <schwab@suse.de>
19438
19439 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19440
ef66e766
AC
194412003-01-02 Andrew Cagney <ac131313@redhat.com>
19442
19443 * Makefile.in: Remove obsolete code.
19444
a1358604
DJ
194452002-11-20 Daniel Jacobowitz <drow@mvista.com>
19446
19447 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19448 defined(PT_FPR0_HI).
19449
23ce3b1c
DJ
194502002-11-17 Stuart Hughes <seh@zee2.com>
19451
19452 * linux-arm-low.c (arm_num_regs): Increase.
19453 (arm_regmap): Include status register.
19454
194552002-11-17 Daniel Jacobowitz <drow@mvista.com>
19456
19457 * linux-low.c (register_addr): Remove incorrect -1 check.
19458
a9fa9f7d
DJ
194592002-08-29 Daniel Jacobowitz <drow@mvista.com>
19460
19461 * linux-low.c (linux_create_inferior): Call setpgid. Return
19462 the new PID.
19463 (unstopped_p, linux_signal_pid): Remove.
19464 (linux_target_ops): Remove linux_signal_pid.
19465 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19466 global instead of target method.
19467 * target.h (struct target_ops): Remove signal_pid. Update comment
19468 for create_inferior.
19469 * server.c (signal_pid): New variable.
19470 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 19471 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
19472 (attach_inferior): Set signal_pid.
19473
17574093
DJ
194742002-08-23 Daniel Jacobowitz <drow@mvista.com>
19475
19476 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19477
194782002-08-20 Jim Blandy <jimb@redhat.com>
19479
19480 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19481 default for this.
19482
194832002-08-01 Andrew Cagney <cagney@redhat.com>
19484
19485 * Makefile.in: Make chill references obsolete.
19486
194872002-07-24 Kevin Buettner <kevinb@redhat.com>
19488
19489 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19490 * configure: Regenerate.
19491 * config.in: Regenerate.
19492
194932002-07-09 David O'Brien <obrien@FreeBSD.org>
19494
19495 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19496 (perror_with_name, remote_close, remote_open, expect, play): Static.
19497
194982002-07-04 Michal Ludvig <mludvig@suse.cz>
19499
4b8dad4a 19500 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
19501 byte offsets instead of an array of indexes.
19502 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19503
195042002-06-13 Daniel Jacobowitz <drow@mvista.com>
19505
19506 * regcache.c: Add comment.
19507
195082002-06-11 Daniel Jacobowitz <drow@mvista.com>
19509
19510 * thread-db.c: New file.
19511 * proc-service.c: New file.
19512 * acinclude.m4: New file.
19513 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19514 proc-service.o, and thread-db.o.
19515 (linux-low.o): Add USE_THREAD_DB.
19516 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19517 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19518 * aclocal.m4: Regenerated.
19519 * config.in: Regenerated.
19520 * configure: Regenerated.
19521 * configure.in: Check for proc_service.h, sys/procfs.h,
19522 thread_db.h, and linux/elf.h headrs.
19523 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19524 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19525 Check for -lthread_db and thread support.
19526 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19527 PowerPC, and SuperH.
19528 * i387-fp.c: Constify arguments.
19529 * i387-fp.h: Likewise.
19530 * inferiors.c: (struct thread_info): Renamed from
19531 `struct inferior_info'. Remove PID member. Use generic inferior
19532 list header. All uses updated.
19533 (inferiors, signal_pid): Removed.
19534 (all_threads): New variable.
19535 (get_thread): Define.
19536 (add_inferior_to_list): New function.
19537 (for_each_inferior): New function.
19538 (change_inferior_id): New function.
19539 (add_inferior): Removed.
19540 (remove_inferior): New function.
19541 (add_thread): New function.
19542 (free_one_thread): New function.
19543 (remove_thread): New function.
19544 (clear_inferiors): Use for_each_inferior and free_one_thread.
19545 (find_inferior): New function.
19546 (find_inferior_id): New function.
19547 (inferior_target_data): Update argument type.
19548 (set_inferior_target_data): Likewise.
19549 (inferior_regcache_data): Likewise.
19550 (set_inferior_regcache_data): Likewise.
19551 * linux-low.c (linux_bp_reinsert): Remove.
19552 (all_processes, stopping_threads, using_thrads)
19553 (struct pending_signals, debug_threads, pid_of): New.
19554 (inferior_pid): Replace with macro.
19555 (struct inferior_linux_data): Remove.
19556 (get_stop_pc, add_process): New functions.
19557 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19558 Use add_process and add_thread.
19559 (linux_attach_lwp): New function, based on old linux_attach. Use
19560 add_process and add_thread. Set stop_expected for new threads.
19561 (linux_attach): New function.
19562 (linux_kill_one_process): New function.
19563 (linux_kill): Kill all LWPs.
19564 (linux_thread_alive): Use find_inferior_id.
19565 (check_removed_breakpoints, status_pending_p): New functions.
19566 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19567 Update. Use WNOHANG. Wait for cloned processes also. Update process
19568 struct for the found process.
19569 (linux_wait_for_event): New function.
19570 (linux_wait): Use it. Support LWPs.
19571 (send_sigstop, wait_for_sigstop, stop_all_processes)
19572 (linux_resume_one_process, linux_continue_one_process): New functions.
19573 (linux_resume): Support LWPs.
19574 (REGISTER_RAW_SIZE): Remove.
19575 (fetch_register): Use register_size instead. Call supply_register.
19576 (usr_store_inferior_registers): Likewise. Call collect_register.
19577 Fix recursive case.
19578 (regsets_fetch_inferior_registers): Improve error message.
19579 (regsets_store_inferior_registers): Add debugging.
19580 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19581 (unstopped_p, linux_signal_pid): New functions.
19582 (linux_target_ops): Add linux_signal_pid.
19583 (linux_init_signals): New function.
19584 (initialize_low): Call it. Initialize using_threads.
19585 * regcache.c (inferior_regcache_data): Add valid
19586 flag.
19587 (get_regcache): Fetch registers lazily. Add fetch argument
19588 and update all callers.
19589 (regcache_invalidate_one, regcache_invalidate): New
19590 functions.
19591 (new_register_cache): Renamed from create_register_cache.
19592 Return the new regcache.
19593 (free_register_cache): Change argument to a void *.
19594 (registers_to_string, registers_from_string): Call get_regcache
19595 with fetch flag set.
19596 (register_data): Make static. Pass fetch flag to get_regcache.
19597 (supply_register): Call get_regcache with fetch flag clear.
19598 (collect_register): Call get_regcache with fetch flag set.
19599 (collect_register_as_string): New function.
19600 * regcache.h: Update.
19601 * remote-utils.c (putpkt): Flush after debug output and use
19602 stderr.
19603 Handle input interrupts while waiting for an ACK.
19604 (input_interrupt): Use signal_pid method.
19605 (getpkt): Flush after debug output and use stderr.
19606 (outreg): Use collect_register_as_string.
19607 (new_thread_notify, dead_thread_notify): New functions.
19608 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19609 and general_thread.
19610 (look_up_one_symbol): Flush after debug output.
19611 * server.c (step_thread, server_waiting): New variables.
19612 (start_inferior): Don't use signal_pid. Update call to mywait.
19613 (attach_inferior): Update call to mywait.
19614 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19615 (main): Don't fetch/store registers explicitly. Use
19616 set_desired_inferior. Support proposed ``Hs'' packet. Update
19617 calls to mywait.
19618 * server.h: Update.
19619 (struct inferior_list, struct_inferior_list_entry): New.
19620 * target.c (set_desired_inferior): New.
19621 (write_inferior_memory): Constify.
19622 (mywait): New function.
19623 * target.h: Update.
19624 (struct target_ops): New signal_pid method.
19625 (mywait): Removed macro, added prototype.
19626
19627 * linux-low.h (regset_func): Removed.
19628 (regset_fill_func, regset_store_func): New.
19629 (enum regset_type): New.
19630 (struct regset_info): Add type field. Use new operation types.
19631 (struct linux_target_ops): stop_pc renamed to get_pc.
19632 Add decr_pc_after_break and breakpoint_at.
19633 (get_process, get_thread_proess, get_process_thread)
19634 (strut process_info, all_processes, linux_attach_lwp)
19635 (thread_db_init): New.
19636
19637 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19638 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19639 (the_low_target): Add new members.
19640 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19641 (i386_store_fpxregset): Constify.
19642 (target_regsets): Add new kind identifier.
19643 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19644 (i386_set_pc): Add debugging.
19645 (i386_breakpoint_at): New function.
19646 (the_low_target): Add new members.
19647 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19648 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19649 (mips_breakpoint_at): New.
19650 (the_low_target): Add new members.
19651 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19652 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19653 (the_low_target): Add new members.
19654 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19655 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19656 (the_low_target): Add new members.
19657 * linux-x86-64-low.c (target_regsets): Add new kind
19658 identifier.
19659
196602002-05-15 Daniel Jacobowitz <drow@mvista.com>
19661
19662 From Martin Pool <mbp@samba.org>:
19663 * server.c (gdbserver_usage): New function.
19664 (main): Call it.
19665
196662002-05-14 Daniel Jacobowitz <drow@mvista.com>
19667
19668 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19669 stop_at -> stop_pc.
19670
196712002-05-04 Andrew Cagney <ac131313@redhat.com>
19672
19673 * Makefile.in: Remove obsolete code.
19674
196752002-04-24 Michal Ludvig <mludvig@suse.cz>
19676
19677 * linux-low.c (regsets_fetch_inferior_registers),
19678 (regsets_store_inferior_registers): Removed cast to int from
19679 ptrace() calls.
19680 * regcache.h: Added declaration of struct inferior_info.
19681
196822002-04-20 Daniel Jacobowitz <drow@mvista.com>
19683
19684 * inferiors.c (struct inferior_info): Add regcache_data.
19685 (add_inferior): Call create_register_cache.
19686 (clear_inferiors): Call free_register_cache.
19687 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19688 * regcache.c (struct inferior_regcache_data): New.
19689 (registers): Remove.
19690 (get_regcache): New function.
19691 (create_register_cache, free_register_cache): New functions.
19692 (set_register_cache): Don't initialize the register cache here.
19693 (registers_to_string, registers_from_string, register_data): Call
19694 get_regcache.
19695 * regcache.h: Add prototypes.
19696 * server.h: Likewise.
19697
196982002-04-20 Daniel Jacobowitz <drow@mvista.com>
19699
19700 * mem-break.c: New file.
19701 * mem-break.h: New file.
19702 * Makefile.in: Add mem-break.o rule; update server.h
19703 dependencies.
19704 * inferiors.c (struct inferior_info): Add target_data
19705 member.
19706 (clear_inferiors): Free target_data member if set.
19707 (inferior_target_data, set_inferior_target_data): New functions.
19708 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19709 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19710 * linux-low.c (linux_bp_reinsert): New variable.
19711 (struct inferior_linux_data): New.
19712 (linux_create_inferior): Use set_inferior_target_data.
19713 (linux_attach): Likewise. Call add_inferior.
19714 (linux_wait_for_one_inferior): New function.
19715 (linux_wait): Call it.
19716 (linux_write_memory): Add const.
19717 (initialize_low): Call set_breakpoint_data.
19718 * linux-low.h (struct linux_target_ops): Add breakpoint
19719 handling members.
19720 * server.c (attach_inferior): Remove extra add_inferior
19721 call.
19722 * server.h: Include mem-break.h. Update inferior.c
19723 prototypes.
19724 * target.c (read_inferior_memory)
19725 (write_inferior_memory): New functions.
19726 * target.h (read_inferior_memory)
19727 (write_inferior_memory): Change macros to prototypes.
19728 (struct target_ops): Update comments. Add const to write_memory
19729 definition.
19730
197312002-04-11 Daniel Jacobowitz <drow@mvista.com>
19732
19733 * linux-low.c (usr_store_inferior_registers): Support
19734 registers which are allowed to fail to store.
19735 * linux-low.h (linux_target_ops): Likewise.
19736 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19737 (ppc_cannot_store_register): FPSCR may not be storable.
19738
197392002-04-09 Daniel Jacobowitz <drow@mvista.com>
19740
19741 * server.h: Include <string.h> if HAVE_STRING_H.
19742 * ChangeLog: Correct paths in last ChangeLog entry.
19743
197442002-04-09 Daniel Jacobowitz <drow@mvista.com>
19745
19746 * linux-low.h: Remove obsolete prototypes.
19747 (struct linux_target_ops): New.
19748 (extern the_low_target): New.
19749 * linux-low.c (num_regs, regmap): Remove declarations.
19750 (register_addr): Use the_low_target explicitly.
19751 (fetch_register): Likewise.
19752 (usr_fetch_inferior_registers): Likewise.
19753 (usr_store_inferior_registers): Likewise.
19754 * linux-arm-low.c (num_regs): Remove.
19755 (arm_num_regs): Define.
19756 (arm_regmap): Renamed from regmap, made static.
19757 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19758 made static.
19759 (arm_cannot_store_register): Renamed from cannot_store_register,
19760 made static.
19761 (the_low_target): New.
19762 * linux-i386-low.c (num_regs): Remove.
19763 (i386_num_regs): Define.
19764 (i386_regmap): Renamed from regmap, made static.
19765 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19766 made static.
19767 (i386_cannot_store_register): Renamed from cannot_store_register,
19768 made static.
19769 (the_low_target): New.
19770 * linux-ia64-low.c (num_regs): Remove.
19771 (ia64_num_regs): Define.
19772 (ia64_regmap): Renamed from regmap, made static.
19773 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19774 made static.
19775 (ia64_cannot_store_register): Renamed from cannot_store_register,
19776 made static.
19777 (the_low_target): New.
19778 * linux-m68k-low.c (num_regs): Remove.
19779 (m68k_num_regs): Define.
19780 (m68k_regmap): Renamed from regmap, made static.
19781 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19782 made static.
19783 (m68k_cannot_store_register): Renamed from cannot_store_register,
19784 made static.
19785 (the_low_target): New.
19786 * linux-mips-low.c (num_regs): Remove.
19787 (mips_num_regs): Define.
19788 (mips_regmap): Renamed from regmap, made static.
19789 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19790 made static.
19791 (mips_cannot_store_register): Renamed from cannot_store_register,
19792 made static.
19793 (the_low_target): New.
19794 * linux-ppc-low.c (num_regs): Remove.
19795 (ppc_num_regs): Define.
19796 (ppc_regmap): Renamed from regmap, made static.
19797 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19798 made static.
19799 (ppc_cannot_store_register): Renamed from cannot_store_register,
19800 made static.
19801 (the_low_target): New.
19802 * linux-s390-low.c (num_regs): Remove.
19803 (s390_num_regs): Define.
19804 (s390_regmap): Renamed from regmap, made static.
19805 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19806 made static.
19807 (s390_cannot_store_register): Renamed from cannot_store_register,
19808 made static.
19809 (the_low_target): New.
19810 * linux-sh-low.c (num_regs): Remove.
19811 (sh_num_regs): Define.
19812 (sh_regmap): Renamed from regmap, made static.
19813 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19814 made static.
19815 (sh_cannot_store_register): Renamed from cannot_store_register,
19816 made static.
19817 (the_low_target): New.
19818 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19819 (the_low_target): New.
19820
198212002-04-09 Daniel Jacobowitz <drow@mvista.com>
19822
19823 * Makefile.in: Add stamp-h target.
19824 * configure.in: Create stamp-h.
19825 * configure: Regenerated.
19826
198272002-04-09 Daniel Jacobowitz <drow@mvista.com>
19828
19829 * inferiors.c: New file.
19830 * target.c: New file.
19831 * target.h: New file.
19832 * Makefile.in: Add target.o and inferiors.o. Update
19833 dependencies.
19834 * linux-low.c (inferior_pid): New static variable,
19835 moved from server.c.
19836 (linux_create_inferior): Renamed from create_inferior.
19837 Call add_inferior. Return 0 on success instead of a PID.
19838 (linux_attach): Renamed from myattach.
19839 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19840 (linux_thread_alive): Renamed from mythread_alive.
19841 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19842 child dies.
19843 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19844 (regsets_store_inferior_registers): Correct error message.
19845 Add missing ``return 0''.
19846 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19847 (linux_store_registers): Renamed from store_inferior_registers.
19848 (linux_read_memory): Renamed from read_inferior_memory.
19849 (linux_write_memory): Renamed from write_inferior_memory.
19850 (linux_target_ops): New structure.
19851 (initialize_low): Call set_target_ops ().
19852 * remote-utils.c (unhexify): New function.
19853 (hexify): New function.
19854 (input_interrupt): Send signals to ``signal_pid''.
19855 * server.c (inferior_pid): Remove.
19856 (start_inferior): Update create_inferior call.
19857 (attach_inferior): Call add_inferior.
19858 (handle_query): New function.
19859 (main): Call handle_query for `q' packets.
19860 * server.h: Include "target.h". Remove obsolete prototypes.
19861 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19862
198632002-04-09 Daniel Jacobowitz <drow@mvista.com>
19864
19865 * Makefile.in: Add WARN_CFLAGS. Update configury
19866 dependencies.
19867 * configure.in: Check for <string.h>
19868 * configure: Regenerate.
19869 * config.in: Regenerate.
19870 * gdbreplay.c: Include needed system headers.
19871 (remote_open): Remove strchr prototype.
19872 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19873 * regcache.c (supply_register): Change buf argument to const void *.
19874 (supply_register_by_name): Likewise.
19875 (collect_register): Change buf argument to void *.
19876 (collect_register_by_name): Likewise.
19877 * regcache.h: Add missing prototypes.
19878 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19879 * server.c (handle_query): New function.
19880 (attached): New static variable, moved out of main.
19881 (main): Quiet longjmp clobber warnings.
19882 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19883 * utils.c (error): Remove NORETURN.
19884 (fatal): Likewise.
This page took 2.417838 seconds and 4 git commands to generate.