Move sourcing of development.sh to GDB_AC_COMMON
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2
3 * configure.ac: Don't source bfd/development.sh, move
4 GDB_AC_COMMON higher.
5 * configure: Re-generate.
6
7 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8
9 * configure: Re-generate.
10
11 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12
13 * configure: Re-generate.
14
15 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * .dir-locals.el: New file.
18
19 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
20
21 * .gitattributes: New file.
22
23 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
24
25 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
26 reply into an S reply.
27 * server.cc (disable_packet_T): New global.
28 (captured_main): Set new global when appropriate.
29 * server.h (disable_packet_T): Declare.
30
31 2020-02-21 Tom Tromey <tom@tromey.com>
32
33 * Makefile.in (mostlyclean): New target.
34
35 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
36
37 * target.h (struct process_stratum_target): Remove.
38 (class process_target): Rename to ...
39 (class process_stratum_target): ... this.
40 * linux-low.h (class linux_process_target): Derive from
41 'process_stratum_target'.
42 * linux-low.cc (linux_target_ops): Remove.
43 (initialize_low): Set the_target to the singleton instance of
44 linux_process_target.
45 * lynx-low.h (class lynx_process_target): Derive from
46 'process_stratum_target'.
47 * lynx-low.cc (lynx_target_ops): Remove.
48 (initialize_low): Set the_target to the singleton instance of
49 lynx_process_target.
50 * nto-low.h (class nto_process_target): Derive from
51 'process_stratum_target'.
52 * nto-low.cc (nto_target_ops): Remove.
53 (initialize_low): Set the_target to the singleton instance of
54 nto_process_target.
55 * win32-low.h (class win32_process_target): Derive from
56 'process_stratum_target'.
57 * win32-low.cc (win32_target_ops): Remove.
58 (initialize_low): Set the_target to the singleton instance of
59 win32_process_target.
60
61 Replace 'the_target->pt' with 'the_target' in the uses below.
62
63 * hostio.cc (hostio_error)
64 (handle_setfs)
65 (handle_open)
66 (handle_unlink)
67 (handle_readlink)
68 * linux-aarch32-low.cc (arm_breakpoint_at)
69 * linux-aarch64-low.cc (aarch64_breakpoint_at)
70 * linux-arm-low.cc (arm_sigreturn_next_pc)
71 (arm_get_hwcap)
72 (arm_get_syscall_trapinfo)
73 * linux-cris-low.cc (cris_breakpoint_at)
74 * linux-crisv32-low.cc (cris_breakpoint_at)
75 * linux-low.cc (handle_extended_wait)
76 (linux_wait_1)
77 (linux_read_memory)
78 (linux_process_target::breakpoint_kind_from_pc)
79 (linux_get_auxv)
80 * linux-m32r-low.cc (m32r_breakpoint_at)
81 * linux-mips-low.cc (mips_breakpoint_at)
82 * linux-nios2-low.cc (nios2_breakpoint_at)
83 * linux-ppc-low.cc (ppc_breakpoint_at)
84 * linux-s390-low.cc (s390_get_hwcap)
85 * linux-sh-low.cc (sh_breakpoint_at)
86 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
87 (sparc_store_gregset_from_stack)
88 (sparc_breakpoint_at)
89 * linux-tic6x-low.cc (tic6x_breakpoint_at)
90 * linux-tile-low.cc (tile_breakpoint_at)
91 * linux-x86-low.cc (x86_breakpoint_at)
92 * linux-xtensa-low.cc (xtensa_breakpoint_at)
93 * mem-break.cc (bp_size)
94 (bp_opcode)
95 (insert_memory_breakpoint)
96 (set_raw_breakpoint_at)
97 (delete_raw_breakpoint)
98 (z_type_supported)
99 (uninsert_raw_breakpoint)
100 (reinsert_raw_breakpoint)
101 (validate_inserted_breakpoint)
102 * regcache.cc (regcache_read_pc)
103 (regcache_write_pc)
104 * remote-utils.cc (putpkt_binary_1)
105 (input_interrupt)
106 (getpkt)
107 (prepare_resume_reply)
108 * server.cc (handle_general_set)
109 (handle_detach)
110 (handle_qxfer_auxv)
111 (handle_qxfer_exec_file)
112 (handle_qxfer_libraries_svr4)
113 (handle_qxfer_osdata)
114 (handle_qxfer_siginfo)
115 (handle_qxfer_fdpic)
116 (handle_query)
117 (resume)
118 (handle_v_requests)
119 (queue_stop_reply_callback)
120 (captured_main)
121 * target.cc (prepare_to_access_memory)
122 (done_accessing_memory)
123 (read_inferior_memory)
124 (target_write_memory)
125 (target_stop_and_wait)
126 (target_wait)
127 (target_mourn_inferior)
128 (target_continue_no_signal)
129 (target_continue)
130 (target_supports_multi_process)
131 (kill_inferior)
132 * target.h
133 (target_create_inferior)
134 (target_post_create_inferior)
135 (myattach)
136 (target_supports_fork_events)
137 (target_supports_vfork_events)
138 (target_supports_exec_events)
139 (target_handle_new_gdb_connection)
140 (detach_inferior)
141 (mythread_alive)
142 (fetch_inferior_registers)
143 (store_inferior_registers)
144 (join_inferior)
145 (target_supports_non_stop)
146 (target_async)
147 (target_process_qsupported)
148 (target_supports_catch_syscall)
149 (target_get_ipa_tdesc_idx)
150 (target_supports_tracepoints)
151 (target_supports_fast_tracepoints)
152 (target_get_min_fast_tracepoint_insn_len)
153 (target_thread_stopped)
154 (target_pause_all)
155 (target_unpause_all)
156 (target_stabilize_threads)
157 (target_install_fast_tracepoint_jump_pad)
158 (target_emit_ops)
159 (target_supports_disable_randomization)
160 (target_supports_agent)
161 (target_enable_btrace)
162 (target_disable_btrace)
163 (target_read_btrace)
164 (target_read_btrace_conf)
165 (target_supports_range_stepping)
166 (target_supports_stopped_by_sw_breakpoint)
167 (target_stopped_by_sw_breakpoint)
168 (target_supports_stopped_by_hw_breakpoint)
169 (target_supports_hardware_single_step)
170 (target_stopped_by_hw_breakpoint)
171 (target_breakpoint_kind_from_pc)
172 (target_breakpoint_kind_from_current_state)
173 (target_supports_software_single_step)
174 (target_core_of_thread)
175 (target_thread_name)
176 (target_thread_handle)
177 * win32-low.cc (do_initial_child_stuff)
178
179 Rename target op default definitions listed below.
180
181 * target.cc (process_target::post_create_inferior): Rename as ...
182 (process_stratum_target::post_create_inferior): ... this.
183 (process_target::prepare_to_access_memory): Rename as ...
184 (process_stratum_target::prepare_to_access_memory): ... this.
185 (process_target::done_accessing_memory): Rename as ...
186 (process_stratum_target::done_accessing_memory): ... this.
187 (process_target::look_up_symbols): Rename as ...
188 (process_stratum_target::look_up_symbols): ... this.
189 (process_target::supports_read_auxv): Rename as ...
190 (process_stratum_target::supports_read_auxv): ... this.
191 (process_target::read_auxv): Rename as ...
192 (process_stratum_target::read_auxv): ... this.
193 (process_target::supports_z_point_type): Rename as ...
194 (process_stratum_target::supports_z_point_type): ... this.
195 (process_target::insert_point): Rename as ...
196 (process_stratum_target::insert_point): ... this.
197 (process_target::remove_point): Rename as ...
198 (process_stratum_target::remove_point): ... this.
199 (process_target::stopped_by_sw_breakpoint): Rename as ...
200 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
201 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
202 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
203 (process_target::stopped_by_hw_breakpoint): Rename as ...
204 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
205 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
206 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
207 (process_target::supports_hardware_single_step): Rename as ...
208 (process_stratum_target::supports_hardware_single_step): ... this.
209 (process_target::stopped_by_watchpoint): Rename as ...
210 (process_stratum_target::stopped_by_watchpoint): ... this.
211 (process_target::stopped_data_address): Rename as ...
212 (process_stratum_target::stopped_data_address): ... this.
213 (process_target::supports_read_offsets): Rename as ...
214 (process_stratum_target::supports_read_offsets): ... this.
215 (process_target::read_offsets): Rename as ...
216 (process_stratum_target::read_offsets): ... this.
217 (process_target::supports_get_tls_address): Rename as ...
218 (process_stratum_target::supports_get_tls_address): ... this.
219 (process_target::get_tls_address): Rename as ...
220 (process_stratum_target::get_tls_address): ... this.
221 (process_target::hostio_last_error): Rename as ...
222 (process_stratum_target::hostio_last_error): ... this.
223 (process_target::supports_qxfer_osdata): Rename as ...
224 (process_stratum_target::supports_qxfer_osdata): ... this.
225 (process_target::qxfer_osdata): Rename as ...
226 (process_stratum_target::qxfer_osdata): ... this.
227 (process_target::supports_qxfer_siginfo): Rename as ...
228 (process_stratum_target::supports_qxfer_siginfo): ... this.
229 (process_target::qxfer_siginfo): Rename as ...
230 (process_stratum_target::qxfer_siginfo): ... this.
231 (process_target::supports_non_stop): Rename as ...
232 (process_stratum_target::supports_non_stop): ... this.
233 (process_target::async): Rename as ...
234 (process_stratum_target::async): ... this.
235 (process_target::start_non_stop): Rename as ...
236 (process_stratum_target::start_non_stop): ... this.
237 (process_target::supports_multi_process): Rename as ...
238 (process_stratum_target::supports_multi_process): ... this.
239 (process_target::supports_fork_events): Rename as ...
240 (process_stratum_target::supports_fork_events): ... this.
241 (process_target::supports_vfork_events): Rename as ...
242 (process_stratum_target::supports_vfork_events): ... this.
243 (process_target::supports_exec_events): Rename as ...
244 (process_stratum_target::supports_exec_events): ... this.
245 (process_target::handle_new_gdb_connection): Rename as ...
246 (process_stratum_target::handle_new_gdb_connection): ... this.
247 (process_target::handle_monitor_command): Rename as ...
248 (process_stratum_target::handle_monitor_command): ... this.
249 (process_target::core_of_thread): Rename as ...
250 (process_stratum_target::core_of_thread): ... this.
251 (process_target::supports_read_loadmap): Rename as ...
252 (process_stratum_target::supports_read_loadmap): ... this.
253 (process_target::read_loadmap): Rename as ...
254 (process_stratum_target::read_loadmap): ... this.
255 (process_target::process_qsupported): Rename as ...
256 (process_stratum_target::process_qsupported): ... this.
257 (process_target::supports_tracepoints): Rename as ...
258 (process_stratum_target::supports_tracepoints): ... this.
259 (process_target::read_pc): Rename as ...
260 (process_stratum_target::read_pc): ... this.
261 (process_target::write_pc): Rename as ...
262 (process_stratum_target::write_pc): ... this.
263 (process_target::supports_thread_stopped): Rename as ...
264 (process_stratum_target::supports_thread_stopped): ... this.
265 (process_target::thread_stopped): Rename as ...
266 (process_stratum_target::thread_stopped): ... this.
267 (process_target::supports_get_tib_address): Rename as ...
268 (process_stratum_target::supports_get_tib_address): ... this.
269 (process_target::get_tib_address): Rename as ...
270 (process_stratum_target::get_tib_address): ... this.
271 (process_target::pause_all): Rename as ...
272 (process_stratum_target::pause_all): ... this.
273 (process_target::unpause_all): Rename as ...
274 (process_stratum_target::unpause_all): ... this.
275 (process_target::stabilize_threads): Rename as ...
276 (process_stratum_target::stabilize_threads): ... this.
277 (process_target::supports_fast_tracepoints): Rename as ...
278 (process_stratum_target::supports_fast_tracepoints): ... this.
279 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
280 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
281 (process_target::emit_ops): Rename as ...
282 (process_stratum_target::emit_ops): ... this.
283 (process_target::supports_disable_randomization): Rename as ...
284 (process_stratum_target::supports_disable_randomization): ... this.
285 (process_target::supports_qxfer_libraries_svr4): Rename as ...
286 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
287 (process_target::qxfer_libraries_svr4): Rename as ...
288 (process_stratum_target::qxfer_libraries_svr4): ... this.
289 (process_target::supports_agent): Rename as ...
290 (process_stratum_target::supports_agent): ... this.
291 (process_target::enable_btrace): Rename as ...
292 (process_stratum_target::enable_btrace): ... this.
293 (process_target::disable_btrace): Rename as ...
294 (process_stratum_target::disable_btrace): ... this.
295 (process_target::read_btrace): Rename as ...
296 (process_stratum_target::read_btrace): ... this.
297 (process_target::read_btrace_conf): Rename as ...
298 (process_stratum_target::read_btrace_conf): ... this.
299 (process_target::supports_range_stepping): Rename as ...
300 (process_stratum_target::supports_range_stepping): ... this.
301 (process_target::supports_pid_to_exec_file): Rename as ...
302 (process_stratum_target::supports_pid_to_exec_file): ... this.
303 (process_target::pid_to_exec_file): Rename as ...
304 (process_stratum_target::pid_to_exec_file): ... this.
305 (process_target::supports_multifs): Rename as ...
306 (process_stratum_target::supports_multifs): ... this.
307 (process_target::multifs_open): Rename as ...
308 (process_stratum_target::multifs_open): ... this.
309 (process_target::multifs_unlink): Rename as ...
310 (process_stratum_target::multifs_unlink): ... this.
311 (process_target::multifs_readlink): Rename as ...
312 (process_stratum_target::multifs_readlink): ... this.
313 (process_target::breakpoint_kind_from_pc): Rename as ...
314 (process_stratum_target::breakpoint_kind_from_pc): ... this.
315 (process_target::breakpoint_kind_from_current_state): Rename as ...
316 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
317 (process_target::thread_name): Rename as ...
318 (process_stratum_target::thread_name): ... this.
319 (process_target::thread_handle): Rename as ...
320 (process_stratum_target::thread_handle): ... this.
321 (process_target::supports_software_single_step): Rename as ...
322 (process_stratum_target::supports_software_single_step): ... this.
323 (process_target::supports_catch_syscall): Rename as ...
324 (process_stratum_target::supports_catch_syscall): ... this.
325 (process_target::get_ipa_tdesc_idx): Rename as ...
326 (process_stratum_target::get_ipa_tdesc_idx): ... this.
327
328 2020-02-20 Pedro Alves <palves@redhat.com>
329
330 * target.cc (set_target_ops): Simply copy the given target pointer
331 instead of creating a copy of the pointed object.
332
333 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
334
335 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
336 of process_target.
337
338 * target.h (struct process_stratum_target): Remove the target op.
339 (class process_target): Add the target op.
340 (target_get_ipa_tdesc_idx): Update the macro.
341 * target.cc (process_target::get_ipa_tdesc_idx): Define.
342
343 Update the derived classes and callers below.
344
345 * linux-low.cc (linux_target_ops): Update.
346 (linux_get_ipa_tdesc_idx): Turn into ...
347 (linux_process_target::get_ipa_tdesc_idx): ... this.
348 * linux-low.h (class linux_process_target): Update.
349 * lynx-low.cc (lynx_target_ops): Update.
350 * nto-low.cc (nto_target_ops): Update.
351 * win32-low.cc (win32_target_ops): Update.
352
353 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
354
355 Turn process_stratum_target's supports_catch_syscall op into a
356 method of process_target.
357
358 * target.h (struct process_stratum_target): Remove the target op.
359 (class process_target): Add the target op.
360 (target_supports_catch_syscall): Update the macro.
361 * target.cc (process_target::supports_catch_syscall): Define.
362
363 Update the derived classes and callers below.
364
365 * linux-low.cc (linux_target_ops): Update.
366 (linux_supports_catch_syscall): Turn into ...
367 (linux_process_target::supports_catch_syscall): ... this.
368 * linux-low.h (class linux_process_target): Update.
369 * lynx-low.cc (lynx_target_ops): Update.
370 * nto-low.cc (nto_target_ops): Update.
371 * win32-low.cc (win32_target_ops): Update.
372
373 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
374
375 Turn process_stratum_target's supports_software_single_step op
376 into a method of process_target.
377
378 * target.h (struct process_stratum_target): Remove the target op.
379 (class process_target): Add the target op.
380 (target_supports_software_single_step): Update the macro.
381 * target.cc (process_target::supports_software_single_step): Define.
382
383 Update the derived classes and callers below.
384
385 * linux-low.cc (linux_target_ops): Update.
386 (linux_supports_software_single_step): Turn into ...
387 (linux_process_target::supports_software_single_step): ... this.
388 * linux-low.h (class linux_process_target): Update.
389 * lynx-low.cc (lynx_target_ops): Update.
390 * nto-low.cc (nto_target_ops): Update.
391 * win32-low.cc (win32_target_ops): Update.
392
393 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
394
395 Turn process_stratum_target's thread_name and thread_handle ops
396 into methods of process_target.
397
398 * target.h (struct process_stratum_target): Remove the target ops.
399 (class process_target): Add the target ops.
400 (target_thread_name): Update the macro.
401 (target_thread_handle): Update the macro.
402 * target.cc (process_target::thread_name): Define.
403 (process_target::thread_handle): Define.
404
405 Update the derived classes and callers below.
406
407 * linux-low.cc (linux_target_ops): Update.
408 (linux_process_target::thread_name): Define.
409 (linux_process_target::thread_handle): Define.
410 * linux-low.h (class linux_process_target): Update.
411 * lynx-low.cc (lynx_target_ops): Update.
412 * nto-low.cc (nto_target_ops): Update.
413 * win32-low.cc (win32_target_ops): Update.
414
415 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
416
417 Turn process_stratum_target's breakpoint_kind_from_pc,
418 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
419 ops into methods of process_target.
420
421 * target.h (struct process_stratum_target): Remove the target op.
422 (class process_target): Add the target op.
423 (target_breakpoint_kind_from_pc): Update the macro.
424 (target_breakpoint_kind_from_current_state): Update the macro.
425 (default_breakpoint_kind_from_pc): Remove declaration.
426 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
427 (process_target::breakpoint_kind_from_pc): ... this.
428 (process_target::breakpoint_kind_from_current_state): Define.
429
430 Update the derived classes and callers below.
431
432 * mem-break.cc (bp_size): Update.
433 (bp_opcode): Update.
434 * linux-low.cc (linux_target_ops): Update.
435 (linux_wait_1): Update.
436 (linux_breakpoint_kind_from_pc): Turn into ...
437 (linux_process_target::breakpoint_kind_from_pc): ... this.
438 (linux_sw_breakpoint_from_kind): Turn into ...
439 (linux_process_target::sw_breakpoint_from_kind): ... this.
440 (linux_breakpoint_kind_from_current_state): Turn into ...
441 (linux_process_target::breakpoint_kind_from_current_state): ... this.
442 * linux-low.h (class linux_process_target): Update.
443 * lynx-low.cc (lynx_target_ops): Update.
444 (lynx_process_target::sw_breakpoint_from_kind): Define.
445 * lynx-low.h (class lynx_process_target): Update.
446 * nto-low.cc (nto_target_ops): Update.
447 (nto_sw_breakpoint_from_kind): Turn into ...
448 (nto_process_target::sw_breakpoint_from_kind): ... this.
449 * nto-low.h (class nto_process_target): Update.
450 * win32-low.cc (win32_target_ops): Update.
451 (win32_sw_breakpoint_from_kind): Turn into ...
452 (win32_process_target::sw_breakpoint_from_kind): ... this.
453 * win32-low.h (class win32_process_target): Update.
454
455 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
456
457 Turn process_stratum_target's multifs_open, multifs_readlink,
458 multifs_unlink ops into methods of process_target.
459
460 * target.h (struct process_stratum_target): Remove the target ops.
461 (class process_target): Add the target ops. Also add
462 'supports_multifs'.
463 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
464 "sys/stat.h".
465 (process_target::supports_multifs): Define.
466 (process_target::multifs_open): Define.
467 (process_target::multifs_readlink): Define.
468 (process_target::multifs_unlink): Define.
469
470 Update the derived classes and callers below.
471
472 * hostio.cc (handle_setfs): Update.
473 (handle_open): Update.
474 (handle_unlink): Update.
475 (handle_readlink): Update.
476 * linux-low.cc (linux_target_ops): Update.
477 (linux_process_target::supports_multifs): Define.
478 (linux_process_target::multifs_open): Define.
479 (linux_process_target::multifs_readlink): Define.
480 (linux_process_target::multifs_unlink): Define.
481 * linux-low.h (class linux_process_target): Update.
482 * lynx-low.cc (lynx_target_ops): Update.
483 * nto-low.cc (nto_target_ops): Update.
484 * win32-low.cc (win32_target_ops): Update.
485
486 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
487
488 Turn process_stratum_target's pid_to_exec_file op into a method
489 of process_target.
490
491 * target.h (struct process_stratum_target): Remove the target op.
492 (class process_target): Add the target op. Also add
493 'supports_pid_to_exec_file'.
494 * target.cc (process_target::pid_to_exec_file): Define.
495 (process_target::supports_pid_to_exec_file): Define.
496
497 Update the derived classes and callers below.
498
499 * server.cc (handle_qxfer_exec_file): Update.
500 (handle_query): Update.
501 * linux-low.cc (linux_target_ops): Update.
502 (linux_process_target::supports_pid_to_exec_file): Define.
503 (linux_process_target::pid_to_exec_file): Define.
504 * linux-low.h (class linux_process_target): Update.
505 * lynx-low.cc (lynx_target_ops): Update.
506 * nto-low.cc (nto_target_ops): Update.
507 * win32-low.cc (win32_target_ops): Update.
508
509 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
510
511 Turn process_stratum_target's supports_range_stepping op into a
512 method of process_target.
513
514 * target.h (struct process_stratum_target): Remove the target op.
515 (class process_target): Add the target op.
516 (target_supports_range_stepping): Update the macro.
517 * target.cc (process_target::supports_range_stepping): Define.
518
519 Update the derived classes and callers below.
520
521 * linux-low.cc (linux_target_ops): Update.
522 (linux_supports_range_stepping): Turn into ...
523 (linux_process_target::supports_range_stepping): ... this.
524 * linux-low.h (class linux_process_target): Update.
525 * lynx-low.cc (lynx_target_ops): Update.
526 * nto-low.cc (nto_target_ops): Update.
527 * win32-low.cc (win32_target_ops): Update.
528
529 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
530
531 Turn process_stratum_target's btrace-related ops (enable_btrace,
532 disable_btrace, read_btrace, read_btrace_conf) into methods of
533 process_target.
534
535 * target.h (struct process_stratum_target): Remove the target ops.
536 (class process_target): Add the target ops.
537 (target_enable_btrace): Update.
538 (target_disable_btrace): Update.
539 (target_read_btrace): Update.
540 (target_read_btrace_conf): Update.
541 * target.cc (process_target::enable_btrace): Define.
542 (process_target::disable_btrace): Define.
543 (process_target::read_btrace): Define.
544 (process_target::read_btrace_conf): Define.
545
546 Update the derived classes and callers below.
547
548 * linux-low.cc (linux_target_ops): Update.
549 (linux_process_target:enable_btrace): Define as a wrapper around
550 linux_enable_btrace.
551 (linux_low_disable_btrace): Turn into ...
552 (linux_process_target::disable_btrace): ... this.
553 (linux_low_read_btrace): Turn into ...
554 (linux_process_target::read_btrace): ... this.
555 (linux_low_btrace_conf): Turn into ...
556 (linux_process_target::read_btrace_conf): ... this.
557 * linux-low.h (class linux_process_target): Update.
558 * lynx-low.cc (lynx_target_ops): Update.
559 * nto-low.cc (nto_target_ops): Update.
560 * win32-low.cc (win32_target_ops): Update.
561
562 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
563
564 Turn process_stratum_target's supports_agent op into a method of
565 process_target.
566
567 * target.h (struct process_stratum_target): Remove the target op.
568 (class process_target): Add the target op.
569 (target_supports_agent): Update the macro.
570 * target.cc (process_target::supports_agent): Define.
571
572 Update the derived classes and callers below.
573
574 * linux-low.cc (linux_target_ops): Update.
575 (linux_supports_agent): Turn into ...
576 (linux_process_target::supports_agent): ... this.
577 * linux-low.h (class linux_process_target): Update.
578 * lynx-low.cc (lynx_target_ops): Update.
579 * nto-low.cc (nto_target_ops): Update.
580 * win32-low.cc (win32_target_ops): Update.
581
582 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
583
584 Turn process_stratum_target's qxfer_libraries_svr4 op into a
585 method of process_target.
586
587 * target.h (struct process_stratum_target): Remove the target op.
588 (class process_target): Add the target op. Also add
589 'supports_qxfer_libraries_svr4'.
590 * target.cc (process_target::qxfer_libraries_svr4): Define.
591 (process_target::supports_qxfer_libraries_svr4): Define.
592
593 Update the derived classes and callers below.
594
595 * server.cc (handle_qxfer_libraries_svr4): Update.
596 (handle_query): Update.
597 * linux-low.cc (linux_target_ops): Update.
598 (linux_process_target::supports_qxfer_libraries_svr4): Define.
599 (linux_qxfer_libraries_svr4): Turn into ...
600 (linux_process_target::qxfer_libraries_svr4): ... this.
601 * linux-low.h (class linux_process_target): Update.
602 * lynx-low.cc (lynx_target_ops): Update.
603 * nto-low.cc (nto_target_ops): Update.
604 * win32-low.cc (win32_target_ops): Update.
605
606 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
607
608 Turn process_stratum_target's supports_disable_randomization op
609 into a method of process_target.
610
611 * target.h (struct process_stratum_target): Remove the target op.
612 (class process_target): Add the target op.
613 (target_supports_disable_randomization): Update the macro.
614 * target.cc (process_target::supports_disable_randomization): Define.
615
616 Update the derived classes and callers below.
617
618 * linux-low.cc (linux_target_ops): Update.
619 (linux_supports_disable_randomization): Turn into ...
620 (linux_process_target::supports_disable_randomization): ... this.
621 * linux-low.h (class linux_process_target): Update.
622 * lynx-low.cc (lynx_target_ops): Update.
623 * nto-low.cc (nto_target_ops): Update.
624 * win32-low.cc (win32_target_ops): Update.
625
626 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
627
628 Turn process_stratum_target's emit_ops op into a method of
629 process_target.
630
631 * target.h (struct process_stratum_target): Remove the target op.
632 (class process_target): Add the target op.
633 (target_emit_ops): Update the macro.
634 * target.cc (process_target::emit_ops): Define.
635
636 Update the derived classes and callers below.
637
638 * linux-low.cc (linux_target_ops): Update.
639 (linux_emit_ops): Turn into ...
640 (linux_process_target::emit_ops): ... this.
641 * linux-low.h (class linux_process_target): Update.
642 * lynx-low.cc (lynx_target_ops): Update.
643 * nto-low.cc (nto_target_ops): Update.
644 * win32-low.cc (win32_target_ops): Update.
645
646 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
647
648 Turn process_stratum_target's install_fast_tracepoint_jump_pad
649 and get_min_fast_tracepoint_insn_len ops into methods of
650 process_target.
651
652 * target.h (struct process_stratum_target): Remove the target ops.
653 (class process_target): Add the target ops. Also add
654 'supports_fast_tracepoints'.
655 (target_supports_fast_tracepoints): Update the macro.
656 (target_get_min_fast_tracepoint_insn_len): Update the macro.
657 (install_fast_tracepoint_jump_pad): Update and rename the macro
658 to ...
659 (target_install_fast_tracepoint_jump_pad): ... this.
660 * target.cc (process_target::supports_fast_tracepoints): Define.
661 (process_target::install_fast_tracepoint_jump_pad): Define.
662 (process_target::get_min_fast_tracepoint_insn_len): Define.
663
664 Update the derived classes and callers below.
665
666 * tracepoint.cc (install_fast_tracepoint): Update.
667 * linux-low.cc (linux_target_ops): Update.
668 (linux_process_target::supports_fast_tracepoints): Define.
669 (linux_install_fast_tracepoint_jump_pad): Turn into ...
670 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
671 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
672 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
673 * linux-low.h (class linux_process_target): Update.
674 * lynx-low.cc (lynx_target_ops): Update.
675 * nto-low.cc (nto_target_ops): Update.
676 * win32-low.cc (win32_target_ops): Update.
677
678 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
679
680 Turn process_stratum_target's stabilize_threads op into a
681 method of process_target.
682
683 * target.h (struct process_stratum_target): Remove the target op.
684 (class process_target): Add the target op.
685 (target_stabilize_threads): Update the macro.
686 * target.cc (process_target::stabilize_threads): Define.
687
688 Update the derived classes and callers below.
689
690 * server.cc (handle_status): Update.
691 * tracepoint.cc (cmd_qtdp): Update.
692 (cmd_qtstart): Update.
693 * linux-low.cc (linux_target_ops): Update.
694 (linux_stabilize_threads): Turn into ...
695 (linux_process_target::stabilize_threads): ... this.
696 (linux_wait_1): Update.
697 * linux-low.h (class linux_process_target): Update.
698 * lynx-low.cc (lynx_target_ops): Update.
699 * nto-low.cc (nto_target_ops): Update.
700 * win32-low.cc (win32_target_ops): Update.
701
702 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
703
704 Turn process_stratum_target's pause_all and unpause_all ops
705 into methods of process_target.
706
707 * target.h (struct process_stratum_target): Remove the target ops.
708 (class process_target): Add the target ops.
709 (pause_all): Update the macro and rename to...
710 (target_pause_all): ... this.
711 (unpause_all): Update the macro and rename to...
712 (target_unpause_all): ... this.
713 * target.cc (process_target::pause_all): Define.
714 (process_target::unpause_all): Define.
715
716 Update the derived classes and callers below.
717
718 * server.cc (handle_status): Update.
719 * tracepoint.cc (clear_installed_tracepoints): Update.
720 (cmd_qtdp): Update.
721 (cmd_qtstart): Update.
722 (stop_tracing): Update.
723 (cmd_qtstatus): Update.
724 (upload_fast_traceframes): Update.
725 (run_inferior_command): Update.
726 * linux-low.cc (linux_target_ops): Update.
727 (linux_pause_all): Turn into ...
728 (linux_process_target::pause_all): ... this.
729 (linux_unpause_all): Turn into ...
730 (linux_process_target::unpause_all): ... this.
731 (linux_process_target::prepare_to_access_memory): Update.
732 (linux_process_target::done_accessing_memory): Update.
733 * linux-low.h (class linux_process_target): Update.
734 * lynx-low.cc (lynx_target_ops): Update.
735 * nto-low.cc (nto_target_ops): Update.
736 * win32-low.cc (win32_target_ops): Update.
737
738 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
739
740 Turn process_stratum_target's get_tib_address op into a method of
741 process_target.
742
743 * target.h (struct process_stratum_target): Remove the target op.
744 (class process_target): Add the target op. Also add
745 'supports_get_tib_address'.
746 * target.cc (process_target::get_tib_address): Define.
747 (process_target::supports_get_tib_address): Define.
748
749 Update the derived classes and callers below.
750
751 * server.cc (handle_query): Update.
752 * linux-low.cc (win32_target_ops): Update.
753 * lynx-low.cc (lynx_target_ops): Update.
754 * nto-low.cc (nto_target_ops): Update.
755 * win32-low.cc (win32_target_ops): Update.
756 (win32_process_target::supports_get_tib_address): Define.
757 (win32_get_tib_address): Turn into ...
758 (win32_process_target::get_tib_address): ... this.
759 * win32-low.h (class win32_process_target): Update.
760
761 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
762
763 Turn process_stratum_target's thread_stopped op into a method of
764 process_target.
765
766 * target.h (struct process_stratum_target): Remove the target op.
767 (class process_target): Add the target op. Also add
768 'supports_thread_stopped'.
769 (target_thread_stopped): Update the macro.
770 * target.cc (process_target::thread_stopped): Define.
771 (process_target::supports_thread_stopped): Define.
772 (prepare_to_access_memory): Update.
773
774 Update the derived classes and callers below.
775
776 * server.cc (queue_stop_reply_callback): Update.
777 * linux-low.cc (linux_target_ops): Update.
778 (linux_process_target::supports_thread_stopped): Define.
779 (linux_thread_stopped): Turn into ...
780 (linux_process_target::thread_stopped): ... this.
781 * linux-low.h (class linux_process_target): Update.
782 * lynx-low.cc (lynx_target_ops): Update.
783 * nto-low.cc (nto_target_ops): Update.
784 * win32-low.cc (win32_target_ops): Update.
785
786 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
787
788 Turn process_stratum_target's read_pc and write_pc ops into
789 methods of process_target.
790
791 * target.h (struct process_stratum_target): Remove the target ops.
792 (class process_target): Add the target ops.
793 * target.cc (process_target::read_pc): Define.
794 (process_target::write_pc): Define.
795
796 Update the derived classes and callers below.
797
798 * regcache.cc (regcache_read_pc): Update.
799 (regcache_write_pc): Update.
800 * linux-low.cc (linux_target_ops): Update.
801 (linux_read_pc): Turn into ...
802 (linux_process_target::read_pc): ... this.
803 (linux_write_pc): Turn into ...
804 (linux_process_target::write_pc): ... this.
805 * linux-low.h (class linux_process_target): Update.
806 * lynx-low.cc (lynx_target_ops): Update.
807 * nto-low.cc (nto_target_ops): Update.
808 * win32-low.cc (win32_target_ops): Update.
809
810 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
811
812 Turn process_stratum_target's supports_tracepoints op into a
813 method of process_target.
814
815 * target.h (struct process_stratum_target): Remove the target op.
816 (class process_target): Add the target op.
817 (target_supports_tracepoints): Update the macro.
818 * target.cc (process_target::supports_tracepoints): Define.
819
820 Update the derived classes and callers below.
821
822 * linux-low.cc (linux_target_ops): Update.
823 (linux_supports_tracepoints): Turn into ...
824 (linux_process_target::supports_tracepoints): ... this.
825 * linux-low.h (class linux_process_target): Update.
826 * lynx-low.cc (lynx_target_ops): Update.
827 * nto-low.cc (nto_target_ops): Update.
828 * win32-low.cc (win32_target_ops): Update.
829
830 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
831
832 Turn process_stratum_target's process_qsupported op into a method
833 of process_target.
834
835 * target.h (struct process_stratum_target): Remove the target op.
836 (class process_target): Add the target op.
837 (target_process_qsupported): Update the macro.
838 * target.cc (process_target::process_qsupported): Define.
839
840 Update the derived classes and callers below.
841
842 * linux-low.cc (linux_target_ops): Update.
843 (linux_process_qsupported): Turn into ...
844 (linux_process_target::process_qsupported): ... this.
845 * linux-low.h (class linux_process_target): Update.
846 * lynx-low.cc (lynx_target_ops): Update.
847 * nto-low.cc (nto_target_ops): Update.
848 * win32-low.cc (win32_target_ops): Update.
849
850 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
851
852 Turn process_stratum_target's read_loadmap op into a method of
853 process_target.
854
855 * target.h (struct process_stratum_target): Remove the target op.
856 (class process_target): Add the target op. Also add
857 'supports_read_loadmap'.
858 * target.cc (process_target::read_loadmap): Define.
859 (process_target::supports_read_loadmap): Define.
860
861 Update the derived classes and callers below.
862
863 * server.cc (handle_qxfer_fdpic): Update.
864 (handle_query): Update.
865 * linux-low.cc (linux_target_ops): Update.
866 (linux_process_target::supports_read_loadmap): Define.
867 (linux_read_loadmap): Turn into ...
868 (linux_process_target::read_loadmap): ... this.
869 * linux-low.h (class linux_process_target): Update.
870 * lynx-low.cc (lynx_target_ops): Update.
871 * nto-low.cc (nto_target_ops): Update.
872 * win32-low.cc (win32_target_ops): Update.
873
874 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
875
876 Turn process_stratum_target's core_of_thread op into a method of
877 process_target.
878
879 * target.h (struct process_stratum_target): Remove the target op.
880 (class process_target): Add the target op.
881 (target_core_of_thread): Update the macro.
882 * target.cc (process_target::core_of_thread): Define.
883
884 Update the derived classes and callers below.
885
886 * linux-low.cc (linux_target_ops): Update.
887 (linux_process_target::core_of_thread): Define.
888 * linux-low.h (class linux_process_target): Update.
889 * lynx-low.cc (lynx_target_ops): Update.
890 * nto-low.cc (nto_target_ops): Update.
891 * win32-low.cc (win32_target_ops): Update.
892
893 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
894
895 Turn process_stratum_target's handle_monitor_command op into a
896 method of process_target.
897
898 * target.h (struct process_stratum_target): Remove the target op.
899 (class process_target): Add the target op.
900 (target_handle_monitor_command): Update the macro.
901 * target.cc (process_target::handle_monitor_command): Define.
902
903 Update the derived classes and callers below.
904
905 * server.cc (handle_query): Update.
906 * linux-low.cc (linux_target_ops): Update.
907 (linux_process_target::handle_monitor_command): Define.
908 * linux-low.h (class linux_process_target): Update.
909 * lynx-low.cc (lynx_target_ops): Update.
910 * nto-low.cc (nto_target_ops): Update.
911 * win32-low.cc (win32_target_ops): Update.
912
913 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
914
915 Turn process_stratum_target's handle_new_gdb_connection op into a
916 method of process_target.
917
918 * target.h (struct process_stratum_target): Remove the target op.
919 (class process_target): Add the target op.
920 (target_handle_new_gdb_connection): Update the macro.
921 * target.cc (process_target::handle_new_gdb_connection): Define.
922
923 Update the derived classes and callers below.
924
925 * linux-low.cc (linux_target_ops): Update.
926 (linux_handle_new_gdb_connection): Turn into ...
927 (linux_process_target::handle_new_gdb_connection): ... this.
928 * linux-low.h (class linux_process_target): Update.
929 * lynx-low.cc (lynx_target_ops): Update.
930 * nto-low.cc (nto_target_ops): Update.
931 * win32-low.cc (win32_target_ops): Update.
932
933 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
934
935 Turn process_stratum_target's supports_fork_events,
936 supports_vfork_events, and supports_exec_events ops into methods
937 of process_target.
938
939 * target.h (struct process_stratum_target): Remove the target ops.
940 (class process_target): Add the target ops.
941 (target_supports_fork_events): Update the macro.
942 (target_supports_vfork_events): Update the macro.
943 (target_supports_exec_events): Update the macro.
944 * target.cc (process_target::supports_fork_events): Define.
945 (process_target::supports_vfork_events): Define.
946 (process_target::supports_exec_events): Define.
947
948 Update the derived classes and callers below.
949
950 * linux-low.cc (linux_target_ops): Update.
951 (linux_supports_fork_events): Turn into ...
952 (linux_process_target::supports_fork_events): ... this.
953 (linux_supports_vfork_events): Turn into ...
954 (linux_process_target::supports_vfork_events): ... this.
955 (linux_supports_exec_events): Turn into ...
956 (linux_process_target::supports_exec_events): ... this.
957 * linux-low.h (class linux_process_target): Update.
958 * lynx-low.cc (lynx_target_ops): Update.
959 * nto-low.cc (nto_target_ops): Update.
960 * win32-low.cc (win32_target_ops): Update.
961
962 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
963
964 Turn process_stratum_target's supports_multi_process op into a
965 method of process_target.
966
967 * target.h (struct process_stratum_target): Remove the target op.
968 (class process_target): Add the target op.
969 * target.cc (process_target::supports_multi_process): Define.
970 (target_supports_multi_process): Update.
971
972 Update the derived classes and callers below.
973
974 * linux-low.cc (linux_target_ops): Update.
975 (linux_supports_multi_process): Turn into ...
976 (linux_process_target::supports_multi_process): ... this.
977 * linux-low.h (class linux_process_target): Update.
978 * lynx-low.cc (lynx_target_ops): Update.
979 * nto-low.cc (nto_target_ops): Update.
980 * win32-low.cc (win32_target_ops): Update.
981
982 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
983
984 Turn process_stratum_target's supports_non_stop, async, and
985 start_non_stop ops into methods of process_target.
986
987 * target.h (struct process_stratum_target): Remove the target ops.
988 (class process_target): Add the target ops.
989 (target_supports_non_stop): Update the macro.
990 (target_async): Update the macro.
991 (start_non_stop): Remove declaration.
992 * target.cc (process_target::supports_non_stop): Define.
993 (process_target::async): Define.
994 (process_target::start_non_stop): Define.
995 (start_non_stop): Remove.
996
997 Update the derived classes and callers below.
998
999 * server.cc (handle_qxfer_siginfo): Update.
1000 (handle_query): Update.
1001 * linux-low.cc (linux_target_ops): Update.
1002 (linux_supports_non_stop): Turn into ...
1003 (linux_process_target::supports_non_stop): ... this.
1004 (linux_async): Turn into ...
1005 (linux_process_target::async): ... this.
1006 (linux_start_non_stop): Turn into ...
1007 (linux_process_target::start_non_stop): ... this.
1008 * linux-low.h (class linux_process_target): Update.
1009 * lynx-low.cc (lynx_target_ops): Update.
1010 * nto-low.cc (nto_target_ops): Update.
1011 (nto_supports_non_stop): Remove; rely on the default behavior
1012 instead.
1013 * win32-low.cc (win32_target_ops): Update.
1014
1015 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1016
1017 Turn process_stratum_target's qxfer_siginfo op into a method of
1018 process_target.
1019
1020 * target.h (struct process_stratum_target): Remove the target op.
1021 (class process_target): Add the target op. Also add
1022 'supports_qxfer_siginfo'.
1023 * target.cc (process_target::qxfer_siginfo): Define.
1024 (process_target::supports_qxfer_siginfo): Define.
1025
1026 Update the derived classes and callers below.
1027
1028 * server.cc (handle_qxfer_siginfo): Update.
1029 (handle_query): Update.
1030 * linux-low.cc (linux_target_ops): Update.
1031 (linux_process_target::supports_qxfer_siginfo): Define.
1032 (linux_xfer_siginfo): Turn into ...
1033 (linux_process_target::qxfer_siginfo): ... this.
1034 * linux-low.h (class linux_process_target): Update.
1035 * lynx-low.cc (lynx_target_ops): Update.
1036 * nto-low.cc (nto_target_ops): Update.
1037 * win32-low.cc (win32_target_ops): Update.
1038
1039 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1040
1041 Turn process_stratum_target's qxfer_osdata op into a method of
1042 process_target.
1043
1044 * target.h (struct process_stratum_target): Remove the target op.
1045 (class process_target): Add the target op. Also add
1046 'supports_qxfer_osdata'.
1047 * target.cc (process_target::qxfer_osdata): Define.
1048 (process_target::supports_qxfer_osdata): Define.
1049
1050 Update the derived classes and callers below.
1051
1052 * server.cc (handle_qxfer_osdata): Update.
1053 (handle_query): Update.
1054 * linux-low.cc (linux_target_ops): Update.
1055 (linux_process_target::supports_qxfer_osdata): Define.
1056 (linux_qxfer_osdata): Turn into ...
1057 (linux_process_target::qxfer_osdata): ... this.
1058 * linux-low.h (class linux_process_target): Update.
1059 * lynx-low.cc (lynx_target_ops): Update.
1060 * nto-low.cc (nto_target_ops): Update.
1061 * win32-low.cc (win32_target_ops): Update.
1062
1063 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1064
1065 Turn process_stratum_target's hostio_last_error op into a
1066 method of process_target.
1067
1068 * target.h (struct process_stratum_target): Remove the target op.
1069 (class process_target): Add the target op.
1070 * target.cc: Add "hostio.h" to includes.
1071 (process_target::hostio_last_error): Define.
1072
1073 Update the derived classes and callers below.
1074
1075 * hostio.cc (hostio_error): Update.
1076 * linux-low.cc: Remove "hostio.h" from includes.
1077 (linux_target_ops): Update.
1078 * lynx-low.cc (lynx_target_ops): Update.
1079 * nto-low.cc (nto_target_ops): Update.
1080 * win32-low.h (class win32_process_target): Update.
1081 * win32-low.cc (win32_target_ops): Update.
1082 (wince_hostio_last_error): Turn into ...
1083 (win32_process_target::hostio_last_error): ... this.
1084
1085 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1086
1087 Turn process_stratum_target's get_tls_address op into a method of
1088 process_target.
1089
1090 * target.h (struct process_stratum_target): Remove the target op.
1091 (class process_target): Add the target op. Also add
1092 'supports_get_tls_address'.
1093 * target.cc (process_target::get_tls_address): Define.
1094 (process_target::supports_get_tls_address): Define.
1095
1096 Update the derived classes and callers below.
1097
1098 * server.cc (handle_query): Update.
1099 * linux-low.cc (linux_target_ops): Update.
1100 (linux_process_target::supports_get_tls_address): Define.
1101 (linux_process_target::get_tls_address): Define.
1102 * linux-low.h (class linux_process_target): Update.
1103 * lynx-low.cc (lynx_target_ops): Update.
1104 * nto-low.cc (nto_target_ops): Update.
1105 * win32-low.cc (win32_target_ops): Update.
1106
1107 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1108
1109 Turn process_stratum_target's read_offsets op into a method of
1110 process_target.
1111
1112 * target.h (struct process_stratum_target): Remove the target op.
1113 (class process_target): Add the target op. Also add
1114 'supports_read_offsets'.
1115 * target.cc (process_target::read_offsets): Define.
1116 (process_target::supports_read_offsets): Define.
1117
1118 Update the derived classes and callers below.
1119
1120 * server.cc (handle_query): Update.
1121 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1122 (linux_target_ops): Update.
1123 (linux_process_target::supports_read_offsets): Define.
1124 (linux_read_offsets): Turn into ...
1125 (linux_process_target::read_offsets): ... this.
1126 * linux-low.h (class linux_process_target): Update.
1127 * lynx-low.cc (lynx_target_ops): Update.
1128 * nto-low.cc (nto_target_ops): Update.
1129 * win32-low.cc (win32_target_ops): Update.
1130
1131 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1132
1133 Turn process_stratum_target's stopped_by_watchpoint and
1134 stopped_data_address ops into methods of process_target.
1135
1136 * target.h (struct process_stratum_target): Remove the target ops.
1137 (class process_target): Add the target ops.
1138 * target.cc (process_target::stopped_by_watchpoint): Define.
1139 (process_target::stopped_data_address): Define.
1140
1141 Update the derived classes and callers below.
1142
1143 * remote-utils.cc (prepare_resume_reply): Update.
1144 * linux-low.cc (linux_target_ops): Update.
1145 (linux_stopped_by_watchpoint): Turn into ...
1146 (linux_process_target::stopped_by_watchpoint): ... this.
1147 (linux_stopped_data_address): Turn into ...
1148 (linux_process_target::stopped_data_address): ... this.
1149 * linux-low.h (class linux_process_target): Update.
1150 * lynx-low.cc (lynx_target_ops): Update.
1151 * nto-low.cc (nto_target_ops): Update.
1152 (nto_stopped_by_watchpoint): Turn into ...
1153 (nto_process_target::stopped_by_watchpoint): ... this.
1154 (nto_stopped_data_address): Turn into ...
1155 (nto_process_target::stopped_data_address): ... this.
1156 * nto-low.h (class nto_process_target): Update.
1157 * win32-low.cc (win32_target_ops): Update.
1158 (win32_stopped_by_watchpoint): Turn into ...
1159 (win32_process_target::stopped_by_watchpoint): ... this.
1160 (win32_stopped_data_address): Turn into ...
1161 (win32_process_target::stopped_data_address): ... this.
1162 * win32-low.h (class win32_process_target): Update.
1163
1164 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1165
1166 Turn process_stratum_target's supports_hardware_single_step op into
1167 a method of process_target.
1168
1169 * target.h (struct process_stratum_target): Remove the target op.
1170 (class process_target): Add the target op.
1171 (target_supports_hardware_single_step): Update the macro.
1172 (target_can_do_hardware_single_step): Remove declaration.
1173 * target.cc (process_target::supports_hardware_single_step): Define.
1174 (target_can_do_hardware_single_step): Remove.
1175
1176 Update the derived classes and callers below.
1177
1178 * linux-low.h (class linux_process_target): Update.
1179 * linux-low.cc (linux_target_ops): Update.
1180 (linux_supports_hardware_single_step): Turn into ...
1181 (linux_process_target::supports_hardware_single_step): ... this.
1182 * lynx-low.h (class lynx_process_target): Update.
1183 * lynx-low.cc (lynx_target_ops): Update.
1184 (lynx_process_target::supports_hardware_single_step): Define.
1185 * nto-low.h (class nto_process_target): Update.
1186 * nto-low.cc (nto_target_ops): Update.
1187 (nto_process_target::supports_hardware_single_step): Define.
1188 * win32-low.h (class win32_process_target): Update.
1189 * win32-low.cc (win32_target_ops): Update.
1190 (win32_process_target::supports_hardware_single_step): Define.
1191
1192 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1193
1194 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1195 ops into methods of process_target.
1196
1197 * target.h (struct process_stratum_target): Remove the target ops.
1198 (class process_target): Add the target ops.
1199 (target_stopped_by_hw_breakpoint): Update the macro.
1200 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1201 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1202 (process_target::supports_stopped_by_hw_breakpoint): Define.
1203
1204 Update the derived classes and callers below.
1205
1206 * linux-low.cc (linux_target_ops): Update.
1207 (linux_stopped_by_hw_breakpoint): Turn into ...
1208 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1209 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1210 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1211 * linux-low.h (class linux_process_target): Update.
1212 * lynx-low.cc (lynx_target_ops): Update.
1213 * nto-low.cc (nto_target_ops): Update.
1214 * win32-low.cc (win32_target_ops): Update.
1215
1216 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1217
1218 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1219 ops into methods of process_target.
1220
1221 * target.h (struct process_stratum_target): Remove the target ops.
1222 (class process_target): Add the target ops.
1223 (target_stopped_by_sw_breakpoint): Update the macro.
1224 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1225 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1226 (process_target::supports_stopped_by_sw_breakpoint): Define.
1227
1228 Update the derived classes and callers below.
1229
1230 * linux-low.cc (linux_target_ops): Update.
1231 (linux_stopped_by_sw_breakpoint): Turn into ...
1232 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1233 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1234 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1235 * linux-low.h (class linux_process_target): Update.
1236 * lynx-low.cc (lynx_target_ops): Update.
1237 * nto-low.cc (nto_target_ops): Update.
1238 * win32-low.cc (win32_target_ops): Update.
1239
1240 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1241
1242 Turn process_stratum_target's insert_point and remove_point ops
1243 into methods of process_target.
1244
1245 * target.h (struct process_stratum_target): Remove the target ops.
1246 (class process_target): Add the target ops.
1247 * target.cc (process_target::insert_point): Define.
1248 (process_target::remove_point): Define.
1249
1250 Update the derived classes and callers below.
1251
1252 * mem-break.cc (set_raw_breakpoint_at): Update.
1253 (delete_raw_breakpoint): Update.
1254 (uninsert_raw_breakpoint): Update.
1255 (reinsert_raw_breakpoint): Update.
1256 * linux-low.cc (linux_target_ops): Update.
1257 (linux_insert_point): Turn into ...
1258 (linux_process_target::insert_point): ... this.
1259 (linux_remove_point): Turn into ...
1260 (linux_process_target::remove_point): ... this.
1261 * linux-low.h (class linux_process_target): Update.
1262 * lynx-low.cc (lynx_target_ops): Update.
1263 * nto-low.cc (nto_target_ops): Update.
1264 (nto_insert_point): Turn into ...
1265 (nto_process_target::insert_point): ... this.
1266 (nto_remove_point): Turn into ...
1267 (nto_process_target::remove_point): ... this.
1268 * nto-low.h (class nto_process_target): Update.
1269 * win32-low.cc (win32_target_ops): Update.
1270 (win32_insert_point): Turn into ...
1271 (win32_process_target::insert_point): ... this.
1272 (win32_remove_point): Turn into ...
1273 (win32_process_target::remove_point): ... this.
1274 * win32-low.h (class win32_process_target): Update.
1275
1276 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1277
1278 Turn process_stratum_target's supports_z_point_type op into a
1279 method of process_target.
1280
1281 * target.h (struct process_stratum_target): Remove the target op.
1282 (class process_target): Add the target op.
1283 * target.cc (process_target::supports_z_point_type): Define.
1284
1285 Update the derived classes and callers below.
1286
1287 * mem-break.cc (z_type_supported): Update.
1288 * linux-low.cc (linux_target_ops): Update.
1289 (linux_supports_z_point_type): Turn into ...
1290 (linux_process_target::supports_z_point_type): ... this.
1291 * linux-low.h (class linux_process_target): Update.
1292 * lynx-low.cc (lynx_target_ops): Update.
1293 * nto-low.cc (nto_target_ops): Update.
1294 (nto_supports_z_point_type): Turn into ...
1295 (nto_process_target::supports_z_point_type): ... this.
1296 * nto-low.h (class nto_process_target): Update.
1297 * win32-low.cc (win32_target_ops): Update.
1298 (win32_supports_z_point_type): Turn into ...
1299 (win32_process_target::supports_z_point_type): ... this.
1300 * win32-low.h (class win32_process_target): Update.
1301
1302 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1303
1304 Turn process_stratum_target's read_auxv op into a method of
1305 process_target.
1306
1307 * target.h (class process_stratum_target): Remove the target op.
1308 (struct process_target): Add the target op. Also add
1309 'supports_read_auxv'.
1310 * target.cc (process_target::read_auxv): Define.
1311 (process_target::supports_read_auxv): Define.
1312
1313 Update the derived classes and callers below.
1314
1315 * server.cc (handle_qxfer_auxv): Update.
1316 (handle_query): Update.
1317 * linux-low.cc (linux_target_ops): Update.
1318 (linux_process_target::supports_read_auxv): Define.
1319 (linux_read_auxv): Turn into ...
1320 (linux_process_target::read_auxv): ... this.
1321 * linux-low.h (class linux_process_target): Update.
1322 * lynx-low.cc (lynx_target_ops): Update.
1323 * nto-low.cc (nto_target_ops): Update.
1324 (nto_process_target::supports_read_auxv): Define.
1325 (nto_read_auxv): Turn into ...
1326 (nto_process_target::read_auxv): ... this.
1327 * nto-low.h (class nto_process_target): Update.
1328 * win32-low.cc (win32_target_ops): Update.
1329
1330 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1331
1332 Turn process_stratum_target's request_interrupt op into a method of
1333 process_target.
1334
1335 * target.h (struct process_stratum_target): Remove the target op.
1336 (class process_target): Add the target op.
1337
1338 Update the derived classes and callers below.
1339
1340 * remote-utils.cc (putpkt_binary_1): Update.
1341 (input_interrupt): Update.
1342 (getpkt): Update.
1343 * server.cc (handle_v_requests): Update.
1344 * linux-low.cc (linux_target_ops): Update.
1345 (linux_request_interrupt): Turn into ...
1346 (linux_process_target::request_interrupt): ... this.
1347 * linux-low.h (class linux_process_target): Update.
1348 * lynx-low.cc (lynx_target_ops): Update.
1349 (lynx_request_interrupt): Turn into ...
1350 (lynx_process_target::request_interrupt): ... this.
1351 * lynx-low.h (class lynx_process_target): Update.
1352 * nto-low.cc (nto_target_ops): Update.
1353 (nto_request_interrupt): Turn into ...
1354 (nto_process_target::request_interrupt): ... this.
1355 * nto-low.h (class nto_process_target): Update.
1356 * win32-low.cc (win32_target_ops): Update.
1357 (win32_request_interrupt): Turn into ...
1358 (win32_process_target::request_interrupt): ... this.
1359 * win32-low.h (class win32_process_target): Update.
1360
1361 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1362
1363 Turn process_stratum_target's look_up_symbols op into a method of
1364 process_target.
1365
1366 * target.h (struct process_stratum_target): Remove the target op.
1367 (class process_target): Add the target op.
1368 * target.cc (process_target::look_up_symbols): Define.
1369
1370 Update the derived classes and callers below.
1371
1372 * server.cc (handle_query): Update.
1373 * linux-low.cc (linux_target_ops): Update.
1374 (linux_look_up_symbols): Turn into ...
1375 (linux_process_target::look_up_symbols): ... this.
1376 * linux-low.h (class linux_process_target): Update.
1377 * lynx-low.cc (lynx_target_ops): Update.
1378 * nto-low.cc (nto_target_ops): Update.
1379 * win32-low.cc (win32_target_ops): Update.
1380
1381 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1382
1383 Turn process_stratum_target's read_memory and write_memory
1384 ops into methods of process_target.
1385
1386 * target.h (struct process_stratum_target): Remove the target ops.
1387 (class process_target): Add the target ops.
1388
1389 Update the derived classes and callers below.
1390
1391 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1392 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1393 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1394 (arm_get_syscall_trapinfo): Update.
1395 * linux-cris-low.cc (cris_breakpoint_at): Update.
1396 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1397 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1398 * linux-mips-low.cc (mips_breakpoint_at): Update.
1399 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1400 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1401 * linux-sh-low.cc (sh_breakpoint_at): Update.
1402 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1403 (sparc_store_gregset_from_stack): Update.
1404 (sparc_breakpoint_at): Update.
1405 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1406 * linux-tile-low.cc (tile_breakpoint_at): Update.
1407 * linux-x86-low.cc (x86_breakpoint_at): Update.
1408 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1409 * mem-brea.cc (insert_memory_breakpoint): Update.
1410 (validate_inserted_breakpoint): Update.
1411 * target.cc (read_inferior_memory): Update.
1412 (target_write_memory): Update.
1413 * linux-low.cc (linux_target_ops): Update.
1414 (linux_read_memory): Make a wrapper around the read_memory target
1415 op call.
1416 (linux_process_target::read_memory): Rename from linux_read_memory.
1417 (linux_write_memory): Turn into ...
1418 (linux_process_target::write_memory): ... this.
1419 * linux-low.h (class linux_process_target): Update.
1420 * lynx-low.cc (lynx_target_ops): Update.
1421 (lynx_read_memory): Turn into ...
1422 (lynx_process_target::read_memory): ... this.
1423 (lynx_write_memory): Turn into ...
1424 (lynx_process_target::write_memory): ... this.
1425 * lynx-low.h (class lynx_process_target): Update.
1426 * nto-low.cc (nto_target_ops): Update.
1427 (nto_read_memory): Turn into ...
1428 (nto_process_target::read_memory): ... this.
1429 (nto_write_memory): Turn into ...
1430 (nto_process_target::write_memory): ... this.
1431 * nto-low.h (class nto_process_target): Update.
1432 * win32-low.cc (win32_target_ops): Update.
1433 (win32_read_inferior_memory): Turn into ...
1434 (win32_process_target::read_memory): ... this.
1435 (win32_write_inferior_memory): Turn into ...
1436 (win32_process_target::write_memory): ... this.
1437 * win32-low.h (class win32_process_target): Update.
1438
1439 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1440
1441 Turn process_stratum_target's prepare_to_access_memory and
1442 done_accessing_memory ops into methods of process_target.
1443
1444 * target.h (struct process_stratum_target): Remove the target ops.
1445 (class process_target): Add the target ops.
1446 * target.cc (process_target::prepare_to_access_memory): Define.
1447 (process_target::done_accessing_memory): Define.
1448 (prepare_to_access_memory): Update.
1449 (done_accessing_memory): Update.
1450
1451 Update the derived classes and callers below.
1452
1453 * linux-low.cc (linux_target_ops): Update.
1454 (linux_prepare_to_access_memory): Turn into ...
1455 (linux_process_target::prepare_to_access_memory): ... this.
1456 (linux_done_accessing_memory): Turn into ...
1457 (linux_process_target::done_accessing_memory): ... this.
1458 * linux-low.h (class linux_process_target): Update.
1459 * lynx-low.cc (lynx_target_ops): Update.
1460 * nto-low.cc (nto_target_ops): Update.
1461 * win32-low.cc (win32_target_ops): Update.
1462
1463 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1464
1465 Turn process_stratum_target's fetch_registers and store_registers
1466 ops into methods of process_target.
1467
1468 * target.h (struct process_stratum_target): Remove the target ops.
1469 (class process_target): Add the target ops.
1470 (fetch_inferior_registers): Update the macro.
1471 (store_inferior_registers): Update the macro.
1472
1473 Update the derived classes and callers below.
1474
1475 * linux-low.cc (linux_target_ops): Update.
1476 (linux_fetch_registers): Turn into ...
1477 (linux_process_target::fetch_registers): ... this.
1478 (linux_store_registers): Turn into ...
1479 (linux_process_target::store_registers): ... this.
1480 * linux-low.h (class linux_process_target): Update.
1481 * lynx-low.cc (lynx_target_ops): Update.
1482 (lynx_fetch_registers): Turn into ...
1483 (lynx_process_target::fetch_registers): ... this.
1484 (lynx_store_registers): Turn into ...
1485 (lynx_process_target::store_registers): ... this.
1486 * lynx-low.h (class lynx_process_target): Update.
1487 * nto-low.cc (nto_target_ops): Update.
1488 (nto_fetch_registers): Turn into ...
1489 (nto_process_target::fetch_registers): ... this.
1490 (nto_store_registers): Turn into ...
1491 (nto_process_target::store_registers): ... this.
1492 * nto-low.h (class nto_process_target): Update.
1493 * win32-low.cc (win32_target_ops): Update.
1494 (win32_fetch_inferior_registers): Turn into ...
1495 (win32_process_target::fetch_registers): ... this.
1496 (win32_store_inferior_registers): Turn into ...
1497 (win32_process_target::store_registers): ... this.
1498 * win32-low.h (class win32_process_target): Update.
1499
1500 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1501
1502 Turn process_stratum_target's wait op into a method of
1503 process_target.
1504
1505 * target.h (struct process_stratum_target): Remove the target op.
1506 (class process_target): Add the target op.
1507
1508 Update the derived classes and callers below.
1509
1510 * target.cc (target_wait): Update.
1511 * linux-low.cc (linux_target_ops): Update.
1512 (linux_wait): Turn into ...
1513 (linux_process_target::wait): ... this.
1514 * linux-low.h (class linux_process_target): Update.
1515 * lynx-low.cc (lynx_target_ops): Update.
1516 (lynx_wait): Turn into ...
1517 (lynx_process_target::wait): ... this.
1518 * lynx-low.h (class lynx_process_target): Update.
1519 * nto-low.cc (nto_target_ops): Update.
1520 (nto_wait): Turn into ...
1521 (nto_process_target::wait): ... this.
1522 * nto-low.h (class nto_process_target): Update.
1523 * win32-low.cc (win32_target_ops): Update.
1524 (win32_wait): Turn into ...
1525 (win32_process_target::wait): ... this.
1526 (do_initial_child_stuff): Update.
1527 * win32-low.h (class win32_process_target): Update.
1528
1529 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1530
1531 Turn process_stratum_target's resume op into a method of
1532 process_target.
1533
1534 * target.h (struct process_stratum_target): Remove the target op.
1535 (class process_target): Add the target op.
1536
1537 Update the derived classes and callers below.
1538
1539 * server.cc (resume): Update.
1540 * target.cc (target_stop_and_wait): Update.
1541 (target_continue_no_signal): Update.
1542 (target_continue): Update.
1543 * linux-low.cc (linux_target_ops): Update.
1544 (linux_resume): Turn into ...
1545 (linux_process_target::resume): ... this.
1546 * linux-low.h (class linux_process_target): Update.
1547 * lynx-low.cc (lynx_target_ops): Update.
1548 (lynx_resume): Turn into ...
1549 (lynx_process_target::resume): ... this.
1550 * lynx-low.h (class lynx_process_target): Update.
1551 * nto-low.cc (nto_target_ops): Update.
1552 (nto_resume): Turn into ...
1553 (nto_process_target::resume): ... this.
1554 * nto-low.h (class nto_process_target): Update.
1555 * win32-low.cc (win32_target_ops): Update.
1556 (win32_resume): Turn into ...
1557 (win32_process_target::resume): ... this.
1558 (win32_process_target::detach): Update.
1559 (do_initial_child_stuff): Update.
1560 * win32-low.h (class win32_process_target): Update.
1561
1562 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1563
1564 Turn process_stratum_target's thread_alive op into a method of
1565 process_target.
1566
1567 * target.h (struct process_stratum_target): Remove the target op.
1568 (class process_target): Add the target op.
1569 (mythread_alive): Update the macro.
1570
1571 Update the derived classes and callers below.
1572
1573 * linux-low.cc (linux_target_ops): Update.
1574 (linux_thread_alive): Turn into ...
1575 (linux_process_target::thread_alive): ... this.
1576 (wait_for_sigstop): Update.
1577 * linux-low.h (class linux_process_target): Update.
1578 * lynx-low.cc (lynx_target_ops): Update.
1579 (lynx_thread_alive): Turn into ...
1580 (lynx_process_target::thread_alive): ... this.
1581 * lynx-low.h (class lynx_process_target): Update.
1582 * nto-low.cc (nto_target_ops): Update.
1583 (nto_thread_alive): Turn into ...
1584 (nto_process_target::thread_alive): ... this.
1585 * nto-low.h (class nto_process_target): Update.
1586 * win32-low.cc (win32_target_ops): Update.
1587 (win32_thread_alive): Turn into ...
1588 (win32_process_target::thread_alive): ... this.
1589 * win32-low.h (class win32_process_target): Update.
1590
1591 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1592
1593 Turn process_stratum_target's join op into a method of
1594 process_target.
1595
1596 * target.h (struct process_stratum_target): Remove the target op.
1597 (class process_target): Add the target op.
1598 (join_inferior): Update the macro.
1599
1600 Update the derived classes and callers below.
1601
1602 * linux-low.cc (linux_target_ops): Update.
1603 (linux_join): Turn into ...
1604 (linux_process_target::join): ... this.
1605 * linux-low.h (class linux_process_target): Update.
1606 * lynx-low.cc (lynx_target_ops): Update.
1607 (lynx_join): Turn into ...
1608 (lynx_process_target::join): ... this.
1609 * lynx-low.h (class lynx_process_target): Update.
1610 * nto-low.cc (nto_target_ops): Update.
1611 (nto_process_target::join): Define.
1612 * nto-low.h (class nto_process_target): Update.
1613 * win32-low.cc (win32_target_ops): Update.
1614 (win32_join): Turn into ...
1615 (win32_process_target::join): ... this.
1616 * win32-low.h (class win32_process_target): Update.
1617
1618 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1619
1620 Turn process_stratum_target's mourn op into a method of
1621 process_target.
1622
1623 * target.h (struct process_stratum_target): Remove the target op.
1624 (class process_target): Add the target op.
1625
1626 Update the derived classes and callers below.
1627
1628 * target.cc (target_mourn_inferior): Update.
1629 * linux-low.cc (linux_target_ops): Update.
1630 (linux_mourn): Turn into ...
1631 (linux_process_target::mourn): ... this.
1632 (handle_extended_wait): Update.
1633 (linux_process_target::kill): Update.
1634 (linux_process_target::detach): Update.
1635 * linux-low.h (class linux_process_target): Update.
1636 * lynx-low.cc (lynx_target_ops): Update.
1637 (lynx_mourn): Turn into ...
1638 (lynx_process_target::mourn): ... this.
1639 * lynx-low.h (class lynx_process_target): Update.
1640 * nto-low.cc (nto_target_ops): Update.
1641 (nto_mourn): Turn into ...
1642 (nto_process_target::mourn): ... this.
1643 * nto-low.h (class nto_process_target): Update.
1644 * win32-low.cc (win32_target_ops): Update.
1645 (win32_mourn): Turn into ...
1646 (win32_process_target::mourn): ... this.
1647 * win32-low.h (class win32_process_target): Update.
1648
1649 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1650
1651 Turn process_stratum_target's detach op into a method of
1652 process_target.
1653
1654 * target.h (struct process_stratum_target): Remove the target op.
1655 (class process_target): Add the target op.
1656 (detach_inferior): Update the macro.
1657
1658 Update the derived classes and callers below.
1659
1660 * linux-low.cc (linux_target_ops): Update.
1661 (linux_detach): Turn into ...
1662 (linux_process_target::detach): ... this.
1663 * linux-low.h (class linux_process_target): Update.
1664 * lynx-low.cc (lynx_target_ops): Update.
1665 (lynx_detach): Turn into ...
1666 (lynx_process_target::detach): ... this.
1667 * lynx-low.h (class lynx_process_target): Update.
1668 * nto-low.cc (nto_target_ops): Update.
1669 (nto_detach): Turn into ...
1670 (nto_process_target::detach): ... this.
1671 * nto-low.h (class nto_process_target): Update.
1672 * win32-low.cc (win32_target_ops): Update.
1673 (win32_detach): Turn into ...
1674 (win32_process_target::detach): ... this.
1675 * win32-low.h (class win32_process_target): Update.
1676
1677 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1678
1679 Turn process_stratum_target's kill op into a method of
1680 process_target.
1681
1682 * target.h (struct process_stratum_target): Remove the target op.
1683 (class process_target): Add the target op.
1684
1685 Update the derived classes and callers below.
1686
1687 * target.cc (kill_inferior): Update.
1688 * linux-low.cc (linux_target_ops): Update.
1689 (linux_kill): Turn into ...
1690 (linux_process_target::kill): ... this.
1691 * linux-low.h (class linux_process_target): Update.
1692 * lynx-low.cc (lynx_target_ops): Update.
1693 (lynx_kill): Turn into ...
1694 (lynx_process_target::kill): ... this.
1695 * lynx-low.h (class lynx_process_target): Update.
1696 * nto-low.cc (nto_target_ops): Update.
1697 (nto_kill): Turn into ...
1698 (nto_process_target::kill): ... this.
1699 * nto-low.h (class nto_process_target): Update.
1700 * win32-low.cc (win32_target_ops): Update.
1701 (win32_kill): Turn into ...
1702 (win32_process_target::kill): ... this.
1703 * win32-low.h (class win32_process_target): Update.
1704
1705 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1706
1707 Turn process_stratum_target's attach op into a method of
1708 process_target.
1709
1710 * target.h (struct process_stratum_target): Remove the target op.
1711 (class process_target): Add the target op.
1712 (myattach): Update the macro.
1713
1714 Update the derived classes and callers below.
1715
1716 * linux-low.cc (linux_target_ops): Update.
1717 (linux_attach): Turn into ...
1718 (linux_process_target::attach): ... this.
1719 * linux-low.h (class linux_process_target): Update.
1720 * lynx-low.cc (lynx_target_ops): Update.
1721 (lynx_attach): Turn into ...
1722 (lynx_process_target::attach): ... this.
1723 * lynx-low.h (class lynx_process_target): Update.
1724 * nto-low.cc (nto_target_ops): Update.
1725 (nto_attach): Turn into ...
1726 (nto_process_target::attach): ... this.
1727 * nto-low.h (class nto_process_target): Update.
1728 * win32-low.cc (win32_target_ops): Update.
1729 (win32_attach): Turn into ...
1730 (win32_process_target::attach): ... this.
1731 * win32-low.h (class win32_process_target): Update.
1732
1733 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1734
1735 Turn process_stratum_target's post_create_inferior op into a method
1736 of process_target.
1737
1738 * target.h (struct process_stratum_target): Remove the target op.
1739 (class process_target): Add the target op.
1740 (target_post_create_inferior): Update the macro.
1741 * target.cc (process_target::post_create_inferior): Define.
1742
1743 Update the derived classes and callers below.
1744
1745 * linux-low.cc (linux_target_ops): Update.
1746 (linux_post_create_inferior): Turn into ...
1747 (linux_process_target::post_create_inferior): ... this.
1748 * linux-low.h (class linux_process_target): Update.
1749 * lynx-low.cc (lynx_target_ops): Update.
1750 * nto-low.cc (nto_target_ops): Update.
1751 * win32-low.cc (win32_target_ops): Update.
1752
1753 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1754
1755 Turn process_stratum_target's create_inferior op into a method of
1756 process_target.
1757
1758 * target.h (struct process_stratum_target): Remove the target op.
1759 (class process_target): Add the target op.
1760 (create_inferior): Rename the macro to ...
1761 (target_create_inferior): ... this.
1762
1763 Update the derived classes and callers below.
1764
1765 * server.cc (handle_v_run): Update.
1766 (captured_main): Update.
1767 (process_serial_event): Update.
1768 * linux-low.cc (linux_target_ops): Update.
1769 (linux_create_inferior): Turn into ...
1770 (linux_process_target::create_inferior): ... this.
1771 * linux-low.h (class linux_process_target): Update.
1772 * lynx-low.cc (lynx_target_ops): Update.
1773 (lynx_create_inferior): Turn into ...
1774 (lynx_process_target::create_inferior): ... this.
1775 * lynx-low.h (class lynx_process_target): Update.
1776 * nto-low.cc (nto_target_ops): Update.
1777 (nto_create_inferior): Turn into ...
1778 (nto_process_target::create_inferior): ... this.
1779 * nto-low.h (class nto_process_target): Update.
1780 * win32-low.cc (win32_target_ops): Update.
1781 (win32_create_inferior): Turn into ...
1782 (win32_process_target::create_inferior): ... this.
1783 * win32-low.h (class win32_process_target): Update.
1784
1785 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1786
1787 * target.h (class process_target): New class definition.
1788 (struct process_stratum_target) <pt>: New field with type
1789 'process_target*'.
1790 * linux-low.h (class linux_process_target): Define as a derived
1791 class of 'process_target'.
1792 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1793 as the 'pt' field.
1794 * lynx-low.h (class lynx_process_target): Define as a derived
1795 class of 'process_target'.
1796 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1797 as the 'pt' field.
1798 * nto-low.h (class nto_process_target): Define as a derived
1799 class of 'process_target'.
1800 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1801 as the 'pt' field.
1802 * win32-low.h (class win32_process_target): Define as a derived
1803 class of 'process_target'.
1804 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1805 as the 'pt' field.
1806
1807 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1808
1809 * configure: Regenerate.
1810
1811 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
1812 Andrew Burgess <andrew.burgess@embecosm.com>
1813
1814 * linux-riscv-low.cc: New file.
1815 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1816 and nat/riscv-linux-tdesc.c.
1817 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1818 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1819 Define.
1820
1821 2020-02-14 Tom Tromey <tom@tromey.com>
1822
1823 * acinclude.m4: Don't include acx_configure_dir.m4.
1824 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1825 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1826 (all, install-only, uninstall, clean-info, clean)
1827 (maintainer-clean): Don't recurse.
1828 (subdir_do, all-lib): Remove.
1829 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1830 (GNULIB_H): Remove.
1831 (generated_files): Update.
1832 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1833 * configure: Rebuild.
1834 * configure.ac: Don't configure gnulib or libiberty.
1835 (GNULIB): Update.
1836
1837 2020-02-14 Eli Zaretskii <eliz@gnu.org>
1838
1839 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1840 preparing the command line for CreateProcess.
1841 (win32_create_inferior): Reflect the program name in debugging
1842 output that shows the process and its command line.
1843
1844 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1845
1846 * Makefile.in: Rename source files from .c to .cc.
1847 * %.c: Rename to %.cc.
1848 * configure.ac: Rename server.c to server.cc.
1849 * configure: Re-generate.
1850
1851 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1852
1853 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1854
1855 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
1856
1857 * win32-low.c (win32_create_inferior): Set signal_pid.
1858
1859 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
1860 Pedro Alves <palves@redhat.com>
1861
1862 Skip building gdbserver in a cross-configuration.
1863 * configure.srv: Set $gdbserver_host depending on whether $target
1864 is $host. Use $gdbserver_host instead of $host.
1865
1866 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1867
1868 * configure: Re-generate.
1869
1870 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1871
1872 * configure: Re-generate.
1873
1874 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * acinclude.m4: Update warning.m4 path.
1877
1878 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
1879
1880 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1881 (handle_exception): Set siginfo_er.
1882 (win32_xfer_siginfo): New function.
1883
1884 2020-02-07 Tom Tromey <tom@tromey.com>
1885 Pedro Alves <palves@redhat.com>
1886
1887 * README: Update build documentation.
1888 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1889 host, not target.
1890 * configure.ac: Update paths.
1891 * configure: Rebuild.
1892 * acinclude.m4: Update paths.
1893 * Makefile.in: Update include paths.
1894 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1895 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1896 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1897 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1898 (%-generated.c): Update paths.
1899 * Move entire directory from ../gdb/gdbserver.
1900
1901 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
1902
1903 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1904
1905 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1906
1907 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1908 assignment instead of srv_linux_obj.
1909
1910 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
1911
1912 * server.c (handle_qxfer_libraries): Write segment-address with
1913 paddress.
1914
1915 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
1916
1917 * Makefile.in (install-strip): New target.
1918 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1919 * aclocal.m4: Regenerate.
1920 * configure: Regenerate.
1921 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1922
1923 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1924
1925 * Makefile.in (SFILES): Adjust paths to point to real files.
1926 (OBS): Move waitstatus.o to target/waitstatus.o.
1927 (TAGS): Transform paths appropriately.
1928 (%.o): Rename to...
1929 (nat/%.o): ... this pattern rule.
1930 (%.o): Rename to...
1931 (target/%.o): ... this pattern rule.
1932 * configure.srv: Adjust paths throughout to include nat/ prefix
1933 with the revant files.
1934 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1935 * configure: Regenerate.
1936
1937 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1938
1939 * Makefile.in (TAGS): Remove config files from the recipe.
1940
1941 2020-01-14 Tom Tromey <tom@tromey.com>
1942
1943 * configure: Rebuild.
1944 * configure.ac: Remove any checks that were added to common.m4.
1945 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1946 lib-link.m4.
1947
1948 2020-01-14 Tom Tromey <tom@tromey.com>
1949
1950 * server.h: Include config.h.
1951 * gdbreplay.c: Include config.h.
1952 * configure: Rebuild.
1953 * configure.ac: Don't source common.host.
1954 * acinclude.m4: Update path.
1955 * Makefile.in (INCSUPPORT): New variable.
1956 (INCLUDE_CFLAGS): Add INCSUPPORT.
1957 (SFILES): Update paths.
1958 (version-generated.c): Update path to create-version.sh.
1959 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1960
1961 2020-01-14 Tom Tromey <tom@tromey.com>
1962
1963 * configure.ac (LIBS): Use WIN32APILIBS.
1964 (USE_WIN32API): Don't define.
1965 * configure: Rebuild.
1966
1967 2020-01-14 Tom Tromey <tom@tromey.com>
1968
1969 * configure: Rebuild.
1970
1971 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1972
1973 * Makefile.in (%-generated.c): Remove rule for files from
1974 regformats/i386.
1975
1976 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1977
1978 * configure: Re-generate.
1979
1980 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1981
1982 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1983 Define to static.
1984 * tracepoint.c (stop_tracing, flush_trace_buffer,
1985 about_to_request_buffer_space, get_trace_state_variable_value,
1986 set_trace_state_variable_value, gdb_collect): Add declaration.
1987
1988 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1989
1990 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1991 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1992 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1993 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1994 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1995 static.
1996
1997 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1998
1999 * inferiors.c: Include gdbsupport/common-inferior.h.
2000
2001 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2002
2003 * hostio-errno.c: Include hostio.h.
2004
2005 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2006
2007 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2008 prerequisite.
2009
2010 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2011
2012 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2013 * linux-arm-tdesc.h: Include arch/arm.h.
2014
2015 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2016
2017 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2018
2019 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2020
2021 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2022 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2023
2024 2020-01-10 Pedro Alves <palves@redhat.com>
2025
2026 * fork-child.c (post_fork_inferior): Pass target down to
2027 startup_inferior.
2028 * inferiors.c (switch_to_thread): Add process_stratum_target
2029 parameter.
2030 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2031 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2032 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2033 * remote-utils.c (prepare_resume_reply): Pass the target to
2034 switch_to_thread.
2035 * target.c (the_target): Now a process_stratum_target.
2036 (done_accessing_memory): Pass the target to switch_to_thread.
2037 (set_target_ops): Ajust to use process_stratum_target.
2038 * target.h (struct target_ops): Rename to ...
2039 (struct process_stratum_target): ... this.
2040 (the_target, set_target_ops): Adjust.
2041 (prepare_to_access_memory): Adjust comment.
2042 * win32-low.c (child_xfer_memory): Adjust to use
2043 process_stratum_target.
2044 (win32_target_ops): Now a process_stratum_target.
2045
2046 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2047 Pedro Alves <palves@redhat.com>
2048
2049 * win32-low.c (get_child_debug_event): Extract the fatal exception
2050 from the exit status and convert to the equivalent Posix signal
2051 number.
2052 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2053 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2054
2055 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2056
2057 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2058
2059 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2060
2061 * server.c (gdbserver_version): Change copyright year to 2020.
2062 * gdbreplay.c (gdbreplay_version): Likewise.
2063
2064 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2065
2066 * configure: Regenerate.
2067 * configure.ac: Quote variable arguments of test.
2068
2069 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2070
2071 * Makefile.in: Fix build with GNU Make 3.81
2072
2073 2019-12-16 Tom Tromey <tromey@adacore.com>
2074
2075 * server.c (get_exec_file): Constify result.
2076
2077 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2078
2079 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2080 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2081 * config.in: Regenerate.
2082 * configure: Regenerate.
2083 * configure.ac: Don't check for strerror.
2084 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2085 Call safe_strerror instead of strerror.
2086 * server.h (strerror): Remove this now-unnecessary declaration.
2087 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2088 strerror.
2089 (gdb_agent_helper_thread): Likewise.
2090 * utils.c (perror_with_name): Likewise.
2091
2092 2019-11-26 Tom Tromey <tom@tromey.com>
2093
2094 * configure, config.in: Rebuild.
2095
2096 2019-11-26 Tom Tromey <tom@tromey.com>
2097
2098 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2099 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2100 gdb_sigmask.
2101 * configure, config.in: Rebuild.
2102
2103 2019-11-26 Tom Tromey <tom@tromey.com>
2104
2105 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2106 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2107 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2108 * acinclude.m4: Include ax_pthread.m4.
2109 * config.in, configure: Rebuild.
2110
2111 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2112
2113 * debug.c (debug_set_output): Call safe_strerror instead of
2114 strerror.
2115 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2116 (linux_kill_one_lwp): Likewise.
2117 (linux_detach_one_lwp): Likewise.
2118 (linux_wait_for_event_filtered): Likewise.
2119 (store_register): Likewise.
2120 * lynx-low.c (lynx_attach): Likewise.
2121 * mem-break.c (insert_memory_breakpoint): Likewise.
2122 (remove_memory_breakpoint): Likewise.
2123 (delete_fast_tracepoint_jump): Likewise.
2124 (set_fast_tracepoint_jump): Likewise.
2125 (uninsert_fast_tracepoint_jumps_at): Likewise.
2126 (reinsert_fast_tracepoint_jumps_at): Likewise.
2127 * nto-low.c (nto_xfer_memory): Likewise.
2128 (nto_resume): Likewise.
2129
2130 2019-11-20 Luis Machado <luis.machado@linaro.org>
2131
2132 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2133 instead of register count.
2134 * tdesc.c (tdesc_contains_feature): New function.
2135 * tdesc.h (tdesc_contains_feature): New prototype.
2136
2137 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2138
2139 * Makefile.in: Add safe-strerror.c.
2140 * configure: Regenerate.
2141 * configure.ac: Don't source common.host.
2142
2143 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2144
2145 * config.in: Regenerate.
2146 * configure: Regenerate.
2147
2148 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2149
2150 * ax.c (ax_printf): Handle size_t_arg.
2151
2152 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2153
2154 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2155 * mi/mi-main.c (output_cores): Likewise.
2156 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2157 (linux_xfer_osdata_modules): Likewise.
2158 * remote.c (register_remote_support_xml): Likewise.
2159 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2160 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2161
2162 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2163
2164 * configure: Regenerate.
2165 * configure.ac: Remove check for strerror_r.
2166
2167 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2168
2169 * config.in: Regenerate.
2170 * configure: Regenerate.
2171 * configure.ac: Also check for strerror_r.
2172
2173 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2174
2175 * ax.h (debug_agent): Remove duplicate declaration.
2176
2177 2019-10-26 Tom de Vries <tdevries@suse.de>
2178
2179 * linux-aarch64-low.c: Fix typos in comments.
2180 * linux-arm-low.c: Same.
2181 * linux-low.c: Same.
2182 * linux-ppc-low.c: Same.
2183 * proc-service.c: Same.
2184 * regcache.h: Same.
2185 * server.c: Same.
2186 * tracepoint.c: Same.
2187 * win32-low.c: Same.
2188
2189 2019-10-25 Tom Tromey <tromey@adacore.com>
2190
2191 * utils.c (xstrdup): Remove.
2192
2193 2019-10-23 Tom Tromey <tom@tromey.com>
2194
2195 * configure, config.in: Rebuild.
2196
2197 2019-10-23 Tom Tromey <tom@tromey.com>
2198
2199 * configure: Rebuild.
2200 * acinclude.m4: Use m4_include, not sinclude.
2201
2202 2019-10-17 Tom Tromey <tromey@adacore.com>
2203
2204 * configure: Rebuild.
2205 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2206 in AC_CONFIG_FILES invocation.
2207 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2208 invocation.
2209
2210 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2211
2212 * server.c: Include xml-builtin.h.
2213 (get_xml_features): Don't declare xml_builtins here.
2214
2215 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2216
2217 * Makefile.in: Remove references to vec-ipa.o.
2218
2219 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * Makefile.in: Remove references to vec.c.
2222
2223 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2224
2225 * server.c (server_waiting): Change to bool.
2226 (extended_protocol): Likewise.
2227 (response_needed): Likewise.
2228 (exit_requested): Likewise.
2229 (run_once): Likewise.
2230 (report_no_resumed): Likewise.
2231 (non_stop): Likewise.
2232 (disable_packet_vCont): Likewise.
2233 (disable_packet_Tthread): Likewise.
2234 (disable_packet_qC): Likewise.
2235 (disable_packet_qfThreadInfo): Likewise.
2236 (handle_general_set): Update.
2237 (handle_detach): Update.
2238 (handle_monitor_command): Update.
2239 (handle_query): Update.
2240 (captured_main): Update.
2241 (process_serial_event): Update.
2242 * server.h (server_waiting): Change to bool.
2243 (disable_packet_vCont): Likewise.
2244 (disable_packet_Tthread): Likewise.
2245 (disable_packet_qC): Likewise.
2246 (disable_packet_qfThreadInfo): Likewise.
2247 (run_once): Likewise.
2248 (non_stop): Likewise.
2249 * target.c (target_stop_and_wait): Update.
2250
2251 2019-10-02 Tom Tromey <tromey@adacore.com>
2252
2253 * Makefile.in (SFILES): Add common-inferior.c.
2254 (OBS): Add common-inferior.o.
2255 * server.c (startup_with_shell): Don't define.
2256
2257 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2258
2259 * linux-low.c (linux_low_read_btrace): Update for change to
2260 std::vector.
2261
2262 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2263
2264 * debug.c (debug_threads): Remove comment in favor of the header.
2265 * debug.h (using_threads): Add declaration.
2266 (debug_threads): Add comment.
2267 * linux-aarch64-low.c: Include debug.h and remove declaration of
2268 debug_threads.
2269 * nto-low.c: Likewise.
2270 * remote-utils.c: Likewise.
2271 * thread-db.c: Likewise.
2272
2273 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2274
2275 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2276 and powerpc-cell64l-ipa.o.
2277 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2278 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2279 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2280 (spu*-*-*): Remove.
2281
2282 * spu-low.c: Remove file.
2283
2284 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2285 (parse_spufs_run): Remove.
2286 (ppc_get_pc): Remove Cell/B.E. support.
2287 (ppc_set_pc): Likewise.
2288 (ppc_breakpoint_at): Likewise.
2289 (ppc_arch_setup): Likewise.
2290 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2291 tdesc_powerpc_cell32l.
2292 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2293 or init_registers_powerpc_cell32l.
2294 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2295 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2296 or init_registers_powerpc_cell32l.
2297 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2298 (init_registers_powerpc_cell32l): Remove prototype.
2299 (init_registers_powerpc_cell64l): Likewise.
2300
2301 * target.h (struct target_ops): Remove qxfer_spu member.
2302 * server.c (handle_qxfer_spu): Remove.
2303 (qxfer_packets): Remove entry for "spu".
2304 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2305 * linux-low.c (SPUFS_MAGIC): Remove.
2306 (spu_enumerate_spu_ids): Remove.
2307 (linux_qxfer_spu): Remove.
2308 (linux_target_ops): Remove qxfer_spu member.
2309 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2310 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2311 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2312
2313 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2314
2315 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2316 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2317 * config.in: Regenerate.
2318 * configure: Regenerate.
2319
2320 2019-08-15 Tom Tromey <tromey@adacore.com>
2321
2322 * target.c (target_write_memory): Use gdb::byte_vector.
2323
2324 2019-08-15 Tom Tromey <tromey@adacore.com>
2325
2326 * tracepoint.c (write_inferior_data_pointer)
2327 (write_inferior_integer, write_inferior_int8)
2328 (write_inferior_uinteger, m_tracepoint_action_download)
2329 (r_tracepoint_action_download, x_tracepoint_action_download)
2330 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2331 (download_agent_expr, download_tracepoint_1)
2332 (download_trace_state_variables, upload_fast_traceframes): Update.
2333 * server.c (gdb_write_memory): Update.
2334 * remote-utils.c (relocate_instruction): Update.
2335 * proc-service.c (ps_pdwrite): Update.
2336 * mem-break.c (remove_memory_breakpoint)
2337 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2338 (uninsert_fast_tracepoint_jumps_at)
2339 (reinsert_fast_tracepoint_jumps_at): Update.
2340 * linux-x86-low.c (append_insns)
2341 (i386_install_fast_tracepoint_jump_pad)
2342 (amd64_write_goto_address, i386_write_goto_address): Update.
2343 * linux-s390-low.c (append_insns, s390_write_goto_address):
2344 Update.
2345 * linux-ppc-low.c (ppc_relocate_instruction)
2346 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2347 (ppc_write_goto_address): Update.
2348 * linux-aarch64-low.c (append_insns): Update.
2349 * target.h (struct target_ops): Update.
2350 (write_inferior_memory): Don't declare.
2351 * target.c (target_write_memory): Rename from
2352 write_inferior_memory. Remove old target_write_memory.
2353
2354 2019-08-15 Tom Tromey <tromey@adacore.com>
2355
2356 * target.c (write_inferior_memory): Use std::vector.
2357
2358 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2359
2360 PR build/24886
2361 * configure.ac: Drop enable-libmcheck support.
2362 * configure, config.in: Rebuild.
2363 * acinclude.m4: Don't include it.
2364
2365 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2366
2367 * configure.srv: Remove Arm xml files.
2368
2369 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2370
2371 * configure.srv: Add new files. Remove xml generated files.
2372 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2373 registers.
2374 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2375 * linux-aarch32-tdesc.c: New file.
2376 * linux-aarch32-tdesc.h: New file.
2377 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2378 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2379 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2380 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2381 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2382 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2383 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2384 (arm_read_description): Call arm_linux_read_description.
2385 (initialize_low_arch): Don't init registers.
2386 * linux-arm-tdesc.c: New file.
2387 * linux-arm-tdesc.h: New file.
2388
2389 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2390
2391 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2392 Move counter inside for.
2393 (arm_read_description): Check ptrace earlier.
2394 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2395
2396 2019-07-09 Tom Tromey <tom@tromey.com>
2397
2398 * configure: Rebuild.
2399 * configure.ac: Change common to gdbsupport.
2400 * acinclude.m4: Change common to gdbsupport.
2401 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2402 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2403 common to gdbsupport.
2404 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2405 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2406 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2407 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2408 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2409 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2410 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2411 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2412 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2413 common to gdbsupport.
2414
2415 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2416
2417 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2418 defines.
2419 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2420
2421 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2422
2423 * configure.srv: Remove legacy xml.
2424 * linux-aarch64-low.c (initialize_low_arch): Remove
2425 initialize_low_tdesc call.
2426 * linux-aarch64-tdesc-selftest.c: Remove file.
2427 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2428 * linux-x86-low.c (initialize_low_arch): Remove
2429 initialize_low_tdesc call.
2430 * linux-x86-tdesc-selftest.c: Remove file.
2431 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2432
2433 2019-06-20 Tom de Vries <tdevries@suse.de>
2434
2435 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2436 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2437
2438 2019-06-19 Tom de Vries <tdevries@suse.de>
2439
2440 * debug.h (debug_write): Change return type to ssize_t.
2441 * debug.c (debug_write): Same.
2442
2443 2019-06-14 Tom Tromey <tom@tromey.com>
2444
2445 * configure.ac: Use new path to gnulib.
2446 * configure: Rebuild.
2447 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2448 to gnulib.
2449
2450 2019-06-11 Tom Tromey <tom@tromey.com>
2451
2452 * Makefile.in (SFILES): Add alloc.c.
2453 (OBS): Add alloc.o.
2454 (IPA_OBJS): Add alloc-ipa.o.
2455 (alloc-ipa.o): New target.
2456 (%.o: ../%.c): New pattern rule.
2457
2458 2019-06-10 Tom Tromey <tromey@adacore.com>
2459
2460 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2461 end warning with a newline.
2462 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2463 newline.
2464 * thread-db.c (attach_thread): Don't end warning with a newline.
2465 (thread_db_notice_clone): Likewise.
2466 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2467 newline.
2468 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2469 end warning with a newline.
2470
2471 2019-06-04 Pedro Alves <palves@redhat.com>
2472
2473 * server.c (captured_main): Use make_unique_xstrdup.
2474
2475 2019-06-02 Tom Tromey <tom@tromey.com>
2476
2477 * gdbreplay.c (fromhex): Remove.
2478 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2479
2480 2019-05-29 Tom Tromey <tromey@adacore.com>
2481
2482 * configure: Rebuild.
2483
2484 2019-05-06 Kevin Buettner <kevinb@redhat.com>
2485
2486 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2487 sign extension code on 32-bit builds.
2488
2489 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2490
2491 * remote-utils.c:
2492 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2493
2494 2019-04-19 Tom Tromey <tom@tromey.com>
2495
2496 * server.c (struct vstop_notif): Derive from notif_event.
2497 <base>: Remove.
2498 (queue_stop_reply): Update.
2499 (remove_all_on_match_ptid): Change type. Rewrite.
2500 (discard_queued_stop_replies): Rewrite.
2501 (in_queued_stop_replies_ptid): Change type.
2502 (in_queued_stop_replies): Rewrite.
2503 (notif_stop): Update.
2504 (queue_stop_reply_callback): Update.
2505 (captured_main): Don't call initialize_notif.
2506 (push_stop_notification): Update.
2507 * notif.c (notif_write_event, handle_notif_ack)
2508 (notif_event_enque, notif_push): Update.
2509 (notif_event_xfree, initialize_notif): Remove.
2510 * notif.h (struct notif_event): Include <list>, not
2511 "common/queue.h".
2512 (struct notif_server) <queue>: Now a std::list.
2513 (notif_event_p): Remove typedef.
2514 (initialize_notif): Don't declare.
2515 (struct notif_event): Add virtual destructor.
2516
2517 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2518
2519 * ax.c (ax_vdebug): Call debug_printf.
2520 * debug.c (debug_write): New function.
2521 * debug.h (debug_write): New declaration.
2522 * linux-low.c (sigchld_handler): Call debug_write.
2523
2524 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2525
2526 * debug.c (debug_set_output): New function.
2527 (debug_vprintf): Send output to debug_file.
2528 (debug_flush): Likewise.
2529 * debug.h (debug_set_output): New declaration.
2530 * server.c (handle_monitor_command): Add debug-file option.
2531 (captured_main): Likewise.
2532
2533 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2534
2535 * debug.c (remote_debug): Add definition.
2536 * debug.h (remote_debug): Add declaration.
2537 * hostio.c (remote_debug): Remove declaration.
2538 * remote-utils.c (struct ui_file): Likewise.
2539 (remote_debug): Likewise.
2540 * remote-utils.h (remote_debug): Likewise,
2541 * server.c (remote_debug): Remove definition.
2542
2543 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2544
2545 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2546 when using a 64-bit gdbserver.
2547
2548 2019-04-09 Tom Tromey <tromey@adacore.com>
2549
2550 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2551
2552 2019-04-08 Tom Tromey <tom@tromey.com>
2553
2554 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2555 throw.
2556 (linux_resume_one_lwp): Likewise.
2557
2558 2019-04-08 Tom Tromey <tom@tromey.com>
2559
2560 * gdbreplay.c: Update.
2561 * linux-low.c: Update.
2562 * server.c: Update.
2563
2564 2019-04-08 Tom Tromey <tom@tromey.com>
2565
2566 * server.c: Use C++ exception handling.
2567 * linux-low.c: Use C++ exception handling.
2568 * gdbreplay.c: Use C++ exception handling.
2569
2570 2019-04-08 Tom Tromey <tom@tromey.com>
2571
2572 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2573 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2574 (captured_main, main): Update.
2575 * gdbreplay.c (main): Update.
2576
2577 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2578
2579 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2580 value in argument pointer, return 1 if the entry is found and 0
2581 otherwise. Move comment.
2582 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2583 * linux-low.h (linux_get_auxv): Declare.
2584 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2585
2586 2019-04-05 Tom Tromey <tromey@adacore.com>
2587
2588 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2589 variables.
2590
2591 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2592
2593 * linux-low.c (AT_HWCAP2): Add define if not already included.
2594
2595 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2596
2597 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2598 (aarch64_arch_setup): Call linux_get_hwcap.
2599 * linux-arm-low.c (arm_get_hwcap): Remove function.
2600 (arm_read_description): Call linux_get_hwcap.
2601 * linux-low.c (linux_get_auxv): New function.
2602 (linux_get_hwcap): Likewise.
2603 (linux_get_hwcap2): Likewise.
2604 * linux-low.h (linux_get_hwcap): New declaration.
2605 (linux_get_hwcap2): Likewise.
2606 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2607 (ppc_arch_setup): Call linux_get_hwcap.
2608 * linux-s390-low.c (s390_get_hwcap): Remove function.
2609 (s390_arch_setup): Call linux_get_hwcap.
2610
2611 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2612 Jiong Wang <jiong.wang@arm.com>
2613
2614 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2615 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2616 to fail.
2617 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2618
2619 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2620 Jiong Wang <jiong.wang@arm.com>
2621
2622 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2623 (aarch64_get_hwcap): New function.
2624 (aarch64_arch_setup): Read APIA hwcap.
2625
2626 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2627 Jiong Wang <jiong.wang@arm.com>
2628
2629 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2630 (initialize_low_tracepoint): Likewise.
2631 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2632 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2633 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2634 (aarch64_linux_read_description): Likewise.
2635 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2636
2637 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2638
2639 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2640 i386_create_target_description for 'segments' parameter.
2641 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2642 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2643 * win32-i386-low.c (i386_arch_setup): Likewise.
2644
2645 2019-03-12 Tom Tromey <tromey@adacore.com>
2646
2647 * linux-low.c (iterate_over_lwps): Update.
2648
2649 2019-03-06 Tom Tromey <tom@tromey.com>
2650
2651 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2652 (captured_main): Use SCOPE_EXIT.
2653
2654 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2655
2656 * configure.srv: Use '$enable_unittest' instead of '$development'
2657 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2658 case.
2659
2660 2019-02-27 Tom Tromey <tromey@adacore.com>
2661
2662 * gdbreplay.c (logchar): Handle \r\n.
2663
2664 2019-02-07 Alan Hayward <alan.hayward@arm.com>
2665
2666 * linux-low.c (linux_attach): Add process before lwp.
2667 * server.c (attach_inferior): Check if already attached.
2668
2669 2019-02-07 Tom Tromey <tom@tromey.com>
2670
2671 * x86-tdesc.h: Rename include guard.
2672 * x86-low.h: Add include guard.
2673 * wincecompat.h: Rename include guard.
2674 * win32-low.h: Add include guard.
2675 * utils.h: Rename include guard.
2676 * tracepoint.h: Rename include guard.
2677 * tdesc.h: Rename include guard.
2678 * target.h: Rename include guard.
2679 * server.h: Rename include guard.
2680 * remote-utils.h: Rename include guard.
2681 * regcache.h: Rename include guard.
2682 * nto-low.h: Rename include guard.
2683 * notif.h: Add include guard.
2684 * mem-break.h: Rename include guard.
2685 * lynx-low.h: Add include guard.
2686 * linux-x86-tdesc.h: Add include guard.
2687 * linux-s390-tdesc.h: Add include guard.
2688 * linux-ppc-tdesc-init.h: Add include guard.
2689 * linux-low.h: Add include guard.
2690 * linux-aarch64-tdesc.h: Add include guard.
2691 * linux-aarch32-low.h: Add include guard.
2692 * inferiors.h: Rename include guard.
2693 * i387-fp.h: Rename include guard.
2694 * hostio.h: Rename include guard.
2695 * gdbthread.h: Rename include guard.
2696 * gdb_proc_service.h: Rename include guard.
2697 * event-loop.h: Rename include guard.
2698 * dll.h: Rename include guard.
2699 * debug.h: Rename include guard.
2700 * ax.h: Rename include guard.
2701
2702 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2703
2704 PR gdb/23985
2705 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2706 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2707
2708 2019-01-25 Tom Tromey <tom@tromey.com>
2709
2710 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2711
2712 2019-01-25 Tom Tromey <tom@tromey.com>
2713
2714 * win32-low.c: Fix common/ includes.
2715 * win32-i386-low.c: Fix common/ includes.
2716 * tracepoint.c: Fix common/ includes.
2717 * thread-db.c: Fix common/ includes.
2718 * target.h: Fix common/ includes.
2719 * symbol.c: Fix common/ includes.
2720 * spu-low.c: Fix common/ includes.
2721 * server.h: Fix common/ includes.
2722 * server.c: Fix common/ includes.
2723 * remote-utils.c: Fix common/ includes.
2724 * regcache.h: Fix common/ includes.
2725 * regcache.c: Fix common/ includes.
2726 * nto-x86-low.c: Fix common/ includes.
2727 * notif.h: Fix common/ includes.
2728 * mem-break.h: Fix common/ includes.
2729 * lynx-low.c: Fix common/ includes.
2730 * lynx-i386-low.c: Fix common/ includes.
2731 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2732 * linux-x86-low.c: Fix common/ includes.
2733 * linux-low.c: Fix common/ includes.
2734 * inferiors.h: Fix common/ includes.
2735 * i387-fp.c: Fix common/ includes.
2736 * hostio.c: Fix common/ includes.
2737 * hostio-errno.c: Fix common/ includes.
2738 * gdbthread.h: Fix common/ includes.
2739 * gdbreplay.c: Fix common/ includes.
2740 * fork-child.c: Fix common/ includes.
2741 * event-loop.c: Fix common/ includes.
2742 * ax.c:
2743 (enum gdb_agent_op): Fix common/ includes.
2744
2745 2019-01-21 Tom Tromey <tom@tromey.com>
2746
2747 * tracepoint.c: Fix includes.
2748 * remote-utils.c: Fix includes.
2749 * linux-x86-low.c: Fix includes.
2750
2751 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2752
2753 * gdbreplay.c (gdbreplay_version): Update copyright year in
2754 version message.
2755 * server.c (gdbserver_version): Likewise.
2756
2757 2018-12-05 Alan Hayward <alan.hayward@arm.com>
2758
2759 * linux-low.c (add_lwp): Switch ordering.
2760
2761 2018-11-29 Tom Tromey <tom@tromey.com>
2762
2763 * win32-low.c (win32_join): Take pid, not process.
2764 * target.h (struct target_ops) <join>: Change argument type.
2765 (join_inferior): Change argument name.
2766 * spu-low.c (spu_join): Take pid, not process.
2767 * server.c (handle_detach): Preserve pid before destroying
2768 process.
2769 * lynx-low.c (lynx_join): Take pid, not process.
2770 * linux-low.c (linux_join): Take pid, not process.
2771
2772 2018-11-23 Alan Hayward <alan.hayward@arm.com>
2773
2774 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2775 (aarch64_cannot_fetch_register): Likewise.
2776 (struct linux_target_ops): Update references.
2777
2778 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2779
2780 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2781
2782 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2783
2784 * configure.srv (ipa_ppc_linux_regobj): Add
2785 powerpc-isa207-htm-vsx32l-ipa.o and
2786 powerpc-isa207-htm-vsx64l-ipa.o.
2787 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2788 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2789 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2790 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2791 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2792 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2793 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2794 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2795 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2796 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2797 (init_registers_powerpc_isa207_htm_vsx32l)
2798 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2799 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2800 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2801 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2802 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2803 (ppc_store_tm_ctarregset): New functions.
2804 (ppc_regsets): Add entries for HTM regsets.
2805 (ppc_arch_setup): Set htm in features struct when needed. Set
2806 sizes for the HTM regsets.
2807 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2808 (initialize_low_arch): Call
2809 init_registers_powerpc_isa207_htm_vsx32l and
2810 init_registers_powerpc_isa207_htm_vsx64l.
2811 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2812 PPC_TDESC_ISA207_HTM_VSX.
2813 (initialize_low_tracepoint): Call
2814 init_registers_powerpc_isa207_htm_vsx32l and
2815 init_registers_powerpc_isa207_htm_vsx64l.
2816
2817 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2818
2819 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2820 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2821 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2822 (ppc_store_pmuregset): New functions.
2823 (ppc_regsets): Add entries for ebb and pmu regsets.
2824 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2825 pmu regsets are available. Set sizes for these regsets.
2826
2827 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2828
2829 * configure.srv (ipa_ppc_linux_regobj): Add
2830 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2831 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2832 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2833 rs6000/powerpc-isa207-vsx32l.xml, and
2834 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2835 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2836 <PPC_TDESC_ISA207_VSX>: New enum value.
2837 (init_registers_powerpc_isa207_vsx32l): Declare.
2838 (init_registers_powerpc_isa207_vsx64l): Declare.
2839 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2840 (ppc_store_tarregset): New function.
2841 (ppc_regsets): Add entry for the TAR regset.
2842 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2843 size for the TAR regsets.
2844 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2845 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2846 and init_registers_powerpc_isa207_vsx64l.
2847 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2848 (initialize_low_tracepoint): Call
2849 init_registers_powerpc_isa207_vsx32l and
2850 init_registers_powerpc_isa207_vsx64l.
2851
2852 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2853 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2854
2855 * configure.srv (ipa_ppc_linux_regobj): Add
2856 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2857 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2858 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2859 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2860 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2861 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2862 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2863 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2864 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2865 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2866 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2867 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2868 (ppc_hwcap): Add comment.
2869 (ppc_hwcap2): New global.
2870 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2871 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2872 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2873 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2874 when needed. Set sizes for the the DSCR and PPR regsets.
2875 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2876 (initialize_low_arch): Call
2877 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2878 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2879 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2880 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2881 (initialize_low_tracepoint): Call
2882 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2883 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2884
2885 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2886
2887 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2888
2889 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2890 Simon Marchi <simark@simark.ca>
2891
2892 * acinclude.m4: Include "../selftest.m4".
2893 * configure: Regenerate.
2894 * configure.ac: Use "GDB_AC_SELFTEST".
2895 * configure.srv: Use "$enable_unittests" instead of
2896 "$development" when checking whether unit tests have been
2897 enabled.
2898 * server.c (captured_main): Update message informing that
2899 selftests have been disabled.
2900
2901 2018-10-04 Tom Tromey <tom@tromey.com>
2902
2903 * configure: Rebuild.
2904
2905 2018-10-04 Tom Tromey <tom@tromey.com>
2906
2907 * server.c (handle_status): Rename inner "thread".
2908 (process_serial_event): Declare "res" in 'm' case.
2909 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2910 (iterate_over_lwps): Rename inner "thread".
2911 (linux_qxfer_libraries_svr4): Rename inner "len".
2912 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2913
2914 2018-10-01 Gary Benson <gbenson@redhat.com>
2915
2916 * gdb_proc_service.h: Moved common code to
2917 common/gdb_proc_service.h.
2918
2919 2018-10-01 Gary Benson <gbenson@redhat.com>
2920
2921 * gdb_proc_service.h: Synchronize comments and whitespace with
2922 GDB's version of this file.
2923
2924 2018-09-25 Tom Tromey <tom@tromey.com>
2925
2926 * configure: Rebuild.
2927 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2928
2929 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2932 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2933 ($(IPA_LIB)): Sort IPA_OBJS.
2934
2935 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2936
2937 * Makefile.in: Remove references to $(ADD_DEPS).
2938
2939 2018-09-16 Tom Tromey <tom@tromey.com>
2940
2941 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2942 variables.
2943 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2944 variables.
2945
2946 2018-09-05 Tom Tromey <tom@tromey.com>
2947
2948 * configure: Rebuild.
2949
2950 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2951
2952 PR build/23399
2953 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2954
2955 2018-08-27 Tom Tromey <tom@tromey.com>
2956
2957 PR build/23087:
2958 * configure: Rebuild.
2959
2960 2018-08-27 Tom Tromey <tom@tromey.com>
2961
2962 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2963 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2964 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2965 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2966 (s390x_emit_stack_adjust): Add casts to unsigned char.
2967
2968 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2969
2970 PR gdb/23374
2971 PR gdb/23375
2972 * server.h (struct client_state) <disable_randomization>:
2973 Initialize to 1.
2974
2975 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2976
2977 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2978 variable.
2979 (mips_supply_ptrace_register): Likewise.
2980
2981 2018-07-22 Tom Tromey <tom@tromey.com>
2982
2983 * configure: Rebuild.
2984
2985 2018-07-22 Tom Tromey <tom@tromey.com>
2986
2987 * win32-low.c (win32_create_inferior): Remove unused variables.
2988 * gdbreplay.c (remote_open): Remove unused variable.
2989 * remote-utils.c (remote_prepare): Remove unused variable.
2990 * x86-tdesc.h (X86_TDESC_H): Define.
2991 (amd64_expedite_regs): Define conditionally.
2992 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2993 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2994 * remote-utils.c (readchar): Remove unused variable.
2995
2996 2018-07-13 Pedro Alves <palves@redhat.com>
2997
2998 * linux-low.c (linux_kill): Change parameter to process_info
2999 pointer instead of pid. Adjust.
3000 * lynx-low.c (lynx_kill): Likewise.
3001 * nto-low.c (nto_kill): Likewise.
3002 * spu-low.c (spu_kill): Likewise.
3003 * win32-low.c (win32_kill): Likewise.
3004 * server.c (handle_v_kill, kill_inferior_callback)
3005 (detach_or_kill_for_exit): Adjust.
3006 * target.c (kill_inferior): Change parameter to process_info
3007 pointer instead of pid. Adjust.
3008 * target.h (struct target_ops) <kill>: Change parameter to
3009 process_info pointer instead of pid. Adjust all implementations
3010 and callers.
3011 (kill_inferior): Likewise.
3012
3013 2018-07-13 Pedro Alves <palves@redhat.com>
3014
3015 * linux-low.c (linux_detach, linux_join): Change parameter to
3016 process_info pointer instead of pid. Adjust.
3017 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3018 * nto-low.c (nto_detach): Likewise.
3019 * spu-low.c (spu_detach, spu_join): Likewise.
3020 * win32-low.c (win32_detach, win32_join): Likewise.
3021 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3022 * target.h (struct target_ops) <detach, join>: Change parameter to
3023 process_info pointer instead of pid. Adjust all implementations
3024 and callers.
3025 (detach_inferior, join_inferior): Rename 'pid' parameter to
3026 'proc'.
3027
3028 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3029 Jan Kratochvil <jan.kratochvil@redhat.com>
3030 Paul Fertser <fercerpav@gmail.com>
3031 Tsutomu Seki <sekiriki@gmail.com>
3032
3033 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3034 (OBS): Add 'common/netstuff.o'.
3035 (GDBREPLAY_OBS): Likewise.
3036 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3037 (remote_open): Implement support for IPv6
3038 connections.
3039 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3040 and 'wspiapi.h'.
3041 (handle_accept_event): Accept connections from IPv6 sources.
3042 (remote_prepare): Handle IPv6-style hostnames; implement
3043 support for IPv6 connections.
3044 (remote_open): Implement support for printing connections from
3045 IPv6 sources.
3046
3047 2018-07-11 Pedro Alves <palves@redhat.com>
3048
3049 PR gdb/23377
3050 * mem-break.c (any_persistent_commands): Add process_info
3051 parameter and use it instead of relying on the current process.
3052 Change return type to bool.
3053 * mem-break.h (any_persistent_commands): Add process_info
3054 parameter and change return type to bool.
3055 * server.c (handle_detach): Remove require_running_or_return call.
3056 Look up the process_info for the process we're about to detach.
3057 If not found, return back error to GDB. Adjust
3058 any_persistent_commands call to pass down a process pointer.
3059
3060 2018-07-11 Pedro Alves <palves@redhat.com>
3061
3062 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3063 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3064 instead of collect_register_by_name.
3065 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3066 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3067
3068 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3069 Pedro Alves <palves@redhat.com>
3070
3071 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3072
3073 2018-07-03 Tom Tromey <tom@tromey.com>
3074
3075 * linux-low.c: Update.
3076 * lynx-low.c: Update.
3077 * mem-break.c: Update.
3078 * nto-low.c: Update.
3079 * remote-utils.c: Update.
3080 * server.c: Update.
3081 * spu-low.c: Update.
3082 * target.c: Update.
3083 * win32-low.c: Update.
3084
3085 2018-07-03 Tom Tromey <tom@tromey.com>
3086
3087 * server.c: Update.
3088
3089 2018-07-03 Tom Tromey <tom@tromey.com>
3090
3091 * linux-low.c: Update.
3092
3093 2018-07-03 Tom Tromey <tom@tromey.com>
3094
3095 * target.c: Update.
3096
3097 2018-07-03 Tom Tromey <tom@tromey.com>
3098
3099 * linux-low.c: Update.
3100 * linux-mips-low.c: Update.
3101 * lynx-low.c: Update.
3102 * nto-low.c: Update.
3103 * remote-utils.c: Update.
3104 * server.c: Update.
3105 * spu-low.c: Update.
3106 * target.c: Update.
3107 * thread-db.c: Update.
3108
3109 2018-07-03 Tom Tromey <tom@tromey.com>
3110
3111 * linux-low.c: Update.
3112 * linux-mips-low.c: Update.
3113 * lynx-low.c: Update.
3114 * mem-break.c: Update.
3115 * nto-low.c: Update.
3116 * remote-utils.c: Update.
3117 * server.c: Update.
3118 * spu-low.c: Update.
3119 * target.c: Update.
3120 * tracepoint.c: Update.
3121
3122 2018-07-03 Tom Tromey <tom@tromey.com>
3123
3124 * linux-low.c: Update.
3125 * linux-ppc-low.c: Update.
3126 * linux-x86-low.c: Update.
3127 * proc-service.c: Update.
3128 * server.c: Update.
3129 * spu-low.c: Update.
3130 * thread-db.c: Update.
3131 * win32-low.c: Update.
3132
3133 2018-07-03 Tom Tromey <tom@tromey.com>
3134
3135 * linux-low.c: Update.
3136 * lynx-low.c: Update.
3137 * nto-low.c: Update.
3138 * remote-utils.c: Update.
3139 * spu-low.c: Update.
3140 * thread-db.c: Update.
3141 * win32-low.c: Update.
3142
3143 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3144
3145 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3146 parameter in call to 'amd64_create_target_description'.
3147
3148 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3149
3150 * x86-tdesc.h: Remove executable permission flag.
3151
3152 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3153
3154 * configure.ac: Remove AC_PREREQ, add missing quoting.
3155 * configure: Re-generate.
3156 * config.in: Re-generate.
3157 * aclocal.m4: Re-generate.
3158
3159 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3160
3161 * tracepoint.h (current_traceframe): Remove declaration.
3162
3163 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3164
3165 * linux-aarch64-low.c (is_sve_tdesc): New function.
3166 (aarch64_sve_regs_copy_to_regcache): Likewise.
3167 (aarch64_sve_regs_copy_from_regcache): Likewise.
3168 (aarch64_regs_info): Add SVE checks.
3169 (initialize_low_arch): Initialize SVE.
3170
3171 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3172
3173 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3174
3175 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3176
3177 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3178 (initialize_low_tracepoint): Likewise
3179 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3180 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3181 param.
3182 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3183 checks.
3184 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3185
3186 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3187
3188 * server.h (PBUFSIZ): Increase size
3189
3190 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3191
3192 * regcache.c (regcache::raw_compare): New function.
3193 * regcache.h (regcache::raw_compare): New declaration.
3194
3195 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3196
3197 * regcache.c (new_register_cache): Use new.
3198 (free_register_cache): Use delete.
3199 (register_data): Use const.
3200 (supply_register): Move body inside regcache.
3201 (regcache::raw_supply): New override function.
3202 (collect_register): Move body inside regcache.
3203 (regcache::raw_collect): New override function.
3204 (regcache::get_register_status): New override function.
3205 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3206
3207 2018-06-09 Tom Tromey <tom@tromey.com>
3208
3209 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3210 declare queue.
3211 (event_queue): Use std::queue.
3212 (gdb_event_xfree): Remove.
3213 (initialize_event_loop, process_event, wait_for_event): Update.
3214
3215 2018-06-08 Stan Cox <scox@redhat.com>
3216
3217 * win32-low.c (win32_create_inferior): last_ptid and last_status
3218 moved to client_state.
3219
3220 2018-06-08 Pedro Alves <palves@redhat.com>
3221
3222 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3223 common/common-exceptions.o, common/common-utils.o,
3224 common/errors.o, common/print-utils.o and utils.o.
3225 * gdbreplay.c: Include "common-defs.h" instead of the two
3226 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3227 string.h or alloca.h.
3228 (perror_with_name): Delete.
3229 (remote_open): Use xstrdup instead of strdup.
3230 (main): Rename to ...
3231 (captured_main): ... this.
3232 (main): New.
3233
3234 2018-06-08 Tom Tromey <tom@tromey.com>
3235
3236 * linux-low.c (linux_low_read_btrace): Update.
3237
3238 2018-06-04 Stan Cox <scox@redhat.com>
3239
3240 * server.h (struct client_state): New.
3241 * server.c (cont_thread, general_thread, multi_process)
3242 (report_fork_events, report_vfork_events, report_exec_events)
3243 (report_thread_events, swbreak_feature, hwbreak_feature)
3244 (vCont_supported, disable_randomization, pass_signals)
3245 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3246 Moved to client_state.
3247 * remote-utils.c (remote_debug, noack_mode)
3248 (transport_is_reliable): Moved to client_state.
3249 * tracepoint.c (current_traceframe): Moved to client_state.
3250
3251 Update all callers.
3252 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3253 linux-low.c, remote-utils.h, target.c: Use client_state.
3254
3255 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3256
3257 * configure.srv: Add new c/h file.
3258
3259 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3260
3261 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3262 null VQ.
3263
3264 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3265
3266 * gdb.arch/mips-fpregset-core.exp: New test.
3267 * gdb.arch/mips-fpregset-core.c: New test source.
3268
3269 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3270
3271 PR server/23198
3272 * hostio.c (require_int): Do not report overflow for integers
3273 between 0xfffffff and 0x7fffffff.
3274
3275 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3276
3277 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3278 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3279 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3280 functions.
3281 (the_low_target): Wire them.
3282
3283 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3284
3285 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3286 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3287 mode. Call collect_register_by_name with vscr using
3288 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3289 (ppc_store_vrregset): Add and set vscr_offset variable as in
3290 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3291 vscr_offset.
3292
3293 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3294
3295 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3296 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3297 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3298
3299 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3300
3301 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3302 (ppc_store_vsxregset): Likewise.
3303 (ppc_fill_vrregset): Likewise.
3304 (ppc_store_vrregset): Likewise.
3305 (ppc_fill_evrregset): Likewise.
3306 (ppc_store_evrregset): Likewise.
3307 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3308 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3309 needed.
3310
3311 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3312
3313 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3314 wordsize of the inferior. Call ppc_linux_target_wordsize.
3315
3316 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3317
3318 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3319 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3320 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3321 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3322 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3323 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3324 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3325 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3326 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3327 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3328 (tdesc_powerpc_e500l): Remove.
3329 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3330 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3331 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3332 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3333 linux-ppc-tdesc.h.
3334 (ppc_arch_setup): Remove target description matching code. Fill a
3335 ppc_linux_features struct and call ppc_linux_match_description
3336 with it.
3337
3338 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3339
3340 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3341 width of the requested register exceeds the width of the
3342 `ptrace' data type.
3343 (mips_cannot_store_register): Likewise.
3344
3345 2018-05-21 Maciej W. Rozycki <macro@mips.com>
3346
3347 * linux-mips-low.c (mips_fetch_register): New function. Update
3348 preceding comment.
3349 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3350 (the_low_target): Wire `mips_fetch_register'.
3351
3352 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3353
3354 * lynx-i386-low.c (LYNXOS_178): New macro.
3355 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3356 the layout on LynxOS-178.
3357 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3358 handle floating point registers that are not supported by
3359 LynxOS-178.
3360
3361 2018-05-10 Tom Tromey <tom@tromey.com>
3362
3363 * configure: Rebuild.
3364
3365 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3366
3367 PR server/23158:
3368 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3369 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3370 Use it to set the expedite_regs field in the given tdesc.
3371 * x86-tdesc.h: New file.
3372 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3373 Adjust following the addition of the new expedite_regs parameter
3374 to init_target_desc.
3375 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3376 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3377 (i386_linux_read_description, amd64_linux_read_description):
3378 Adjust following the addition of the new expedite_regs parameter
3379 to init_target_desc.
3380 * lynx-i386-low.c: #include "x86-tdesc.h".
3381 (lynx_i386_arch_setup): Adjust following the addition of the new
3382 expedite_regs parameter to init_target_desc.
3383 * nto-x86-low.c: #include "x86-tdesc.h".
3384 (nto_x86_arch_setup): Adjust following the addition of the new
3385 expedite_regs parameter to init_target_desc.
3386 * win32-i386-low.c: #include "x86-tdesc.h".
3387 (i386_arch_setup): Adjust following the addition of the new
3388 expedite_regs parameter to init_target_desc.
3389
3390 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3391
3392 PR server/23158:
3393 * win32-low.c (win32_create_inferior): Add call to my_wait
3394 setting last_status global.
3395
3396 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3397
3398 PR server/23158:
3399 * win32-low.c (create_process): Only call gdb_tilde_expand if
3400 inferior_cwd is not NULL.
3401
3402 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3403
3404 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3405 registers to the cache if their values have changed.
3406 (i387_xsave_to_cache): Provide default values for x87 control
3407 registers when these features are available, but disabled.
3408 * regcache.c (supply_register_by_name_zeroed): New function.
3409 * regcache.h (supply_register_by_name_zeroed): Declare new
3410 function.
3411
3412 2018-05-07 Tom Tromey <tom@tromey.com>
3413
3414 * configure: Rebuild.
3415
3416 2018-05-04 Tom Tromey <tom@tromey.com>
3417
3418 * configure: Rebuild.
3419
3420 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3421 Pedro Alves <palves@redhat.com>
3422
3423 * linux-aarch64-low.c (aarch64_stopped_data_address):
3424 Likewise.
3425
3426 2018-04-27 Tom Tromey <tom@tromey.com>
3427
3428 * configure: Rebuild.
3429
3430 2018-04-23 Tom Tromey <tom@tromey.com>
3431
3432 * configure: Rebuild.
3433
3434 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3435
3436 * Makefile.in (depcomp): Add "..".
3437 (all_deps_files): New and use it.
3438
3439 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3440
3441 * configure.srv (aarch64*-*-linux*): Don't include xml.
3442 (i[34567]86-*-cygwin*): Likewise.
3443 (i[34567]86-*-linux*): Likewise.
3444 (i[34567]86-*-lynxos*): Likewise.
3445 (i[34567]86-*-mingw32ce*): Likewise.
3446 (i[34567]86-*-mingw*): Likewise.
3447 (i[34567]86-*-nto*): Likewise.
3448 (tic6x-*-uclinux): Likewise.
3449 (x86_64-*-linux*): Likewise.
3450 (x86_64-*-mingw*): Likewise.
3451 (x86_64-*-cygwin*): Likewise.
3452
3453 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3454
3455 * tdesc.c: Remove xml parameter.
3456
3457 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3458
3459 * server.c (get_features_xml): Remove cast.
3460 * tdesc.c (void target_desc::accept): Fill in function.
3461 (tdesc_get_features_xml): Remove old xml creation.
3462 (print_xml_feature::visit_pre): Add xml vistor.
3463 * tdesc.h (struct target_desc): Make xmltarget mutable.
3464 (tdesc_get_features_xml): Remove declaration.
3465
3466 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3467
3468 * tdesc.c (tdesc_architecture_name): Add new function.
3469 (tdesc_osabi_name): Likewise.
3470 (tdesc_get_features_xml): Use new functions.
3471
3472 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3473
3474 * tdesc.c (tdesc_create_flags): Remove.
3475 (tdesc_add_flag): Likewise.
3476 (tdesc_named_type): Likewise.
3477 (tdesc_create_union): Likewise.
3478 (tdesc_create_struct): Likewise.
3479 (tdesc_create_vector): Likewise.
3480 (tdesc_add_bitfield): Likewise.
3481 (tdesc_add_field): Likewise.
3482 (tdesc_set_struct_size): Likewise.
3483
3484 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3485
3486 * tdesc.c (~target_desc): Remove implictly deleted items.
3487 (init_target_desc): Iterate all features.
3488 (tdesc_get_features_xml): Use vector.
3489 (tdesc_create_feature): Create feature.
3490 * tdesc.h (tdesc_feature) Remove
3491 (target_desc): Add features.
3492
3493 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3494
3495 * Makefile.in: Add common/tdesc.c
3496 * tdesc.c (init_target_desc): init all reg_defs from register
3497 vector.
3498 (tdesc_create_reg): Create tdesc_reg.
3499 * tdesc.h (tdesc_feature): Add register vector.
3500
3501 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3502
3503 * tdesc.h (struct target_desc) <features>: Change type to
3504 std::vector<std::string>.
3505 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3506 changes.
3507 (tdesc_get_features_xml): Likewise.
3508 (tdesc_create_feature): Likewise.
3509
3510 2018-03-26 Alan Hayward <alan.hayward@arm.com>
3511
3512 * regcache.c (find_register_by_number): Return a ref.
3513 (find_regno): Use references.
3514 (register_size): Likewise.
3515 (register_data): Likewise.
3516 * tdesc.c (target_desc::~target_desc): Remove free calls.
3517 (target_desc::operator==): Use std::vector compare.
3518 (init_target_desc): Use reference.
3519 (tdesc_create_reg): Use reg constructors.
3520 * tdesc.h (struct target_desc): Replace pointer with object.
3521
3522 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3523
3524 * regcache.c (find_register_by_number): Make static.
3525 (find_regno): Use find_register_by_number
3526 * regcache.h (struct reg): Remove declaration.
3527
3528 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3529
3530 * tdesc.c (target_desc::~target_desc): Move to here.
3531 (target_desc::operator==): Likewise.
3532 * tdesc.h (target_desc::~target_desc): Move from here.
3533 (target_desc::operator==): Likewise.
3534
3535 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3536
3537 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3538
3539 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3540
3541 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3542 S390_TDESC_GS.
3543 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3544 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3545 and init_registers_s390_gs_linux64.
3546
3547 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3548
3549 * linux-s390-low.c (s390_fill_gs): Remove function.
3550 (s390_fill_gsbc): Remove function.
3551 (s390_regsets): Set fill functions for the guarded storage regsets
3552 to NULL.
3553
3554 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3555
3556 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3557 the word size. Add comment.
3558 (s390_get_wordsize): New function.
3559 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3560 pswm with it. Instead, use s390_get_wordsize to determine the
3561 word size first and derive the correct tdesc from that directly.
3562
3563 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3564
3565 * Makefile.in: Include silent-rules.mk.
3566 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3567 (COMPILE): Add ECHO_CXX.
3568 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3569 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3570 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3571 (version-generated.c): Add ECHO_GEN.
3572 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3573 (IPAGENT_COMPILE): Add ECHO_CXX.
3574 (%-generated.c): Add ECHO_REGDAT.
3575
3576 2018-03-14 Tom Tromey <tom@tromey.com>
3577
3578 PR cli/14977:
3579 * ax.c (ax_printf): Special case for NULL.
3580
3581 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3582
3583 * linux-low.c (linux_qxfer_libraries_svr4): Use
3584 xml_escape_text_append.
3585
3586 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3587
3588 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3589
3590 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3591
3592 * server.c (handle_general_set): Remove unnecessary xstrdup.
3593
3594 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3595
3596 * server.c (parse_debug_format_options): Adjust to
3597 delim_string_to_char_ptr_vec changes.
3598 * thread-db.c (thread_db_load_search): Adjust to
3599 dirnames_to_char_ptr_vec changes.
3600
3601 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3602
3603 * target.h (target_enable_btrace, target_disable_btrace)
3604 (target_read_btrace, target_read_btrace_conf): Turn macro into
3605 inline function. Throw error if target method is not defined.
3606 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3607 check for btrace target method. Be prepared to handle exceptions
3608 from btrace target methods.
3609
3610 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3611
3612 * server.c (captured_main): Change order of error message printed
3613 when the current working directory cannot be found.
3614
3615 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3616
3617 * server.c: Include "filenames.h" and "pathstuff.h".
3618 (program_name): Delete variable.
3619 (program_path): New anonymous class.
3620 (get_exec_wrapper): Use "program_path" instead of
3621 "program_name".
3622 (handle_v_run): Likewise.
3623 (captured_main): Likewise.
3624 (process_serial_event): Likewise.
3625
3626 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3627
3628 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3629 (OBJS): Add "pathstuff.o".
3630 * server.c (current_directory): New global variable.
3631 (captured_main): Initialize "current_directory".
3632
3633 2018-02-26 Alan Hayward <alan.hayward@arm.com>
3634
3635 * tdesc.c: Use common/tdesc.h.
3636 * tdesc.h: Likewise.
3637
3638 2018-02-20 Alan Hayward <alan.hayward@arm.com>
3639 Simon Marchi <simon.marchi@ericsson.com>
3640
3641 * Makefile.in: Switch order of make rules.
3642
3643 2018-02-19 Alan Hayward <alan.hayward@arm.com>
3644
3645 * Makefile.in: Add common directory in build.
3646 * configure.ac: Add common reference.
3647 * configure: Regenerate.
3648
3649 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3650
3651 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3652 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3653 * spu-low.c (spu_target_ops): Likewise.
3654 * win32-low.c (win32_target_ops): Likewise.
3655 * server.c (supported_btrace_packets): Report packets unconditionally.
3656 * target.h (target_ops) <supports_btrace>: Remove.
3657 (target_supports_btrace): Remove.
3658
3659 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3660
3661 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3662 (handle_btrace_disable): Change return type to void. Use exceptions
3663 to report errors.
3664 (handle_btrace_general_set): Catch exception and copy message to
3665 return message.
3666
3667 2018-02-08 Tom Tromey <tom@tromey.com>
3668
3669 * linux-low.c (install_software_single_step_breakpoints): Use
3670 make_scoped_restore.
3671 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3672 (do_restore_current_thread_cleanup): Remove.
3673 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3674 declare.
3675
3676 2018-02-08 Tom Tromey <tom@tromey.com>
3677
3678 * mem-break.c (set_raw_breakpoint_at): Use
3679 gdb::unique_xmalloc_ptr.
3680
3681 2018-01-30 Pedro Alves <palves@redhat.com>
3682
3683 PR gdb/13211
3684 * target.c (target_terminal::terminal_state): Rename to ...
3685 (target_terminal::m_terminal_state): ... this.
3686
3687 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3688
3689 * linux-low.c (handle_extended_wait): Surround call to
3690 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3691
3692 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3693
3694 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3695 linux_ptrace_attach_fail_reason_string now returning an
3696 std::string.
3697 (linux_attach): Likewise.
3698 * thread-db.c (attach_thread): Likewise.
3699
3700 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3701
3702 PR gdb/21559
3703 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3704 checking for fs_base/gs_base fields in struct user_regs_struct.
3705 * configure: Regenerate.
3706
3707 2018-01-16 Yao Qi <yao.qi@linaro.org>
3708
3709 PR gdb/18749
3710 * linux-low.c (fetch_register): Call supply_register instead of
3711 error.
3712
3713 2018-01-08 Yao Qi <yao.qi@linaro.org>
3714 Simon Marchi <simon.marchi@ericsson.com>
3715
3716 * Makefile.in (OBS): Remove selftest.o.
3717 * configure.ac: Set srv_selftest_objs if $development is true.
3718 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3719 * configure: Re-generated.
3720 * server.c (captured_main): Wrap variable selftest_filter with
3721 GDB_SELF_TEST.
3722
3723 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3724
3725 * server.c (parse_debug_format_options): Return std::string.
3726 (handle_monitor_command, captured_main): Adjust.
3727
3728 2018-01-05 Pedro Alves <palves@redhat.com>
3729
3730 PR gdb/18653
3731 * server.c (captured_main): Pass quiet=false to
3732 save_original_signals_state.
3733
3734 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3735
3736 * gdbreplay.c (gdbreplay_version): Update copyright year in
3737 version message.
3738 * server.c (gdbserver_version): Likewise.
3739
3740 2017-12-08 Tom Tromey <tom@tromey.com>
3741
3742 * ax.c (ax_printf): Update.
3743
3744 2017-12-07 Yao Qi <yao.qi@linaro.org>
3745
3746 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3747 aarch64_linux_read_description.
3748 * linux-amd64-ipa.c (idx2mask): New array.
3749 (get_ipa_tdesc): Move idx2mask out.
3750 (initialize_low_tracepoint): Initialize target descriptions.
3751 * linux-i386-ipa.c (idx2mask): New array.
3752 (get_ipa_tdesc): Move idx2mask out.
3753 (initialize_low_tracepoint): Initialize target descriptions.
3754
3755 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3756
3757 * tdesc.c (struct tdesc_type): Change return type.
3758 (tdesc_add_flag): Change parameter type.
3759 (tdesc_add_bitfield): Likewise.
3760 (tdesc_add_field): Likewise.
3761 (tdesc_set_struct_size): Likewise.
3762
3763 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3764
3765 * regcache.c (registers_to_string): Remove unused variable.
3766
3767 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3768
3769 * inferiors.c (for_each_inferior_with_data): Remove.
3770 * inferiors.h (for_each_inferior_with_data): Remove.
3771 * server.c (handle_qxfer_threads_worker): Change parameter type.
3772 (handle_qxfer_threads_proper): Use for_each_thread.
3773
3774 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3775
3776 * inferiors.c (for_each_inferior): Remove.
3777 (clear_inferiors): Use for_each_thread.
3778 * inferiors.h (for_each_inferior): Remove.
3779 * linux-low.c (linux_wait_for_event_filtered): Use
3780 for_each_thread.
3781 (linux_stabilize_threads): Likewise.
3782 * regcache.c (regcache_release): Likewise.
3783 * server.c (gdb_wants_all_threads_stopped): Likewise.
3784 (clear_pending_status_callback): Remove.
3785 (handle_status): Use for_each_thread.
3786 (captured_main): Likewise.
3787 * win32-low.c (child_init_thread_list): Likewise.
3788 (win32_clear_inferiors): Likewise.
3789 (fake_breakpoint_event): Likewise.
3790
3791 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3792
3793 * inferiors.h (find_inferior): Remove.
3794 * inferiors.c (find_inferior): Remove.
3795
3796 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3797
3798 * linux-low.c (resume_status_pending_p): Update comment.
3799 (need_step_over_p): Update comment.
3800
3801 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3802
3803 * linux-low.c (proceed_one_lwp): Return void, change parameter
3804 type.
3805 (unsuspend_and_proceed_one_lwp): Likewise.
3806 (proceed_all_lwps): Use for_each_thread.
3807 (unstop_all_lwps): Likewise.
3808
3809 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3810
3811 * linux-low.c (linux_resume_one_thread): Return void, take
3812 parameter directly.
3813 (linux_resume): Use for_each_thread.
3814
3815 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3816
3817 * linux-low.c (send_sigstop_callback): Return void, change
3818 parameter type. Rename to...
3819 (send_sigstop): ... this.
3820 (suspend_and_send_sigstop_callback): Return void, change parameter
3821 type. Rename to...
3822 (suspend_and_send_sigstop): ... this.
3823 (stop_all_lwps): Use for_each_thread.
3824
3825 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3826
3827 * linux-low.c (lwp_running): Return bool, remove unused
3828 argument.
3829 (linux_stabilize_threads): Use find_thread.
3830
3831 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3832
3833 * linux-low.c (select_singlestep_lwp_callback): Remove.
3834 (count_events_callback): Remove.
3835 (select_event_lwp_callback): Remove.
3836 (select_event_lwp): Use find_thread/for_each_thread.
3837
3838 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3839
3840 * linux-low.c (not_stopped_callback): Return bool, take filter
3841 argument directly.
3842 (linux_wait_for_event_filtered): Use find_thread.
3843 (linux_wait_1): Likewise.
3844
3845 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3846
3847 * linux-low.c (same_lwp): Remove.
3848 (find_lwp_pid): Use find_thread.
3849
3850 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3851
3852 * linux-low.c (delete_lwp_callback): Remove.
3853 (linux_mourn): Use for_each_thread.
3854
3855 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3856
3857 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3858 args parameter, don't check for pid.
3859 (linux_detach): Use for_each_thread.
3860
3861 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3862
3863 * linux-low.c (struct counter): Remove.
3864 (second_thread_of_pid_p): Remove.
3865 (last_thread_of_process_p): Use find_thread.
3866
3867 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3868
3869 * inferiors.c (find_inferior_in_random): Remove.
3870 * inferiors.h (find_inferior_in_random): Remove.
3871 * linux-low.c (status_pending_p_callback): Return bool, accept
3872 parameter ptid directly.
3873 (linux_wait_for_event_filtered): Use find_thread_in_random.
3874 (linux_wait_1): Likewise.
3875
3876 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3877
3878 * inferiors.c (find_inferior_id): Remove.
3879 (find_thread_ptid): Move implemention from find_inferior_id to
3880 here.
3881 * inferiors.h (find_inferior_id): Remove.
3882 * server.c (handle_status): Use find_thread_ptid.
3883 (process_serial_event): Likewise.
3884 * thread-db.c (find_one_thread): Likewise.
3885 (thread_db_thread_handle): Likewise.
3886 * win32-low.c (thread_rec): Likewise.
3887 (child_delete_thread): Likewise.
3888 (win32_thread_alive): Likewise.
3889 (get_child_debug_event): Likewise.
3890
3891 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3892
3893 * linux-mips-low.c (update_watch_registers_callback): Return
3894 void, remove pid_p parameter, don't check for pid.
3895 (mips_insert_point, mips_remove_point): Use for_each_thread.
3896
3897 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3898
3899 * lynx.low (lynx_delete_thread_callback): Remove.
3900 (lynx_mourn): Use for_each_thread.
3901
3902 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3903
3904 * regcache.c (regcache_invalidate_one): Remove.
3905 (regcache_invalidate_pid): use for_each_thread.
3906
3907 2017-11-26 Tom Tromey <tom@tromey.com>
3908
3909 * linux-low.c (linux_create_inferior): Update.
3910
3911 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3912
3913 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3914
3915 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3916
3917 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3918 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3919 * linux-aarch64-tdesc-selftest.c: New file.
3920 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3921
3922 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3923
3924 * configure.srv: Add new file.
3925 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3926 * linux-aarch64-tdesc-selftest.c: New file.
3927 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3928
3929 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3930
3931 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3932 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3933 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3934
3935 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3936
3937 * configure.srv: Add new files.
3938 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3939 aarch64_linux_read_description.
3940 * linux-aarch64-low.c (aarch64_linux_read_description):
3941 Merge with aarch64_arch_setup.
3942 (aarch64_arch_setup): Call aarch64_linux_read_description.
3943 * linux-aarch64-tdesc.c: New file.
3944 * linux-aarch64-tdesc.h: New file.
3945
3946 2017-11-24 Yao Qi <yao.qi@linaro.org>
3947
3948 * configure.srv: Set $srv_regobj for tic6x-linux.
3949 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3950 (tic6x_read_description): Move some code to tic6x_arch_setup.
3951 (tic6x_tdesc_test): New function.
3952 (initialize_low_arch): Call selftests::register_test.
3953
3954 2017-11-22 Yao Qi <yao.qi@linaro.org>
3955
3956 * remote-utils.c (prepare_resume_reply): Use memcpy.
3957
3958 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3959
3960 * linux-low.c (kill_one_lwp_callback): Return void, take
3961 argument directly, don't filter on pid.
3962 (linux_kill): Use for_each_thread.
3963
3964 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3965
3966 * linux-low.c (need_step_over_p): Return bool, remove dummy
3967 argument.
3968 (linux_resume, proceed_all_lwps): Use find_thread.
3969
3970 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3971
3972 * linux-low.c (resume_status_pending_p): Return bool, remove
3973 flag_p argument.
3974 (linux_resume): Use find_thread.
3975
3976 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3977
3978 * linux-low.c (struct thread_resume_array): Remove.
3979 (linux_set_resume_request): Return void, take arguments
3980 directly.
3981 (linux_resume): Use for_each_thread.
3982
3983 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3984
3985 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3986 return bool, remove data argument.
3987 (linux_stabilize_threads): Use find_thread.
3988
3989 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3990
3991 * linux-low.c (unsuspend_one_lwp): Remove.
3992 (unsuspend_all_lwps): Use for_each_thread, inline code from
3993 unsuspend_one_lwp.
3994
3995 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3996
3997 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3998 * linux-low.c (struct iterate_over_lwps_args): Remove.
3999 (iterate_over_lwps_filter): Remove.
4000 (iterate_over_lwps): Use find_thread.
4001
4002 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4003
4004 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4005 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4006 code from reset_lwp_ptrace_options_callback.
4007
4008 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4009
4010 * linux-arm-low.c (struct update_registers_data): Remove.
4011 (update_registers_callback): Return void, take arguments
4012 directly, don't check thread's pid.
4013 (arm_insert_point, arm_remove_point): Use for_each_thread.
4014
4015 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4016
4017 * win32-low.c (continue_one_thread): Return void, take argument
4018 directly.
4019 (child_continue): Use for_each_thread.
4020
4021 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4022
4023 * win32-i386-low.c (update_debug_registers_callback): Rename
4024 to ...
4025 (update_debug_registers): ... this, return void, remove pid_p arg.
4026 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4027
4028 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4029
4030 * inferiors.h (struct process_info): Add constructor, initialize
4031 fields..
4032 <syscalls_to_catch>: Change type to std::vector<int>.
4033 * inferiors.c (add_process): Allocate process_info with new.
4034 (remove_process): Free process_info with delete.
4035 * linux-low.c (handle_extended_wait): Adjust.
4036 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4037 * server.c (handle_general_set): Adjust.
4038
4039 2017-11-16 Pedro Alves <palves@redhat.com>
4040
4041 * remote-utils.c (remote_close): Block SIGIO signals instead of
4042 uninstalling the SIGIO handler.
4043
4044 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4045
4046 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4047
4048 2017-11-16 Yao Qi <yao.qi@linaro.org>
4049
4050 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4051 (tic6x_store_gregset): Likewise.
4052 (tic6x_usrregs_info): Move it up.
4053
4054 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4055
4056 * Makefile.in: Update arch rules.
4057 * configure.srv: Explicitly mark arch/ files.
4058
4059 2017-11-13 Andreas Schwab <schwab@suse.de>
4060
4061 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4062 function.
4063 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4064
4065 2017-11-06 Pedro Alves <palves@redhat.com>
4066
4067 * config.in, configure: Regenerate.
4068
4069 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4070
4071 * target.c (struct thread_search): Remove.
4072 (thread_search_callback): Remove.
4073 (prepare_to_access_memory): Use for_each_thread instead of
4074 find_inferior. Inline code from thread_search_callback.
4075
4076 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4077
4078 * server.c (struct visit_actioned_threads_data): Remove.
4079 (visit_actioned_threads): Change prototype to take arguments
4080 directly.
4081 (resume): Use find_thread instead of find_inferior.
4082
4083 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4084
4085 * server.c (queue_stop_reply_callback): Change prototype, return
4086 void.
4087 (find_status_pending_thread_callback): Remove.
4088 (handle_status): Replace find_inferior with find_thread and
4089 for_each_thread.
4090
4091 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4092
4093 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4094 with REGNO.
4095 (aarch64_store_gregset): Likewise.
4096 (aarch64_fill_fpregset): Likewise.
4097 (aarch64_store_fpregset): Likewise.
4098
4099 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4100
4101 * gdbthread.h (find_thread, for_each_thread): New functions.
4102 * inferiors.c (thread_of_pid): Remove.
4103 (find_any_thread_of_pid): Use find_thread.
4104 * linux-low.c (num_lwps): Use for_each_thread.
4105
4106 2017-10-17 Yao Qi <yao.qi@linaro.org>
4107
4108 * Makefile.in: Remove one rule.
4109 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4110
4111 2017-10-17 Yao Qi <yao.qi@linaro.org>
4112
4113 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4114 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4115
4116 2017-10-17 Yao Qi <yao.qi@linaro.org>
4117
4118 * configure.srv: Rename arm.o with arch/arm.o.
4119
4120 2017-10-17 Yao Qi <yao.qi@linaro.org>
4121
4122 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4123 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4124 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4125 (arch-i386.o, arch-amd64.o): Remove rules.
4126 (arch/%.o): New rule.
4127 Update POSTCOMPILE and COMPILE.pre.
4128 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4129 * configure: Re-generated.
4130 * configure.srv: Replace arch-i386.o with arch/i386.o.
4131 Replace arch-amd64.o with arch/amd64.o.
4132
4133 2017-10-16 Yao Qi <yao.qi@linaro.org>
4134
4135 * configure: Regenerated.
4136
4137 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4138
4139 * inferiors.h: (struct inferior_list): Remove.
4140 (struct inferior_list_entry); Remove.
4141 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4142 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4143 get_first_inferior): Remove.
4144 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4145 find_inferior_id, find_inferior_in_random): Change signature.
4146 * inferiors.c (all_threads): Change type to
4147 std::list<thread_info *>.
4148 (get_thread): Remove macro.
4149 (find_inferior, find_inferior_id): Change signature, implement
4150 using find_thread.
4151 (find_inferior_in_random): Change signature, implement using
4152 find_thread_in_random.
4153 (for_each_inferior, for_each_inferior_with_data): Change
4154 signature, implement using for_each_thread.
4155 (add_inferior_to_list, remove_inferior): Remove.
4156 (add_thread, get_first_thread, thread_of_pid,
4157 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4158 (get_first_inferior, one_inferior_p, clear_inferior_list):
4159 Remove.
4160 (clear_inferiors, get_thread_process): Update.
4161 * gdbthread.h: Include <list>.
4162 (struct thread_info) <entry>: Remove field.
4163 <id>: New field.
4164 (all_threads): Change type to std::list<thread_info *>.
4165 (get_first_inferior): Add doc.
4166 (find_thread, for_each_thread, find_thread_in_random): New
4167 functions.
4168 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4169 * linux-arm-low.c (update_registers_callback): Update.
4170 * linux-low.c (second_thread_of_pid_p): Update.
4171 (kill_one_lwp_callback, linux_detach_lwp_callback,
4172 delete_lwp_callback, status_pending_p_callback, same_lwp,
4173 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4174 iterate_over_lwps, not_stopped_callback,
4175 resume_stopped_resumed_lwps, count_events_callback,
4176 select_singlestep_lwp_callback, select_event_lwp_callback,
4177 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4178 suspend_and_send_sigstop_callback, wait_for_sigstop,
4179 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4180 lwp_running, linux_set_resume_request, resume_status_pending_p,
4181 need_step_over_p, start_step_over, linux_resume_one_thread,
4182 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4183 reset_lwp_ptrace_options_callback): Update.
4184 * linux-mips-low.c (update_watch_registers_callback): Update.
4185 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4186 Update.
4187 (free_register_cache_thread_one): Remove.
4188 (regcache_release): Update.
4189 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4190 handle_qxfer_threads_worker): Update.
4191 (handle_query): Update, use list iterator.
4192 (visit_actioned_threads, handle_pending_status,
4193 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4194 clear_pending_status_callback, set_pending_status_callback,
4195 find_status_pending_thread_callback, handle_status,
4196 process_serial_event): Update.
4197 * target.c (thread_search_callback): Update.
4198 * thread-db.c (thread_db_get_tls_address): Update.
4199 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4200 Update.
4201 * win32-i386-low.c (update_debug_registers_callback): Update.
4202 * win32-low.c (delete_thread_info, child_delete_thread,
4203 continue_one_thread, suspend_one_thread,
4204 get_child_debug_event): Adjust.
4205
4206 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4207
4208 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4209 * inferiors.h: Include <list>.
4210 (struct process_info) <entry>: Remove field.
4211 <pid>: New field.
4212 (pid_of): Change macro to function.
4213 (ptid_of, lwpid_of): Remove macro.
4214 (all_processes): Change type to std::list<process_info *>.
4215 (ALL_PROCESSES): Remove macro.
4216 (for_each_process, find_process): New function.
4217 * inferiors.c (all_processes): Change type to
4218 std::list<process_info *>.
4219 (find_thread_process): Adjust.
4220 (add_process): Likewise.
4221 (remove_process): Likewise.
4222 (find_process_pid): Likewise.
4223 (get_first_process): Likewise.
4224 (started_inferior_callback): Remove.
4225 (have_started_inferiors_p): Adjust.
4226 (attached_inferior_callback): Remove.
4227 (have_attached_inferiors_p): Adjust.
4228 * linux-low.c (check_zombie_leaders): Likewise.
4229 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4230 (x86_linux_update_xmltarget): Adjust.
4231 * server.c (handle_query): Likewise.
4232 (gdb_reattached_process): Remove.
4233 (handle_status): Adjust.
4234 (kill_inferior_callback): Likewise.
4235 (detach_or_kill_inferior): Remove.
4236 (print_started_pid): Likewise.
4237 (print_attached_pid): Likewise.
4238 (detach_or_kill_for_exit): Update.
4239 (process_serial_event): Likewise.
4240 * linux-arm-low.c (arm_new_fork): Likewise.
4241
4242 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4243
4244 * dll.h: Include <list>.
4245 (struct dll_info): Add constructor.
4246 <entry>: Remove field.
4247 (all_dlls): Change type to std::list<dll_info>.
4248 * dll.c: Include <algorithm>.
4249 (get_dll): Remove macro.
4250 (all_dlls): Change type to std::list<dll_info *>.
4251 (free_one_dll): Remove.
4252 (match_dll): Likewise.
4253 (loaded_dll): Adjust.
4254 (unloaded_dll): Adjust to all_dlls type change, use
4255 std::find_if. Inline code from match_dll.
4256 (clear_dlls): Adjust to all_dlls type change.
4257 * server.c (emit_dll_description): Remove.
4258 (handle_qxfer_libraries): Adjust to all_dlls type change,
4259 integrate emit_dll_description's functionality.
4260
4261 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4262
4263 * linux-low.h (struct linux_target_ops) <delete_process>: New
4264 field.
4265 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4266 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4267 (struct linux_target_ops): Add delete_process callback.
4268 * linux-arm-low.c (arm_delete_process): New.
4269 (struct linux_target_ops): Add delete_process callback.
4270 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4271 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4272 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4273 * linux-mips-low.c (mips_linux_delete_process): New.
4274 (struct linux_target_ops): Add delete_process callback.
4275 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4276 * linux-s390-low.c (struct linux_target_ops): Likewise.
4277 * linux-sh-low.c (struct linux_target_ops): Likewise.
4278 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4279 * linux-tile-low.c (struct linux_target_ops): Likewise.
4280 * linux-x86-low.c (x86_linux_delete_process): New.
4281 (struct linux_target_ops): Add delete_process callback.
4282 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4283
4284 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4285
4286 * linux-aarch64-low.c (the_low_target): Add thread delete
4287 callback.
4288 * linux-arm-low.c (arm_delete_thread): New function.
4289 (the_low_target): Add thread delete callback.
4290 * linux-bfin-low.c (the_low_target): Likewise.
4291 * linux-crisv32-low.c (the_low_target): Likewise.
4292 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4293 set.
4294 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4295 field.
4296 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4297 * linux-mips-low.c (mips_linux_delete_thread): New function.
4298 (the_low_target): Add thread delete callback.
4299 * linux-ppc-low.c (the_low_target): Likewise.
4300 * linux-s390-low.c (the_low_target): Likewise.
4301 * linux-sh-low.c (the_low_target): Likewise.
4302 * linux-tic6x-low.c (the_low_target): Likewise.
4303 * linux-tile-low.c (the_low_target): Likewise.
4304 * linux-x86-low.c (the_low_target): Likewise.
4305 * linux-xtensa-low.c (the_low_target): Likewise.
4306
4307 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4308
4309 * win32-low.c: Include "common-inferior.h".
4310
4311 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4312
4313 * inferiors.c (set_inferior_cwd): New function.
4314 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4315 (handle_query): Inform that QSetWorkingDir is supported.
4316 * win32-low.c (create_process): Pass the inferior's cwd to
4317 CreateProcess.
4318
4319 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4320
4321 * inferiors.c (current_inferior_cwd): New global variable.
4322 (get_inferior_cwd): New function.
4323 * inferiors.h (struct process_info) <cwd>: New field.
4324
4325 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4326
4327 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4328 (OBS): Add gdb_tilde_expand.o.
4329
4330 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4331
4332 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4333 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4334
4335 2017-09-29 Pedro Alves <palves@redhat.com>
4336
4337 * ax.c (gdb_parse_agent_expr): Constify.
4338 * ax.h (gdb_parse_agent_expr): Constify.
4339 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4340 Constify.
4341 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4342 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4343 * remote-utils.h (read_ptid): Constify.
4344 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4345 (process_point_options, process_serial_event): Constify.
4346 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4347 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4348 (cmd_qtbuffer): Constify.
4349
4350 2017-09-29 Pedro Alves <palves@redhat.com>
4351
4352 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4353 fails.
4354
4355 2017-09-29 Pedro Alves <palves@redhat.com>
4356
4357 * linux-low.c (handle_extended_wait): Pass parent thread instead
4358 of process to thread_db_notice_clone.
4359 * linux-low.h (thread_db_notice_clone): Replace parent process
4360 parameter with parent thread parameter.
4361 * thread-db.c (find_one_thread): Add comment.
4362 (thread_db_notice_clone): Replace parent process parameter with
4363 parent thread parameter. Temporarily switch to the parent thread.
4364
4365 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4366
4367 * gdbthread.h: Include "common-gdbthread.h".
4368 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4369 "if" when validating the ptid.
4370 * remote-utils.c: Include "gdbthread.h".
4371 (prepare_resume_reply): Use "switch_to_thread".
4372 * target.c (done_accessing_memory): Likewise.
4373
4374 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4375
4376 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4377 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4378 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4379 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4380 s390x-gs-linux64-ipa.o to ipa_obj.
4381 * linux-s390-low.c (HWCAP_S390_GS): New define.
4382 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4383 New functions.
4384 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4385 (s390_arch_setup): Check for guarded-storage support and choose
4386 appropriate tdesc.
4387 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4388 init_registers_s390x_gs_linux64.
4389 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4390 enum value.
4391 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4392 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4393
4394 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4395
4396 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4397
4398 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4399
4400 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4401 (thread_db_thread_handle): Declare.
4402 * linux-low.c (linux_target_ops): Initialize thread_handle.
4403 * server.c (handle_qxfer_threads_worker): Add support for
4404 "handle" attribute.
4405 * target.h (struct target_ops): Add new function pointer,
4406 thread_handle.
4407 (target_thread_handle): Define.
4408 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4409 field in lwp.
4410 (thread_db_thread_handle): New function.
4411
4412 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4413
4414 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4415 * linux-low.h (thread_db_notice_clone): Declare.
4416 * thread-db.c (thread_db_notice_clone): New function.
4417
4418 2017-09-21 Pedro Alves <palves@redhat.com>
4419
4420 * server.c (gdb_read_memory, handle_status, process_serial_event)
4421 (handle_serial_event, handle_target_event): Adjust to
4422 set_desired_thread prototype change.
4423 * target.c (set_desired_thread): Remove 'use_general' parameter
4424 and adjust.
4425 * target.h (set_desired_thread): Remove 'use_general' parameter.
4426
4427 2017-09-20 Tom Tromey <tom@tromey.com>
4428
4429 * target.c (target_terminal::terminal_state): Define.
4430 (target_terminal::init): Rename from target_terminal_init.
4431 (target_terminal::inferior): Rename from
4432 target_terminal_inferior.
4433 (target_terminal::ours): Rename from target_terminal_ours.
4434 (target_terminal::ours_for_output, target_terminal::info): New.
4435
4436 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4437
4438 * server.c (accumulate_file_name_length): Remove.
4439 (emit_dll_description): Adjust to std::string change.
4440 (handle_qxfer_libraries): Use std::string to hold document.
4441
4442 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4443
4444 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4445 return type of xml_escape_text.
4446 * server.c (emit_dll_description): Likewise.
4447
4448 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4449
4450 * server.c (captured_main): Accept argument for --selftest.
4451 Update run_tests call.
4452 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4453 when registering selftests.
4454
4455 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4456
4457 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4458 instead of "VEC" for "target_desc.reg_defs".
4459 (regcache_cpy): Likewise.
4460 (registers_to_string): Likewise.
4461 (registers_from_string): Likewise.
4462 (find_regno): Likewise.
4463 (supply_regblock): Likewise.
4464 (regcache_raw_read_unsigned): Likewise.
4465 * tdesc.c (init_target_desc): Likewise.
4466 (tdesc_create_reg): Likewise.
4467 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4468 (struct target_desc) <reg_defs>: Convert to "std::vector".
4469 (target_desc): Do not initialize "reg_defs".
4470 (~target_desc): Update code to use "std::vector" instead of "VEC"
4471 for "target_desc.reg_defs".
4472 (operator==): Likewise.
4473
4474 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4475
4476 * inferiors.h (thread_to_gdb_id): Remove.
4477 * inferiors.c (thread_to_gdb_id): Remove.
4478 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4479 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4480 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4481 Likewise.
4482 * nto-low.c (nto_fetch_registers, nto_store_registers,
4483 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4484
4485 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4486
4487 * inferiors.h (gdb_id_to_thread_id): Remove.
4488 * inferiors.c (gdb_id_to_thread_id): Remove.
4489 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4490 removal. Move pid declaration closer to where it's used.
4491
4492 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4493
4494 * server.c (handle_detach): New function.
4495 (process_serial_event): Move code out, call handle_detach.
4496
4497 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4498
4499 * server.c (require_running): Rename to ...
4500 (require_running_or_return): ... this ...
4501 (require_running_or_break): ... and this.
4502 (handle_query, process_serial_event): Adjust.
4503
4504 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4505
4506 * linux-low.c (linux_set_resume_request): Remove unused
4507 variables.
4508
4509 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4510
4511 * server.c (first_thread_of): Remove.
4512 (process_serial_event): Replace usage of first_thread_of with
4513 find_any_thread_of_pid.
4514 * tracepoint.c (same_process_p): Remove.
4515 (gdb_agent_about_to_close): Replace usage of same_process_p with
4516 find_any_thread_of_pid.
4517 * linux-x86-low.c (same_process_callback): Remove.
4518 (x86_arch_setup_process_callback): Replace usage of
4519 same_process_callback with find_any_thread_of_pid.
4520 * thread-db.c (any_thread_of): Remove.
4521 (switch_to_process): Replace usage of any_thread_of with
4522 find_any_thread_of_pid.
4523 * inferiors.c (thread_pid_matches_callback): Remove.
4524 (find_thread_process): Adjust to use find_any_thread_of_pid.
4525
4526 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4527
4528 * regcache.c (get_thread_regcache): Guard calls to "memset"
4529 with "!VEC_empty".
4530
4531 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4532
4533 * linux-low.c (handle_extended_wait): Use
4534 "allocate_target_description" instead of "XNEW".
4535 * linux-x86-low.c (initialize_low_arch): Likewise.
4536
4537 2017-09-05 Yao Qi <yao.qi@linaro.org>
4538
4539 * configure.srv (srv_i386_regobj): Remove.
4540 (srv_amd64_regobj): Remove.
4541 (srv_regobj): Set it to "" for x86 non-linux targets.
4542 * linux-x86-tdesc.c (i386_linux_read_description):
4543 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4544 (init_registers_i386): Remove the declaration.
4545 (tdesc_i386): Remove the declaration.
4546 (lynx_i386_arch_setup): Call i386_create_target_description.
4547 * nto-x86-low.c: Likewise.
4548 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4549 [!__x86_64__]: include arch/i386.h.
4550 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4551
4552 2017-09-05 Yao Qi <yao.qi@linaro.org>
4553
4554 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4555 i386/amd64-XXX-linux from it.
4556
4557 2017-09-05 Yao Qi <yao.qi@linaro.org>
4558
4559 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4560 false.
4561 (ipa_amd64_linux_regobj): Remove.
4562 (ipa_x32_linux_regobj): Remove.
4563
4564 2017-09-05 Yao Qi <yao.qi@linaro.org>
4565
4566 * Makefile.in (arch-amd64.o): New rule.
4567 * configure.srv: Append arch-amd64.o.
4568 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4569 (get_ipa_tdesc): Call amd64_linux_read_description.
4570 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4571 and init_registers_amd64_XXX.
4572 * linux-x86-low.c (x86_linux_read_description): Call
4573 amd64_linux_read_description.
4574 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4575 (initialize_low_arch): Don't call init_registers_x32_XXX and
4576 init_registers_amd64_XXX.
4577 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4578 and tdesc_amd64_XXX.
4579 [__x86_64__] (amd64_tdesc_test): New function.
4580 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4581 and init_registers_amd64_XXX.
4582 * linux-x86-tdesc.c: Include arch/amd64.h.
4583 (xcr0_to_tdesc_idx): New function.
4584 (i386_linux_read_description): New function.
4585 (amd64_get_ipa_tdesc_idx): New function.
4586 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4587 (amd64_get_ipa_tdesc): Declare.
4588
4589 2017-09-05 Yao Qi <yao.qi@linaro.org>
4590
4591 * configure.srv (srv_i386_linux_xmlfiles): Remove
4592 i386/i386-XXX-linux.xml from it.
4593
4594 2017-09-05 Yao Qi <yao.qi@linaro.org>
4595
4596 * configure.srv: Set srv_i386_linux_regobj empty if $development
4597 is false.
4598 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4599 initialize_low_tdesc.
4600 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4601 with #if initialize_low_tdesc.
4602 * linux-x86-tdesc-selftest.c: New file.
4603 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4604
4605 2017-09-05 Yao Qi <yao.qi@linaro.org>
4606
4607 * Makefile.in (arch-i386.o): New rule.
4608 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4609 (x86_64-*-linux*): Likewise.
4610 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4611 include arch/i386.h.
4612 (i386_linux_read_description): Remove code and call
4613 i386_create_target_description.
4614 * tdesc.c (allocate_target_description): New function.
4615 * tdesc.h (set_tdesc_architecture): Remove declaration.
4616 (set_tdesc_osabi): Likewise.
4617
4618 2017-09-05 Yao Qi <yao.qi@linaro.org>
4619
4620 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4621 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4622 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4623 .xmltarget.
4624 * server.c (get_features_xml): Call tdesc_get_features_xml.
4625 * tdesc.c (set_tdesc_architecture): New function.
4626 (set_tdesc_osabi): New function.
4627 (tdesc_get_features_xml): New function.
4628 (tdesc_create_feature): Add an argument.
4629 * tdesc.h (struct target_desc) <features>: New field.
4630 <arch, osabi>: New field.
4631 (~target_desc): xfree features, arch, and osabi.
4632 (target_desc::oerator==): Don't compare .xmltarget.
4633 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4634 (set_tdesc_osabi): Likewise.
4635 (tdesc_get_features_xml): Likewise.
4636
4637 2017-09-05 Yao Qi <yao.qi@linaro.org>
4638
4639 * linux-x86-tdesc.c: Include selftest.h.
4640 (i386_tdesc_test): New function.
4641 (initialize_low_tdesc): Call selftests::register_test.
4642 * tdesc.h: Include regdef.h.
4643 (target_desc): Override operator == and !=.
4644
4645 2017-09-05 Yao Qi <yao.qi@linaro.org>
4646
4647 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4648 (ipa_obj): Likewise.
4649 * linux-i386-ipa.c: Include common/x86-xstate.h
4650 (get_ipa_tdesc): Call i386_linux_read_description.
4651 (initialize_low_tracepoint): Don't call init_registers_XXX
4652 functions, call initialize_low_tdesc instead.
4653 * linux-x86-low.c (x86_linux_read_description): Call
4654 i386_linux_read_description.
4655 (initialize_low_arch): Don't call init_registers_i386_XXX
4656 functions, call initialize_low_tdesc.
4657 * linux-x86-tdesc.c: New file.
4658 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4659 (i386_get_ipa_tdesc_idx): Declare.
4660 (i386_get_ipa_tdesc): Declare.
4661 (initialize_low_tdesc): Declare.
4662
4663 2017-09-05 Yao Qi <yao.qi@linaro.org>
4664
4665 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4666 instead of 0.
4667
4668 2017-09-05 Yao Qi <yao.qi@linaro.org>
4669
4670 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4671 * regcache.c (get_thread_regcache): Use VEC_length.
4672 (init_register_cache): Likewise.
4673 (regcache_cpy): Likewise.
4674 (registers_to_string): Iterate reg_defs via VEC_iterate.
4675 (find_regno): Likewise.
4676 (find_register_by_number): Use VEC_index.
4677 (register_size): Call find_register_by_number.
4678 (register_data): Call find_register_by_number.
4679 (supply_regblock): Use VEC_length.
4680 (regcache_raw_read_unsigned): Likewise.
4681 * tdesc.c (init_target_desc): Iterate reg_defs via
4682 VEC_iterate.
4683 (default_description): Update initializer.
4684 (copy_target_description): Don't update field num_registers.
4685 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4686 <num_registers>: Remove.
4687
4688 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4689
4690 * Makefile.in (.SECONDARY): Define target.
4691
4692 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4693
4694 * linux-low.c (linux_wait_1): Adjust.
4695 * server.c (queue_stop_reply_callback): Adjust.
4696
4697 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4698
4699 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4700 QEnvironmentUnset and QEnvironmentReset packets.
4701 (handle_query): Inform remote that QEnvironmentHexEncoded,
4702 QEnvironmentUnset and QEnvironmentReset are supported.
4703
4704 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4705
4706 * inferiors.h (inferior_target_data): Rename to ...
4707 (thread_target_data): ... this.
4708 (inferior_regcache_data): Rename to ...
4709 (thread_regcache_data): ... this.
4710 (set_inferior_regcache_data): Rename to ...
4711 (set_thread_regcache_data): ... this.
4712 * inferiors.c (inferior_target_data): Rename to ...
4713 (thread_target_data): ... this.
4714 (inferior_regcache_data): Rename to ...
4715 (thread_regcache_data): ... this.
4716 (set_inferior_regcache_data): Rename to ...
4717 (set_thread_regcache_data): ... this.
4718 (free_one_thread): Update.
4719 * linux-low.h (get_thread_lwp): Update.
4720 * regcache.c (get_thread_regcache): Update.
4721 (regcache_invalidate_thread): Update.
4722 (free_register_cache_thread): Update.
4723 * win32-i386-low.c (update_debug_registers_callback): Update.
4724 (win32_get_current_dr): Update.
4725 * win32-low.c (thread_rec): Update.
4726 (delete_thread_info): Update.
4727 (continue_one_thread): Update.
4728 (suspend_one_thread): Update.
4729
4730 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4731
4732 * inferiors.c (set_inferior_target_data): Remove.
4733 * inferiors.h (set_inferior_target_data): Remove.
4734
4735 2017-08-18 Yao Qi <yao.qi@linaro.org>
4736
4737 * Makefile.in (OBS): Add selftest.o.
4738 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4739 * configure, config.in: Re-generated.
4740 * server.c: Include common/sefltest.h.
4741 (captured_main): Handle option --selftest.
4742
4743 2017-08-09 Yao Qi <yao.qi@linaro.org>
4744
4745 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4746 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4747 i386-avx-mpx.o and i386-mmx.o.
4748 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4749 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4750 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4751 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4752 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4753 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4754 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4755 i386/amd64-avx-mpx.xml.
4756
4757 2017-08-09 Yao Qi <yao.qi@linaro.org>
4758
4759 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4760 and x32-avx-avx512.o.
4761 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4762 i386/x32-avx-avx512.xml.
4763
4764 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4765
4766 * tracepoint.h (enum class fast_tpoint_collect_result): New
4767 enumeration.
4768 (fast_tracepoint_collecting): Change return type to
4769 fast_tpoint_collect_result.
4770 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4771 * linux-low.h: Include tracepoint.h.
4772 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4773 fast_tpoint_collect_result.
4774 * linux-low.c (handle_tracepoints): Adjust.
4775 (linux_fast_tracepoint_collecting): Change return type to
4776 fast_tpoint_collect_result.
4777 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4778 linux_wait_1, stuck_in_jump_pad_callback,
4779 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4780 proceed_one_lwp): Adjust to type change.
4781
4782 2017-07-10 Yao Qi <yao.qi@linaro.org>
4783
4784 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4785
4786 2017-06-29 Yao Qi <yao.qi@linaro.org>
4787
4788 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4789 Remove.
4790 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4791
4792 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4793
4794 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4795
4796 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4797
4798 * linux-low.c (linux_create_inferior): Adjust code to access the
4799 environment information via 'gdb_environ' class.
4800 * lynx-low.c (lynx_create_inferior): Likewise.
4801 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4802 (get_environ): Return a pointer to 'our_environ'.
4803 (captured_main): Initialize 'our_environ'.
4804 * server.h (get_environ): Adjust prototype.
4805 * spu-low.c (spu_create_inferior): Adjust code to access the
4806 environment information via 'gdb_environ' class.
4807
4808 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4809
4810 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4811 usage of "register" keyword.
4812
4813 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4814
4815 * configure: Re-generate.
4816
4817 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4818
4819 * configure: Re-generate.
4820
4821 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4822
4823 * Makefile.in (COMPILE.pre): Add "-x c++".
4824
4825 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4826
4827 * fork-child.c: Conditionally include <signal.h>.
4828
4829 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4830
4831 * server.c (handle_general_set): Handle new packet
4832 "QStartupWithShell".
4833 (handle_query): Add "QStartupWithShell" to the list of supported
4834 packets.
4835 (gdbserver_usage): Add help text explaining the
4836 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4837 options.
4838 (captured_main): Recognize and act upon the presence of the new
4839 CLI options.
4840
4841 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4842 Pedro Alves <palves@redhat.com>
4843
4844 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4845 * configure: Regenerate.
4846 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4847 "fork-inferior.o".
4848 (i[34567]86-*-lynxos*): Likewise.
4849 (spu*-*-*): Likewise.
4850 * fork-child.c: New file.
4851 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4852 and "environ.h".
4853 (linux_ptrace_fun): New function.
4854 (linux_create_inferior): Adjust function prototype to reflect
4855 change on "target.h". Adjust function code to use
4856 "fork_inferior".
4857 (linux_request_interrupt): Delete "signal_pid".
4858 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4859 (lynx_ptrace_fun): New function.
4860 (lynx_create_inferior): Adjust function prototype to reflect
4861 change on "target.h". Adjust function code to use
4862 "fork_inferior".
4863 * nto-low.c (nto_create_inferior): Adjust function prototype and
4864 code to reflect change on "target.h". Update comments.
4865 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4866 "common-terminal.h" and "environ.h".
4867 (terminal_fd): Moved to fork-child.c.
4868 (old_foreground_pgrp): Likewise.
4869 (restore_old_foreground_pgrp): Likewise.
4870 (last_status): Make it global.
4871 (last_ptid): Likewise.
4872 (our_environ): New variable.
4873 (startup_with_shell): Likewise.
4874 (program_name): Likewise.
4875 (program_argv): Rename to...
4876 (program_args): ...this.
4877 (wrapper_argv): New variable.
4878 (start_inferior): Delete function.
4879 (get_exec_wrapper): New function.
4880 (get_exec_file): Likewise.
4881 (get_environ): Likewise.
4882 (prefork_hook): Likewise.
4883 (post_fork_inferior): Likewise.
4884 (postfork_hook): Likewise.
4885 (postfork_child_hook): Likewise.
4886 (handle_v_run): Update code to deal with arguments coming from the
4887 remote host. Update calls from "start_inferior" to
4888 "create_inferior".
4889 (captured_main): Likewise. Initialize environment variable. Call
4890 "have_job_control".
4891 * server.h (post_fork_inferior): New prototype.
4892 (get_environ): Likewise.
4893 (last_status): Declare.
4894 (last_ptid): Likewise.
4895 (signal_pid): Likewise.
4896 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4897 (spu_ptrace_fun): New function.
4898 (spu_create_inferior): Adjust function prototype to reflect change
4899 on "target.h". Adjust function code to use "fork_inferior".
4900 * target.c (target_terminal_init): New function.
4901 (target_terminal_inferior): Likewise.
4902 (target_terminal_ours): Likewise.
4903 * target.h: Include <vector>.
4904 (struct target_ops) <create_inferior>: Update prototype.
4905 (create_inferior): Update macro.
4906 * utils.c (gdb_flush_out_err): New function.
4907 * win32-low.c (win32_create_inferior): Adjust function prototype
4908 and code to reflect change on "target.h".
4909
4910 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4911
4912 * inferiors.c (switch_to_thread): New function.
4913
4914 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4915
4916 * Makefile.in (SFILE): Add "common/job-control.c".
4917 (OBS): Add "job-control.o".
4918
4919 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4920
4921 * Makefile: Remove "@host_makefile_frag@".
4922
4923 2017-05-05 Pedro Alves <palves@redhat.com>
4924
4925 * configure: Regenerate.
4926
4927 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4928
4929 * configure: Regenerate.
4930
4931 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4932
4933 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4934 software_single_step change of return type to
4935 std::vector<CORE_ADDR>.
4936 * linux-low.c (install_software_single_step_breakpoints):
4937 Likewise.
4938 * linux-low.h (install_software_single_step_breakpoints):
4939 Likewise.
4940
4941 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4942
4943 * remote-utils.c: Include "gdb_termios.h" instead of
4944 "terminal.h".
4945 * terminal.h: Delete file.
4946
4947 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4948
4949 * server.c: Include <vector>.
4950 <program_argv, wrapper_argv>: Convert to std::vector.
4951 (start_inferior): Rewrite function to use C++.
4952 (handle_v_run): Likewise. Update code that calculates the argv
4953 based on the vRun packet; use C++.
4954 (captured_main): Likewise.
4955
4956 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4957
4958 * server.c (handle_v_cont): Initialize thread_resume::thread
4959 with null_ptid.
4960
4961 2017-04-05 Pedro Alves <palves@redhat.com>
4962
4963 * configure: Regenerate.
4964
4965 2017-04-05 Pedro Alves <palves@redhat.com>
4966
4967 * gdbreplay.c (sync_error): Constify.
4968 * linux-x86-low.c (push_opcode): Constify.
4969
4970 2017-04-05 Pedro Alves <palves@redhat.com>
4971
4972 * win32-low.c (get_child_debug_event)
4973 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4974 Report TARGET_WAITKIND_SPURIOUS instead.
4975
4976 2017-04-05 Pedro Alves <palves@redhat.com>
4977
4978 * remote-utils.c (remote_prepare, remote_open): Constify.
4979 * remote-utils.h (remote_prepare, remote_open): Constify.
4980 * server.c (captured_main): Constify 'port' handling.
4981
4982 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4983
4984 * Makefile.in (clean): Clear .deps.
4985
4986 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4987
4988 * .gitignore: Remove generated files, replace with wildcard.
4989 * (clean): Replace removal of generated files with wildcard.
4990 (version.c): Replace with...
4991 (version-generated.c): ...this.
4992 (xml-builtin.c): Replace with...
4993 (xml-builtin-generated.c): ...this.
4994 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4995 (%.c: *regformats*): Replace with...
4996 (%-generated.c: *regformats*): ...this.
4997
4998 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4999
5000 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5001 (xtensa_fill_gregset): Call collect_register_by_name for
5002 threadptr register.
5003 (xtensa_store_gregset): Call supply_register_by_name for
5004 threadptr register.
5005
5006 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5007
5008 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5009 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5010 (xtensa_store_gregset): Call supply_register for all registers in
5011 a0_regnum..a0_regnum + C0_NREGS range.
5012
5013 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5014
5015 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5016 (ax-ipa.o: ax.c): Remove.
5017 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5018 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5019 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5020 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5021 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5022
5023 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5024
5025 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5026 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5027 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5028 (errors-ipa.o: ../common/errors.c): Remove.
5029 (format-ipa.o: ../common/format.c): Remove.
5030 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5031
5032 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5033
5034 * Makefile.in (%-ipa.o: %.c): New rule.
5035 (tracepoint-ipa.o: tracepoint.c): Remove.
5036 (utils-ipa.o: utils.c): Remove.
5037 (remote-utils-ipa.o: remote-utils.c): Remove.
5038 (regcache-ipa.o: regcache.c): Remove.
5039 (i386-linux-ipa.o: i386-linux.c): Remove.
5040 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5041 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5042 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5043 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5044 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5045 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5046 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5047 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5048 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5049 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5050 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5051 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5052 (aarch64-ipa.o: aarch64.c): Remove.
5053 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5054 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5055 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5056 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5057 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5058 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5059 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5060 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5061 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5062 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5063 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5064 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5065 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5066 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5067 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5068 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5069 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5070 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5071 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5072 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5073 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5074 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5075 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5076 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5077 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5078 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5079 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5080 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5081 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5082 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5083 (tdesc-ipa.o: tdesc.c): Remove.
5084 (x32-linux-ipa.o: x32-linux.c): Remove.
5085 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5086 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5087
5088 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5089
5090 * Makefile.in (%.o: ../arch/%.c): New rule.
5091 (arm.o: ../arch/arm.c): Remove.
5092 (arm-linux.o: ../arch/arm-linux.c): Remove.
5093 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5094 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5095
5096 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5097
5098 * Makefile.in (%.o: ../nat/%.c): New rule.
5099 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5100 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5101 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5102 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5103 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5104 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5105 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5106 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5107 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5108 (linux-personality.o: ../nat/linux-personality.c): Remove.
5109 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5110 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5111 (x86-linux.o: ../nat/x86-linux.c): Remove.
5112 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5113 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5114
5115 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5116
5117 * Makefile.in (%.o: ../common/%.c): New rule.
5118 (signals.o: ../common/signals.c): Remove.
5119 (print-utils.o: ../common/print-utils.c): Remove.
5120 (rsp-low.o: ../common/rsp-low.c): Remove.
5121 (common-utils.o: ../common/common-utils.c): Remove.
5122 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5123 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5124 (vec.o: ../common/vec.c): Remove.
5125 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5126 (xml-utils.o: ../common/xml-utils.c): Remove.
5127 (ptid.o: ../common/ptid.c): Remove.
5128 (buffer.o: ../common/buffer.c): Remove.
5129 (format.o: ../common/format.c): Remove.
5130 (filestuff.o: ../common/filestuff.c): Remove.
5131 (agent.o: ../common/agent.c): Remove.
5132 (errors.o: ../common/errors.c): Remove.
5133 (environ.o: ../common/environ.c): Remove.
5134 (common-debug.o: ../common/common-debug.c): Remove.
5135 (cleanups.o: ../common/cleanups.c): Remove.
5136 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5137 (fileio.o: ../common/fileio.c): Remove.
5138 (common-regcache.o: ../common/common-regcache.c): Remove.
5139 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5140 (new-op.o: ../common/new-op.c): Remove.
5141 (btrace-common.o: ../common/btrace-common.c): Remove.
5142
5143 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5144
5145 * Makefile.in (%.o: ../target/%.c): New rule.
5146 (waitstatus.o: ../target/waitstatus.c): Remove.
5147
5148 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5149
5150 * Makefile.in
5151 (%.c: ../regformats/%.dat,
5152 (%.c: ../regformats/arm/%.dat,
5153 (%.c: ../regformats/i386/%.dat,
5154 (%.c: ../regformats/rs6000/%.dat): New rules.
5155 (aarch64.c): Remove.
5156 (reg-arm.c): Remove.
5157 (arm-with-iwmmxt.c): Remove.
5158 (arm-with-vfpv2.c): Remove.
5159 (arm-with-vfpv3.c): Remove.
5160 (arm-with-neon.c): Remove.
5161 (reg-bfin.c): Remove.
5162 (reg-cris.c): Remove.
5163 (reg-crisv32.c): Remove.
5164 (i386.c): Remove.
5165 (i386-linux.c): Remove.
5166 (i386-avx.c): Remove.
5167 (i386-avx-linux.c): Remove.
5168 (i386-avx-avx512.c): Remove.
5169 (i386-avx-avx512-linux.c): Remove.
5170 (i386-mpx.c): Remove.
5171 (i386-mpx-linux.c): Remove.
5172 (i386-avx-mpx-avx512-pku.c): Remove.
5173 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5174 (i386-avx-mpx.c): Remove.
5175 (i386-avx-mpx-linux.c): Remove.
5176 (i386-mmx.c): Remove.
5177 (i386-mmx-linux.c): Remove.
5178 (reg-ia64.c): Remove.
5179 (reg-m32r.c): Remove.
5180 (reg-m68k.c): Remove.
5181 (reg-cf.c): Remove.
5182 (mips-linux.c): Remove.
5183 (mips-dsp-linux.c): Remove.
5184 (mips64-linux.c): Remove.
5185 (mips64-dsp-linux.c): Remove.
5186 (nios2-linux.c): Remove.
5187 (powerpc-32.c): Remove.
5188 (powerpc-32l.c): Remove.
5189 (powerpc-altivec32l.c): Remove.
5190 (powerpc-cell32l.c): Remove.
5191 (powerpc-vsx32l.c): Remove.
5192 (powerpc-isa205-32l.c): Remove.
5193 (powerpc-isa205-altivec32l.c): Remove.
5194 (powerpc-isa205-vsx32l.c): Remove.
5195 (powerpc-e500l.c): Remove.
5196 (powerpc-64l.c): Remove.
5197 (powerpc-altivec64l.c): Remove.
5198 (powerpc-cell64l.c): Remove.
5199 (powerpc-vsx64l.c): Remove.
5200 (powerpc-isa205-64l.c): Remove.
5201 (powerpc-isa205-altivec64l.c): Remove.
5202 (powerpc-isa205-vsx64l.c): Remove.
5203 (s390-linux32.c): Remove.
5204 (s390-linux32v1.c): Remove.
5205 (s390-linux32v2.c): Remove.
5206 (s390-linux64.c): Remove.
5207 (s390-linux64v1.c): Remove.
5208 (s390-linux64v2.c): Remove.
5209 (s390-te-linux64.c): Remove.
5210 (s390-vx-linux64.c): Remove.
5211 (s390-tevx-linux64.c): Remove.
5212 (s390x-linux64.c): Remove.
5213 (s390x-linux64v1.c): Remove.
5214 (s390x-linux64v2.c): Remove.
5215 (s390x-te-linux64.c): Remove.
5216 (s390x-vx-linux64.c): Remove.
5217 (s390x-tevx-linux64.c): Remove.
5218 (tic6x-c64xp-linux.c): Remove.
5219 (tic6x-c64x-linux.c): Remove.
5220 (tic6x-c62x-linux.c): Remove.
5221 (reg-sh.c): Remove.
5222 (reg-sparc64.c): Remove.
5223 (reg-spu.c): Remove.
5224 (amd64.c): Remove.
5225 (amd64-linux.c): Remove.
5226 (amd64-avx.c): Remove.
5227 (amd64-avx-linux.c): Remove.
5228 (amd64-avx-avx512.c): Remove.
5229 (amd64-avx-avx512-linux.c): Remove.
5230 (amd64-mpx.c): Remove.
5231 (amd64-mpx-linux.c): Remove.
5232 (amd64-avx-mpx-avx512-pku.c): Remove.
5233 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5234 (amd64-avx-mpx.c): Remove.
5235 (amd64-avx-mpx-linux.c): Remove.
5236 (x32.c): Remove.
5237 (x32-linux.c): Remove.
5238 (x32-avx.c): Remove.
5239 (x32-avx-linux.c): Remove.
5240 (x32-avx-avx512.c): Remove.
5241 (x32-avx-avx512-linux.c): Remove.
5242 (reg-xtensa.c): Remove.
5243 (reg-tilegx.c): Remove.
5244 (reg-tilegx32.c): Remove.
5245
5246 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5247
5248 * Makefile.in (SFILES): Add "common/environ.c".
5249 (OBJS): Add "common/environ.h".
5250
5251 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5252
5253 * configure.ac: Check if the fs_base and gs_base members of
5254 `struct user_regs_struct' exist.
5255 * config.in: Regenerated.
5256 * configure: Likewise.
5257
5258 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5259
5260 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5261 target_read_memory.
5262 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5263 (get_next_pcs_syscall_next_pc): Likewise.
5264
5265 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5266
5267 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5268 * nto-x86-low.c: Likewise.
5269
5270 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5271
5272 * Makefile.in: Include disable-implicit-rules.mk.
5273
5274 2016-11-23 Pedro Alves <palves@redhat.com>
5275
5276 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5277 (debug_vprintf): Use std::chrono::steady_clock instead of
5278 gettimeofday. Use '.' instead of ':'.
5279 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5280 (get_timestamp): Use std::chrono::steady_clock instead of
5281 gettimeofday.
5282
5283 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5284
5285 * Makefile.in: Fix whitespace formatting.
5286
5287 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5288
5289 * Makefile.in (SFILES, OBS): Flatten list and order
5290 alphabetically.
5291
5292 2016-11-23 Pedro Alves <palves@redhat.com>
5293
5294 * event-loop.c (handle_file_event): Use warning.
5295 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5296 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5297 Use warning.
5298
5299 2016-11-23 Pedro Alves <palves@redhat.com>
5300
5301 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5302 output.
5303 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5304 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5305 debug_printf and debug_flush for debug output.
5306 * server.c (handle_general_set): Likewise.
5307 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5308 output.
5309
5310 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5311
5312 * Makefile.in (.c.o): Replace rule with ...
5313 (%.o: %.c): ... this one.
5314
5315 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5316
5317 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5318 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5319 make.
5320 * configure.ac: Remove checks for the make program.
5321 * configure: Re-generate.
5322
5323 2016-10-28 Pedro Alves <palves@redhat.com>
5324
5325 * Makefile.in (CXX_DIALECT): Get from configure.
5326 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5327 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5328 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5329 * config.in: Regenerate.
5330 * configure: Regenerate.
5331
5332 2016-10-27 Yao Qi <yao.qi@linaro.org>
5333
5334 * linux-low.c (linux_supports_range_stepping): Return true if
5335 can_software_single_step return true.
5336
5337 2016-10-27 Yao Qi <yao.qi@linaro.org>
5338
5339 * inferiors.c (find_inferior_in_random): New function.
5340 * inferiors.h (find_inferior_in_random): Declare.
5341 * linux-low.c (linux_wait_for_event_filtered): Call
5342 find_inferior_in_random instead of find_inferior.
5343
5344 2016-10-27 Yao Qi <yao.qi@linaro.org>
5345
5346 * linux-low.c (linux_wait_1): If single-step breakpoints are
5347 inserted, remove them.
5348
5349 2016-10-26 Pedro Alves <palves@redhat.com>
5350
5351 * linux-low.c (handle_extended_wait): Link parent/child fork
5352 threads.
5353 (linux_wait_1): Unlink them.
5354 (linux_set_resume_request): Ignore resume requests for
5355 already-resumed and unhandled fork child threads.
5356 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5357 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5358 New functions.
5359 (handle_v_requests) <vCont>: Don't call require_running.
5360 * server.h (in_queued_stop_replies): New declaration.
5361
5362 2016-10-24 Yao Qi <yao.qi@linaro.org>
5363
5364 PR server/20733
5365 * linux-aarch64-low.c (append_insns): Cast the return value to
5366 'uint32_t *'.
5367
5368 2016-10-10 Yao Qi <yao.qi@linaro.org>
5369
5370 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5371
5372 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5373
5374 * target.c (target_supports_multi_process): New function, moved
5375 from...
5376 * target.h (target_supports_multi_process): ... here. Remove
5377 macro.
5378
5379 2016-10-05 Tom Tromey <tom@tromey.com>
5380
5381 PR remote/20655:
5382 * tracepoint.c (handle_tracepoint_bkpts): Check
5383 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5384
5385 2016-10-05 Yao Qi <yao.qi@linaro.org>
5386
5387 * configure.srv: Update the path of arm-*.xml files.
5388
5389 2016-10-05 Terry Guo <terry.guo@arm.com>
5390 Yao Qi <yao.qi@linaro.org>
5391
5392 * Makefile.in: Adjust the path of rules.
5393 * configure.srv: Update the path of xml files.
5394 * regformats/arm-with-iwmmxt.dat: Regenerated.
5395 * regformats/arm-with-neon.dat: Likewise.
5396 * regformats/arm-with-vfpv2.dat: Likewise.
5397 * regformats/arm-with-vfpv3.dat Likewise.
5398
5399 2016-09-30 Yao Qi <yao.qi@linaro.org>
5400
5401 PR gdbserver/20627
5402 * target.c (target_stop_and_wait): Don't call
5403 target_continue_no_signal, use resume_stop instead.
5404
5405 2016-09-26 Yao Qi <yao.qi@linaro.org>
5406
5407 * linux-low.c (linux_wait_1): Call debug_exit.
5408
5409 2016-09-23 Pedro Alves <palves@redhat.com>
5410
5411 * Makefile.in (SFILES): Add common/new-op.c.
5412 (OBS): Add common/new-op.o.
5413 (new-op.o): New rule.
5414
5415 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5416
5417 * .gitinore: Ignore more files.
5418
5419 2016-09-21 Yao Qi <yao.qi@linaro.org>
5420
5421 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5422 23.
5423
5424 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5425
5426 * server.c (start_inferior): Call target_mourn_inferior instead of
5427 mourn_inferior; pass ptid_t argument to it.
5428 (resume): Likewise.
5429 (handle_target_event): Likewise.
5430 * target.c (target_mourn_inferior): New function.
5431 * target.h (mourn_inferior): Delete macro.
5432
5433 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5434
5435 * linux-low.c (lwp_is_stepping): New function.
5436
5437 2016-09-06 Carl Love <cel@us.ibm.com>
5438
5439 * server.c (start_inferior): Fixed comment, requested comment change
5440 didn't get updated correctly. Removed reference to ptrace () call as
5441 it is only true on Linux systems.
5442
5443 2016-09-06 Carl Love <cel@us.ibm.com>
5444
5445 * server.c (start_inferior): Do not call
5446 function target_post_create_inferior () if the
5447 inferior process has already exited.
5448
5449 2016-09-05 Pedro Alves <palves@redhat.com>
5450
5451 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5452 (COMPILE.pre, CC_LD): Use CXX directly.
5453 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5454 * acinclude.m4: Don't include build-with-cxx.m4.
5455 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5456 * configure: Regenerate.
5457
5458 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5459
5460 PR gdb/19495
5461 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5462 call writing data to own_buf.
5463
5464 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5465
5466 * target.c (mywait): Call target_wait instead of
5467 the_target->wait.
5468 (target_wait): New function.
5469
5470 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5471
5472 * server.c (start_inferior): New variable 'ptid'. Replace calls
5473 to the_target->resume by target_continue{,_no_signal}, depending
5474 on the case.
5475 * target.c (target_stop_and_wait): Call target_continue_no_signal
5476 instead of the_target->resume.
5477 (target_continue): New function.
5478
5479 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5480
5481 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5482
5483 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5484
5485 PR server/20491
5486 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5487 ps_prochandle.
5488 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5489 * linux-arm-low.c (ps_get_thread_area): Likewise.
5490 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5491 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5492 * linux-mips-low.c (ps_get_thread_area): Likewise.
5493 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5494 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5495 * linux-x86-low.c (ps_get_thread_area): Likewise.
5496 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5497
5498 2016-08-19 Pedro Alves <palves@redhat.com>
5499
5500 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5501
5502 2016-08-19 Pedro Alves <palves@redhat.com>
5503
5504 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5505 comment. Use memcpy instead of casting through unsigned long.
5506
5507 2016-08-19 Pedro Alves <palves@redhat.com>
5508
5509 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5510 allocating around 0x80000000.
5511
5512 2016-08-19 Pedro Alves <palves@redhat.com>
5513
5514 PR gdb/20415
5515 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5516 (x32-avx512-linux-ipa.o): New rules.
5517 * configure.ac (x86_64-*-linux*): New x32 check.
5518 * configure.srv (ipa_x32_linux_regobj): New.
5519 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5520 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5521 descriptions.
5522 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5523 descriptions.
5524 * configure: Regenerate.
5525
5526 2016-08-09 Pedro Alves <palves@redhat.com>
5527
5528 PR gdb/18653
5529 * Makefile.in (OBS): Add signals-state-save-restore.o.
5530 (signals-state-save-restore.o): New rule.
5531 * config.in: Regenerate.
5532 * configure: Regenerate.
5533 * linux-low.c: Include "signals-state-save-restore.h".
5534 (linux_create_inferior): Call
5535 restore_original_signals_state.
5536 * server.c: Include "dispositions-save-restore.h".
5537 (captured_main): Call save_original_signals_state.
5538
5539 2016-08-05 Pedro Alves <palves@redhat.com>
5540
5541 * configure: Regenerate.
5542
5543 2016-08-04 Yao Qi <yao.qi@linaro.org>
5544
5545 * linux-low.c (regsets_fetch_inferior_registers): Check
5546 errno is ESRCH or not.
5547
5548 2016-08-02 Yao Qi <yao.qi@linaro.org>
5549
5550 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5551 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5552 (thread_db_load_search): Update.
5553 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5554 td_ta_set_event and td_ta_event_getmsg.
5555
5556 2016-07-26 Pedro Alves <palves@redhat.com>
5557
5558 PR server/20414
5559 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5560 of unsigned long for 64-bit registers and use uint32_t instead of
5561 unsigned int for 32-bit registers.
5562
5563 2016-07-26 Pedro Alves <palves@redhat.com>
5564
5565 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5566 to 'ptrace'.
5567
5568 2016-07-21 Tom Tromey <tom@tromey.com>
5569
5570 * configure: Rebuild.
5571
5572 2016-07-21 Yao Qi <yao.qi@linaro.org>
5573
5574 * mem-break.c (find_gdb_breakpoint): Cast bp to
5575 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5576
5577 2016-07-21 Yao Qi <yao.qi@linaro.org>
5578
5579 * server.c (handle_v_requests): Support s and S actions
5580 if target_supports_software_single_step return true.
5581
5582 2016-07-21 Yao Qi <yao.qi@linaro.org>
5583
5584 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5585 is resume_step, call maybe_hw_step.
5586 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5587 and unstop them.
5588 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5589 breakpoints or not.
5590 (proceed_one_lwp): If resume request is resume_step, install
5591 reinsert breakpoints and call maybe_hw_step.
5592
5593 2016-07-21 Yao Qi <yao.qi@linaro.org>
5594
5595 * linux-low.c (proceed_one_lwp): Declare.
5596 (linux_resume_one_thread): Remove local variable 'step'.
5597 Lift code enqueue signal. Call proceed_one_lwp instead of
5598 linux_resume_one_lwp.
5599
5600 2016-07-21 Yao Qi <yao.qi@linaro.org>
5601
5602 * linux-low.c (linux_resume_one_thread): Call
5603 enqueue_pending_signal.
5604
5605 2016-07-21 Yao Qi <yao.qi@linaro.org>
5606
5607 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5608 * inferiors.c (do_restore_current_thread_cleanup): New function.
5609 (make_cleanup_restore_current_thread): Likewise.
5610 * linux-low.c (install_software_single_step_breakpoints): Call
5611 make_cleanup_restore_current_thread. Switch current_thread to
5612 thread.
5613
5614 2016-07-21 Yao Qi <yao.qi@linaro.org>
5615
5616 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5617 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5618 (clone_one_breakpoint): Likewise.
5619 (delete_reinsert_breakpoints): Change parameter to thread.
5620 Callers updated.
5621 (has_reinsert_breakpoints): Likewise.
5622 (uninsert_reinsert_breakpoints): Likewise.
5623 (reinsert_reinsert_breakpoints): Likewise.
5624 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5625 (delete_reinsert_breakpoints): Likewise.
5626 (reinsert_reinsert_breakpoints): Likewise.
5627 (uninsert_reinsert_breakpoints): Likewise.
5628 (has_reinsert_breakpoints): Likewise.
5629
5630 2016-07-21 Yao Qi <yao.qi@linaro.org>
5631
5632 * inferiors.c (get_thread_process): Make parameter const.
5633 * inferiors.h (get_thread_process): Update declaration.
5634 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5635 Add new parameters child_thread and parent_thread. Callers
5636 updated.
5637 * mem-break.h (clone_all_breakpoints): Update declaration.
5638
5639 2016-07-21 Yao Qi <yao.qi@linaro.org>
5640
5641 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5642 <command_list, handler>: Remove.
5643 (struct gdb_breakpoint): New.
5644 (struct other_breakpoint): New.
5645 (struct reinsert_breakpoint): New.
5646 (is_gdb_breakpoint): New function.
5647 (any_persistent_commands): Update command_list if
5648 is_gdb_breakpoint returns true.
5649 (set_breakpoint): Create breakpoints according to their types.
5650 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5651 (set_gdb_breakpoint_1): Likewise.
5652 (set_gdb_breakpoint): Likewise.
5653 (clear_breakpoint_conditions): Change parameter type to
5654 'struct gdb_breakpoint *'.
5655 (clear_breakpoint_commands): Likewise.
5656 (clear_breakpoint_conditions_and_commands): Likewise.
5657 (add_condition_to_breakpoint): Likewise.
5658 (add_breakpoint_condition): Likewise.
5659 (add_commands_to_breakpoint): Likewise.
5660 (check_breakpoints): Check other_breakpoint.
5661 (clone_one_breakpoint): Clone breakpopint according to its type.
5662 * mem-break.h (struct gdb_breakpoint): Declare.
5663 (set_gdb_breakpoint): Update declaration.
5664 (clear_breakpoint_conditions_and_commands): Likewise.
5665 (add_breakpoint_condition): Likewise.
5666 (add_breakpoint_commands): Likewise.
5667 * server.c (process_point_options): Change parameter type to
5668 'struct gdb_breakpoint *'.
5669
5670 2016-07-21 Yao Qi <yao.qi@linaro.org>
5671
5672 * mem-break.c (set_breakpoint_at): Rename it to ...
5673 (set_breakpoint_type_at): ... it.
5674 (set_breakpoint_at): Call set_breakpoint_type_at.
5675 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5676 * mem-break.h (set_breakpoint_at): Update comments.
5677
5678 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5679
5680 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5681 to buf parameter.
5682 (nios2_store_gregset): Likewise.
5683
5684 2016-07-01 Pedro Alves <palves@redhat.com>
5685 Antoine Tremblay <antoine.tremblay@ericsson.com>
5686
5687 * linux-low.c: Change interface to take the target lwp_info
5688 pointer directly and return void. Handle detaching from a zombie
5689 thread.
5690 (linux_detach_lwp_callback): New function.
5691 (linux_detach): Detach from the leader thread after detaching from
5692 the clone threads.
5693
5694 2016-06-28 Yao Qi <yao.qi@linaro.org>
5695
5696 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5697 for variable new_offset.
5698 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5699 (aarch64_ftrace_insn_reloc_cb): Likewise.
5700 (aarch64_ftrace_insn_reloc_tb): Likewise.
5701 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5702 PRIx64 instead of PRIx32.
5703
5704 2016-06-28 Yao Qi <yao.qi@linaro.org>
5705
5706 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5707 (the_low_target): Install arm_get_syscall_trapinfo.
5708
5709 2016-06-28 Yao Qi <yao.qi@linaro.org>
5710
5711 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5712 function.
5713 (the_low_target): Install aarch64_get_syscall_trapinfo.
5714
5715 2016-06-28 Yao Qi <yao.qi@linaro.org>
5716
5717 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5718 Callers updated.
5719 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5720 Remove parameter sysno.
5721 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5722 sysret.
5723
5724 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5725
5726 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5727 (s390_emit_ne_goto): Likewise.
5728 (s390_emit_lt_goto): Likewise.
5729 (s390_emit_le_goto): Likewise.
5730 (s390_emit_gt_goto): Likewise.
5731 (s390_emit_ge_goto): Likewise.
5732 (s390x_emit_eq_goto): Likewise.
5733 (s390x_emit_ne_goto): Likewise.
5734 (s390x_emit_lt_goto): Likewise.
5735 (s390x_emit_le_goto): Likewise.
5736 (s390x_emit_gt_goto): Likewise.
5737 (s390x_emit_ge_goto): Likewise.
5738 (s390_emit_ops_impl): Mark variable static.
5739 (s390x_emit_ops): Likewise.
5740
5741 2016-06-17 Yao Qi <yao.qi@linaro.org>
5742
5743 * linux-low.c (handle_extended_wait): Call
5744 uninsert_reinsert_breakpoints for the parent process. Remove
5745 reinsert breakpoints from the child process. Reinsert them to
5746 the parent process when vfork is done.
5747 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5748 (reinsert_reinsert_breakpoints): New function.
5749 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5750 (reinsert_reinsert_breakpoints): Declare.
5751
5752 2016-06-17 Yao Qi <yao.qi@linaro.org>
5753
5754 * linux-low.c (handle_extended_wait): If the parent is doing
5755 step-over, remove the reinsert breakpoints from the forked child.
5756
5757 2016-06-17 Yao Qi <yao.qi@linaro.org>
5758
5759 * linux-low.c (unsuspend_all_lwps): Declare.
5760 (linux_low_filter_event): If thread exited, call finish_step_over.
5761 If step-over is finished, unsuspend other threads.
5762
5763 2016-06-17 Yao Qi <yao.qi@linaro.org>
5764
5765 * linux-low.c (linux_resume_one_lwp_throw): Assert
5766 has_reinsert_breakpoints returns false.
5767 * mem-break.c (delete_disabled_breakpoints): Assert
5768 bp type isn't reinsert_breakpoint.
5769
5770 2016-06-17 Yao Qi <yao.qi@linaro.org>
5771
5772 * linux-low.c (maybe_hw_step): New function.
5773 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5774 (finish_step_over): Switch current_thread to lwp temporarily,
5775 and assert has_reinsert_breakpoints returns true.
5776 (proceed_one_lwp): Call maybe_hw_step.
5777 * mem-break.c (has_reinsert_breakpoints): New function.
5778 * mem-break.h (has_reinsert_breakpoints): Declare.
5779
5780 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5781
5782 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5783
5784 2016-05-17 Yao Qi <yao.qi@linaro.org>
5785
5786 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5787 instead of find_inferior.
5788
5789 2016-05-05 Yao Qi <yao.qi@linaro.org>
5790
5791 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5792 Initialize res to zero.
5793
5794 2016-05-05 Yao Qi <yao.qi@linaro.org>
5795
5796 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5797 to uint32_t.
5798
5799 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5800
5801 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5802 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5803 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5804
5805 2016-04-28 Par Olsson <par.olsson@windriver.com>
5806 Simon Marchi <simon.marchi@ericsson.com>
5807
5808 * tracepoint.c (write_inferior_int8): New function.
5809 (cmd_qtenable_disable): Write enable flag using
5810 write_inferior_int8.
5811
5812 2016-04-25 Yao Qi <yao.qi@linaro.org>
5813
5814 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5815 (need_step_over_p): Return zero if the LWP has pending signals
5816 can be delivered on software single step target.
5817
5818 2016-04-25 Yao Qi <yao.qi@linaro.org>
5819
5820 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5821 return instead of error.
5822
5823 2016-04-22 Yao Qi <yao.qi@linaro.org>
5824
5825 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5826 to 23.
5827
5828 2016-04-22 Yao Qi <yao.qi@linaro.org>
5829
5830 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5831 signal when stepping over breakpoint with software single
5832 step.
5833
5834 2016-04-21 Pedro Alves <palves@redhat.com>
5835
5836 * linux-s390-low.c (s390_collect_ptrace_register)
5837 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5838 add casts.
5839 (s390_check_regset): Use void * instead of gdb_byte *.
5840
5841 2016-04-20 Pedro Alves <palves@redhat.com>
5842
5843 * configure: Renegerate.
5844
5845 2016-04-20 Yao Qi <yao.qi@linaro.org>
5846
5847 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5848 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5849 number 16.
5850 (arm_store_gregset): Likewise.
5851
5852 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5853
5854 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5855 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5856 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5857 (amd64-avx-mpx-linux.c): New rules.
5858 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5859 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5860 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5861 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5862 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5863 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5864 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5865 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5866 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5867 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5868 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5869 * linux-x86-low.c (x86_linux_read_description): Add case for
5870 X86_XSTATE_AVX_MPX_MASK.
5871 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5872 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5873 init_registers_i386_avx_mpx_linux.
5874 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5875 (initialize_low_tracepoint): Call
5876 init_registers_i386_avx_mpx_linux.
5877 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5878 (initialize_low_tracepoint): Call
5879 init_registers_amd64_avx_mpx_linux.
5880 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5881 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5882 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5883 declarations.
5884
5885 2016-04-18 Pedro Alves <palves@redhat.com>
5886
5887 * configure: Regenerate.
5888
5889 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5890
5891 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5892 (aarch64_emit_sub): Likewise.
5893
5894 2016-04-12 Pedro Alves <palves@redhat.com>
5895
5896 * utils.c (prepare_to_throw_exception): Delete.
5897
5898 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5899
5900 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5901
5902 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5903
5904 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5905
5906 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5907
5908 * linux-aarch64-ipa.c: Add <elf.h> include.
5909 * linux-ppc-ipa.c: Add <elf.h> include.
5910 * linux-s390-ipa.c: Add <elf.h> include.
5911
5912 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5913
5914 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5915 (get_raw_reg_ptr): Likewise.
5916 (get_trace_state_variable_value_ptr): Likewise.
5917 (set_trace_state_variable_value_ptr): Likewise.
5918 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5919 char *.
5920
5921 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5922 Marcin Kościelnicki <koriakin@0x04.net>
5923
5924 PR/17221
5925 * linux-ppc-low.c (emit_insns): New function.
5926 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5927 (ppc_emit_prologue): New function.
5928 (ppc_emit_epilogue): New function.
5929 (ppc_emit_add): New function.
5930 (ppc_emit_sub): New function.
5931 (ppc_emit_mul): New function.
5932 (ppc_emit_lsh): New function.
5933 (ppc_emit_rsh_signed): New function.
5934 (ppc_emit_rsh_unsigned): New function.
5935 (ppc_emit_ext): New function.
5936 (ppc_emit_zero_ext): New function.
5937 (ppc_emit_log_not): New function.
5938 (ppc_emit_bit_and): New function.
5939 (ppc_emit_bit_or): New function.
5940 (ppc_emit_bit_xor): New function.
5941 (ppc_emit_bit_not): New function.
5942 (ppc_emit_equal): New function.
5943 (ppc_emit_less_signed): New function.
5944 (ppc_emit_less_unsigned): New function.
5945 (ppc_emit_ref): New function.
5946 (ppc_emit_const): New function.
5947 (ppc_emit_reg): New function.
5948 (ppc_emit_pop): New function.
5949 (ppc_emit_stack_flush): New function.
5950 (ppc_emit_swap): New function.
5951 (ppc_emit_stack_adjust): New function.
5952 (ppc_emit_call): New function.
5953 (ppc_emit_int_call_1): New function.
5954 (ppc_emit_void_call_2): New function.
5955 (ppc_emit_if_goto): New function.
5956 (ppc_emit_goto): New function.
5957 (ppc_emit_eq_goto): New function.
5958 (ppc_emit_ne_goto): New function.
5959 (ppc_emit_lt_goto): New function.
5960 (ppc_emit_le_goto): New function.
5961 (ppc_emit_gt_goto): New function.
5962 (ppc_emit_ge_goto): New function.
5963 (ppc_write_goto_address): New function.
5964 (ppc_emit_ops_impl): New static variable.
5965 (ppc64v1_emit_prologue): New function.
5966 (ppc64v2_emit_prologue): New function.
5967 (ppc64_emit_epilogue): New function.
5968 (ppc64_emit_add): New function.
5969 (ppc64_emit_sub): New function.
5970 (ppc64_emit_mul): New function.
5971 (ppc64_emit_lsh): New function.
5972 (ppc64_emit_rsh_signed): New function.
5973 (ppc64_emit_rsh_unsigned): New function.
5974 (ppc64_emit_ext): New function.
5975 (ppc64_emit_zero_ext): New function.
5976 (ppc64_emit_log_not): New function.
5977 (ppc64_emit_bit_and): New function.
5978 (ppc64_emit_bit_or): New function.
5979 (ppc64_emit_bit_xor): New function.
5980 (ppc64_emit_bit_not): New function.
5981 (ppc64_emit_equal): New function.
5982 (ppc64_emit_less_signed): New function.
5983 (ppc64_emit_less_unsigned): New function.
5984 (ppc64_emit_ref): New function.
5985 (ppc64_emit_const): New function.
5986 (ppc64v1_emit_reg): New function.
5987 (ppc64v2_emit_reg): New function.
5988 (ppc64_emit_pop): New function.
5989 (ppc64_emit_stack_flush): New function.
5990 (ppc64_emit_swap): New function.
5991 (ppc64v1_emit_call): New function.
5992 (ppc64v2_emit_call): New function.
5993 (ppc64v1_emit_int_call_1): New function.
5994 (ppc64v2_emit_int_call_1): New function.
5995 (ppc64v1_emit_void_call_2): New function.
5996 (ppc64v2_emit_void_call_2): New function.
5997 (ppc64_emit_if_goto): New function.
5998 (ppc64_emit_eq_goto): New function.
5999 (ppc64_emit_ne_goto): New function.
6000 (ppc64_emit_lt_goto): New function.
6001 (ppc64_emit_le_goto): New function.
6002 (ppc64_emit_gt_goto): New function.
6003 (ppc64_emit_ge_goto): New function.
6004 (ppc64v1_emit_ops_impl): New static variable.
6005 (ppc64v2_emit_ops_impl): New static variable.
6006 (ppc_emit_ops): New function.
6007 (linux_low_target): Wire in ppc_emit_ops.
6008
6009 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6010 Marcin Kościelnicki <koriakin@0x04.net>
6011
6012 PR/17221
6013 * Makefile.in: Add powerpc-*-ipa.o
6014 * configure.srv: Add ipa_obj for powerpc*-linux.
6015 * linux-ppc-ipa.c: New file.
6016 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6017 includes.
6018 (PPC_FIELD): New macro.
6019 (PPC_SEXT): New macro.
6020 (PPC_OP6): New macro.
6021 (PPC_BO): New macro.
6022 (PPC_LI): New macro.
6023 (PPC_BD): New macro.
6024 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6025 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6026 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6027 (ppc_get_thread_area): New function.
6028 (is_elfv2_inferior): New function.
6029 (gen_ds_form): New function.
6030 (GEN_STD): New macro.
6031 (GEN_STDU): New macro.
6032 (GEN_LD): New macro.
6033 (GEN_LDU): New macro.
6034 (gen_d_form): New function.
6035 (GEN_ADDI): New macro.
6036 (GEN_ADDIS): New macro.
6037 (GEN_LI): New macro.
6038 (GEN_LIS): New macro.
6039 (GEN_ORI): New macro.
6040 (GEN_ORIS): New macro.
6041 (GEN_LWZ): New macro.
6042 (GEN_STW): New macro.
6043 (GEN_STWU): New macro.
6044 (gen_xfx_form): New function.
6045 (GEN_MFSPR): New macro.
6046 (GEN_MTSPR): New macro.
6047 (GEN_MFCR): New macro.
6048 (GEN_MTCR): New macro.
6049 (GEN_SYNC): New macro.
6050 (GEN_LWSYNC): New macro.
6051 (gen_x_form): New function.
6052 (GEN_OR): New macro.
6053 (GEN_MR): New macro.
6054 (GEN_LWARX): New macro.
6055 (GEN_STWCX): New macro.
6056 (GEN_CMPW): New macro.
6057 (gen_md_form): New function.
6058 (GEN_RLDICL): New macro.
6059 (GEN_RLDICR): New macro.
6060 (gen_i_form): New function.
6061 (GEN_B): New macro.
6062 (GEN_BL): New macro.
6063 (gen_b_form): New function.
6064 (GEN_BNE): New macro.
6065 (GEN_LOAD): New macro.
6066 (GEN_STORE): New macro.
6067 (gen_limm): New function.
6068 (gen_atomic_xchg): New function.
6069 (gen_call): New function.
6070 (ppc_relocate_instruction): New function.
6071 (ppc_install_fast_tracepoint_jump_pad): New function.
6072 (ppc_get_min_fast_tracepoint_insn_len): New function.
6073 (ppc_get_ipa_tdesc_idx): New function.
6074 (the_low_target): Wire in the new functions.
6075 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6076 tdescs.
6077 * linux-ppc-tdesc.h: New file.
6078
6079 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6080
6081 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6082 (alloc_jump_pad_buffer): New function.
6083 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6084 (alloc_jump_pad_buffer): New function.
6085 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6086 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6087 (alloc_jump_pad_buffer): New function.
6088 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6089 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6090 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6091 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6092
6093 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6094
6095 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6096 * linux-amd64-ipa.c: Likewise.
6097 * linux-i386-ipa.c: Likewise.
6098 * linux-s390-ipa.c: Likewise.
6099 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6100 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6101 set_trace_state_variable_value_ptr.
6102 (struct ipa_sym_addresses): Likewise.
6103 (symbol_list): Likewise.
6104 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6105 accessing gdb_collect directly.
6106 (gdb_collect_ptr_type): New typedef.
6107 (get_raw_reg_ptr_type): New typedef.
6108 (get_trace_state_variable_value_ptr_type): New typedef.
6109 (set_trace_state_variable_value_ptr_type): New typedef.
6110 (gdb_collect_ptr): New global.
6111 (get_raw_reg_ptr): New global.
6112 (get_trace_state_variable_value_ptr): New global.
6113 (set_trace_state_variable_value_ptr): New global.
6114 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6115 accessing get_raw_reg directly.
6116 (get_get_tsv_func_addr): Likewise for
6117 get_trace_state_variable_value_ptr.
6118 (get_set_tsv_func_addr): Likewise for
6119 set_trace_state_variable_value_ptr.
6120 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6121
6122 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6123
6124 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6125
6126 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6127
6128 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6129 packets.
6130 (relocate_instruction): Remove own_buf.
6131 * server.c (own_buf): Make global.
6132 (handle_v_requests): Make global.
6133 * server.h (own_buf): New declaration.
6134 (handle_v_requests): New prototype.
6135
6136 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6137
6138 PR 18377
6139 * linux-s390-low.c (add_insns): New function.
6140 (s390_emit_prologue): New function.
6141 (s390_emit_epilogue): New function.
6142 (s390_emit_add): New function.
6143 (s390_emit_sub): New function.
6144 (s390_emit_mul): New function.
6145 (s390_emit_lsh): New function.
6146 (s390_emit_rsh_signed): New function.
6147 (s390_emit_rsh_unsigned): New function.
6148 (s390_emit_ext): New function.
6149 (s390_emit_log_not): New function.
6150 (s390_emit_bit_and): New function.
6151 (s390_emit_bit_or): New function.
6152 (s390_emit_bit_xor): New function.
6153 (s390_emit_bit_not): New function.
6154 (s390_emit_equal): New function.
6155 (s390_emit_less_signed): New function.
6156 (s390_emit_less_unsigned): New function.
6157 (s390_emit_ref): New function.
6158 (s390_emit_if_goto): New function.
6159 (s390_emit_goto): New function.
6160 (s390_write_goto_address): New function.
6161 (s390_emit_litpool): New function.
6162 (s390_emit_const): New function.
6163 (s390_emit_call): New function.
6164 (s390_emit_reg): New function.
6165 (s390_emit_pop): New function.
6166 (s390_emit_stack_flush): New function.
6167 (s390_emit_zero_ext): New function.
6168 (s390_emit_swap): New function.
6169 (s390_emit_stack_adjust): New function.
6170 (s390_emit_set_r2): New function.
6171 (s390_emit_int_call_1): New function.
6172 (s390_emit_void_call_2): New function.
6173 (s390_emit_eq_goto): New function.
6174 (s390_emit_ne_goto): New function.
6175 (s390_emit_lt_goto): New function.
6176 (s390_emit_le_goto): New function.
6177 (s390_emit_gt_goto): New function.
6178 (s390_emit_ge_goto): New function.
6179 (s390x_emit_prologue): New function.
6180 (s390x_emit_epilogue): New function.
6181 (s390x_emit_add): New function.
6182 (s390x_emit_sub): New function.
6183 (s390x_emit_mul): New function.
6184 (s390x_emit_lsh): New function.
6185 (s390x_emit_rsh_signed): New function.
6186 (s390x_emit_rsh_unsigned): New function.
6187 (s390x_emit_ext): New function.
6188 (s390x_emit_log_not): New function.
6189 (s390x_emit_bit_and): New function.
6190 (s390x_emit_bit_or): New function.
6191 (s390x_emit_bit_xor): New function.
6192 (s390x_emit_bit_not): New function.
6193 (s390x_emit_equal): New function.
6194 (s390x_emit_less_signed): New function.
6195 (s390x_emit_less_unsigned): New function.
6196 (s390x_emit_ref): New function.
6197 (s390x_emit_if_goto): New function.
6198 (s390x_emit_const): New function.
6199 (s390x_emit_call): New function.
6200 (s390x_emit_reg): New function.
6201 (s390x_emit_pop): New function.
6202 (s390x_emit_stack_flush): New function.
6203 (s390x_emit_zero_ext): New function.
6204 (s390x_emit_swap): New function.
6205 (s390x_emit_stack_adjust): New function.
6206 (s390x_emit_int_call_1): New function.
6207 (s390x_emit_void_call_2): New function.
6208 (s390x_emit_eq_goto): New function.
6209 (s390x_emit_ne_goto): New function.
6210 (s390x_emit_lt_goto): New function.
6211 (s390x_emit_le_goto): New function.
6212 (s390x_emit_gt_goto): New function.
6213 (s390x_emit_ge_goto): New function.
6214 (s390_emit_ops): New function.
6215 (struct linux_target_ops): Fill in emit_ops hook.
6216
6217 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6218
6219 PR 18377
6220 * Makefile.in: Add s390 IPA files.
6221 * configure.srv: Build IPA for s390.
6222 * linux-s390-ipa.c: New file.
6223 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6224 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6225 (tdesc_s390_linux32): Likewise.
6226 (init_registers_s390_linux32v1): Likewise.
6227 (tdesc_s390_linux32v1): Likewise.
6228 (init_registers_s390_linux32v2): Likewise.
6229 (tdesc_s390_linux32v2): Likewise.
6230 (init_registers_s390_linux64): Likewise.
6231 (tdesc_s390_linux64): Likewise.
6232 (init_registers_s390_linux64v1): Likewise.
6233 (tdesc_s390_linux64v1): Likewise.
6234 (init_registers_s390_linux64v2): Likewise.
6235 (tdesc_s390_linux64v2): Likewise.
6236 (init_registers_s390_te_linux64): Likewise.
6237 (tdesc_s390_te_linux64): Likewise.
6238 (init_registers_s390_vx_linux64): Likewise.
6239 (tdesc_s390_vx_linux64): Likewise.
6240 (init_registers_s390_tevx_linux64): Likewise.
6241 (tdesc_s390_tevx_linux64): Likewise.
6242 (init_registers_s390x_linux64): Likewise.
6243 (tdesc_s390x_linux64): Likewise.
6244 (init_registers_s390x_linux64v1): Likewise.
6245 (tdesc_s390x_linux64v1): Likewise.
6246 (init_registers_s390x_linux64v2): Likewise.
6247 (tdesc_s390x_linux64v2): Likewise.
6248 (init_registers_s390x_te_linux64): Likewise.
6249 (tdesc_s390x_te_linux64): Likewise.
6250 (init_registers_s390x_vx_linux64): Likewise.
6251 (tdesc_s390x_vx_linux64): Likewise.
6252 (init_registers_s390x_tevx_linux64): Likewise.
6253 (tdesc_s390x_tevx_linux64): Likewise.
6254 (have_hwcap_s390_vx): New static variable.
6255 (s390_arch_setup): Fill have_hwcap_s390_vx.
6256 (s390_get_thread_area): New function.
6257 (s390_ft_entry_gpr_esa): New const.
6258 (s390_ft_entry_gpr_zarch): New const.
6259 (s390_ft_entry_misc): New const.
6260 (s390_ft_entry_fr): New const.
6261 (s390_ft_entry_vr): New const.
6262 (s390_ft_main_31): New const.
6263 (s390_ft_main_64): New const.
6264 (s390_ft_exit_fr): New const.
6265 (s390_ft_exit_vr): New const.
6266 (s390_ft_exit_misc): New const.
6267 (s390_ft_exit_gpr_esa): New const.
6268 (s390_ft_exit_gpr_zarch): New const.
6269 (append_insns): New function.
6270 (s390_relocate_instruction): New function.
6271 (s390_install_fast_tracepoint_jump_pad): New function.
6272 (s390_get_min_fast_tracepoint_insn_len): New function.
6273 (s390_get_ipa_tdesc_idx): New function.
6274 (struct linux_target_ops): Wire in the above functions.
6275 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6276 * linux-s390-tdesc.h: New file.
6277
6278 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6279
6280 * linux-s390-low.c (s390_supports_tracepoints): New function.
6281 (struct linux_target_ops): Fill supports_tracepoints hook.
6282
6283 2016-03-18 Yao Qi <yao.qi@linaro.org>
6284
6285 * linux-low.c (lwp_signal_can_be_delivered): New function.
6286 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6287
6288 2016-03-18 Yao Qi <yao.qi@linaro.org>
6289
6290 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6291 0 if signal is enqueued. Remove 'signal' from one debugging
6292 message. Move one debugging message to some lines below.
6293 Remove code setting 'signal' to 0.
6294
6295 2016-03-18 Yao Qi <yao.qi@linaro.org>
6296
6297 * linux-low.c (linux_low_filter_event): Remove redundant
6298 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6299
6300 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6301
6302 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6303 (struct linux_target_ops): Wire in the above.
6304
6305 2016-03-03 Yao Qi <yao.qi@linaro.org>
6306
6307 * linux-low.c: Update comments to start_step_over.
6308
6309 2016-03-03 Yao Qi <yao.qi@linaro.org>
6310
6311 PR server/19736
6312 * linux-low.c (handle_extended_wait): Set child suspended
6313 if event_lwp->bp_reinsert isn't zero.
6314
6315 2016-03-02 Yao Qi <yao.qi@linaro.org>
6316
6317 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6318 enqueue_pending_signal.
6319
6320 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6321
6322 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6323 is actually loaded.
6324
6325 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6326
6327 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6328 (s390_regmap_3264) [!__s390x__]: New global.
6329 (s390_collect_ptrace_register): Skip map entries containing -1.
6330 (s390_supply_ptrace_register): Ditto.
6331 (s390_fill_gprs_high): New function.
6332 (s390_store_gprs_high): New function.
6333 (s390_regsets): Add NT_S390_HIGH_GPRS.
6334 (s390_get_hwcap): Enable on 31-bit.
6335 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6336 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6337 Detect NT_S390_HIGH_GPRS.
6338 (s390_usrregs_info_3264): Enable on 31-bit.
6339 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6340 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6341
6342 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6343
6344 PR gdb/13808
6345 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6346 * configure.srv: Ditto.
6347 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6348 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6349 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6350 (init_registers_amd64_linux): Remove prototype.
6351 (tdesc_amd64_linux): Remove declaration.
6352 (get_ipa_tdesc): New function.
6353 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6354 initialize remaining tdescs.
6355 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6356 (init_registers_i386_linux): Remove prototype.
6357 (tdesc_i386_linux): Remove declaration.
6358 (get_ipa_tdesc): New function.
6359 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6360 initialize remaining tdescs.
6361 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6362 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6363 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6364 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6365 (x86_get_ipa_tdesc_idx): New function.
6366 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6367 * linux-x86-tdesc.h: New file.
6368 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6369 (target_get_ipa_tdesc_idx): New macro.
6370 * tracepoint.c (ipa_tdesc_idx): New macro.
6371 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6372 (symbol_list): Add ipa_tdesc_idx.
6373 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6374 (ipa_tdesc): Remove.
6375 (ipa_tdesc_idx): New variable.
6376 (get_context_regcache): Use get_ipa_tdesc.
6377 (gdb_collect): Ditto.
6378 (gdb_probe): Ditto.
6379 * tracepoint.h (get_ipa_tdesc): New prototype.
6380 (ipa_tdesc): Remove.
6381
6382 2016-02-24 Pedro Alves <palves@redhat.com>
6383
6384 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6385 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6386 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6387 Factor out common code between the USE_SIGTRAP_SIGINFO and
6388 !USE_SIGTRAP_SIGINFO blocks.
6389 (linux_low_filter_event): Call save_stop_reason instead of
6390 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6391 Update comments.
6392 (linux_wait_1): Update comments.
6393
6394 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6395
6396 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6397 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6398 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6399 ppc_insert_point, ppc_remove_point.
6400
6401 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6402
6403 * linux-s390-low.c (s390_supports_z_point_type): New function.
6404 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6405
6406 2016-02-16 Yao Qi <yao.qi@linaro.org>
6407
6408 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6409 PC. Get pc from regcache_read_pc.
6410
6411 2016-02-12 Yao Qi <yao.qi@linaro.org>
6412
6413 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6414 or linux_get_pc_32bit.
6415 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6416
6417 2016-02-12 Yao Qi <yao.qi@linaro.org>
6418
6419 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6420 arm_linux_get_next_pcs_fixup.
6421
6422 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6423
6424 * tracepoint.c (x_tracepoint_action_download): Change
6425 write_inferior_data_ptr to write_inferior_data_pointer.
6426 (cmd_qtstart): Likewise.
6427 (write_inferior_data_ptr): Remove.
6428 (download_agent_expr): Change write_inferior_data_ptr to
6429 write_inferior_data_pointer.
6430 (download_tracepoint_1): Likewise.
6431 (download_tracepoint): Likewise.
6432 (download_trace_state_variables): Likewise.
6433
6434 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6435 Marcin Kościelnicki <koriakin@0x04.net>
6436
6437 * tracepoint.c (struct tracepoint_action_ops): Remove.
6438 (struct tracepoint_action): Remove ops.
6439 (m_tracepoint_action_download, r_tracepoint_action_download)
6440 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6441 size and offset accordingly.
6442 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6443 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6444 (tracepoint_action_send, tracepoint_action_download): New functions.
6445 Helpers for trace action handlers.
6446 (add_tracepoint_action): Remove setup actions ops.
6447 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6448
6449 2016-02-10 Yao Qi <yao.qi@linaro.org>
6450
6451 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6452
6453 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6454
6455 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6456 to AC_OUTPUT.
6457 * configure: Regenerate.
6458
6459 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6460
6461 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6462 void * to gdb_byte *.
6463 * linux-low.c (siginfo_fixup): Likewise.
6464 (linux_xfer_siginfo): Likewise.
6465 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6466 Likewise.
6467 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6468
6469 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6470
6471 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6472 to srv_tgtobj.
6473 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6474 to srv_tgtobj.
6475 * linux-x86-low.c [__x86_64__]: Include
6476 "nat/amd64-linux-siginfo.h".
6477 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6478 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6479 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6480 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6481 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6482 (cpt_si_fd, si_timerid, si_overrun): Move from
6483 nat/amd64-linux-siginfo.c.
6484 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6485
6486 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6487
6488 * server.c (skip_to_semicolon): Remove.
6489 (process_point_options): Use strchrnul instead of
6490 skip_to_semicolon.
6491
6492 2016-01-26 Yao Qi <yao.qi@linaro.org>
6493
6494 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6495 * linux-low.c (install_software_single_step_breakpoints): Don't
6496 call regcache_read_pc.
6497 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6498 argument pc.
6499
6500 2016-01-26 Yao Qi <yao.qi@linaro.org>
6501
6502 * linux-low.c (install_software_single_step_breakpoints): Call
6503 regcache_read_pc instead of get_pc.
6504
6505 2016-01-26 Yao Qi <yao.qi@linaro.org>
6506
6507 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6508 (unblock_async_io): Rename to ...
6509 (block_unblock_async_io): ... it. New function.
6510 (enable_async_io): Don't install SIGIO handler. Unblock it
6511 instead.
6512 (disable_async_io): Don't ignore SIGIO. Block it instead.
6513 (initialize_async_io): Install SIGIO handler. Don't call
6514 unblock_async_io.
6515
6516 2016-01-26 Yao Qi <yao.qi@linaro.org>
6517
6518 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6519 first character is '\003', call *the_target->request_interrupt.
6520
6521 2016-01-25 Yao Qi <yao.qi@linaro.org>
6522
6523 * remote-utils.c (new_thread_notify): Remove.
6524 (dead_thread_notify): Likewise.
6525 * remote-utils.h (new_thread_notify): Remove declaration.
6526 (dead_thread_notify): Likewise.
6527
6528 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6529
6530 * gdb.trace/pending.exp: Fix expected message on continue.
6531
6532 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6533
6534 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6535 it works properly on big-endian machines where sizeof (CORE_ADDR)
6536 != sizeof (void *).
6537
6538 2016-01-21 Pedro Alves <palves@redhat.com>
6539
6540 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6541 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6542 * configure: Regenerate.
6543
6544 2016-01-21 Yao Qi <yao.qi@linaro.org>
6545
6546 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6547 is_thumb and set it according to CPSR saved on the stack.
6548 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6549 arm_sigreturn_next_pc.
6550
6551 2016-01-18 Yao Qi <yao.qi@linaro.org>
6552
6553 * linux-low.c (linux_set_pc_64bit): New function.
6554 (linux_get_pc_64bit): New function.
6555 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6556 Declare.
6557 * linux-sparc-low.c (debug_threads): Remove declaration.
6558 (sparc_get_pc): Remove.
6559 (the_low_target): Use linux_get_pc_64bit instead of
6560 sparc_get_pc.
6561 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6562 (the_low_target): Use linux_get_pc_64bit and
6563 linux_set_pc_64bit.
6564
6565 2016-01-18 Yao Qi <yao.qi@linaro.org>
6566
6567 * linux-arm-low.c (debug_threads): Remove declaration.
6568 (arm_get_pc, arm_set_pc): Remove.
6569 (the_low_target): Use linux_get_pc_32bit and
6570 linux_set_pc_32bit.
6571 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6572 (the_low_target): Use linux_get_pc_32bit and
6573 linux_set_pc_32bit.
6574 * linux-cris-low.c (debug_threads): Remove declaration.
6575 (cris_get_pc, cris_set_pc,): Remove.
6576 (the_low_target): Use linux_get_pc_32bit and
6577 linux_set_pc_32bit.
6578 * linux-crisv32-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-low.c: Include inttypes.h.
6583 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6584 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6585 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6586 (the_low_target): Use linux_get_pc_32bit and
6587 linux_set_pc_32bit.
6588 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6589 (the_low_target): Use linux_get_pc_32bit and
6590 linux_set_pc_32bit.
6591 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6592 (the_low_target): Use linux_get_pc_32bit and
6593 linux_set_pc_32bit.
6594 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6595 (the_low_target): Use linux_get_pc_32bit and
6596 linux_set_pc_32bit.
6597 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6598 (the_low_target): Use linux_get_pc_32bit and
6599 linux_set_pc_32bit.
6600
6601 2016-01-18 Gary Benson <gbenson@redhat.com>
6602
6603 * configure.ac (AC_FUNC_FORK): New check.
6604 * config.in: Regenerate.
6605 * configure: Likewise.
6606
6607 2016-01-14 Yao Qi <yao.qi@linaro.org>
6608
6609 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6610 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6611 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6612 arm_get_next_pcs_ctor.
6613
6614 2016-01-12 Josh Stone <jistone@redhat.com>
6615 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6616
6617 * inferiors.h: Include "gdb_vecs.h".
6618 (struct process_info): Add syscalls_to_catch.
6619 * inferiors.c (remove_process): Free syscalls_to_catch.
6620 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6621 syscall_return stops.
6622 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6623 * server.c (handle_general_set): Handle QCatchSyscalls.
6624 (handle_query): Report support for QCatchSyscalls.
6625 * target.h (struct target_ops): Add supports_catch_syscall.
6626 (target_supports_catch_syscall): New macro.
6627 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6628 (struct lwp_info): Add syscall_state.
6629 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6630 Maintain syscall_state and syscalls_to_catch across exec.
6631 (get_syscall_trapinfo): New function, proxy to the_low_target.
6632 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6633 (linux_low_filter_event): Toggle syscall_state entry/return for
6634 syscall traps, and set it ignored for all others.
6635 (gdb_catching_syscalls_p): New function.
6636 (gdb_catch_this_syscall_p): New function.
6637 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6638 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6639 (linux_supports_catch_syscall): New function.
6640 (linux_target_ops): Install it.
6641 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6642 (the_low_target): Install it.
6643
6644 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6645
6646 * acinclude.m4: Include new ../warning.m4 file.
6647 * configure: Regenerated.
6648 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6649
6650 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6651
6652 * ax.c (is_goto_target): Mark static.
6653 * linux-low.c (register_addr): Likewise.
6654 (linux_fetch_registers, linux_store_registers): Likewise.
6655 * mem-break.c (any_persistent_commands): Fix old prototype.
6656 (add_commands_to_breakpoint): Mark static.
6657 * regcache.c (find_register_by_name): Delete unused func.
6658 * remote-utils.c (hex_or_minus_one): Mark static.
6659 * server.c (monitor_show_help): Mark static.
6660 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6661 handle_v_requests): Likewise.
6662
6663 2016-01-12 Pedro Alves <palves@redhat.com>
6664
6665 Remove use of the registered trademark symbol throughout.
6666
6667 2016-01-08 Yao Qi <yao.qi@linaro.org>
6668
6669 * remote-utils.c (getpkt): If c is '\003', call target hook
6670 request_interrupt.
6671
6672 2016-01-06 Yao Qi <yao.qi@linaro.org>
6673
6674 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6675 linux-aarch32-low.c.
6676 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6677 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6678 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6679 (thumb2_breakpoint): Declare.
6680 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6681 linux-aarch32-low.h.
6682 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6683 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6684 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6685
6686 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6687
6688 * gdbreplay.c (gdbreplay_version): Change copyright year in
6689 version message.
6690 * server.c (gdbserver_version): Likewise.
6691
6692 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6693
6694 * server.c (crc32_table): Delete.
6695 (crc32): Use libiberty's xcrc32 function.
6696
6697 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6698
6699 * lynx-low.c (lynx_delete_thread_callback): New function.
6700 (lynx_mourn): Properly delete our process and all of its
6701 threads. Remove call to clear_inferiors.
6702
6703 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6704
6705 * target.c (thread_search_callback): Add check that
6706 the thread_stopped target callback is not NULL before
6707 calling it.
6708
6709 2015-12-21 Yao Qi <yao.qi@linaro.org>
6710
6711 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6712 arm breakpoint.
6713
6714 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6715
6716 * server.c (handle_query): Call target_supports_software_single_step.
6717
6718 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6719
6720 * linux-low.c (single_step): New function.
6721 (linux_resume_one_lwp_throw): Call single_step.
6722 (start_step_over): Likewise.
6723
6724 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6725
6726 * Makefile.in (SFILES): Append arch/arm-linux.c,
6727 arch/arm-get-next-pcs.c.
6728 (arm-linux.o): New rule.
6729 (arm-get-next-pcs.o): New rule.
6730 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6731 arm-linux.o.
6732 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6733 to linux-aarch32-low.c.
6734 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6735 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6736 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6737 (thumb2_breakpoint_len): Likewise.
6738 (arm_is_thumb_mode): Make non-static.
6739 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6740 from linux-aarch32-low.c.
6741 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6742 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6743 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6744 (thumb2_breakpoint_len): Likewise.
6745 (arm_is_thumb_mode): New declaration.
6746 * linux-arm-low.c: Include arch/arm-linux.h
6747 aarch/arm-get-next-pcs.h, sys/syscall.h.
6748 (get_next_pcs_ops): New struct.
6749 (get_next_pcs_addr_bits_remove): New function.
6750 (get_next_pcs_is_thumb): New function.
6751 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6752 (arm_sigreturn_next_pc): Likewise.
6753 (get_next_pcs_syscall_next_pc): Likewise.
6754 (arm_gdbserver_get_next_pcs): Likewise.
6755 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6756 Initialize.
6757 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6758 * server.h: Include gdb_vecs.h.
6759
6760 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6761
6762 * Makefile.in (SFILES): Append common/common-regcache.c.
6763 (OBS): Append common-regcache.o.
6764 (common-regcache.o): New rule.
6765 * regcache.c (init_register_cache): Initialize cache to
6766 REG_UNAVAILABLE.
6767 (regcache_raw_read_unsigned): New function.
6768 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6769 register_status enum.
6770
6771 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6772
6773 * linux-aarch64-low.c (the_low_targets): Rename
6774 breakpoint_reinsert_addr to get_next_pcs.
6775 * linux-arm-low.c (the_low_targets): Likewise.
6776 * linux-bfin-low.c (the_low_targets): Likewise.
6777 * linux-cris-low.c (the_low_targets): Likewise.
6778 * linux-crisv32-low.c (the_low_targets): Likewise.
6779 * linux-low.c (can_software_single_step): Likewise.
6780 (install_software_single_step_breakpoints): New function.
6781 (start_step_over): Use install_software_single_step_breakpoints.
6782 * linux-low.h: New CORE_ADDR vector.
6783 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6784 get_next_pcs.
6785 * linux-mips-low.c (the_low_targets): Likewise.
6786 * linux-nios2-low.c (the_low_targets): Likewise.
6787 * linux-sparc-low.c (the_low_targets): Likewise.
6788
6789 2015-12-17 Pedro Alves <palves@redhat.com>
6790
6791 * linux-low.c (linux_kill_one_lwp): Remove references to
6792 LinuxThreads.
6793 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6794 to 'kill'.
6795 (linux_init_signals): Delete.
6796 (initialize_low): Adjust.
6797 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6798
6799 2015-12-16 Pedro Alves <palves@redhat.com>
6800
6801 * configure.ac (compiler warning flags): When testing a
6802 -Wno-foo option, check whether -Wfoo works instead.
6803 * configure: Regenerate.
6804
6805 2015-12-11 Don Breazeal <donb@codesourcery.com>
6806
6807 * server.c (process_serial_event): Don't exit from gdbserver
6808 in remote mode if there are still active inferiors.
6809
6810 2015-12-11 Yao Qi <yao.qi@linaro.org>
6811
6812 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6813 arm_breakpoint_at if the process is 32-bit.
6814
6815 2015-12-11 Yao Qi <yao.qi@linaro.org>
6816
6817 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6818 arm breakpoint.
6819
6820 2015-12-07 Yao Qi <yao.qi@linaro.org>
6821
6822 * configure.srv: Append arm.o to srv_tgtobj for
6823 aarch64*-*-linux* target.
6824 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6825 from linux-arm-low.c.
6826 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6827 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6828 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6829 (thumb2_breakpoint_len): Likewise.
6830 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6831 (arm_breakpoint_kinds): Likewise.
6832 (arm_breakpoint_kind_from_pc): Likewise.
6833 (arm_sw_breakpoint_from_kind): Likewise.
6834 (arm_breakpoint_kind_from_current_state): Likewise.
6835 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6836 (arm_sw_breakpoint_from_kind): Declare.
6837 (arm_breakpoint_kind_from_current_state): Declare.
6838 (arm_breakpoint_at): Declare.
6839 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6840 arm_sw_breakpoint_from_kind if process is 32-bit.
6841 (aarch64_breakpoint_kind_from_pc): New function.
6842 (aarch64_breakpoint_kind_from_current_state): New function.
6843 (the_low_target): Initialize fields breakpoint_kind_from_pc
6844 and breakpoint_kind_from_current_state.
6845 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6846 linux-aarch32-low.c.
6847 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6848 (arm_breakpoint, arm_breakpoint_len): Likewise.
6849 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6850 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6851 (arm_is_thumb_mode): Likewise.
6852 (arm_breakpoint_at): Likewise.
6853 (arm_breakpoint_kind_from_pc): Likewise.
6854 (arm_sw_breakpoint_from_kind): Likewise.
6855 (arm_breakpoint_kind_from_current_state): Likewise.
6856
6857 Revert:
6858 2015-08-04 Yao Qi <yao.qi@linaro.org>
6859
6860 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6861 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6862 * server.c (extended_protocol): Remove "static".
6863 * server.h (extended_protocol): Declare it.
6864
6865 2015-12-04 Josh Stone <jistone@redhat.com>
6866
6867 * target.h (struct target_ops) <arch_setup>: Rename to ...
6868 (struct target_ops) <post_create_inferior>: ... this.
6869 (target_arch_setup): Rename to ...
6870 (target_post_create_inferior): ... this, calling post_create_inferior.
6871 * server.c (start_inferior): Update target_arch_setup calls to
6872 target_post_create_inferior.
6873 * linux-low.c (linux_low_ptrace_options): Forward declare.
6874 (linux_arch_setup): Update its comment for general use.
6875 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6876 (struct linux_target_ops): Use linux_post_create_inferior.
6877 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6878 to post_create_inferior.
6879 * nto-low.c (struct nto_target_ops): Likewise.
6880 * spu-low.c (struct spu_target_ops): Likewise.
6881 * win32-low.c (struct win32_target_ops): Likewise.
6882
6883 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6884
6885 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6886
6887 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6888
6889 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6890 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6891 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6892 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6893 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6894 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6895 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6896 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6897 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6898 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6899 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6900 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6901
6902 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6903
6904 * linux-low.c (linux_look_up_symbols): Don't call
6905 linux_supports_traceclone.
6906 * linux-low.h (thread_db_init): Remove use_events argument.
6907 * thread-db.c (thread_db_use_event): Remove global variable.
6908 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6909 (struct thread_db) <td_create_bp>: Remove field.
6910 (thread_db_create_event): Remove function.
6911 (thread_db_enable_reporting): Likewise.
6912 (find_one_thread): Don't check for thread_db_use_events.
6913 (attach_thread): Likewise.
6914 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6915 (try_thread_db_load_1): Don't check for thread_db_use_events.
6916 (thread_db_init): Remove use_events argument and thread events
6917 handling.
6918 (remove_thread_event_breakpoints): Remove function.
6919 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6920
6921 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6922
6923 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6924 New function.
6925 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6926 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6927 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6928 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6929 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6930 Initialize.
6931 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6932 New function.
6933 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6934 * linux-low.c (can_hardware_single_step): Use
6935 supports_hardware_single_step.
6936 (can_software_single_step): New function.
6937 (start_step_over): Call can_software_single_step.
6938 (linux_supports_hardware_single_step): New function.
6939 (struct target_ops) <supports_software_single_step>: Initialize.
6940 * linux-low.h (struct linux_target_ops)
6941 <supports_hardware_single_step>: Initialize.
6942 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6943 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6944 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6945 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6946 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6947 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6948 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6949 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6950 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6951 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6952 Initialize.
6953 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6954 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6955 Initialize.
6956 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6957 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6958 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6959 New function.
6960 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6961 * target.h (struct target_ops): <supports_software_single_step>:
6962 New field.
6963 (target_supports_software_single_step): New macro.
6964
6965 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6966
6967 * linux-low.c (linux_wait_1): Fix pc advance condition.
6968 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6969 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6970
6971 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6972
6973 * linux-arm-low.c (arm_is_thumb_mode): New function.
6974 (arm_breakpoint_at): Use arm_is_thumb_mode.
6975 (arm_breakpoint_kind_from_current_state): New function.
6976 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6977 Initialize.
6978 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6979 (linux_breakpoint_kind_from_current_state): New function.
6980 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6981 * linux-low.h (struct linux_target_ops)
6982 <breakpoint_kind_from_current_state>: New field.
6983 * target.h (struct target_ops): Likewise.
6984 (target_breakpoint_kind_from_current_state): New macro.
6985
6986 2015-11-30 Pedro Alves <palves@redhat.com>
6987
6988 * linux-low.c (linux_resume): Wake up the event loop before
6989 returning.
6990
6991 2015-11-30 Pedro Alves <palves@redhat.com>
6992
6993 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6994 check.
6995 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6996 to -1.
6997 * target.c (struct thread_search): New structure.
6998 (thread_search_callback): New function.
6999 (prev_general_thread): New global.
7000 (prepare_to_access_memory, done_accessing_memory): New functions.
7001 * target.h (prepare_to_access_memory, done_accessing_memory):
7002 Replace macros with function declarations.
7003
7004 2015-11-30 Pedro Alves <palves@redhat.com>
7005
7006 PR 14618
7007 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7008 report TARGET_WAITKIND_NO_RESUMED.
7009 * remote-utils.c (prepare_resume_reply): Handle
7010 TARGET_WAITKIND_NO_RESUMED.
7011 * server.c (report_no_resumed): New global.
7012 (handle_query) <qSupported>: Handle "no-resumed+". Report
7013 "no-resumed+" support.
7014 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7015 return error if the client doesn't support no-resumed events.
7016 (push_stop_notification): New function.
7017 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7018 events if the client supports them.
7019
7020 2015-11-30 Pedro Alves <palves@redhat.com>
7021
7022 * linux-low.c (thread_still_has_status_pending_p): Don't check
7023 vCont;t here.
7024 (lwp_resumed): New function.
7025 (status_pending_p_callback): Return early if the LWP is not
7026 supposed to be resumed.
7027
7028 2015-11-30 Pedro Alves <palves@redhat.com>
7029
7030 * linux-low.c (handle_extended_wait): Assert that the LWP's
7031 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7032 thread create events, leave the new child's status pending.
7033 (linux_low_filter_event): If GDB wants to hear about thread exit
7034 events, leave the LWP marked dead and don't delete it.
7035 (linux_wait_for_event_filtered): Don't check for thread exit.
7036 (filter_exit_event): New function.
7037 (linux_wait_1): Use it, when returning an exit event.
7038 (linux_resume_one_lwp_throw): Assert that the LWP's
7039 waitstatus is TARGET_WAITKIND_IGNORE.
7040 * remote-utils.c (prepare_resume_reply): Handle
7041 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7042 * server.c (report_thread_events): New global.
7043 (handle_general_set): Handle QThreadEvents.
7044 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7045 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7046 TARGET_WAITKIND_THREAD_EXITED.
7047 * server.h (report_thread_events): Declare.
7048
7049 2015-11-30 Pedro Alves <palves@redhat.com>
7050
7051 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7052 the thread's last_resume_kind was resume_stop.
7053
7054 2015-11-30 Pedro Alves <palves@redhat.com>
7055
7056 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7057 before returning.
7058
7059 2015-11-30 Pedro Alves <palves@redhat.com>
7060
7061 * server.c (handle_v_requests): Handle vCtrlC.
7062
7063 2015-11-30 Pedro Alves <palves@redhat.com>
7064
7065 * gdbthread.h (find_any_thread_of_pid): Declare.
7066 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7067 functions.
7068 * server.c (handle_query): If current_thread is NULL, look for
7069 another thread of the selected process.
7070
7071 2015-11-26 Daniel Colascione <dancol@dancol.org>
7072 Simon Marchi <simon.marchi@ericsson.com>
7073
7074 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7075 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7076 name in reply.
7077 * target.h (struct target_ops) <thread_name>: New field.
7078 (target_thread_name): New macro.
7079
7080 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7081
7082 * regcache.h (regcache_invalidate_pid): Add declaration.
7083 * regcache.c (regcache_invalidate_pid): New function, extracted
7084 from regcache_invalidate.
7085 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7086 Add trivial documentation comment.
7087 * lynx-low.c: Use regcache_invalidate_pid instead of
7088 regcache_invalidate.
7089
7090 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7091
7092 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7093 and Elf64_auxv_t if the target is Android.
7094
7095 2015-11-22 Doug Evans <xdje42@gmail.com>
7096
7097 * target.h: #include <sys/types.h>.
7098
7099 2015-11-19 Pedro Alves <palves@redhat.com>
7100
7101 * linux-low.c (linux_process_qsupported): Change prototype.
7102 Adjust.
7103 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7104 Change prototype.
7105 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7106 and adjust to loop over all features.
7107 * server.c (handle_query) <qSupported>: Adjust to call
7108 target_process_qsupported once, passing it a vector of unprocessed
7109 features.
7110 * target.h (struct target_ops) <process_qsupported>: Change
7111 prototype.
7112 (target_process_qsupported): Adjust.
7113
7114 2015-11-19 Pedro Alves <palves@redhat.com>
7115
7116 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7117 mode.
7118 * configure: Regenerate.
7119
7120 2015-11-19 Pedro Alves <palves@redhat.com>
7121
7122 * configure: Regenerate.
7123
7124 2015-11-19 Yao Qi <yao.qi@linaro.org>
7125
7126 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7127 type to uint32_t.
7128
7129 2015-11-19 Yao Qi <yao.qi@linaro.org>
7130
7131 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7132 (struct aarch64_operand): Move enum out.
7133
7134 2015-11-19 Yao Qi <yao.qi@linaro.org>
7135
7136 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7137 struct user_fpsimd_state *.
7138 (aarch64_store_fpregset): Likewise.
7139
7140 2015-11-19 Yao Qi <yao.qi@linaro.org>
7141
7142 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7143 struct user_pt_regs *.
7144 (aarch64_store_gregset): Likewise.
7145
7146 2015-11-18 Pedro Alves <palves@redhat.com>
7147
7148 * Makefile.in (all_object_files): Add $IPA_OBJS.
7149
7150 2015-11-17 Pedro Alves <palves@redhat.com>
7151
7152 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7153 GDB_SIGNAL_0 and gdb_signal_to_string.
7154
7155 2015-11-17 Pedro Alves <palves@redhat.com>
7156
7157 * win32-low.c (handle_output_debug_string): Remove parameter.
7158 (win32_kill): Remove our_status local and adjust call to
7159 handle_output_debug_string.
7160 (get_child_debug_event): Adjust call to
7161 handle_output_debug_string.
7162
7163 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7164
7165 * linux-mips-low.c (mips_fill_gregset): Add cast.
7166 (mips_store_gregset): Likewise.
7167 (mips_fill_fpregset): Likewise.
7168 (mips_store_fpregset): Likewise.
7169
7170 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7171
7172 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7173 priv.
7174
7175 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7176
7177 * linux-mips-low.c (mips_linux_new_thread): Change type of
7178 watch_type to enum target_hw_bp_type.
7179
7180 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7181
7182 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7183 Change return type to arm_hwbp_type.
7184
7185 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7186
7187 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7188 (arm_store_gregset): Likewise.
7189 * linux-arm-low.c (arm_get_hwcap): Likewise.
7190 (arm_read_description): Likewise.
7191
7192 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7193
7194 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7195
7196 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7197
7198 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7199 (ppc_fill_vsxregset): Likewise.
7200 (ppc_store_vsxregset): Likewise.
7201 (ppc_fill_vrregset): Likewise.
7202 (ppc_store_vrregset): Likewise.
7203 (ppc_fill_evrregset): Likewise.
7204 (ppc_store_evrregset): Likewise.
7205
7206 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7207
7208 * linux-ppc-low.c (ppc_usrregs_info): Remove
7209 forward-declaration.
7210 (ppc_arch_setup): Move lower in file.
7211
7212 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7213
7214 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7215 (ps_pdwrite): Likewise.
7216
7217 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7218
7219 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7220 to after assert checks.
7221
7222 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7223
7224 * proc-service.c (ps_pdread): Add/adjust casts.
7225 (ps_pdwrite): Add/adjust casts.
7226
7227 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7228
7229 * server.c (handle_search_memory_1): Cast return value of
7230 memmem.
7231
7232 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7233
7234 * server.c (write_qxfer_response): Change type of data to
7235 gdb_byte *.
7236
7237 2015-10-29 Pedro Alves <palves@redhat.com>
7238
7239 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7240
7241 2015-10-29 Pedro Alves <palves@redhat.com>
7242
7243 * tracepoint.c (clear_installed_tracepoints): Add casts.
7244
7245 2015-10-29 Pedro Alves <palves@redhat.com>
7246
7247 * server.c (handle_v_cont, process_serial_event): Add enum
7248 gdb_signal casts to signal parsing code.
7249
7250 2015-10-29 Pedro Alves <palves@redhat.com>
7251
7252 * linux-low.h (NULL_REGSET): Define.
7253 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7254 * linux-arm-low.c (arm_regsets): Likewise.
7255 * linux-crisv32-low.c (cris_regsets): Likewise.
7256 * linux-m68k-low.c (m68k_regsets): Likewise.
7257 * linux-mips-low.c (mips_regsets): Likewise.
7258 * linux-nios2-low.c (nios2_regsets): Likewise.
7259 * linux-ppc-low.c (ppc_regsets): Likewise.
7260 * linux-s390-low.c (s390_regsets): Likewise.
7261 * linux-sh-low.c (sh_regsets): Likewise.
7262 * linux-sparc-low.c (sparc_regsets): Likewise.
7263 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7264 * linux-tile-low.c (tile_regsets): Likewise.
7265 * linux-x86-low.c (x86_regsets): Likewise.
7266 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7267
7268 2015-10-29 Pedro Alves <palves@redhat.com>
7269
7270 * linux-low.h (NULL_REGSET): Define.
7271 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7272 * linux-arm-low.c (arm_regsets): Likewise.
7273 * linux-crisv32-low.c (cris_regsets): Likewise.
7274 * linux-m68k-low.c (m68k_regsets): Likewise.
7275 * linux-mips-low.c (mips_regsets): Likewise.
7276 * linux-nios2-low.c (nios2_regsets): Likewise.
7277 * linux-ppc-low.c (ppc_regsets): Likewise.
7278 * linux-s390-low.c (s390_regsets): Likewise.
7279 * linux-sh-low.c (sh_regsets): Likewise.
7280 * linux-sparc-low.c (sparc_regsets): Likewise.
7281 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7282 * linux-tile-low.c (tile_regsets): Likewise.
7283 * linux-x86-low.c (x86_regsets): Likewise.
7284 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7285
7286 2015-10-26 Doug Evans <dje@google.com>
7287
7288 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7289
7290 2015-10-26 Doug Evans <dje@google.com>
7291
7292 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7293
7294 2015-10-26 Doug Evans <dje@google.com>
7295
7296 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7297 for debug_printf.
7298 (attach_thread, find_new_threads_callback): Ditto.
7299
7300 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7301
7302 * mem-break.h (set_breakpoint_data): Remove.
7303
7304 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7305
7306 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7307 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7308 (initialize_low): Remove set_breakpoint_data call.
7309 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7310 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7311 (initialize_low): Remove set_breakpoint_data call.
7312 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7313 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7314 (initialize_low): Remove set_breakpoint_data call.
7315
7316 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7317
7318 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7319 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7320 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7321 * target.h (target_breakpoint_kind_from_pc): New macro.
7322
7323 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7324
7325 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7326 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7327 the default breakpoint kind.
7328
7329 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7330
7331 * linux-arm-low.c (arm_supports_z_point_type): Add software
7332 breakpoint support.
7333
7334 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7335
7336 * linux-arm-low.c: Refactor breakpoint definitions.
7337 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7338 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7339
7340 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7341
7342 * Makefile.in: Add arm.c/o.
7343 * configure.srv: Likewise.
7344 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7345 (arm_breakpoint_kind_from_pc): New function.
7346 (arm_sw_breakpoint_from_kind): Return proper kind.
7347 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7348
7349 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7350
7351 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7352 removal.
7353 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7354 (struct raw_breakpoint) <size>: Remove.
7355 (struct raw_breakpoint) <kind>: Add.
7356 (bp_size): New function.
7357 (bp_opcode): Likewise.
7358 (find_raw_breakpoint_at): Adjust for kind.
7359 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7360 (remove_memory_breakpoint): Adjust for kind call bp_size.
7361 (set_raw_breakpoint_at): Adjust for kind.
7362 (set_breakpoint): Likewise.
7363 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7364 (delete_raw_breakpoint): Adjust for kind.
7365 (delete_breakpoint): Likewise.
7366 (find_gdb_breakpoint): Likewise.
7367 (set_gdb_breakpoint_1): Likewise.
7368 (set_gdb_breakpoint): Likewise.
7369 (delete_gdb_breakpoint_1): Likewise.
7370 (delete_gdb_breakpoint): Likewise.
7371 (uninsert_raw_breakpoint): Likewise.
7372 (reinsert_raw_breakpoint): Likewise.
7373 (set_breakpoint_data): Remove.
7374 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7375 (check_mem_read): Adjust for kind call bp_size.
7376 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7377 (clone_one_breakpoint): Adjust for kind.
7378 * mem-break.h (set_gdb_breakpoint): Likewise.
7379 (delete_gdb_breakpoint): Likewise.
7380 * server.c (process_serial_event): Likewise.
7381
7382 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7383
7384 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7385 (struct linux_target_ops) <breakpoint>: Remove.
7386 (struct linux_target_ops) <breakpoint_len>: Remove.
7387 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7388 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7389 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7390 (arm_sw_breakpoint_from_kind): New function.
7391 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7392 (struct linux_target_ops) <breakpoint>: Remove.
7393 (struct linux_target_ops) <breakpoint_len>: Remove.
7394 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7395 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7396 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7397 (struct linux_target_ops) <breakpoint>: Remove.
7398 (struct linux_target_ops) <breakpoint_len>: Remove.
7399 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7400 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7401 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7402 (struct linux_target_ops) <breakpoint>: Remove.
7403 (struct linux_target_ops) <breakpoint_len>: Remove.
7404 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7405 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7406 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7407 and sw_breakpoint_from_kind to increment the pc.
7408 (linux_breakpoint_kind_from_pc): New function.
7409 (linux_sw_breakpoint_from_kind): New function.
7410 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7411 (initialize_low): Call breakpoint_kind_from_pc and
7412 sw_breakpoint_from_kind to replace breakpoint_data/len.
7413 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7414 New field.
7415 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7416 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7417 (struct linux_target_ops) <breakpoint>: Remove.
7418 (struct linux_target_ops) <breakpoint_len>: Remove.
7419 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7420 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7421 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7422 (struct linux_target_ops) <breakpoint>: Remove.
7423 (struct linux_target_ops) <breakpoint_len>: Remove.
7424 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7425 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7426 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7427 (struct linux_target_ops) <breakpoint>: Remove.
7428 (struct linux_target_ops) <breakpoint_len>: Remove.
7429 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7430 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7431 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7432 (struct linux_target_ops) <breakpoint>: Remove.
7433 (struct linux_target_ops) <breakpoint_len>: Remove.
7434 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7435 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7436 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7437 (struct linux_target_ops) <breakpoint>: Remove.
7438 (struct linux_target_ops) <breakpoint_len>: Remove.
7439 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7440 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7441 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7442 (struct linux_target_ops) <breakpoint>: Remove.
7443 (struct linux_target_ops) <breakpoint_len>: Remove.
7444 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7445 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7446 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7447 (struct linux_target_ops) <breakpoint>: Remove.
7448 (struct linux_target_ops) <breakpoint_len>: Remove.
7449 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7450 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7451 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7452 (struct linux_target_ops) <breakpoint>: Remove.
7453 (struct linux_target_ops) <breakpoint_len>: Remove.
7454 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7455 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7456 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7457 (struct linux_target_ops) <breakpoint>: Remove.
7458 (struct linux_target_ops) <breakpoint_len>: Remove.
7459 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7460 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7461 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7462 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7463 (struct linux_target_ops) <breakpoint>: Remove.
7464 (struct linux_target_ops) <breakpoint_len>: Remove.
7465 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7466 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7467 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7468 (struct linux_target_ops) <breakpoint>: Remove.
7469 (struct linux_target_ops) <breakpoint_len>: Remove.
7470 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7471 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7472
7473 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7474
7475 * linux-cris-low.c (cris_get_pc): Remove void arg.
7476
7477 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7478
7479 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7480 variable name.
7481
7482 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7483
7484 * inferiors.c (thread_pid_matches_callback): New function.
7485 (find_thread_process): New function.
7486 (remove_thread): Reset current_thread.
7487 (remove_process): Assert threads have been removed first.
7488
7489 2015-10-15 Yao Qi <yao.qi@linaro.org>
7490
7491 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7492 if it is 3.
7493 (aarch64_remove_point): Likewise.
7494 * regcache.c (regcache_register_size): New function.
7495
7496 2015-10-12 Yao Qi <yao.qi@linaro.org>
7497
7498 * linux-aarch64-low.c: Update all callers as emit_load_store
7499 is renamed to aarch64_emit_load_store.
7500
7501 2015-10-12 Yao Qi <yao.qi@linaro.org>
7502
7503 * linux-aarch64-low.c: Update all callers of function renaming
7504 from emit_insn to aarch64_emit_insn.
7505
7506 2015-10-12 Yao Qi <yao.qi@linaro.org>
7507
7508 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7509 arch/aarch64-insn.h.
7510 (struct aarch64_memory_operand): Likewise.
7511 (ENCODE): Likewise.
7512 (emit_insn): Move to arch/aarch64-insn.c.
7513 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7514 (emit_load_store): Move to arch/aarch64-insn.c.
7515 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7516 (can_encode_int32): Remove.
7517
7518 2015-10-12 Yao Qi <yao.qi@linaro.org>
7519
7520 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7521 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7522 (aarch64_relocate_instruction): Likewise.
7523 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7524 (struct aarch64_insn_visitor): Likewise.
7525
7526 2015-10-12 Yao Qi <yao.qi@linaro.org>
7527
7528 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7529 (struct aarch64_insn_visitor): New.
7530 (struct aarch64_insn_relocation_data): New.
7531 (aarch64_ftrace_insn_reloc_b): New function.
7532 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7533 (aarch64_ftrace_insn_reloc_cb): Likewise.
7534 (aarch64_ftrace_insn_reloc_tb): Likewise.
7535 (aarch64_ftrace_insn_reloc_adr): Likewise.
7536 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7537 (aarch64_ftrace_insn_reloc_others): Likewise.
7538 (visitor): New.
7539 (aarch64_relocate_instruction): Use visitor.
7540
7541 2015-10-12 Yao Qi <yao.qi@linaro.org>
7542
7543 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7544 int. Add argument buf.
7545 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7546 aarch64_relocate_instruction.
7547
7548 2015-10-12 Yao Qi <yao.qi@linaro.org>
7549
7550 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7551 argument insn. Remove local variable insn. Don't call
7552 target_read_uint32.
7553 (aarch64_install_fast_tracepoint_jump_pad): Call
7554 target_read_uint32.
7555
7556 2015-09-30 Yao Qi <yao.qi@linaro.org>
7557
7558 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7559 (emit_load_store_pair): Likewise.
7560
7561 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7562
7563 * dll.c (match_dll): Add cast(s).
7564 (unloaded_dll): Likewise.
7565 * linux-low.c (second_thread_of_pid_p): Likewise.
7566 (delete_lwp_callback): Likewise.
7567 (count_events_callback): Likewise.
7568 (select_event_lwp_callback): Likewise.
7569 (linux_set_resume_request): Likewise.
7570 * server.c (accumulate_file_name_length): Likewise.
7571 (emit_dll_description): Likewise.
7572 (handle_qxfer_threads_worker): Likewise.
7573 (visit_actioned_threads): Likewise.
7574 * thread-db.c (any_thread_of): Likewise.
7575 * tracepoint.c (same_process_p): Likewise.
7576 (match_blocktype): Likewise.
7577 (build_traceframe_info_xml): Likewise.
7578
7579 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7580
7581 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7582 assignment.
7583 (gdb_unparse_agent_expr): Likewise.
7584 * hostio.c (require_data): Likewise.
7585 (handle_pread): Likewise.
7586 * linux-low.c (disable_regset): Likewise.
7587 (fetch_register): Likewise.
7588 (store_register): Likewise.
7589 (get_dynamic): Likewise.
7590 (linux_qxfer_libraries_svr4): Likewise.
7591 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7592 (set_fast_tracepoint_jump): Likewise.
7593 (uninsert_fast_tracepoint_jumps_at): Likewise.
7594 (reinsert_fast_tracepoint_jumps_at): Likewise.
7595 (validate_inserted_breakpoint): Likewise.
7596 (clone_agent_expr): Likewise.
7597 * regcache.c (init_register_cache): Likewise.
7598 * remote-utils.c (putpkt_binary_1): Likewise.
7599 (decode_M_packet): Likewise.
7600 (decode_X_packet): Likewise.
7601 (look_up_one_symbol): Likewise.
7602 (relocate_instruction): Likewise.
7603 (monitor_output): Likewise.
7604 * server.c (handle_search_memory): Likewise.
7605 (handle_qxfer_exec_file): Likewise.
7606 (handle_qxfer_libraries): Likewise.
7607 (handle_qxfer): Likewise.
7608 (handle_query): Likewise.
7609 (handle_v_cont): Likewise.
7610 (handle_v_run): Likewise.
7611 (captured_main): Likewise.
7612 * target.c (write_inferior_memory): Likewise.
7613 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7614 * tracepoint.c (init_trace_buffer): Likewise.
7615 (add_tracepoint_action): Likewise.
7616 (add_traceframe): Likewise.
7617 (add_traceframe_block): Likewise.
7618 (cmd_qtdpsrc): Likewise.
7619 (cmd_qtdv): Likewise.
7620 (cmd_qtstatus): Likewise.
7621 (response_source): Likewise.
7622 (response_tsv): Likewise.
7623 (cmd_qtnotes): Likewise.
7624 (gdb_collect): Likewise.
7625 (initialize_tracepoint): Likewise.
7626
7627 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7628
7629 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7630 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7631 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7632 <NOP>: New.
7633 (enum aarch64_condition_codes): New enum.
7634 (w0): New static global.
7635 (fp): Likewise.
7636 (lr): Likewise.
7637 (struct aarch64_memory_operand) <type>: New
7638 MEMORY_OPERAND_POSTINDEX type.
7639 (postindex_memory_operand): New helper function.
7640 (emit_ret): New function.
7641 (emit_load_store_pair): New function, factored out of emit_stp
7642 with support for MEMORY_OPERAND_POSTINDEX.
7643 (emit_stp): Rewrite using emit_load_store_pair.
7644 (emit_ldp): New function.
7645 (emit_load_store): Likewise.
7646 (emit_ldr): Mention post-index instruction in comment.
7647 (emit_ldrh): New function.
7648 (emit_ldrb): New function.
7649 (emit_ldrsw): Mention post-index instruction in comment.
7650 (emit_str): Likewise.
7651 (emit_subs): New function.
7652 (emit_cmp): Likewise.
7653 (emit_and): Likewise.
7654 (emit_orr): Likewise.
7655 (emit_orn): Likewise.
7656 (emit_eor): Likewise.
7657 (emit_mvn): Likewise.
7658 (emit_lslv): Likewise.
7659 (emit_lsrv): Likewise.
7660 (emit_asrv): Likewise.
7661 (emit_mul): Likewise.
7662 (emit_sbfm): Likewise.
7663 (emit_sbfx): Likewise.
7664 (emit_ubfm): Likewise.
7665 (emit_ubfx): Likewise.
7666 (emit_csinc): Likewise.
7667 (emit_cset): Likewise.
7668 (emit_nop): Likewise.
7669 (emit_ops_insns): New helper function.
7670 (emit_pop): Likewise.
7671 (emit_push): Likewise.
7672 (aarch64_emit_prologue): New function.
7673 (aarch64_emit_epilogue): Likewise.
7674 (aarch64_emit_add): Likewise.
7675 (aarch64_emit_sub): Likewise.
7676 (aarch64_emit_mul): Likewise.
7677 (aarch64_emit_lsh): Likewise.
7678 (aarch64_emit_rsh_signed): Likewise.
7679 (aarch64_emit_rsh_unsigned): Likewise.
7680 (aarch64_emit_ext): Likewise.
7681 (aarch64_emit_log_not): Likewise.
7682 (aarch64_emit_bit_and): Likewise.
7683 (aarch64_emit_bit_or): Likewise.
7684 (aarch64_emit_bit_xor): Likewise.
7685 (aarch64_emit_bit_not): Likewise.
7686 (aarch64_emit_equal): Likewise.
7687 (aarch64_emit_less_signed): Likewise.
7688 (aarch64_emit_less_unsigned): Likewise.
7689 (aarch64_emit_ref): Likewise.
7690 (aarch64_emit_if_goto): Likewise.
7691 (aarch64_emit_goto): Likewise.
7692 (aarch64_write_goto_address): Likewise.
7693 (aarch64_emit_const): Likewise.
7694 (aarch64_emit_call): Likewise.
7695 (aarch64_emit_reg): Likewise.
7696 (aarch64_emit_pop): Likewise.
7697 (aarch64_emit_stack_flush): Likewise.
7698 (aarch64_emit_zero_ext): Likewise.
7699 (aarch64_emit_swap): Likewise.
7700 (aarch64_emit_stack_adjust): Likewise.
7701 (aarch64_emit_int_call_1): Likewise.
7702 (aarch64_emit_void_call_2): Likewise.
7703 (aarch64_emit_eq_goto): Likewise.
7704 (aarch64_emit_ne_goto): Likewise.
7705 (aarch64_emit_lt_goto): Likewise.
7706 (aarch64_emit_le_goto): Likewise.
7707 (aarch64_emit_gt_goto): Likewise.
7708 (aarch64_emit_ge_got): Likewise.
7709 (aarch64_emit_ops_impl): New static global variable.
7710 (aarch64_emit_ops): New target function, return
7711 &aarch64_emit_ops_impl.
7712 (struct linux_target_ops): Install it.
7713
7714 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7715
7716 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7717 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7718 aarch64-ipa.o.
7719 * linux-aarch64-ipa.c: New file.
7720 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7721 and endian.h.
7722 (aarch64_get_thread_area): New target method.
7723 (extract_signed_bitfield): New helper function.
7724 (aarch64_decode_ldr_literal): New function.
7725 (enum aarch64_opcodes): New enum.
7726 (struct aarch64_register): New struct.
7727 (struct aarch64_operand): New struct.
7728 (x0): New static global.
7729 (x1): Likewise.
7730 (x2): Likewise.
7731 (x3): Likewise.
7732 (x4): Likewise.
7733 (w2): Likewise.
7734 (ip0): Likewise.
7735 (sp): Likewise.
7736 (xzr): Likewise.
7737 (aarch64_register): New helper function.
7738 (register_operand): Likewise.
7739 (immediate_operand): Likewise.
7740 (struct aarch64_memory_operand): New struct.
7741 (offset_memory_operand): New helper function.
7742 (preindex_memory_operand): Likewise.
7743 (enum aarch64_system_control_registers): New enum.
7744 (ENCODE): New macro.
7745 (emit_insn): New helper function.
7746 (emit_b): New function.
7747 (emit_bcond): Likewise.
7748 (emit_cb): Likewise.
7749 (emit_tb): Likewise.
7750 (emit_blr): Likewise.
7751 (emit_stp): Likewise.
7752 (emit_ldp_q_offset): Likewise.
7753 (emit_stp_q_offset): Likewise.
7754 (emit_load_store): Likewise.
7755 (emit_ldr): Likewise.
7756 (emit_ldrsw): Likewise.
7757 (emit_str): Likewise.
7758 (emit_ldaxr): Likewise.
7759 (emit_stxr): Likewise.
7760 (emit_stlr): Likewise.
7761 (emit_data_processing_reg): Likewise.
7762 (emit_data_processing): Likewise.
7763 (emit_add): Likewise.
7764 (emit_sub): Likewise.
7765 (emit_mov): Likewise.
7766 (emit_movk): Likewise.
7767 (emit_mov_addr): Likewise.
7768 (emit_mrs): Likewise.
7769 (emit_msr): Likewise.
7770 (emit_sevl): Likewise.
7771 (emit_wfe): Likewise.
7772 (append_insns): Likewise.
7773 (can_encode_int32_in): New helper function.
7774 (aarch64_relocate_instruction): New function.
7775 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7776 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7777 (struct linux_target_ops): Install aarch64_get_thread_area,
7778 aarch64_install_fast_tracepoint_jump_pad and
7779 aarch64_get_min_fast_tracepoint_insn_len.
7780
7781 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7782
7783 * Makefile.in (aarch64-insn.o): New rule.
7784 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7785
7786 2015-09-21 Yao Qi <yao.qi@linaro.org>
7787
7788 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7789
7790 2015-09-21 Yao Qi <yao.qi@linaro.org>
7791
7792 * tracepoint.c (max_jump_pad_size): Remove.
7793
7794 2015-09-18 Yao Qi <yao.qi@linaro.org>
7795
7796 * linux-aarch64-low.c: Don't include sys/uio.h.
7797 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7798
7799 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
7800
7801 * tracepoint.c (eval_result_type): Change prototype.
7802 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7803
7804 2015-09-15 Pedro Alves <palves@redhat.com>
7805
7806 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7807 Check whether to report exec events instead of checking whether
7808 multiprocess is enabled.
7809
7810 2015-09-15 Pedro Alves <palves@redhat.com>
7811
7812 PR remote/18965
7813 * remote-utils.c (prepare_resume_reply): Merge
7814 TARGET_WAITKIND_VFORK_DONE switch case with the
7815 TARGET_WAITKIND_FORKED case.
7816
7817 2015-09-15 Yao Qi <yao.qi@linaro.org>
7818
7819 * server.c (handle_query): Check string comparison using
7820 "else if" instead of "if".
7821
7822 2015-09-15 Yao Qi <yao.qi@linaro.org>
7823
7824 * server.c (vCont_supported): New global variable.
7825 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7826 matches. Append ";vContSupported+" to own_buf.
7827 (handle_v_requests): Append ";s;S" to own_buf if target supports
7828 hardware single step or vCont_supported is false.
7829 (capture_main): Set vCont_supported to zero.
7830
7831 2015-09-15 Yao Qi <yao.qi@linaro.org>
7832
7833 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7834 it to ...
7835 (linux_supports_hardware_single_step): ... New function.
7836 (linux_target_ops): Update.
7837 * lynx-low.c (lynx_target_ops): Set field
7838 supports_hardware_single_step to target_can_do_hardware_single_step.
7839 * nto-low.c (nto_target_ops): Likewise.
7840 * spu-low.c (spu_target_ops): Likewise.
7841 * win32-low.c (win32_target_ops): Likewise.
7842 * target.c (target_can_do_hardware_single_step): New function.
7843 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7844 Remove. <supports_hardware_single_step>: New field.
7845 (target_supports_conditional_breakpoints): Remove.
7846 (target_supports_hardware_single_step): New macro.
7847 (target_can_do_hardware_single_step): Declare.
7848 * server.c (handle_query): Use target_supports_hardware_single_step
7849 instead of target_supports_conditional_breakpoints.
7850
7851 2015-09-15 Yao Qi <yao.qi@linaro.org>
7852
7853 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7854 function.
7855 (struct linux_target_ops the_low_target): Install
7856 aarch64_linux_siginfo_fixup.
7857
7858 2015-09-11 Don Breazeal <donb@codesourcery.com>
7859 Luis Machado <lgustavo@codesourcery.com>
7860
7861 * linux-low.c (linux_mourn): Static declaration.
7862 (linux_arch_setup): Move in front of
7863 handle_extended_wait.
7864 (linux_arch_setup_thread): New function.
7865 (handle_extended_wait): Handle exec events. Call
7866 linux_arch_setup_thread. Make event_lwp argument a
7867 pointer-to-a-pointer.
7868 (check_zombie_leaders): Do not check stopped threads.
7869 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7870 (linux_low_filter_event): Add lwp and thread for exec'ing
7871 non-leader thread if leader thread has been deleted.
7872 Refactor code into linux_arch_setup_thread and call it.
7873 Pass child lwp pointer by reference to handle_extended_wait.
7874 (linux_wait_for_event_filtered): Update comment.
7875 (linux_wait_1): Prevent clobbering exec event status.
7876 (linux_supports_exec_events): New function.
7877 (linux_target_ops) <supports_exec_events>: Initialize new member.
7878 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7879 new member.
7880 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7881 * server.c (report_exec_events): New global variable.
7882 (handle_query): Handle qSupported query for exec-events feature.
7883 (captured_main): Initialize report_exec_events.
7884 * server.h (report_exec_events): Declare new global variable.
7885 * target.h (struct target_ops) <supports_exec_events>: New
7886 member.
7887 (target_supports_exec_events): New macro.
7888 * win32-low.c (win32_target_ops) <supports_exec_events>:
7889 Initialize new member.
7890
7891 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7892
7893 * linux-low.c (linux_low_enable_btrace): Remove.
7894 (linux_target_ops): Replace linux_low_enable_btrace with
7895 linux_enable_btrace.
7896
7897 2015-09-03 Yao Qi <yao.qi@linaro.org>
7898
7899 * linux-aarch64-low.c (aarch64_insert_point): Call
7900 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7901 returns true.
7902
7903 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7904
7905 * linux-low.c (check_stopped_by_breakpoint): Use
7906 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7907
7908 2015-08-27 Pedro Alves <palves@redhat.com>
7909
7910 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7911
7912 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7913
7914 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7915 the XNEW-family equivalent.
7916 (compile_bytecodes): Likewise.
7917 * dll.c (loaded_dll): Likewise.
7918 * event-loop.c (append_callback_event): Likewise.
7919 (create_file_handler): Likewise.
7920 (create_file_event): Likewise.
7921 * hostio.c (handle_open): Likewise.
7922 * inferiors.c (add_thread): Likewise.
7923 (add_process): Likewise.
7924 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7925 * linux-arm-low.c (arm_new_process): Likewise.
7926 (arm_new_thread): Likewise.
7927 * linux-low.c (add_to_pid_list): Likewise.
7928 (linux_add_process): Likewise.
7929 (handle_extended_wait): Likewise.
7930 (add_lwp): Likewise.
7931 (enqueue_one_deferred_signal): Likewise.
7932 (enqueue_pending_signal): Likewise.
7933 (linux_resume_one_lwp_throw): Likewise.
7934 (linux_resume_one_thread): Likewise.
7935 (linux_read_memory): Likewise.
7936 (linux_write_memory): Likewise.
7937 * linux-mips-low.c (mips_linux_new_process): Likewise.
7938 (mips_linux_new_thread): Likewise.
7939 (mips_add_watchpoint): Likewise.
7940 * linux-x86-low.c (initialize_low_arch): Likewise.
7941 * lynx-low.c (lynx_add_process): Likewise.
7942 * mem-break.c (set_raw_breakpoint_at): Likewise.
7943 (set_breakpoint): Likewise.
7944 (add_condition_to_breakpoint): Likewise.
7945 (add_commands_to_breakpoint): Likewise.
7946 (clone_agent_expr): Likewise.
7947 (clone_one_breakpoint): Likewise.
7948 * regcache.c (new_register_cache): Likewise.
7949 * remote-utils.c (look_up_one_symbol): Likewise.
7950 * server.c (queue_stop_reply): Likewise.
7951 (start_inferior): Likewise.
7952 (queue_stop_reply_callback): Likewise.
7953 (handle_target_event): Likewise.
7954 * spu-low.c (fetch_ppc_memory): Likewise.
7955 (store_ppc_memory): Likewise.
7956 * target.c (set_target_ops): Likewise.
7957 * thread-db.c (thread_db_load_search): Likewise.
7958 (try_thread_db_load_1): Likewise.
7959 * tracepoint.c (add_tracepoint): Likewise.
7960 (add_tracepoint_action): Likewise.
7961 (create_trace_state_variable): Likewise.
7962 (cmd_qtdpsrc): Likewise.
7963 (cmd_qtro): Likewise.
7964 (add_while_stepping_state): Likewise.
7965 * win32-low.c (child_add_thread): Likewise.
7966 (get_image_name): Likewise.
7967
7968 2015-08-25 Yao Qi <yao.qi@linaro.org>
7969
7970 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7971
7972 2015-08-25 Yao Qi <yao.qi@linaro.org>
7973
7974 * Makefile.in (aarch64-linux.o): New rule.
7975 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7976 srv_tgtobj.
7977 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7978 (aarch64_init_debug_reg_state): Make it extern.
7979 (aarch64_linux_prepare_to_resume): Remove.
7980
7981 2015-08-25 Yao Qi <yao.qi@linaro.org>
7982
7983 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7984 lwp_arch_private_info and ptid_of_lwp.
7985
7986 2015-08-25 Yao Qi <yao.qi@linaro.org>
7987
7988 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7989 Find proc_info by find_process_pid. All callers updated.
7990
7991 2015-08-25 Yao Qi <yao.qi@linaro.org>
7992
7993 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7994 Remove.
7995 (debug_reg_change_callback): Remove.
7996 (aarch64_notify_debug_reg_change): Remove.
7997
7998 2015-08-25 Yao Qi <yao.qi@linaro.org>
7999
8000 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8001 Call current_lwp_ptid.
8002
8003 2015-08-25 Yao Qi <yao.qi@linaro.org>
8004
8005 * linux-aarch64-low.c (debug_reg_change_callback): Use
8006 debug_printf.
8007
8008 2015-08-25 Yao Qi <yao.qi@linaro.org>
8009
8010 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8011
8012 2015-08-25 Yao Qi <yao.qi@linaro.org>
8013
8014 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8015
8016 2015-08-25 Yao Qi <yao.qi@linaro.org>
8017
8018 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8019 the code.
8020
8021 2015-08-25 Yao Qi <yao.qi@linaro.org>
8022
8023 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8024 Remove.
8025 (debug_reg_change_callback): Remove argument entry and add argument
8026 lwp. Remove local variable thread. Don't print thread id in the
8027 debugging output. Don't check whether pid of thread equals to pid.
8028 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8029 iterate_over_lwps instead find_inferior.
8030
8031 2015-08-24 Pedro Alves <palves@redhat.com>
8032
8033 * inferiors.c (get_first_process): New function.
8034 * inferiors.h (get_first_process): New declaration.
8035 * remote-utils.c (read_ptid): Default to the first process in the
8036 list, instead of to the current thread's process.
8037
8038 2015-08-24 Pedro Alves <palves@redhat.com>
8039
8040 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8041 * event-loop.c: Likewise.
8042 * remote-utils.c: Likewise.
8043 * tracepoint.c: Likewise.
8044
8045 2015-08-24 Pedro Alves <palves@redhat.com>
8046
8047 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8048 ptid_get_lwp.
8049
8050 2015-08-21 Pedro Alves <palves@redhat.com>
8051
8052 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8053 instead of literal 1.
8054
8055 2015-08-21 Pedro Alves <palves@redhat.com>
8056
8057 * tdesc.c (default_description): Explicitly zero-initialize.
8058
8059 2015-08-21 Pedro Alves <palves@redhat.com>
8060
8061 PR gdb/18749
8062 * inferiors.c (remove_thread): Discard any pending stop reply for
8063 this thread.
8064 * server.c (remove_all_on_match_pid): Rename to ...
8065 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8066 instead of a pid.
8067 (discard_queued_stop_replies): Change parameter to a ptid. Now
8068 extern.
8069 (handle_v_kill, kill_inferior_callback, captured_main)
8070 (process_serial_event): Adjust.
8071 * server.h (discard_queued_stop_replies): Declare.
8072
8073 2015-08-21 Pedro Alves <palves@redhat.com>
8074
8075 * linux-low.c (wait_for_sigstop): Always switch to no thread
8076 selected if the previously current thread dies.
8077 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8078 process instead of the current thread's.
8079 * remote-utils.c (input_interrupt): Don't check if there's no
8080 current thread.
8081 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8082 current thread to the general thread fails, error out.
8083 (handle_qxfer_auxv, handle_qxfer_libraries)
8084 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8085 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8086 (handle_query): Check if there's a thread selected instead of
8087 checking whether there's any thread in the thread list.
8088 (handle_qxfer_threads, handle_qxfer_btrace)
8089 (handle_qxfer_btrace_conf): Don't error out early if there's no
8090 thread in the thread list.
8091 (handle_v_cont, myresume): Don't set the current thread to the
8092 continue thread.
8093 (process_serial_event) <Hg handling>: Also set thread_id if the
8094 previous general thread is still alive.
8095 (process_serial_event) <g/G handling>: If setting the current
8096 thread to the general thread fails, error out.
8097 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8098 thread's lwp instead of the current thread's.
8099 * target.c (set_desired_thread): If the desired thread was not
8100 found, leave the current thread pointing to NULL. Return an int
8101 (boolean) indicating success.
8102 * target.h (set_desired_thread): Change return type to int.
8103
8104 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8105
8106 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8107 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8108 #includes.
8109 (ps_get_thread_area): New function.
8110
8111 2015-08-19 Gary Benson <gbenson@redhat.com>
8112
8113 * hostio.c (handle_pread): Do not attempt to read more data
8114 than hostio_reply_with_data can fit in a packet.
8115
8116 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8117
8118 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8119
8120 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8121
8122 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8123
8124 2015-08-06 Pedro Alves <palves@redhat.com>
8125
8126 * tracepoint.c (expr_eval_result): Now an int.
8127
8128 2015-08-06 Pedro Alves <palves@redhat.com>
8129
8130 * gdbthread.h (struct regcache): Forward declare.
8131 (struct thread_info) <regcache_data>: Now a struct regcache
8132 pointer.
8133 * inferiors.c (inferior_regcache_data)
8134 (set_inferior_regcache_data): Now work with struct regcache
8135 pointers.
8136 * inferiors.h (struct regcache): Forward declare.
8137 (inferior_regcache_data, set_inferior_regcache_data): Now work
8138 with struct regcache pointers.
8139 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8140 (free_register_cache_thread): Remove struct regcache pointer
8141 casts.
8142
8143 2015-08-06 Pedro Alves <palves@redhat.com>
8144
8145 * server.c (captured_main): On error, print the exception message
8146 to stderr, and if run_once is set, throw a quit.
8147
8148 2015-08-06 Pedro Alves <palves@redhat.com>
8149
8150 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8151 the current thread.
8152
8153 2015-08-06 Pedro Alves <palves@redhat.com>
8154
8155 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8156 reading beyond the passed in buffer length.
8157
8158 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8159
8160 * tracepoint.c (symbol_list) <required>: Remove.
8161
8162 2015-08-06 Pedro Alves <palves@redhat.com>
8163
8164 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8165 count if stopping and suspending threads.
8166 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8167 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8168 (linux_detach): Complete an ongoing step-over.
8169 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8170 throughout.
8171 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8172 (linux_wait_1): If passing a signal to the inferior after
8173 finishing a step-over, unsuspend and re-resume all lwps. If we
8174 see a single-step event but the thread should be continuing, don't
8175 pass the trap to gdb.
8176 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8177 internal_error instead of gdb_assert.
8178 (enqueue_pending_signal): New function.
8179 (check_ptrace_stopped_lwp_gone): Add debug output.
8180 (start_step_over): Use internal_error instead of gdb_assert.
8181 (complete_ongoing_step_over): New function.
8182 (linux_resume_one_thread): Don't resume a suspended thread.
8183 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8184 it stepping.
8185
8186 2015-08-06 Pedro Alves <palves@redhat.com>
8187
8188 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8189 (linux_thread_alive): Use lwp_is_marked_dead.
8190 (extended_event_reported): Delete.
8191 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8192 instead of extended_event_reported.
8193 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8194 as well.
8195 (lwp_is_marked_dead): New function.
8196 (lwp_running): Use lwp_is_marked_dead.
8197 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8198 comment.
8199
8200 2015-08-06 Pedro Alves <palves@redhat.com>
8201
8202 * linux-low.c (linux_wait_1): Move fork event output out of the
8203 !report_to_gdb check. Pass event_child->waitstatus to
8204 target_waitstatus_to_string instead of ourstatus.
8205
8206 2015-08-04 Yao Qi <yao.qi@linaro.org>
8207
8208 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8209 if current_thread is 32 bit.
8210
8211 2015-08-04 Yao Qi <yao.qi@linaro.org>
8212
8213 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8214 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8215 * server.c (extended_protocol): Remove "static".
8216 * server.h (extended_protocol): Declare it.
8217
8218 2015-08-04 Yao Qi <yao.qi@linaro.org>
8219
8220 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8221 both aarch64 and aarch32.
8222 (aarch64_set_pc): Likewise.
8223
8224 2015-08-04 Yao Qi <yao.qi@linaro.org>
8225
8226 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8227 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8228 arm-with-neon.xml to srv_xmlfiles.
8229 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8230 (is_64bit_tdesc): New function.
8231 (aarch64_linux_read_description): New function.
8232 (aarch64_arch_setup): Call aarch64_linux_read_description.
8233 (regs_info): Rename to regs_info_aarch64.
8234 (aarch64_regs_info): Return right regs_info.
8235 (initialize_low_arch): Call initialize_low_arch_aarch32.
8236
8237 2015-08-04 Yao Qi <yao.qi@linaro.org>
8238
8239 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8240 * linux-aarch32-low.c: New file.
8241 * linux-aarch32-low.h: New file.
8242 * linux-arm-low.c (arm_fill_gregset): Move it to
8243 linux-aarch32-low.c.
8244 (arm_store_gregset): Likewise.
8245 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8246 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8247 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8248 (regs_info): Rename to regs_info_arm.
8249 (arm_regs_info): Return regs_info_aarch32 if
8250 have_ptrace_getregset is 1 and target description is
8251 arm_with_neon or arm_with_vfpv3.
8252 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8253 Call initialize_low_arch_aarch32 instead.
8254
8255 2015-08-04 Yao Qi <yao.qi@linaro.org>
8256
8257 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8258 * linux-low.c: ... here.
8259 * linux-low.h (have_ptrace_getregset): Declare it.
8260
8261 2015-08-04 Pedro Alves <palves@redhat.com>
8262
8263 * thread-db.c (struct thread_db): Use new typedefs.
8264 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8265 CHK calls.
8266 (disable_thread_event_reporting): Cast result of dlsym to
8267 destination function pointer type.
8268 (thread_db_mourn): Use td_ta_delete_ftype.
8269
8270 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8271
8272 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8273 arch variant.
8274 (CDX_BREAKPOINT): Define for R2.
8275 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8276 (the_low_target): Add comments.
8277
8278 2015-07-30 Yao Qi <yao.qi@linaro.org>
8279
8280 * linux-arm-low.c (arm_hwcap): Remove it.
8281 (arm_read_description): New local variable arm_hwcap. Don't
8282 set arm_hwcap to zero.
8283
8284 2015-07-30 Yao Qi <yao.qi@linaro.org>
8285
8286 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8287 Use regcache->tdesc instead.
8288 (arm_store_wmmxregset): Likewise.
8289 (arm_fill_vfpregset): Likewise.
8290 (arm_store_vfpregset): Likewise.
8291
8292 2015-07-30 Yao Qi <yao.qi@linaro.org>
8293
8294 * linux-arm-low.c: Include arch/arm.h.
8295 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8296 (arm_store_gregset): Likewise.
8297
8298 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8299
8300 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8301 ptrace's 4th parameter.
8302
8303 2015-07-27 Yao Qi <yao.qi@linaro.org>
8304
8305 * configure.srv (case aarch64*-*-linux*): Don't set
8306 srv_linux_usrregs.
8307
8308 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8309
8310 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8311 sys/ptrace.h.
8312 * linux-arm-low.c: Likewise.
8313 * linux-cris-low.c: Likewise.
8314 * linux-crisv32-low.c: Likewise.
8315 * linux-low.c: Likewise.
8316 * linux-m68k-low.c: Likewise.
8317 * linux-mips-low.c: Likewise.
8318 * linux-nios2-low.c: Likewise.
8319 * linux-s390-low.c: Likewise.
8320 * linux-sparc-low.c: Likewise.
8321 * linux-tic6x-low.c: Likewise.
8322 * linux-tile-low.c: Likewise.
8323 * linux-x86-low.c: Likewise.
8324
8325 2015-07-24 Pedro Alves <palves@redhat.com>
8326
8327 * config.in: Regenerate.
8328 * configure: Regenerate.
8329
8330 2015-07-24 Pedro Alves <palves@redhat.com>
8331
8332 * acinclude.m4: Include ../ptrace.m4.
8333 * configure.ac: Call GDB_AC_PTRACE.
8334 * config.in, configure: Regenerate.
8335
8336 2015-07-24 Yao Qi <yao.qi@linaro.org>
8337
8338 * linux-low.c (linux_create_inferior): Remove setting to
8339 proc->priv->new_inferior.
8340 (linux_attach): Likewise.
8341 (linux_low_filter_event): Likewise.
8342 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8343
8344 2015-07-24 Yao Qi <yao.qi@linaro.org>
8345
8346 * linux-low.c (linux_arch_setup): New function.
8347 (linux_low_filter_event): If proc->tdesc is NULL and
8348 proc->attached is true, call the_low_target.arch_setup.
8349 Otherwise, keep status pending, and return.
8350 (linux_resume_one_lwp_throw): Don't call get_pc if
8351 thread->while_stepping isn't NULL. Don't call
8352 get_thread_regcache if proc->tdesc is NULL.
8353 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8354 (linux_target_ops): Install arch_setup.
8355 * server.c (start_inferior): Call the_target->arch_setup.
8356 * target.h (struct target_ops) <arch_setup>: New field.
8357 (target_arch_setup): New marco.
8358 * lynx-low.c (lynx_target_ops): Update.
8359 * nto-low.c (nto_target_ops): Update.
8360 * spu-low.c (spu_target_ops): Update.
8361 * win32-low.c (win32_target_ops): Update.
8362
8363 2015-07-24 Yao Qi <yao.qi@linaro.org>
8364
8365 * linux-low.c (linux_add_process): Don't set
8366 proc->priv->new_inferior.
8367 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8368 (linux_attach): Likewise.
8369
8370 2015-07-24 Yao Qi <yao.qi@linaro.org>
8371
8372 * server.c (start_inferior): Code refactor.
8373
8374 2015-07-24 Yao Qi <yao.qi@linaro.org>
8375
8376 * server.c (process_serial_event): Set general_thread.
8377
8378 2015-07-21 Yao Qi <yao.qi@linaro.org>
8379
8380 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8381 aarch64_linux_get_debug_reg_capacity.
8382
8383 2015-07-17 Yao Qi <yao.qi@linaro.org>
8384
8385 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8386 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8387 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8388 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8389 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8390 (AARCH64_HWP_ALIGNMENT): Likewise.
8391 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8392 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8393 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8394 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8395 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8396 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8397 (struct aarch64_debug_reg_state): Likewise.
8398 (struct arch_lwp_info): Likewise.
8399 (aarch64_align_watchpoint): Likewise.
8400 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8401 (aarch64_watchpoint_length): Likewise.
8402 (aarch64_point_encode_ctrl_reg): Likewise
8403 (aarch64_point_is_aligned): Likewise.
8404 (aarch64_align_watchpoint): Likewise.
8405 (aarch64_linux_set_debug_regs):
8406 (aarch64_dr_state_insert_one_point): Likewise.
8407 (aarch64_dr_state_remove_one_point): Likewise.
8408 (aarch64_handle_breakpoint): Likewise.
8409 (aarch64_handle_aligned_watchpoint): Likewise.
8410 (aarch64_handle_unaligned_watchpoint): Likewise.
8411 (aarch64_handle_watchpoint): Likewise.
8412
8413 2015-07-17 Yao Qi <yao.qi@linaro.org>
8414
8415 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8416 and don't aarch64_get_debug_reg_state. All callers update.
8417 (aarch64_handle_aligned_watchpoint): Likewise.
8418 (aarch64_handle_unaligned_watchpoint): Likewise.
8419 (aarch64_handle_watchpoint): Likewise.
8420 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8421 (aarch64_remove_point): Likewise.
8422
8423 2015-07-17 Yao Qi <yao.qi@linaro.org>
8424
8425 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8426 debug_printf.
8427 (aarch64_handle_unaligned_watchpoint): Likewise.
8428
8429 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8430
8431 Revert the previous 3 commits:
8432 Move gdb_regex* to common/
8433 Move linux_find_memory_regions_full & co.
8434 gdbserver build-id attribute generator
8435
8436 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8437 Jan Kratochvil <jan.kratochvil@redhat.com>
8438
8439 gdbserver build-id attribute generator.
8440 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8441 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8442 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8443 (find_phdr): New.
8444 (get_dynamic): Use find_pdhr to traverse program headers.
8445 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8446 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8447 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8448 (get_hex_build_id): New.
8449 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8450 to reply XML document.
8451
8452 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8453 Jan Kratochvil <jan.kratochvil@redhat.com>
8454
8455 * target.c: Include target/target-utils.h and fcntl.h.
8456 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8457 (target_fileio_read_stralloc): New functions.
8458
8459 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8460
8461 * Makefile.in (OBS): Add gdb_regex.o.
8462 (gdb_regex.o): New.
8463 * config.in: Rebuilt.
8464 * configure: Rebuilt.
8465
8466 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8467 Jan Kratochvil <jan.kratochvil@redhat.com>
8468
8469 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8470 * Makefile.in (OBS): Add target-utils.o.
8471 (linux-maps.o, target-utils.o): New.
8472 * configure.srv (srv_linux_obj): Add linux-maps.o.
8473
8474 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8475
8476 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8477 function, return 1.
8478 (the_low_target): Install it.
8479
8480 2015-07-14 Pedro Alves <palves@redhat.com>
8481
8482 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8483 Instead, ignore ECHILD, and throw an error for other errnos.
8484
8485 2015-07-10 Pedro Alves <palves@redhat.com>
8486
8487 * event-loop.c (struct callback_event) <data>: Change type to
8488 gdb_client_data instance instead of gdb_client_data pointer.
8489 (append_callback_event): Adjust.
8490
8491 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8492
8493 * linux-aarch64-low.c: Add comments for each linux_target_ops
8494 method. Remove comments already covered in target_ops and
8495 linux_target_ops definitions.
8496 (the_low_target): Add comments for each unimplemented method.
8497
8498 2015-07-09 Yao Qi <yao.qi@linaro.org>
8499
8500 * linux-aarch64-low.c (aarch64_regmap): Remove.
8501 (aarch64_usrregs_info): Remove.
8502 (regs_info): Set field usrregs to NULL.
8503
8504 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8505
8506 * linux-low.c: Include "rsp-low.h"
8507 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8508 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8509 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8510 (handle_btrace_enable_pt): New.
8511 (handle_btrace_general_set): Support "pt".
8512 (handle_btrace_conf_general_set): Support "pt:size".
8513
8514 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8515
8516 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8517 Z_PACKET_SW_BP.
8518
8519 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8520
8521 * linux-aarch64-low.c: Remove comment about endianness.
8522 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8523 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8524 memcmp.
8525
8526 2015-06-24 Gary Benson <gbenson@redhat.com>
8527
8528 * linux-i386-ipa.c (stdint.h): Do not include.
8529 * lynx-i386-low.c (stdint.h): Likewise.
8530 * lynx-ppc-low.c (stdint.h): Likewise.
8531 * mem-break.c (stdint.h): Likewise.
8532 * thread-db.c (stdint.h): Likewise.
8533 * tracepoint.c (stdint.h): Likewise.
8534 * win32-low.c (stdint.h): Likewise.
8535
8536 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8537
8538 * server.c (write_qxfer_response): Update call to
8539 remote_escape_output.
8540
8541 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8542 Jan Kratochvil <jan.kratochvil@redhat.com>
8543
8544 Merge multiple hex conversions.
8545 * gdbreplay.c (tohex): Rename to 'fromhex'.
8546 (logchar): Use fromhex.
8547
8548 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8549
8550 * server.c (handle_qxfer_libraries): Set `version' attribute for
8551 <library-list>.
8552
8553 2015-06-10 Gary Benson <gbenson@redhat.com>
8554
8555 * target.h (struct target_ops) <multifs_open>: New field.
8556 <multifs_unlink>: Likewise.
8557 <multifs_readlink>: Likewise.
8558 * linux-low.c (nat/linux-namespaces.h): New include.
8559 (linux_target_ops): Initialize the_target->multifs_open,
8560 the_target->multifs_unlink and the_target->multifs_readlink.
8561 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8562 * hostio.c (hostio_fs_pid): New static variable.
8563 (hostio_handle_new_gdb_connection): New function.
8564 (handle_setfs): Likewise.
8565 (handle_open): Use the_target->multifs_open as appropriate.
8566 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8567 (handle_readlink): Use the_target->multifs_readlink as
8568 appropriate.
8569 (handle_vFile): Handle vFile:setfs packets.
8570 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8571 after target_handle_new_gdb_connection.
8572
8573 2015-06-10 Gary Benson <gbenson@redhat.com>
8574
8575 * configure.ac (AC_CHECK_FUNCS): Add setns.
8576 * config.in: Regenerate.
8577 * configure: Likewise.
8578 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8579 (linux-namespaces.o): New rule.
8580 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8581
8582 2015-06-09 Gary Benson <gbenson@redhat.com>
8583
8584 * hostio.c (handle_open): Process mode argument with
8585 fileio_to_host_mode.
8586
8587 2015-06-01 Yao Qi <yao.qi@linaro.org>
8588
8589 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8590 * linux-x86-low.c: Likewise.
8591
8592 2015-05-28 Don Breazeal <donb@codesourcery.com>
8593
8594 * linux-low.c (handle_extended_wait): Initialize
8595 thread_info.last_resume_kind for new fork children.
8596
8597 2015-05-15 Pedro Alves <palves@redhat.com>
8598
8599 * target.h (target_handle_new_gdb_connection): Rewrite using if
8600 wrapped in do/while.
8601
8602 2015-05-14 Joel Brobecker <brobecker@adacore.com>
8603
8604 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8605 * configure, config.in: Regenerate.
8606 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8607 Declare typedef.
8608
8609 2015-05-12 Don Breazeal <donb@codesourcery.com>
8610
8611 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8612 PTRACE_EVENT_VFORK_DONE.
8613 (linux_low_ptrace_options, extended_event_reported): Add vfork
8614 events.
8615 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8616 and "vforkdone" for RSP 'T' Stop Reply Packet.
8617 * server.h (report_vfork_events): Declare
8618 global variable.
8619
8620 2015-05-12 Don Breazeal <donb@codesourcery.com>
8621
8622 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8623 (the_low_target) <new_fork>: Initialize new member.
8624 * linux-arm-low.c (arm_new_fork): New function.
8625 (the_low_target) <new_fork>: Initialize new member.
8626 * linux-low.c (handle_extended_wait): Call new target function
8627 new_fork.
8628 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8629 * linux-mips-low.c (mips_add_watchpoint): New function
8630 extracted from mips_insert_point.
8631 (the_low_target) <new_fork>: Initialize new member.
8632 (mips_linux_new_fork): New function.
8633 (mips_insert_point): Call mips_add_watchpoint.
8634 * linux-x86-low.c (x86_linux_new_fork): New function.
8635 (the_low_target) <new_fork>: Initialize new member.
8636
8637 2015-05-12 Don Breazeal <donb@codesourcery.com>
8638
8639 * linux-low.c (handle_extended_wait): Implement return value,
8640 rename argument 'event_child' to 'event_lwp', handle
8641 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8642 (linux_low_ptrace_options): New function.
8643 (linux_low_filter_event): Call linux_low_ptrace_options,
8644 use different argument fo linux_enable_event_reporting,
8645 use return value from handle_extended_wait.
8646 (extended_event_reported): New function.
8647 (linux_wait_1): Call extended_event_reported and set
8648 status to report fork events.
8649 (linux_write_memory): Add pid to debug message.
8650 (reset_lwp_ptrace_options_callback): New function.
8651 (linux_handle_new_gdb_connection): New function.
8652 (linux_target_ops): Initialize new structure member.
8653 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8654 * lynx-low.c: Initialize new structure member.
8655 * remote-utils.c (prepare_resume_reply): Implement stop reason
8656 "fork" for "T" stop message.
8657 * server.c (handle_query): Call handle_new_gdb_connection.
8658 * server.h (report_fork_events): Declare global flag.
8659 * target.h (struct target_ops) <handle_new_gdb_connection>:
8660 New member.
8661 (target_handle_new_gdb_connection): New macro.
8662 * win32-low.c: Initialize new structure member.
8663
8664 2015-05-12 Don Breazeal <donb@codesourcery.com>
8665
8666 * mem-break.c (APPEND_TO_LIST): Define macro.
8667 (clone_agent_expr): New function.
8668 (clone_one_breakpoint): New function.
8669 (clone_all_breakpoints): New function.
8670 * mem-break.h: Declare new functions.
8671
8672 2015-05-12 Don Breazeal <donb@codesourcery.com>
8673
8674 * linux-low.c (linux_supports_fork_events): New function.
8675 (linux_supports_vfork_events): New function.
8676 (linux_target_ops): Initialize new structure members.
8677 (initialize_low): Call linux_check_ptrace_features.
8678 * lynx-low.c (lynx_target_ops): Initialize new structure
8679 members.
8680 * server.c (report_fork_events, report_vfork_events):
8681 New global flags.
8682 (handle_query): Add new features to qSupported packet and
8683 response.
8684 (captured_main): Initialize new global variables.
8685 * target.h (struct target_ops) <supports_fork_events>:
8686 New member.
8687 <supports_vfork_events>: New member.
8688 (target_supports_fork_events): New macro.
8689 (target_supports_vfork_events): New macro.
8690 * win32-low.c (win32_target_ops): Initialize new structure
8691 members.
8692
8693 2015-05-12 Gary Benson <gbenson@redhat.com>
8694
8695 * server.c (handle_qxfer_exec_file): Use current process
8696 if annex is empty.
8697
8698 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8699
8700 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8701 Remove HAVE_PTRACE_GETREGS conditionals.
8702 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8703 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8704
8705 2015-05-08 Yao Qi <yao.qi@linaro.org>
8706
8707 * linux-low.c (linux_supports_conditional_breakpoints): New
8708 function.
8709 (linux_target_ops): Install new target method.
8710 * lynx-low.c (lynx_target_ops): Install NULL hook for
8711 supports_conditional_breakpoints.
8712 * nto-low.c (nto_target_ops): Likewise.
8713 * spu-low.c (spu_target_ops): Likewise.
8714 * win32-low.c (win32_target_ops): Likewise.
8715 * server.c (handle_query): Check
8716 target_supports_conditional_breakpoints.
8717 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8718 New field.
8719 (target_supports_conditional_breakpoints): New macro.
8720
8721 2015-05-06 Pedro Alves <palves@redhat.com>
8722
8723 PR server/18081
8724 * server.c (start_inferior): If the process exits, mourn it.
8725
8726 2015-04-21 Gary Benson <gbenson@redhat.com>
8727
8728 * hostio.c (fileio_open_flags_to_host): Factored out to
8729 fileio_to_host_openflags in common/fileio.c. Single use
8730 updated.
8731
8732 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8733
8734 * linux-xtensa-low.c (xtensa_fill_gregset)
8735 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8736 XCHAL_HAVE_LOOP.
8737
8738 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8739
8740 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8741 (regs_info): Replace usrregs pointer with NULL.
8742
8743 2015-04-17 Gary Benson <gbenson@redhat.com>
8744
8745 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8746 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8747 * server.c (handle_qxfer_exec_file): New function.
8748 (qxfer_packets): Add exec-file entry.
8749 (handle_query): Report qXfer:exec-file:read as supported packet.
8750
8751 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8752
8753 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8754
8755 2015-04-09 Gary Benson <gbenson@redhat.com>
8756
8757 * hostio-errno.c (errno_to_fileio_error): Remove function.
8758 Update caller to use remote_fileio_to_fio_error.
8759
8760 2015-04-09 Yao Qi <yao.qi@linaro.org>
8761
8762 * linux-low.c (linux_insert_point): Call
8763 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8764 (linux_remove_point): Call remove_memory_breakpoint if type is
8765 raw_bkpt_type_sw.
8766 * linux-x86-low.c (x86_insert_point): Don't call
8767 insert_memory_breakpoint.
8768 (x86_remove_point): Don't call remove_memory_breakpoint.
8769
8770 2015-04-01 Pedro Alves <palves@redhat.com>
8771 Cleber Rosa <crosa@redhat.com>
8772
8773 * server.c (gdbserver_usage): Reorganize and extend the usage
8774 message.
8775
8776 2015-03-24 Pedro Alves <palves@redhat.com>
8777
8778 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8779 output. Also dump TRAP_TRACE.
8780 (linux_low_filter_event): In debug output, distinguish a
8781 resume_stop SIGSTOP from a delayed SIGSTOP.
8782
8783 2015-03-24 Gary Benson <gbenson@redhat.com>
8784
8785 * linux-x86-low.c (x86_linux_new_thread): Moved to
8786 nat/x86-linux.c.
8787 (x86_linux_prepare_to_resume): Likewise.
8788
8789 2015-03-24 Gary Benson <gbenson@redhat.com>
8790
8791 * Makefile.in (x86-linux-dregs.o): New rule.
8792 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8793 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8794 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8795 (x86_linux_dr_get): Likewise.
8796 (x86_linux_dr_set): Likewise.
8797 (update_debug_registers_callback): Likewise.
8798 (x86_linux_dr_set_addr): Likewise.
8799 (x86_linux_dr_get_addr): Likewise.
8800 (x86_linux_dr_set_control): Likewise.
8801 (x86_linux_dr_get_control): Likewise.
8802 (x86_linux_dr_get_status): Likewise.
8803 (x86_linux_update_debug_registers): Likewise.
8804
8805 2015-03-24 Gary Benson <gbenson@redhat.com>
8806
8807 * linux-x86-low.c (x86_linux_update_debug_registers):
8808 New function, factored out from...
8809 (x86_linux_prepare_to_resume): ...this.
8810
8811 2015-03-24 Gary Benson <gbenson@redhat.com>
8812
8813 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8814 (x86_linux_dr_set): Likewise.
8815 (update_debug_registers_callback): Likewise.
8816 (x86_linux_dr_set_addr): Likewise.
8817 (x86_linux_dr_get_addr): Likewise.
8818 (x86_linux_dr_set_control): Likewise.
8819 (x86_linux_dr_get_control): Likewise.
8820 (x86_linux_dr_get_status): Likewise.
8821 (x86_linux_prepare_to_resume): Likewise.
8822
8823 2015-03-24 Gary Benson <gbenson@redhat.com>
8824
8825 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8826 Use perror_with_name. Pass string through gettext.
8827 (x86_linux_dr_set): Likewise.
8828
8829 2015-03-24 Gary Benson <gbenson@redhat.com>
8830
8831 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8832 (x86_linux_dr_set_addr): ...this.
8833 (x86_dr_low_get_addr): Rename to...
8834 (x86_linux_dr_get_addr): ...this.
8835 (x86_dr_low_set_control): Rename to...
8836 (x86_linux_dr_set_control): ...this.
8837 (x86_dr_low_get_control): Rename to...
8838 (x86_linux_dr_get_control): ...this.
8839 (x86_dr_low_get_status): Rename to...
8840 (x86_linux_dr_get_status): ...this.
8841 (x86_dr_low): Update with new function names.
8842
8843 2015-03-24 Gary Benson <gbenson@redhat.com>
8844
8845 * Makefile.in (x86-linux.o): New rule.
8846 * configure.srv: Add x86-linux.o to relevant targets.
8847 * linux-low.c (lwp_set_arch_private_info): New function.
8848 (lwp_arch_private_info): Likewise.
8849 * linux-x86-low.c: Include nat/x86-linux.h.
8850 (arch_lwp_info): Removed structure.
8851 (update_debug_registers_callback):
8852 Use lwp_set_debug_registers_changed.
8853 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8854 and lwp_set_debug_registers_changed.
8855 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8856
8857 2015-03-24 Gary Benson <gbenson@redhat.com>
8858
8859 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8860 * linux-arm-low.c (arm_new_thread): Likewise.
8861 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8862 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8863 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8864 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8865
8866 2015-03-24 Gary Benson <gbenson@redhat.com>
8867
8868 * linux-low.c (ptid_of_lwp): New function.
8869 (lwp_is_stopped): Likewise.
8870 (lwp_stop_reason): Likewise.
8871 * linux-x86-low.c (update_debug_registers_callback):
8872 Use lwp_is_stopped.
8873 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8874 lwp_stop_reason.
8875
8876 2015-03-24 Gary Benson <gbenson@redhat.com>
8877
8878 * linux-low.h (linux_stop_lwp): Remove declaration.
8879
8880 2015-03-24 Gary Benson <gbenson@redhat.com>
8881
8882 * linux-low.h: Include nat/linux-nat.h.
8883 * linux-low.c (iterate_over_lwps_args): New structure.
8884 (iterate_over_lwps_filter): New function.
8885 (iterate_over_lwps): Likewise.
8886 * linux-x86-low.c (update_debug_registers_callback):
8887 Update signature to what iterate_over_lwps expects.
8888 Remove PID check that iterate_over_lwps now performs.
8889 (x86_dr_low_set_addr): Use iterate_over_lwps.
8890 (x86_dr_low_set_control): Likewise.
8891
8892 2015-03-24 Gary Benson <gbenson@redhat.com>
8893
8894 * linux-x86-low.c (x86_debug_reg_state): New function.
8895 (x86_linux_prepare_to_resume): Use the above.
8896
8897 2015-03-24 Gary Benson <gbenson@redhat.com>
8898
8899 * linux-low.c (current_lwp_ptid): New function.
8900 * linux-x86-low.c: Include nat/linux-nat.h.
8901 (x86_dr_low_get_addr): Use current_lwp_ptid.
8902 (x86_dr_low_get_control): Likewise.
8903 (x86_dr_low_get_status): Likewise.
8904
8905 2015-03-20 Pedro Alves <palves@redhat.com>
8906
8907 * tracepoint.c (cmd_qtstatus): Make "str" const.
8908
8909 2015-03-20 Pedro Alves <palves@redhat.com>
8910
8911 * server.c (handle_general_set): Make "req_str" const.
8912
8913 2015-03-19 Pedro Alves <palves@redhat.com>
8914
8915 * linux-low.c (linux_resume_one_lwp): Rename to ...
8916 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8917 instead call perror_with_name.
8918 (check_ptrace_stopped_lwp_gone): New function.
8919 (linux_resume_one_lwp): Reimplement as wrapper around
8920 linux_resume_one_lwp_throw that swallows errors if the LWP is
8921 gone.
8922
8923 2015-03-19 Pedro Alves <palves@redhat.com>
8924
8925 * linux-low.c (count_events_callback, select_event_lwp_callback):
8926 No longer check whether the thread has resume_stop as last resume
8927 kind.
8928
8929 2015-03-19 Pedro Alves <palves@redhat.com>
8930
8931 * linux-low.c (count_events_callback, select_event_lwp_callback):
8932 Use the lwp's status_pending_p field, not the thread's.
8933
8934 2015-03-19 Pedro Alves <palves@redhat.com>
8935
8936 * linux-low.c (select_event_lwp_callback): Update comments to
8937 no longer mention SIGTRAP.
8938
8939 2015-03-18 Gary Benson <gbenson@redhat.com>
8940
8941 * server.c (handle_query): Do not report vFile:fstat as supported.
8942
8943 2015-03-11 Gary Benson <gbenson@redhat.com>
8944
8945 * hostio.c (sys/types.h): New include.
8946 (sys/stat.h): Likewise.
8947 (common-remote-fileio.h): Likewise.
8948 (handle_fstat): New function.
8949 (handle_vFile): Handle vFile:fstat packets.
8950
8951 2015-03-11 Gary Benson <gbenson@redhat.com>
8952
8953 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8954 struct stat.st_blocks and struct stat.st_blksize.
8955 * configure: Regenerate.
8956 * config.in: Likewise.
8957 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8958 (OBS): Add common-remote-fileio.o.
8959 (common-remote-fileio.o): New rule.
8960
8961 2015-03-09 Pedro Alves <palves@redhat.com>
8962
8963 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8964 'struct sockaddr' pointer in 'accept' call.
8965
8966 2015-03-09 Pedro Alves <palves@redhat.com>
8967
8968 Revert:
8969 2015-03-07 Pedro Alves <palves@redhat.com>
8970 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8971 or <winsock2.h> here. Instead include "gdb_socket.h".
8972 (remote_open): Use union gdb_sockaddr_u.
8973 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8974 or <winsock2.h> here. Instead include "gdb_socket.h".
8975 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8976 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8977 or <sys/un.h>.
8978 (init_named_socket, gdb_agent_helper_thread): Use union
8979 gdb_sockaddr_u.
8980
8981 2015-03-07 Pedro Alves <palves@redhat.com>
8982
8983 * configure.ac (build_warnings): Move
8984 -Wdeclaration-after-statement to the C-specific set.
8985 * configure: Regenerate.
8986
8987 2015-03-07 Pedro Alves <palves@redhat.com>
8988
8989 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8990 or <winsock2.h> here. Instead include "gdb_socket.h".
8991 (remote_open): Use union gdb_sockaddr_u.
8992 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8993 or <winsock2.h> here. Instead include "gdb_socket.h".
8994 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8995 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8996 or <sys/un.h>.
8997 (init_named_socket, gdb_agent_helper_thread): Use union
8998 gdb_sockaddr_u.
8999
9000 2015-03-07 Pedro Alves <palves@redhat.com>
9001
9002 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9003 instead.
9004
9005 2015-03-06 Yao Qi <yao.qi@linaro.org>
9006
9007 * linux-aarch64-low.c (aarch64_insert_point): Use
9008 show_debug_regs as a boolean.
9009 (aarch64_remove_point): Likewise.
9010
9011 2015-03-05 Pedro Alves <palves@redhat.com>
9012
9013 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9014 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9015 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9016 * nto-low.c (nto_target_ops): Likewise.
9017 * spu-low.c (spu_target_ops): Likewise.
9018 * win32-low.c (win32_target_ops): Likewise.
9019
9020 2015-03-04 Pedro Alves <palves@redhat.com>
9021
9022 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
9023 Decide whether a breakpoint triggered based on the SIGTRAP's
9024 siginfo.si_code.
9025 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9026 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9027 (linux_low_filter_event): Check for breakpoints before checking
9028 watchpoints.
9029 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9030 siginfo.si_code.
9031 (linux_stopped_by_sw_breakpoint)
9032 (linux_supports_stopped_by_sw_breakpoint)
9033 (linux_stopped_by_hw_breakpoint)
9034 (linux_supports_stopped_by_hw_breakpoint): New functions.
9035 (linux_target_ops): Install new target methods.
9036
9037 2015-03-04 Pedro Alves <palves@redhat.com>
9038
9039 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9040 * server.c (swbreak_feature, hwbreak_feature): New globals.
9041 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9042 (captured_main): Clear swbreak_feature and hwbreak_feature.
9043 * server.h (swbreak_feature, hwbreak_feature): Declare.
9044 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9045 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9046 supports_stopped_by_hw_breakpoint>: New fields.
9047 (target_supports_stopped_by_sw_breakpoint)
9048 (target_stopped_by_sw_breakpoint)
9049 (target_supports_stopped_by_hw_breakpoint)
9050 (target_stopped_by_hw_breakpoint): Declare.
9051
9052 2015-03-04 Pedro Alves <palves@redhat.com>
9053
9054 enum lwp_stop_reason -> enum target_stop_reason
9055 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9056 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9057 (linux_wait_1, stuck_in_jump_pad_callback)
9058 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9059 (linux_stopped_by_watchpoint):
9060 * linux-low.h (enum lwp_stop_reason): Delete.
9061 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9062 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9063
9064 2015-03-04 Yao Qi <yao.qi@linaro.org>
9065
9066 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9067
9068 2015-03-03 Gary Benson <gbenson@redhat.com>
9069
9070 * hostio.c (handle_vFile): Fix prefix lengths.
9071
9072 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9073
9074 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9075 ptr_bits.
9076
9077 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9078
9079 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9080 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9081 (clean): Add "rm -f" for above C files.
9082 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9083 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9084 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9085 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9086 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9087 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9088 (init_registers_s390x_vx_linux64)
9089 (init_registers_s390x_tevx_linux64)
9090 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9091 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9092 declarations.
9093 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9094 (s390_store_vxrs_high): New functions.
9095 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9096 NT_S390_VXRS_HIGH.
9097 (s390_arch_setup): Add logic for selecting one of the new target
9098 descriptions. Activate the new vector regsets if applicable.
9099 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9100 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9101 and init_registers_s390x_tevx_linux64.
9102
9103 2015-03-01 Pedro Alves <palves@redhat.com>
9104
9105 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9106 parameter.
9107
9108 2015-02-27 Pedro Alves <palves@redhat.com>
9109
9110 * linux-x86-low.c (u_debugreg_offset): New function.
9111 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9112
9113 2015-02-27 Pedro Alves <palves@redhat.com>
9114
9115 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9116 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9117 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9118 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9119 (ps_lsetfpregs, ps_getpid)
9120 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9121 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9122 (ps_lsetxregs, ps_plog): Declare.
9123
9124 2015-02-27 Pedro Alves <palves@redhat.com>
9125
9126 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9127 IP_AGENT_EXPORT_FUNC.
9128 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9129 IP_AGENT_EXPORT_FUNC.
9130 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9131 (IP_AGENT_EXPORT): Delete.
9132 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9133 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9134 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9135 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9136 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9137 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9138 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9139 (traceframe_read_count, traceframe_write_count)
9140 (traceframes_created, trace_state_variables, get_raw_reg)
9141 (get_trace_state_variable_value, set_trace_state_variable_value)
9142 (ust_loaded, helper_thread_id, cmd_buf): Use
9143 IPA_SYM_EXPORTED_NAME.
9144 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9145 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9146 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9147 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9148 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9149 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9150 EXTERN_C_PUSH/EXTERN_C_POP.
9151 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9152 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9153 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9154 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9155 (traceframe_write_count, traceframe_read_count)
9156 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9157 (about_to_request_buffer_space, get_trace_state_variable_value)
9158 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9159 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9160 EXTERN_C_PUSH/EXTERN_C_POP.
9161 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9162 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9163 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9164 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9165 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9166 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9167 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9168 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9169 Define.
9170 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9171 (IP_AGENT_EXPORT_VAR_DECL): Define.
9172 (tracing): Declare.
9173 (gdb_agent_get_raw_reg): Declare.
9174
9175 2015-02-27 Tom Tromey <tromey@redhat.com>
9176 Pedro Alves <palves@redhat.com>
9177
9178 Rename symbols whose names are reserved C++ keywords throughout.
9179
9180 2015-02-27 Pedro Alves <palves@redhat.com>
9181
9182 * Makefile.in (COMPILER): New, get it from autoconf.
9183 (CXX): Get from autoconf instead.
9184 (COMPILE.pre): Use COMPILER.
9185 (CC-LD): Rename to ...
9186 (CC_LD): ... this. Use COMPILER.
9187 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9188 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9189 * acinclude.m4: Include build-with-cxx.m4.
9190 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9191 Disable -Werror by default if building in C++ mode.
9192 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9193 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9194 the C++ compiler. Save/restore CXXFLAGS too.
9195 * configure: Regenerate.
9196
9197 2015-02-27 Pedro Alves <palves@redhat.com>
9198
9199 * acinclude.m4: Include libiberty.m4.
9200 * configure.ac: Call libiberty_INIT.
9201 * config.in, configure: Regenerate.
9202
9203 2015-02-26 Pedro Alves <palves@redhat.com>
9204
9205 * linux-low.c (linux_wait_1): When incrementing the PC past a
9206 program breakpoint always use the_low_target.breakpoint_len as
9207 increment, rather than the maximum between that and
9208 the_low_target.decr_pc_after_break.
9209
9210 2015-02-23 Pedro Alves <palves@redhat.com>
9211
9212 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9213 thread was doing a step-over; always adjust the PC if
9214 we stepped over a permanent breakpoint.
9215 (linux_wait_1): If we stepped over breakpoint that was on top of a
9216 permanent breakpoint, manually advance the PC past it.
9217
9218 2015-02-23 Pedro Alves <palves@redhat.com>
9219
9220 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9221 modes.
9222 (x86_fill_gregset, x86_store_gregset): Use it when handling
9223 $orig_eax.
9224
9225 2015-02-20 Pedro Alves <palves@redhat.com>
9226
9227 * thread-db.c: Include "nat/linux-procfs.h".
9228 (thread_db_init): Skip listing new threads if the kernel supports
9229 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9230
9231 2015-02-20 Pedro Alves <palves@redhat.com>
9232
9233 * linux-low.c (status_pending_p_callback): Use ptid_match.
9234
9235 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9236
9237 PR breakpoints/16812
9238 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9239 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9240 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9241
9242 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9243
9244 PR breakpoints/15956
9245 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9246
9247 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9248
9249 * linux-low.c (linux_low_btrace_conf): Print size.
9250 * server.c (handle_btrace_conf_general_set): New.
9251 (hanle_general_set): Call handle_btrace_conf_general_set.
9252 (handle_query): Report Qbtrace-conf:bts:size as supported.
9253
9254 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9255
9256 * linux-low.c (linux_low_enable_btrace): Update parameters.
9257 (linux_low_btrace_conf): New.
9258 (linux_target_ops)<to_btrace_conf>: Initialize.
9259 * server.c (current_btrace_conf): New.
9260 (handle_btrace_enable): Rename to ...
9261 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
9262 to target_enable_btrace. Update comment. Update users.
9263 (handle_qxfer_btrace_conf): New.
9264 (qxfer_packets): Add btrace-conf entry.
9265 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9266 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9267 (target_ops)<read_btrace_conf>: New.
9268 (target_enable_btrace): Update parameters.
9269 (target_read_btrace_conf): New.
9270
9271 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9272
9273 * server.c (handle_btrace_general_set): Remove call to
9274 target_supports_btrace.
9275 (supported_btrace_packets): New.
9276 (handle_query): Call supported_btrace_packets.
9277 * target.h: include btrace-common.h.
9278 (btrace_target_info): Removed.
9279 (supports_btrace, target_supports_btrace): Update parameters.
9280
9281 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9282
9283 * Makefile.in (SFILES): Add common/btrace-common.c.
9284 (OBS): Add common/btrace-common.o.
9285 (btrace-common.o): Add build rules.
9286 * linux-low: Include btrace-common.h.
9287 (linux_low_read_btrace): Use struct btrace_data. Call
9288 btrace_data_init and btrace_data_fini.
9289
9290 2015-02-06 Pedro Alves <palves@redhat.com>
9291
9292 * thread-db.c (find_new_threads_callback): Add debug output.
9293
9294 2015-02-04 Pedro Alves <palves@redhat.com>
9295
9296 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9297 (resume_stopped_resumed_lwps): New function.
9298 (linux_wait_for_event_filtered): Use it.
9299
9300 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9301
9302 * Makefile.in (SFILES): Add linux-personality.c.
9303 (linux-personality.o): New rule.
9304 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9305 list of objects to be built.
9306 * linux-low.c: Include nat/linux-personality.h.
9307 (linux_create_inferior): Remove code to disable address space
9308 randomization (moved to ../nat/linux-personality.c). Create
9309 cleanup to disable address space randomization.
9310
9311 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9312
9313 * Makefile.in (posix-strerror.o): New rule.
9314 (mingw-strerror.o): Likewise.
9315 * configure: Regenerated.
9316 * configure.ac: Source file ../common/common.host. Initialize new
9317 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9318
9319 2015-01-14 Yao Qi <yao@codesourcery.com>
9320
9321 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9322 (ppc-linux.o): New rule.
9323 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9324 * configure.ac: AC_CHECK_FUNCS(getauxval).
9325 * config.in: Re-generated.
9326 * configure: Re-generated.
9327 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9328 ppc64_64bit_inferior_p
9329
9330 2015-01-14 Yao Qi <yao@codesourcery.com>
9331
9332 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9333 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9334 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9335 (PT_ORIG_R3, PT_TRAP): Likewise.
9336 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9337 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9338 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9339
9340 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9341
9342 * i387-fp.c (i387_cache_to_xsave): In look over
9343 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9344 zmmh_low_space field by use of zmmh_high_space.
9345
9346 2015-01-09 Pedro Alves <palves@redhat.com>
9347
9348 * linux-low.c (step_over_bkpt): Move higher up in the file.
9349 (handle_extended_wait): Don't store the stop_pc here.
9350 (get_stop_pc): Adjust comments and rename to ...
9351 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9352 stopped for a software breakpoint or hardware breakpoint.
9353 (thread_still_has_status_pending_p): New function.
9354 (status_pending_p_callback): Use
9355 thread_still_has_status_pending_p. If the event is no longer
9356 interesting, resume the LWP.
9357 (handle_tracepoints): Add assert.
9358 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9359 (wstatus_maybe_breakpoint): New function.
9360 (cancel_breakpoint): Delete function.
9361 (check_stopped_by_watchpoint): New function, factored out from
9362 linux_low_filter_event.
9363 (lp_status_maybe_breakpoint): Delete function.
9364 (linux_low_filter_event): Remove filter_ptid argument.
9365 Leave thread group exits pending here. Store the LWP's stop PC.
9366 Always leave events pending.
9367 (linux_wait_for_event_filtered): Pull all events out of the
9368 kernel, and leave them all pending.
9369 (count_events_callback, select_event_lwp_callback): Consider all
9370 events.
9371 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9372 (select_event_lwp): Only give preference to the stepping LWP in
9373 all-stop mode. Adjust comments.
9374 (ignore_event): New function.
9375 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9376 references to cancel_breakpoints. Adjust to renames. Also give
9377 equal priority to all LWPs that have had events in non-stop mode.
9378 If reporting a software breakpoint event, unadjust the LWP's PC.
9379 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9380 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9381 Adjust.
9382 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9383 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9384 (linux_stopped_by_watchpoint): Adjust.
9385 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9386 * linux-low.h (enum lwp_stop_reason): New.
9387 (struct lwp_info) <stop_pc>: Adjust comment.
9388 <stopped_by_watchpoint>: Delete field.
9389 <stop_reason>: New field.
9390 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9391 * mem-break.c (software_breakpoint_inserted_here)
9392 (hardware_breakpoint_inserted_here): New function.
9393 * mem-break.h (software_breakpoint_inserted_here)
9394 (hardware_breakpoint_inserted_here): Declare.
9395 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9396 (cancel_breakpoints): Delete.
9397 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9398 (upload_fast_traceframes): Remove references to
9399 cancel_breakpoints.
9400
9401 2015-01-09 Pedro Alves <palves@redhat.com>
9402
9403 * thread-db.c (find_new_threads_callback): Ignore thread if the
9404 kernel thread ID is -1.
9405
9406 2015-01-09 Pedro Alves <palves@redhat.com>
9407
9408 * linux-low.c (linux_attach_fail_reason_string): Move to
9409 nat/linux-ptrace.c, and rename.
9410 (linux_attach_lwp): Update comment.
9411 (attach_proc_task_lwp_callback): New function.
9412 (linux_attach): Adjust to rename and use
9413 linux_proc_attach_tgid_threads.
9414 (linux_attach_fail_reason_string): Delete declaration.
9415
9416 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9417
9418 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9419 * server.c (gdbserver_version): Likewise.
9420
9421 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9422
9423 * remote-utils.c: Include ctype.h.
9424 (input_interrupt): Explicitly handle the case when the char
9425 received is the NUL byte. Improve the printing of non-ASCII
9426 characters.
9427
9428 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9429
9430 * linux-low.c (linux_low_filter_event): Update call to
9431 linux_enable_event_reporting following the addition of
9432 a new parameter to that function.
9433
9434 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9435
9436 PR server/17457
9437 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9438 (AARCH64_FPCR_REGNO): Likewise.
9439 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9440 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9441 (aarch64_store_fpregset): Likewise.
9442
9443 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9444
9445 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9446 Remove FIXME comment about assumption about N.
9447
9448 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9449
9450 * configure.ac: If large-file support is disabled in GDBserver,
9451 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9452 * configure: Regenerate.
9453
9454 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9455
9456 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9457 warning upon ENODATA from ptrace.
9458 * linux-s390-low.c (s390_store_tdb): New.
9459 (s390_regsets): Add regset for NT_S390_TDB.
9460
9461 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9462
9463 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9464 without a fill_function.
9465 * linux-s390-low.c (s390_fill_last_break): Remove.
9466 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9467 (s390_arch_setup): Use regset's size instead of fill_function for
9468 loop end condition.
9469
9470 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9471
9472 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9473 the regset's store function when ptrace returned an error.
9474 * regcache.c (get_thread_regcache): Invalidate register cache
9475 before fetching inferior's registers.
9476
9477 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9478
9479 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9480 while-loop as for-loop.
9481 (regsets_store_inferior_registers): Likewise.
9482
9483 2014-11-28 Yao Qi <yao@codesourcery.com>
9484
9485 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9486 * config.in, configure: Re-generate.
9487 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9488 is defined.
9489
9490 2014-11-21 Yao Qi <yao@codesourcery.com>
9491
9492 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9493 (AC_CHECK_HEADERS): Remove malloc.h.
9494 * configure: Re-generated.
9495 * config.in: Re-generated.
9496 * server.h: Don't include alloca.h and malloc.h.
9497 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9498 Don't include malloc.h.
9499
9500 2014-11-17 Joel Brobecker <brobecker@adacore.com>
9501
9502 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9503 corresponding ERRNO check in same block.
9504
9505 2014-11-12 Pedro Alves <palves@redhat.com>
9506
9507 * server.c (cont_thread): Update comment.
9508 (start_inferior, attach_inferior): No longer clear cont_thread.
9509 (handle_v_cont): No longer set cont_thread.
9510 (captured_main): Clear cont_thread each time a GDB connects.
9511
9512 2014-11-12 Pedro Alves <palves@redhat.com>
9513
9514 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9515 thread, and don't resume all threads if the Hc thread has exited.
9516
9517 2014-11-12 Pedro Alves <palves@redhat.com>
9518
9519 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9520 the process group instead of to a specific LWP.
9521
9522 2014-10-15 Pedro Alves <palves@redhat.com>
9523
9524 PR server/17487
9525 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9526 parameter.
9527 (arm_set_thread_context): Delete.
9528 (the_low_target): Adjust.
9529 * win32-i386-low.c (debug_registers_changed)
9530 (debug_registers_used): Delete.
9531 (update_debug_registers_callback): New function.
9532 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9533 needing to update their debug registers.
9534 (win32_get_current_dr): New function.
9535 (x86_dr_low_get_addr, x86_dr_low_get_control)
9536 (x86_dr_low_get_status): Fetch the debug register from the thread
9537 record's context.
9538 (i386_initial_stuff): Adjust.
9539 (i386_get_thread_context): Remove current_event parameter. Don't
9540 clear debug_registers_changed nor copy DR values to
9541 debug_reg_state.
9542 (i386_set_thread_context): Delete.
9543 (i386_prepare_to_resume): New function.
9544 (i386_thread_added): Mark the thread as needing to update irs
9545 debug registers.
9546 (the_low_target): Remove i386_set_thread_context and install
9547 i386_prepare_to_resume.
9548 * win32-low.c (win32_get_thread_context): Adjust.
9549 (win32_set_thread_context): Use SetThreadContext
9550 directly.
9551 (win32_prepare_to_resume): New function.
9552 (win32_require_context): New function, factored out from ...
9553 (thread_rec): ... this.
9554 (continue_one_thread): Call win32_prepare_to_resume on each thread
9555 we're about to continue.
9556 (win32_resume): Call win32_prepare_to_resume on the event thread.
9557 * win32-low.h (struct win32_thread_info)
9558 <debug_registers_changed>: New field.
9559 (struct win32_target_ops): Change prototype of set_thread_context,
9560 delete set_thread_context and add prepare_to_resume.
9561 (win32_require_context): New declaration.
9562
9563 2014-10-08 Gary Benson <gbenson@redhat.com>
9564
9565 * server.h: Do not include common-exceptions.h.
9566
9567 2014-10-08 Gary Benson <gbenson@redhat.com>
9568
9569 * server.h: Do not include cleanups.h.
9570
9571 2014-09-30 James Hogan <james.hogan@imgtec.com>
9572
9573 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9574 mips64-dsp-linux.c.
9575
9576 2014-09-23 Yao Qi <yao@codesourcery.com>
9577
9578 * linux-low.c (lp_status_maybe_breakpoint): New function.
9579 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9580 (count_events_callback): Likewise.
9581 (select_event_lwp_callback): Likewise.
9582 (cancel_breakpoints_callback): Likewise.
9583
9584 2014-09-19 Don Breazeal <donb@codesourcery.com>
9585
9586 * linux-low.c (handle_extended_wait): Call
9587 linux_ptrace_get_extended_event.
9588 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9589 linux_is_extended_waitstatus.
9590
9591 2014-09-16 Joel Brobecker <brobecker@adacore.com>
9592
9593 * Makefile.in (CPPFLAGS): Define.
9594 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9595 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9596
9597 2014-09-16 Gary Benson <gbenson@redhat.com>
9598
9599 * inferiors.h (current_inferior): Renamed as...
9600 (current_thread): New variable. All uses updated.
9601 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9602 (maybe_move_out_of_jump_pad): Likewise.
9603 (cancel_breakpoint): Likewise.
9604 (linux_low_filter_event): Likewise.
9605 (wait_for_sigstop): Likewise.
9606 (linux_resume_one_lwp): Likewise.
9607 (need_step_over_p): Likewise.
9608 (start_step_over): Likewise.
9609 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9610 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9611 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9612 and save_inferior as saved_thread.
9613 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9614 saved_thread.
9615 (regcache_invalidate_thread): Likewise.
9616 * remote-utils.c (prepare_resume_reply): Likewise.
9617 * thread-db.c (thread_db_get_tls_address): Likewise.
9618 (disable_thread_event_reporting): Likewise.
9619 (remove_thread_event_breakpoints): Likewise.
9620 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9621 as saved_thread.
9622 * target.h (set_desired_inferior): Renamed as...
9623 (set_desired_thread): New declaration. All uses updated.
9624 * server.c (myresume): Updated comment to reference thread instead
9625 of inferior.
9626 (handle_serial_event): Likewise.
9627 (handle_target_event): Likewise.
9628
9629 2014-09-12 Tom Tromey <tromey@redhat.com>
9630 Gary Benson <gbenson@redhat.com>
9631
9632 * regcache.h: Include common-regcache.h.
9633 (regcache_read_pc): Don't declare.
9634 * regcache.c (get_thread_regcache_for_ptid): New function.
9635
9636 2014-09-11 Tom Tromey <tromey@redhat.com>
9637 Gary Benson <gbenson@redhat.com>
9638
9639 * symbol.c: New file.
9640 * Makefile.in (SFILES): Add symbol.c.
9641 (OBS): Add symbol.o.
9642
9643 2014-09-11 Gary Benson <gbenson@redhat.com>
9644
9645 * target.c (target_stop_ptid, target_continue_ptid): New
9646 functions.
9647
9648 2014-09-11 Tom Tromey <tromey@redhat.com>
9649 Gary Benson <gbenson@redhat.com>
9650
9651 * target.h: Include target/target.h.
9652 * target.c (target_read_memory, target_read_uint32)
9653 (target_write_memory): New functions.
9654
9655 2014-09-11 Gary Benson <gbenson@redhat.com>
9656
9657 * server.h (debug_hw_points): Don't declare.
9658 * server.c (debug_hw_points): Don't define. Replace all uses
9659 with show_debug_regs.
9660 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9661 all uses with show_debug_regs.
9662
9663 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9664
9665 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9666 endianness into account.
9667 (ppc_supply_ptrace_register): Likewise.
9668
9669 2014-09-03 James Hogan <james.hogan@imgtec.com>
9670
9671 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9672 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9673
9674 2014-09-03 Gary Benson <gbenson@redhat.com>
9675
9676 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9677 ALL_DEBUG_ADDRESS_REGISTERS.
9678
9679 2014-09-02 Gary Benson <gbenson@redhat.com>
9680
9681 * i386-low.h: Renamed as...
9682 * x86-low.h: New file. All type, function and variable name
9683 prefixes changed from "i386_" to "x86_". All references updated.
9684 * i386-low.c: Renamed as...
9685 * x86-low.c: New file. All type, function and variable name
9686 prefixes changed from "i386_" to "x86_". All references updated.
9687
9688 2014-09-02 Gary Benson <gbenson@redhat.com>
9689
9690 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9691 (x86_linux_new_thread): Likewise.
9692
9693 2014-08-29 Gary Benson <gbenson@redhat.com>
9694
9695 * server.h (setjmp.h): Do not include.
9696 (toplevel): Do not declare.
9697 (common-exceptions.h): Include.
9698 (cleanups.h): Likewise.
9699 * server.c (toplevel): Do not define.
9700 (exit_code): New static global.
9701 (detach_or_kill_for_exit_cleanup): New function.
9702 (main): New function. Original main renamed to...
9703 (captured_main): New function.
9704 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9705
9706 2014-08-29 Gary Benson <gbenson@redhat.com>
9707
9708 * Makefile.in (SFILES): Add common/common-exceptions.c.
9709 (OBS): Add common-exceptions.o.
9710 (common-exceptions.o): New rule.
9711 * utils.c (prepare_to_throw_exception): New function.
9712
9713 2014-08-29 Gary Benson <gbenson@redhat.com>
9714
9715 * config.in: Regenerate.
9716 * configure: Likewise.
9717
9718 2014-08-29 Gary Benson <gbenson@redhat.com>
9719
9720 * Makefile.in (SFILES): Add common/cleanups.c.
9721 (OBS): cleanups.o.
9722 (cleanups.o): New rule.
9723
9724 2014-08-29 Gary Benson <gbenson@redhat.com>
9725
9726 * utils.c (internal_vwarning): New function.
9727
9728 2014-08-28 Gary Benson <gbenson@redhat.com>
9729
9730 * utils.h (fatal): Remove declaration.
9731 * utils.c (fatal): Remove function.
9732
9733 2014-08-28 Gary Benson <gbenson@redhat.com>
9734
9735 * tracepoint.c (gdb_agent_init): Replace fatal with
9736 perror_with_name.
9737 (initialize_tracepoint): Likewise.
9738
9739 2014-08-28 Gary Benson <gbenson@redhat.com>
9740
9741 * remote-utils.c (remote_prepare): Replace fatal with error.
9742
9743 2014-08-28 Gary Benson <gbenson@redhat.com>
9744
9745 * linux-low.c (linux_async): Replace fatal with warning.
9746 Tidy up and return.
9747 (linux_start_non_stop): Return -1 if linux_async failed.
9748
9749 2014-08-28 Gary Benson <gbenson@redhat.com>
9750
9751 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9752 gdb_assert.
9753 (i386_dr_low_get_addr): Remove vague comment.
9754 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9755 gdb_assert.
9756
9757 2014-08-28 Gary Benson <gbenson@redhat.com>
9758
9759 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9760 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9761 internal_error.
9762 (linux_resume_one_lwp): Likewise.
9763 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9764 gdb_assert.
9765 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9766 with internal_error.
9767 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9768 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9769 (find_register_by_name): Replace fatal with internal_error.
9770 (find_regno): Likewise.
9771 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9772 * thread-db.c (thread_db_create_event): Likewise.
9773 (thread_db_load_search): Likewise.
9774 (try_thread_db_load_1): Likewise.
9775 * tracepoint.c (get_jump_space_head): Replace fatal with
9776 internal_error.
9777 (claim_trampoline_space): Likewise.
9778 (have_fast_tracepoint_trampoline_buffer): Likewise.
9779 (cmd_qtstart): Likewise.
9780 (stop_tracing): Likewise.
9781 (fast_tracepoint_collecting): Likewise.
9782 (target_malloc): Likewise.
9783 (download_tracepoint): Likewise.
9784 (download_trace_state_variables): Replace check with gdb_assert.
9785 (upload_fast_traceframes): Replace fatal with internal_error.
9786
9787 2014-08-19 Tom Tromey <tromey@redhat.com>
9788 Gary Benson <gbenson@redhat.com>
9789
9790 * Makefile.in (SFILES): Add common/common-debug.c.
9791 (OBS): Add common-debug.o.
9792 (common-debug.o): New rule.
9793 * debug.h (debug_printf): Don't declare.
9794 * debug.c (debug_printf): Renamed and rewritten as...
9795 (debug_vprintf): New function.
9796
9797 2014-08-19 Gary Benson <gbenson@redhat.com>
9798
9799 * utils.h: Do not include print-utils.h.
9800
9801 2014-08-19 Tom Tromey <tromey@redhat.com>
9802 Gary Benson <gbenson@redhat.com>
9803
9804 * server.h: Add static assertion.
9805 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9806
9807 2014-08-19 Tom Tromey <tromey@redhat.com>
9808 Gary Benson <gbenson@redhat.com>
9809
9810 * Makefile.in (SFILES): Add common/errors.c.
9811 (OBS): Add errors.o.
9812 (IPA_OBS): Add errors-ipa.o.
9813 (errors.o): New rule.
9814 (errors-ipa.o): Likewise.
9815 * utils.h (perror_with_name, error, warning): Don't declare.
9816 * utils.c (warning): Renamed and rewritten as...
9817 (vwarning): New function.
9818 (error): Renamed and rewritten as...
9819 (verror): New function.
9820 (internal_error): Renamed and rewritten as...
9821 (internal_verror): New function.
9822
9823 2014-08-07 Gary Benson <gbenson@redhat.com>
9824
9825 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9826 * configure: Regenerate.
9827 * config.in: Likewise.
9828 * server.h: Do not include errno.h.
9829 * event-loop.c: Likewise.
9830 * hostio-errno.c: Likewise.
9831 * linux-low.c: Likewise.
9832 * remote-utils.c: Likewise.
9833 * spu-low.c: Likewise.
9834 * utils.c: Likewise.
9835 * gdbreplay.c: Unconditionally include errno.h.
9836
9837 2014-08-07 Gary Benson <gbenson@redhat.com>
9838
9839 * server.h: Do not include string.h.
9840 * event-loop.c: Likewise.
9841 * linux-low.c: Likewise.
9842 * regcache.c: Likewise.
9843 * remote-utils.c: Likewise.
9844 * spu-low.c: Likewise.
9845 * utils.c: Likewise.
9846
9847 2014-08-07 Gary Benson <gbenson@redhat.com>
9848
9849 * server.h: Do not include gdb_assert.h.
9850
9851 2014-08-07 Gary Benson <gbenson@redhat.com>
9852
9853 * server.h: Do not include common-utils.h.
9854
9855 2014-08-07 Gary Benson <gbenson@redhat.com>
9856
9857 * server.h: Do not include ptid.h.
9858 * notif.h: Likewise.
9859
9860 2014-08-07 Gary Benson <gbenson@redhat.com>
9861
9862 * server.h: Do not include gdb_locale.h.
9863
9864 2014-08-07 Gary Benson <gbenson@redhat.com>
9865
9866 * server.h: Do not include gdb/signals.h.
9867 * win32-low.c: Likewise.
9868
9869 2014-08-07 Gary Benson <gbenson@redhat.com>
9870
9871 * server.h: Do not include pathmax.h.
9872
9873 2014-08-07 Gary Benson <gbenson@redhat.com>
9874
9875 * server.h: Do not include libiberty.h.
9876 * linux-bfin-low.c: Likewise.
9877
9878 2014-08-07 Gary Benson <gbenson@redhat.com>
9879
9880 * server.h: Do not include ansidecl.h.
9881
9882 2014-08-07 Gary Benson <gbenson@redhat.com>
9883
9884 * linux-x86-low.c: Do not include stddef.h.
9885 * lynx-ppc-low.c: Likewise.
9886 * tracepoint.c: Likewise.
9887
9888 2014-08-07 Gary Benson <gbenson@redhat.com>
9889
9890 * server.h: Do not include stdarg.h.
9891 * nto-low.c: Likewise.
9892
9893 2014-08-07 Gary Benson <gbenson@redhat.com>
9894
9895 * server.h: Do not include stdlib.h.
9896 * inferiors.c: Likewise.
9897 * linux-low.c: Likewise.
9898 * regcache.c: Likewise.
9899 * spu-low.c: Likewise.
9900 * tracepoint.c: Likewise.
9901 * utils.c: Likewise.
9902
9903 2014-08-07 Gary Benson <gbenson@redhat.com>
9904
9905 * server.h: Do not include stdio.h.
9906 * linux-low.c: Likewise.
9907 * remote-utils.c: Likewise.
9908 * spu-low.c: Likewise.
9909 * utils.c: Likewise.
9910 * wincecompat.c: Likewise.
9911
9912 2014-08-06 Gary Benson <gbenson@redhat.com>
9913
9914 * regcache.c (init_register_cache): Move conditionals inside if.
9915
9916 2014-08-06 Gary Benson <gbenson@redhat.com>
9917
9918 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9919
9920 2014-07-31 Gary Benson <gbenson@redhat.com>
9921
9922 * ax.h: Do not include server.h.
9923 * gdbthread.h: Likewise.
9924 * lynx-low.h: Likewise.
9925 * notif.h: Likewise.
9926
9927 2014-07-30 Gary Benson <gbenson@redhat.com>
9928
9929 * server.h: Include common-defs.h.
9930 Do not include config.h or build-gnulib-gdbserver/config.h.
9931
9932 2014-07-30 Gary Benson <gbenson@redhat.com>
9933
9934 * hostio-errno.c: Move server.h to top of includes list.
9935 * inferiors.c: Likewise.
9936 * linux-x86-low.c: Likewise.
9937 * notif.c: Include server.h.
9938
9939 2014-07-24 Tom Tromey <tromey@redhat.com>
9940 Gary Benson <gbenson@redhat.com>
9941
9942 * server.h (CORE_ADDR): Now unsigned.
9943
9944 2014-07-16 Pedro Alves <palves@redhat.com>
9945
9946 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9947
9948 2014-07-15 Pedro Alves <palves@redhat.com>
9949
9950 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9951 copy.
9952
9953 2014-07-11 Pedro Alves <palves@redhat.com>
9954
9955 * linux-low.c (kill_wait_lwp): New function, based on
9956 kill_one_lwp_callback, but use my_waitpid directly.
9957 (kill_one_lwp_callback, linux_kill): Use it.
9958
9959 2014-06-23 Pedro Alves <palves@redhat.com>
9960
9961 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9962 before setting DR0..DR3.
9963
9964 2014-06-20 Gary Benson <gbenson@redhat.com>
9965
9966 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9967 * configure: Regenerated.
9968 * config.in: Likewise.
9969
9970 2014-06-20 Gary Benson <gbenson@redhat.com>
9971
9972 * Makefile.in (SFILES): Update locations for files moved
9973 from common to nat.
9974 (object file files): Reordered.
9975
9976 2014-06-20 Gary Benson <gbenson@redhat.com>
9977
9978 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9979 (i386_dr_low_set_addr): Likewise.
9980 (i386_dr_low_get_addr): Likewise.
9981 (i386_dr_low_can_set_control): Likewise.
9982 (i386_dr_low_set_control): Likewise.
9983 (i386_dr_low_get_control): Likewise.
9984 (i386_dr_low_get_status): Likewise.
9985 (i386_get_debug_register_length): Likewise.
9986 * linux-x86-low.c (i386_dr_low_set_addr):
9987 Changed signature. Made static.
9988 (i386_dr_low_get_addr): Likewise.
9989 (i386_dr_low_set_control): Likewise.
9990 (i386_dr_low_get_control): Likewise.
9991 (i386_dr_low_get_status): Likewise.
9992 (i386_dr_low): New global variable.
9993 * win32-i386-low.c (i386_dr_low_set_addr):
9994 Changed signature. Made static.
9995 (i386_dr_low_get_addr): Likewise.
9996 (i386_dr_low_set_control): Likewise.
9997 (i386_dr_low_get_control): Likewise.
9998 (i386_dr_low_get_status): Likewise.
9999 (i386_dr_low): New global variable.
10000
10001 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10002
10003 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10004 * Makefile.in (AR, AR_FLAGS): Define.
10005 * configure: Regenerate.
10006
10007 2014-06-19 Gary Benson <gbenson@redhat.com>
10008
10009 * Makefile.in (i386-dregs.o): New rule.
10010 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10011 * i386-low.c (target.h): Remove include.
10012 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10013 (DR_CONTROL_SHIFT): Likewise.
10014 (DR_CONTROL_SIZE): Likewise.
10015 (DR_RW_EXECUTE): Likewise.
10016 (DR_RW_WRITE): Likewise.
10017 (DR_RW_READ): Likewise.
10018 (DR_RW_IORW): Likewise.
10019 (DR_LEN_1): Likewise.
10020 (DR_LEN_2): Likewise.
10021 (DR_LEN_4): Likewise.
10022 (DR_LEN_8): Likewise.
10023 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10024 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10025 (DR_ENABLE_SIZE): Likewise.
10026 (DR_LOCAL_SLOWDOWN): Likewise.
10027 (DR_GLOBAL_SLOWDOWN): Likewise.
10028 (DR_CONTROL_RESERVED): Likewise.
10029 (I386_DR_CONTROL_MASK): Likewise.
10030 (I386_DR_VACANT): Likewise.
10031 (I386_DR_LOCAL_ENABLE): Likewise.
10032 (I386_DR_GLOBAL_ENABLE): Likewise.
10033 (I386_DR_DISABLE): Likewise.
10034 (I386_DR_SET_RW_LEN): Likewise.
10035 (I386_DR_GET_RW_LEN): Likewise.
10036 (I386_DR_WATCH_HIT): Likewise.
10037 (i386_wp_op_t): Likewise.
10038 (i386_show_dr): Likewise.
10039 (i386_length_and_rw_bits): Likewise.
10040 (i386_insert_aligned_watchpoint): Likewise.
10041 (i386_remove_aligned_watchpoint): Likewise.
10042 (i386_handle_nonaligned_watchpoint): Likewise.
10043 i386_update_inferior_debug_regs(): Likewise.
10044 (i386_dr_insert_watchpoint): Likewise.
10045 (i386_dr_remove_watchpoint): Likewise.
10046 (i386_dr_region_ok_for_watchpoint): Likewise.
10047 (i386_dr_stopped_data_address): Likewise.
10048 (i386_dr_stopped_by_watchpoint): Likewise.
10049
10050 2014-06-19 Gary Benson <gbenson@redhat.com>
10051
10052 * i386-low.c (i386_dr_show): Renamed to
10053 i386_show_dr and made static. All uses updated.
10054 (i386_dr_length_and_rw_bits): Renamed to
10055 i386_length_and_rw_bits and made static.
10056 All uses updated.
10057 (i386_dr_insert_aligned_watchpoint): Renamed to
10058 i386_insert_aligned_watchpoint and made static.
10059 All uses updated.
10060 (i386_dr_remove_aligned_watchpoint): Renamed to
10061 i386_remove_aligned_watchpoint and made static.
10062 All uses updated.
10063 (i386_dr_update_inferior_debug_regs): Renamed to
10064 i386_update_inferior_debug_regs and made static.
10065 All uses updated.
10066
10067 2014-06-18 Gary Benson <gbenson@redhat.com>
10068
10069 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10070 (i386_dr_low_can_set_control): Likewise.
10071 (i386_get_debug_register_length): Likewise.
10072 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10073 (i386_dr_low_can_set_control): Likewise.
10074 (i386_get_debug_register_length): Likewise.
10075
10076 2014-06-17 Gary Benson <gbenson@redhat.com>
10077
10078 * i386-low.h (i386-dregs.h): New include.
10079 (DR_FIRSTADDR): Now in i386-dregs.h.
10080 (DR_LASTADDR): Likewise.
10081 (DR_NADDR): Likewise.
10082 (DR_STATUS): Likewise.
10083 (DR_CONTROL): Likewise.
10084 (i386_debug_reg_state): Likewise.
10085 (i386_dr_insert_watchpoint): Likewise.
10086 (i386_dr_remove_watchpoint): Likewise.
10087 (i386_dr_region_ok_for_watchpoint): Likewise.
10088 (i386_dr_stopped_data_address): Likewise.
10089 (i386_dr_stopped_by_watchpoint): Likewise.
10090 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10091
10092 2014-06-18 Gary Benson <gbenson@redhat.com>
10093
10094 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10095 i386_dr_insert_watchpoint.
10096 (i386_low_remove_watchpoint): Renamed to
10097 i386_dr_remove_watchpoint.
10098 (i386_low_region_ok_for_watchpoint): Renamed to
10099 i386_dr_region_ok_for_watchpoint.
10100 (i386_low_stopped_data_address): Renamed to
10101 i386_dr_stopped_data_address.
10102 (i386_low_stopped_by_watchpoint): Renamed to
10103 i386_dr_stopped_by_watchpoint.
10104 * i386-low.c (i386_show_dr): Renamed to
10105 i386_dr_show and made nonstatic. All uses updated.
10106 (i386_length_and_rw_bits): Renamed to
10107 i386_dr_length_and_rw_bits and made nonstatic.
10108 All uses updated.
10109 (i386_insert_aligned_watchpoint): Renamed to
10110 i386_dr_insert_aligned_watchpoint and made nonstatic.
10111 All uses updated.
10112 (i386_remove_aligned_watchpoint): Renamed to
10113 i386_dr_remove_aligned_watchpoint and made nonstatic.
10114 All uses updated.
10115 (i386_update_inferior_debug_regs): Renamed to
10116 i386_dr_update_inferior_debug_regs and made nonstatic.
10117 All uses updated.
10118 (i386_low_insert_watchpoint): Renamed to
10119 i386_dr_insert_watchpoint. All uses updated.
10120 (i386_low_remove_watchpoint): Renamed to
10121 i386_dr_remove_watchpoint. All uses updated.
10122 (i386_low_region_ok_for_watchpoint): Renamed to
10123 i386_dr_region_ok_for_watchpoint. All uses updated.
10124 (i386_low_stopped_data_address): Renamed to
10125 i386_dr_stopped_data_address. All uses updated.
10126 (i386_low_stopped_by_watchpoint): Renamed to
10127 i386_dr_stopped_by_watchpoint. All uses updated.
10128
10129 2014-06-18 Gary Benson <gbenson@redhat.com>
10130
10131 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10132 (i386_dr_low_can_set_control): Likewise.
10133 (i386_insert_aligned_watchpoint): New check.
10134
10135 2014-06-18 Gary Benson <gbenson@redhat.com>
10136
10137 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10138 Renamed to state.
10139
10140 2014-06-18 Gary Benson <gbenson@redhat.com>
10141
10142 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10143 instead of fatal and error.
10144 (i386_handle_nonaligned_watchpoint): Likewise.
10145
10146 2014-06-18 Gary Benson <gbenson@redhat.com>
10147
10148 * i386-low.c (i386_get_debug_register_length): New macro.
10149 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10150 (i386_show_dr): Use debug_printf instead of fprintf. Use
10151 phex to format values.
10152
10153 2014-06-18 Gary Benson <gbenson@redhat.com>
10154
10155 * i386-low.h: Comment changes.
10156 * i386-low.c: Likewise.
10157
10158 2014-06-18 Gary Benson <gbenson@redhat.com>
10159
10160 * i386-low.c: Whitespace changes.
10161
10162 2014-06-12 Tom Tromey <tromey@redhat.com>
10163
10164 * utils.c (freeargv): Remove.
10165
10166 2014-06-12 Tom Tromey <tromey@redhat.com>
10167
10168 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10169 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10170 (parse_debug_format_options): Likewise.
10171 (gdbserver_usage): Likewise.
10172 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10173 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10174 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10175 against libiberty.
10176 ($(LIBGNU)): Depend on libiberty.
10177 (all-lib): Recurse into all subdirs.
10178 (install-only): Invoke "install" target in subdirs.
10179 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10180 targets.
10181 * configure: Rebuild.
10182 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10183 for vasprintf, vsnprintf, or gettimeofday.
10184 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10185 srv_tgtobj.
10186
10187 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10188
10189 * development.sh: Delete.
10190 * Makefile.in (config.status): Adjust dependency on development.sh.
10191 * configure.ac: Adjust development.sh source call.
10192 * configure: Regenerate.
10193
10194 2014-06-02 Pedro Alves <palves@redhat.com>
10195
10196 * ax.c (gdb_free_agent_expr): New function.
10197 * ax.h (gdb_free_agent_expr): New declaration.
10198 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10199 list.
10200 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10201 static.
10202 (clear_breakpoint_conditions_and_commands): New function.
10203 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10204 (clear_breakpoint_conditions_and_commands): New declaration.
10205
10206 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10207
10208 * linux-aarch64-low.c (asm/ptrace.h): Include.
10209
10210 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10211
10212 Fix TLS access for -static -pthread.
10213 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10214 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10215 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10216
10217 2014-05-20 Pedro Alves <palves@redhat.com>
10218
10219 * linux-aarch64-low.c (aarch64_insert_point)
10220 (aarch64_remove_point): No longer check whether the type is
10221 supported here. Adjust to new interface.
10222 (the_low_target): Install aarch64_supports_z_point_type as
10223 supports_z_point_type method.
10224 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10225 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10226 instead of a Z packet char. Adjust.
10227 (arm_supports_z_point_type): New function.
10228 (arm_insert_point, arm_remove_point): Adjust to new interface.
10229 (the_low_target): Install arm_supports_z_point_type.
10230 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10231 (cris_insert_point, cris_remove_point): Adjust to new interface.
10232 Don't check whether the type is supported here.
10233 (the_low_target): Install cris_supports_z_point_type.
10234 * linux-low.c (linux_supports_z_point_type): New function.
10235 (linux_insert_point, linux_remove_point): Adjust to new interface.
10236 * linux-low.h (struct linux_target_ops) <insert_point,
10237 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10238 raw_breakpoint pointer parameter.
10239 <supports_z_point_type>: New method.
10240 * linux-mips-low.c (mips_supports_z_point_type): New function.
10241 (mips_insert_point, mips_remove_point): Adjust to new interface.
10242 Use mips_supports_z_point_type.
10243 (the_low_target): Install mips_supports_z_point_type.
10244 * linux-ppc-low.c (the_low_target): Install NULL as
10245 supports_z_point_type method.
10246 * linux-s390-low.c (the_low_target): Install NULL as
10247 supports_z_point_type method.
10248 * linux-sparc-low.c (the_low_target): Install NULL as
10249 supports_z_point_type method.
10250 * linux-x86-low.c (x86_supports_z_point_type): New function.
10251 (x86_insert_point): Adjust to new insert_point interface. Use
10252 insert_memory_breakpoint. Adjust to new
10253 i386_low_insert_watchpoint interface.
10254 (x86_remove_point): Adjust to remove_point interface. Use
10255 remove_memory_breakpoint. Adjust to new
10256 i386_low_remove_watchpoint interface.
10257 (the_low_target): Install x86_supports_z_point_type.
10258 * lynx-low.c (lynx_target_ops): Install NULL as
10259 supports_z_point_type callback.
10260 * nto-low.c (nto_supports_z_point_type): New.
10261 (nto_insert_point, nto_remove_point): Adjust to new interface.
10262 (nto_target_ops): Install nto_supports_z_point_type.
10263 * mem-break.c: Adjust intro comment.
10264 (struct raw_breakpoint) <raw_type, size>: New fields.
10265 <inserted>: Update comment.
10266 <shlib_disabled>: Delete field.
10267 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10268 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10269 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10270 (raw_bkpt_type_to_target_hw_bp_type): New function.
10271 (find_enabled_raw_code_breakpoint_at): New function.
10272 (find_raw_breakpoint_at): New type and size parameters. Use them.
10273 (insert_memory_breakpoint): New function, based off
10274 set_raw_breakpoint_at.
10275 (remove_memory_breakpoint): New function.
10276 (set_raw_breakpoint_at): Reimplement.
10277 (set_breakpoint): New, based on set_breakpoint_at.
10278 (set_breakpoint_at): Reimplement.
10279 (delete_raw_breakpoint): Go through the_target->remove_point
10280 instead of assuming memory breakpoints.
10281 (find_gdb_breakpoint_at): Delete.
10282 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10283 (find_gdb_breakpoint): New function.
10284 (set_gdb_breakpoint_at): Delete.
10285 (z_type_supported): New function.
10286 (set_gdb_breakpoint_1): New function, loosely based off
10287 set_gdb_breakpoint_at.
10288 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10289 (delete_gdb_breakpoint_at): Delete.
10290 (delete_gdb_breakpoint_1): New function, loosely based off
10291 delete_gdb_breakpoint_at.
10292 (delete_gdb_breakpoint): New function.
10293 (clear_gdb_breakpoint_conditions): Rename to ...
10294 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10295 breakpoint.
10296 (add_condition_to_breakpoint): Make static.
10297 (add_breakpoint_condition): Take a struct breakpoint pointer
10298 instead of an address. Adjust.
10299 (gdb_condition_true_at_breakpoint): Rename to ...
10300 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10301 z_type parameter.
10302 (gdb_condition_true_at_breakpoint): Reimplement.
10303 (add_breakpoint_commands): Take a struct breakpoint pointer
10304 instead of an address. Adjust.
10305 (gdb_no_commands_at_breakpoint): Rename to ...
10306 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10307 parameter. Return true if no breakpoint was found. Change debug
10308 output.
10309 (gdb_no_commands_at_breakpoint): Reimplement.
10310 (run_breakpoint_commands): Rename to ...
10311 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10312 and change return type to boolean.
10313 (run_breakpoint_commands): New function.
10314 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10315 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10316 breakpoint. Go through the_target->remove_point instead of
10317 assuming memory breakpoint.
10318 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10319 software and hardware breakpoints.
10320 (reinsert_raw_breakpoint): Go through the_target->insert_point
10321 instead of assuming memory breakpoint.
10322 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10323 software and hardware breakpoints.
10324 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10325 Check both software and hardware breakpoints.
10326 (validate_inserted_breakpoint): Assert the breakpoint is a
10327 software breakpoint. Set the inserted flag to -1 instead of
10328 setting shlib_disabled.
10329 (delete_disabled_breakpoints): Adjust.
10330 (validate_breakpoints): Only validate software breakpoints.
10331 Adjust to inserted flag change.
10332 (check_mem_read, check_mem_write): Skip breakpoint types other
10333 than software breakpoints. Adjust to inserted flag change.
10334 * mem-break.h (enum raw_bkpt_type): New enum.
10335 (raw_breakpoint, struct process_info): Forward declare.
10336 (Z_packet_to_target_hw_bp_type): Delete declaration.
10337 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10338 (set_gdb_breakpoint, delete_gdb_breakpoint)
10339 (clear_breakpoint_conditions): New declarations.
10340 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10341 (breakpoint_inserted_here): Update comment.
10342 (add_breakpoint_condition, add_breakpoint_commands): Replace
10343 address parameter with a breakpoint pointer parameter.
10344 (gdb_breakpoint_here): Update comment.
10345 (delete_gdb_breakpoint_at): Delete.
10346 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10347 * server.c (process_point_options): Take a struct breakpoint
10348 pointer instead of an address. Adjust.
10349 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10350 delete_gdb_breakpoint.
10351 * spu-low.c (spu_target_ops): Install NULL as
10352 supports_z_point_type method.
10353 * target.h: Include mem-break.h.
10354 (struct target_ops) <prepare_to_access_memory>: Update comment.
10355 <supports_z_point_type>: New field.
10356 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10357 instead of a char. Also take a raw breakpoint pointer.
10358 * win32-arm-low.c (the_low_target): Install NULL as
10359 supports_z_point_type.
10360 * win32-i386-low.c (i386_supports_z_point_type): New function.
10361 (i386_insert_point, i386_remove_point): Adjust to new interface.
10362 (the_low_target): Install i386_supports_z_point_type.
10363 * win32-low.c (win32_supports_z_point_type): New function.
10364 (win32_insert_point, win32_remove_point): Adjust to new interface.
10365 (win32_target_ops): Install win32_supports_z_point_type.
10366 * win32-low.h (struct win32_target_ops):
10367 <supports_z_point_type>: New method.
10368 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10369 instead of a char. Also take a raw breakpoint pointer.
10370
10371 2014-05-20 Pedro Alves <palves@redhat.com>
10372
10373 * mem-break.h: Include break-common.h.
10374 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10375 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10376 (Z_packet_to_target_hw_bp_type): New declaration.
10377 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10378 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10379 (Z_PACKET_ACCESS_WP): Delete macros.
10380 (Z_packet_to_hw_type): Delete function.
10381 * i386-low.h: Don't include break-common.h here.
10382 (Z_packet_to_hw_type): Delete declaration.
10383 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10384 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10385 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10386 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10387 * linux-aarch64-low.c: Don't include break-common.h here.
10388 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10389 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10390 (Z_packet_to_target_hw_bp_type): Delete function.
10391 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10392 function.
10393 (mips_insert_point, mips_remove_point): Use
10394 Z_packet_to_target_hw_bp_type.
10395
10396 2014-05-20 Pedro Alves <palves@redhat.com>
10397
10398 * linux-aarch64-low.c: Include break-common.h.
10399 (enum target_point_type): Delete.
10400 (Z_packet_to_point_type): Rename to ...
10401 (Z_packet_to_target_hw_bp_type): ... this, and return a
10402 target_hw_bp_type instead.
10403 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10404 instead of an enum target_point_type.
10405 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10406 breakpoint type.
10407 (aarch64_dr_state_insert_one_point)
10408 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10409 (aarch64_handle_aligned_watchpoint)
10410 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10411 Take an enum target_hw_bp_type instead of an enum
10412 target_point_type.
10413 (aarch64_supports_z_point_type): New function.
10414 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10415 use Z_packet_to_target_hw_bp_type.
10416
10417 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10418
10419 * configure.ac: Only use -Werror by default when DEVELOPMENT
10420 is true.
10421 * configure: Regenerate.
10422
10423 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10424
10425 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10426 * linux-x86-low.c (X86_64_USER_REGS): New.
10427 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10428
10429 2014-04-28 Yao Qi <yao@codesourcery.com>
10430
10431 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10432 name.
10433
10434 2014-04-25 Pedro Alves <palves@redhat.com>
10435
10436 PR server/16255
10437 * linux-low.c (linux_attach_fail_reason_string): New function.
10438 (linux_attach_lwp): Delete.
10439 (linux_attach_lwp_1): Rename to ...
10440 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10441 argument. Remove "initial" parameter. Return int instead of
10442 void. Don't error or warn here.
10443 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10444 failure to attach to the tgid. Call warning when failing to
10445 attach to an lwp.
10446 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10447 argument. Remove "initial" parameter. Return int instead of
10448 void. Don't error or warn here.
10449 (linux_attach_fail_reason_string): New declaration.
10450 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10451 interface change. Use linux_attach_fail_reason_string.
10452
10453 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
10454 Walfred Tedeschi <walfred.tedeschi@intel.com>
10455
10456 * Makefile.in: Added rules to handle new files
10457 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10458 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10459 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10460 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10461 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10462 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10463 x32-avx512-linux.o.
10464 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10465 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10466 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10467 i386/x32-avx512.xml.
10468 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10469 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10470 i386/x32-avx512-linux.xml.
10471 * i387-fp.c (num_avx512_k_registers): New constant for number
10472 of K registers.
10473 (num_avx512_zmmh_low_registers): New constant for number of
10474 lower ZMM registers (0-15).
10475 (num_avx512_zmmh_high_registers): New constant for number of
10476 higher ZMM registers (16-31).
10477 (num_avx512_ymmh_registers): New contant for number of higher
10478 YMM registers (ymm16-31 added by avx521 on x86_64).
10479 (num_avx512_xmm_registers): New constant for number of higher
10480 XMM registers (xmm16-31 added by AVX512 on x86_64).
10481 (struct i387_xsave): Add space for AVX512 registers.
10482 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10483 Add code to handle AVX512 registers.
10484 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10485 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10486 prototypei from generated file.
10487 (tdesc_amd64_avx512_linux): Likewise.
10488 (init_registers_x32_avx512_linux): Likewise.
10489 (tdesc_x32_avx512_linux): Likewise.
10490 (init_registers_i386_avx512_linux): Likewise.
10491 (tdesc_i386_avx512_linux): Likewise.
10492 (x86_64_regmap): Add AVX512 registers.
10493 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10494 mask.
10495 (initialize_low_arch): Add code to initialize AVX512 registers.
10496
10497 2014-04-23 Pedro Alves <palves@redhat.com>
10498
10499 * mem-break.c (find_gdb_breakpoint_at): Make static.
10500 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10501
10502 2014-04-23 Pedro Alves <palves@redhat.com>
10503
10504 * i386-low.c: Don't include break-common.h here.
10505 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10506 prototype to take target_hw_bp_type as argument instead of a Z
10507 packet char.
10508 * i386-low.h: Include break-common.h here.
10509 (Z_packet_to_hw_type): Declare.
10510 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10511 prototypes.
10512 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10513 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10514 (x86_remove_point): Convert the packet number to a
10515 target_hw_bp_type before calling i386_low_remove_watchpoint.
10516 * win32-i386-low.c (i386_insert_point): Convert the packet number
10517 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10518 (i386_remove_point): Convert the packet number to a
10519 target_hw_bp_type before calling i386_low_remove_watchpoint.
10520
10521 2014-04-23 Pedro Alves <palves@redhat.com>
10522
10523 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10524
10525 2014-04-10 Pedro Alves <palves@redhat.com>
10526
10527 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10528 Check if the condition or command is NULL before checking if the
10529 breakpoint is known. On success, return true.
10530 * mem-break.h (add_breakpoint_condition): Document return.
10531 (add_breakpoint_commands): Add describing comment.
10532 * server.c (skip_to_semicolon): New function.
10533 (process_point_options): Use it.
10534
10535 2014-04-09 Pedro Alves <palves@redhat.com>
10536
10537 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10538 to lwpid_of.
10539
10540 2014-02-27 Pedro Alves <palves@redhat.com>
10541
10542 PR 12702
10543 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10544 macros.
10545 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10546 output.
10547 (last_thread_of_process_p): Take a PID argument instead of a
10548 thread pointer.
10549 (linux_wait_for_lwp): Delete.
10550 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10551 functions.
10552 (linux_low_filter_event): New function, party factored out from
10553 linux_wait_for_event.
10554 (linux_wait_for_event): Rename to ...
10555 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10556 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10557 sigsuspend. Check for zombie leaders.
10558 (linux_wait_for_event): Reimplement as wrapper around
10559 linux_wait_for_event_filtered.
10560 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10561 a normal or signal exit is seen, it's the whole process exiting.
10562 (wait_for_sigstop): No longer a for_each_inferior callback.
10563 Rewrite on top of linux_wait_for_event_filtered.
10564 (stop_all_lwps): Call wait_for_sigstop directly.
10565 * server.c (resume, handle_target_event): Handle
10566 TARGET_WAITKIND_NO_RESUMED.
10567
10568 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10569
10570 * win32-low.c (psapi_get_dll_name,
10571 * win32_CreateToolhelp32Snapshot): Delete.
10572 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10573 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10574 Delete.
10575 (handle_load_dll): Add function description.
10576 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10577
10578 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10579
10580 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10581 Add comment.
10582 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10583 base address when calling win32_add_one_solib.
10584 (handle_load_dll): Delete local variable load_addr.
10585 Remove 0x1000 offset applied to DLL base address when calling
10586 win32_add_one_solib.
10587 (handle_unload_dll): Add comment.
10588
10589 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10590
10591 * win32-low.c (win32_add_all_dlls): Renames
10592 win32_ensure_ntdll_loaded. Rewrite function documentation.
10593 Adjust implementation to always load all DLLs.
10594 Add 0x1000 offset to DLL base address when calling
10595 win32_add_one_solib.
10596 (child_initialization_done): New static global.
10597 (do_initial_child_stuff): Set child_initialization_done to
10598 zero during child initialization, and 1 after. Replace call
10599 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10600 Add comment.
10601 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10602 (handle_unload_dll): Add function documentation.
10603 (get_child_debug_event): Ignore load and unload DLL events
10604 during child initialization.
10605
10606 2014-02-20 Doug Evans <dje@google.com>
10607
10608 Remove global all_lwps.
10609 * inferiors.h (ptid_of): Move here from linux-low.h.
10610 (pid_of, lwpid_of): Ditto.
10611 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10612 parameter is a struct thread_info * now.
10613 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10614 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10615 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10616 directly.
10617 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10618 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10619 * linux-arm-low.c (update_registers_callback): Update, "entry"
10620 parameter is a struct thread_info * now.
10621 Fetch lwpid from current_inferior directly.
10622 (arm_insert_point): Pass &all_threads to find_inferior instead of
10623 &all_lwps.
10624 (arm_remove_point): Ditto.
10625 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10626 (arm_prepare_to_resume): Fetch pid from thread.
10627 (arm_read_description): Fetch lwpid from current_inferior directly.
10628 * linux-low.c (all_lwps): Delete.
10629 (delete_lwp): Delete call to remove_inferior.
10630 (handle_extended_wait): Fetch lwpid from thread.
10631 (add_lwp): Don't set lwp->entry.id. Remove call to
10632 add_inferior_to_list.
10633 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10634 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10635 (kill_one_lwp_callback): Ditto.
10636 (linux_kill): Don't dereference NULL pointer.
10637 Fetch ptid,lwpid from thread.
10638 (get_detach_signal): Fetch ptid from thread.
10639 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10640 Simplify call to regcache_invalidate_thread.
10641 (delete_lwp_callback): Update, "entry" parameter is a
10642 struct thread_info * now. Fetch pid from thread.
10643 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10644 (status_pending_p_callback): Update, "entry" parameter is a
10645 struct thread_info * now. Fetch ptid from thread.
10646 (find_lwp_pid): Update, "entry" parameter is a
10647 struct thread_info * now.
10648 (linux_wait_for_lwp): Fetch pid from thread.
10649 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10650 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10651 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10652 (dequeue_one_deferred_signal): Ditto.
10653 (cancel_breakpoint): Fetch ptid from current_inferior.
10654 (linux_wait_for_event): Pass &all_threads to find_inferior,
10655 not &all_lwps. Fetch ptid, lwpid from thread.
10656 (count_events_callback): Update, "entry" parameter is a
10657 struct thread_info * now.
10658 (select_singlestep_lwp_callback): Ditto.
10659 (select_event_lwp_callback): Ditto.
10660 (cancel_breakpoints_callback): Ditto.
10661 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10662 not &all_lwps.
10663 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10664 (unsuspend_one_lwp): Update, "entry" parameter is a
10665 struct thread_info * now.
10666 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10667 not &all_lwps.
10668 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10669 Fetch lwpid from thread, not lwp.
10670 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10671 Pass &all_threads to find_inferior, not &all_lwps.
10672 (send_sigstop): Fetch lwpid from thread, not lwp.
10673 (send_sigstop_callback): Update, "entry" parameter is a
10674 struct thread_info * now.
10675 (suspend_and_send_sigstop_callback): Ditto.
10676 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10677 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10678 struct thread_info * now.
10679 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10680 from thread, lwp.
10681 (lwp_running): Update, "entry" parameter is a
10682 struct thread_info * now.
10683 (stop_all_lwps): Fetch ptid from thread.
10684 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10685 (linux_resume_one_lwp): Fetch lwpid from thread.
10686 (linux_set_resume_request): Update, "entry" parameter is a
10687 struct thread_info * now. Fetch pid, lwpid from thread.
10688 (resume_status_pending_p): Update, "entry" parameter is a
10689 struct thread_info * now.
10690 (need_step_over_p): Ditto. Fetch lwpid from thread.
10691 (start_step_over): Fetch lwpid from thread.
10692 (linux_resume_one_thread): Update, "entry" parameter is a
10693 struct thread_info * now. Fetch lwpid from thread.
10694 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10695 (proceed_one_lwp): Update, "entry" parameter is a
10696 struct thread_info * now. Fetch lwpid from thread.
10697 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10698 struct thread_info * now.
10699 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10700 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10701 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10702 directly.
10703 (regsets_store_inferior_registers): Ditto.
10704 (fetch_register, store_register): Ditto.
10705 (linux_read_memory, linux_write_memory): Ditto.
10706 (linux_request_interrupt): Ditto.
10707 (linux_read_auxv): Ditto.
10708 (linux_xfer_siginfo): Ditto.
10709 (linux_qxfer_spu): Ditto.
10710 (linux_qxfer_libraries_svr4): Ditto.
10711 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10712 moved to inferiors.h.
10713 (get_lwp): Delete.
10714 (get_thread_lwp): Update.
10715 (struct lwp_info): Delete member "entry". Simplify comment for
10716 member "thread".
10717 (all_lwps): Delete.
10718 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10719 current_inferior directly.
10720 (update_watch_registers_callback): Update, "entry" parameter is a
10721 struct thread_info * now. Fetch pid from thread.
10722 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10723 (mips_insert_point): Fetch lwpid from current_inferior.
10724 Pass &all_threads to find_inferior, not &all_lwps.
10725 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10726 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10727 directly.
10728 (mips_stopped_data_address): Ditto.
10729 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10730 directly.
10731 * linux-tile-low.c (tile_arch_setup): Ditto.
10732 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10733 (update_debug_registers_callback): Update, "entry" parameter is a
10734 struct thread_info * now. Fetch pid from thread.
10735 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10736 Pass &all_threads to find_inferior, not &all_lwps.
10737 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10738 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10739 Pass &all_threads to find_inferior, not &all_lwps.
10740 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10741 (i386_dr_low_get_status): Ditto.
10742 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10743 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10744 (x86_linux_read_description): Ditto.
10745 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10746
10747 2014-02-20 Doug Evans <dje@google.com>
10748
10749 * inferiors.c (get_first_inferior): Fix buglet.
10750
10751 2014-02-19 Doug Evans <dje@google.com>
10752
10753 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10754 * inferiors.c (add_thread): Change result type to struct thread_info *.
10755 All callers updated.
10756 (add_lwp): Call add_thread here instead of in callers.
10757 All callers updated.
10758 * linux-low.h (get_lwp_thread): Rewrite.
10759 (struct lwp_info): New member "thread".
10760
10761 2014-02-19 Doug Evans <dje@google.com>
10762
10763 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10764 All callers updated.
10765
10766 2014-02-19 Doug Evans <dje@google.com>
10767
10768 * inferiors.c (add_thread): Fix whitespace.
10769
10770 2014-02-19 Doug Evans <dje@google.com>
10771
10772 * dll.c (clear_dlls): Replace accessing list implemention details
10773 with API function.
10774 * gdbthread.h (get_first_thread): Declare.
10775 * inferiors.c (for_each_inferior_with_data): New function.
10776 (get_first_thread): New function.
10777 (find_thread_ptid): Simplify.
10778 (get_first_inferior): New function.
10779 (clear_list): Delete.
10780 (one_inferior_p): New function.
10781 (clear_inferior_list): New function.
10782 (clear_inferiors): Update.
10783 * inferiors.h (for_each_inferior_with_data): Declare.
10784 (clear_inferior_list): Declare.
10785 (one_inferior_p): Declare.
10786 (get_first_inferior): Declare.
10787 * linux-low.c (linux_wait_for_event): Replace accessing list
10788 implemention details with API function.
10789 * server.c (target_running): Ditto.
10790 (accumulate_file_name_length): New function.
10791 (emit_dll_description): New function.
10792 (handle_qxfer_libraries): Replace accessing list implemention
10793 details with API function.
10794 (handle_qxfer_threads_worker): New function.
10795 (handle_qxfer_threads_proper): Replace accessing list implemention
10796 details with API function.
10797 (handle_query): Ditto.
10798 (visit_actioned_threads_callback_ftype): New typedef.
10799 (visit_actioned_threads_data): New struct.
10800 (visit_actioned_threads): Rewrite to be find_inferior callback.
10801 (resume): Call find_inferior.
10802 (handle_status): Replace accessing list implemention
10803 details with API function.
10804 (process_serial_event): Replace accessing list implemention details
10805 with API function.
10806 * target.c (set_desired_inferior): Replace accessing list implemention
10807 details with API function.
10808 * tracepoint.c (same_process_p): New function.
10809 (gdb_agent_about_to_close): Replace accessing list implemention
10810 details with API function.
10811 * win32-low.c (child_delete_thread): Replace accessing list
10812 implemention details with API function.
10813 (match_dll_by_basename): New function.
10814 (dll_is_loaded_by_basename): New function.
10815 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10816 details call to dll_is_loaded_by_basename.
10817
10818 2014-02-19 Doug Evans <dje@google.com>
10819
10820 * dll.h (struct dll_info): Add comment.
10821 * gdbthread.h (struct thread_info): Add comment.
10822 (current_ptid): Simplify.
10823 * inferiors.c (add_process): Update.
10824 (remove_process): Update.
10825 * inferiors.h (struct process_info): Rename member "head" to "entry".
10826 * linux-low.c (delete_lwp): Update.
10827 (add_lwp): Update.
10828 (last_thread_of_process_p): Update.
10829 (kill_one_lwp_callback, linux_kill): Update.
10830 (status_pending_p_callback): Update.
10831 (wait_for_sigstop): Update. Simplify read of ptid.
10832 (start_step_over): Update.
10833 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10834 (get_lwp_thread): Update.
10835 (struct lwp_info): Rename member "head" to "entry".
10836 * regcache.h (inferior_list_entry): Delete.
10837 * server.c (kill_inferior_callback): Update.
10838 (detach_or_kill_inferior_callback): Update.
10839 (print_started_pid): Update.
10840 (print_attached_pid): Update.
10841 (process_serial_event): Simplify read of ptid.
10842 * thread-db.c (thread_db_create_event): Update.
10843 (thread_db_get_tls_address): Update.
10844 * win32-low.c (current_inferior_ptid): Simplify.
10845
10846 2014-02-19 Tom Tromey <tromey@redhat.com>
10847
10848 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10849 argument.
10850 (target_supports_btrace): Update.
10851
10852 2014-02-14 Yao Qi <yao@codesourcery.com>
10853
10854 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10855 (rsp-low-ipa.o): New target.
10856
10857 2014-02-12 Tom Tromey <tromey@redhat.com>
10858
10859 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10860 convert_ascii_to_int.
10861 * regcache.c (registers_to_string): Likewise.
10862 * remote-utils.c (decode_M_packet): Likewise.
10863 * server.c (process_serial_event): Likewise.
10864
10865 2014-02-12 Tom Tromey <tromey@redhat.com>
10866
10867 * server.c (handle_query, handle_v_run): Use hex2bin, not
10868 unhexify.
10869 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10870
10871 2014-02-12 Tom Tromey <tromey@redhat.com>
10872
10873 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10874 convert_int_to_ascii.
10875 * regcache.c (registers_to_string, collect_register_as_string):
10876 Likewise.
10877 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10878 Likewise.
10879 * server.c (process_serial_event): Likewise.
10880 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10881 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10882
10883 2014-02-12 Tom Tromey <tromey@redhat.com>
10884
10885 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10886 bin2hex, not hexify.
10887 * tracepoint.c (cmd_qtstatus): Likewise.
10888
10889 2014-02-12 Tom Tromey <tromey@redhat.com>
10890
10891 * remote-utils.c (monitor_output): Pass explicit length to
10892 hexify.
10893
10894 2014-02-12 Tom Tromey <tromey@redhat.com>
10895
10896 * tracepoint.c: Include rsp-low.h.
10897 * server.c: Include rsp-low.h.
10898 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10899 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10900 declare.
10901 * remote-utils.c: Include rsp-low.h.
10902 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10903 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10904 (convert_int_to_ascii, convert_ascii_to_int): Move to
10905 common/rsp-low.c.
10906 * regcache.c: Include rsp-low.h.
10907 * ax.c: Include rsp-low.h.
10908 * Makefile.in (SFILES): Add common/rsp-low.c.
10909 (OBS): Add rsp-low.o.
10910 (rsp-low.o): New target.
10911
10912 2014-02-12 Tom Tromey <tromey@redhat.com>
10913
10914 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10915 Include print-utils.h.
10916 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10917 (plongest, thirty_two, phex_nz): Remove.
10918 * Makefile.in (SFILES): Add common/print-utils.c.
10919 (OBS): Add print-utils.o.
10920 (print-utils-ipa.o): New target.
10921 (print-utils.o): New target.
10922 (IPA_OBJS): Add print-utils-ipa.o.
10923
10924 2014-02-06 Tom Tromey <tromey@redhat.com>
10925
10926 * Makefile.in (SFILES): Fix indentation.
10927
10928 2014-02-05 Doug Evans <dje@google.com>
10929
10930 * linux-low.c (linux_wait_for_event): Improve comment.
10931 (linux_wait_1): Keep current_inferior in sync with event_child.
10932
10933 2014-01-22 Doug Evans <dje@google.com>
10934
10935 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10936
10937 2014-01-22 Doug Evans <dje@google.com>
10938
10939 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10940 * configure: Regenerate.
10941 * config.in: Regenerate.
10942 * Makefile.in (SFILES): Add debug.c.
10943 (OBS): Add debug.o.
10944 * debug.c: New file.
10945 * debug.h: New file.
10946 * linux-aarch64-low.c (*): Update all debugging printfs to use
10947 debug_printf instead of fprintf.
10948 * linux-arm-low.c (*): Ditto.
10949 * linux-cris-low.c (*): Ditto.
10950 * linux-crisv32-low.c (*): Ditto.
10951 * linux-m32r-low.c (*): Ditto.
10952 * linux-sparc-low.c (*): Ditto.
10953 * linux-x86.c (*): Ditto.
10954 * linux-low.c (*): Ditto.
10955 (linux_wait_1): Add calls to debug_enter, debug_exit.
10956 (linux_wait): Remove redundant debugging printf.
10957 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10958 (linux_resume, unstop_all_lwps): Ditto.
10959 * mem-break.c (*): Update all debugging printfs to use
10960 debug_printf instead of fprintf.
10961 * remote-utils.c (*): Ditto.
10962 * thread-db.c (*): Ditto.
10963 * server.c #include <ctype.h>, "gdb_vecs.h".
10964 (debug_threads): Moved to debug.c.
10965 (*): Update all debugging printfs to use debug_printf instead of
10966 fprintf.
10967 (start_inferior): Replace call to fflush with call to debug_flush.
10968 (monitor_show_help): Mention set debug-format.
10969 (parse_debug_format_options): New function.
10970 (handle_monitor_command): Handle "monitor set debug-format".
10971 (gdbserver_usage): Mention --debug-format.
10972 (main): Parse --debug-format.
10973 * server.h (debug_threads): Declaration moved to debug.h.
10974 #include "debug.h".
10975 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10976 trace_debug_1 that uses debug_printf.
10977 (tracepoint_look_up_symbols): Update all debugging printfs to use
10978 debug_printf instead of fprintf.
10979
10980 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10981
10982 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10983 sys/ptrace.h.
10984
10985 2014-01-17 Pedro Alves <palves@redhat.com>
10986
10987 PR build/16445
10988 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10989 defined after including gdb_proc_service.h.
10990
10991 2014-01-16 Doug Evans <dje@google.com>
10992
10993 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10994 (match_dll): Use it.
10995
10996 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10997
10998 * target.h (target_ops) <read_btrace>: Change parameters and
10999 return type to allow error reporting.
11000 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11001 trace reading errors on.
11002 * linux-low.c (linux_low_read_btrace): Pass trace reading
11003 errors on.
11004 (linux_low_disable_btrace): New.
11005
11006 2014-01-15 Doug Evans <dje@google.com>
11007
11008 * inferiors.c (thread_id_to_gdb_id): Delete.
11009 * inferiors.h (thread_id_to_gdb_id): Delete.
11010
11011 2014-01-13 Eli Zaretskii <eliz@gnu.org>
11012
11013 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11014 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11015 versions.
11016
11017 2014-01-08 Pedro Alves <palves@redhat.com>
11018
11019 * server.c (handle_status): Don't discard previous queued stop
11020 replies or thread's pending status here.
11021 (main) <disconnection>: Do it here instead.
11022
11023 2014-01-08 Pedro Alves <palves@redhat.com>
11024
11025 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11026 * server.c (visit_actioned_threads, handle_pending_status): New
11027 function.
11028 (handle_v_cont): Factor out parts to ...
11029 (resume): ... this new function. If in all-stop, and a thread
11030 being resumed has a pending status, report it without actually
11031 resuming.
11032 (myresume): Adjust to use the new 'resume' function.
11033 (clear_pending_status_callback, set_pending_status_callback)
11034 (find_status_pending_thread_callback): New functions.
11035 (handle_status): Handle the case of multiple threads having
11036 interesting statuses to report. Report threads' real last signal
11037 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11038 with an interesting thread to report the status for, instead of
11039 always reporting the status of the first thread.
11040
11041 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11042
11043 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11044 * gdbreplay.c (gdbreplay_version): Likewise.
11045
11046 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11047
11048 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11049 iov.iov_len with the real length in use.
11050
11051 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11052
11053 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11054 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11055 for all targets that use win32-low.c.
11056 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11057 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11058
11059 2013-12-13 Pedro Alves <palves@redhat.com>
11060
11061 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11062 if equal to TARGET_WAITKIND_LOADED.
11063 * win32-low.c (cached_status): New static global.
11064 (win32_wait): Add declaration.
11065 (do_initial_child_stuff): Flush all initial pending debug events
11066 up to the initial breakpoint.
11067 (win32_wait): If CACHED_STATUS was set, return that instead
11068 of doing a real wait. Remove the code resuming the execution
11069 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11070 during the initial phase. Also remove the code changing
11071 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11072 TARGET_WAITKIND_STOPPED.
11073
11074 2013-12-11 Yao Qi <yao@codesourcery.com>
11075
11076 * notif.c (handle_notif_ack): Return 0 if no notification
11077 matches.
11078
11079 2013-11-20 Doug Evans <dje@google.com>
11080
11081 * linux-low.c (linux_set_resume_request): Fix comment.
11082
11083 2013-11-20 Doug Evans <dje@google.com>
11084
11085 * linux-low.c (resume_status_pending_p): Tweak comment.
11086
11087 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11088
11089 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11090 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11091 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11092 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11093 (srv_amd64_regobj): Add amd64-mpx.o.
11094 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11095 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11096 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11097 * i387-fp.c (num_pl_bnd_register) Added constant.
11098 (num_pl_bnd_cfg_registers) Added constant.
11099 (struct i387_xsave) Added reserved area and MPX fields.
11100 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11101 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11102 function.
11103 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11104 (init_registers_amd64_mpx_linux): Declare new function.
11105 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11106 (x86_64_regmap): Add MPX registers.
11107 (x86_linux_read_description): Add MPX case.
11108 (initialize_low_arch): Initialize MPX targets.
11109
11110 2013-11-18 Tom Tromey <tromey@redhat.com>
11111
11112 * configure: Rebuild.
11113 * configure.ac: Don't check for stdlib.h.
11114 * gdbreplay.c: Unconditionally include stdlib.h.
11115
11116 2013-11-18 Tom Tromey <tromey@redhat.com>
11117
11118 * config.in: Rebuild.
11119 * configure: Rebuild.
11120 * configure.ac: Don't use AC_HEADER_DIRENT.
11121
11122 2013-11-18 Tom Tromey <tromey@redhat.com>
11123
11124 * server.h: Don't check HAVE_STRING_H.
11125 * gdbreplay.c: Don't check HAVE_STRING_H.
11126 * configure: Rebuild.
11127
11128 2013-11-18 Tom Tromey <tromey@redhat.com>
11129
11130 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11131 LIBGNU.
11132
11133 2013-11-08 Tom Tromey <tromey@redhat.com>
11134
11135 * configure, config.in: Rebuild.
11136 * configure.ac: Remove unused configury.
11137
11138 2013-11-08 Tom Tromey <tromey@redhat.com>
11139
11140 * acinclude.m4: Include common.m4, codeset.m4.
11141 * configure, config.in: Rebuild.
11142 * configure.ac: Use GDB_AC_COMMON.
11143
11144 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11145
11146 * linux-s390-low.c (HWCAP_S390_TE): New define.
11147 (s390_arch_setup): Consider the TE field in the HWCAP for
11148 determining 'have_regset_tdb'.
11149
11150 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11151
11152 PR gdb/16014
11153 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11154 call to sizeof.
11155
11156 2013-10-02 Pedro Alves <palves@redhat.com>
11157
11158 * server.c (process_serial_event): Don't output "GDBserver
11159 exiting" if GDB is connected through stdio.
11160 * target.c (mywait): Likewise, be silent if GDB is connected
11161 through stdio.
11162
11163 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11164
11165 * lynx-low.c (lynx_add_threads_after_attach): New function.
11166 (lynx_attach): Remove call to add_thread. Add call to
11167 lynx_add_threads_after_attach instead.
11168
11169 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11170
11171 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11172 * config.in, configure: Regenerated.
11173
11174 2013-09-18 Yao Qi <yao@codesourcery.com>
11175
11176 PR server/15959
11177 * server.c (start_inferior): Clear 'resume_info'.
11178
11179 2013-09-16 Jiong Wang <jiwang@tilera.com>
11180
11181 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11182 for each register.
11183
11184 2013-09-16 Jiong Wang <jiwang@tilera.com>
11185
11186 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11187 linux-tile-low.o to srv_tgtobj.
11188
11189 2013-09-16 Will Newton <will.newton@linaro.org>
11190
11191 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11192 out regs.
11193
11194 2013-09-06 Pedro Alves <palves@redhat.com>
11195
11196 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11197 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11198 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11199 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11200 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11201 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11202
11203 2013-09-06 Pedro Alves <palves@redhat.com>
11204
11205 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11206 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11207
11208 2013-09-06 Pedro Alves <palves@redhat.com>
11209
11210 * linux-amd64-ipa.c: Include tracepoint.h.
11211 * linux-i386-ipa.c: Include tracepoint.h.
11212
11213 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11214
11215 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11216 (ps_get_thread_area): New function.
11217
11218 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11219
11220 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11221 (initialize_low_arch): Call init_registers_crisv32 rather than
11222 init_register_crisv32.
11223
11224 2013-09-05 Pedro Alves <palves@redhat.com>
11225
11226 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11227 to ...
11228 * hostio.h: ... this new file.
11229 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11230 win32-low.c: Include hostio.h.
11231
11232 2013-09-05 Pedro Alves <palves@redhat.com>
11233
11234 * server.h (gdb_client_data, handler_func, callback_handler_func)
11235 (delete_file_handler, add_file_handler, append_callback_event)
11236 (delete_callback_event, start_event_loop, initialize_event_loop):
11237 Move to event-loop.h and include it.
11238 * event-loop.h: New file.
11239
11240 2013-09-05 Pedro Alves <palves@redhat.com>
11241
11242 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11243 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11244 (loaded_dll, unloaded_dll): Move to ...
11245 * dll.h: ... this new file.
11246 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11247
11248 2013-09-05 Pedro Alves <palves@redhat.com>
11249
11250 * server.h (current_process, get_thread_process, all_processes)
11251 (add_inferior_to_list, for_each_inferior, current_inferior)
11252 (remove_inferior, add_process, remove_process, find_process_pid)
11253 (have_started_inferiors_p, have_attached_inferiors_p)
11254 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11255 (clear_inferiors, find_inferior, find_inferior_id)
11256 (inferior_target_data, set_inferior_target_data)
11257 (inferior_regcache_data, set_inferior_regcache_data): Move to
11258 inferiors.h, and include it.
11259 * inferiors.h: New file.
11260
11261 2013-09-05 Pedro Alves <palves@redhat.com>
11262
11263 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11264 Move ...
11265 * ax.h: ... here.
11266
11267 2013-09-05 Pedro Alves <palves@redhat.com>
11268
11269 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11270 tracepoint.h.
11271 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11272 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11273 (handle_tracepoint_general_set, handle_tracepoint_query)
11274 (tracepoint_finished_step, tracepoint_was_hit)
11275 (release_while_stepping_state_list, current_traceframe)
11276 (in_readonly_region, traceframe_read_mem)
11277 (fetch_traceframe_registers, traceframe_read_sdata)
11278 (traceframe_read_info, struct fast_tpoint_collect_status)
11279 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11280 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11281 (supply_fast_tracepoint_registers)
11282 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11283 (ipa_tdesc, claim_trampoline_space)
11284 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11285 (agent_mem_read, agent_get_trace_state_variable_value)
11286 (agent_set_trace_state_variable_value, agent_tsv_read)
11287 (agent_mem_read_string, get_raw_reg_func_addr)
11288 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11289 * tracepoint.h: ... this new file.
11290
11291 2013-09-05 Pedro Alves <palves@redhat.com>
11292
11293 * server.h (perror_with_name, error, fatal, warning, paddress)
11294 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11295 include it.
11296 * utils.h: New file.
11297
11298 2013-09-05 Pedro Alves <palves@redhat.com>
11299
11300 * server.h (remote_debug, noack_mode, transport_is_reliable)
11301 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11302 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11303 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11304 (write_enn, initialize_async_io, enable_async_io)
11305 (disable_async_io, check_remote_input_interrupt_request)
11306 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11307 (dead_thread_notify, prepare_resume_reply)
11308 (decode_address_to_semicolon, decode_address, decode_m_packet)
11309 (decode_M_packet, decode_X_packet, decode_xfer_write)
11310 (decode_search_memory_packet, unhexify, hexify)
11311 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11312 (look_up_one_symbol, relocate_instruction)
11313 (monitor_output): Move to remote-utils.h, and include it.
11314 * remote-utils.h: New file.
11315
11316 2013-09-05 Pedro Alves <palves@redhat.com>
11317
11318 * server.h (_): Delete.
11319
11320 2013-09-02 Pedro Alves <palves@redhat.com>
11321
11322 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11323 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11324 allocated.
11325 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11326
11327 2013-09-02 Pierre Muller <muller@sourceware.org>
11328
11329 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11330 or WriteProcessMemory complete successfully and handle
11331 ERROR_PARTIAL_COPY error.
11332
11333 2013-09-02 Pedro Alves <palves@redhat.com>
11334
11335 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11336 error instead of EIO.
11337
11338 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11339
11340 PR server/15604
11341 * linux-low.c: Include filestuff.h.
11342 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11343 * lynx-low.c: Include filestuff.h.
11344 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11345 * server.c: Include filestuff.h.
11346 (main): Call notice_open_fds.
11347 * spu-low.c: Include filestuff.h.
11348 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11349
11350 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11351
11352 * Makefile.in: Explain why ../target and ../nat are not
11353 listed as include file search paths.
11354 (linux-waitpid.o): New object file rule.
11355 * configure.srv (srv_native_linux_obj): New variable.
11356 Replace all occurrences of linux native object files with
11357 $srv_native_linux_obj.
11358 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11359 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11360 (linux_enable_event_reporting): Remove declaration.
11361 (my_waitpid): Moved to common/linux-waitpid.c.
11362 (linux_wait_for_event): Pass ptid when calling
11363 linux_enable_event_reporting.
11364 (linux_supports_tracefork_flag): Remove.
11365 (linux_enable_event_reporting): Likewise.
11366 (linux_tracefork_grandchild): Remove.
11367 (STACK_SIZE): Moved to common/linux-ptrace.c.
11368 (linux_tracefork_child): Remove.
11369 (linux_test_for_tracefork): Remove.
11370 (linux_look_up_symbols): Call linux_supports_traceclone.
11371 (initialize_low): Remove call to linux_test_for_tracefork.
11372 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11373 common/linux-ptrace.h.
11374 (PTRACE_TYPE_ARG4): Likewise.
11375 Include linux-ptrace.h.
11376
11377 2013-08-21 Pedro Alves <palves@redhat.com>
11378
11379 * config.in: Renegerate.
11380
11381 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11382
11383 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11384 (SFILES): Remove $(srcdir)/common/target-common.c and
11385 add $(srcdir)/target/waitstatus.c.
11386 (OBS): Remove target-common.o and add waitstatus.o.
11387 (server_h): Remove $(srcdir)/../common/target-common.h and
11388 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11389 and $(srcdir)/../target/waitstatus.h.
11390 (target-common.o): Remove.
11391 (waitstatus.o): New target object file.
11392 * target.h: Do not include target-common.h and
11393 include target/resume.h, target/wait.h and
11394 target/waitstatus.h.
11395
11396 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11397
11398 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11399 to PTRACE_TYPE_ARG3.
11400 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11401 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11402 PTRACE_TYPE_ARG4.
11403 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11404 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11405
11406 2013-07-27 Jie Zhang <jie@codesourcery.com>
11407 Daniel Jacobowitz <dan@codesourcery.com>
11408 Yao Qi <yao@codesourcery.com>
11409
11410 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11411 (mips-linux-watch.o): New rule.
11412 (mips_linux_watch_h): New variable.
11413 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11414 srv_tgtobj.
11415 * linux-mips-low.c: Include mips-linux-watch.h.
11416 (struct arch_process_info, struct arch_lwp_info): New.
11417 (update_watch_registers_callback): New function.
11418 (mips_linux_new_process, mips_linux_new_thread) New functions.
11419 (mips_linux_prepare_to_resume, mips_insert_point): New
11420 functions.
11421 (mips_remove_point, mips_stopped_by_watchpoint): New
11422 functions.
11423 (rsp_bp_type_to_target_hw_bp_type): New function.
11424 (mips_stopped_data_address): New function.
11425 (the_low_target): Add watchpoint support functions.
11426
11427 2013-07-27 Yao Qi <yao@codesourcery.com>
11428
11429 * i386-low.c: Include break-common.h.
11430 (enum target_hw_bp_type): Remove.
11431
11432 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11433
11434 * Makefile.in (SFILES): /common/target-common.c.
11435 (OBS): Add target-common.o.
11436 (server_h): Add $(srcdir)/../common/target-common.h.
11437 (target-common.o): New target.
11438 * server.c (queue_stop_reply_callback): Free
11439 status string after use.
11440 * target.c (target_waitstatus_to_string): Remove.
11441 * target.h: Include target-common.h.
11442 (resume_kind): Likewise.
11443 (target_waitkind): Likewise.
11444 (target_waitstatus): Likewise.
11445 (TARGET_WNOHANG): Likewise.
11446
11447 2013-07-04 Yao Qi <yao@codesourcery.com>
11448
11449 * Makefile.in (host_alias): Use @host_noncanonical@.
11450 (target_alias): Use @target_noncanonical@.
11451 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11452 ACX_NONCANONICAL_HOST.
11453 * configure: Regenerated.
11454
11455 Revert:
11456 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11457
11458 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11459 * configure: Rebuild.
11460 * Makefile.in (version_host, version_target): Get from configure.
11461 (version.c): Use $(version_host) and $(version_target).
11462
11463 2013-07-03 Pedro Alves <palves@redhat.com>
11464
11465 * Makefile.in (config.status): Depend on development.sh.
11466 * acinclude.m4: Include libmcheck.m4.
11467 * configure: Regenerate.
11468
11469 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11470
11471 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11472 attribute inside the parentheses.
11473 (winapi_DebugSetProcessKillOnExit): Ditto.
11474 (winapi_DebugBreakProcess): Ditto.
11475 (winapi_GenerateConsoleCtrlEvent): Ditto.
11476
11477 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11478
11479 * notif.h (notif_event): Add a dummy member to avoid compiler
11480 errors.
11481
11482 2013-07-01 Pedro Alves <palves@redhat.com>
11483
11484 * hostio.c (HOSTIO_PATH_MAX): Define.
11485 (require_filename, handle_open, handle_unlink, handle_readlink):
11486 Use it.
11487
11488 2013-07-01 Pedro Alves <palves@redhat.com>
11489
11490 * server.h: Include "pathmax.h".
11491 * linux-low.c: Don't include sys/param.h.
11492 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11493 MAXPATHLEN.
11494 * win32-low.c: Don't include sys/param.h.
11495 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11496
11497 2013-07-01 Pedro Alves <palves@redhat.com>
11498
11499 * event-loop.c: Don't check HAVE_UNISTD_H before including
11500 <unistd.h>.
11501 * gdbreplay.c: Likewise.
11502 * remote-utils.c: Likewise.
11503 * server.c: Likewise.
11504 * configure.ac: Don't check for unistd.h.
11505 * configure: Regenerate.
11506
11507 2013-06-28 Tom Tromey <tromey@redhat.com>
11508
11509 * Makefile.in (version.c): Use version.in, not
11510 common/version.in.
11511
11512 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11513
11514 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11515 * configure: Rebuild.
11516 * Makefile.in (version_host, version_target): Get from configure.
11517 (version.c): Use $(version_host) and $(version_target).
11518
11519 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11520
11521 Fix trace-status to output user name without trailing colon.
11522 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11523
11524 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11525
11526 Fix trace-status to output proper start-time and stop-time.
11527 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11528 output start time and stop time in hex as gdb expects.
11529
11530 2013-06-26 Pedro Alves <pedro@codesourcery.com>
11531
11532 * tracepoint.c (build_traceframe_info_xml): Output trace state
11533 variables present in the trace buffer.
11534
11535 2013-06-24 Tom Tromey <tromey@redhat.com>
11536
11537 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11538 create-version.sh.
11539 (version.o): Remove.
11540 * gdbreplay.c: Include version.h.
11541 (version, host_name): Don't declare.
11542 * server.h: Include version.h.
11543 (version, host_name): Don't declare.
11544
11545 2013-06-12 Pedro Alves <palves@redhat.com>
11546
11547 * linux-x86-low.c (linux_is_elf64): Delete global.
11548 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11549 with local linux_pid_exe_is_elf_64_file use.
11550
11551 2013-06-11 Pedro Alves <palves@redhat.com>
11552
11553 * linux-low.c (regset_disabled, disable_regset): New functions.
11554 (regsets_fetch_inferior_registers)
11555 (regsets_store_inferior_registers): Use them.
11556 (initialize_regsets_info); Don't allocate the disabled_regsets
11557 array here.
11558 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11559 comment.
11560
11561 2013-06-11 Pedro Alves <palves@redhat.com>
11562
11563 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11564 xmalloc.
11565
11566 2013-06-11 Pedro Alves <palves@redhat.com>
11567
11568 * linux-x86-low.c (initialize_low_arch): Call
11569 init_registers_x32_avx_linux.
11570
11571 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11572
11573 Fix compatibility with Android Bionic.
11574 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11575 it is not empty.
11576
11577 2013-06-07 Pedro Alves <palves@redhat.com>
11578
11579 PR server/14823
11580 * Makefile.in (OBS): Add tdesc.o.
11581 (IPA_OBJS): Add tdesc-ipa.o.
11582 (tdesc-ipa.o): New rule.
11583 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11584 interface.
11585 * linux-low.c (new_inferior): Delete.
11586 (disabled_regsets, num_regsets): Delete.
11587 (linux_add_process): Adjust to set the new per-process
11588 new_inferior flag.
11589 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11590 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11591 was a stop. When calling arch_setup, switch the current inferior
11592 to the thread that got an event.
11593 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11594 (regsets_fetch_inferior_registers)
11595 (regsets_store_inferior_registers): New regsets_info parameter.
11596 Adjust to use it.
11597 (linux_register_in_regsets): New regs_info parameter. Adjust to
11598 use it.
11599 (register_addr, fetch_register, store_register): New usrregs_info
11600 parameter. Adjust to use it.
11601 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11602 parameter regs_info. Adjust to use it.
11603 (linux_fetch_registers): Get the current inferior's regs_info, and
11604 adjust to use it.
11605 (linux_store_registers): Ditto.
11606 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11607 (initialize_low): Don't initialize the target_regsets here. Call
11608 initialize_low_arch.
11609 * linux-low.h (target_regsets): Delete declaration.
11610 (struct regsets_info): New.
11611 (struct usrregs_info): New.
11612 (struct regs_info): New.
11613 (struct process_info_private) <new_inferior>: New field.
11614 (struct linux_target_ops): Delete the num_regs, regmap, and
11615 regset_bitmap fields. New field regs_info.
11616 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11617 * i387-fp.c (num_xmm_registers): Delete.
11618 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11619 calls to new interface.
11620 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11621 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11622 Infer the number of xmm registers from the regcache's target
11623 description.
11624 * i387-fp.h (num_xmm_registers): Delete.
11625 * inferiors.c (add_thread): Don't install the thread's regcache
11626 here.
11627 * proc-service.c (gregset_info): Fetch the current inferior's
11628 regs_info. Adjust to use it.
11629 * regcache.c: Include tdesc.h.
11630 (register_bytes, reg_defs, num_registers)
11631 (gdbserver_expedite_regs): Delete.
11632 (get_thread_regcache): If the thread doesn't have a regcache yet,
11633 create one, instead of aborting gdbserver.
11634 (regcache_invalidate_one): Rename to ...
11635 (regcache_invalidate_thread): ... this.
11636 (regcache_invalidate_one): New.
11637 (regcache_invalidate): Only invalidate registers of the current
11638 process.
11639 (init_register_cache): Add target_desc parameter, and use it.
11640 (new_register_cache): Ditto. Assert the target description has a
11641 non zero registers_size.
11642 (regcache_cpy): Add assertions. Adjust.
11643 (realloc_register_cache, set_register_cache): Delete.
11644 (registers_to_string, registers_from_string): Adjust.
11645 (find_register_by_name, find_regno, find_register_by_number)
11646 (register_cache_size): Add target_desc parameter, and use it.
11647 (free_register_cache_thread, free_register_cache_thread_one)
11648 (regcache_release, register_cache_size): New.
11649 (register_size): Add target_desc parameter, and use it.
11650 (register_data, supply_register, supply_register_zeroed)
11651 (supply_regblock, supply_register_by_name, collect_register)
11652 (collect_register_as_string, collect_register_by_name): Adjust.
11653 * regcache.h (struct target_desc): Forward declare.
11654 (struct regcache) <tdesc>: New field.
11655 (init_register_cache, new_register_cache): Add target_desc
11656 parameter.
11657 (regcache_invalidate_thread): Declare.
11658 (regcache_invalidate_one): Delete declaration.
11659 (regcache_release): Declare.
11660 (find_register_by_number, register_cache_size, register_size)
11661 (find_regno): Add target_desc parameter.
11662 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11663 declarations.
11664 * remote-utils.c: Include tdesc.h.
11665 (outreg, prepare_resume_reply): Adjust.
11666 * server.c: Include tdesc.h.
11667 (gdbserver_xmltarget): Delete declaration.
11668 (get_features_xml, process_serial_event): Adjust.
11669 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11670 declare.
11671 (struct process_info) <tdesc>: New field.
11672 (ipa_tdesc): Declare.
11673 * tdesc.c: New file.
11674 * tdesc.h: New file.
11675 * tracepoint.c: Include tdesc.h.
11676 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11677 (get_context_regcache): Adjust to pass ipa_tdesc down.
11678 (do_action_at_tracepoint): Adjust to get the register cache size
11679 from the context regcache's description.
11680 (traceframe_walk_blocks): Adjust to get the register cache size
11681 from the current trace frame's description.
11682 (traceframe_get_pc): Adjust to get current trace frame's
11683 description and pass it down.
11684 (gdb_collect): Adjust to get the register cache size from the
11685 IPA's description.
11686 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11687 (gdbserver_xmltarget): Delete.
11688 (initialize_low_tracepoint): Set the ipa's target description.
11689 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11690 (initialize_low_tracepoint): Set the ipa's target description.
11691 * linux-x86-low.c: Include tdesc.h.
11692 [__x86_64__] (is_64bit_tdesc): New.
11693 (ps_get_thread_area, x86_get_thread_area): Use it.
11694 (i386_cannot_store_register): Rename to ...
11695 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11696 (i386_cannot_fetch_register): Rename to ...
11697 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11698 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11699 to new interface.
11700 (target_regsets): Rename to ...
11701 (x86_regsets): ... this.
11702 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11703 interface.
11704 (x86_siginfo_fixup): Use is_64bit_tdesc.
11705 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11706 (tdesc_x32_avx_linux, tdesc_x32_linux)
11707 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11708 Declare.
11709 (x86_linux_update_xmltarget): Delete.
11710 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11711 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11712 (AMD64_LINUX_USER64_CS): New.
11713 (x86_linux_read_description): New, based on
11714 x86_linux_update_xmltarget.
11715 (same_process_callback): New.
11716 (x86_arch_setup_process_callback): New.
11717 (x86_linux_update_xmltarget): New.
11718 (x86_regsets_info): New.
11719 (amd64_linux_regs_info): New.
11720 (i386_linux_usrregs_info): New.
11721 (i386_linux_regs_info): New.
11722 (x86_linux_regs_info): New.
11723 (x86_arch_setup): Reimplement.
11724 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11725 (x86_emit_ops): Ditto.
11726 (the_low_target): Adjust. Install x86_linux_regs_info,
11727 x86_cannot_fetch_register, and x86_cannot_store_register.
11728 (initialize_low_arch): New.
11729 * linux-ia64-low.c (tdesc_ia64): Declare.
11730 (ia64_fetch_register): Adjust.
11731 (ia64_usrregs_info, regs_info): New globals.
11732 (ia64_regs_info): New function.
11733 (the_low_target): Adjust.
11734 (initialize_low_arch): New function.
11735 * linux-sparc-low.c (tdesc_sparc64): Declare.
11736 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11737 Adjust.
11738 (sparc_arch_setup): New function.
11739 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11740 (the_low_target): Adjust.
11741 (initialize_low_arch): New function.
11742 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11743 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11744 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11745 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11746 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11747 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11748 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11749 (tdesc_powerpc_isa205_vsx64l): Declare.
11750 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11751 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11752 (ppc_set_pc, ppc_get_hwcap): Adjust.
11753 (ppc_usrregs_info): Forward declare.
11754 (!__powerpc64__) ppc_regmap_adjusted: New global.
11755 (ppc_arch_setup): Adjust to the current process'es target
11756 description.
11757 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11758 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11759 (ppc_store_evrregset): Adjust.
11760 (target_regsets): Rename to ...
11761 (ppc_regsets): ... this, and make static.
11762 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11763 (ppc_regs_info): New function.
11764 (the_low_target): Adjust.
11765 (initialize_low_arch): New function.
11766 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11767 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11768 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11769 (tdesc_s390x_linux64v2): Declare.
11770 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11771 (s390_fill_gregset, s390_store_last_break): Adjust.
11772 (target_regsets): Rename to ...
11773 (s390_regsets): ... this, and make static.
11774 (s390_get_pc, s390_set_pc): Adjust.
11775 (s390_get_hwcap): New target_desc parameter, and use it.
11776 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11777 (s390_arch_setup): Adjust to set the current process'es target
11778 description. Don't adjust the regmap.
11779 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11780 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11781 (regs_info_3264): New globals.
11782 (s390_regs_info): New function.
11783 (the_low_target): Adjust.
11784 (initialize_low_arch): New function.
11785 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11786 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11787 [__mips64] (init_registers_mips_linux)
11788 (init_registers_mips_dsp_linux): Delete defines.
11789 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11790 (have_dsp): New global.
11791 (mips_read_description): New, based on mips_arch_setup.
11792 (mips_arch_setup): Reimplement.
11793 (get_usrregs_info): New function.
11794 (mips_cannot_fetch_register, mips_cannot_store_register)
11795 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11796 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11797 (target_regsets): Rename to ...
11798 (mips_regsets): ... this, and make static.
11799 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11800 (dsp_regs_info, regs_info): New globals.
11801 (mips_regs_info): New function.
11802 (the_low_target): Adjust.
11803 (initialize_low_arch): New function.
11804 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11805 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11806 Declare.
11807 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11808 (arm_read_description): New, with bits factored from
11809 arm_arch_setup.
11810 (arm_arch_setup): Reimplement.
11811 (target_regsets): Rename to ...
11812 (arm_regsets): ... this, and make static.
11813 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11814 (arm_regs_info): New function.
11815 (the_low_target): Adjust.
11816 (initialize_low_arch): New function.
11817 * linux-m68k-low.c (tdesc_m68k): Declare.
11818 (target_regsets): Rename to ...
11819 (m68k_regsets): ... this, and make static.
11820 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11821 (m68k_regs_info): New function.
11822 (m68k_arch_setup): New function.
11823 (the_low_target): Adjust.
11824 (initialize_low_arch): New function.
11825 * linux-sh-low.c (tdesc_sharch): Declare.
11826 (target_regsets): Rename to ...
11827 (sh_regsets): ... this, and make static.
11828 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11829 (sh_regs_info, sh_arch_setup): New functions.
11830 (the_low_target): Adjust.
11831 (initialize_low_arch): New function.
11832 * linux-bfin-low.c (tdesc_bfin): Declare.
11833 (bfin_arch_setup): New function.
11834 (bfin_usrregs_info, regs_info): New globals.
11835 (bfin_regs_info): New function.
11836 (the_low_target): Adjust.
11837 (initialize_low_arch): New function.
11838 * linux-cris-low.c (tdesc_cris): Declare.
11839 (cris_arch_setup): New function.
11840 (cris_usrregs_info, regs_info): New globals.
11841 (cris_regs_info): New function.
11842 (the_low_target): Adjust.
11843 (initialize_low_arch): New function.
11844 * linux-cris-low.c (tdesc_crisv32): Declare.
11845 (cris_arch_setup): New function.
11846 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11847 (cris_regs_info): New function.
11848 (the_low_target): Adjust.
11849 (initialize_low_arch): New function.
11850 * linux-m32r-low.c (tdesc_m32r): Declare.
11851 (m32r_arch_setup): New function.
11852 (m32r_usrregs_info, regs_info): New globals.
11853 (m32r_regs_info): Adjust.
11854 (initialize_low_arch): New function.
11855 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11856 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11857 (tic6x_usrregs_info): Forward declare.
11858 (tic6x_read_description): New function, based on ...
11859 (tic6x_arch_setup): ... this. Reimplement.
11860 (target_regsets): Rename to ...
11861 (tic6x_regsets): ... this, and make static.
11862 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11863 (tic6x_regs_info): New function.
11864 (the_low_target): Adjust.
11865 (initialize_low_arch): New function.
11866 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11867 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11868 (target_regsets): Rename to ...
11869 (xtensa_regsets): ... this, and make static.
11870 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11871 globals.
11872 (xtensa_arch_setup, xtensa_regs_info): New functions.
11873 (the_low_target): Adjust.
11874 (initialize_low_arch): New function.
11875 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11876 (nios2_arch_setup): Set the current process'es tdesc.
11877 (target_regsets): Rename to ...
11878 (nios2_regsets): ... this.
11879 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11880 (nios2_regs_info): New function.
11881 (the_low_target): Adjust.
11882 (initialize_low_arch): New function.
11883 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11884 (aarch64_arch_setup): Set the current process'es tdesc.
11885 (target_regsets): Rename to ...
11886 (aarch64_regsets): ... this.
11887 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11888 (aarch64_regs_info): New function.
11889 (the_low_target): Adjust.
11890 (initialize_low_arch): New function.
11891 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11892 globals.
11893 (target_regsets): Rename to ...
11894 (tile_regsets): ... this.
11895 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11896 (tile_regs_info): New function.
11897 (tile_arch_setup): Set the current process'es tdesc.
11898 (the_low_target): Adjust.
11899 (initialize_low_arch): New function.
11900 * spu-low.c (tdesc_spu): Declare.
11901 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11902 * win32-arm-low.c (tdesc_arm): Declare.
11903 (arm_arch_setup): New function.
11904 (the_low_target): Install arm_arch_setup instead of
11905 init_registers_arm.
11906 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11907 (init_windows_x86): Rename to ...
11908 (i386_arch_setup): ... this. Set `win32_tdesc'.
11909 (the_low_target): Adjust.
11910 * win32-low.c (win32_tdesc): New global.
11911 (child_add_thread): Don't create the thread cache here.
11912 (do_initial_child_stuff): Set the new process'es tdesc.
11913 * win32-low.h (struct target_desc): Forward declare.
11914 (win32_tdesc): Declare.
11915 * lynx-i386-low.c (tdesc_i386): Declare global.
11916 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11917 * lynx-low.c (lynx_tdesc): New global.
11918 (lynx_add_process): Set the new process'es tdesc.
11919 * lynx-low.h (struct target_desc): Forward declare.
11920 (lynx_tdesc): Declare global.
11921 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11922 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11923 * nto-low.c (nto_tdesc): New global.
11924 (do_attach): Set the new process'es tdesc.
11925 * nto-low.h (struct target_desc): Forward declare.
11926 (nto_tdesc): Declare.
11927 * nto-x86-low.c (tdesc_i386): Declare.
11928 (nto_x86_arch_setup): Set `nto_tdesc'.
11929
11930 2013-06-04 Gary Benson <gbenson@redhat.com>
11931
11932 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11933 to qSupported response when appropriate.
11934 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11935 with nonzero-length annex.
11936 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11937 arguments supplied in annex.
11938
11939 2013-05-31 Doug Evans <dje@google.com>
11940
11941 PR server/15594
11942 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11943 64 bits in 64-cross-32 environment.
11944
11945 2013-05-28 Pedro Alves <palves@redhat.com>
11946
11947 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11948 (aarch64-without-fpu.c): Delete rule.
11949 * configure.srv (aarch64*-*-linux*): Remove references to
11950 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11951 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11952 declaration.
11953
11954 2013-05-24 Pedro Alves <palves@redhat.com>
11955
11956 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11957 instead of strchr/decode_address. Error if the range isn't split
11958 with a ','. Don't assume there's be a ':' in the action.
11959
11960 2013-05-23 Yao Qi <yao@codesourcery.com>
11961 Pedro Alves <palves@redhat.com>
11962
11963 * linux-low.c (lwp_in_step_range): New function.
11964 (linux_wait_1): If the thread was range stepping and stopped
11965 outside the stepping range, report the stop to GDB. Otherwise,
11966 continue stepping. Add range stepping debug output.
11967 (linux_set_resume_request): Copy the step range from the resume
11968 request to the lwp.
11969 (linux_supports_range_stepping): New.
11970 (linux_target_ops) <supports_range_stepping>: Set to
11971 linux_supports_range_stepping.
11972 * linux-low.h (struct linux_target_ops)
11973 <supports_range_stepping>: New field.
11974 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11975 * linux-x86-low.c (x86_supports_range_stepping): New.
11976 (the_low_target) <supports_range_stepping>: Set to
11977 x86_supports_range_stepping.
11978 * server.c (handle_v_cont): Handle 'r' action.
11979 (handle_v_requests): Append ";r" if the target supports range
11980 stepping.
11981 * target.h (struct thread_resume) <step_range_start,
11982 step_range_end>: New fields.
11983 (struct target_ops) <supports_range_stepping>:
11984 New field.
11985 (target_supports_range_stepping): New macro.
11986
11987 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11988
11989 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11990 confusion in comment.
11991
11992 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11993
11994 * lynx-low.c (struct process_info_private): New type.
11995 (lynx_add_process): New function.
11996 (lynx_create_inferior, lynx_attach): Replace calls to
11997 add_process by calls to lynx_add_process.
11998 (lynx_resume): If PTID is null, then try using
11999 current_process()->private->last_wait_event_ptid.
12000 Add comments.
12001 (lynx_clear_inferiors): Delete. The contents of that function
12002 has been inlined in lynx_mourn;
12003 (lynx_wait_1): Save the ptid in the process's private data.
12004 (lynx_mourn): Free the process' private data. Replace call
12005 to lynx_clear_inferiors by call to clear_inferiors.
12006
12007 2013-05-17 Yao Qi <yao@codesourcery.com>
12008
12009 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12010 the right place.
12011
12012 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
12013
12014 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12015 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12016 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12017 PT_TEXT_END_ADDR guards. Update comments.
12018 (linux_target_op) <read_offsets>: Conditionally define to
12019 linux_read_offsets if the target is UCLIBC and if it defines
12020 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12021
12022 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12023 Andrew Jenner <andrew@codesourcery.com>
12024
12025 * Makefile.in (SFILES): Add linux-nios2-low.c.
12026 (clean): Add action to delete nios2-linux.c.
12027 (nios2-linux.c): New rule.
12028 * configure.srv: Add nios2*-*-linux*.
12029 * linux-nios2-low.c: New.
12030
12031 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12032
12033 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12034
12035 2013-04-25 Hui Zhu <hui@codesourcery.com>
12036
12037 PR gdb/15186
12038 * ax.c (ax_printf): Add fflush.
12039
12040 2013-04-22 Tom Tromey <tromey@redhat.com>
12041
12042 * Makefile.in (SFILES): Add filestuff.c.
12043 (OBS): Add filestuff.o.
12044 (filestuff.o): New target.
12045 * config.in, configure: Rebuild.
12046 * configure.ac: Check for fdwalk, pipe2.
12047
12048 2013-04-17 Pedro Alves <palves@redhat.com>
12049
12050 * configure.ac (USE_THREAD_DB): Delete variable.
12051 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12052 Don't AC_SUBST USE_THREAD_DB.
12053 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12054 * config.in, configure: Regenerate.
12055
12056 2013-04-16 Pedro Alves <palves@redhat.com>
12057
12058 * linux-low.h (struct lwp_info) <thread_known>: Move under
12059 the USE_THREAD_DB #ifdef.
12060
12061 2013-04-16 Pedro Alves <palves@redhat.com>
12062
12063 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12064 (linux-low.o): Delete rule.
12065 * linux-low.h: Always include "gdb_thread_db.h" instead of
12066 conditionally including thread_db.h.
12067 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12068 HAVE_THREAD_DB_H.
12069
12070 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12071
12072 * Makefile.in (install-only): Fix make install regression.
12073
12074 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12075
12076 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12077 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12078 installation.
12079 * gdbserver.1: Remove.
12080
12081 2013-03-22 Pedro Alves <palves@redhat.com>
12082
12083 * linux-low.c (handle_extended_wait): Don't call
12084 linux_enable_event_reporting.
12085
12086 2013-03-15 Tony Theodore <tonyt@logyst.com>
12087
12088 PR build/9098:
12089 * Makefile.in (SHELL): Use @SHELL@.
12090
12091 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12092
12093 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12094 compiler warning.
12095
12096 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12097
12098 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12099 Remove extraneous NULL element.
12100
12101 2013-03-13 Yao Qi <yao@codesourcery.com>
12102
12103 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12104 'V' block in trace frame.
12105
12106 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12107
12108 * target.h (struct target_ops): Add btrace ops.
12109 (target_supports_btrace): New macro.
12110 (target_enable_btrace): New macro.
12111 (target_disable_btrace): New macro.
12112 (target_read_btrace): New macro.
12113 * gdbthread.h (struct thread_info): Add btrace field.
12114 * server.c: Include btrace-common.h.
12115 (handle_btrace_general_set): New function.
12116 (handle_btrace_enable): New function.
12117 (handle_btrace_disable): New function.
12118 (handle_general_set): Call handle_btrace_general_set.
12119 (handle_qxfer_btrace): New function.
12120 (struct qxfer qxfer_packets[]): Add btrace entry.
12121 * inferiors.c (remove_thread): Disable btrace.
12122 * linux-low: Include linux-btrace.h.
12123 (linux_low_enable_btrace): New function.
12124 (linux_low_read_btrace): New function.
12125 (linux_target_ops): Add btrace ops.
12126 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12127 Add srv_linux_btrace=yes.
12128 (x86_64-*-linux*): Add linux-btrace.o.
12129 Add srv_linux_btrace=yes.
12130 * configure.ac: Define HAVE_LINUX_BTRACE.
12131 * config.in: Regenerated.
12132 * configure: Regenerated.
12133
12134 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12135
12136 * server.c (handle_qxfer): Preserve error message if -3 is
12137 returned.
12138 (qxfer): Document the -3 return value.
12139
12140 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12141
12142 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12143 (linux_btrace_h): New variable.
12144 (linux-btrace.o): New rule.
12145
12146 2013-03-08 Stan Shebs <stan@codesourcery.com>
12147 Hafiz Abid Qadeer <abidh@codesourcery.com>
12148
12149 * tracepoint.c (trace_buffer_size): New global.
12150 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12151 (init_trace_buffer): Change to one-argument function. Allocate
12152 trace buffer memory.
12153 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12154 handle QTBuffer:size packet.
12155 (cmd_bigqtbuffer_size): New function.
12156 (initialize_tracepoint): Call init_trace_buffer with
12157 DEFAULT_TRACE_BUFFER_SIZE.
12158 * server.c (handle_query): Add QTBuffer:size in the
12159 supported packets.
12160
12161 2013-03-07 Yao Qi <yao@codesourcery.com>
12162
12163 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12164 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12165 of -1.
12166 (cmd_qtsp): Adjust condition. Do post increment.
12167 Set cur_action and cur_step_action back to 0.
12168
12169 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12170
12171 PR server/15236
12172 * linux-low.c (linux_write_memory): Return early success if LEN is
12173 zero.
12174
12175 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12176
12177 * configure.srv: Add x86_64-*-cygwin* as target.
12178
12179 2013-02-28 Tom Tromey <tromey@redhat.com>
12180
12181 * configure.ac: Invoke AC_SYS_LARGEFILE.
12182 * configure, config.in: Rebuild.
12183
12184 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12185
12186 * win32-low.c: Throughout, fix format strings and casts of
12187 printf-like functions to avoid type related warnings on all
12188 platforms.
12189 (get_child_debug_event): Print dwDebugEventCode as hex since
12190 that's how it's usually documented.
12191
12192 2013-02-28 Yao Qi <yao@codesourcery.com>
12193
12194 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12195 pulongest.
12196
12197 2013-02-27 Jiong Wang <jiwang@tilera.com>
12198
12199 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12200 (reg-tilegx32.c): New rule.
12201 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12202 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12203 different register info initializer according to elf class.
12204 (init_registers_tilgx32): New function. The tilegx32 register info
12205 initializer.
12206 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12207 (tile_store_gregset): Likewise.
12208
12209 2013-02-27 Yao Qi <yao@codesourcery.com>
12210
12211 * server.c (process_point_options): Print debug message when
12212 debug_threads is true.
12213
12214 2013-02-26 Yao Qi <yao@codesourcery.com>
12215
12216 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12217
12218 2013-02-19 Pedro Alves <palves@redhat.com>
12219 Kai Tietz <ktietz@redhat.com>
12220
12221 PR gdb/15161
12222
12223 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12224 instead of strtoul to extract address from packet.
12225 (process_serial_event) <'z'>: Likewise.
12226
12227 2013-02-18 Yao Qi <yao@codesourcery.com>
12228
12229 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12230
12231 2013-02-14 Pedro Alves <palves@redhat.com>
12232
12233 Plug memory leak.
12234
12235 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12236 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12237
12238 2013-02-14 Pedro Alves <palves@redhat.com>
12239
12240 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12241
12242 2013-02-14 Pedro Alves <palves@redhat.com>
12243
12244 * tracepoint.c (save_string): Delete.
12245 (add_tracepoint_action): Use savestring instead of save_string.
12246
12247 2013-02-12 Pedro Alves <palves@redhat.com>
12248
12249 * linux-xtensa-low.c: Ditto.
12250 * xtensa-xtregs.c: Ditto.
12251
12252 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12253
12254 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12255 thread_db.
12256
12257 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12258
12259 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12260 aarch64_num_wp_regs and aarch64_num_bp_regs to
12261 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12262
12263 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12264
12265 * linux-aarch64-low.c (ps_get_thread_area): Replace
12266 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12267
12268 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12269 Marcus Shawcroft <marcus.shawcroft@arm.com>
12270 Nigel Stephens <nigel.stephens@arm.com>
12271 Yufeng Zhang <yufeng.zhang@arm.com>
12272
12273 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12274 (aarch64.c, aarch64-without-fpu.c): New targets.
12275 * configure.srv (aarch64*-*-linux*): New.
12276 * linux-aarch64-low.c: New file.
12277
12278 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12279
12280 * linux-low.c (handle_extended_wait, linux_create_inferior)
12281 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12282 (dequeue_one_deferred_signal, linux_resume_one_thread)
12283 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12284 (linux_tracefork_grandchild, linux_test_for_tracefork)
12285 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12286 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12287 where the argument is 0.
12288
12289 2013-01-25 Yao Qi <yao@codesourcery.com>
12290
12291 * event-loop.c: Include "queue.h".
12292 (gdb_event_p): New typedef.
12293 (struct gdb_event) <next_event>: Remove.
12294 (event_queue): Change to QUEUE(gdb_event_p).
12295 (async_queue_event): Remove.
12296 (gdb_event_xfree): New.
12297 (initialize_event_loop): New.
12298 (process_event): Use API from QUEUE.
12299 (wait_for_event): Likewise.
12300 * server.c (main): Call initialize_event_loop.
12301 * server.h (initialize_event_loop): Declare.
12302
12303 2013-01-18 Yao Qi <yao@codesourcery.com>
12304
12305 * ax.h (struct eval_agent_expr_context): New.
12306 (gdb_eval_agent_expr): Update declaration.
12307 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12308 TFRAME. Add new argument CTX.
12309 * server.h (struct eval_agent_expr_context): Declare.
12310 (agent_mem_read, agent_tsv_read): Update declaration.
12311 (agent_mem_read_string): Likewise.
12312 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12313 (add_traceframe_block): Add new argument TPOINT.
12314 Increase TPOINT->traceframe_usage.
12315 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12316 eval_tracepoint_agent_expr.
12317 (condition_true_at_tracepoint): Likewise.
12318 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12319 (agent_mem_read_string, agent_tsv_read): Likewise.
12320
12321 2013-01-16 Yao Qi <yao@codesourcery.com>
12322
12323 * linux-low.c (linux_resume_one_lwp): Don't check
12324 'lwp->bp_reinsert != 0'.
12325
12326 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12327 Pedro Alves <palves@redhat.com>
12328
12329 * lynx-low.c (ptrace_request_to_str): Define a temporary
12330 macro and use it to simplify this function's implementation.
12331
12332 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12333
12334 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12335 sets errno.
12336
12337 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12338
12339 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12340
12341 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12342
12343 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12344
12345 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12346
12347 * lynx-low.c (lynx_resume): Use the resume_info parameter
12348 to determine the ptid for the lynx_ptrace call, unless
12349 it is equal to minus_one_ptid, in which case we use the
12350 ptid of the current_inferior.
12351 (lynx_wait_1): After having received a thread create/exit
12352 event, resume the inferior's execution using the signaling
12353 thread's ptid, rather than the old ptid.
12354
12355 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12356
12357 * lynx-low.c (lynx_resume): Delete variable ret.
12358
12359 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12360
12361 * gdbreplay.c (gdbreplay_version): Update copyright year.
12362 * server.c (gdbserver_version): Likewise.
12363
12364 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12365
12366 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12367 new thread.
12368
12369 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12370
12371 * lynx-low.c (ptrace_request_to_str): Add handling for
12372 PTRACE_GETTRACESIG.
12373
12374 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12375
12376 * lynx-low.c (lynx_attach): Delete variable new_process.
12377
12378 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12379
12380 * lynx-low.c (lynx_create_inferior): Delete variable
12381 new_process.
12382
12383 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12384
12385 * lynx-low.c (ptrace_request_to_str): Do not handle
12386 PTRACE_GETTHREADLIST if this macro does not exist.
12387
12388 2012-12-15 Yao Qi <yao@codesourcery.com>
12389
12390 * Makefile.in (OBS): Add notif.o.
12391 * notif.c, notif.h: New.
12392 * server.c: Include "notif.h".
12393 (struct vstop_notif) <next>: Remove.
12394 <base>: New field.
12395 (queue_stop_reply): Update.
12396 (push_event, send_next_stop_reply): Remove.
12397 (discard_queued_stop_replies): Update.
12398 (notif_stop): New variable.
12399 (handle_v_stopped): Remove.
12400 (handle_v_requests): Don't call handle_v_stopped. Call
12401 handle_ack_notif instead.
12402 (queue_stop_reply_callback): Call notif_event_enque instead
12403 of queue_stop_reply.
12404 (handle_status): Don't call send_next_stop_reply, call
12405 notif_write_event instead.
12406 (kill_inferior_callback): Likewise.
12407 (detach_or_kill_inferior_callback): Likewise.
12408 (main): Call initialize_notif.
12409 (process_serial_event): Call QUEUE_is_empty.
12410 (handle_target_event): Call notif_push instead of push event.
12411 * server.h (push_event): Remove declaration.
12412
12413 2012-12-10 Tom Tromey <tromey@redhat.com>
12414
12415 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12416 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12417 macros.
12418 (.c.o): Rewrite.
12419 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12420 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12421 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12422 (amd64-linux-ipa.o, ax.o): Rewrite.
12423 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12424 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12425 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12426 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12427 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12428 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12429 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12430 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12431 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12432 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12433 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12434 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12435 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12436 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12437 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12438 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12439 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12440 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12441 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12442 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12443 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12444 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12445 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12446 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12447 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12448 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12449 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12450 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12451 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12452 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12453 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12454 (reg-tilegx.o): Remove.
12455 (all_object_files): New macro.
12456 Include .deps files.
12457 * aclocal.m4, configure: Rebuild.
12458 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12459 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12460 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12461
12462 2012-12-05 Tom Tromey <tromey@redhat.com>
12463
12464 PR gdb/14917:
12465 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12466
12467 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
12468
12469 * configure.ac: Check for linux/perf_event.h.
12470 * config.in: Regenerated.
12471 * configure: Regenerated.
12472
12473 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12474
12475 * hostio.c (handle_readlink): Decrease buffer size
12476 parameter passed to readlink by one byte.
12477
12478 2012-11-26 Yao Qi <yao@codesourcery.com>
12479
12480 * configure.ac (build_warnings): Append '-Wempty-body'.
12481 * configure: Regenerated.
12482 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12483 body.
12484
12485 2012-11-15 Pierre Muller <muller@sourceware.org>
12486
12487 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12488 * config.in: Regenerate.
12489 * configure: Regenerate.
12490 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12491 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12492 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12493 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12494 header.
12495 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12496 instead of <sys/wait.h> header.
12497 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12498
12499 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
12500
12501 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12502 (various make rules): Remove -DGDBSERVER
12503
12504 2012-11-09 Yao Qi <yao@codesourcery.com>
12505
12506 * spu-low.c (current_ptid): Move it to ..
12507 * gdbthread.h: ... here. New.
12508 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12509 * server.c (myresume, process_serial_event): Likewise.
12510 * thread-db.c (thread_db_find_new_threads): Likewise.
12511 * tracepoint.c (run_inferior_command): Likewise.
12512
12513 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
12514
12515 * server.c (handle_search_memory_1): Include access length in
12516 warning message.
12517
12518 2012-09-05 Michael Brandt <michael.brandt@axis.com>
12519
12520 * linux-crisv32-low.c: Fix compile errors.
12521
12522 2012-09-04 Yao Qi <yao@codesourcery.com>
12523
12524 * tracepoint.c (cmd_qtsv): Adjust debug message.
12525 Don't check CUR_TPOINT.
12526
12527 2012-08-28 Yao Qi <yao@codesourcery.com>
12528
12529 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12530 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12531 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12532 Remove declarations of xmalloc, xreallloc, xstrdup and
12533 freeargv.
12534 * Makefile.in (libiberty_h): New.
12535 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12536 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12537
12538 2012-08-23 Yao Qi <yao@codesourcery.com>
12539
12540 * server.h: Remove declaration of 'xsnprintf'.
12541
12542 2012-08-22 Keith Seitz <keiths@redhat.com>
12543
12544 * server.h: Include build-gnulib-gbserver/config.h.
12545 * gdbreplay.c: Likewise.
12546
12547 2012-08-08 Doug Evans <dje@google.com>
12548
12549 * Makefile.in (SFILES): Add gdb_vecs.c.
12550 (OBS): Add gdb_vecs.o.
12551 (gdb_vecs_h, host_defs_h): New variables.
12552 (thread-db.o): Add $(gdb_vecs_h) dependency.
12553 (gdb_vecs.o): New rule.
12554 * thread-db.c: #include "gdb_vecs.h".
12555 (thread_db_load_search): Use a vector to iterate over path elements.
12556 Handle text appearing after "$pdir".
12557
12558 * configure.ac: Add check for strstr.
12559 * config.in: Regenerate.
12560 * configure: Regenerate.
12561
12562 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12563
12564 * hostio.c (handle_pread): If pread fails, fall back to attempting
12565 lseek/read.
12566 (handle_pwrite): Likewise for pwrite.
12567
12568 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12569
12570 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12571 between unsupported TYPE and unimplementable ADDR/LEN combination.
12572 (arm_insert_point): Act on new return value.
12573
12574 2012-07-31 Pedro Alves <palves@redhat.com>
12575
12576 * server.c (process_point_options): Only skip tokens if we find
12577 one that is unrecognized. Don't treat 'X' specially while
12578 skipping unrecognized tokens.
12579
12580 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12581
12582 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12583 to 4-byte-align HW breakpoint addresses for Thumb.
12584
12585 2012-07-27 Yao Qi <yao@codesourcery.com>
12586
12587 PR remote/14161.
12588
12589 * server.h: Declare gdb_agent_about_to_close.
12590 * target.c (kill_inferior): Include "agent.h".
12591 New. Send command 'kill'.
12592 * target.h (kill_inferior): Removed macro.
12593 * tracepoint.c (gdb_agent_about_to_close): New.
12594 (gdb_agent_helper_thread): Handle command 'close'.
12595 Wait endlessly until the inferior stops.
12596 Install gdb_agent_remove_socket to atexit hook.
12597 (agent_socket_name): New static variable.
12598 (gdb_agent_socket_init): Replace local variable 'name' with
12599 'agent_socket_name'.
12600 (gdb_agent_remove_socket): New.
12601
12602 2012-07-27 Yao Qi <yao@codesourcery.com>
12603
12604 * server.c (process_point_options): Stop at 'X' when parsing.
12605
12606 2012-07-19 Michael Eager <eager@eagercon.com>
12607
12608 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
12609 to hw_execute.
12610 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12611 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12612 hardware breakpoint.
12613
12614 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12615
12616 * gdbserver/linux-low.c (initialize_low): Call
12617 linux_ptrace_init_warnings.
12618
12619 2012-07-02 Doug Evans <dje@google.com>
12620
12621 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12622 pointer to int.
12623
12624 2012-07-02 Stan Shebs <stan@codesourcery.com>
12625
12626 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12627 (ax.o): Add it to build rule.
12628 (ax-ipa.o): Ditto.
12629 (OBS): Add format.o.
12630 (IPA_OBS): Add format.o.
12631 * server.c (handle_query): Claim support for breakpoint commands.
12632 (process_point_options): Add command case.
12633 (process_serial_event): Leave running if there are printfs in
12634 effect.
12635 * mem-break.h (any_persistent_commands): Declare.
12636 (add_breakpoint_commands): Declare.
12637 (gdb_no_commands_at_breakpoint): Declare.
12638 (run_breakpoint_commands): Declare.
12639 * mem-break.c (struct point_command_list): New struct.
12640 (struct breakpoint): New field command_list.
12641 (any_persistent_commands): New function.
12642 (add_commands_to_breakpoint): New function.
12643 (add_breakpoint_commands): New function.
12644 (gdb_no_commands_at_breakpoint): New function.
12645 (run_breakpoint_commands): New function.
12646 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12647 locally.
12648 * ax.c: Include format.h.
12649 (ax_printf): New function.
12650 (gdb_eval_agent_expr): Add printf opcode.
12651
12652 2012-06-13 Yao Qi <yao@codesourcery.com>
12653
12654 * server.c (start_inferior): Remove duplicated writes to fields
12655 'last_resume_kind' and 'last_status' of 'current_inferior'.
12656
12657 2012-06-12 Yao Qi <yao@codesourcery.com>
12658 Pedro Alves <palves@redhat.com>
12659
12660 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12661 comment.
12662 * server.c (handle_v_cont): Extend comment.
12663
12664 2012-06-11 Yao Qi <yao@codesourcery.com>
12665
12666 * linux-low.c (linux_attach): Add 'static'.
12667
12668 2012-06-06 Yao Qi <yao@codesourcery.com>
12669
12670 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12671
12672 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12673
12674 Fix gcc -flto compilation warning.
12675 * server.c (main): Make variable multi_mode and attach volatile.
12676
12677 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12678
12679 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12680 if the platform doesn't know about it.
12681
12682 2012-05-30 Jeff Kenton <jkenton@tilera.com>
12683
12684 * Makefile.in (SFILES): Add linux-tile-low.c.
12685 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12686 * configure.srv: Handle tilegx-*-linux*.
12687 * linux-tile-low.c: New file.
12688
12689 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12690
12691 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12692
12693 2012-05-24 Pedro Alves <palves@redhat.com>
12694
12695 PR gdb/7205
12696
12697 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
12698
12699 2012-05-24 Pedro Alves <palves@redhat.com>
12700
12701 PR gdb/7205
12702
12703 Replace target_signal with gdb_signal throughout.
12704
12705 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12706
12707 * linux-low.c (linux_store_registers): Avoid the copying sequence
12708 when no data has been retrieved by ptrace.
12709
12710 2012-05-22 Will Deacon <will.deacon@arm.com>
12711
12712 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12713 Include asm/ptrace.h.
12714 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12715 already defined.
12716
12717 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12718
12719 * linux-low.c (linux_store_registers): Don't re-retrieve data
12720 with ptrace that has already been obtained from /proc. Always
12721 copy any data retrieved with ptrace to the buffer supplied.
12722
12723 2012-05-11 Yao Qi <yao@codesourcery.com>
12724 Pedro Alves <palves@redhat.com>
12725
12726 * linux-low.c (enum stopping_threads_kind): New.
12727 (stopping_threads): Change type to `enum stopping_threads_kind'.
12728 (handle_extended_wait): If stopping and suspending threads, leave
12729 the new_lwp suspended too.
12730 (linux_wait_for_event): Adjust.
12731 (stop_all_lwps): Set `stopping_threads' to
12732 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12733 whether we're suspending threads or just stopping them. Assert no
12734 recursion happens.
12735
12736 2012-04-29 Yao Qi <yao@codesourcery.com>
12737
12738 * server.h: Move some code to ...
12739 * gdbthread.h: ... here. New.
12740 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12741 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12742 (nto-low.o, win32-low.o): Likewise.
12743 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12744 * regcache.c, remote-utils.c, server.c: Likewise.
12745 * target.c, tracepoint.c, win32-low.c: Likewise.
12746
12747 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12748
12749 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12750 (PTRACE_ARG4_TYPE): Likewise.
12751 (PTRACE_XFER_TYPE): Likewise.
12752 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12753 ptrace to PTRACE_ARG3_TYPE.
12754 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12755 (PTRACE_ARG4_TYPE): Likewise.
12756 (PTRACE_XFER_TYPE): Likewise.
12757 (linux_detach_one_lwp): Cast fourth argument of
12758 ptrace to long then PTRACE_ARG4_TYPE.
12759 (regsets_fetch_inferior_registers): Cast third argument of
12760 ptrace to long then PTRACE_ARG3_TYPE.
12761 (regsets_store_inferior_registers): Likewise.
12762
12763 2012-04-20 Pedro Alves <palves@redhat.com>
12764
12765 * configure: Regenerate.
12766
12767 2012-04-19 Pedro Alves <palves@redhat.com>
12768
12769 * Makefile.in (GNULIB_BUILDDIR): New.
12770 (LIBGNU, INCGNU, GNULIB_H): Adjust.
12771 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12772 (all, install-only, uninstall, clean-info, all-lib, clean): No
12773 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12774 (maintainer-clean realclean distclean): Use subdir_do.
12775 (subdir_do): New.
12776 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
12777 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
12778 * acinclude.m4: Include acx_configure_dir.m4.
12779 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12780 calls. Call AC_PROG_RANLIB. Configure gnulib using
12781 ACX_CONFIGURE_DIR.
12782 (GNULIB): New.
12783 (GNULIB_STDINT_H): Adjust.
12784 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12785 * gdbreplay.c: Include build-gnulib/config.h.
12786 * server.h: Likewise.
12787 * aclocal.m4: Regenerate.
12788 * config.in: Regenerate.
12789 * configure: Regenerate.
12790
12791 2012-04-19 Pedro Alves <palves@redhat.com>
12792
12793 * Makefile.in (LIBGNU, INCGNU): Adjust.
12794 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12795 (all, install-only, uninstall, clean-info, all-lib, clean)
12796 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12797 * configure.ac: Adjust AC_OUTPUT output.
12798 * aclocal.m4: Regenerate.
12799 * configure: Regenerate.
12800
12801 2012-04-19 Pedro Alves <palves@redhat.com>
12802
12803 * Makefile.in (generated_files): New.
12804 (server_h): Remove the explicit dependency on config.h, and depend
12805 on $generated_files.
12806
12807 2012-04-19 Pedro Alves <palves@redhat.com>
12808
12809 * Makefile.in (INCGNU): Add -Ignulib.
12810
12811 2012-04-19 Pedro Alves <palves@redhat.com>
12812
12813 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12814 (INCGNU): ... this, and spell out -I here.
12815 (GNULIB_LIB): Rename to ...
12816 (LIBGNU): ... this.
12817 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12818
12819 2012-04-19 Pedro Alves <palves@redhat.com>
12820
12821 * config.in: Regenerate.
12822
12823 2012-04-19 Pedro Alves <palves@redhat.com>
12824
12825 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12826 * server.h (memmem): Remove declaration.
12827 * config.in: Regenerate.
12828 * configure: Regenerate.
12829
12830 2012-04-19 Yao Qi <yao@codesourcery.com>
12831
12832 * Makefile.in (SFILES): Add common/vec.c.
12833 (OBS): Add vec.o.
12834 (vec.o): New rule.
12835
12836 2012-04-19 Yao Qi <yao@codesourcery.com>
12837
12838 * remote-utils.c (prepare_resume_reply): Replace with macro
12839 target_core_of_thread.
12840 * server.c (handle_qxfer_threads_proper): Likewise.
12841 * target.h (traget_core_of_thread): New macro.
12842
12843 2012-04-18 Pedro Alves <palves@redhat.com>
12844
12845 * aclocal.m4: Regenerate.
12846 * configure: Regenerate.
12847
12848 2012-04-16 Yao Qi <yao@codesourcery.com>
12849
12850 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12851 duplicated on address.
12852
12853 2012-04-16 Yao Qi <yao@codesourcery.com>
12854
12855 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12856 (struct tracepoint_action_ops) <send>: New field.
12857 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12858 (agent_expr_send, x_tracepoint_action_send): New.
12859 (l_tracepoint_action_send): New.
12860 (cmd_qtdp): Download and install tracepoint
12861 according to `use_agent'.
12862 (run_inferior_command): Add one more parameter `len'.
12863 Update callers.
12864 (tracepoint_send_agent): New.
12865 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12866
12867 2012-04-16 Yao Qi <yao@codesourcery.com>
12868
12869 * tracepoint.c (download_tracepoints): Moved to ...
12870 (cmd_qtstart): ... here.
12871
12872 2012-04-14 Yao Qi <yao@codesourcery.com>
12873
12874 * tracepoint.c: Include inttypes.h.
12875 (struct collect_memory_action): Use sized types.
12876 (struct tracepoint): Likewise.
12877 (cmd_qtdp, stop_tracing): Update print specifiers.
12878 (cmd_qtp, response_tracepoint): Likewise.
12879 (collect_data_at_tracepoint): Likewise.
12880 (collect_data_at_step): Likewise.
12881
12882 2012-04-14 Yao Qi <yao@codesourcery.com>
12883
12884 Import gnulib module inttypes.
12885 * aclocal.m4, config.in, configure: Regenerated.
12886
12887 2012-04-14 Yao Qi <yao@codesourcery.com>
12888
12889 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12890 Makefile and config.status at last.
12891
12892 2012-04-13 Yao Qi <yao@codesourcery.com>
12893
12894 * tracepoint.c: Include stdint.h unconditionally.
12895
12896 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12897
12898 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12899 on BFD_HAVE_SYS_PROCFS_TYPE.
12900 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12901 * configure: Regenerate.
12902 * config.in: Likewise.
12903
12904 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12905
12906 * Makefile.in (clean): Also remove x32.c x32-linux.c
12907 x32-avx.c x32-avx-linux.c.
12908 (x32.o): New target.
12909 (x32.c): Likewise.
12910 (x32-linux.o): Likewise.
12911 (x32-linux.c): Likewise.
12912 (x32-avx.o): Likewise.
12913 (x32-avx.c): Likewise.
12914 (x32-avx-linux.o): Likewise.
12915 (x32-avx-linux.c): Likewise.
12916
12917 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12918 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12919 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12920 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12921 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12922 i386/x32-avx-linux.xml.
12923
12924 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12925 (init_registers_x32_avx_linux): Likwise.
12926 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12927 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12928
12929 2012-04-13 Pedro Alves <palves@redhat.com>
12930
12931 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12932 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12933 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12934 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12935 the sub-make.
12936
12937 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12938
12939 * linux-x86-low.c (compat_x32_clock_t): New.
12940 (compat_x32_siginfo_t): Likewise.
12941 (compat_x32_siginfo_from_siginfo): Likewise.
12942 (siginfo_from_compat_x32_siginfo): Likewise.
12943 (linux_is_elf64): Likewise.
12944 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12945 and siginfo_from_compat_x32_siginfo for x32.
12946 (x86_arch_setup): Set linux_is_elf64.
12947
12948 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12949
12950 PR gdb/13969
12951 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12952 e_machine field.
12953 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12954 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12955 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12956 compatible with process.
12957
12958 2012-04-12 Yao Qi <yao@codesourcery.com>
12959
12960 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12961 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12962 (install-only, install-info, clean): Handle sub dir gnulib.
12963 (all-lib, am--refresh): New targets.
12964 (memmem.o): Remove target.
12965 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12966 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12967 (AC_REPLACE_FUNCS): Remove memmem.
12968 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12969 (AC_OUTPUT): Generate Makefile in gnulib/.
12970 * aclocal.m4, config.in, configure: Regenerated.
12971
12972 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12973
12974 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12975
12976 2012-04-05 Pedro Alves <palves@redhat.com>
12977
12978 -Werror=strict-aliasing
12979
12980 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12981 pointer.
12982
12983 2012-04-04 Pedro Alves <palves@redhat.com>
12984
12985 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12986 (sparc_store_gregset_from_stack, sparc_store_gregset)
12987 (sparc_breakpoint_at): Fix formatting.
12988
12989 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12990
12991 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12992 are available.
12993 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12994 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12995 * config.in: Regenerate.
12996 * configure: Likewise.
12997
12998 2012-03-29 Pedro Alves <palves@redhat.com>
12999
13000 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13001 Correct ptrace arguments.
13002
13003 2012-03-28 Pedro Alves <palves@redhat.com>
13004
13005 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13006 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13007 (IA64_FR1_REGNUM): New defines.
13008 (ia64_fetch_register): New.
13009 (the_low_target): Install it.
13010 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13011 field.
13012 * linux-low.c (linux_fetch_registers): Try the
13013 the_low_target.fetch_register hook first.
13014
13015 * linux-arm-low.c (the_low_target): Adjust.
13016 * linux-bfin-low.c (the_low_target): Adjust.
13017 * linux-cris-low.c (the_low_target): Adjust.
13018 * linux-crisv32-low.c (the_low_target): Adjust.
13019 * linux-m32r-low.c (the_low_target): Adjust.
13020 * linux-m68k-low.c (the_low_target): Adjust.
13021 * linux-mips-low.c (the_low_target): Adjust.
13022 * linux-ppc-low.c (the_low_target): Adjust.
13023 * linux-s390-low.c (the_low_target): Adjust.
13024 * linux-sh-low.c (the_low_target): Adjust.
13025 * linux-sparc-low.c (the_low_target): Adjust.
13026 * linux-tic6x-low.c (the_low_target): Adjust.
13027 * linux-x86-low.c (the_low_target): Adjust.
13028 * linux-xtensa-low.c (the_low_target): Adjust.
13029
13030 2012-03-26 Pedro Alves <palves@redhat.com>
13031
13032 * server.c (handle_qxfer_libraries): Don't bail early if
13033 the_target->qxfer_libraries_svr4 is not NULL.
13034
13035 2012-03-26 Pedro Alves <palves@redhat.com>
13036
13037 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13038
13039 2012-03-23 Pedro Alves <palves@redhat.com>
13040
13041 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13042 "library-list-svr4" element's start tag when the the DSO list is
13043 empty.
13044
13045 2012-03-23 Pedro Alves <palves@redhat.com>
13046
13047 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13048 a variable whose type size is the same as the inferior's pointer
13049 size.
13050
13051 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13052
13053 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13054 struct siginfo.
13055 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13056 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13057 * linux-low.h: Include <signal.h>.
13058 (struct siginfo): Remove forward declaration.
13059 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13060 struct siginfo.
13061
13062 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13063
13064 * .gitignore: Ignore more files.
13065
13066 2012-03-19 Pedro Alves <palves@redhat.com>
13067 Jan Kratochvil <jan.kratochvil@redhat.com>
13068
13069 * server.c (cont_thread, general_thread): Add describing comments.
13070 (start_inferior): Clear `cont_thread'.
13071 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13072 of a process.
13073
13074 2012-03-15 Yao Qi <yao@codesourcery.com>
13075
13076 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13077 handling to ...
13078 (cmd_qtdp): ... here.
13079
13080 2012-03-15 Yao Qi <yao@codesourcery.com>
13081
13082 * tracepoint.c (struct tracepoint_action_ops): New.
13083 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13084 (m_tracepoint_action_download): New.
13085 (r_tracepoint_action_download): New.
13086 (x_tracepoint_action_download): New.
13087 (l_tracepoint_action_download): New.
13088 (add_tracepoint_action): Install `action->ops' according type.
13089 (download_tracepoint_1): Move code `download' function pointer
13090 of various tracepoint_action_ops.
13091
13092 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13093
13094 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13095 linux_ptrace_attach_warnings.
13096
13097 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13098
13099 * Makefile.in (linux-ptrace.o): New.
13100 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13101 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13102 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13103 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13104 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13105 of these targets.
13106 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13107
13108 2012-03-08 Yao Qi <yao@codesourcery.com>
13109 Pedro Alves <palves@redhat.com>
13110
13111 Fix PR server/13392.
13112 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13113 offset of JMP insn.
13114 * tracepoint.c (remove_tracepoint): New.
13115 (cmd_qtdp): Call remove_tracepoint when failed to install.
13116
13117 2012-03-07 Pedro Alves <palves@redhat.com>
13118
13119 * linux-low.c (get_detach_signal): New.
13120 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13121 Pass on pending signals to PTRACE_DETACH. Check the result of the
13122 ptrace call.
13123 * server.c (program_signals, program_signals_p): New.
13124 (handle_general_set): Handle QProgramSignals.
13125 * server.h (program_signals, program_signals_p): Declare.
13126
13127 2012-03-05 Pedro Alves <palves@redhat.com>
13128 Jan Kratochvil <jan.kratochvil@redhat.com>
13129
13130 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13131 New comment why.
13132
13133 2012-03-03 Yao Qi <yao@codesourcery.com>
13134
13135 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13136 agent_look_up_symbols.
13137
13138 2012-03-03 Yao Qi <yao@codesourcery.com>
13139
13140 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13141 (linux-x86-low.o): Likewise.
13142 * server.h: Remove in_process_agent_loaded.
13143 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13144 common/agent.c.
13145 Update callers.
13146
13147 2012-03-03 Yao Qi <yao@codesourcery.com>
13148
13149 * tracepoint.c (gdb_agent_capability): New global.
13150 (in_process_agent_loaded_ust): Renamed to
13151 `in_process_agent_supports_ust'.
13152 Update callers.
13153 (in_process_agent_supports_ust): Call agent_capability_check.
13154 (clear_installed_tracepoints): Assert that agent supports
13155 agent.
13156
13157 2012-03-03 Yao Qi <yao@codesourcery.com>
13158
13159 * linux-low.c (linux_supports_agent): New.
13160 (linux_target_ops): Initialize field `supports_agent' with
13161 linux_supports_agent.
13162 * target.h (struct target_ops) <supports_agent>: New.
13163 (target_supports_agent): New macro.
13164 * server.c (handle_general_set): Handle packet 'QAgent'.
13165 (handle_query): Send `QAgent+'.
13166 * Makefile.in (server.o): Depends on agent.h.
13167
13168 2012-03-03 Yao Qi <yao@codesourcery.com>
13169
13170 * Makefile.in (OBS): Add agent.o.
13171 Add new rule for agent.o.
13172 Track dependence of tracepoint.c on agent.h.
13173 * tracepoint.c (run_inferior_command_1):
13174 (run_inferior_command): Call agent_run_command.
13175 (gdb_ust_connect_sync_socket): Deleted. Move it to
13176 common/agent.c.
13177 (resume_thread, stop_thread): Likewise.
13178 (gdb_ust_socket_init): Renamed to ...
13179 (gdb_agent_socket_init): ... New.
13180 (gdb_ust_thread): Renamed to ...
13181 (gdb_agent_helper_thread): ... New.
13182 (gdb_ust_init): Move some code to ...
13183 (gdb_agent_init): ... here. New.
13184 [HAVE_UST]: Call gdb_ust_init.
13185 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13186 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13187 * config.in, configure: Regenerated.
13188
13189 2012-03-02 Pedro Alves <palves@redhat.com>
13190
13191 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13192 * linux-low.c (struct simple_pid_list): New.
13193 (stopped_pids): New a struct simple_pid_list pointer.
13194 (add_to_pid_list, pull_pid_from_list): New.
13195 (handle_extended_wait): Don't assume the first signal new children
13196 report is SIGSTOP. Adjust call to pull_pid_from_list.
13197 (linux_wait_for_lwp): Adjust.
13198
13199 2012-03-02 Yao Qi <yao@codesourcery.com>
13200
13201 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13202 debug log.
13203
13204 2012-03-02 Yao Qi <yao@codesourcery.com>
13205
13206 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13207 `stop_pc' and `tpoint'. Update caller.
13208
13209 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13210
13211 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13212 * linux-low.c (use_linux_regsets): New macro.
13213 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13214 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13215 (linux_register_in_regsets): New function.
13216 (usr_fetch_inferior_registers): Skip registers covered by
13217 regsets.
13218 (usr_store_inferior_registers): Likewise.
13219 (usr_fetch_inferior_registers): New macro.
13220 (usr_store_inferior_registers): Likewise.
13221 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13222 (linux_store_registers): Likewise.
13223 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13224 prototype.
13225 (init_registers_mips64_dsp_linux): Likewise.
13226 (init_registers_mips_linux): New macro.
13227 (init_registers_mips_dsp_linux): Likewise.
13228 (mips_dsp_num_regs): Likewise.
13229 (DSP_BASE, DSP_CONTROL): New fallback macros.
13230 (mips_base_regs): New macro.
13231 (mips_regmap): Use it. Fix the size.
13232 (mips_dsp_regmap): New variable.
13233 (mips_dsp_regset_bitmap): Likewise.
13234 (mips_arch_setup): New function.
13235 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13236 than mips_regmap.
13237 (mips_cannot_store_register): Likewise.
13238 (the_low_target): Update .arch_setup, .num_regs and .regmap
13239 initializers. Add .regset_bitmap initializer.
13240 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13241 initializer.
13242 * linux-bfin-low.c (the_low_target): Likewise.
13243 * linux-cris-low.c (the_low_target): Likewise.
13244 * linux-crisv32-low.c (the_low_target): Likewise.
13245 * linux-ia64-low.c (the_low_target): Likewise.
13246 * linux-m32r-low.c (the_low_target): Likewise.
13247 * linux-m68k-low.c (the_low_target): Likewise.
13248 * linux-ppc-low.c (the_low_target): Likewise.
13249 * linux-s390-low.c (the_low_target): Likewise.
13250 * linux-sh-low.c (the_low_target): Likewise.
13251 * linux-sparc-low.c (the_low_target): Likewise.
13252 * linux-tic6x-low.c (the_low_target): Likewise.
13253 * linux-x86-low.c (the_low_target): Likewise.
13254 * linux-xtensa-low.c (the_low_target): Likewise.
13255 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13256 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13257 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13258 srv_xmlfiles.
13259 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13260 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13261
13262 2012-02-29 Yao Qi <yao@codesourcery.com>
13263 Pedro Alves <palves@redhat.com>
13264
13265 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13266 `step_over_finished' is true.
13267
13268 2012-02-27 Pedro Alves <palves@redhat.com>
13269
13270 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13271 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13272
13273 2012-02-27 Pedro Alves <palves@redhat.com>
13274
13275 PR server/9684
13276 * linux-low.c (pid_is_stopped): New.
13277 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13278
13279 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13280
13281 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13282 of conditions.
13283
13284 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13285
13286 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13287
13288 2012-02-24 Luis Machado <lgustavo@codesourcery>
13289
13290 * server.c (handle_query): Advertise support for target-side
13291 breakpoint condition evaluation.
13292 (process_point_options): New function.
13293 (process_serial_event): When inserting a breakpoint, check for
13294 a target-side condition that should be evaluated.
13295
13296 * mem-break.c: Include regcache.h and ax.h.
13297 (point_cond_list_t): New data structure.
13298 (breakpoint) <cond_list>: New field.
13299 (find_gdb_breakpoint_at): Make non-static.
13300 (delete_gdb_breakpoint_at): Clear any target-side
13301 conditions.
13302 (clear_gdb_breakpoint_conditions): New function.
13303 (add_condition_to_breakpoint): Likewise.
13304 (add_breakpoint_condition): Likewise.
13305 (gdb_condition_true_at_breakpoint): Likewise.
13306 (gdb_breakpoint_here): Return result directly instead
13307 of going through a local variable.
13308
13309 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13310 (clear_gdb_breakpoint_conditions): Likewise.
13311 (add_breakpoint_condition): Likewise.
13312 (gdb_condition_true_at_breakpoint): Likewise.
13313
13314 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13315 (need_step_over_p): Take target-side breakpoint condition into
13316 consideration.
13317
13318 2012-02-24 Luis Machado <lgustavo@codesourcery>
13319
13320 * server.h: Include tracepoint.h.
13321 (agent_mem_read, agent_get_trace_state_variable_value,
13322 agent_set_trace_state_variable_value,
13323 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13324 get_set_tsv_func_addr): New prototypes.
13325
13326 * ax.h: New include file.
13327 * ax.c: New source file.
13328
13329 * tracepoint.c: Include ax.h.
13330 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13331 agent_expr, eval_result_type): Move to ax.h.
13332 (parse_agent_expr): Rename to ...
13333 (gdb_parse_agent_expr): ... this, make it non-static and move
13334 to ax.h.
13335 (unparse_agent_expr) Rename to ...
13336 (gdb_unparse_agent_expr): ... this, make it non-static and move
13337 to ax.h.
13338 (eval_agent_expr): Rename to ...
13339 (eval_tracepoint_agent_expr): ... this.
13340 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13341 forward declarations.
13342 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13343 (agent_get_trace_state_variable_value): New function.
13344 (agent_set_trace_state_variable_value): New function.
13345 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13346 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13347 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13348 (condition_true_at_tracepoint): Likewise.
13349 (parse_agent_expr): Rename to ...
13350 (gdb_parse_agent_expr): ... this and move to ax.c.
13351 (unparse_agent_expr): Rename to ...
13352 (gdb_unparse_agent_expr): ... this and move to ax.c.
13353 (gdb_agent_op_name): Move to ax.c.
13354 (eval_agent_expr): Rename to ...
13355 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13356 and move to ax.c.
13357 (eval_tracepoint_agent_expr): New function.
13358 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13359 non-static.
13360 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13361 ax.c.
13362 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13363 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13364 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13365 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13366 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13367 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13368 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13369 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13370 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13371 (compile_bytecodes): Remove forward declaration.
13372 (is_goto_target): Move to ax.c.
13373 (compile_bytecodes): Move to ax.c and call
13374 agent_get_trace_state_variable_value (...) and
13375 agent_set_trace_state_variable_value (...).
13376
13377 * Makefile.in: Update ax.c and IPA dependencies.
13378
13379 2012-02-24 Pedro Alves <palves@redhat.com>
13380
13381 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13382 (cmd_bigqtbuffer_circular): ... this. Only handle
13383 'QTBuffer:circular:'.
13384 (handle_tracepoint_general_set): Adjust.
13385
13386 2012-02-16 Yao Qi <yao@codesourcery.com>
13387
13388 * inferiors.c: Move code to ...
13389 * dll.c: .... here. New.
13390 * server.h: Declare clear_dlls.
13391 * Makefile.in (SFILES): Add dll.c.
13392 (OBS): Add dll.o
13393 (dll.o): New rule.
13394
13395 2012-02-11 Yao Qi <yao@codesourcery.com>
13396
13397 * server.c: (handle_monitor_command): Add a new parameter
13398 `own_buf'.
13399 (handle_query): Update caller.
13400
13401 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13402
13403 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13404 * configure, config.in: Regenerate.
13405 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13406 is not defined.
13407
13408 2012-02-02 Pedro Alves <palves@redhat.com>
13409
13410 Try SIGKILL first, then PTRACE_KILL.
13411 * linux-low.c (linux_kill_one_lwp): New.
13412 (linux_kill_one_lwp): Rename to ...
13413 (kill_one_lwp_callback): ... this. Use the new
13414 linux_kill_one_lwp.
13415
13416 2012-02-02 Pedro Alves <palves@redhat.com>
13417
13418 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13419 inferior.
13420
13421 2012-01-27 Pedro Alves <palves@redhat.com>
13422
13423 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13424 (elf_64_file_p): Make static.
13425 (linux_pid_exe_is_elf_64_file): New.
13426 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13427 Delete declarations.
13428 (linux_pid_exe_is_elf_64_file): Declare.
13429 * linux-x86-low.c (x86_arch_setup): Use
13430 linux_pid_exe_is_elf_64_file.
13431
13432 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13433
13434 * linux-low.c (linux_wait_for_event_1): Rename to ...
13435 (linux_wait_for_event): ... here and merge it with former
13436 linux_wait_for_event - new variable wait_ptid, use it.
13437 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13438
13439 2012-01-23 Pedro Alves <palves@redhat.com>
13440
13441 * server.c (main): Avoid yet another case of infinite loop while
13442 detaching/killing after a longjmp.
13443
13444 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13445
13446 Code cleanup.
13447 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13448
13449 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13450
13451 * hostio.c (handle_readlink): New function.
13452 (handle_vFile): Call it to handle "vFile:readlink" packets.
13453
13454 2012-01-20 Pedro Alves <palves@redhat.com>
13455 Ulrich Weigand <ulrich.weigand@linaro.org>
13456
13457 * server.c (handle_v_requests): Only support vAttach and vRun to
13458 start multiple processes when in extended protocol mode.
13459
13460 2012-01-17 Pedro Alves <palves@redhat.com>
13461
13462 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13463 memalign plus mprotect to allocate the scratch buffer.
13464
13465 2012-01-13 Pedro Alves <palves@redhat.com>
13466
13467 * server.c (attach_inferior): Clear `cont_thread'.
13468
13469 2012-01-13 Pedro Alves <palves@redhat.com>
13470
13471 * server.c (main): Avoid infinite loop while detaching/killing
13472 after a longjmp.
13473
13474 2012-01-09 Doug Evans <dje@google.com>
13475
13476 * server.c (start_inferior): Set last_ptid in --wrapper case.
13477
13478 2012-01-06 Yao Qi <yao@codesourcery.com>
13479
13480 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13481 defined.
13482 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13483
13484 2012-01-04 Yao Qi <yao@codesourcery.com>
13485
13486 * tracepoint.c (cmd_qtdp): Print debug message
13487 for static tracepoint.
13488
13489 2012-01-04 Yao Qi <yao@codesourcery.com>
13490
13491 * tracepoint.c (trace_vdebug): Differentiate debug message
13492 between gdbserver and IPA.
13493
13494 2012-01-03 Yao Qi <yao@codesourcery.com>
13495
13496 * tracepoint.c (tracepoint_was_hit): Don't collect for
13497 static tracepoint.
13498
13499 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13500
13501 * terminal.h: Reformat copyright header.
13502
13503 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13504
13505 * server.c (gdbserver_version): Update copyright year.
13506 * gdbreplay.c (gdbreplay_version): Likewise.
13507
13508 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13509
13510 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13511
13512 Revert:
13513 2011-12-18 Hui Zhu <teawater@gmail.com>
13514 * linux-low.c (linux_create_inferior): Save return value to ret.
13515
13516 2011-12-18 Hui Zhu <teawater@gmail.com>
13517
13518 * linux-low.c (linux_create_inferior): Save return value to ret.
13519
13520 2011-12-16 Doug Evans <dje@google.com>
13521
13522 * linux-low.c (linux_create_inferior): If stdio connection,
13523 redirect stdin from /dev/null, stdout to stderr.
13524 * remote-utils.c (remote_is_stdio): New static global.
13525 (remote_connection_is_stdio): New function.
13526 (remote_prepare): Handle stdio connection.
13527 (remote_open): Ditto.
13528 (remote_close): Don't close stdin for stdio connections.
13529 (read_prim,write_prim): New functions. Replace all calls to
13530 read/write to these.
13531 * server.c (main): Watch for "-" argument. Move call to
13532 remote_prepare before start_inferior.
13533 * server.h (STDIO_CONNECTION_NAME): New macro.
13534 (remote_connection_is_stdio): Declare.
13535
13536 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13537 in debugging output.
13538
13539 2011-12-15 Yao Qi <yao@codesourcery.com>
13540
13541 * tracepoint.c: Include sys/syscall.h.
13542 (gdb_ust_thread): Remove preprocessor conditional.
13543
13544 2011-12-14 Pedro Alves <pedro@codesourcery.com>
13545
13546 * linux-low.c (linux_detach_one_lwp): Call
13547 the_low_target.prepare_to_resume before detaching.
13548
13549 2011-12-14 Yao Qi <yao@codesourcery.com>
13550
13551 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13552 of write.
13553
13554 2011-12-14 Yao Qi <yao@codesourcery.com>
13555
13556 * i386-low.c (i386_low_stopped_data_address): Initialize local
13557 variable `control'.
13558
13559 2011-12-13 Pedro Alves <pedro@codesourcery.com>
13560
13561 PR remote/13492
13562
13563 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13564 DR_CONTROL unless necessary. Extend comments.
13565 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13566 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13567
13568 2011-12-13 Yao Qi <yao@codesourcery.com>
13569
13570 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13571 macros.
13572 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13573
13574 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13575
13576 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13577 Print new debug message for such case.
13578
13579 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13580
13581 Fix overlapping memcpy.
13582 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13583 the read_inferior_memory transfer.
13584 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13585 write_inferior_memory transfer.
13586 (set_fast_tracepoint_jump): New variable buf. Use it for the
13587 read_inferior_memory and write_inferior_memory transfers.
13588 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13589 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13590 Use it for the write_inferior_memory transfer.
13591 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13592 buffers.
13593
13594 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13595
13596 * linux-low.c (fetch_register, store_register): Make code
13597 consistent, fix formatting.
13598
13599 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13600
13601 * linux-low.c (usr_store_inferior_registers): Factor out code
13602 to handle individual registers into...
13603 (store_register): ... this new function.
13604
13605 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13606
13607 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13608 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13609 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13610 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13611 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13612 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13613 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13614 (srv_xmlfiles): Add new XML files.
13615
13616 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13617 and <sys/uio.h>.
13618 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13619 (init_registers_s390_linux32v1): Add prototype.
13620 (init_registers_s390_linux32v2): Likewise.
13621 (init_registers_s390_linux64v1): Likewise.
13622 (init_registers_s390_linux64v2): Likewise.
13623 (init_registers_s390x_linux64v1): Likewise.
13624 (init_registers_s390x_linux64v2): Likewise.
13625 (s390_num_regs): Increment to 52.
13626 (s390_regmap): Add orig_r2 register.
13627 (s390_num_regs_3264): Increment to 68.
13628 (s390_regmap_3264): Add orig_r2 register.
13629 (s390_collect_ptrace_register): Handle orig_r2 register.
13630 (s390_supply_ptrace_register): Likewise.
13631 (s390_fill_last_break): New function.
13632 (s390_store_last_break): Likewise.
13633 (s390_fill_system_call): New function.
13634 (s390_store_system_call): Likewise.
13635 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13636 register sets.
13637 (s390_check_regset): New function.
13638 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13639 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13640 Update target_regsets for available register sets.
13641
13642 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13643 Jan Kratochvil <jan.kratochvil@redhat.com>
13644
13645 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13646 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13647 New.
13648 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13649 * linux-low.h (struct process_info_private): New member r_debug.
13650 * server.c (handle_qxfer_libraries): Call
13651 the_target->qxfer_libraries_svr4.
13652 (handle_qxfer_libraries_svr4): New function.
13653 (qxfer_packets): New entry "libraries-svr4".
13654 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13655 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13656 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13657 PACKET_qXfer_libraries_svr4.
13658
13659 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13660
13661 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13662 PSW address/mask between 8-byte and 16-byte formats.
13663 (s390_supply_ptrace_register): Likewise.
13664 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13665 basic addressing mode bit.
13666
13667 2011-11-24 Stan Shebs <stan@codesourcery.com>
13668
13669 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13670
13671 2011-11-17 Stan Shebs <stan@codesourcery.com>
13672
13673 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13674 (tracing_start_time): New global.
13675 (tracing_stop_time): New global.
13676 (tracing_user_name): New global.
13677 (tracing_notes): New global.
13678 (tracing_stop_note): New global.
13679 (cmd_qtstart): Set traceframe_usage, start_time.
13680 (stop_tracing): Set stop_time.
13681 (cmd_qtstatus): Report additional status.
13682 (cmd_qtp): New function.
13683 (handle_tracepoint_query): Call it.
13684 (cmd_qtnotes): New function.
13685 (handle_tracepoint_general_set): Call it.
13686 (get_timestamp): Rename from tsv_get_timestamp.
13687
13688 2011-11-14 Stan Shebs <stan@codesourcery.com>
13689 Kwok Cheung Yeung <kcy@codesourcery.com>
13690
13691 * linux-x86-low.c (small_jump_insn): New.
13692 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13693 trampoline and error message, build a trampoline and issue a small
13694 jump instruction to it.
13695 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13696 trampoline and error message.
13697 (x86_get_min_fast_tracepoint_insn_len): New.
13698 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13699 * linux-low.h (struct linux_target_ops): Add arguments to
13700 install_fast_tracepoint_jump_pad operation, add new operation.
13701 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13702 arguments.
13703 (linux_get_min_fast_tracepoint_insn_len): New function.
13704 (linux_target_op): Add new operation.
13705 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13706 (gdb_trampoline_buffer_end): Ditto.
13707 (gdb_trampoline_buffer_error): Ditto.
13708 (struct ipa_sym_addresses): Add fields for new IPA variables.
13709 (symbol_list): Add entries for new IPA variables.
13710 (struct tracepoint): Add fields to hold the address range of the
13711 trampoline used by the tracepoint.
13712 (trampoline_buffer_head): New static variable.
13713 (trampoline_buffer_tail): Ditto.
13714 (claim_trampoline_space): New function.
13715 (have_fast_tracepoint_trampoline_buffer): New function.
13716 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13717 structure.
13718 (install_fast_tracepoint): Ditto, also add error buffer argument.
13719 (cmd_qtminftpilen): New function.
13720 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13721 (fast_tracepoint_from_trampoline_address): New function.
13722 (fast_tracepoint_collecting): Handle trampoline as part of jump
13723 pad space.
13724 (set_trampoline_buffer_space): New function.
13725 (initialize_tracepoint): Initialize new IPA variables.
13726 * target.h (struct target_ops): Add arguments to
13727 install_fast_tracepoint_jump_pad operation, add new
13728 get_min_fast_tracepoint_insn_len operation.
13729 (target_get_min_fast_tracepoint_insn_len): New.
13730 (install_fast_tracepoint_jump_pad): Add arguments.
13731 * server.h (IPA_BUFSIZ): Define.
13732 * linux-i386-ipa.c: Include extra header files.
13733 (initialize_fast_tracepoint_trampoline_buffer): New function.
13734 (initialize_low_tracepoint): Call it.
13735 * server.h (set_trampoline_buffer_space): Declare.
13736 (claim_trampoline_space): Ditto.
13737 (have_fast_tracepoint_trampoline_buffer): Ditto.
13738
13739 2011-11-14 Yao Qi <yao@codesourcery.com>
13740
13741 * server.c (handle_query): Handle InstallInTrace for qSupported.
13742 * tracepoint.c (add_tracepoint): Sort list.
13743 (install_tracepoint, download_tracepoint): New.
13744 (cmd_qtdp): Call them to install and download tracepoints.
13745 (sort_tracepoints): Removed.
13746 (cmd_qtstart): Update.
13747
13748 2011-11-14 Yao Qi <yao@codesourcery.com>
13749
13750 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13751 * mem-break.h: Declare.
13752 * tracepoint.c (cmd_qtstart): Move some code to ...
13753 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13754 New.
13755 (download_tracepoints): Move some code to ...
13756 (download_tracepoint_1): ... here. New.
13757
13758 2011-11-08 Yao Qi <yao@codesourcery.com>
13759
13760 * remote-utils.c (relocate_instruction): A comment fix.
13761
13762 2011-11-07 Joel Brobecker <brobecker@adacore.com>
13763
13764 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13765 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13766 dr_status_mirror and dr_control_mirror from debug_reg_state.
13767 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13768 (i386_initial_stuff): Remove use of deleted globals.
13769 (i386_get_thread_context, i386_set_thread_context,
13770 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13771 from debug_reg_state.
13772
13773 2011-11-05 Yao Qi <yao@codesourcery.com>
13774
13775 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13776 address as TPOINT's.
13777
13778 2011-11-02 Stan Shebs <stan@codesourcery.com>
13779
13780 * tracepoint.c (agent_mem_read_string): New function.
13781 (eval_agent_expr): Call it for tracenz.
13782 * server.c (handle_query): Report support for tracenz.
13783
13784 2011-11-02 Yao Qi <yao@codesourcery.com>
13785
13786 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13787
13788 2011-11-02 Yao Qi <yao@codesourcery.com>
13789
13790 * target.h: Fix a typo in comment.
13791
13792 2011-10-31 Pedro Alves <pedro@codesourcery.com>
13793
13794 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13795 clobber the breakpoints' shadows with fast tracepoint jumps.
13796 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13797 * target.c (write_inferior_memory): Also pass MYADDR down to
13798 check_mem_write.
13799
13800 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13801
13802 * configure.ac: Check support for personality routine.
13803 * configure: Regenerate.
13804 * config.in: Likewise.
13805 * linux-low.c: Include <sys/personality.h>.
13806 Define ADDR_NO_RANDOMIZE if necessary.
13807 (linux_create_inferior): Disable address space randomization when
13808 forking inferior, if requested.
13809 (linux_supports_disable_randomization): New function.
13810 (linux_target_ops): Install it.
13811 * server.h (disable_randomization): Declare.
13812 * server.c (disable_randomization): New global variable.
13813 (handle_general_set): Handle QDisableRandomization.
13814 (handle_query): Likewise for qSupported.
13815 (main): Support --disable-randomization and --no-disable-randomization
13816 command line arguments.
13817 * target.h (struct target_ops): Add supports_disable_randomization.
13818 (target_supports_disable_randomization): New macro.
13819
13820 2011-09-29 Mike Frysinger <vapier@gentoo.org>
13821
13822 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13823 ifdef check.
13824 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13825 [!PT_GETDSBT] (target_loadmap): New definition.
13826 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13827 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13828 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13829 and PT_GETDSBT to LINUX_LOADMAP.
13830 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13831 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13832
13833 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13834
13835 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13836 (arm_linux_hwbp_cap): New static variable.
13837 (arm_linux_get_hwbp_cap): Replace by ...
13838 (arm_linux_init_hwbp_cap): ... this new function.
13839 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13840 (arm_linux_get_hw_watchpoint_count): Likewise.
13841 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13842 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13843 (arm_prepare_to_resume): Use perror_with_name instead of error.
13844
13845 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13846
13847 * linux-arm-low.c: Include <signal.h>.
13848 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13849 (struct arm_linux_hwbp_cap): New data type.
13850 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13851 (struct arm_linux_hw_breakpoint): New data type.
13852 (MAX_BPTS, MAX_WPTS): Define.
13853 (struct arch_process_info, struct arch_lwp_info): New data types.
13854 (arm_linux_get_hwbp_cap): New function.
13855 (arm_linux_get_hw_breakpoint_count): Likewise.
13856 (arm_linux_get_hw_watchpoint_count): Likewise.
13857 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13858 (arm_hwbp_control_initialize): Likewise.
13859 (arm_hwbp_control_is_enabled): Likewise.
13860 (arm_hwbp_control_is_initialized): Likewise.
13861 (arm_hwbp_control_disable): Likewise.
13862 (arm_linux_hw_breakpoint_equal): Likewise.
13863 (arm_linux_hw_point_initialize): Likewise.
13864 (struct update_registers_data): New data structure.
13865 (update_registers_callback: New function.
13866 (arm_insert_point): Likewise.
13867 (arm_remove_point): Likewise.
13868 (arm_stopped_by_watchpoint): Likewise.
13869 (arm_stopped_data_address): Likewise.
13870 (arm_new_process): Likewise.
13871 (arm_new_thread): Likewise.
13872 (arm_prepare_to_resume): Likewise.
13873 (the_low_target): Register arm_insert_point, arm_remove_point,
13874 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13875 arm_new_thread, and arm_prepare_to_resume.
13876
13877 2011-09-15 Stan Shebs <stan@codesourcery.com>
13878
13879 * server.h (struct emit_ops): Add compare-goto fields.
13880 * tracepoint.c (gdb_agent_op_sizes): New table.
13881 (emit_eq_goto): New function.
13882 (emit_ne_goto): New function.
13883 (emit_lt_goto): New function.
13884 (emit_le_goto): New function.
13885 (emit_gt_goto): New function.
13886 (emit_ge_goto): New function.
13887 (is_goto_target): New function.
13888 (compile_bytecodes): Recognize special cases of compare-goto
13889 combinations and call specialized emitters for them.
13890 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13891 (amd64_emit_ne_goto): New function.
13892 (amd64_emit_lt_goto): New function.
13893 (amd64_emit_le_goto): New function.
13894 (amd64_emit_gt_goto): New function.
13895 (amd64_emit_ge_goto): New function.
13896 (amd64_emit_ops): Add the new functions.
13897 (i386_emit_eq_goto): New function.
13898 (i386_emit_ne_goto): New function.
13899 (i386_emit_lt_goto): New function.
13900 (i386_emit_le_goto): New function.
13901 (i386_emit_gt_goto): New function.
13902 (i386_emit_ge_goto): New function.
13903 (i386_emit_ops): Add the new functions.
13904
13905 2011-09-08 Stan Shebs <stan@codesourcery.com>
13906
13907 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13908 (i386_emit_epilogue): Restore %ebx.
13909
13910 2011-08-31 Jie Zhang <jzhang918@gmail.com>
13911
13912 * server.c (step_thread): Remove definition.
13913 (process_serial_event): Don't handle Hs.
13914 * server.h (step_thread): Remove declaration.
13915 * target.c (set_desired_inferior): Remove use of step_thread.
13916
13917 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13918
13919 * linux-low.c: Include linux-procfs.h.
13920 (linux_attach_lwp_1): Update comments.
13921 (linux_attach): Scan for existing threads when attaching to a
13922 process that is the tgid.
13923 * Makefile.in: Update dependencies.
13924
13925 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13926
13927 * configure.srv: Add linux-procfs.o dependencies.
13928
13929 2011-08-14 Yao Qi <yao@codesourcery.com>
13930
13931 * target.h (struct target_ops): Fix indent.
13932 * win32-low.c (win32_target_ops): Fix comment.
13933
13934 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
13935 Yao Qi <yao@codesourcery.com>
13936
13937 * Makefile.in (clean): Remove tic6x-*.c files.
13938 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13939 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13940 (tic6x-c64xp-linux.c): Likewise.
13941 * configure.srv: Add support for tic6x-*-uclinux.
13942 * linux-tic6x-low.c: New.
13943 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13944
13945 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
13946 Yao Qi <yao@codesourcery.com>
13947
13948 * target.h (struct target_ops): Add read_loadmap.
13949 * linux-low.c (struct target_loadseg): New type.
13950 (struct target_loadmap): New type.
13951 (linux_read_loadmap): New function.
13952 (linux_target_ops): Add linux_read_loadmap.
13953 * server.c (handle_query): Support qXfer:fdpic:read packet.
13954 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13955 to NULL.
13956
13957 2011-08-05 Eli Zaretskii <eliz@gnu.org>
13958
13959 * win32-low.c: Include <stdint.h>.
13960
13961 2011-07-22 Pedro Alves <pedro@codesourcery.com>
13962
13963 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13964 to the inferior here.
13965 (i386_remove_aligned_watchpoint): Ditto.
13966 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13967 fit part of the watchpoint in the debug registers.
13968 (i386_update_inferior_debug_regs): New.
13969 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13970 registers, and only update the inferior on success.
13971 (i386_low_remove_watchpoint): Ditto.
13972
13973 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13974
13975 * linux-low.c (compare_ints, unique, list_threads, show_process,
13976 linux_core_of_thread): Delete.
13977 (linux_target_ops): Change linux_core_of_thread to
13978 linux_common_core_of_thread.
13979 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13980 * utils.c (malloc_failure): Change type of argument.
13981 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13982 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13983 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13984 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13985 (IPA_OBJS): Add common-utils-ipa.o.
13986 (ptid_h, linux_osdata_h): New macros.
13987 (server_h): Add common/common-utils.h, common/xml-utils.h,
13988 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13989 common/ptid.h.
13990 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13991 ptid.o, buffer.o): New rules.
13992 (linux-low.o): Add common/linux-osdata.h as a dependency.
13993 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13994 * configure.ac: Add AC_HEADER_DIRENT check.
13995 * config.in: Regenerate.
13996 * configure: Regenerate.
13997 * remote-utils.c (xml_escape_text): Delete.
13998 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13999 buffer_xml_printf): Move to common/buffer.c.
14000 * server.c (main): Remove call to initialize_inferiors.
14001 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14002 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14003 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14004 internal_error, gdb_assert, gdb_assert_fail): Delete.
14005 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14006 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14007 common/buffer.h.
14008 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14009 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14010 initialize_inferiors): Delete.
14011
14012 2011-07-20 Pedro Alves <pedro@codesourcery.com>
14013
14014 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14015 symbol error.
14016
14017 2011-05-31 Pedro Alves <pedro@codesourcery.com>
14018
14019 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14020 assertion.
14021 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14022
14023 2011-05-26 Yao Qi <yao@codesourcery.com>
14024
14025 * Makefile.in (thread-db.o): Track dependence to
14026 common/gdb_thread_db.h.
14027 * thread-db.c: include gdb_thread_db.h from right place.
14028
14029 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14030
14031 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14032 __FILE__ and __LINE__ to internal_error.
14033
14034 2011-05-13 Doug Evans <dje@google.com>
14035
14036 * thread-db.c (try_thread_db_load_from_sdir): New function.
14037 (try_thread_db_load_from_dir): New function.
14038 (thread_db_load_search): Handle $sdir, ignore $pdir.
14039 Remove trying of system directories if search of
14040 libthread-db-search-path fails, that is now done via $sdir.
14041
14042 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14043
14044 * server.c (handle_query): Add EnableDisableTracepoints to the list
14045 of supported features.
14046 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14047 tracepoints.
14048 (cmd_qtenable_disable): New.
14049 (cmd_qtstart): Install tracepoints even if disabled.
14050 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14051 receiving a QTEnable or QTDisable packet.
14052 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14053 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14054 tracepoints.
14055 (gdb_probe): Skip data collection if static tracepoint is disabled.
14056
14057 2011-05-10 Doug Evans <dje@google.com>
14058
14059 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14060
14061 2011-05-04 Doug Evans <dje@google.com>
14062
14063 * linux-low.c (linux_join): Skip process lookup.
14064 * spu-low.c (spu_join): Ditto.
14065 * server.c (join_inferiors_callback): Delete.
14066 (process_serial_event): For 'D' packet (detach) call join_inferior
14067 directly.
14068
14069 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14070
14071 * README: Don't mention xscale*-*-linux*.
14072 * configure.srv (xscale*-*-linux*): Don't handle target.
14073
14074 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14075
14076 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14077 casting pointers.
14078 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14079 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14080 (i386_emit_void_call_2): Likewise.
14081
14082 2011-04-26 Yao Qi <yao@codesourcery.com>
14083
14084 * linux-low.c: Move common macros to linux-ptrace.h.
14085 Include linux-ptrace.h.
14086 * Makefile.in (linux_ptrace_h): New.
14087 (linux-low.o): Depends on linux-ptrace.h.
14088
14089 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14090
14091 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14092 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14093 (remote_prepare): New function with most of the TCP code from ...
14094 (remote_open): ... here. Detect PORT here unconditionally. Move also
14095 setting transport_is_reliable.
14096 * server.c (run_once): New variable.
14097 (gdbserver_usage): Document it.
14098 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14099 the first run if RUN_ONCE.
14100 * server.h (run_once, remote_prepare): New declarations.
14101
14102 2011-04-19 Tom Tromey <tromey@redhat.com>
14103
14104 * win32-low.c (handle_load_dll): Remove duplicate "the".
14105
14106 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14107
14108 Remove support for old Cygwin 1.5 versions.
14109 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14110 function to avoid warning.
14111 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14112 warning.
14113
14114 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14115
14116 * gdbserver/server.h (Macro _): Define it if not available.
14117
14118 2011-03-14 Michael Snyder <msnyder@vmware.com>
14119
14120 * hostio.c (handle_close): Remove unnecessary null test.
14121
14122 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14123
14124 * Makefile.in (maintainer-clean realclean distclean): Remove
14125 "make ... subdir_do" command.
14126
14127 2011-03-10 Michael Snyder <msnyder@vmware.com>
14128
14129 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14130
14131 * server.c (handle_v_run): Free alloced buffer on early return.
14132
14133 2011-03-09 Yao Qi <yao@codesourcery.com>
14134
14135 Revert:
14136 2011-03-04 Yao Qi <yao@codesourcery.com>
14137
14138 * Makefile.in: Remove GNU make feature --directory.
14139
14140 2011-03-05 Yao Qi <yao@codesourcery.com>
14141
14142 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14143 (subdir_do): New make target. Copied from gdb/Makefile.
14144 (maintainer-clean, realclean, distclean, clean): Call corresponding
14145 make targets in common/Makefile.
14146
14147 2011-02-11 Yao Qi <yao@codesourcery.com>
14148
14149 * configure.ac: Call AC_PROG_RANLIB.
14150 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14151 * configure: Regenerate.
14152
14153 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14154
14155 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14156
14157 2011-03-06 Yao Qi <yao@codesourcery.com>
14158
14159 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14160
14161 2011-03-05 Yao Qi <yao@codesourcery.com>
14162
14163 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14164 (subdir_do): New make target. Copied from gdb/Makefile.
14165 (maintainer-clean, realclean, distclean, clean): Call corresponding
14166 make targets in common/Makefile.
14167
14168 2011-03-04 Yao Qi <yao@codesourcery.com>
14169
14170 * Makefile.in: Remove GNU make feature --directory.
14171
14172 2011-03-04 Michael Snyder <msnyder@vmware.com>
14173
14174 * server.c (queue_stop_reply): Call xmalloc not malloc.
14175
14176 2011-03-02 Michael Snyder <msnyder@vmware.com>
14177
14178 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14179
14180 2011-02-28 Michael Snyder <msnyder@vmware.com>
14181
14182 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14183 (cmd_qtframe): Ditto.
14184 (cmd_qtbuffer): Ditto.
14185 (cmd_bigqtbuffer): Ditto.
14186
14187 * utils.c (decimal2str): Initialize 'width' to nine, then
14188 don't mess with it.
14189
14190 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14191
14192 * hostio.c (require_data): Free *data, not data.
14193
14194 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14195
14196 * hostio.c (require_data): Use free, not xfree.
14197
14198 2011-02-27 Michael Snyder <msnyder@vmware.com>
14199
14200 * server.c (handle_query): Discard unused value.
14201
14202 * hostio.c (require_data): Free malloc memory before returning
14203 error.
14204
14205 2011-02-26 Michael Snyder <msnyder@vmware.com>
14206
14207 * linux-low.c (list_threads): Call closedir for dirent.
14208
14209 2011-02-27 Michael Snyder <msnyder@vmware.com>
14210
14211 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14212 a case statement falls through.
14213
14214 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14215
14216 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14217 in comparison.
14218
14219 2011-02-26 Michael Snyder <msnyder@vmware.com>
14220
14221 * utils.c (decimal2str): Eliminate dead code and dead param.
14222 (pulongest): Drop dead param from call to decimal2str.
14223 (plongest): Ditto.
14224
14225 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14226
14227 Revert the following patch (not approved yet):
14228 2011-02-21 Hui Zhu <teawater@gmail.com>
14229 * tracepoint.c (tp_printf): New function.
14230 (eval_agent_expr): Handle gdb_agent_op_printf.
14231
14232 2011-02-21 Hui Zhu <teawater@gmail.com>
14233
14234 * tracepoint.c (tp_printf): New function.
14235 (eval_agent_expr): Handle gdb_agent_op_printf.
14236
14237 2011-02-18 Tom Tromey <tromey@redhat.com>
14238
14239 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14240 (tracepoint.o): Likewise.
14241 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14242 (gdb_agent_op_names): Likewise.
14243
14244 2011-02-18 Tom Tromey <tromey@redhat.com>
14245
14246 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14247 gdb_agent_op_rot>: New constants.
14248 (gdb_agent_op_names): Add pick and roll.
14249 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14250 cases.
14251
14252 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14253
14254 * aclocal.m4: Regenerated with aclocal-1.11.1.
14255
14256 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14257
14258 * server.c (handle_qxfer_traceframe_info): New.
14259 (qxfer_packets): Register "traceframe-info".
14260 (handle_query): Report support for qXfer:traceframe-info:read+.
14261 * tracepoint.c (match_blocktype): New.
14262 (traceframe_find_block_type): Rename to ...
14263 (traceframe_walk_blocks): ... this. Add callback filter argument,
14264 and use it.
14265 (traceframe_find_block_type): New, reimplemented on top of
14266 traceframe_walk_blocks.
14267 (build_traceframe_info_xml): New.
14268 (traceframe_read_info): New.
14269 * server.h (traceframe_read_info): Declare.
14270
14271 2011-02-11 Yao Qi <yao@codesourcery.com>
14272
14273 * configure.ac: Call AC_PROG_RANLIB.
14274 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14275 * configure: Regenerate.
14276
14277 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14278
14279 * server.c (gdb_read_memory): Change return semantics to allow
14280 partial transfers.
14281 (handle_search_memory_1): Adjust.
14282 (process_serial_event) <'m' packet>: Handle partial transfers.
14283 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14284
14285 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14286
14287 * regcache.c (init_register_cache): Initialize
14288 regcache->register_status.
14289 (free_register_cache): Release regcache->register_status.
14290 (regcache_cpy): Copy register_status.
14291 (registers_to_string): Print 'x's for unavailable registers.
14292 (supply_register): Mark the register's status valid or
14293 unavailable, depending on whether a buffer was passed in or not.
14294 (supply_register_zeroed): New.
14295 (supply_regblock): Mark the registers' status valid or
14296 unavailable, depending on whether a buffer was passed in or not.
14297 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14298 (struct regcache): New `register_status' field.
14299 (supply_register_zeroed): Declare.
14300 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14301 supply_register_zeroed, rather than passing a NULL buffer to
14302 supply_register.
14303 * tracepoint.c (fetch_traceframe_registers): Update comment.
14304
14305 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14306
14307 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14308 buffer explicit.
14309
14310 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14311
14312 * server.h (decode_xfer_write): Change prototype.
14313 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14314 and don't extract the annex here.
14315 * server.c (decode_xfer_read): Remove `annex' parameter,
14316 and don't extract the annex here.
14317 (decode_xfer): New.
14318 (struct qxfer): New.
14319 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14320 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14321 (handle_qxfer_statictrace): New functions, abstracted out from
14322 handle_query, and made to use the struct qxfer interface.
14323 (handle_threads_qxfer_proper): Rename to ...
14324 (handle_qxfer_threads_proper): ... this.
14325 (handle_threads_qxfer): Rename to ...
14326 (handle_qxfer_threads): ... this. Adjust.
14327 (qxfer_packets): New array.
14328 (handle_qxfer): New function.
14329 (handle_query): Use handle_qxfer.
14330
14331 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14332
14333 * gdbreplay.c: Shorten lines of >= 80 columns.
14334 * linux-low.c: Ditto.
14335 * linux-ppc-low.c: Ditto.
14336 * linux-s390-low.c: Ditto.
14337 * linux-sparc-low.c: Ditto.
14338 * linux-x86-low.c: Ditto.
14339 * linux-xtensa-low.c: Ditto.
14340 * mem-break.c: Ditto.
14341 * nto-low.c: Ditto.
14342 * regcache.h: Ditto.
14343 * remote-utils.c: Ditto.
14344 * server.c: Ditto.
14345 * server.h: Ditto.
14346 * thread-db.c: Ditto.
14347 * tracepoint.c: Ditto.
14348 * utils.c: Ditto.
14349 * win32-low.h: Ditto.
14350
14351 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14352
14353 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14354 update.
14355
14356 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14357
14358 * server.c (gdbserver_version): Update copyright year in version
14359 output.
14360 * gdbreplay.c (gdbreplay_version): Ditto.
14361
14362 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14363
14364 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14365 * linux-bfin-low.c: New file.
14366 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14367 PT_DATA_ADDR for BFIN targets.
14368 * Makefile.in (SFILES): Add linux-bfin-low.c.
14369 (clean): Remove reg-bfin.c.
14370 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14371 * README: Mention supported Blackfin targets.
14372
14373 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14374
14375 * .gitignore: New file.
14376
14377 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14378
14379 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14380
14381 2010-10-22 Jie Zhang <jie@codesourcery.com>
14382
14383 * Makefile.in: Add FLAGS_TO_PASS variable.
14384 (install): Remove dependency of install-only and recursively
14385 invoke make for install-only.
14386
14387 2010-10-04 Doug Evans <dje@google.com>
14388
14389 * Makefile.in (uninstall): Use $(DESTDIR).
14390
14391 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14392
14393 PR gdb/11842
14394
14395 * linux-x86-low.c (compat_siginfo_from_siginfo)
14396 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14397 si_code is < 0. Check for si_code == SI_TIMER before checking for
14398 si_code < 0.
14399
14400 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14401
14402 * lynx-i386-low.c: New file.
14403 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14404
14405 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14406
14407 * lynx-low.c (ptrace_request_to_str): Remove handling for
14408 request values that have been removed in LynxOS 5.x.
14409
14410 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14411
14412 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14413 <ptrace.h>
14414
14415 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14416
14417 * configure.ac: Add --enable-inprocess-agent option.
14418 * configure: Rebuilt.
14419
14420 2010-09-06 Yao Qi <yao@codesourcery.com>
14421
14422 * linux-low.c (linux_kill): Remove unused variable.
14423 (linux_stabilize_threads): Likewise.
14424 * server.c (start_inferior): Likewise.
14425 (queue_stop_reply_callback): Likewise.
14426 * tracepoint.c (do_action_at_tracepoint): Likewise.
14427
14428 2010-09-06 Yao Qi <yao@codesourcery.com>
14429
14430 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14431 on return.
14432
14433 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14434
14435 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14436
14437 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14438
14439 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14440 "$(IPA_DEPFILES)".
14441
14442 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14443
14444 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14445 gdbserver/lynx-ppc-low.c: New files.
14446 * Makefile.in (lynx_low_h): New variable.
14447 (lynx-low.o, lynx-ppc-low.o): New rules.
14448 * configure.ac: On LynxOS, link with -lnetinet.
14449 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14450 * configure: regenerate.
14451
14452 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14453
14454 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14455 * configure.ac: Add check for vasprintf and vsnprintf.
14456 * configure, config.in: Regenerate.
14457 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14458
14459 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14460
14461 * gdbreplay.c: Move include of alloca.h up, next to include of
14462 malloc.h.
14463 * server.h: Add include of malloc.h.
14464 * mem-break.c: Remove include of malloc.h.
14465 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14466
14467 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14468
14469 * Makefile.in (memmem.o): Build with -Wno-error.
14470
14471 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14472
14473 * utils.c (xsnprintf): Make non-static.
14474 * server.h: Add xsnprintf declaration.
14475 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14476 replace calls to snprintf by calls to xsnprintf throughout.
14477
14478 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14479
14480 * configure.ac: Add configure check for alloca.
14481 * configure, config.in: Regenerate.
14482 * server.h: Include alloca.h if it exists.
14483 * gdbreplay.c: Include alloca.h if it exists.
14484
14485 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14486
14487 * linux-low.c (__SIGRTMIN): Define if not already defined.
14488 (linux_create_inferior): Check for __ANDROID__ rather than
14489 __SIGRTMIN.
14490 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14491 are already deferred.
14492 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14493 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14494 stopped and already has a pending signal to report.
14495 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14496 a pending signal to report or is moving out of a jump pad.
14497 (linux_init_signals): Check for __ANDROID__ rather than
14498 __SIGRTMIN.
14499
14500 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14501
14502 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14503 debug_threads check. Avoid a linear search when not doing debug
14504 output.
14505
14506 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14507
14508 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14509 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14510 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14511 (process_event): Change local fd's type to gdb_fildes_t.
14512 (create_file_handler): Adjust prototype.
14513 (delete_file_handler): Adjust prototype.
14514 (handle_file_event): Adjust prototype. Use pfildes.
14515 (create_file_event): Adjsut prototype.
14516 * remote-utils.c (remote_desc, listen_desc): Change type to
14517 gdb_fildes_t.
14518 * server.h: New gdb_fildes_t typedef.
14519 [USE_WIN32API]: Include winsock2.h.
14520 (delete_file_handler, add_file_handler): Adjust prototypes.
14521 (pfildes): Declare.
14522 * utils.c (pfildes): New.
14523
14524 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14525
14526 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14527 * configure: Regenerate.
14528
14529 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14530
14531 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14532 (linux_done_accessing_memory): ... this.
14533 (linux_target_ops): Adjust.
14534 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14535 * nto-low.c (nto_target_ops): Adjust comment.
14536 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14537 * spu-low.c (spu_target_ops): Adjust comment.
14538 * target.h (target_ops): Rename unprepare_to_access_memory field
14539 to done_accessing_memory.
14540 (unprepare_to_access_memory): Rename to ...
14541 (done_accessing_memory): ... this.
14542
14543 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14544
14545 * linux-low.c (linux_prepare_to_access_memory): New.
14546 (linux_unprepare_to_access_memory): New.
14547 (linux_target_ops): Install them.
14548 * server.c (read_memory): Rename to ...
14549 (gdb_read_memory): ... this. Use
14550 prepare_to_access_memory/prepare_to_access_memory.
14551 (write_memory): Rename to ...
14552 (gdb_write_memory): ... this. Use
14553 prepare_to_access_memory/prepare_to_access_memory.
14554 (handle_search_memory_1): Adjust.
14555 (process_serial_event): Adjust.
14556 * target.h (struct target_ops): New fields
14557 prepare_to_access_memory and unprepare_to_access_memory.
14558 (prepare_to_access_memory, unprepare_to_access_memory): New.
14559 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14560 prepare_to_access_memory/prepare_to_access_memory.
14561 * nto-low.c (nto_target_ops): Adjust.
14562 * spu-low.c (spu_target_ops): Adjust.
14563 * win32-low.c (win32_target_ops): Adjust.
14564
14565 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14566
14567 * Makefile.in (WARN_CFLAGS): Get it from configure.
14568 (WERROR_CFLAGS): New.
14569 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14570 * configure.ac: Introduce --enable-werror, which adds -Werror to
14571 the compiler command line. Enabled by default. Disable with
14572 --disable-werror. Add -Wdeclaration-after-statement
14573 Wpointer-arith and -Wformat-nonliteral to warning flags.
14574 * configure: Regenerate.
14575
14576 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14577
14578 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14579
14580 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14581
14582 * gdbreplay.c (remote_error): New.
14583 (gdbchar): New.
14584 (expect): Use gdbchar. Check for error reading from GDB.
14585 Clarify sync error output.
14586 (play): Check for errors writing to GDB.
14587 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14588 * remote-utils.c (getpkt): Check for errors writing to the remote
14589 descriptor.
14590
14591 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14592
14593 * linux-low.c (linux_wait_1): Move non-debugging code out of
14594 `debug_threads' control.
14595
14596 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14597
14598 * linux-low.c (linux_wait_1): Don't set last_status here.
14599 * server.c (push_event, queue_stop_reply_callback): Assert we're
14600 not pushing a TARGET_WAITKIND_IGNORE event.
14601 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14602 (myresume, handle_target_event): Set the thread's last_resume_kind
14603 and last_status from the target returned status.
14604
14605 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14606
14607 PR threads/10729
14608
14609 * linux-x86-low.c (update_debug_registers_callback): New.
14610 (i386_dr_low_set_addr): Use it.
14611 (i386_dr_low_get_addr): New.
14612 (i386_dr_low_set_control): Use update_debug_registers_callback.
14613 (i386_dr_low_get_control): New.
14614 (i386_dr_low_get_status): Adjust.
14615 * linux-low.c (linux_stop_lwp): New.
14616 * linux-low.h (linux_stop_lwp): Declare.
14617
14618 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14619 argument instead of a i386_debug_reg_state.
14620 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14621 a i386_debug_reg_state.
14622 (i386_insert_aligned_watchpoint): Adjust.
14623 (i386_remove_aligned_watchpoint): Adjust.
14624 (i386_low_stopped_data_address): Read the debug registers from the
14625 inferior instead of from the mirrors.
14626 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14627 (i386_dr_low_get_addr): Declare.
14628 (i386_dr_low_get_control): Declare.
14629 (i386_dr_low_get_status): Change prototype.
14630
14631 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14632 (i386_dr_low_get_addr): New.
14633 (i386_dr_low_get_control): New.
14634 (i386_dr_low_get_status): Adjust prototype. Return
14635 dr_status_mirror.
14636 (i386_initial_stuff): Clear dr_status_mirror and
14637 dr_control_mirror.
14638 (i386_get_thread_context): Adjust.
14639 (i386_set_thread_context): Adjust.
14640 (i386_thread_added): Adjust.
14641
14642 2010-08-24 Pedro Alves <pedro@codesourcery.com>
14643
14644 * linux-low.h (linux_thread_area): Delete declaration.
14645
14646 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14647
14648 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14649 after its termination.
14650
14651 2010-08-09 Pedro Alves <pedro@codesourcery.com>
14652
14653 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14654 (gdb_wants_all_stopped): Delete.
14655 (linux_wait_1): Don't call them.
14656 * server.c (handle_v_cont): Tag all threads as want-stopped.
14657 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14658 stopped as "client-wants-stopped".
14659
14660 2010-07-31 Pedro Alves <pedro@codesourcery.com>
14661
14662 * Makefile.in (signals_h): New.
14663 (server_h): Depend on it.
14664 (server.o): Don't depend on $(signals_def).
14665 (signals.o): Depend on $(signals_def).
14666
14667 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14668
14669 * Makefile.in (signals_def): New.
14670 (server_h): Append include/gdb/signals.h and signals_def.
14671 (server.o): Append signals_def.
14672
14673 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14674
14675 * server.c (handle_target_event): Use target_signal_to_host for
14676 resume_info.sig initialization.
14677 * target.h (struct thread_resume) <sig>: New comment.
14678
14679 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14680
14681 * server.c (handle_query): strcpy() the returned string from paddress()
14682 instead of sprintf().
14683 * utils.c (paddress): Return phex_nz().
14684
14685 2010-07-07 Joel Brobecker <brobecker@adacore.com>
14686
14687 * server.c (handle_v_cont): Call mourn_inferior if process
14688 just exited.
14689 (myresume): Likewise.
14690
14691 2010-07-01 Pedro Alves <pedro@codesourcery.com>
14692
14693 Static tracepoints, and integration with UST.
14694
14695 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14696 * mem-break.c (uninsert_all_breakpoints)
14697 (reinsert_all_breakpoints): New.
14698 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14699 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14700 (gdb_agent_ust_loaded, helper_thread_id)
14701 (gdb_agent_helper_thread_id): New macros.
14702 (struct ipa_sym_addresses): Add addr_ust_loaded,
14703 addr_helper_thread_id, addr_cmd_buf.
14704 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14705 (in_process_agent_loaded_ust): New.
14706 (write_e_ust_not_loaded): New.
14707 (maybe_write_ipa_ust_not_loaded): New.
14708 (struct collect_static_trace_data_action): New.
14709 (enum tracepoint_type) <static_tracepoint>: New.
14710 (struct tracepoint) <handle>: Mention static tracepoints.
14711 (struct static_tracepoint_ctx): New.
14712 (CMD_BUF_SIZE): New.
14713 (add_tracepoint_action): Handle static tracepoint actions.
14714 (unprobe_marker_at): New.
14715 (clear_installed_tracepoints): Handle static tracepoints.
14716 (cmd_qtdp): Handle static tracepoints.
14717 (probe_marker_at): New.
14718 (cmd_qtstart): Handle static tracepoints.
14719 (response_tracepoint): Handle static tracepoints.
14720 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14721 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14722 (get_context_regcache): Handle static tracepoints.
14723 (do_action_at_tracepoint): Handle static tracepoint actions.
14724 (traceframe_find_block_type): Handle static trace data blocks.
14725 (traceframe_read_sdata): New.
14726 (download_tracepoints): Download static tracepoint actions.
14727 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14728 (GDB_PROBE_NAME): New.
14729 (ust_ops): New.
14730 (GET_UST_SYM): New.
14731 (USTF): New.
14732 (dlsym_ust): New.
14733 (ust_marker_to_static_tracepoint): New.
14734 (gdb_probe): New.
14735 (collect_ust_data_at_tracepoint): New.
14736 (gdb_ust_probe): New.
14737 (UNIX_PATH_MAX, SOCK_DIR): New.
14738 (gdb_ust_connect_sync_socket): New.
14739 (resume_thread, stop_thread): New.
14740 (run_inferior_command): New.
14741 (init_named_socket): New.
14742 (gdb_ust_socket_init): New.
14743 (cstr_to_hexstr): New.
14744 (next_st): New.
14745 (first_marker, next_marker): New.
14746 (response_ust_marker): New.
14747 (cmd_qtfstm, cmd_qtsstm): New.
14748 (unprobe_marker_at, probe_marker_at): New.
14749 (cmd_qtstmat, gdb_ust_thread): New.
14750 (gdb_ust_init): New.
14751 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14752 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14753 (ST_REGENTRY): New.
14754 (x86_64_st_collect_regmap): New.
14755 (X86_64_NUM_ST_COLLECT_GREGS): New.
14756 (AMD64_RIP_REGNUM): New.
14757 (supply_static_tracepoint_registers): New.
14758 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14759 (ST_REGENTRY): New.
14760 (i386_st_collect_regmap): New.
14761 (i386_NUM_ST_COLLECT_GREGS): New.
14762 (supply_static_tracepoint_registers): New.
14763 * server.c (handle_query): Handle qXfer:statictrace:read.
14764 <qSupported>: Report support for StaticTracepoints, and
14765 qXfer:statictrace:read features.
14766 * server.h (traceframe_read_sdata)
14767 (supply_static_tracepoint_registers): Declare.
14768 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14769 (unpack_varlen_hex): Include in IPA build.
14770 * Makefile.in (ustlibs, ustinc): New.
14771 (IPA_OBJS): Add remote-utils-ipa.o.
14772 ($(IPA_LIB)): Link -ldl and -lpthread.
14773 (UST_CFLAGS): New.
14774 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14775 * config.in, configure: Regenerate.
14776
14777 2010-06-20 Ian Lance Taylor <iant@google.com>
14778 Pedro Alves <pedro@codesourcery.com>
14779
14780 * linux-x86-low.c (always_true): Delete.
14781 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14782 trying to fool the compiler with always_true.
14783
14784 2010-06-20 Pedro Alves <pedro@codesourcery.com>
14785
14786 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14787 conditions in gdbserver.
14788
14789 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14790
14791 * spu-low.c (spu_read_memory): Wrap around local store limit.
14792 (spu_write_memory): Likewise.
14793
14794 2010-06-15 Pedro Alves <pedro@codesourcery.com>
14795
14796 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14797 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14798 LONGEST uses.
14799 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14800 uses.
14801 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14802 uses with LONGEST uses.
14803
14804 2010-06-14 Stan Shebs <stan@codesourcery.com>
14805 Pedro Alves <pedro@codesourcery.com>
14806
14807 Bytecode compiler.
14808
14809 * linux-x86-low.c: Include limits.h.
14810 (add_insns): New.
14811 (always_true): New.
14812 (EMIT_ASM): New.
14813 (EMIT_ASM32): New.
14814 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14815 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14816 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14817 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14818 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14819 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14820 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14821 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14822 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14823 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14824 (amd64_emit_void_call_2): New.
14825 (amd64_emit_ops): New.
14826 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14827 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14828 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14829 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14830 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14831 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14832 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14833 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14834 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14835 (i386_emit_stack_adjust, i386_emit_int_call_1)
14836 (i386_emit_void_call_2): New.
14837 (i386_emit_ops): New.
14838 (x86_emit_ops): New.
14839 (the_low_target): Install x86_emit_ops.
14840 * server.h (struct emit_ops): New.
14841 (get_raw_reg_func_addr): Declare.
14842 (current_insn_ptr, emit_error): Declare.
14843 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14844 (set_trace_state_variable_value): New defines.
14845 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14846 addr_get_trace_state_variable_value and
14847 addr_set_trace_state_variable_value.
14848 (symbol_list): New fields for get_raw_reg,
14849 get_trace_state_variable_value and set_trace_state_variable_value.
14850 (condfn): New typedef.
14851 (struct tracepoint): New field `compiled_cond'.
14852 (do_action_at_tracepoint): Clear compiled_cond.
14853 (get_trace_state_variable_value, set_trace_state_variable_value):
14854 Export in the IPA.
14855 (condition_true_at_tracepoint): If there's a compiled condition,
14856 run that.
14857 (current_insn_ptr, emit_error): New globals.
14858 (struct bytecode_address): New.
14859 (get_raw_reg_func_addr): New.
14860 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14861 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14862 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14863 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14864 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14865 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14866 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14867 (compile_tracepoint_condition, compile_bytecodes): New.
14868 * target.h (emit_ops): Forward declare.
14869 (struct target_ops): New field emit_ops.
14870 (target_emit_ops): New.
14871 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14872 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14873 * linux-low.c (linux_emit_ops): New.
14874 (linux_target_ops): Install it.
14875 * linux-low.h (struct linux_target_ops): New field emit_ops.
14876
14877 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14878
14879 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14880 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14881
14882 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14883 Stan Shebs <stan@codesourcery.com>
14884
14885 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14886 (all): Depend on $(extra_libraries).
14887 (install-only): Install the IPA.
14888 (IPA_OBJS, IPA_LIB): New.
14889 (clean): Remove the IPA lib.
14890 (IPAGENT_CFLAGS): New.
14891 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14892 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14893 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14894 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14895 * configure.ac: Check for atomic builtins support in the compiler.
14896 (IPA_DEPFILES, extra_libraries): Define.
14897 * configure.srv (ipa_obj): Add description.
14898 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14899 (i[34567]86-*-linux*): Set ipa_obj.
14900 (x86_64-*-linux*): Set ipa_obj.
14901 * linux-low.c (stabilizing_threads): New.
14902 (supports_fast_tracepoints): New.
14903 (linux_detach): Stabilize threads before detaching.
14904 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14905 the lwp is either not stabilizing, or is moving out of a jump pad.
14906 (linux_fast_tracepoint_collecting): New.
14907 (maybe_move_out_of_jump_pad): New.
14908 (enqueue_one_deferred_signal): New.
14909 (dequeue_one_deferred_signal): New.
14910 (linux_wait_for_event_1): If moving out of a jump pad, defer
14911 pending signals to later.
14912 (linux_stabilize_threads): New.
14913 (linux_wait_1): Check if threads need moving out of jump pads, and
14914 do it if so.
14915 (stuck_in_jump_pad_callback): New.
14916 (move_out_of_jump_pad_callback): New.
14917 (lwp_running): New.
14918 (linux_resume_one_lwp): Handle moving out of jump pads.
14919 (linux_set_resume_request): Dequeue deferred signals.
14920 (need_step_over_p): Also step over fast tracepoint jumps.
14921 (start_step_over): Also uninsert fast tracepoint jumps.
14922 (finish_step_over): Also reinsert fast tracepoint jumps.
14923 (linux_install_fast_tracepoint_jump): New.
14924 (linux_target_ops): Install linux_stabilize_threads and
14925 linux_install_fast_tracepoint_jump_pad.
14926 * linux-low.h (linux_target_ops) <get_thread_area,
14927 install_fast_tracepoint_jump_pad>: New fields.
14928 (struct lwp_info) <collecting_fast_tracepoint,
14929 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14930 (linux_get_thread_area): Declare.
14931 * linux-x86-low.c (jump_insn): New.
14932 (x86_get_thread_area): New.
14933 (append_insns): New.
14934 (push_opcode): New.
14935 (amd64_install_fast_tracepoint_jump_pad): New.
14936 (i386_install_fast_tracepoint_jump_pad): New.
14937 (x86_install_fast_tracepoint_jump_pad): New.
14938 (the_low_target): Install x86_get_thread_area and
14939 x86_install_fast_tracepoint_jump_pad.
14940 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14941 (struct fast_tracepoint_jump): New.
14942 (fast_tracepoint_jump_insn): New.
14943 (fast_tracepoint_jump_shadow): New.
14944 (find_fast_tracepoint_jump_at): New.
14945 (fast_tracepoint_jump_here): New.
14946 (delete_fast_tracepoint_jump): New.
14947 (set_fast_tracepoint_jump): New.
14948 (uninsert_fast_tracepoint_jumps_at): New.
14949 (reinsert_fast_tracepoint_jumps_at): New.
14950 (set_breakpoint_at): Use write_inferior_memory.
14951 (uninsert_raw_breakpoint): Use write_inferior_memory.
14952 (check_mem_read): Mask out fast tracepoint jumps.
14953 (check_mem_write): Mask out fast tracepoint jumps.
14954 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14955 (set_fast_tracepoint_jump): Declare.
14956 (delete_fast_tracepoint_jump)
14957 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14958 (reinsert_fast_tracepoint_jumps_at): Declare.
14959 * regcache.c: Don't compile many functions when building the
14960 in-process agent library.
14961 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14962 the register buffer in the heap.
14963 (free_register_cache): If the register buffer isn't owned by the
14964 regcache, don't free it.
14965 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14966 pre-existing register caches.
14967 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14968 type.
14969 (convert_ascii_to_int): : Constify `from' parameter type.
14970 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14971 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14972 the needed buffer in-place.
14973 (relocate_instruction): New.
14974 * server.c (handle_query) <qSymbols>: If the target supports
14975 tracepoints, give it a chance of looking up symbols. Report
14976 support for fast tracepoints.
14977 (handle_status): Stabilize threads.
14978 (process_serial_event): Adjust.
14979 * server.h (struct fast_tracepoint_jump): Forward declare.
14980 (struct process_info) <fast_tracepoint_jumps>: New field.
14981 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14982 (decode_X_packet, decode_M_packet): Adjust.
14983 (relocate_instruction): Declare.
14984 (in_process_agent_loaded): Declare.
14985 (tracepoint_look_up_symbols): Declare.
14986 (struct fast_tpoint_collect_status): Declare.
14987 (fast_tracepoint_collecting): Declare.
14988 (force_unlock_trace_buffer): Declare.
14989 (handle_tracepoint_bkpts): Declare.
14990 (initialize_low_tracepoint)
14991 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14992 * target.h (struct target_ops) <stabilize_threads,
14993 install_fast_tracepoint_jump_pad>: New fields.
14994 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14995 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14996 [HAVE_STDINT_H]: Include stdint.h.
14997 (trace_debug_1): Rename to ...
14998 (trace_vdebug): ... this.
14999 (trace_debug): Rename to ...
15000 (trace_debug_1): ... this. Add `level' parameter.
15001 (trace_debug): New.
15002 (ATTR_USED, ATTR_NOINLINE): New.
15003 (IP_AGENT_EXPORT): New.
15004 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15005 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15006 (about_to_request_buffer_space, trace_buffer_is_full)
15007 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15008 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15009 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15010 (traceframe_write_count, traceframes_created)
15011 (trace_state_variables)
15012 New renaming defines.
15013 (struct ipa_sym_addresses): New.
15014 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15015 (symbol_list): New.
15016 (ipa_sym_addrs): New.
15017 (all_tracepoint_symbols_looked_up): New.
15018 (in_process_agent_loaded): New.
15019 (write_e_ipa_not_loaded): New.
15020 (maybe_write_ipa_not_loaded): New.
15021 (tracepoint_look_up_symbols): New.
15022 (debug_threads) [IN_PROCESS_AGENT]: New.
15023 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15024 (UNKNOWN_SIDE_EFFECTS): New.
15025 (stop_tracing): New.
15026 (flush_trace_buffer): New.
15027 (stop_tracing_bkpt): New.
15028 (flush_trace_buffer_bkpt): New.
15029 (read_inferior_integer): New.
15030 (read_inferior_uinteger): New.
15031 (read_inferior_data_pointer): New.
15032 (write_inferior_data_pointer): New.
15033 (write_inferior_integer): New.
15034 (write_inferior_uinteger): New.
15035 (struct collect_static_trace_data_action): Delete.
15036 (enum tracepoint_type): New.
15037 (struct tracepoint) <type>: New field `type'.
15038 <actions_str, step_actions, step_actions_str>: Only include in
15039 GDBserver.
15040 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15041 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15042 (tracepoints): Use IP_AGENT_EXPORT.
15043 (last_tracepoint): Don't include in the IPA.
15044 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15045 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15046 (alloced_trace_state_variables): New.
15047 (trace_state_variables): Use IP_AGENT_EXPORT.
15048 (traceframe_t): Delete unused variable.
15049 (circular_trace_buffer): Don't include in the IPA.
15050 (trace_buffer_start): Delete.
15051 (struct trace_buffer_control): New.
15052 (trace_buffer_free): Delete.
15053 (struct ipa_trace_buffer_control): New.
15054 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15055 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15056 New.
15057 (trace_buffer_ctrl): New.
15058 (TRACE_BUFFER_CTRL_CURR): New.
15059 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15060 Reimplement as macros.
15061 (trace_buffer_wrap): Delete.
15062 (traceframe_write_count, traceframe_read_count)
15063 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15064 (struct tracepoint_hit_ctx) <type>: New field.
15065 (struct fast_tracepoint_ctx): New.
15066 (memory_barrier): New.
15067 (cmpxchg): New.
15068 (record_tracepoint_error): Update atomically in the IPA.
15069 (clear_inferior_trace_buffer): New.
15070 (about_to_request_buffer_space): New.
15071 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15072 updating the same buffer.
15073 (add_tracepoint): Default the tracepoint's type to trap
15074 tracepoint, and orig_size to -1.
15075 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15076 internal variables.
15077 (create_trace_state_variable): New parameter `gdb'. Handle it.
15078 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15079 (cmd_qtdp): Handle fast tracepoints.
15080 (cmd_qtdv): Adjust.
15081 (max_jump_pad_size): New.
15082 (gdb_jump_pad_head): New.
15083 (get_jump_space_head): New.
15084 (claim_jump_space): New.
15085 (sort_tracepoints): New.
15086 (MAX_JUMP_SIZE): New.
15087 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15088 IPA.
15089 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15090 support. Upload fast traceframes, and delete internal IPA
15091 breakpoints.
15092 (stop_tracing_handler): New.
15093 (flush_trace_buffer_handler): New.
15094 (cmd_qtstop): Upload fast tracepoints.
15095 (response_tracepoint): Handle fast tracepoints.
15096 (tracepoint_finished_step): Upload fast traceframes. Set the
15097 tracepoint hit context's tracepoint type.
15098 (handle_tracepoint_bkpts): New.
15099 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15100 type. Add comment about fast tracepoints.
15101 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15102 non-existing action_str field.
15103 (get_context_regcache): Handle fast tracepoints.
15104 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15105 to the regcache.
15106 (fast_tracepoint_from_jump_pad_address): New.
15107 (fast_tracepoint_from_ipa_tpoint_address): New.
15108 (collecting_t): New.
15109 (force_unlock_trace_buffer): New.
15110 (fast_tracepoint_collecting): New.
15111 (collecting): New.
15112 (gdb_collect): New.
15113 (write_inferior_data_ptr): New.
15114 (target_tp_heap): New.
15115 (target_malloc): New.
15116 (download_agent_expr): New.
15117 (UALIGN): New.
15118 (download_tracepoints): New.
15119 (download_trace_state_variables): New.
15120 (upload_fast_traceframes): New.
15121 (IPA_FIRST_TRACEFRAME): New.
15122 (IPA_NEXT_TRACEFRAME_1): New.
15123 (IPA_NEXT_TRACEFRAME): New.
15124 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15125 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15126 (gdb_jump_pad_buffer_end): New.
15127 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15128 (initialize_tracepoint): Adjust.
15129 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15130 buffer. Initialize the low module.
15131 * utils.c (PREFIX, TOOLNAME): New.
15132 (malloc_failure): Use PREFIX.
15133 (error): In the IPA, an error causes an exit.
15134 (fatal, warning): Use PREFIX.
15135 (internal_error): Use TOOLNAME.
15136 (NUMCELLS): Increase to 10.
15137 * configure, config.in: Regenerate.
15138
15139 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15140
15141 * server.c (handle_query) <qSupported>: Do two passes over the
15142 qSupported string to avoid nesting strtok.
15143
15144 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15145
15146 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15147 (CDEPS): New.
15148 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15149 -Wl,--dynamic-list.
15150 * configure: Regenerate.
15151 * proc-service.list: New.
15152
15153 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15154
15155 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15156 New comment.
15157
15158 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15159
15160 * gdbreplay.c (remote_open): Check error return from socket() call by
15161 its equality to -1 not by it being negative.
15162 * remote-utils.c (remote_open): Likewise.
15163
15164 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15165
15166 * config.h: Regenerate.
15167
15168 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15169
15170 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15171 doesn't provide PTRACE_GET_THREAD_AREA.
15172
15173 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15174
15175 * linux-m68k-low.c: Include <asm/ptrace.h>
15176 (ps_get_thread_area): Implement.
15177
15178 2010-05-03 Doug Evans <dje@google.com>
15179
15180 * event-loop.c (struct callback_event): New struct.
15181 (callback_list): New global.
15182 (append_callback_event, delete_callback_event): New functions.
15183 (process_callback): New function.
15184 (start_event_loop): Call it.
15185 * remote-utils.c (NOT_SCHEDULED): Define.
15186 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15187 moved out of readchar.
15188 (readchar): Rewrite. Call reschedule before returning.
15189 (reset_readchar): New function.
15190 (remote_close): Call it.
15191 (process_remaining, reschedule): New functions.
15192 * server.h (callback_handler_func): New typedef.
15193 (append_callback_event, delete_callback_event): Declare.
15194
15195 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15196
15197 * proc-service.c (ps_pglobal_lookup): Use
15198 thread_db_look_up_one_symbol.
15199 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15200 parameter. Use it instead of all_symbols_looked_up.
15201 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15202 field.
15203 (all_symbols_looked_up): Don't declare.
15204 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15205 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15206 field.
15207 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15208 Set all_symbols_looked_up here.
15209 (thread_db_look_up_one_symbol): New.
15210 (thread_db_get_tls_address): Adjust.
15211 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15212 thread_db object on the heap, and tentatively set it in the
15213 process structure.
15214 (thread_db_init): Don't set all_symbols_looked_up here.
15215 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15216
15217 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15218
15219 * linux-low.c (linux_kill, linux_detach): Adjust.
15220 (status_pending_p_callback): Remove redundant statement. Check
15221 for !TARGET_WAITIKIND_IGNORE, instead of
15222 TARGET_WAITKIND_STOPPED.
15223 (handle_tracepoints): Make sure LWP is locked. Adjust.
15224 (linux_wait_for_event_1): Adjust.
15225 (linux_cancel_breakpoints): New.
15226 (unsuspend_one_lwp): New.
15227 (unsuspend_all_lwps): New.
15228 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15229 (send_sigstop_callback): Change return type to int, add new
15230 `except' parameter and handle it.
15231 (suspend_and_send_sigstop_callback): New.
15232 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15233 pass them down. If SUSPEND, also increment the lwp's suspend
15234 count.
15235 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15236 (need_step_over_p): Don't consider suspended LWPs.
15237 (start_step_over): Adjust.
15238 (proceed_one_lwp): Change return type to int, add new `except'
15239 parameter and handle it.
15240 (unsuspend_and_proceed_one_lwp): New.
15241 (proceed_all_lwps): Use find_inferior instead of
15242 for_each_inferior.
15243 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15244 also decrement the suspend count of LWPs. Pass `except' down,
15245 instead of hacking its suspend count.
15246 (linux_pause_all): Add `freeze' parameter. Adjust.
15247 (linux_unpause_all): New.
15248 (linux_target_ops): Install linux_unpause_all.
15249 * server.c (handle_status): Adjust.
15250 * target.h (struct target_ops): New fields `unpause_all' and
15251 `cancel_breakpoints'. Add new parameter to `pause_all'.
15252 (pause_all): Add new `freeze' parameter.
15253 (unpause_all): New.
15254 (cancel_breakpoints): New.
15255 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15256 cancel breakpoints.
15257 (cmd_qtstart): Pause threads.
15258 (stop_tracing): Pause threads, and cancel breakpoints.
15259 * win32-low.c (win32_target_ops): Adjust.
15260
15261 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15262
15263 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15264 the inferior right away from here...
15265 (linux_wait_1): ... to here, and adjust to check the thread's
15266 last_resume_kind instead of the lwp's step or stop_expected flags.
15267
15268 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15269
15270 * README: Use consistent `GDB' and `GDBserver' spellings.
15271
15272 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15273
15274 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15275 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15276 (linux_detach_one_lwp): Assume the lwp is stopped.
15277 (any_thread_of): Delete.
15278 (linux_detach): Stop all lwps here. Don't blindly delete all
15279 breakpoints.
15280 (delete_lwp_callback): New.
15281 (linux_mourn): Delete all lwps of the process that is gone.
15282 (linux_wait_1): Don't delete the last lwp of the process here.
15283 * mem-break.h (mark_breakpoints_out): Declare.
15284 * mem-break.c (mark_breakpoints_out): New.
15285 (free_all_breakpoints): Use it.
15286 * server.c (handle_target_event): If the process is gone, mark
15287 breakpoints out.
15288 * thread-db.c (struct thread_db) <create_bp>: New field.
15289 (thread_db_enable_reporting): Fix prototype. Store a thread event
15290 breakpoint reference in the thread_db struct.
15291 (thread_db_load_search): Clear the thread_db object.
15292 (try_thread_db_load_1): Ditto.
15293 (switch_to_process): New.
15294 (disable_thread_event_reporting): Use it.
15295 (remove_thread_event_breakpoints): New.
15296 (thread_db_detach, thread_db_mourn): Use it.
15297
15298 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15299
15300 * linux-low.c (linux_enable_event_reporting): New.
15301 (linux_wait_for_event_1, handle_extended_wait): Use it.
15302
15303 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15304
15305 * linux-low.c (linux_kill_one_lwp, linux_kill)
15306 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15307 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15308 SIGSTOP even if the LWP is stopped.
15309 (send_sigstop_callback): New.
15310 (stop_all_lwps): Use send_sigstop_callback instead.
15311 (linux_resume_one_thread): Adjust.
15312 (proceed_one_lwp): Still proceed an LWP that the client has
15313 requested to stop, if we haven't reported it as stopped yet. Make
15314 sure that LWPs the client want stopped, have a pending SIGSTOP.
15315
15316 2010-04-26 Doug Evans <dje@google.com>
15317
15318 * server.c (handle_general_set): Make static.
15319
15320 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15321 Print received char after testing for error/eof instead of before.
15322 (input_interrupt): Tweak comment.
15323
15324 2010-04-23 Doug Evans <dje@google.com>
15325
15326 * server.c (start_inferior): Print inferior argv if --debug.
15327
15328 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15329
15330 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15331 * nto-x86-low.c: Include server.h
15332
15333 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15334
15335 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15336 be consistent with other sources of this directory.
15337 (init_registers_amd64): Correct name of source file of this function
15338 in the comment.
15339
15340 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15341
15342 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15343 64-bit executables.
15344
15345 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15346
15347 * win32-i386-low.c: Add 64-bit support.
15348 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15349 (init_registers_amd64): Declare.
15350 (mappings): Add 64-bit version of array.
15351 (init_windows_x86): New function.
15352 (the_low_target): Change init_arch field to init_windows_x86.
15353
15354 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15355
15356 * win32-low.c: Adapt to support also 64-bit architecture.
15357 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15358 (get_image_name): Use SIZE_T type for local variable `done'.
15359 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15360 (toolhelp_get_dll_name): Idem.
15361 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15362 Use uintptr_t typecast to avoid warning.
15363 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15364 (handle_exception): Use phex_nz to avoid warning.
15365 (win32_wait): Remove unused local variable `process'.
15366
15367 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15368
15369 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15370 `amd64-avx.o'.
15371
15372 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15373
15374 * configure.ac: Use `ws2_32' library for srv_mingw.
15375 * configure: Regenerate.
15376 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15377 * remote-utils.c: Likewise.
15378
15379 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15380
15381 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15382 if __x86_64__ is defined.
15383
15384 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15385
15386 * configure: Regenerate.
15387
15388 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15389
15390 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15391 * target.h (target_ops): New get_tib_address field.
15392 * win32-low.h (win32_thread_info): Add thread_local_base field.
15393 * win32-low.c (child_add_thread): Add tlb argument.
15394 Set thread_local_base field to TLB.
15395 (get_child_debug_event): Adapt to child_add_thread change.
15396 (win32_get_tib_address): New function.
15397 (win32_target_ops): Set get_tib_address field to
15398 win32_get_tib_address.
15399 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15400
15401 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15402
15403 * linux-low.c (linux_mourn): Also remove the process.
15404 * server.c (handle_target_event): Don't remove the process here.
15405 * nto-low.c (nto_mourn): New.
15406 (nto_target_ops): Install it.
15407 * spu-low.c (spu_mourn): New.
15408 (spu_target_ops): Install it.
15409 * win32-low.c (win32_mourn): New.
15410 (win32_target_ops): Install it.
15411
15412 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15413
15414 * server.h (buffer_xml_printf): Remove redundant `;'.
15415
15416 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15417
15418 * regcache.c (set_register_cache): Invalidate regcaches before
15419 changing the register cache layout.
15420 (regcache_invalidate_one): Allow a NULL regcache.
15421 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15422 regcaches before changing the register cache layout or the target
15423 regsets.
15424
15425 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15426
15427 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15428 variable warning on Linux/x86-64.
15429
15430 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15431
15432 GDBserver disconnected tracing support.
15433
15434 * linux-low.c (linux_remove_process): Delete.
15435 (add_lwp): Don't set last_resume_kind here.
15436 (linux_kill): Use `mourn'.
15437 (linux_detach): Use `thread_db_detach', and `mourn'.
15438 (linux_mourn): New.
15439 (linux_attach_lwp_1): Adjust comment.
15440 (linux_attach): last_resume_kind moved the thread_info; adjust.
15441 (status_pending_p_callback): Adjust.
15442 (linux_wait_for_event_1): Adjust.
15443 (count_events_callback, select_singlestep_lwp_callback)
15444 (select_event_lwp_callback, cancel_breakpoints_callback)
15445 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15446 (proceed_one_lwp): Adjust.
15447 (linux_async): Add debug output.
15448 (linux_thread_stopped): New.
15449 (linux_pause_all): New.
15450 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15451 linux_pause_all.
15452 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15453 (thread_db_free): Delete declaration.
15454 (thread_db_detach, thread_db_mourn): Declare.
15455 * thread-db.c (thread_db_init): Use thread_db_mourn.
15456 (thread_db_free): Delete, split in two.
15457 (disable_thread_event_reporting): New.
15458 (thread_db_detach): New.
15459 (thread_db_mourn): New.
15460
15461 * server.h (struct thread_info) <last_resume_kind>: New field.
15462 <attached>: Add comment.
15463 <gdb_detached>: New field.
15464 (handler_func): Change return type to int.
15465 (handle_serial_event, handle_target_event): Ditto.
15466 (gdb_connected): Declare.
15467 (tracing): Delete.
15468 (disconnected_tracing): Declare.
15469 (stop_tracing): Declare.
15470
15471 * server.c (handle_query) <qSupported>: Report support for
15472 disconnected tracing.
15473 (queue_stop_reply_callback): Account for running threads.
15474 (gdb_wants_thread_stopped): New.
15475 (gdb_wants_all_threads_stopped): New.
15476 (gdb_reattached_process): New.
15477 (handle_status): Clear the `gdb_detached' flag of all processes.
15478 In all-stop, stop all threads.
15479 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15480 (process_serial_event): If the remote connection breaks, or if an
15481 exit was forced with "monitor exit", force an event loop exit.
15482 Handle disconnected tracing on detach.
15483 (handle_serial_event): Adjust.
15484 (handle_target_event): If GDB isn't connected, forward events back
15485 to the inferior, unless the last process exited, in which case,
15486 exit gdbserver. Adjust interface.
15487
15488 * remote-utils.c (remote_open): Don't block in accept. Instead
15489 register an event loop source on the listen socket file
15490 descriptor. Refactor bits into ...
15491 (listen_desc): ... this new global.
15492 (gdb_connected): ... this new function.
15493 (enable_async_notification): ... this new function.
15494 (handle_accept_event): ... this new function.
15495 (remote_close): Clear remote_desc.
15496
15497 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15498
15499 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15500 New fields.
15501 (mourn_inferior): Define.
15502 (target_process_qsupported): Avoid the dangling else problem.
15503 (thread_stopped): Define.
15504 (pause_all): Define.
15505 (target_waitstatus_to_string): Declare.
15506 * target.c (target_waitstatus_to_string): New.
15507
15508 * tracepoint.c (tracing): Make extern.
15509 (disconnected_tracing): New.
15510 (stop_tracing): Make extern. Handle tracing stops due to GDB
15511 disconnecting.
15512 (cmd_qtdisconnected): New.
15513 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15514 (handle_tracepoint_general_set): Handle QTDisconnected.
15515
15516 * event-loop.c (event_handler_func): Change return type to int.
15517 (process_event): Bail out if the event handler wants the event
15518 loop to stop.
15519 (handle_file_event): Ditto.
15520 (start_event_loop): Bail out if the event handler wants the event
15521 loop to stop.
15522
15523 * nto-low.c (nto_target_ops): Adjust.
15524 * spu-low.c (spu_wait): Don't remove the process here.
15525 (spu_target_ops): Adjust.
15526 * win32-low.c (win32_wait): Don't remove the process here.
15527 (win32_target_ops): Adjust.
15528
15529 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15530
15531 * regcache.c (realloc_register_cache): Invalidate inferior's
15532 regcache before recreating it.
15533
15534 2010-04-09 Pedro Alves <pedro@codesourcery.com>
15535
15536 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15537
15538 2010-04-09 Stan Shebs <stan@codesourcery.com>
15539 Pedro Alves <pedro@codesourcery.com>
15540
15541 * server.h (LONGEST): New.
15542 (struct thread_info) <while_stepping>: New field.
15543 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15544 Declare.
15545 (initialize_tracepoint, handle_tracepoint_general_set)
15546 (handle_tracepoint_query, tracepoint_finished_step)
15547 (tracepoint_was_hit, release_while_stepping_state_list):
15548 (current_traceframe): Declare.
15549 * server.c (handle_general_set): Handle tracepoint packets.
15550 (read_memory): New.
15551 (write_memory): New.
15552 (handle_search_memory_1): Use read_memory.
15553 (handle_query): Report support for conditional tracepoints, trace
15554 state variables, and tracepoint sources. Handle tracepoint
15555 queries.
15556 (main): Initialize the tracepoints module.
15557 (process_serial_event): Handle traceframe reads/writes.
15558
15559 * linux-low.c (handle_tracepoints): New.
15560 (linux_wait_1): Call it.
15561 (linux_resume_one_lwp): Handle while-stepping.
15562 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15563 (linux_target_ops): Install them.
15564 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15565 New field.
15566 * linux-x86-low.c (x86_supports_tracepoints): New.
15567 (the_low_target). Install it.
15568
15569 * mem-break.h (delete_breakpoint): Declare.
15570 * mem-break.c (delete_breakpoint): Make external.
15571
15572 * target.h (struct target_ops): Add `supports_tracepoints',
15573 `read_pc', and `write_pc' fields.
15574 (target_supports_tracepoints): Define.
15575 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15576 (phex_nz): New.
15577
15578 * regcache.h (struct regcache) <registers_owned>: New field.
15579 (init_register_cache, regcache_cpy): Declare.
15580 (regcache_read_pc, regcache_write_pc): Declare.
15581 (register_cache_size): Declare.
15582 (supply_regblock): Declare.
15583 * regcache.c (init_register_cache): New.
15584 (new_register_cache): Use it.
15585 (regcache_cpy): New.
15586 (register_cache_size): New.
15587 (supply_regblock): New.
15588 (regcache_read_pc, regcache_write_pc): New.
15589
15590 * tracepoint.c: New.
15591
15592 * Makefile.in (OBS): Add tracepoint.o.
15593 (tracepoint.o): New rule.
15594
15595 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15596
15597 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15598 (i386-mmx.o): New.
15599 (i386-mmx.c): Likewise.
15600 (i386-mmx-linux.o): Likewise.
15601 (i386-mmx-linux.c): Likewise.
15602
15603 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15604 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15605 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15606 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15607
15608 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15609 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15610 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15611
15612 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15613
15614 * Makefile.in (clean): Updated.
15615 (i386-avx.o): New.
15616 (i386-avx.c): Likewise.
15617 (i386-avx-linux.o): Likewise.
15618 (i386-avx-linux.c): Likewise.
15619 (amd64-avx.o): Likewise.
15620 (amd64-avx.c): Likewise.
15621 (amd64-avx-linux.o): Likewise.
15622 (amd64-avx-linux.c): Likewise.
15623
15624 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15625 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15626 (srv_amd64_regobj): Add amd64-avx.o.
15627 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15628 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15629 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15630 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15631 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15632 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15633 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15634
15635 * i387-fp.c: Include "i386-xstate.h".
15636 (i387_xsave): New.
15637 (i387_cache_to_xsave): Likewise.
15638 (i387_xsave_to_cache): Likewise.
15639 (x86_xcr0): Likewise.
15640
15641 * i387-fp.h (i387_cache_to_xsave): Likewise.
15642 (i387_xsave_to_cache): Likewise.
15643 (x86_xcr0): Likewise.
15644
15645 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15646 * linux-crisv32-low.c (target_regsets): Likewise.
15647 * linux-m68k-low.c (target_regsets): Likewise.
15648 * linux-mips-low.c (target_regsets): Likewise.
15649 * linux-ppc-low.c (target_regsets): Likewise.
15650 * linux-s390-low.c (target_regsets): Likewise.
15651 * linux-sh-low.c (target_regsets): Likewise.
15652 * linux-sparc-low.c (target_regsets): Likewise.
15653 * linux-xtensa-low.c (target_regsets): Likewise.
15654
15655 * linux-low.c: Include <sys/uio.h>.
15656 (regsets_fetch_inferior_registers): Support nt_type.
15657 (regsets_store_inferior_registers): Likewise.
15658 (linux_process_qsupported): New.
15659 (linux_target_ops): Add linux_process_qsupported.
15660
15661 * linux-low.h (regset_info): Add nt_type.
15662 (linux_target_ops): Add process_qsupported.
15663
15664 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15665 and <sys/uio.h>.
15666 (init_registers_i386_avx_linux): New.
15667 (init_registers_amd64_avx_linux): Likewise.
15668 (xmltarget_i386_linux_no_xml): Likewise.
15669 (xmltarget_amd64_linux_no_xml): Likewise.
15670 (PTRACE_GETREGSET): Likewise.
15671 (PTRACE_SETREGSET): Likewise.
15672 (x86_fill_xstateregset): Likewise.
15673 (x86_store_xstateregset): Likewise.
15674 (use_xml): Likewise.
15675 (x86_linux_update_xmltarget): Likewise.
15676 (x86_linux_process_qsupported): Likewise.
15677 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15678 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15679 init_registers_i386_linux here. Call
15680 x86_linux_update_xmltarget.
15681 (the_low_target): Add x86_linux_process_qsupported.
15682
15683 * server.c (handle_query): Call target_process_qsupported.
15684
15685 * target.h (target_ops): Add process_qsupported.
15686 (target_process_qsupported): New.
15687
15688 2010-04-03 Pedro Alves <pedro@codesourcery.com>
15689
15690 * inferiors.c (add_thread): Set last_status kind to
15691 TARGET_WAITKIND_IGNORE.
15692 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15693 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15694 (linux_wait_1): Move `thread' local definition to block that uses
15695 it. Don't NULL initialize `event_child'.
15696 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15697 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15698 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15699
15700 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15701
15702 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15703 an extended waitstatus, or by a watchpoint.
15704 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15705 thread was stepping or has been stopped by a watchpoint.
15706
15707 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15708
15709 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15710 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15711 of another, then delete the previous, and validate all
15712 breakpoints.
15713 (validate_inserted_breakpoint): New.
15714 (delete_disabled_breakpoints): New.
15715 (validate_breakpoints): New.
15716 (check_mem_read): Validate breakpoints before trusting their
15717 shadow. Delete disabled breakpoints.
15718 (check_mem_write): Validate breakpoints before trusting they
15719 should be inserted. Delete disabled breakpoints.
15720 * mem-break.h (validate_breakpoints):
15721 * server.c (handle_query): Validate breakpoints when we see a
15722 qSymbol query.
15723
15724 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15725
15726 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15727 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15728 if we could tell there's a GDB breakpoint at stop_pc.
15729 (need_step_over_p): Don't do a step over if we find a GDB
15730 breakpoint at the resume PC.
15731
15732 * mem-break.c (struct raw_breakpoint): New.
15733 (enum bkpt_type): New type `gdb_breakpoint'.
15734 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15735 fields. New field `raw'.
15736 (find_raw_breakpoint_at): New.
15737 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15738 breakpoint instead.
15739 (set_breakpoint_at): Adjust.
15740 (delete_raw_breakpoint): New.
15741 (release_breakpoint): New.
15742 (delete_breakpoint): Rename to...
15743 (delete_breakpoint_1): ... this. Add proc parameter. Use
15744 release_breakpoint. Return ENOENT.
15745 (delete_breakpoint): Reimplement.
15746 (find_breakpoint_at): Delete.
15747 (find_gdb_breakpoint_at): New.
15748 (delete_breakpoint_at): Delete.
15749 (set_gdb_breakpoint_at): New.
15750 (delete_gdb_breakpoint_at): New.
15751 (gdb_breakpoint_here): New.
15752 (set_reinsert_breakpoint): Use release_breakpoint.
15753 (uninsert_breakpoint): Rename to ...
15754 (uninsert_raw_breakpoint): ... this.
15755 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15756 (reinsert_raw_breakpoint): Change parameter type to
15757 raw_breakpoint.
15758 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15759 instead.
15760 (check_breakpoints): Adjust. Use release_breakpoint.
15761 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15762 (breakpoint_inserted_here): Ditto.
15763 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15764 Don't trust the breakpoint's shadow if it is not inserted.
15765 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15766 (delete_all_breakpoints): Adjust.
15767 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15768 use delete_breakpoint_1.
15769
15770 * mem-break.h (breakpoints_supported): Delete declaration.
15771 (set_gdb_breakpoint_at): Declare.
15772 (gdb_breakpoint_here): Declare.
15773 (delete_breakpoint_at): Delete.
15774 (delete_gdb_breakpoint_at): Declare.
15775
15776 * server.h (struct raw_breakpoint): Forward declare.
15777 (struct process_info): New field `raw_breakpoints'.
15778
15779 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15780 breakpoints.
15781
15782 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15783
15784 * linux-low.c (status_pending_p_callback): Fix comment.
15785 (linux_wait_for_event_1): Move most of the internal breakpoint
15786 handling from here...
15787 (linux_wait_1): ... to here.
15788 (count_events_callback): New.
15789 (select_singlestep_lwp_callback): New.
15790 (select_event_lwp_callback): New.
15791 (cancel_breakpoints_callback): New.
15792 (select_event_lwp): New.
15793 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15794 priority to all LWPs that have had events that should be reported
15795 to the client. Cancel breakpoints when about to reporting the
15796 event to the client, not while stopping lwps. No longer cancel
15797 finished single-steps here.
15798 (cancel_finished_single_step): Delete.
15799 (cancel_finished_single_steps): Delete.
15800
15801 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15802
15803 * mem-break.c (enum bkpt_type): New.
15804 (struct breakpoint): New field `type'.
15805 (set_breakpoint_at): Change return type to struct breakpoint
15806 pointer. Set type to `other_breakpoint' by default.
15807 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15808 in the breakpoint list.
15809 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15810 (reinsert_breakpoint): Rename to ...
15811 (reinsert_raw_breakpoint): ... this.
15812 (reinsert_breakpoints_at): Adjust.
15813 * mem-break.h (struct breakpoint): Declare.
15814 (set_breakpoint_at): Change return type to struct breakpoint
15815 pointer.
15816
15817 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15818
15819 * server.c (handle_query): Assign, not compare.
15820
15821 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15822
15823 Teach linux gdbserver to step-over-breakpoints.
15824
15825 * linux-low.c (can_hardware_single_step): New.
15826 (supports_breakpoints): New.
15827 (handle_extended_wait): If stopping threads, read the stop pc of
15828 the new cloned LWP.
15829 (get_pc): New.
15830 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15831 low target doesn't support retrieving the PC.
15832 (add_lwp): Set last_resume_kind to resume_continue.
15833 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15834 (linux_attach): Don't clear stop_expected. Set the lwp's
15835 last_resume_kind to resume_stop.
15836 (linux_detach_one_lwp): Don't check for removed breakpoints.
15837 (check_removed_breakpoint): Delete.
15838 (status_pending_p): Rename to ...
15839 (status_pending_p_callback): ... this. Don't check for removed
15840 breakpoints. Don't consider threads that are stopped from GDB's
15841 perspective.
15842 (linux_wait_for_lwp): Always read the stop_pc here.
15843 (cancel_breakpoint): New.
15844 (step_over_bkpt): New global.
15845 (linux_wait_for_event_1): Implement stepping over breakpoints.
15846 (gdb_wants_lwp_stopped): New.
15847 (gdb_wants_all_stopped): New.
15848 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15849 single-step traps here. Store the thread's last reported target
15850 wait status.
15851 (send_sigstop): Don't clear stop_expected. Always set it,
15852 instead.
15853 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15854 (cancel_finished_single_step): New.
15855 (cancel_finished_single_steps): New.
15856 (wait_for_sigstop): Don't cancel finished single-step traps here.
15857 (linux_resume_one_lwp): Don't check for removed breakpoints.
15858 Don't set `step' on non-hardware step archs.
15859 (linux_set_resume_request): Ignore resume_stop requests if already
15860 stopping or stopped. Set the lwp's last_resume_kind.
15861 (resume_status_pending_p): Don't check for removed breakpoints.
15862 (need_step_over_p): New.
15863 (start_step_over): New.
15864 (finish_step_over): New.
15865 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15866 requests. Clear the thread's last reported target waitstatus.
15867 Don't use the `suspended' flag. Don't consider pending breakpoints.
15868 (linux_resume): Start a step-over if necessary.
15869 (proceed_one_lwp): New.
15870 (proceed_all_lwps): New.
15871 (unstop_all_lwps): New.
15872 * linux-low.h (struct lwp_info): Rewrite comment for the
15873 `suspended' flag. Add the `stop_pc' field. Delete the
15874 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15875 Add `'last_resume_kind' and `need_step_over' fields.
15876 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15877 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15878 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15879 (set_raw_breakpoint_at): New.
15880 (set_breakpoint_at): Rewrite to use it.
15881 (reinsert_breakpoint_handler): Delete.
15882 (set_reinsert_breakpoint): New.
15883 (reinsert_breakpoint_by_bp): Delete.
15884 (delete_reinsert_breakpoints): New.
15885 (uninsert_breakpoint): Rewrite.
15886 (uninsert_breakpoints_at): New.
15887 (reinsert_breakpoint): Rewrite.
15888 (reinsert_breakpoints_at): New.
15889 (check_breakpoints): Rewrite.
15890 (breakpoint_here): New.
15891 (breakpoint_inserted_here): New.
15892 (check_mem_read): Adjust.
15893 * mem-break.h (breakpoints_supported, breakpoint_here)
15894 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15895 (reinsert_breakpoint_by_bp): Delete declaration.
15896 (delete_reinsert_breakpoints): Declare.
15897 (reinsert_breakpoint): Delete declaration.
15898 (reinsert_breakpoints_at): Declare.
15899 (uninsert_breakpoint): Delete declaration.
15900 (uninsert_breakpoints_at): Declare.
15901 (check_breakpoints): Adjust prototype.
15902 * server.h: Adjust include order.
15903 (struct thread_info): Declare here. Add a `last_status' field.
15904
15905 2010-03-23 Michael Snyder <msnyder@vmware.com>
15906
15907 * server.c (crc32): New function.
15908 (handle_query): Add handling for 'qCRC:' request.
15909
15910 2010-03-23 Pedro Alves <pedro@codesourcery.com>
15911
15912 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15913 lwp had been stopped by a watchpoint.
15914
15915 2010-03-16 Pedro Alves <pedro@codesourcery.com>
15916
15917 * server.h (internal_error): Declare.
15918 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15919 * utils.c (internal_error): New function.
15920
15921 2010-03-15 Andreas Schwab <schwab@redhat.com>
15922
15923 * configure.srv: Fix typo setting srv_regobj.
15924
15925 2010-03-15 Pedro Alves <pedro@codesourcery.com>
15926
15927 * linux-low.c (fetch_register): Avoid passing a non string literal
15928 format to `error'.
15929 (usr_store_inferior_registers): Ditto.
15930
15931 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15932
15933 * linux-low.c (linux_write_memory): Bail out early if peeking
15934 memory failed.
15935
15936 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15937
15938 * linux-low.h (struct lwp_info): New fields
15939 `stopped_by_watchpoint' and `stopped_data_address'.
15940 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15941 here, and cache them in the lwp object.
15942 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15943 directly.
15944 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15945 field.
15946 (linux_stopped_by_watchpoint): Rewrite.
15947 (linux_stopped_data_address): Rewrite.
15948
15949 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
15950
15951 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15952 switching the current inferior, not before.
15953
15954 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15955
15956 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15957 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15958 i386-linux.c and amd64-linux.c.
15959 (reg-i386.o): Removed.
15960 (reg-i386.c): Likewise.
15961 (reg-i386-linux.o): Likewise.
15962 (reg-i386-linux.c): Likewise.
15963 (reg-x86-64.o): Likewise.
15964 (reg-x86-64.c): Likewise.
15965 (reg-x86-64-linux.o): Likewise.
15966 (reg-x86-64-linux.c): Likewise.
15967 (i386.o): New.
15968 (i386.c): Likewise.
15969 (i386-linux.o): Likewise.
15970 (i386-linux.c): Likewise.
15971 (amd64.o): Likewise.
15972 (amd64.c): Likewise.
15973 (amd64-linux.o): Likewise.
15974 (amd64-linux.c): Likewise.
15975
15976 * configure.srv (srv_i386_regobj): New.
15977 (srv_i386_linux_regobj): Likewise.
15978 (srv_amd64_regobj): Likewise.
15979 (srv_amd64_linux_regobj): Likewise.
15980 (srv_i386_32bit_xmlfiles): Likewise.
15981 (srv_i386_64bit_xmlfiles): Likewise.
15982 (srv_i386_xmlfiles): Likewise.
15983 (srv_amd64_xmlfiles): Likewise.
15984 (srv_i386_linux_xmlfiles): Likewise.
15985 (srv_amd64_linux_xmlfiles): Likewise.
15986 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15987 srv_xmlfiles to $srv_i386_xmlfiles.
15988 (i[34567]86-*-mingw32ce*): Likewise.
15989 (i[34567]86-*-mingw*): Likewise.
15990 (i[34567]86-*-nto*): Likewise.
15991 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15992 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15993 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15994 (x86_64-*-linux*): Likewise.
15995
15996 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15997 (init_registers_amd64_linux): New.
15998 (x86_arch_setup): Replace init_registers_x86_64_linux with
15999 init_registers_amd64_linux.
16000
16001 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16002
16003 * configure.ac: Check for libdl. If it is not available link against
16004 static libthread_db.
16005 * configure: Regenerate.
16006
16007 2010-02-22 Pedro Alves <pedro@codesourcery.com>
16008
16009 PR9605
16010
16011 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16012 handing a read watchpoint.
16013 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16014
16015 2010-02-12 Doug Evans <dje@google.com>
16016
16017 * linux-low.c (linux_supports_tracefork_flag): Document.
16018 (linux_look_up_symbols): Add comment.
16019
16020 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16021
16022 * regcache.c (supply_register): Clear regcache if buf is NULL.
16023
16024 2010-02-02 Nicolas Roche <roche@sourceware.org>
16025 Joel Brobecker <brobecker@adacore.com>
16026
16027 * inferiors.c (find_inferior): Add function documentation.
16028 (unloaded_dll): Handle the case where the unloaded dll has not
16029 been previously registered in the dll list.
16030
16031 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16032
16033 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16034 (thumb2_breakpoint): New.
16035 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16036
16037 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16038
16039 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16040 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16041 breakpoints.
16042
16043 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16044
16045 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16046
16047 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16048
16049 * linux-s390-low.c (s390_collect_ptrace_register)
16050 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16051
16052 2010-01-21 Doug Evans <dje@google.com>
16053
16054 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16055 (PTRACE_ARG4_TYPE): New macro.
16056 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16057 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16058 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16059 (usr_store_inferior_registers): Ditto.
16060 (linux_read_memory, linux_write_memory): Ditto.
16061 (linux_test_for_tracefork): Ditto.
16062
16063 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16064 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16065
16066 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16067
16068 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16069 target.
16070
16071 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16072
16073 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16074 prototype to take a regcache. Adjust.
16075
16076 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16077
16078 * regcache.h (struct thread_info): Forward declare.
16079 (struct regcache): New.
16080 (new_register_cache): Adjust prototype.
16081 (get_thread_regcache): Declare.
16082 (free_register_cache): Adjust prototype.
16083 (registers_to_string, registers_from_string): Ditto.
16084 (supply_register, supply_register_by_name, collect_register)
16085 (collect_register_as_string, collect_register_by_name): Ditto.
16086 * regcache.c (struct inferior_regcache_data): Delete.
16087 (get_regcache): Rename to ...
16088 (get_thread_regcache): ... this. Adjust. Switch inferior before
16089 fetching registers.
16090 (regcache_invalidate_one): Adjust.
16091 (regcache_invalidate): Fix prototype.
16092 (new_register_cache): Return the new register cache.
16093 (free_register_cache): Change prototype.
16094 (realloc_register_cache): Adjust.
16095 (registers_to_string): Change prototype to take a regcache. Adjust.
16096 (registers_from_string): Ditto.
16097 (register_data): Ditto.
16098 (supply_register): Ditto.
16099 (supply_register_by_name): Ditto.
16100 (collect_register): Ditto.
16101 (collect_register_as_string): Ditto.
16102 (collect_register_by_name): Ditto.
16103 * server.c (process_serial_event): Adjust.
16104 * linux-low.h (regset_fill_func, regset_store_func): Change
16105 prototype.
16106 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16107 Change prototype.
16108 * linux-low.c (get_stop_pc): Adjust.
16109 (check_removed_breakpoint): Adjust.
16110 (linux_wait_for_event): Adjust.
16111 (linux_resume_one_lwp): Adjust.
16112 (fetch_register): Add regcache parameter. Adjust.
16113 (usr_store_inferior_registers): Ditto.
16114 (regsets_fetch_inferior_registers): Ditto.
16115 (regsets_store_inferior_registers): Ditto.
16116 (linux_fetch_registers, linux_store_registers): Ditto.
16117 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16118 regcache. Adjust.
16119 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16120 Ditto.
16121 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16122 prototype to take a regcache.
16123 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16124 * remote-utils.c (convert_ascii_to_int, outreg)
16125 (prepare_resume_reply): Change prototype to take a regcache.
16126 Adjust.
16127 * target.h (struct target_ops) <fetch_registers, store_registers>:
16128 Change prototype to take a regcache.
16129 (fetch_inferior_registers, store_inferior_registers): Change
16130 prototype to take a regcache. Adjust.
16131 * proc-service.c (ps_lgetregs): Adjust.
16132 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16133 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16134 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16135 take a regcache. Adjust.
16136 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16137 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16138 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16139 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16140 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16141 (cris_cannot_fetch_register):
16142 (cris_breakpoint_at): Change prototype to take a regcache.
16143 Adjust.
16144 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16145 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16146 to take a regcache. Adjust.
16147 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16148 Adjust.
16149 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16150 take a regcache. Adjust.
16151 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16152 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16153 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16154 * linux-mips-low.c (mips_get_pc):
16155 (mips_set_pc): Change prototype to take a regcache. Adjust.
16156 (mips_reinsert_addr): Adjust.
16157 (mips_collect_register): Change prototype to take a regcache.
16158 Adjust.
16159 (mips_supply_register):
16160 (mips_collect_register_32bit, mips_supply_register_32bit)
16161 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16162 (mips_store_fpregset): Ditto.
16163 * linux-ppc-low.c (ppc_supply_ptrace_register)
16164 (ppc_supply_ptrace_register): Ditto.
16165 (parse_spufs_run): Adjust.
16166 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16167 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16168 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16169 take a regcache. Adjust.
16170 * linux-s390-low.c (s390_collect_ptrace_register)
16171 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16172 (s390_set_pc): Change prototype to take a regcache. Adjust.
16173 (s390_arch_setup): Adjust.
16174 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16175 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16176 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16177 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16178 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16179 regcache. Adjust.
16180 (sparc_breakpoint_at): Adjust.
16181 * linux-xtensa-low.c (xtensa_fill_gregset):
16182 (xtensa_store_gregset):
16183 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16184 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16185 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16186 prototype to take a regcache. Adjust.
16187 * win32-arm-low.c (arm_fetch_inferior_register)
16188 (arm_store_inferior_register): Change prototype to take a
16189 regcache. Adjust.
16190 * win32-i386-low.c (i386_fetch_inferior_register)
16191 (i386_store_inferior_register): Change prototype to take a
16192 regcache. Adjust.
16193 * win32-low.c (child_fetch_inferior_registers)
16194 (child_store_inferior_registers): Change prototype to take a
16195 regcache. Adjust.
16196 (win32_wait): Adjust.
16197 (win32_fetch_inferior_registers): Change prototype to take a
16198 regcache. Adjust.
16199 (win32_store_inferior_registers): Adjust.
16200 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16201 store_inferior_register>: Change prototype to take a regcache.
16202
16203 2010-01-20 Doug Evans <dje@google.com>
16204
16205 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16206 #ifdef.
16207 (linux_wait_for_event1, linux_init_signals): Ditto.
16208 (W_STOPCODE): Provide definition if missing.
16209
16210 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16211
16212 * linux-low.c (linux_core_of_thread): New.
16213 (compare_ints, show_process, list_threads): New.
16214 (linux_qxfer_osdata): Report threads and cores.
16215 (linux_target_op): Register linux_core_of_thread.
16216 * remote-utils.c (prepare_resume_reply): Report the core.
16217 (buffer_xml_printf): Support %d specifier.
16218 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16219 New.
16220 (handle_query): Handle qXfer:threads. Announce availability
16221 thereof.
16222 * target.h (struct target_ops): New field core_of_thread.
16223
16224 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16225
16226 * Makefile.in (clean): Remove new generated files.
16227 (reg-s390.o, reg-s390.c): Remove rules.
16228 (reg-s390x.o, reg-s390x.c): Likewise.
16229 (s390-linux32.o, s390-linux32.c): Add rules.
16230 (s390-linux64.o, s390-linux64.c): Likewise.
16231 (s390x-linux64.o, s390x-linux64.c): Likewise.
16232 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16233 * linux-s390-low.c: Include <elf.h>.
16234 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16235 (init_registers_s390): Remove prototype.
16236 (init_registers_s390x): Likewise.
16237 (init_registers_s390_linux32): Add prototype.
16238 (init_registers_s390_linux64): Likewise.
16239 (init_registers_s390x_linux64): Likewise.
16240 (s390_num_regs_3264): New define.
16241 (s390_regmap_3264): New global variable.
16242 (s390_cannot_fetch_register): Remove obsolete check.
16243 (s390_cannot_store_register): Likewise.
16244 (s390_collect_ptrace_register): Handle upper/lower register halves.
16245 (s390_supply_ptrace_register): Likewise.
16246 (s390_fill_gregset): Update to register number changes.
16247 (s390_get_hwcap): New routine.
16248 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16249 Install appropriate regmap and register set.
16250
16251 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16252
16253 * server.c (gdbserver_version): Update copyright year to 2010.
16254 * gdbreplay.c (gdbreplay_version): Likewise.
16255
16256 2009-12-28 Doug Evans <dje@google.com>
16257
16258 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16259 elf/external.h. Include <elf.h> instead but only if necessary.
16260
16261 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16262
16263 * linux-low.c (linux_remove_process): Remove `detaching'
16264 parameter. Don't release/detach from thread_db here.
16265 (linux_kill): Release/detach from thread_db here, ...
16266 (linux_detach): ... and here, before actually detaching.
16267 (linux_wait_1): ... and here, when a process exits.
16268 * thread-db.c (any_thread_of): New.
16269 (thread_db_free): Switch the current inferior to a thread of the
16270 passed in process.
16271
16272 2009-12-21 Doug Evans <dje@google.com>
16273
16274 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16275
16276 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16277 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16278 warning ifndef __NR_tkill. Move setting of errno there too.
16279 Delete unnecessary resetting of errno after syscall.
16280 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16281
16282 * configure.ac: Check for dladdr.
16283 * config.in: Regenerate.
16284 * configure: Regenerate.
16285 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16286 (try_thread_db_load): Update.
16287
16288 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16289
16290 2009-12-18 Doug Evans <dje@google.com>
16291
16292 * event-loop.c: Include unistd.h if it exists.
16293
16294 * linux-low.c (my_waitpid): Move definition away from being in
16295 between linux_tracefork_child/linux_test_for_tracefork.
16296
16297 * gdb_proc_service.h (psaddr_t): Fix type.
16298 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16299 signature to match glibc.
16300
16301 2009-12-16 Doug Evans <dje@google.com>
16302
16303 * linux-low.c (linux_read_memory): Fix argument to read.
16304
16305 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16306
16307 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16308 events, don't leave current_inferior pointing at null.
16309
16310 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16311
16312 * win32-low.c (LOG): Delete.
16313 (OUTMSG): Output to stderr.
16314 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16315 on compile time LOG macro.
16316 (win32_wait): Fix debug output.
16317
16318 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16319
16320 * win32-low.c (win32_add_one_solib): If the dll name is
16321 "ntdll.dll", prepend the system directory to the dll path.
16322
16323 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16324
16325 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16326
16327 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16328 Vladimir Prus <vladimir@codesourcery.com>
16329
16330 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16331 * configure.ac: Check for __mcoldfire__ and set
16332 gdb_cv_m68k_is_coldfire.
16333 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16334 reg-cf.o and reg-m68k.o.
16335 * configure: Regenerated.
16336
16337 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16338
16339 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16340 Pass it to thread_db_free.
16341 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16342 proper `detaching' argument to linux_remove_process.
16343 * linux-low.h (thread_db_free): Add `detaching' parameter.
16344 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16345 to thread_db_free.
16346 (thread_db_free): Add `detaching' parameter. Only
16347 call td_ta_clear_event if detaching from process.
16348
16349 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16350
16351 * thread-db.c (thread_db_free): Fix typo.
16352
16353 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16354
16355 PR gdb/10838
16356 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16357
16358 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16359
16360 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16361 with an i686 compiler.
16362 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16363 needed.
16364 * configure: Rebuilt.
16365
16366 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16367
16368 PR gdb/10783
16369
16370 * server.c (handle_search_memory_1): Correct read_addr initialization
16371 in loop for searching subsequent chunks.
16372
16373 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16374
16375 * configure.ac: New --with-libthread-db option.
16376 * thread-db.c: Allow direct dependence on libthread_db.
16377 (thread_db_free): Adjust.
16378 * config.in: Regenerate.
16379 * configure: Likewise.
16380
16381 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16382
16383 PR gdb/10757
16384 * thread-db.c (attach_thread): New function.
16385 (maybe_attach_thread): Return success/failure.
16386 (find_new_threads_callback): Adjust.
16387 (thread_db_find_new_threads): Loop until no new threads.
16388
16389 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16390
16391 * proc-service.c (ps_lgetregs): Formatting.
16392
16393 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16394
16395 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16396 * configure.ac: Adjust.
16397 * linux-low.h (struct process_info_private): Move members to struct
16398 thread_db.
16399 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16400 * linux-low.c (linux_remove_process): Adjust.
16401 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16402 * server.c (handle_query): Move code ...
16403 (handle_monitor_command): ... here. New function.
16404 * target.h (struct target_ops): New member.
16405 * thread-db.c (struct thread_db): New.
16406 (libthread_db_search_path): New variable.
16407 (thread_db_create_event, thread_db_enable_reporting)
16408 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16409 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16410 (try_thread_db_load_1, dladdr_to_soname): New functions.
16411 (try_thread_db_load, thread_db_load_search): New functions.
16412 (thread_db_init): Search for libthread_db.
16413 (thread_db_free): New function.
16414 (thread_db_handle_monitor_command): Likewise.
16415 * config.in: Regenerate.
16416 * configure: Regenerate.
16417
16418 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16419
16420 * spu-low.c (spu_kill): Wait for inferior to terminate.
16421 Call clear_inferiors.
16422 (spu_detach): Call clear_inferiors.
16423
16424 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16425
16426 * aclocal.m4: Regenerate.
16427 * config.in: Likewise.
16428 * configure: Likewise.
16429
16430 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16431
16432 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16433 (parse_spufs_run): New function.
16434 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16435 (ppc_breakpoint_at): Handle SPU breakpoints.
16436
16437 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16438
16439 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16440 (SPUFS_MAGIC): Define.
16441 (spu_enumerate_spu_ids): New function.
16442 (linux_qxfer_spu): New function.
16443 (linux_target_ops): Install linux_qxfer_spu.
16444
16445 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16446
16447 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16448 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16449 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16450 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16451 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16452 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16453 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16454 (init_registers_powerpc_cell32l): Add prototype.
16455 (init_registers_powerpc_cell64l): Likewise.
16456 (ppc_arch_setup): Detect Cell/B.E. architecture.
16457
16458 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16459
16460 * Makefile.in (datarootdir): New variable.
16461
16462 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16463
16464 * linux-low.c (linux_write_memory): Update debugging output.
16465 * Makefile.in (clean): Add new descriptions.
16466 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16467 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16468 * configure.srv: Add new files for arm*-*-linux*.
16469 * linux-arm-low.c: Add new declarations.
16470 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16471 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16472 (HWCAP_VFPv3D16): New.
16473 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16474 instead of __IWMMXT__.
16475 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16476 (arm_arch_setup): New.
16477 (target_regsets): Remove #ifdef. Add VFP regset.
16478 (the_low_target): Use arm_arch_setup.
16479
16480 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16481
16482 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16483 the main thread again.
16484
16485 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16486
16487 Adding Neutrino gdbserver.
16488 * configure: Regenerated.
16489 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16490 * configure.srv (i[34567]86-*-nto*): New target.
16491 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16492 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16493 (nto_comctrl) [__QNX__]: New function.
16494 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16495
16496 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
16497
16498 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16499 srv_tgtobj.
16500
16501 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16502 Pedro Alves <pedro@codesourcery.com>
16503
16504 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16505 don't support CONTEXT_EXTENDED_REGISTERS.
16506 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16507 (the_low_target): Install them.
16508 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16509 failing with ERROR_PIPE_NOT_CONNECTED.
16510
16511 2009-06-30 Doug Evans <dje@google.com>
16512 Pierre Muller <muller@ics.u-strasbg.fr>
16513
16514 Add h/w watchpoint support to x86-linux, win32-i386.
16515 * Makefile.in (SFILES): Add i386-low.c
16516 (i386_low_h): Define.
16517 (i386-low.o): Add dependencies.
16518 (linux-x86-low.o): Add i386-low.h dependency.
16519 (win32-i386-low.o): Ditto.
16520 * i386-low.c: New file.
16521 * i386-low.h: New file.
16522 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16523 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16524 * linux-low.c (linux_add_process): Initialize arch_private.
16525 (linux_remove_process): Free arch_private.
16526 (add_lwp): Initialize arch_private.
16527 (delete_lwp): Free arch_private.
16528 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16529 provided.
16530 * linux-low.h (process_info_private): New member arch_private.
16531 (lwp_info): New member arch_private.
16532 (linux_target_ops): New members new_process, new_thread,
16533 prepare_to_resume.
16534 (ptid_of): New macro.
16535 * linux-x86-low.c: Include stddef.h, i386-low.h.
16536 (arch_process_info): New struct.
16537 (arch_lwp_info): New struct.
16538 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16539 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16540 (i386_dr_low_get_status): New function.
16541 (x86_insert_point, x86_remove_point): New functions.
16542 (x86_stopped_by_watchpoint): New function.
16543 (x86_stopped_data_address): New function.
16544 (x86_linux_new_process, x86_linux_new_thread): New functions.
16545 (x86_linux_prepare_to_resume): New function.
16546 (the_low_target): Add entries for insert_point, remove_point,
16547 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16548 prepare_to_resume.
16549 * server.c (debug_hw_points): New global.
16550 (monitor_show_help): Document set debug-hw-points.
16551 (handle_query): Process "set debug-hw-points".
16552 * server.h (debug_hw_points): Declare.
16553 (paddress): Declare.
16554 * utils.c (NUMCELLS, CELLSIZE): New macros.
16555 (get_sell, xsnprintf, paddress): New functions.
16556 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16557 remove_point, stopped_by_watchpoint, stopped_data_address.
16558 * win32-i386-low.c: Include i386-low.h.
16559 (debug_reg_state): Replaces dr.
16560 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16561 (i386_dr_low_get_status): New function.
16562 (i386_insert_point, i386_remove_point): New functions.
16563 (i386_stopped_by_watchpoint): New function.
16564 (i386_stopped_data_address): New function.
16565 (i386_initial_stuff): Update.
16566 (get_thread_context,set_thread_context,i386_thread_added): Update.
16567 (the_low_target): Add entries for insert_point,
16568 remove_point, stopped_by_watchpoint, stopped_data_address.
16569 * win32-low.c (win32_insert_watchpoint): New function.
16570 (win32_remove_watchpoint): New function.
16571 (win32_stopped_by_watchpoint): New function.
16572 (win32_stopped_data_address): New function.
16573 (win32_target_ops): Add entries for insert_watchpoint,
16574 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16575 * win32-low.h (win32_target_ops): New members insert_point,
16576 remove_point, stopped_by_watchpoint, stopped_data_address.
16577
16578 2009-06-25 Pedro Alves <pedro@codesourcery.com>
16579
16580 * server.c (process_serial_event): Re-return unsupported, not
16581 error, if the type isn't recognized. Re-allow supporting only
16582 insert or remove packets. Also call require_running for
16583 breakpoints. Add missing break statement to default case. Tidy.
16584 * target.h (struct target_ops): Rename insert_watchpoint to
16585 insert_point, and remove_watchpoint to remove_point.
16586
16587 * linux-low.h (struct linux_target_ops): Likewise.
16588 * linux-low.c (linux_insert_watchpoint): Rename to ...
16589 (linux_insert_point): ... this. Adjust.
16590 (linux_remove_watchpoint): Rename to ...
16591 (linux_remove_point): ... this. Adjust.
16592 (linux_target_ops): Adjust.
16593 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16594 (cris_insert_point): ... this.
16595 (cris_remove_watchpoint): Rename to ...
16596 (cris_remove_point): ... this.
16597 (the_low_target): Adjust.
16598
16599 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16600
16601 * server.c (handle_v_kill): Pass signal_pid to
16602 kill_inferior if multi_process is zero.
16603
16604 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16605
16606 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16607 * target.h (target_ops): Comment for *_watchpoint to make it clear
16608 the functions can get types '0' and '1'.
16609
16610 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16611
16612 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16613 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16614 * regcache.c (get_regcache): Likewise.
16615 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16616 * win32-low.c (child_fetch_inferior_registers): Remove check for
16617 regno 0.
16618
16619 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16620 Pedro Alves <pedro@codesourcery.com>
16621
16622 * target.h (struct target_ops) <supports_multi_process>: New
16623 callback.
16624 (target_supports_multi_process): New.
16625 * server.c (handle_query): Even if GDB reports support, only
16626 enable multi-process if the target also supports it. Report
16627 multi-process support only if the target backend supports it.
16628 * linux-low.c (linux_supports_multi_process): New function.
16629 (linux_target_ops): Install it as target_supports_multi_process
16630 callback.
16631
16632 2009-05-24 Doug Evans <dje@google.com>
16633
16634 Global renaming of find_thread_pid to find_thread_ptid.
16635 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16636 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16637 All callers updated.
16638
16639 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16640 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16641 directly.
16642
16643 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16644 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16645 (linux_resume_one_lwp): Ditto.
16646
16647 2009-05-23 Doug Evans <dje@google.com>
16648
16649 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16650 from struct inferior_list_entry * to struct lwp_info *.
16651 All callers updated.
16652
16653 2009-05-13 Doug Evans <dje@google.com>
16654
16655 * linux-x86-low.c: Don't include assert.h.
16656 (x86_siginfo_fixup): Use fatal, not assert.
16657 (x86_arch_setup): Fix comment.
16658
16659 2009-05-12 Doug Evans <dje@google.com>
16660
16661 Biarch support for i386/amd64 gdbserver.
16662 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16663 Add linux-x86-low.c.
16664 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16665 (linux-x86-low.o): Add.
16666 * linux-x86-64-low.c: Delete.
16667 * linux-i386-low.c: Delete.
16668 * linux-x86-low.c: New file.
16669 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16670 linux-x86-low.o.
16671 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16672 linux-x86-low.o.
16673 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16674 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16675 (linux_child_pid_to_exec_file): New function.
16676 (elf_64_header_p, elf_64_file_p): New functions.
16677 (siginfo_fixup): New function.
16678 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16679 give target a chance to convert layout.
16680 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16681 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16682
16683 2009-05-07 Doug Evans <dje@google.com>
16684
16685 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16686 (regsets_store_inferior_registers): Ditto.
16687
16688 2009-05-06 Pedro Alves <pedro@codesourcery.com>
16689
16690 PR server/10048
16691
16692 * linux-low.c (must_set_ptrace_flags): Delete.
16693 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16694 of the global.
16695 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16696 `lwp->must_set_ptrace_flags' instead.
16697 (linux_wait_for_event_1): Set ptrace options here.
16698 (linux_wait_1): ... not here.
16699
16700 2009-04-30 Doug Evans <dje@google.com>
16701
16702 * inferiors.c (started_inferior_callback): New function.
16703 (attached_inferior_callback): New function.
16704 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16705 * server.c (print_started_pid, print_attached_pid): New functions.
16706 (detach_or_kill_for_exit): New function.
16707 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16708 * server.h (have_started_inferiors_p): Declare.
16709 (have_attached_inferiors_p): Declare.
16710
16711 * inferiors.c (remove_process): Fix memory leak, free process.
16712 * linux-low.c (linux_remove_process): New function.
16713 (linux_kill): Call it instead of remove_process.
16714 (linux_detach, linux_wait_1): Ditto.
16715
16716 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16717
16718 * configure.srv: Add x86 Windows CE target.
16719
16720 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16721
16722 * inferiors.c (get_thread_process): Make global.
16723 * server.h (get_thread_process): Add prototype.
16724 * thread-db.c (find_one_thread): Use get_thread_process
16725 instead of current_process.
16726 (thread_db_get_tls_address): Do not crash if called when
16727 thread layer is not yet initialized.
16728
16729 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16730
16731 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16732 * spu-low.c (current_tid): Rename to ...
16733 (current_ptid): ... this.
16734 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16735 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16736 ptid_get_lwp (current_ptid) instead of current_tid.
16737 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16738 instead of current_tid. Use find_process_pid to verify pid
16739 argument is valid. Pass proper argument to remove_process.
16740 (spu_thread_alive): Compare current_ptid instead of current_tid.
16741 (spu_resume): Likewise.
16742
16743 2009-04-02 Pedro Alves <pedro@codesourcery.com>
16744
16745 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16746 variable.
16747
16748 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16749
16750 Implement the multiprocess extensions, and add linux multiprocess
16751 support.
16752
16753 * server.h (ULONGEST): Declare.
16754 (struct ptid, ptid_t): New.
16755 (minus_one_ptid, null_ptid): Declare.
16756 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16757 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16758 (struct inferior_list_entry): Change `id' type from unsigned from
16759 to ptid_t.
16760 (struct sym_cache, struct breakpoint, struct
16761 process_info_private): Forward declare.
16762 (struct process_info): Declare.
16763 (current_process): Declare.
16764 (all_processes): Declare.
16765 (initialize_inferiors): Declare.
16766 (add_thread): Adjust to use ptid_t.
16767 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16768 (add_process, remove_process, find_thread_pid): Declare.
16769 (find_inferior_id): Adjust to use ptid_t.
16770 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16771 (multi_process): Declare.
16772 (push_event): Adjust to use ptid_t.
16773 (read_ptid, write_ptid): Declare.
16774 (prepare_resume_reply): Adjust to use ptid_t.
16775 (clear_symbol_cache): Declare.
16776 * inferiors.c (all_processes): New.
16777 (null_ptid, minus_one_ptid): New.
16778 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16779 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16780 (add_thread): Change unsigned long to ptid. Remove gdb_id
16781 parameter. Adjust.
16782 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16783 (gdb_id_to_thread): Rename to ...
16784 (find_thread_pid): ... this. Change unsigned long to ptid.
16785 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16786 (loaded_dll, pull_pid_from_list): Adjust.
16787 (add_process, remove_process, find_process_pid)
16788 (get_thread_process, current_process, initialize_inferiors): New.
16789 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16790 (struct target_waitstatus) <related_pid>: Ditto.
16791 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16792 return type to int.
16793 (struct target_ops) <join>: Add `pid' argument.
16794 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16795 (struct target_ops) <wait>: Add `ptid' field. Change return type
16796 to ptid.
16797 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16798 (mywait): Add `ptid' argument. Change return type to ptid_t.
16799 (target_pid_to_str): Declare.
16800 * target.c (set_desired_inferior): Adjust to use ptids.
16801 (mywait): Add new `ptid' argument. Adjust.
16802 (target_pid_to_str): New.
16803 * mem-break.h (free_all_breakpoints): Declare.
16804 * mem-break.c (breakpoints): Delelete.
16805 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16806 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16807 to use per-process breakpoint list.
16808 (free_all_breakpoints): New.
16809 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16810 (symbol_cache, all_symbols_looked_up): Delete.
16811 (hexchars): New.
16812 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16813 read_ptid): New.
16814 (prepare_resume_reply): Change ptid argument's type from unsigned
16815 long to ptid_t. Adjust. Implement W;process and X;process.
16816 (free_sym_cache, clear_symbol_cache): New.
16817 (look_up_one_symbol): Adjust to per-process symbol cache. *
16818 * server.c (cont_thread, general_thread, step_thread): Change type
16819 to ptid_t.
16820 (attached): Delete.
16821 (multi_process): New.
16822 (last_ptid): Change type to ptid_t.
16823 (struct vstop_notif) <ptid>: Change type to ptid_t.
16824 (queue_stop_reply, push_event): Change `ptid' argument's type to
16825 ptid_t.
16826 (discard_queued_stop_replies): Add `pid' argument.
16827 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16828 changes. Don't reference the `attached' global.
16829 (attach_inferior): Adjust to mywait interface changes.
16830 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16831 features. Handle and report "multiprocess+". Handle
16832 "qAttached:PID".
16833 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16834 changes.
16835 (handle_v_kill): New.
16836 (handle_v_stopped): Adjust to use target_pid_to_str.
16837 (handle_v_requests): Allow multiple attaches and runs when
16838 multiprocess extensions are in effect. Handle "vKill".
16839 (myresume): Adjust to use ptids.
16840 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16841 (handle_status): Adjust to discard_queued_stop_replies interface
16842 change.
16843 (first_thread_of, kill_inferior_callback)
16844 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16845 (main): Call initialize_inferiors. Adjust to use ptids, killing
16846 and detaching from all inferiors. Handle multiprocess packet
16847 variants.
16848 * linux-low.h: Include gdb_proc_service.h.
16849 (struct process_info_private): New.
16850 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16851 <lwpid_of>: Use ptid_get_lwp.
16852 (get_lwp_thread): Adjust.
16853 (struct lwp_info): Add `dead' member.
16854 (find_lwp_pid): Declare.
16855 * linux-low.c (thread_db_active): Delete.
16856 (new_inferior): Adjust comment.
16857 (inferior_pid): Delete.
16858 (linux_add_process): New.
16859 (handle_extended_wait): Adjust.
16860 (add_lwp): Change unsigned long to ptid.
16861 (linux_create_inferior): Add process to processes table. Adjust
16862 to use ptids. Don't set new_inferior here.
16863 (linux_attach_lwp): Rename to ...
16864 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16865 it. Adjust to use ptids.
16866 (linux_attach_lwp): New.
16867 (linux_attach): Add process to processes table. Don't set
16868 new_inferior here.
16869 (struct counter): New.
16870 (second_thread_of_pid_p, last_thread_of_process_p): New.
16871 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16872 multiple processes.
16873 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16874 processes. Remove process from process table.
16875 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16876 to multiple processes.
16877 (any_thread_of): New.
16878 (linux_detach): Add `pid' argument, and handle it. Remove process
16879 from processes table.
16880 (linux_join): Add `pid' argument. Handle it.
16881 (linux_thread_alive): Change unsighed long argument to ptid_t.
16882 Consider dead lwps as not being alive.
16883 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16884 threads we're not interested in.
16885 (same_lwp, find_lwp_pid): New.
16886 (linux_wait_for_lwp): Change `pid' argument's type from int to
16887 ptid_t. Adjust.
16888 (linux_wait_for_event): Rename to ...
16889 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16890 from int to ptid_t. Adjust.
16891 (linux_wait_for_event): New.
16892 (linux_wait_1): Add `ptid' argument. Change return type to
16893 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16894 that exit from the process table.
16895 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16896 Adjust.
16897 (mark_lwp_dead): New.
16898 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16899 stopping all threads, mark its main lwp as dead.
16900 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16901 ptids.
16902 (fetch_register, usr_store_inferior_registers)
16903 (regsets_fetch_inferior_registers)
16904 (regsets_store_inferior_registers, linux_read_memory)
16905 (linux_write_memory): Inline `inferior_pid'.
16906 (linux_look_up_symbols): Adjust to use per-process
16907 `thread_db_active'.
16908 (linux_request_interrupt): Adjust to use ptids.
16909 (linux_read_auxv): Inline `inferior_pid'.
16910 (initialize_low): Don't reference thread_db_active.
16911 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16912 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16913 (ps_getpid): Return the pid of the current inferior.
16914 * thread-db.c (proc_handle, thread_agent): Delete.
16915 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16916 per-process data.
16917 (find_one_thread): Change argument type to ptid_t. Adjust to
16918 per-process data.
16919 (maybe_attach_thread): Adjust to per-process data and ptids.
16920 (thread_db_find_new_threads): Ditto.
16921 (thread_db_init): Ditto.
16922 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16923 processes table. Adjust to use ptids.
16924 (spu_kill, spu_detach): Adjust interface. Remove process from
16925 processes table.
16926 (spu_join, spu_thread_alive): Adjust interface.
16927 (spu_wait): Adjust interface. Remove process from processes
16928 table. Adjust to use ptids.
16929 * win32-low.c (current_inferior_tid): Delete.
16930 (current_inferior_ptid): New.
16931 (debug_event_ptid): New.
16932 (thread_rec): Take a ptid. Adjust.
16933 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16934 (child_delete_thread): Ditto.
16935 (do_initial_child_stuff): Add `attached' argument. Add process to
16936 processes table.
16937 (child_fetch_inferior_registers, child_store_inferior_registers):
16938 Adjust.
16939 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16940 (win32_attach): Pass 1 to do_initial_child_stuff.
16941 (win32_kill): Adjust interface. Remove process from processes
16942 table.
16943 (win32_detach): Ditto.
16944 (win32_join): Adjust interface.
16945 (win32_thread_alive): Take a ptid.
16946 (win32_resume): Adjust to use ptids.
16947 (get_child_debug_event): Ditto.
16948 (win32_wait): Adjust interface. Remove exiting process from
16949 processes table.
16950
16951 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16952
16953 Non-stop mode support.
16954
16955 * server.h (non_stop): Declare.
16956 (gdb_client_data, handler_func): Declare.
16957 (delete_file_handler, add_file_handler, start_event_loop):
16958 Declare.
16959 (handle_serial_event, handle_target_event, push_event)
16960 (putpkt_notif): Declare.
16961 * target.h (enum resume_kind): New.
16962 (struct thread_resume): Replace `step' field by `kind' field.
16963 (TARGET_WNOHANG): Define.
16964 (struct target_ops) <wait>: Add `options' argument.
16965 <supports_non_stop, async, start_non_stop>: New fields.
16966 (target_supports_non_stop, target_async): New.
16967 (start_non_stop): Declare.
16968 (mywait): Add `options' argument.
16969 * target.c (mywait): Add `options' argument. Print child exit
16970 notifications here.
16971 (start_non_stop): New.
16972 * server.c (non_stop, own_buf, mem_buf): New globals.
16973 (struct vstop_notif): New.
16974 (notif_queue): New global.
16975 (queue_stop_reply, push_event, discard_queued_stop_replies)
16976 (send_next_stop_reply): New.
16977 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16978 interface changes.
16979 (attach_inferior): In non-stop mode, don't wait for the target
16980 here.
16981 (handle_general_set): Handle QNonStop.
16982 (handle_query): When handling qC, return the current general
16983 thread, instead of the first thread of the list.
16984 (handle_query): If the backend supports non-stop mode, include
16985 QNonStop+ in the qSupported query response.
16986 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16987 and non-stop mode.
16988 (handle_v_attach, handle_v_run): Handle non-stop mode.
16989 (handle_v_stopped): New.
16990 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16991 (myresume): Adjust to use resume_kind. Handle non-stop.
16992 (queue_stop_reply_callback): New.
16993 (handle_status): Handle non-stop mode.
16994 (main): Clear non_stop flag on reconnection. Use the event-loop.
16995 Refactor serial protocol handling from here ...
16996 (process_serial_event): ... to this new function. When GDB
16997 selects any thread, select one here. In non-stop mode, wait until
16998 GDB acks all pending events before exiting.
16999 (handle_serial_event, handle_target_event): New.
17000 * remote-utils.c (remote_open): Install remote_desc in the event
17001 loop.
17002 (remote_close): Remove remote_desc from the event loop.
17003 (putpkt_binary): Rename to...
17004 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17005 (putpkt_binary): New as wrapper around putpkt_binary_1.
17006 (putpkt_notif): New.
17007 (prepare_resume_reply): In non-stop mode, don't change the
17008 general_thread.
17009 * event-loop.c: New.
17010 * Makefile.in (OBJ): Add event-loop.o.
17011 (event-loop.o): New rule.
17012
17013 * linux-low.h (pid_of): Moved here.
17014 (lwpid_of): New.
17015 (get_lwp_thread): Use lwpid_of.
17016 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17017 * linux-low.c (pid_of): Delete.
17018 (inferior_pid): Use lwpid_of.
17019 (linux_event_pipe): New.
17020 (target_is_async_p): New.
17021 (delete_lwp): New.
17022 (handle_extended_wait): Use lwpid_of.
17023 (add_lwp): Don't set lwpid field.
17024 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17025 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17026 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17027 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17028 first. Adjust to linux_wait_for_event interface changes. Use
17029 lwpid_of.
17030 (linux_detach): Don't delete the main lwp here.
17031 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17032 (status_pending_p): Don't consider explicitly suspended lwps.
17033 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17034 pointer. Add OPTIONS argument. Change return type to int. Use
17035 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17036 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17037 pointer. Add status pointer argument. Return a pid instead of a
17038 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17039 changes. In non-stop mode, don't switch to a random thread.
17040 (linux_wait): Rename to...
17041 (linux_wait_1): ... this. Add target_options argument, and handle
17042 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17043 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17044 clean exit and signal exit code. Don't stop all threads in
17045 non-stop mode. In all-stop mode, only stop all threads when
17046 reporting a stop to GDB. Handle explicit thread stop requests.
17047 (async_file_flush, async_file_mark): New.
17048 (linux_wait): New.
17049 (send_sigstop): Use lwpid_of.
17050 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17051 interface changes. In non-stop mode, don't switch to a random
17052 thread.
17053 (linux_resume_one_lwp): Use lwpid_of.
17054 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17055 (linux_resume_one_thread): ... this. Handle resume_stop. In
17056 non-stop mode, don't look for pending flag in all threads.
17057 (resume_status_pending_p): Don't consider explicitly suspended
17058 threads.
17059 (my_waitpid): Reimplement. Emulate __WALL.
17060 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17061 Use lwpid_of.
17062 (sigchld_handler, linux_supports_non_stop, linux_async)
17063 (linux_start_non_stop): New.
17064 (linux_target_ops): Register linux_supports_non_stop, linux_async
17065 and linux_start_non_stop.
17066 (initialize_low): Install SIGCHLD handler.
17067 * thread-db.c (thread_db_create_event, find_one_thread)
17068 (thread_db_get_tls_address): Use lwpid_of.
17069 * win32-low.c (win32_detach): Adjust to use resume_kind.
17070 (win32_wait): Add `options' argument.
17071 * spu-low.c (spu_resume): Adjust to use resume_kind.
17072 (spu_wait): Add `options' argument.
17073
17074 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17075
17076 Decouple target code from remote protocol.
17077
17078 * target.h (enum target_waitkind): New.
17079 (struct target_waitstatus): New.
17080 (struct target_ops) <wait>: Return an unsigned long. Take a
17081 target_waitstatus pointer instead of a char pointer.
17082 (mywait): Likewise.
17083 * target.c (mywait): Change prototype to return an unsigned long.
17084 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17085 * server.h (thread_from_wait, old_thread_from_wait): Delete
17086 declarations.
17087 (prepare_resume_reply): Change prototype to take a
17088 target_waitstatus.
17089 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17090 (last_status, last_ptid): New.
17091 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17092 pid instead of a signal.
17093 (attach_inferior): Remove "status" and "signal" parameters.
17094 Adjust.
17095 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17096 not as an address.
17097 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17098 (handle_v_requests, myresume): Remove "status" and "signal"
17099 parameters. Adjust.
17100 (handle_status): New.
17101 (main): Delete local `status'. Adjust.
17102 * remote-utils.c: Include target.h.
17103 (prepare_resume_reply): Change prototype to take a
17104 target_waitstatus. Adjust.
17105
17106 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17107 interface.
17108 * spu-low.c (spu_wait): Adjust.
17109 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17110 Delete.
17111 (win32_wait): Adjust.
17112
17113 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17114
17115 * target.h (struct thread_resume): Delete leave_stopped member.
17116 (struct target_ops): Add a `n' argument to the `resume' callback.
17117 * server.c (start_inferior): Adjust.
17118 (handle_v_cont, myresume): Adjust.
17119 * linux-low.c (check_removed_breakpoint): Adjust to resume
17120 interface change, and to removed leave_stopped field.
17121 (resume_ptr): Delete.
17122 (struct thread_resume_array): New.
17123 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17124 resume interface change.
17125 (linux_continue_one_thread, linux_queue_one_thread)
17126 (resume_status_pending_p): Check if the resume field is NULL
17127 instead of checking the leave_stopped member.
17128 (linux_resume): Adjust to the target resume interface change.
17129 * spu-low.c (spu_resume): Adjust to the target resume interface
17130 change.
17131 * win32-low.c (win32_detach, win32_resume): Ditto.
17132
17133 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17134
17135 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17136 flag.
17137 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17138 pending.
17139 (linux_continue_one_thread): Only preserve the stepping flag if
17140 there's a pending breakpoint.
17141
17142 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17143
17144 * server.c (main): After the inferior having exited, call
17145 remote_close before exiting gdbserver.
17146
17147 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17148
17149 Fix size of FPSCR in Power 7 processors.
17150 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17151 (PPC_FEATURE_HAS_DFP): New #define.
17152 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17153 size of the FPSCR.
17154
17155 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17156
17157 * server.c (handle_query) Whitespace and formatting.
17158
17159 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17160
17161 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17162 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17163 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17164 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17165 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17166 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17167 Makefile.in, configure.ac: Fix whitespace throughout.
17168 * configure: Regenerate.
17169
17170 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17171
17172 * inferiors.c (find_inferior): Make it safe for the callback
17173 function to delete the currently iterated inferior.
17174
17175 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17176
17177 * Makefile.in (linuw_low_h): Move higher.
17178 (thread-db.o): Depend on $(linux_low_h).
17179
17180 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17181
17182 Rename "process" to "lwp" throughout.
17183
17184 * linux-low.c (all_processes): Rename to...
17185 (all_lwps): ... this.
17186 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17187 (add_process): Rename to ...
17188 (add_lwp): ... this. Adjust.
17189 (linux_create_inferior): Adjust.
17190 (linux_attach_lwp): Adjust.
17191 (linux_attach): Adjust.
17192 (linux_kill_one_process): Rename to ...
17193 (linux_kill_one_lwp): ... this. Adjust.
17194 (linux_kill): Adjust.
17195 (linux_detach_one_process): Rename to ...
17196 (linux_detach_one_lwp): ... this. Adjust.
17197 (linux_detach): Adjust.
17198 (check_removed_breakpoint): Adjust.
17199 (status_pending_p): Adjust.
17200 (linux_wait_for_process): Rename to ...
17201 (linux_wait_for_lwp): ... this. Adjust.
17202 (linux_wait_for_event): Adjust.
17203 (send_sigstop): Adjust.
17204 (wait_for_sigstop): Adjust.
17205 (stop_all_processes): Rename to ...
17206 (stop_all_lwps): ... this.
17207 (linux_resume_one_process): Rename to ...
17208 (linux_resume_one_lwp): ... this. Adjust.
17209 (linux_set_resume_request, linux_continue_one_thread)
17210 (linux_queue_one_thread, resume_status_pending_p)
17211 (usr_store_inferior_registers, regsets_store_inferior_registers)
17212 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17213 Adjust.
17214 * linux-low.h (get_process): Rename to ...
17215 (get_lwp): ... this. Adjust.
17216 (get_thread_process): Rename to ...
17217 (get_thread_lwp): ... this. Adjust.
17218 (get_process_thread): Rename to ...
17219 (get_lwp_thread): ... this. Adjust.
17220 (struct process_info): Rename to ...
17221 (struct lwp_info): ... this.
17222 (all_processes): Rename to ...
17223 (all_lwps): ... this.
17224 * proc-service.c (ps_lgetregs): Adjust.
17225 * thread-db.c (thread_db_create_event, find_one_thread)
17226 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17227
17228 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17229
17230 * server.c (handle_query): Handle "qAttached".
17231
17232 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17233
17234 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17235 GPLv3, update license URL.
17236
17237 2009-03-01 Doug Evans <dje@google.com>
17238
17239 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17240 (server_h): Add gdb_signals.h.
17241 (signals.o): Update.
17242 * server.h (target_signal_from_host,target_signal_to_host_p)
17243 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17244
17245 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17246
17247 * remote-utils.c (getpkt): Also generate remote-debug
17248 information if noack_mode is set.
17249
17250 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17251
17252 * server.c (handle_query): Report qXfer:siginfo:read and
17253 qXfer:siginfo:write as supported and handle them.
17254 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17255 * linux-low.c (linux_xfer_siginfo): New.
17256 (linux_target_ops): Set it.
17257
17258 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17259
17260 * server.c (gdbserver_usage): Mention --remote-debug.
17261 (main): Accept '--remote-debug' switch.
17262
17263 2009-01-18 Doug Evans <dje@google.com>
17264
17265 * regcache.c (new_register_cache): No need to check result of xcalloc.
17266 * server.c (handle_search_memory): Back out calls to xmalloc,
17267 result is checked and error is returned to user upon failure.
17268 (handle_query): Ditto. Add more checks for result of malloc.
17269 (handle_v_cont): Check result of malloc, report error back to
17270 user upon failure.
17271 (handle_v_run): Ditto. Call freeargv.
17272 * server.h (freeargv): Declare.
17273 * utils.c (freeargv): New fn.
17274
17275 2009-01-15 Doug Evans <dje@google.com>
17276
17277 * gdbreplay.c (perror_with_name): Make arg const char *.
17278 * server.h (target_signal_to_name): Make return type const char *.
17279 * thread-db.c (thread_db_err_str): Make return type const char *.
17280 * utils.c (perror_with_name): Make arg const char *.
17281
17282 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17283
17284 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17285 when handling a EXIT_PROCESS_DEBUG_EVENT.
17286
17287 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17288
17289 * gdbreplay.c (gdbreplay_version): Update copyright year.
17290 * server.c (gdbserver_version): Likewise.
17291
17292 2009-01-05 Doug Evans <dje@google.com>
17293
17294 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17295 (handle_extended_wait): Improve comment.
17296
17297 2008-12-13 Doug Evans <dje@google.com>
17298
17299 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17300 * server.h (ATTR_MALLOC): New macro.
17301 (xmalloc,xcalloc,xstrdup): Declare.
17302 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17303 * inferiors.c: Ditto.
17304 * linux-low.c: Ditto.
17305 * mem-break.c: Ditto.
17306 * regcache.c: Ditto.
17307 * remote-utils.c: Ditto.
17308 * server.c: Ditto.
17309 * target.c: Ditto.
17310 * win32-low.c: Ditto.
17311
17312 2008-12-12 Doug Evans <dje@google.com>
17313
17314 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17315 in debugging printf.
17316
17317 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17318
17319 2008-12-09 Doug Evans <dje@google.com>
17320
17321 * linux-low.h (struct process_info): Delete member tid, unused.
17322 * thread-db.c (find_one_thread): Update.
17323 (maybe_attach_thread): Update.
17324
17325 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17326
17327 * target.h (struct target_ops): Add qxfer_osdata member.
17328 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17329 and dirent.h.
17330 (linux_qxfer_osdata): New functions.
17331 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17332 callback.
17333 * server.c (handle_query): Handle "qXfer:osdata:read:".
17334 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17335 (buffer_xml_printf): New functions.
17336 * server.h (struct buffer): New.
17337 (buffer_grow_str, buffer_grow_str0): New macros.
17338 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17339 (buffer_xml_printf): Declare.
17340
17341 2008-11-24 Doug Evans <dje@google.com>
17342
17343 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17344
17345 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17346
17347 * server.c (handle_v_run): Always use the supplied argument list.
17348
17349 2008-11-19 Bob Wilson <bob.wilson@acm.org>
17350
17351 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17352 (xtensa_regmap_table): Add entry for scompare1.
17353
17354 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17355
17356 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17357 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17358 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17359 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17360 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17361 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17362 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17363 XML target descriptions.
17364 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17365 when inferior is running on an ISA 2.05 or later processor. Add
17366 special case to return offset for full 64-bit slot of FPSCR when
17367 in 32-bits.
17368
17369 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17370
17371 * Makefile.in (SFILES, clean): Added sparc64 files.
17372 (reg-sparc64.o, reg-sparc64.c): New.
17373 * configure.srv (sparc*-*-linux*): New configuration.
17374 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17375 syscall arguments for SPARC.
17376 (regsets_store_inferior_registers): Likewise.
17377 * linux-sparc-low.c: New file.
17378
17379 2008-10-21 Doug Evans <dje@google.com>
17380
17381 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17382 (READLINE_DIR,READLINE_DEP): Delete.
17383 (INTERNAL_CFLAGS): Update.
17384 (LINTFLAGS): Update.
17385
17386 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17387
17388 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17389 whole argv from the last run, not just argv[0].
17390
17391 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17392
17393 * regcache.c (new_register_cache): Return NULL if the register
17394 cache size isn't known yet.
17395 (free_register_cache): Avoid dereferencing a NULL regcache.
17396
17397 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17398
17399 * configure.srv: Merge MIPS and MIPS64.
17400
17401 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17402
17403 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17404
17405 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17406
17407 * Makefile.in: Add required vsx dependencies.
17408
17409 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17410 Declare init_registers_powerpc_vsx32l.
17411 Declare init_registers_powerpc_vsx64l.
17412 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17413 (ppc_arch_setup): Check for VSX in hwcap.
17414 (ppc_fill_vsxregset): New function.
17415 (ppc_store_vsxregset): New function.
17416 Add new VSX entry in regset_info target_regsets.
17417
17418 * configure.srv: Add new VSX dependencies.
17419
17420 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17421
17422 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17423 (remote_open): Set or clear transport_is_reliable.
17424 (putpkt_binary): Don't expect acks in noack mode.
17425 (getpkt): Don't send ack/nac in noack mode.
17426 * server.c (handle_general_set): Handle QStartNoAckMode.
17427 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17428 qSupported.
17429 (main): Reset noack_mode on every connection.
17430 * server.h (noack_mode): Declare.
17431
17432 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17433
17434 * Makefile.in (GDBREPLAY_OBS): New variable.
17435 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17436
17437 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17438 Daniel Jacobowitz <dan@codesourcery.com>
17439
17440 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17441 (usr_store_inferior_registers): Likewise.
17442 (regsets_store_inferior_registers): Likewise.
17443
17444 2008-07-31 Rolf Jansen <rj@surtec.com>
17445 Pedro Alves <pedro@codesourcery.com>
17446
17447 * configure.ac: Check for memmem declaration.
17448 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17449 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17450 (disable_packet_qfThreadInfo): Unconditionally compile.
17451 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17452 * configure, config.in: Regenerate.
17453
17454 2008-07-28 Doug Kwan <dougkwan@google.com>
17455
17456 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17457 (linux_write_memory): Remove declaration of errno.
17458
17459 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17460
17461 * linux-low.c (handle_extended_wait): Do not use "status"
17462 variable uninitialized.
17463
17464 2008-07-07 Pedro Alves <pedro@codesourcery.com>
17465
17466 * server.c (handle_v_attach): Inhibit reporting dll changes.
17467
17468 2008-06-27 Pedro Alves <pedro@codesourcery.com>
17469
17470 * remote-utils.c (prepare_resume_reply): If requested, don't
17471 output "thread:TID" in the T stop reply.
17472
17473 * server.c (disable_packet_vCont, disable_packet_Tthread)
17474 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17475 (handle_query): If requested, disable support for qC, qfThreadInfo
17476 and qsThreadInfo.
17477 (handle_v_requests): If requested, disable support for vCont.
17478 (gdbserver_show_disableable): New.
17479 (main): Handle --disable-packet and --disable-packet=LIST.
17480
17481 * server.h (disable_packet_vCont, disable_packet_Tthread)
17482 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17483
17484 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17485
17486 * server.c (gdbserver_usage): Mention --version.
17487
17488 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17489
17490 * Makefile.in (gdbreplay.o): New rule.
17491
17492 2008-06-06 Joseph Myers <joseph@codesourcery.com>
17493
17494 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17495 message, not gdbserver.
17496
17497 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
17498 Nathan Sidwell <nathan@codesourcery.com>
17499 Joseph Myers <joseph@codesourcery.com>
17500
17501 * acinclude.m4: Include ../../config/acx.m4.
17502 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17503 * configure, config.in: Regenerate.
17504 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17505 * server.c (gdbserver_version): Print PKGVERSION.
17506 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17507 (main): Adjust gdbserver_usage calls.
17508 * gdbreplay.c (version, host_name): Add declarations.
17509 (gdbreplay_version, gdbreplay_usage): New.
17510 (main): Accept --version and --help options.
17511
17512 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17513
17514 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17515 (arm_breakpoint_at): Handle Thumb.
17516 (the_low_target): Add comment.
17517
17518 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17519
17520 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17521
17522 2008-05-09 Doug Evans <dje@google.com>
17523
17524 * server.h (decode_search_memory_packet): Declare.
17525 * remote-utils.c (decode_search_memory_packet): New fn.
17526 * server.c (handle_search_memory_1): New fn.
17527 (handle_search_memory): New fn.
17528 (handle_query): Process qSearch:memory packets.
17529
17530 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17531
17532 * regcache.c (registers_length): Remove.
17533 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17534 full register packet.
17535 * regcache.h (registers_length): Remove prototype.
17536 * server.h (PBUFSIZ): Define to 16384.
17537
17538 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17539
17540 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17541 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17542 powerpc-64l.o, and powerpc-altivec64l.o.
17543 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17544 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17545 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17546 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17547 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17548 to srv_xmlfiles.
17549
17550 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17551 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17552 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17553 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17554 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17555 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17556 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17557 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17558 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17559 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17560 (clean): Update.
17561
17562 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17563 (init_registers_powerpc_32l): ... this new prototype.
17564 (init_registers_powerpc_32): Remove, replace by ...
17565 (init_registers_powerpc_altivec32l): ... this new prototype.
17566 (init_registers_powerpc_e500): Remove, replace by ...
17567 (init_registers_powerpc_e500l): ... this new prototype.
17568 (init_registers_ppc64): Remove, replace by ...
17569 (init_registers_powerpc_64l): ... this new prototype.
17570 (init_registers_powerpc_64): Remove, replace by ...
17571 (init_registers_powerpc_altivec64l): ... this new prototype.
17572 (ppc_num_regs): Set to 73.
17573 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17574 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17575 (ppc_cannot_store_register): Handle orig_r3 and trap.
17576 (ppc_arch_setup): Update init_registers_... calls.
17577 (ppc_fill_gregset): Handle orig_r3 and trap.
17578
17579 * inferiors.c (clear_inferiors): Reset current_inferior.
17580
17581 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17582
17583 * acinclude.m4: Add override.m4.
17584 * configure: Regenerate.
17585
17586 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17587
17588 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17589 initial call to init_register_ppc64.
17590
17591 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17592
17593 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17594 single powerpc*-*-linux* case.
17595 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17596
17597 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17598
17599 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
17600 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
17601 from reg_xmlfiles.
17602 * linux-ppc-low.c: Include <elf.h>.
17603 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17604 (ppc_hwcap): New global variable.
17605 (ppc_regmap): Remove __SPE__ #ifdef sections.
17606 (ppc_regmap_e500): New global variable.
17607 (ppc_cannot_store_register): Update __SPE__ special case.
17608 (ppc_get_hwcap): New function.
17609 (ppc_arch_setup): Use it to determine whether inferior supports
17610 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17611 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17612 Do not access registers if target does not support AltiVec.
17613 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17614 Do not access registers if target does not support SPE.
17615 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17616
17617 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17618
17619 * linux-low.c (disabled_regsets, num_regsets): New.
17620 (use_regsets_p): Delete.
17621 (linux_wait_for_process): Clear disabled_regsets.
17622 (regsets_fetch_inferior_registers): Check and set it.
17623 (regsets_store_inferior_registers): Likewise.
17624 (linux_fetch_registers, linux_store_registers): Do not use
17625 use_regsets_p.
17626 (initialize_low): Allocate disabled_regsets.
17627
17628 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17629
17630 * Makefile.in (LIBOBJS): New.
17631 (OBS): Use LIBOBJS.
17632 (memmem.o): New rule.
17633 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17634 * configure: Regenerated.
17635
17636 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17637
17638 * server.c (handle_query): Never return "unsupported" for
17639 qXfer:features:read queries.
17640
17641 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17642
17643 * server.c (get_features_xml): Fix inverted condition.
17644 (handle_query): Always support qXfer:feature:read.
17645
17646 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17647
17648 * server.c (wrapper_argv): New.
17649 (start_inferior): Handle wrapper_argv. If set, expect an extra
17650 trap.
17651 (gdbserver_usage): Document --wrapper.
17652 (main): Parse --wrapper.
17653
17654 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17655
17656 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17657 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17658 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17659 (ppc_set_pc): Likewise.
17660 (ppc_arch_setup): New function.
17661 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17662 of collect_register.
17663 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
17664
17665 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17666
17667 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17668 instead of linux-ppc64-low.o.
17669 * linux-ppc64-low.c: Remove file.
17670 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17671 (linux-ppc64-low.o): Remove rule.
17672
17673 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17674 (init_registers_powerpc_64): Likewise.
17675 (ppc_regmap): Conditionally define depending on __powerpc64__.
17676 (ppc_cannot_store_register): Do not special-case "fpscr" when
17677 compiled on __powerpc64__.
17678 (ppc_collect_ptrace_register): New function.
17679 (ppc_supply_ptrace_register): New function.
17680 (ppc_breakpoint): Change type to "unsigned int".
17681 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17682 (the_low_target): Conditionally provide initializers for the
17683 arch_setup member depending on __powerpc64__. Install
17684 collect_ptrace_register and supply_ptrace_register members.
17685
17686 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17687
17688 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17689 * server.c (gdbserver_xmltarget): Define.
17690 (get_features_xml): Use it to replace "target.xml" and arch_string.
17691
17692 * configure.srv: Remove srv_xmltarget. Add XML files that were
17693 mentioned there to srv_xmlfiles instead. Remove conditional tests
17694 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17695 srv_xmlfiles and srv_regobj to include all possible choices.
17696 * configure.ac (srv_xmltarget): Remove.
17697 (srv_xmlfiles): Do not add "target.xml".
17698 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17699 checks for supplementary target information.
17700 * configure: Regenerate.
17701 * Makefile.in (XML_TARGET): Remove.
17702 (target.xml): Remove rule.
17703 (clean): Do not clean up target.xml.
17704 (.PRECIOUS): Do not mention target.xml.
17705
17706 * target.h (struct target_ops): Remove arch_string member.
17707 * linux-low.c (linux_arch_string): Remove.
17708 (linux_target_ops): Remove arch_string initializer.
17709 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17710 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17711 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17712 * spu-low.c (spu_arch_string): Remove.
17713 (spu_target_ops): Remove arch_string initializer.
17714 * win32-low.c (win32_arch_string): Remove.
17715 (win32_target_ops): Remove arch_string initializer.
17716 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17717 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17718 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17719
17720 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17721
17722 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17723 by collect_ptrace_register and supply_ptrace_register hooks.
17724 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17725 instead of checking for the_low_target.left_pad_xfer.
17726 (usr_store_inferior_registers): Use collect_ptrace_register callback
17727 instead of checking for the_low_target.left_pad_xfer.
17728
17729 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17730 (s390_supply_ptrace_register): Likewise.
17731 (s390_fill_gregset): Call s390_collect_ptrace_register.
17732 (the_low_target): Update.
17733
17734 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17735 (ppc_supply_ptrace_register): Likewise.
17736 (the_low_target): Update.
17737
17738 * linux-i386-low.c (the_low_target): Update.
17739 * linux-x86-64-low.c (the_low_target): Update.
17740
17741 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17742
17743 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17744 reg-s390.o and reg-s390x.o.
17745
17746 * linux-low.c (new_inferior): New global variable.
17747 (linux_create_inferior, linux_attach): Set it.
17748 (linux_wait_for_process): Call the_low_target.arch_setup after the
17749 target has stopped for the first time.
17750 (initialize_low): Do not call the_low_target.arch_setup.
17751
17752 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17753 (s390_set_pc): Likewise.
17754 (s390_arch_setup): New function.
17755 (the_low_target): Use s390_arch_setup as arch_setup routine.
17756
17757 * regcache.c (realloc_register_cache): New function.
17758 (set_register_cache): Call it for each existing regcache.
17759
17760 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17761
17762 * server.h (init_registers): Remove prototype.
17763
17764 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17765 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17766 instead of init_registers ().
17767 * linux-arm-low.c (init_registers_arm): Add prototype.
17768 (init_registers_arm_with_iwmmxt): Likewise.
17769 (the_low_target): Add initializer for arch_setup field.
17770 * linux-cris-low.c (init_registers_cris): Add prototype.
17771 (the_low_target): Add initializer for arch_setup field.
17772 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17773 (the_low_target): Add initializer for arch_setup field.
17774 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17775 (the_low_target): Add initializer for arch_setup field.
17776 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17777 (the_low_target): Add initializer for arch_setup field.
17778 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17779 (the_low_target): Add initializer for arch_setup field.
17780 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17781 (the_low_target): Add initializer for arch_setup field.
17782 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17783 (init_registers_mips64_linux): Likewise.
17784 (the_low_target): Add initializer for arch_setup field.
17785 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17786 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17787 (the_low_target): Add initializer for arch_setup field.
17788 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17789 (init_registers_powerpc_64): Likewise.
17790 (the_low_target): Add initializer for arch_setup field.
17791 * linux-s390-low.c (init_registers_s390): Add prototype.
17792 (init_registers_s390x): Likewise.
17793 (the_low_target): Add initializer for arch_setup field.
17794 * linux-sh-low.c (init_registers_sh): Add prototype.
17795 (the_low_target): Add initializer for arch_setup field.
17796 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17797 (the_low_target): Add initializer for arch_setup field.
17798 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17799 (the_low_target): Add initializer for arch_setup field.
17800
17801 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17802 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17803 instead of init_registers ().
17804 * win32-arm-low.c (init_registers_arm): Add prototype.
17805 (the_low_target): Add initializer for arch_setup field.
17806 * win32-i386-low.c (init_registers_i386): Add prototype.
17807 (the_low_target): Add initializer for arch_setup field.
17808
17809 * spu-low.c (init_registers_spu): Add prototype.
17810 (initialize_low): Call initialie_registers_spu () instead of
17811 initialize_registers ().
17812
17813 2008-02-19 Pedro Alves <pedro@codesourcery.com>
17814
17815 * server.c (handle_v_requests): When handling the vRun and vAttach
17816 packets, if already debugging a process, don't kill it. Return an
17817 error instead.
17818
17819 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17820
17821 * server.c (handle_query): Correct length check.
17822
17823 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17824
17825 * win32-low.c (do_initial_child_stuff): Add process handle
17826 parameter. Set current_process_handle and current_process_id from the
17827 parameters. Clear globals.
17828 (win32_create_inferior): Don't set current_process_handle and
17829 current_process_id here. Instead pass them on the call to
17830 do_initial_child_stuff.
17831 (win32_attach): Likewise.
17832 (win32_clear_inferiors): New.
17833 (win32_kill): Don't close the current process handle or the
17834 current thread handle here. Instead call win32_clear_inferiors.
17835 (win32_detach): Don't open a new handle to the process. Call
17836 win32_clear_inferiors.
17837 (win32_join): Don't rely on current_process_handle; open a new
17838 handle using the process id.
17839 (win32_wait): Call win32_clear_inferiors when the inferior process
17840 has exited.
17841
17842 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17843
17844 * server.c (monitor_show_help): Add "exit".
17845
17846 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17847
17848 * Makefile.in (SFILES): Add linux-xtensa-low.c.
17849 (clean): Add reg-xtensa.c.
17850 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
17851 * configure.srv (xtensa*-*-linux*) New target.
17852 * linux-xtensa-low.c: New.
17853 * xtensa-xtregs.c: New.
17854
17855 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17856
17857 * hostio.c: Don't include errno.h.
17858 (errno_to_fileio_errno): Move to hostio-errno.
17859 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17860 error number outputting to the target->hostio_last_error callback.
17861 (hostio_packet_error): Use FILEIO_EINVAL directly.
17862 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17863 calls to hostio_error.
17864 * hostio-errno.c: New.
17865 * server.h (hostio_last_error_from_errno): Declare.
17866 * target.h (target_ops): Add hostio_last_error member.
17867 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17868 as hostio_last_error handler.
17869 * spu-low.c (spu_target_ops): Likewise.
17870 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17871 (wince_hostio_last_error): New functions.
17872 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17873 as hostio_last_error handler.
17874 (win32_target_ops) [!_WIN32_WCE]: Register
17875 hostio_last_error_from_errno as hostio_last_error handler.
17876 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17877 (hostio-errno.o): New rule.
17878 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17879 * configure.srv (srv_hostio_err_objs): New variable. Default to
17880 hostio-errno.o.
17881 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17882 * configure: Regenerate.
17883
17884 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17885
17886 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17887 (linux_kill, linux_detach): Clean up the process list.
17888 * remote-utils.c (remote_open): Improve port number parsing.
17889 (putpkt_binary, input_interrupt): Only send interrupts if the target
17890 is running.
17891 * server.c (extended_protocol): Make static.
17892 (attached): Define earlier.
17893 (exit_requested, response_needed, program_argv): New variables.
17894 (target_running): New.
17895 (start_inferior): Clear attached here.
17896 (attach_inferior): Set attached here.
17897 (require_running): Define.
17898 (handle_query): Use require_running and target_running. Implement
17899 "monitor exit".
17900 (handle_v_attach, handle_v_run): New.
17901 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17902 (gdbserver_usage): Update.
17903 (main): Redo argument parsing. Handle --debug and --multi. Handle
17904 --attach along with other options or after the port. Save
17905 program_argv. Support no initial program. Resynchronize
17906 communication with GDB after an error. Handle "monitor exit".
17907 Use require_running and target_running. Always allow the extended
17908 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17909 restart in extended mode.
17910 * README: Refer to the GDB manual. Update --attach usage.
17911
17912 2007-12-20 Andreas Schwab <schwab@suse.de>
17913
17914 * linux-low.c (STACK_SIZE): Define.
17915 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17916 (linux_test_for_tracefork): Likewise.
17917
17918 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17919
17920 * linux-low.c (linux_wait_for_event): Update messages. Do not
17921 reinsert auto-delete breakpoints.
17922 * mem-break.c (struct breakpoint): Change return type of handler to
17923 int.
17924 (set_breakpoint_at): Update handler type.
17925 (reinsert_breakpoint_handler): Return 1 instead of calling
17926 delete_breakpoint.
17927 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17928 setting a new one.
17929 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17930 * mem-break.h (set_breakpoint_at): Update handler type.
17931 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17932 * win32-low.c (auto_delete_breakpoint): New.
17933 (get_child_debug_event): Use it.
17934
17935 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17936
17937 * configure.ac: Check for pread and pwrite.
17938 * hostio.c (handle_pread): Fall back to lseek and read.
17939 (handle_pwrite): Fall back to lseek and write.
17940 * config.in, configure: Regenerated.
17941
17942 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17943
17944 * server.c (myresume): Add own_buf argument.
17945 (main): Update calls.
17946
17947 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17948
17949 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17950 * remote-utils.c (remote_open): Do not call disable_async_io.
17951 (block_async_io): Delete.
17952 (unblock_async_io): Make static.
17953 (initialize_async_io): New.
17954 * server.c (handle_v_cont): Handle async I/O here.
17955 (myresume): Likewise. Move other common resume tasks here...
17956 (main): ... from here. Call initialize_async_io. Disable async
17957 I/O before the main loop.
17958 * server.h (initialize_async_io): Declare.
17959 (block_async_io, unblock_async_io): Delete prototypes.
17960 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17961
17962 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17963
17964 * remote-utils.c (readchar): Allow binary data in received messages.
17965
17966 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17967
17968 * win32-low.c (attaching): New global.
17969 (win32_create_inferior): Clear the `attaching' global.
17970 (win32_attach): Set the `attaching' global.
17971 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17972 attaching. Only set a breakpoint at the entry point if not
17973 attaching.
17974
17975 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17976
17977 * server.c (main): Don't report dll events on the initial
17978 connection on attaches.
17979
17980 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17981
17982 * server.c (main): Relax numerical bases supported for the pid of
17983 the --attach command line argument.
17984
17985 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17986
17987 * win32-low.c (win32_attach): Call OpenProcess before
17988 DebugActiveProcess, not after. Add last error output to error
17989 call.
17990
17991 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17992
17993 * win32-low.c (win32_get_thread_context)
17994 (win32_set_thread_context): New functions.
17995 (thread_rec): Use win32_get_thread_context.
17996 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17997 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17998 field.
17999
18000 2007-12-03 Leo Zayas
18001 Pedro Alves <pedro_alves@portugalmail.pt>
18002
18003 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18004 global variables.
18005 (child_add_thread): Minor cleanup.
18006 (child_continue): Resume artificially suspended threads before
18007 calling ContinueDebugEvent.
18008 (suspend_one_thread): New.
18009 (fake_breakpoint_event): New.
18010 (get_child_debug_event): Change return type to int. Check here if
18011 gdb sent an interrupt request. If a soft interrupt was requested,
18012 fake a breakpoint event. Return 0 if there is no event to handle,
18013 and 1 otherwise.
18014 (win32_wait): Don't check here if gdb sent an interrupt request.
18015 Ensure there is a valid event to handle.
18016 (win32_request_interrupt): Add soft interruption method as last
18017 resort.
18018
18019 2007-12-03 Leo Zayas
18020 Pedro Alves <pedro_alves@portugalmail.pt>
18021
18022 * win32-low.h (win32_thread_info): Add descriptions to the
18023 structure members. Replace `suspend_count' counter by a
18024 `suspended' flag.
18025 * win32-low.c (thread_rec): Update condition of when to get the
18026 context from the inferior. Rely on ContextFlags being set if it
18027 has already been retrieved. Only suspend the inferior thread if
18028 we haven't already. Warn if that fails.
18029 (continue_one_thread): s/suspend_count/suspended/. Only call
18030 ResumeThread once. Warn if that fails.
18031
18032 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18033
18034 * win32-low.c (win32_wait): Don't read from the inferior when it
18035 has already exited.
18036
18037 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18038
18039 * Makefile.in (win32_low_h): New variable.
18040 (win32-low.o): Add dependency on $(win32_low_h).
18041 (win32-arm-low.o, win32-i386-low.o): New rules.
18042
18043 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18044
18045 * hostio.c: Correct copyright year.
18046
18047 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18048
18049 * Makefile.in (OBS): Add hostio.o.
18050 (hostio.o): New rule.
18051 * server.h (handle_vFile): Declare.
18052 * hostio.c: New file.
18053 * server.c (handle_v_requests): Take packet_len and new_packet_len
18054 for binary packets. Call handle_vFile.
18055 (main): Update call to handle_v_requests.
18056
18057 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18058
18059 * linux-low.c: Include <sched.h>.
18060
18061 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18062
18063 * linux-low.c (linux_tracefork_grandchild): New.
18064 (linux_tracefork_child): Use clone.
18065 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18066
18067 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18068
18069 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18070
18071 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18072
18073 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18074
18075 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18076
18077 * inferiors.c (change_inferior_id): Delete.
18078 (add_pid_to_list, pull_pid_from_list): New.
18079 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18080 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18081 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18082 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18083 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18084 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18085 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18086 (using_threads): Always set to 1.
18087 (handle_extended_wait): New.
18088 (add_process): Do not set TID.
18089 (linux_create_inferior): Set must_set_ptrace_flags.
18090 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18091 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18092 (linux_thread_alive): Rename TID argument to LWPID.
18093 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18094 (linux_wait_for_event): Do not use TID or check using_threads. Update
18095 call to dead_thread_notify. Call handle_extended_wait.
18096 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18097 (send_sigstop): Delete sigstop_sent.
18098 (wait_for_sigstop): Avoid TID.
18099 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18100 (linux_test_for_tracefork): New.
18101 (linux_lookup_signals): Use thread_db_active and
18102 linux_supports_tracefork_flag.
18103 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18104 * linux-low.h (get_process_thread): Avoid TID.
18105 (struct process_ifo): Move thread_known and tid to the end. Remove
18106 sigstop_sent.
18107 (linux_attach_lwp, thread_db_init): Update prototypes.
18108 * server.h (change_inferior_id): Delete prototype.
18109 (add_pid_to_list, pull_pid_from_list): New prototypes.
18110 * thread-db.c (thread_db_use_events): New.
18111 (find_first_thread): Rename to...
18112 (find_one_thread): ...this. Update callers and messages. Do not
18113 call fatal. Check thread_db_use_events. Do not call
18114 change_inferior_id or new_thread_notify.
18115 (maybe_attach_thread): Update. Do not call new_thread_notify.
18116 (thread_db_init): Set thread_db_use_events. Check use_events.
18117 * utils.c (fatal, warning): Correct message prefix.
18118
18119 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18120
18121 * Makefile.in (clean): Remove new files.
18122 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18123 (powerpc-64.o, powerpc-64.c): New rules.
18124 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18125 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18126 with SPE.
18127 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18128 SPE targets.
18129 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18130 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18131 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18132 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18133 (target_regsets): Add AltiVec and SPE register sets.
18134 * configure.ac: Check for AltiVec and SPE.
18135 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18136 (ppc_fill_vrregset, ppc_store_vrregset): New.
18137 (target_regsets): Add AltiVec register set.
18138 * configure: Regenerated.
18139
18140 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18141
18142 * linux-low.c (O_LARGEFILE): Define.
18143 (linux_read_memory): Use /proc/PID/mem.
18144 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18145 * configure, config.in: Regenerated.
18146
18147 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18148
18149 * linux-low.c (linux_wait_for_event): Do not pass signals while
18150 single-stepping.
18151
18152 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18153
18154 * win32-low.c (create_process): New.
18155 (win32_create_inferior): Use create_process instead of
18156 CreateProcess. If create_process failed retry appending an ".exe"
18157 suffix. Store the GetLastError result immediatelly after
18158 create_process calls and use it on the call to error.
18159
18160 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18161
18162 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18163
18164 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18165
18166 * configure.ac: Switch license to GPLv3.
18167
18168 2007-08-01 Michael Snyder <msnyder@access-company.com>
18169
18170 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18171
18172 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18173
18174 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18175 typedef.
18176 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18177 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18178 CloseToolhelp32Snapshot.
18179 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18180 CloseToolhelp32Snapshot.
18181
18182 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18183
18184 * server.c (main): Check for inferior exit before main loop.
18185
18186 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18187
18188 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18189 instead of on tmp_desc.
18190
18191 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18192 Daniel Jacobowitz <dan@codesourcery.com>
18193
18194 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18195 (add_thread): Minor cleanups.
18196 (clear_inferiors): Move lower in the file. Clear the DLL
18197 list.
18198 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18199 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18200 (xml_escape_text): New.
18201 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18202 for qSupported.
18203 (handle_v_cont): Report errors.
18204 (gdbserver_version): Update.
18205 (main): Correct size of own_buf. Do not report initial DLL events.
18206 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18207 (unloaded_dll, xml_escape_text): New.
18208 * win32-low.c (enum target_waitkind): Update comments.
18209 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18210 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18211 (win32_EnumProcessModules, win32_GetModuleInformation)
18212 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18213 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18214 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18215 (win32_Module32First, win32_Module32Next, load_toolhelp)
18216 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18217 (get_child_debug_event): Handle DLL events.
18218 (win32_wait): Likewise.
18219
18220 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18221
18222 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18223 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18224
18225 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18226
18227 * win32-low.c (handle_output_debug_string): Ignore event if not
18228 waiting.
18229
18230 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18231
18232 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18233
18234 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18235
18236 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18237
18238 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18239
18240 * inferiors.c (change_inferior_id): Add comment.
18241 * linux-low.c (check_removed_breakpoint): Add an early
18242 prototype. Improve debug output.
18243 (linux_attach): Doc update.
18244 (linux_detach_one_process, linux_detach): Clean up before releasing
18245 each process.
18246 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18247 * linux-low.h (struct process_info): Doc improvement.
18248 * mem-break.c (delete_all_breakpoints): New.
18249 * mem-break.h (delete_all_breakpoints): New prototype.
18250 * thread-db.c (find_first_thread): New.
18251 (thread_db_create_event): Call it instead of
18252 thread_db_find_new_threads. Clean up unused variables.
18253 (maybe_attach_thread): Remove first thread handling.
18254 (thread_db_find_new_threads): Use find_first_thread.
18255 (thread_db_get_tls_address): Likewise.
18256
18257 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18258
18259 * thread-db.c (thread_db_find_new_threads): Add prototype.
18260 (thread_db_create_event): Check for the main thread before adding
18261 a new thread.
18262 (maybe_attach_thread): Only enable event reporting if TID == 0.
18263 (thread_db_get_tls_address): Check for new threads.
18264
18265 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18266
18267 * linux-low.c (linux_create_inferior): Try execv before execvp.
18268 * spu-low.c (spu_create_inferior): Likewise.
18269
18270 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18271
18272 * linux-low.c (linux_create_inferior): Change execv to execvp.
18273 * spu-low.c (spu_create_inferior): Likewies.
18274
18275 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18276
18277 * Makefile.in (clean): Clean new files instead of deleted ones.
18278 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18279 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18280 rules.
18281 * configure.srv: Specify XML files and new regformats for MIPS and
18282 MIPS64 GNU/Linux.
18283 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18284 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18285 an entry for the restart register.
18286 (mips_cannot_fetch_register, mips_cannot_store_register)
18287 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18288 register names to match the XML descriptions.
18289 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18290 restart register instead of $0.
18291
18292 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18293 Markus Deuling <deuling@de.ibm.com>
18294
18295 * remote-utils.c (decode_xfer_write): New function.
18296 * server.h (decode_xfer_write): Add prototype.
18297 * server.c (handle_query): Add PACKET_LEN argument. Support
18298 qXfer:spu:read and qXfer:spu:write packets.
18299 (main): Pass packet_len to handle_query.
18300 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18301 * target.h (target_ops): Add qxfer_spu.
18302
18303 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18304
18305 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18306 accessing non-seekable spufs files.
18307
18308 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18309
18310 * server.c (handle_query): Add reply for qC packet.
18311
18312 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18313 Leo Zayas <lerele@champenstudios@com>
18314
18315 * server.h (check_remote_input_interrupt_request): New function.
18316 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18317 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18318 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18319 (check_remote_input_interrupt_request): New function.
18320 * server.h (check_remote_input_interrupt_request): Declare.
18321 * win32-low.c (winapi_DebugBreakProcess,
18322 winapi_GenerateConsoleCtrlEvent): New typedefs.
18323 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18324 to 250 ms.
18325 (win32_wait): Check for remote interrupt request
18326 with check_remote_input_interrupt_request.
18327 (win32_request_interrupt): New function.
18328 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18329
18330 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18331
18332 * win32-low.c (debug_registers_changed,
18333 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18334 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18335 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18336 (thread_rec): Get context using the low target.
18337 (child_add_thread): Call thread_added on the low target,
18338 which does the same thing.
18339 (regptr): Delete.
18340 (do_initial_child_stuff): Remove debug registers references.
18341 Set context using the low target. Resume threads after
18342 setting the contexts.
18343 (child_continue): Remove dead variable. Remove debug
18344 registers references.
18345 (child_fetch_inferior_registers): Go through the low target.
18346 (do_child_store_inferior_registers): Remove.
18347 (child_store_inferior_registers): Go through the low target.
18348 (win32_resume): Remove debug registers references.
18349 Set context using the low target.
18350 (handle_exception): Change return type to void. Don't record
18351 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18352 first chance exception.
18353 (get_child_debug_event): Change return type to void. Remove
18354 goto loop. Always return after waiting for debug event.
18355 (win32_wait): Convert to switch statement. Handle spurious
18356 events.
18357
18358 * win32-i386-low.c (debug_registers_changed,
18359 debug_registers_used): New.
18360 (initial_stuff): Rename to ...
18361 (i386_initial_stuff): ... this. Clear debug registers
18362 state variables.
18363 (store_debug_registers): Delete.
18364 (i386_get_thread_context): New.
18365 (load_debug_registers): Delete.
18366 (i386_set_thread_context): New.
18367 (i386_thread_added): New.
18368 (single_step): Rename to ...
18369 (i386_single_step): ... this.
18370 (do_fetch_inferior_registers): Rename to ...
18371 (i386_fetch_inferior_register): ... this.
18372 (i386_store_inferior_register): New.
18373 (the_low_target): Adapt to new interface.
18374
18375 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18376 (arm_get_thread_context): New.
18377 (arm_set_thread_context): New.
18378 (regptr): New.
18379 (do_fetch_inferior_registers): Rename to ...
18380 (arm_fetch_inferior_register): ... this.
18381 (arm_store_inferior_register): New.
18382 (arm_wince_breakpoint): Reimplement as unsigned long.
18383 (arm_wince_breakpoint_len): Define.
18384 (the_low_target): Adapt to new interface.
18385
18386 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18387 load_debug_registers. Add get_thread_context, set_thread_context,
18388 thread_added and store_inferior_register. Rename
18389 fetch_inferior_registers to fetch_inferior_register.
18390 (regptr): Remove declaration.
18391
18392 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18393
18394 * linux-low.c (linux_detach): Change return type to int. Return 0.
18395 * spu-low.c (spu_detach): Likewise.
18396
18397 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18398
18399 * target.h (target_ops): Change return type of detach to int.
18400 Add join.
18401 (join_inferior): New.
18402 * server.c (main): Don't skip detach support on mingw32.
18403 If the inferior doesn't support detaching return error.
18404 Call join_inferior instead of using waitpid.
18405 * linux-low.c (linux_join): New.
18406 (linux_target_op): Add linux_join.
18407 * spu-low.c (spu_join): New.
18408 (spu_target_ops): Add spu_join.
18409 * win32-low.c (win32_detach): Adapt to new interface.
18410 Reopen current_process_handle before detaching. Issue a child
18411 resume before detaching.
18412 (win32_join): New.
18413 (win32_target_op): Add win32_join.
18414
18415 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18416
18417 * win32-low.c (win32-attach): Fix return value.
18418 * target.h (target_ops): Describe ATTACH return values.
18419
18420 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18421
18422 * win32-low.c (GETPROCADDRESS): Define.
18423 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18424 (winapi_DebugSetProcessKillOnExit): Likewise.
18425 (win32_create_inferior): Force usage of ansi CreateProcessA.
18426 (win32_attach): Use GETPROCADDRESS.
18427 (win32_detach): Likewise.
18428
18429 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18430
18431 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18432
18433 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18434
18435 * win32-low.c: Commit leftover changes from 2007-03-29.
18436
18437 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18438
18439 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18440 fields short instead of int. Add explicit padding.
18441 (i387_cache_to_fsave): Remove unnecessary casts.
18442 (i387_fsave_to_cache): Doc fix.
18443 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18444
18445 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18446
18447 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18448 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18449
18450 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18451
18452 * configure.srv (arm*-*-mingw32ce*): Move near the other
18453 arm targets.
18454
18455 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18456
18457 * configure.ac: Add errno checking.
18458 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18459 sys/file.h and malloc.h.
18460 (AC_CHECK_DECLS): Add perror.
18461 (srv_mingwce): Handle.
18462 * configure.srv (i[34567]86-*-cygwin*): Add
18463 win32-i386-low.o to srv_tgtobj.
18464 (i[34567]86-*-mingw*): Likewise.
18465 (arm*-*-mingw32ce*): Add case.
18466 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18467 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18468 [__MINGW32CE__] (strerror): New function.
18469 [__MINGW32CE__] (errno): Define to GetLastError.
18470 [__MINGW32CE__] (COUNTOF): New macro.
18471 (remote_open): Remove extra close call.
18472 * mem-break.c (delete_breakpoint_at): New function.
18473 * mem-break.h (delete_breakpoint_at): Declare.
18474 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18475 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18476 [USE_WIN32API] (read, write): Add char* casts.
18477 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18478 * server.h: Include wincecompat.h on Windows CE.
18479 [HAVE_ERRNO_H]: Check.
18480 (perror): Declare if not declared.
18481 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18482 (perror_with_name): Remove errno declaration.
18483 * wincecompat.h: New.
18484 * wincecompat.c: New.
18485 * win32-low.h: New.
18486 * win32-arm-low.c: New.
18487 * win32-i386-low.c: New.
18488 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18489 (OUTMSG2): Make it safe.
18490 (_T): New macro.
18491 (COUNTOF): New macro.
18492 (NUM_REGS): Get it from the low target.
18493 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18494 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18495 (thread_rec): Let low target handle debug registers.
18496 (child_add_thread): Likewise.
18497 (child_init_thread_list): Likewise.
18498 (continue_one_thread): Likewise.
18499 (regptr): New.
18500 (do_child_fetch_inferior_registers): Move to ...
18501 * win32-i386-low.c: ... here, and rename to ...
18502 (do_fetch_inferior_registers): ... this.
18503 * win32-low.c (child_fetch_inferior_registers):
18504 Go through the low target.
18505 (do_child_store_inferior_registers): Use regptr.
18506 (strwinerror): New function.
18507 (win32_create_inferior): Handle Windows CE.
18508 Use strwinerror instead of strerror on Windows error
18509 codes. Add program to the error output.
18510 Don't close the main thread handle on Windows CE.
18511 (win32_attach): Use coredll.dll on Windows CE.
18512 (win32_kill): Close current process and current
18513 thread handles.
18514 (win32_detach): Use coredll.dll on Windows CE.
18515 (win32_resume): Let low target handle debug registers, and
18516 step request.
18517 (handle_exception): Add/Remove initial breakpoint. Avoid
18518 non-existant WSTOPSIG on Windows CE.
18519 (win32_read_inferior_memory): Cast to remove warning.
18520 (win32_arch_string): Go through the low target.
18521 (initialize_low): Call set_breakpoint_data with the low
18522 target's breakpoint.
18523 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18524 FOP_REGNUM, mappings): Move to ...
18525 * win32-i386-low.c: ... here.
18526 * win32-low.c (win32_thread_info): Move to ...
18527 * win32-low.h: ... here.
18528 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18529 win32-arm-low.c and wincecompat.c.
18530 (all:): Add $EXEEXT.
18531 (install-only:): Likewise.
18532 (gdbserver:): Likewise.
18533 (gdbreplay:): Likewise.
18534 * config.in: Regenerate.
18535 * configure: Regenerate.
18536
18537 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18538
18539 * win32-low.c: Rename typedef thread_info to
18540 win32_thread_info throughout.
18541
18542 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18543
18544 * win32-i386-low.c: Rename to ...
18545 * win32-low.c: ... this.
18546 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18547 * Makefile.in: Likewise.
18548
18549 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18550
18551 * remote-utils.c (monitor_output): Constify msg parameter.
18552 * server.h (monitor_output): Likewise.
18553 * win32-i386-low.c (handle_output_debug_string): New.
18554 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18555 handle_output_debug_string.
18556 (get_child_debug_event): Likewise.
18557
18558 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18559
18560 * server.c (main): Correct strtoul check.
18561
18562 2007-03-27 Jon Ringle <jon@ringle.org>
18563
18564 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18565
18566 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18567
18568 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18569
18570 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18571
18572 * terminal.h: Check HAVE_SGTTY_H.
18573
18574 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
18575
18576 * remote-utils.c (remote_open): Print out the assigned port number.
18577
18578 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18579
18580 * remote-utils.c (monitor_output): New function.
18581 * server.c (debug_threads): Define here.
18582 (monitor_show_help): New function.
18583 (handle_query): Handle qRcmd.
18584 (main): Do not handle 'd' packet.
18585 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18586 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18587 of debug_threads.
18588
18589 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18590
18591 * Makefile.in (EXEEXT): New.
18592 (clean): Use $(EXEEXT).
18593
18594 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18595
18596 * target.h (target_ops): Rename send_signal to request_interrupt,
18597 and remove enum target_signal parameter.
18598 * linux-low.c (linux_request_interrupt): Rename from
18599 linux_send_signal, and always send SIGINT.
18600 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18601 and always send SIGINT.
18602 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18603 of send_signal.
18604 (input_interrupt): Likewise.
18605
18606 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18607
18608 * server.c (get_features_xml): Check if target implemented
18609 arch_string.
18610 * win32-i386-low.c (win32_arch_string): New.
18611 (win32_target_ops): Add win32_arch_string as arch_string member.
18612
18613 2007-02-22 Markus Deuling <deuling@de.ibm.com>
18614
18615 * spu-low.c (spu_arch_string): New.
18616 (spu_target_ops): Add spu_arch_string.
18617
18618 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18619
18620 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18621 * configure.ac: Do not check for terminal.h.
18622 * configure, config.in: Regenerated.
18623
18624 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18625
18626 * Makefile.in (OBS): Add $(XML_BUILTIN).
18627 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18628 (clean): Update.
18629 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18630 (arm-with-iwmmxt.c): New.
18631 * config.in, configure: Regenerate.
18632 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18633 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18634 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18635 (arm*-*-linux*): Add iWMMXt and regset support.
18636 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18637 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18638 (arm_store_wmmxregset, target_regsets): New.
18639 * server.c (get_features_xml): Take annex argument. Check builtin
18640 XML documents.
18641 (handle_query): Handle multiple annexes.
18642
18643 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18644
18645 * remote-utils.c [USE_WIN32API] (read, write): Define.
18646 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18647 write.
18648
18649 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18650
18651 * linux-i386-low.c (the_low_target): Set arch_string.
18652 * linux-x86-64-low.c (the_low_target): Likewise.
18653 * linux-low.c (linux_arch_string): New.
18654 (linux_target_ops): Add it.
18655 * linux-low.h (struct linux_target_ops): Add arch_string.
18656 * server.c (write_qxfer_response): Use const void * for DATA.
18657 (get_features_xml): New.
18658 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18659 * target.h (struct target_ops): Add arch_string method.
18660
18661 2007-01-03 Denis Pilat <denis.pilat@st.com>
18662 Daniel Jacobowitz <dan@codesourcery.com>
18663
18664 * linux-low.c (linux_kill): Handle being called with no threads.
18665 * win32-i386-low.c (win32_kill): Likewise.
18666 (get_child_debug_event): Clear current_process_handle.
18667
18668 2006-12-30 Denis PILAT <denis.pilat@st.com>
18669 Daniel Jacobowitz <dan@codesourcery.com>
18670
18671 * remote-utils.c (remote_open): Check the type of specified
18672 serial port devices before opening them.
18673 * server.c (main): Kill the inferior if an error occurs during
18674 the first remote_open.
18675
18676 2006-12-05 Markus Deuling <deuling@de.ibm.com>
18677
18678 * README: Update supported targets.
18679
18680 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18681
18682 * Makefile.in (clean): Remove reg-mips64.c.
18683 (reg-mips64.c, reg-mips64.o): New rules.
18684 * configure.srv: Handle mips64. Include regset support for mips.
18685 * linux-mips-low.c (union mips_register): New.
18686 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18687 (mips_breakpoint, mips_breakpoint_at): Use int.
18688 (mips_collect_register, mips_supply_register)
18689 (mips_collect_register_32bit, mips_supply_register_32bit)
18690 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18691 (mips_store_fpregset, target_regsets): New.
18692 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18693
18694 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18695
18696 * configure.srv: Add target "spu*-*-*".
18697 * Makefile.in (clean): Remove reg-spu.c.
18698 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18699 * spu-low.c: New file.
18700
18701 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18702
18703 * configure.ac: Correct td_thr_tls_get_addr test.
18704 * configure: Regenerated.
18705
18706 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18707
18708 * linux-low.c (linux_wait_for_event): Reformat. Use the
18709 pass_signals array.
18710 * remote-utils.c (decode_address_to_semicolon): New.
18711 * server.c (pass_signals, handle_general_set): New.
18712 (handle_query): Mention QPassSignals for qSupported.
18713 (main): Call handle_general_set.
18714 * server.h (pass_signals, decode_address_to_semicolon): New.
18715
18716 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18717
18718 * server.c (handle_query): Correct error handling for read_auxv.
18719
18720 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18721
18722 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18723 and srv_linux_thread_db to yes.
18724 * linux-s390-low.c (s390_fill_gregset): New function.
18725 (target_regsets): Define data structure.
18726
18727 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18728
18729 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18730 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18731 * config.in, configure: Regenerated.
18732 * inferiors.c (gdb_id_to_thread): New function.
18733 (gdb_id_to_thread_id): Use it.
18734 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18735 * linux-low.h (struct process_info): Add th member.
18736 (thread_db_get_tls_address): New prototype.
18737 * remote-utils.c (decode_address): Make non-static.
18738 * server.c (handle_query): Handle qGetTLSAddr.
18739 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18740 * target.h (struct target_ops): Add get_tls_address.
18741 * thread-db.c (maybe_attach_thread): Save the thread handle.
18742 (thread_db_get_tls_address): New.
18743
18744 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18745
18746 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18747 (linux_resume_one_process): Take a siginfo_t *. Update all
18748 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18749 (struct pending_signals): Add a siginfo_t.
18750 (linux_wait_for_process): Always set last_status.
18751 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18752 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18753 * linux-low.h (struct process_info): Add last_status.
18754
18755 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18756
18757 * remote-utils.c (try_rle): New function.
18758 (putpkt_binary): Use it.
18759
18760 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18761
18762 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18763 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18764 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18765 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18766 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18767 point registers.
18768
18769 2006-08-08 Richard Sandiford <richard@codesourcery.com>
18770
18771 * server.c (terminal_fd): New variable.
18772 (old_foreground_pgrp): Likewise.
18773 (restore_old_foreground_pgrp): New function.
18774 (start_inferior): Record the terminal file descriptor in terminal_fd
18775 and its original foreground group in old_foreground_pgrp. Register
18776 restore_old_foreground_pgrp with atexit().
18777
18778 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18779
18780 * server.c (handle_query): Correct qPart to qXfer.
18781
18782 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18783
18784 * configure.ac: Check for more headers which are missing on
18785 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18786 * configure.srv: Add Cygwin and mingw32.
18787 * remote-utils.c: Don't include headers unconditionally which
18788 are missing on mingw32. Include <winsock.h> for mingw32.
18789 (remote_open): Adjust for mingw32 support. Flush
18790 standard error after writing to it.
18791 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18792 (unblock_async_io, enable_async_io, disable_async_io)
18793 (readchar, getpkt): Update for Winsock support.
18794 (prepare_resume_reply): Expect a protocol signal number.
18795 * server.c: Disable <sys/wait.h> on mingw32.
18796 (start_inferior): Adjust for mingw32 support. Flush
18797 standard error after writing to it.
18798 (attach_inferior): Likewise. Use protocol signal
18799 numbers.
18800 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18801 and names.
18802 * win32-i386-low.c: New file.
18803 * Makefile.in (XM_CLIBS): Set.
18804 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18805 (win32-i386-low.o): New dependency rule.
18806 * linux-low.c (linux_wait): Use target signal numbers.
18807 * target.h (struct target_ops): Doc fix.
18808 * server.h (target_signal_to_name): New prototype.
18809 * gdbreplay.c: Don't include headers unconditionally which
18810 are missing on mingw32. Include <winsock.h> for mingw32.
18811 (remote_close, remote_open): Adjust for Winsock support.
18812 * configure, config.in: Regenerated.
18813
18814 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18815
18816 * server.c (decode_xfer_read, write_qxfer_response): New.
18817 (handle_query): Take a packet length argument. Handle
18818 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18819 the qSupported response.
18820 (main): Update call to handle_query.
18821
18822 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18823
18824 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18825 (putpkt_binary): Renamed from putpkt and adjusted for binary
18826 data.
18827 (putpkt): New wrapper for putpkt_binary.
18828 (readchar): Don't mask off the high bit.
18829 (decode_X_packet): New function.
18830 * server.c (main): Call putpkt_binary if a handler sets the packet
18831 length. Save the length of the incoming packet. Handle 'X'.
18832 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18833
18834 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18835
18836 * server.c (handle_query): Handle qSupported.
18837
18838 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18839
18840 * remote-utils.c (all_symbols_looked_up): New variable.
18841 (look_up_one_symbol): Check it.
18842 * server.h (look_up_one_symbol): New declaration.
18843 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18844
18845 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18846
18847 * Makefile.in (linux-arm-low.o): Update dependencies.
18848 * linux-arm-low.c: Include "gdb_proc_service.h".
18849 (PTRACE_GET_THREAD_AREA): Define.
18850 (ps_get_thread_area): New function.
18851
18852 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18853
18854 * configure.srv (m68k*-*-uclinux*): New target.
18855 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18856 (linux_resume_one_process): Remove extraneous cast.
18857 (linux_read_offsets): New.
18858 (linux_target_op): Add linux_read_offsets on mmuless systems.
18859 * server.c (handle_query): Add qOffsets logic.
18860 * target.h (struct target_ops): Add read_offsets.
18861
18862 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18863
18864 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18865 (PTRACE_GET_THREAD_AREA): Define.
18866 (ps_get_thread_area): New function.
18867 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18868 (linux-x86-64-low.o): Update.
18869
18870 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18871
18872 * configure.ac: Remove checks for prfpregset_t.
18873 * gdb_proc_service.h: New file.
18874 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18875 new "gdb_proc_service.h".
18876 * proc-service.c: Likewise.
18877 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18878 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18879 * Makefile.in (gdb_proc_service_h): Updated.
18880 * configure, config.in: Regenerated.
18881
18882 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18883
18884 * remote-utils.c (prepare_resume_reply): Move declaration
18885 of gdb_id_from_wait to the top of the block.
18886
18887 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18888
18889 * linux-low.c (regsets_store_inferior_registers): Read the regset
18890 from the target before filling it.
18891
18892 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18893
18894 * server.c (attach_inferior): Return SIGTRAP for a successful
18895 attach.
18896
18897 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18898
18899 * Makefile.in (OBS): Add version.o.
18900 (STAGESTUFF): Delete.
18901 (version.o): Add dependencies.
18902 (version.c): Replace rule.
18903 (clean): Remove version.c.
18904 * server.c (gdbserver_version): New.
18905 (gdbserver_usage): Use printf.
18906 (main): Handle --version and --help.
18907 * server.h (version, host_name): Add declarations.
18908
18909 2005-12-23 Eli Zaretskii <eliz@gnu.org>
18910
18911 * linux-arm-low.c:
18912 * linux-arm-low.c:
18913 * inferiors.c:
18914 * i387-fp.h:
18915 * i387-fp.c:
18916 * gdbreplay.c:
18917 * regcache.c:
18918 * proc-service.c:
18919 * mem-break.h:
18920 * mem-break.c:
18921 * linux-x86-64-low.c:
18922 * linux-sh-low.c:
18923 * linux-s390-low.c:
18924 * linux-ppc64-low.c:
18925 * linux-ppc-low.c:
18926 * linux-mips-low.c:
18927 * linux-m68k-low.c:
18928 * linux-m32r-low.c:
18929 * linux-low.h:
18930 * linux-low.c:
18931 * linux-ia64-low.c:
18932 * linux-i386-low.c:
18933 * linux-crisv32-low.c:
18934 * thread-db.c:
18935 * terminal.h:
18936 * target.h:
18937 * target.c:
18938 * server.h:
18939 * server.c:
18940 * remote-utils.c:
18941 * regcache.h:
18942 * utils.c:
18943 * Makefile.in:
18944 * configure.ac:
18945 * gdbserver.1: Add (C) after Copyright. Update the FSF
18946 address.
18947
18948 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18949
18950 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18951 (arm_breakpoint_at): Recognize both breakpoints.
18952 (the_low_target): Use the correct breakpoint instruction.
18953
18954 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18955
18956 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18957 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18958 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18959 (the_low_target): Update.
18960
18961 2005-10-25 Andreas Schwab <schwab@suse.de>
18962
18963 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18964
18965 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18966 (ia64_num_regs): Reduce to 462.
18967
18968 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18969
18970 * acinclude.m4: Correct quoting.
18971 * aclocal.m4: Regenerated.
18972
18973 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18974 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18975 (thread_db_init): Call thread_db_err_str.
18976 * configure.ac: Check for TD_VERSION.
18977 * config.in, configure: Regenerated.
18978
18979 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18980
18981 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18982
18983 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18984
18985 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18986 is not available. Define HAVE_PTRACE_GETREGS if it is.
18987 * config.in, configure: Regenerated.
18988 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18989 * linux-i386-low.c, linux-m68k-low.c: Update to use
18990 HAVE_PTRACE_GETREGS.
18991 * linux-low.c (regsets_fetch_inferior_registers)
18992 (regsets_store_inferior_registers): Only return 0 if we processed
18993 GENERAL_REGS.
18994 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18995 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18996
18997 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18998
18999 * inferiors.c (struct thread_info): Add gdb_id.
19000 (add_thread): Add gdb_id argument.
19001 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19002 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19003 calls to add_thread.
19004 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19005 * server.c (handle_query): Use thread_to_gdb_id.
19006 (handle_v_cont, main): Use gdb_id_to_thread_id.
19007 * server.h (add_thread): Update prototype.
19008 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19009 prototypes.
19010
19011 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19012
19013 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19014 left-padded registers.
19015 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19016 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19017
19018 2005-07-01 Steve Ellcey <sje@cup.hp.com>
19019
19020 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19021 * configure: Regenerate.
19022 * config.in: Regenerate.
19023 * server.h (NEED_DECLARATION_STRERROR):
19024 Replace with !HAVE_DECL_STRERROR.
19025
19026 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19027
19028 * linux-low.c (linux_wait, linux_send_signal): Don't test
19029 an unsigned long variable for > 0 if it could be MAX_ULONG.
19030 * server.c (myresume): Likewise.
19031 * target.c (set_desired_inferior): Likewise.
19032
19033 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19034
19035 * configure.ac: Simplify and improve check for socklen_t.
19036 * configure, config.in: Regenerate.
19037
19038 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19039
19040 * acconfig.h: Remove.
19041 * configure.ac: Add a test for socklen_t. Use three-argument
19042 AC_DEFINE throughout.
19043 * config.in: Regenerated using autoheader 2.59.
19044 * configure: Regenerated.
19045
19046 * gdbreplay.c (socklen_t): Provide a default.
19047 (remote_open): Use socklen_t.
19048 * remote-utils.c (socklen_t): Provide a default.
19049 (remote_open): Use socklen_t.
19050 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19051 unsigned char.
19052
19053 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19054 char for buffers.
19055 * linux-low.c (linux_read_memory, linux_write_memory)
19056 (linux_read_auxv): Likewise.
19057 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19058 (check_mem_write): Likewise.
19059 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19060 Likewise.
19061 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19062 (registers_from_string, register_data): Likewise.
19063 * server.c (handle_query, main): Likewise.
19064 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19065 (decode_M_packet): Likewise.
19066 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19067 * target.h (struct target_ops): Update read_memory, write_memory,
19068 and read_auxv.
19069 (read_inferior_memory, write_inferior_memory): Update.
19070 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19071 to unsigned char *.
19072 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19073 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19074 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19075 linux-s390-low.c, linux-sh-low.c: Update for changes in
19076 read_inferior_memory and the_low_target->breakpoint.
19077
19078 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19079
19080 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19081 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19082 * configure.srv: Add powerpc64-*-linux*.
19083 * linux-ppc64-low.c: New file.
19084
19085 2005-05-23 Orjan Friberg <orjanf@axis.com>
19086
19087 * linux-cris-low.c: New file with support for CRIS.
19088 * linux-crisv32-low.c: Ditto for CRISv32.
19089 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19090 (clean): Add reg-cris.c and reg-crisv32.c.
19091 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19092 reg-crisv32.o, and reg-crisv32.c to make rules.
19093 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19094 recognized targets.
19095
19096 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19097
19098 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19099 of sizeof (PTRACE_XFER_TYPE).
19100 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19101
19102 2005-05-12 Orjan Friberg <orjanf@axis.com>
19103
19104 * target.h (struct target_ops): Add insert_watchpoint,
19105 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19106 pointers for hardware watchpoint support.
19107 * linux-low.h (struct linux_target_ops): Ditto.
19108 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19109 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19110 to linux_target_ops.
19111 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19112 reply packet.
19113 * server.c (main): Recognize 'Z' and 'z' packets.
19114
19115 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19116
19117 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19118 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19119 (the_low_target): Add new members.
19120
19121 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19122
19123 * proc-service.c (ps_lgetregs): Search all_processes instead of
19124 all_threads.
19125
19126 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19127
19128 * server.c (start_inferior): Change return type to int.
19129 (attach_inferior): Change sigptr to int *.
19130 (handle_v_cont, handle_v_requests): Change signal to int *.
19131 (main): Change signal to int.
19132
19133 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19134
19135 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19136 * configure.srv: Add m32r*-*-linux*.
19137 * linux-m32r-low.c: New file.
19138
19139 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19140
19141 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19142
19143 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19144
19145 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19146 Take unsigned long arguments for PIDs.
19147 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19148 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19149 (wait_for_sigstop, linux_resume_one_process)
19150 (regsets_fetch_inferior_registers, linux_send_signal)
19151 (linux_read_auxv): Likewise. Update the types of variables holding
19152 PIDs. Update format string specifiers.
19153 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19154 * remote-utils.c (prepare_resume_reply): Likewise.
19155 * server.c (cont_thread, general_thread, step_thread)
19156 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19157 unsigned long.
19158 (handle_query): Update format specifiers.
19159 (handle_v_cont, main): Use strtoul for thread IDs.
19160 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19161 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19162 (general_thread, step_thread, thread_from_wait)
19163 (old_thread_from_wait): Update.
19164 * target.h (struct thread_resume): Use unsigned long for THREAD.
19165 (struct target_ops): Use unsigned long for arguments to attach and
19166 thread_alive.
19167
19168 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19169
19170 * acinclude.m4: Include bfd/bfd.m4 directly.
19171 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19172 <agriffis@toolchain.org>.
19173 * aclocal.m4, configure: Regenerated.
19174
19175 2005-01-07 Andrew Cagney <cagney@gnu.org>
19176
19177 * configure.ac: Rename configure.in, require autoconf 2.59.
19178 * configure: Re-generate.
19179
19180 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19181
19182 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19183 LIBS when finished.
19184 * aclocal.m4: Regenerated.
19185 * configure: Regenerated.
19186
19187 2004-11-21 Andreas Schwab <schwab@suse.de>
19188
19189 * linux-m68k-low.c (m68k_num_gregs): Define.
19190 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19191 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19192 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19193 (m68k_breakpoint_at): New. Add to the_low_target.
19194
19195 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19196 srv_linux_thread_db to yes.
19197
19198 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19199
19200 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19201 (ARCH_SET_FS): Likewise.
19202 (ARCH_GET_FS): Likewise.
19203 (ARCH_GET_GS): Likewise.
19204
19205 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19206
19207 * linux-i386-low.c (ps_get_thread_area): New.
19208 * linux-x86-64-low.c (ps_get_thread_area): New.
19209 * linux-low.c: Include <sys/syscall.h>.
19210 (linux_kill_one_process): Don't kill the first thread here.
19211 (linux_kill): Kill the first thread here.
19212 (kill_lwp): New function.
19213 (send_sigstop, linux_send_signal): Use it.
19214 * proc-service.c: Clean up #ifdefs.
19215 (fpregset_info): Delete.
19216 (ps_lgetregs): Update and enable implementation.
19217 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19218 implementations.
19219 * remote-utils.c (struct sym_cache, symbol_cache): New.
19220 (input_interrupt): Print a clearer message.
19221 (async_io_enabled): New variable.
19222 (enable_async_io, disable_async_io): Use it. Update comments.
19223 (look_up_one_symbol): Use the symbol cache.
19224 * thread-db.c (thread_db_look_up_symbols): New function.
19225 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19226
19227 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19228
19229 * configure.in: Test for -rdynamic.
19230 * configure: Regenerated.
19231 * Makefile (INTERNAL_LDFLAGS): New.
19232 (gdbserver, gdbreplay): Use it.
19233
19234 2004-09-02 Andrew Cagney <cagney@gnu.org>
19235
19236 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19237
19238 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19239
19240 * linux-low.c (linux_wait): Clear all_processes list also.
19241
19242 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19243
19244 * linux-low.c: Include <errno.h>. Remove extern declaration of
19245 errno.
19246
19247 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19248
19249 * gdbreplay.c, server.h, utils.c: Update copyright years.
19250
19251 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19252
19253 * server.c (main): Print child status or termination signal from
19254 variable 'signal', not 'sig'.
19255
19256 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19257
19258 * linux-low.c (linux_read_memory): Change return type to
19259 int. Check for and return error from ptrace().
19260 * target.c (read_inferior_memory): Change return type to int. Pass
19261 back return status from the_target->read_memory().
19262 * target.h (struct target_ops): Adapt *read_memory() prototype.
19263 Update comment.
19264 (read_inferior_memory): Adapt prototype.
19265 * server.c (main): Return an error packet if
19266 read_inferior_memory() returns an error.
19267
19268 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19269
19270 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19271 Unify with other clean targets.
19272
19273 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19274
19275 * server.c (handle_v_cont): Call set_desired_inferior.
19276
19277 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19278
19279 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19280
19281 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19282
19283 * linux-low.c (linux_wait): Unblock async I/O.
19284 (linux_resume): Block and enable async I/O.
19285 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19286 * server.h (block_async_io, unblock_async_io): Add prototypes.
19287
19288 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19289
19290 * remote-utils.c (remote_open): Print a status notice after
19291 opening a TCP port.
19292 * server.c (attach_inferior): Print a status notice after
19293 attaching.
19294
19295 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19296
19297 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19298
19299 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19300
19301 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19302 error packet.
19303 * server.c, target.h: Update copyright years.
19304
19305 2004-02-25 Roland McGrath <roland@redhat.com>
19306
19307 * target.h (struct target_ops): New member `read_auxv'.
19308 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19309 * linux-low.c (linux_read_auxv): New function.
19310 (linux_target_ops): Initialize `read_auxv' member to that.
19311
19312 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19313
19314 Committed by Jim Blandy <jimb@redhat.com>.
19315
19316 * linux-s390-low.c (s390_num_regs): Update.
19317 (s390_regmap): Remove control registers. Use __s390x__ predefine
19318 instead of GPR_SIZE to distiguish s390 and s390x targets.
19319
19320 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19321
19322 * linux-low.c: Update copyright year.
19323 (check_removed_breakpoint): Clear pending_is_breakpoint.
19324 (linux_set_resume_request, linux_queue_one_thread)
19325 (resume_status_pending_p): New functions.
19326 (linux_continue_one_thread): Use process->resume.
19327 (linux_resume): Only resume threads if there are no pending events.
19328 * linux-low.h (struct process_info): Add resume request
19329 pointer.
19330
19331 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19332
19333 * regcache.c (new_register_cache): Clear the allocated register
19334 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19335
19336 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19337
19338 * linux-low.c (linux_resume): Take a struct thread_resume *
19339 argument.
19340 (linux_wait): Update call.
19341 (resume_ptr): New static variable.
19342 (linux_continue_one_thread): Renamed from
19343 linux_continue_one_process. Use resume_ptr.
19344 (linux_resume): Use linux_continue_one_thread.
19345 * server.c (handle_v_cont, handle_v_requests): New functions.
19346 (myresume): New function.
19347 (main): Handle 'v' case.
19348 * target.h (struct thread_resume): New type.
19349 (struct target_ops): Change argument of "resume" to struct
19350 thread_resume *.
19351 (myresume): Delete macro.
19352
19353 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19354
19355 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19356 (uninstall): Support DESTDIR.
19357
19358 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19359
19360 * configure.srv: Add xscale*linux copy of arm*linux entry.
19361
19362 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19363
19364 * linux-arm-low.c (arm_reinsert_addr): New function.
19365 (the_low_target): Add arm_reinsert_addr.
19366
19367 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19368
19369 * mem-break.c: Remove whitespace at end of file.
19370
19371 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19372
19373 * configure.in: Check whether we need to prototype strerror.
19374 * server.h: Optionally prototype strerror.
19375 * gdbreplay.c (perror_with_name): Use strerror.
19376 * linux-low.c (linux_attach_lwp): Use strerror.
19377 * utils.c (perror_with_name): Use strerror.
19378 * config.in, configure: Regenerated.
19379
19380 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19381
19382 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19383 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19384
19385 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19386
19387 * Makefile.in (SFILES): Update.
19388 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19389 low-sun3.c: Remove files.
19390
19391 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19392
19393 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19394 (linux_detach_one_process, linux_detach): New functions.
19395 (linux_target_ops): Add linux_detach.
19396 * server.c (main): Handle 'D' packet.
19397 * target.h (struct target_ops): Add "detach" member.
19398 (detach_inferior): Define.
19399
19400 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19401
19402 From Kelley Cook <kelleycook@wideopenwest.com>:
19403 * configure.srv: Accept i[34567]86 variants.
19404
19405 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19406
19407 * linux-low.c (linux_wait_for_event): Correct comment typos.
19408 (linux_resume_one_process): Call check_removed_breakpoint.
19409 (linux_send_signal): New function.
19410 (linux_target_ops): Add linux_send_signal.
19411 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19412 of kill.
19413 * target.h (struct target_ops): Add send_signal.
19414
19415 2003-05-29 Jim Blandy <jimb@redhat.com>
19416
19417 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19418 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19419 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19420 away part of the register's value.
19421
19422 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19423
19424 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19425 (linux_wait_for_event, linux_init_signals): Likewise.
19426
19427 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19428
19429 * configure.in: Check for stdlib.h.
19430 * configure: Regenerated.
19431 * config.in: Regenerated.
19432
19433 2003-01-04 Andreas Schwab <schwab@suse.de>
19434
19435 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19436
19437 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19438
19439 * Makefile.in: Remove obsolete code.
19440
19441 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19442
19443 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19444 defined(PT_FPR0_HI).
19445
19446 2002-11-17 Stuart Hughes <seh@zee2.com>
19447
19448 * linux-arm-low.c (arm_num_regs): Increase.
19449 (arm_regmap): Include status register.
19450
19451 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
19452
19453 * linux-low.c (register_addr): Remove incorrect -1 check.
19454
19455 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
19456
19457 * linux-low.c (linux_create_inferior): Call setpgid. Return
19458 the new PID.
19459 (unstopped_p, linux_signal_pid): Remove.
19460 (linux_target_ops): Remove linux_signal_pid.
19461 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19462 global instead of target method.
19463 * target.h (struct target_ops): Remove signal_pid. Update comment
19464 for create_inferior.
19465 * server.c (signal_pid): New variable.
19466 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
19467 gdbserver. Set the child to be the foreground process group.
19468 (attach_inferior): Set signal_pid.
19469
19470 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
19471
19472 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19473
19474 2002-08-20 Jim Blandy <jimb@redhat.com>
19475
19476 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19477 default for this.
19478
19479 2002-08-01 Andrew Cagney <cagney@redhat.com>
19480
19481 * Makefile.in: Make chill references obsolete.
19482
19483 2002-07-24 Kevin Buettner <kevinb@redhat.com>
19484
19485 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19486 * configure: Regenerate.
19487 * config.in: Regenerate.
19488
19489 2002-07-09 David O'Brien <obrien@FreeBSD.org>
19490
19491 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19492 (perror_with_name, remote_close, remote_open, expect, play): Static.
19493
19494 2002-07-04 Michal Ludvig <mludvig@suse.cz>
19495
19496 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
19497 byte offsets instead of an array of indexes.
19498 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19499
19500 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
19501
19502 * regcache.c: Add comment.
19503
19504 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
19505
19506 * thread-db.c: New file.
19507 * proc-service.c: New file.
19508 * acinclude.m4: New file.
19509 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19510 proc-service.o, and thread-db.o.
19511 (linux-low.o): Add USE_THREAD_DB.
19512 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19513 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19514 * aclocal.m4: Regenerated.
19515 * config.in: Regenerated.
19516 * configure: Regenerated.
19517 * configure.in: Check for proc_service.h, sys/procfs.h,
19518 thread_db.h, and linux/elf.h headrs.
19519 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19520 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19521 Check for -lthread_db and thread support.
19522 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19523 PowerPC, and SuperH.
19524 * i387-fp.c: Constify arguments.
19525 * i387-fp.h: Likewise.
19526 * inferiors.c: (struct thread_info): Renamed from
19527 `struct inferior_info'. Remove PID member. Use generic inferior
19528 list header. All uses updated.
19529 (inferiors, signal_pid): Removed.
19530 (all_threads): New variable.
19531 (get_thread): Define.
19532 (add_inferior_to_list): New function.
19533 (for_each_inferior): New function.
19534 (change_inferior_id): New function.
19535 (add_inferior): Removed.
19536 (remove_inferior): New function.
19537 (add_thread): New function.
19538 (free_one_thread): New function.
19539 (remove_thread): New function.
19540 (clear_inferiors): Use for_each_inferior and free_one_thread.
19541 (find_inferior): New function.
19542 (find_inferior_id): New function.
19543 (inferior_target_data): Update argument type.
19544 (set_inferior_target_data): Likewise.
19545 (inferior_regcache_data): Likewise.
19546 (set_inferior_regcache_data): Likewise.
19547 * linux-low.c (linux_bp_reinsert): Remove.
19548 (all_processes, stopping_threads, using_thrads)
19549 (struct pending_signals, debug_threads, pid_of): New.
19550 (inferior_pid): Replace with macro.
19551 (struct inferior_linux_data): Remove.
19552 (get_stop_pc, add_process): New functions.
19553 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19554 Use add_process and add_thread.
19555 (linux_attach_lwp): New function, based on old linux_attach. Use
19556 add_process and add_thread. Set stop_expected for new threads.
19557 (linux_attach): New function.
19558 (linux_kill_one_process): New function.
19559 (linux_kill): Kill all LWPs.
19560 (linux_thread_alive): Use find_inferior_id.
19561 (check_removed_breakpoints, status_pending_p): New functions.
19562 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19563 Update. Use WNOHANG. Wait for cloned processes also. Update process
19564 struct for the found process.
19565 (linux_wait_for_event): New function.
19566 (linux_wait): Use it. Support LWPs.
19567 (send_sigstop, wait_for_sigstop, stop_all_processes)
19568 (linux_resume_one_process, linux_continue_one_process): New functions.
19569 (linux_resume): Support LWPs.
19570 (REGISTER_RAW_SIZE): Remove.
19571 (fetch_register): Use register_size instead. Call supply_register.
19572 (usr_store_inferior_registers): Likewise. Call collect_register.
19573 Fix recursive case.
19574 (regsets_fetch_inferior_registers): Improve error message.
19575 (regsets_store_inferior_registers): Add debugging.
19576 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19577 (unstopped_p, linux_signal_pid): New functions.
19578 (linux_target_ops): Add linux_signal_pid.
19579 (linux_init_signals): New function.
19580 (initialize_low): Call it. Initialize using_threads.
19581 * regcache.c (inferior_regcache_data): Add valid
19582 flag.
19583 (get_regcache): Fetch registers lazily. Add fetch argument
19584 and update all callers.
19585 (regcache_invalidate_one, regcache_invalidate): New
19586 functions.
19587 (new_register_cache): Renamed from create_register_cache.
19588 Return the new regcache.
19589 (free_register_cache): Change argument to a void *.
19590 (registers_to_string, registers_from_string): Call get_regcache
19591 with fetch flag set.
19592 (register_data): Make static. Pass fetch flag to get_regcache.
19593 (supply_register): Call get_regcache with fetch flag clear.
19594 (collect_register): Call get_regcache with fetch flag set.
19595 (collect_register_as_string): New function.
19596 * regcache.h: Update.
19597 * remote-utils.c (putpkt): Flush after debug output and use
19598 stderr.
19599 Handle input interrupts while waiting for an ACK.
19600 (input_interrupt): Use signal_pid method.
19601 (getpkt): Flush after debug output and use stderr.
19602 (outreg): Use collect_register_as_string.
19603 (new_thread_notify, dead_thread_notify): New functions.
19604 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19605 and general_thread.
19606 (look_up_one_symbol): Flush after debug output.
19607 * server.c (step_thread, server_waiting): New variables.
19608 (start_inferior): Don't use signal_pid. Update call to mywait.
19609 (attach_inferior): Update call to mywait.
19610 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19611 (main): Don't fetch/store registers explicitly. Use
19612 set_desired_inferior. Support proposed ``Hs'' packet. Update
19613 calls to mywait.
19614 * server.h: Update.
19615 (struct inferior_list, struct_inferior_list_entry): New.
19616 * target.c (set_desired_inferior): New.
19617 (write_inferior_memory): Constify.
19618 (mywait): New function.
19619 * target.h: Update.
19620 (struct target_ops): New signal_pid method.
19621 (mywait): Removed macro, added prototype.
19622
19623 * linux-low.h (regset_func): Removed.
19624 (regset_fill_func, regset_store_func): New.
19625 (enum regset_type): New.
19626 (struct regset_info): Add type field. Use new operation types.
19627 (struct linux_target_ops): stop_pc renamed to get_pc.
19628 Add decr_pc_after_break and breakpoint_at.
19629 (get_process, get_thread_proess, get_process_thread)
19630 (strut process_info, all_processes, linux_attach_lwp)
19631 (thread_db_init): New.
19632
19633 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19634 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19635 (the_low_target): Add new members.
19636 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19637 (i386_store_fpxregset): Constify.
19638 (target_regsets): Add new kind identifier.
19639 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19640 (i386_set_pc): Add debugging.
19641 (i386_breakpoint_at): New function.
19642 (the_low_target): Add new members.
19643 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19644 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19645 (mips_breakpoint_at): New.
19646 (the_low_target): Add new members.
19647 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19648 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19649 (the_low_target): Add new members.
19650 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19651 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19652 (the_low_target): Add new members.
19653 * linux-x86-64-low.c (target_regsets): Add new kind
19654 identifier.
19655
19656 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
19657
19658 From Martin Pool <mbp@samba.org>:
19659 * server.c (gdbserver_usage): New function.
19660 (main): Call it.
19661
19662 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
19663
19664 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19665 stop_at -> stop_pc.
19666
19667 2002-05-04 Andrew Cagney <ac131313@redhat.com>
19668
19669 * Makefile.in: Remove obsolete code.
19670
19671 2002-04-24 Michal Ludvig <mludvig@suse.cz>
19672
19673 * linux-low.c (regsets_fetch_inferior_registers),
19674 (regsets_store_inferior_registers): Removed cast to int from
19675 ptrace() calls.
19676 * regcache.h: Added declaration of struct inferior_info.
19677
19678 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19679
19680 * inferiors.c (struct inferior_info): Add regcache_data.
19681 (add_inferior): Call create_register_cache.
19682 (clear_inferiors): Call free_register_cache.
19683 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19684 * regcache.c (struct inferior_regcache_data): New.
19685 (registers): Remove.
19686 (get_regcache): New function.
19687 (create_register_cache, free_register_cache): New functions.
19688 (set_register_cache): Don't initialize the register cache here.
19689 (registers_to_string, registers_from_string, register_data): Call
19690 get_regcache.
19691 * regcache.h: Add prototypes.
19692 * server.h: Likewise.
19693
19694 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19695
19696 * mem-break.c: New file.
19697 * mem-break.h: New file.
19698 * Makefile.in: Add mem-break.o rule; update server.h
19699 dependencies.
19700 * inferiors.c (struct inferior_info): Add target_data
19701 member.
19702 (clear_inferiors): Free target_data member if set.
19703 (inferior_target_data, set_inferior_target_data): New functions.
19704 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19705 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19706 * linux-low.c (linux_bp_reinsert): New variable.
19707 (struct inferior_linux_data): New.
19708 (linux_create_inferior): Use set_inferior_target_data.
19709 (linux_attach): Likewise. Call add_inferior.
19710 (linux_wait_for_one_inferior): New function.
19711 (linux_wait): Call it.
19712 (linux_write_memory): Add const.
19713 (initialize_low): Call set_breakpoint_data.
19714 * linux-low.h (struct linux_target_ops): Add breakpoint
19715 handling members.
19716 * server.c (attach_inferior): Remove extra add_inferior
19717 call.
19718 * server.h: Include mem-break.h. Update inferior.c
19719 prototypes.
19720 * target.c (read_inferior_memory)
19721 (write_inferior_memory): New functions.
19722 * target.h (read_inferior_memory)
19723 (write_inferior_memory): Change macros to prototypes.
19724 (struct target_ops): Update comments. Add const to write_memory
19725 definition.
19726
19727 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
19728
19729 * linux-low.c (usr_store_inferior_registers): Support
19730 registers which are allowed to fail to store.
19731 * linux-low.h (linux_target_ops): Likewise.
19732 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19733 (ppc_cannot_store_register): FPSCR may not be storable.
19734
19735 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19736
19737 * server.h: Include <string.h> if HAVE_STRING_H.
19738 * ChangeLog: Correct paths in last ChangeLog entry.
19739
19740 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19741
19742 * linux-low.h: Remove obsolete prototypes.
19743 (struct linux_target_ops): New.
19744 (extern the_low_target): New.
19745 * linux-low.c (num_regs, regmap): Remove declarations.
19746 (register_addr): Use the_low_target explicitly.
19747 (fetch_register): Likewise.
19748 (usr_fetch_inferior_registers): Likewise.
19749 (usr_store_inferior_registers): Likewise.
19750 * linux-arm-low.c (num_regs): Remove.
19751 (arm_num_regs): Define.
19752 (arm_regmap): Renamed from regmap, made static.
19753 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19754 made static.
19755 (arm_cannot_store_register): Renamed from cannot_store_register,
19756 made static.
19757 (the_low_target): New.
19758 * linux-i386-low.c (num_regs): Remove.
19759 (i386_num_regs): Define.
19760 (i386_regmap): Renamed from regmap, made static.
19761 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19762 made static.
19763 (i386_cannot_store_register): Renamed from cannot_store_register,
19764 made static.
19765 (the_low_target): New.
19766 * linux-ia64-low.c (num_regs): Remove.
19767 (ia64_num_regs): Define.
19768 (ia64_regmap): Renamed from regmap, made static.
19769 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19770 made static.
19771 (ia64_cannot_store_register): Renamed from cannot_store_register,
19772 made static.
19773 (the_low_target): New.
19774 * linux-m68k-low.c (num_regs): Remove.
19775 (m68k_num_regs): Define.
19776 (m68k_regmap): Renamed from regmap, made static.
19777 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19778 made static.
19779 (m68k_cannot_store_register): Renamed from cannot_store_register,
19780 made static.
19781 (the_low_target): New.
19782 * linux-mips-low.c (num_regs): Remove.
19783 (mips_num_regs): Define.
19784 (mips_regmap): Renamed from regmap, made static.
19785 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19786 made static.
19787 (mips_cannot_store_register): Renamed from cannot_store_register,
19788 made static.
19789 (the_low_target): New.
19790 * linux-ppc-low.c (num_regs): Remove.
19791 (ppc_num_regs): Define.
19792 (ppc_regmap): Renamed from regmap, made static.
19793 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19794 made static.
19795 (ppc_cannot_store_register): Renamed from cannot_store_register,
19796 made static.
19797 (the_low_target): New.
19798 * linux-s390-low.c (num_regs): Remove.
19799 (s390_num_regs): Define.
19800 (s390_regmap): Renamed from regmap, made static.
19801 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19802 made static.
19803 (s390_cannot_store_register): Renamed from cannot_store_register,
19804 made static.
19805 (the_low_target): New.
19806 * linux-sh-low.c (num_regs): Remove.
19807 (sh_num_regs): Define.
19808 (sh_regmap): Renamed from regmap, made static.
19809 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19810 made static.
19811 (sh_cannot_store_register): Renamed from cannot_store_register,
19812 made static.
19813 (the_low_target): New.
19814 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19815 (the_low_target): New.
19816
19817 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19818
19819 * Makefile.in: Add stamp-h target.
19820 * configure.in: Create stamp-h.
19821 * configure: Regenerated.
19822
19823 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19824
19825 * inferiors.c: New file.
19826 * target.c: New file.
19827 * target.h: New file.
19828 * Makefile.in: Add target.o and inferiors.o. Update
19829 dependencies.
19830 * linux-low.c (inferior_pid): New static variable,
19831 moved from server.c.
19832 (linux_create_inferior): Renamed from create_inferior.
19833 Call add_inferior. Return 0 on success instead of a PID.
19834 (linux_attach): Renamed from myattach.
19835 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19836 (linux_thread_alive): Renamed from mythread_alive.
19837 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19838 child dies.
19839 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19840 (regsets_store_inferior_registers): Correct error message.
19841 Add missing ``return 0''.
19842 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19843 (linux_store_registers): Renamed from store_inferior_registers.
19844 (linux_read_memory): Renamed from read_inferior_memory.
19845 (linux_write_memory): Renamed from write_inferior_memory.
19846 (linux_target_ops): New structure.
19847 (initialize_low): Call set_target_ops ().
19848 * remote-utils.c (unhexify): New function.
19849 (hexify): New function.
19850 (input_interrupt): Send signals to ``signal_pid''.
19851 * server.c (inferior_pid): Remove.
19852 (start_inferior): Update create_inferior call.
19853 (attach_inferior): Call add_inferior.
19854 (handle_query): New function.
19855 (main): Call handle_query for `q' packets.
19856 * server.h: Include "target.h". Remove obsolete prototypes.
19857 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19858
19859 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19860
19861 * Makefile.in: Add WARN_CFLAGS. Update configury
19862 dependencies.
19863 * configure.in: Check for <string.h>
19864 * configure: Regenerate.
19865 * config.in: Regenerate.
19866 * gdbreplay.c: Include needed system headers.
19867 (remote_open): Remove strchr prototype.
19868 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19869 * regcache.c (supply_register): Change buf argument to const void *.
19870 (supply_register_by_name): Likewise.
19871 (collect_register): Change buf argument to void *.
19872 (collect_register_by_name): Likewise.
19873 * regcache.h: Add missing prototypes.
19874 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19875 * server.c (handle_query): New function.
19876 (attached): New static variable, moved out of main.
19877 (main): Quiet longjmp clobber warnings.
19878 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19879 * utils.c (error): Remove NORETURN.
19880 (fatal): Likewise.
This page took 0.461803 seconds and 4 git commands to generate.