6b789265f8bb10e693b7d0bc3d687022eb4b8429
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn some static functions in linux-low.cc into private methods of
4 linux_process_target.
5
6 * linux-low.cc (handle_extended_wait): Turn into ...
7 (linux_process_target::handle_extended_wait): ...this. Call
8 'mourn' on 'this' object instead of 'the_target'.
9 (maybe_move_out_of_jump_pad): Turn into...
10 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
11 (linux_low_filter_event): Turn into...
12 (linux_process_target::filter_event): ...this.
13 (linux_wait_for_event_filtered): Turn into...
14 (linux_process_target::wait_for_event_filtered): ...this.
15 (linux_wait_for_event): Turn into...
16 (linux_process_target::wait_for_event): ...this.
17 (linux_wait_1): Turn into...
18 (linux_process_target::wait_1): ...this.
19 (wait_for_sigstop): Turn into...
20 (linux_process_target::wait_for_sigstop): ...this.
21 (move_out_of_jump_pad_callback): Turn into...
22 (linux_process_target::move_out_of_jump_pad): ...this.
23 (stop_all_lwps): Turn into...
24 (linux_process_target::stop_all_lwps): ...this.
25 (start_step_over): Turn into...
26 (linux_process_target::start_step_over): ...this.
27 (complete_ongoing_step_over): Turn into...
28 (linux_process_target::complete_ongoing_step_over): ...this.
29 (proceed_all_lwps): Turn into...
30 (linux_process_target::proceed_all_lwps): ...this.
31 (unstop_all_lwps): Turn into...
32 (linux_process_target::unstop_all_lwps): ...this.
33
34 * linux-low.h (class linux_process_target)
35 <handle_extended_wait>
36 <maybe_move_out_of_jump_pad>
37 filter_event>
38 <wait_for_event_filtered>
39 <wait_for_event>
40 <wait_1>
41 <wait_for_sigstop>
42 <move_out_of_jump_pad>
43 <stop_all_lwps>
44 <start_step_over>
45 <complete_ongoing_step_over>
46 <proceed_all_lwps>
47 <unstop_all_lwps>: Declare.
48
49 Update the callers below.
50
51 * linux-low.cc (linux_process_target::attach): Update.
52 (linux_process_target::stabilize_threads): Ditto.
53 (linux_process_target::wait): Ditto.
54
55 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
56
57 * linux-low.h (struct linux_target_ops): Update the comment for
58 'cannot_store_register' to return 0 or 1.
59 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
60 of 2.
61
62 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
63
64 * config.in: Re-generate.
65 * configure: Re-generate.
66
67 2020-03-17 Kamil Rytarowski <n54@gmx.com>
68
69 * regcache.cc (find_register_by_number): Update.
70 * tdesc.cc (init_target_desc): Likewise.
71 * tdesc.h (target_desc::reg_defs): Likewise.
72
73 2020-03-12 Tom Tromey <tom@tromey.com>
74
75 * configure: Rebuild.
76 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
77 (WIN32APILIBS): New subst.
78 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
79 gdbsupport files.
80 (gdbsupport/%.o): Remove target.
81 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
82 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
83 (WIN32APILIBS): New variable.
84 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
85 (gdbreplay$(EXEEXT)): Likewise.
86
87 2020-03-12 Tom Tromey <tom@tromey.com>
88
89 * config.in, configure: Rebuild.
90 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
91 * acinclude.m4: Include gettext-sister.m4.
92 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
93 variables.
94 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
95 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
96
97 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
98
99 * acinclude.m4: Update path to selftest.m4.
100
101 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
102
103 * configure.ac: Don't source bfd/development.sh, move
104 GDB_AC_COMMON higher.
105 * configure: Re-generate.
106
107 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
108
109 * configure: Re-generate.
110
111 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
112
113 * configure: Re-generate.
114
115 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
116
117 * .dir-locals.el: New file.
118
119 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
120
121 * .gitattributes: New file.
122
123 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
126 reply into an S reply.
127 * server.cc (disable_packet_T): New global.
128 (captured_main): Set new global when appropriate.
129 * server.h (disable_packet_T): Declare.
130
131 2020-02-21 Tom Tromey <tom@tromey.com>
132
133 * Makefile.in (mostlyclean): New target.
134
135 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
136
137 * target.h (struct process_stratum_target): Remove.
138 (class process_target): Rename to ...
139 (class process_stratum_target): ... this.
140 * linux-low.h (class linux_process_target): Derive from
141 'process_stratum_target'.
142 * linux-low.cc (linux_target_ops): Remove.
143 (initialize_low): Set the_target to the singleton instance of
144 linux_process_target.
145 * lynx-low.h (class lynx_process_target): Derive from
146 'process_stratum_target'.
147 * lynx-low.cc (lynx_target_ops): Remove.
148 (initialize_low): Set the_target to the singleton instance of
149 lynx_process_target.
150 * nto-low.h (class nto_process_target): Derive from
151 'process_stratum_target'.
152 * nto-low.cc (nto_target_ops): Remove.
153 (initialize_low): Set the_target to the singleton instance of
154 nto_process_target.
155 * win32-low.h (class win32_process_target): Derive from
156 'process_stratum_target'.
157 * win32-low.cc (win32_target_ops): Remove.
158 (initialize_low): Set the_target to the singleton instance of
159 win32_process_target.
160
161 Replace 'the_target->pt' with 'the_target' in the uses below.
162
163 * hostio.cc (hostio_error)
164 (handle_setfs)
165 (handle_open)
166 (handle_unlink)
167 (handle_readlink)
168 * linux-aarch32-low.cc (arm_breakpoint_at)
169 * linux-aarch64-low.cc (aarch64_breakpoint_at)
170 * linux-arm-low.cc (arm_sigreturn_next_pc)
171 (arm_get_hwcap)
172 (arm_get_syscall_trapinfo)
173 * linux-cris-low.cc (cris_breakpoint_at)
174 * linux-crisv32-low.cc (cris_breakpoint_at)
175 * linux-low.cc (handle_extended_wait)
176 (linux_wait_1)
177 (linux_read_memory)
178 (linux_process_target::breakpoint_kind_from_pc)
179 (linux_get_auxv)
180 * linux-m32r-low.cc (m32r_breakpoint_at)
181 * linux-mips-low.cc (mips_breakpoint_at)
182 * linux-nios2-low.cc (nios2_breakpoint_at)
183 * linux-ppc-low.cc (ppc_breakpoint_at)
184 * linux-s390-low.cc (s390_get_hwcap)
185 * linux-sh-low.cc (sh_breakpoint_at)
186 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
187 (sparc_store_gregset_from_stack)
188 (sparc_breakpoint_at)
189 * linux-tic6x-low.cc (tic6x_breakpoint_at)
190 * linux-tile-low.cc (tile_breakpoint_at)
191 * linux-x86-low.cc (x86_breakpoint_at)
192 * linux-xtensa-low.cc (xtensa_breakpoint_at)
193 * mem-break.cc (bp_size)
194 (bp_opcode)
195 (insert_memory_breakpoint)
196 (set_raw_breakpoint_at)
197 (delete_raw_breakpoint)
198 (z_type_supported)
199 (uninsert_raw_breakpoint)
200 (reinsert_raw_breakpoint)
201 (validate_inserted_breakpoint)
202 * regcache.cc (regcache_read_pc)
203 (regcache_write_pc)
204 * remote-utils.cc (putpkt_binary_1)
205 (input_interrupt)
206 (getpkt)
207 (prepare_resume_reply)
208 * server.cc (handle_general_set)
209 (handle_detach)
210 (handle_qxfer_auxv)
211 (handle_qxfer_exec_file)
212 (handle_qxfer_libraries_svr4)
213 (handle_qxfer_osdata)
214 (handle_qxfer_siginfo)
215 (handle_qxfer_fdpic)
216 (handle_query)
217 (resume)
218 (handle_v_requests)
219 (queue_stop_reply_callback)
220 (captured_main)
221 * target.cc (prepare_to_access_memory)
222 (done_accessing_memory)
223 (read_inferior_memory)
224 (target_write_memory)
225 (target_stop_and_wait)
226 (target_wait)
227 (target_mourn_inferior)
228 (target_continue_no_signal)
229 (target_continue)
230 (target_supports_multi_process)
231 (kill_inferior)
232 * target.h
233 (target_create_inferior)
234 (target_post_create_inferior)
235 (myattach)
236 (target_supports_fork_events)
237 (target_supports_vfork_events)
238 (target_supports_exec_events)
239 (target_handle_new_gdb_connection)
240 (detach_inferior)
241 (mythread_alive)
242 (fetch_inferior_registers)
243 (store_inferior_registers)
244 (join_inferior)
245 (target_supports_non_stop)
246 (target_async)
247 (target_process_qsupported)
248 (target_supports_catch_syscall)
249 (target_get_ipa_tdesc_idx)
250 (target_supports_tracepoints)
251 (target_supports_fast_tracepoints)
252 (target_get_min_fast_tracepoint_insn_len)
253 (target_thread_stopped)
254 (target_pause_all)
255 (target_unpause_all)
256 (target_stabilize_threads)
257 (target_install_fast_tracepoint_jump_pad)
258 (target_emit_ops)
259 (target_supports_disable_randomization)
260 (target_supports_agent)
261 (target_enable_btrace)
262 (target_disable_btrace)
263 (target_read_btrace)
264 (target_read_btrace_conf)
265 (target_supports_range_stepping)
266 (target_supports_stopped_by_sw_breakpoint)
267 (target_stopped_by_sw_breakpoint)
268 (target_supports_stopped_by_hw_breakpoint)
269 (target_supports_hardware_single_step)
270 (target_stopped_by_hw_breakpoint)
271 (target_breakpoint_kind_from_pc)
272 (target_breakpoint_kind_from_current_state)
273 (target_supports_software_single_step)
274 (target_core_of_thread)
275 (target_thread_name)
276 (target_thread_handle)
277 * win32-low.cc (do_initial_child_stuff)
278
279 Rename target op default definitions listed below.
280
281 * target.cc (process_target::post_create_inferior): Rename as ...
282 (process_stratum_target::post_create_inferior): ... this.
283 (process_target::prepare_to_access_memory): Rename as ...
284 (process_stratum_target::prepare_to_access_memory): ... this.
285 (process_target::done_accessing_memory): Rename as ...
286 (process_stratum_target::done_accessing_memory): ... this.
287 (process_target::look_up_symbols): Rename as ...
288 (process_stratum_target::look_up_symbols): ... this.
289 (process_target::supports_read_auxv): Rename as ...
290 (process_stratum_target::supports_read_auxv): ... this.
291 (process_target::read_auxv): Rename as ...
292 (process_stratum_target::read_auxv): ... this.
293 (process_target::supports_z_point_type): Rename as ...
294 (process_stratum_target::supports_z_point_type): ... this.
295 (process_target::insert_point): Rename as ...
296 (process_stratum_target::insert_point): ... this.
297 (process_target::remove_point): Rename as ...
298 (process_stratum_target::remove_point): ... this.
299 (process_target::stopped_by_sw_breakpoint): Rename as ...
300 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
301 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
302 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
303 (process_target::stopped_by_hw_breakpoint): Rename as ...
304 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
305 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
306 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
307 (process_target::supports_hardware_single_step): Rename as ...
308 (process_stratum_target::supports_hardware_single_step): ... this.
309 (process_target::stopped_by_watchpoint): Rename as ...
310 (process_stratum_target::stopped_by_watchpoint): ... this.
311 (process_target::stopped_data_address): Rename as ...
312 (process_stratum_target::stopped_data_address): ... this.
313 (process_target::supports_read_offsets): Rename as ...
314 (process_stratum_target::supports_read_offsets): ... this.
315 (process_target::read_offsets): Rename as ...
316 (process_stratum_target::read_offsets): ... this.
317 (process_target::supports_get_tls_address): Rename as ...
318 (process_stratum_target::supports_get_tls_address): ... this.
319 (process_target::get_tls_address): Rename as ...
320 (process_stratum_target::get_tls_address): ... this.
321 (process_target::hostio_last_error): Rename as ...
322 (process_stratum_target::hostio_last_error): ... this.
323 (process_target::supports_qxfer_osdata): Rename as ...
324 (process_stratum_target::supports_qxfer_osdata): ... this.
325 (process_target::qxfer_osdata): Rename as ...
326 (process_stratum_target::qxfer_osdata): ... this.
327 (process_target::supports_qxfer_siginfo): Rename as ...
328 (process_stratum_target::supports_qxfer_siginfo): ... this.
329 (process_target::qxfer_siginfo): Rename as ...
330 (process_stratum_target::qxfer_siginfo): ... this.
331 (process_target::supports_non_stop): Rename as ...
332 (process_stratum_target::supports_non_stop): ... this.
333 (process_target::async): Rename as ...
334 (process_stratum_target::async): ... this.
335 (process_target::start_non_stop): Rename as ...
336 (process_stratum_target::start_non_stop): ... this.
337 (process_target::supports_multi_process): Rename as ...
338 (process_stratum_target::supports_multi_process): ... this.
339 (process_target::supports_fork_events): Rename as ...
340 (process_stratum_target::supports_fork_events): ... this.
341 (process_target::supports_vfork_events): Rename as ...
342 (process_stratum_target::supports_vfork_events): ... this.
343 (process_target::supports_exec_events): Rename as ...
344 (process_stratum_target::supports_exec_events): ... this.
345 (process_target::handle_new_gdb_connection): Rename as ...
346 (process_stratum_target::handle_new_gdb_connection): ... this.
347 (process_target::handle_monitor_command): Rename as ...
348 (process_stratum_target::handle_monitor_command): ... this.
349 (process_target::core_of_thread): Rename as ...
350 (process_stratum_target::core_of_thread): ... this.
351 (process_target::supports_read_loadmap): Rename as ...
352 (process_stratum_target::supports_read_loadmap): ... this.
353 (process_target::read_loadmap): Rename as ...
354 (process_stratum_target::read_loadmap): ... this.
355 (process_target::process_qsupported): Rename as ...
356 (process_stratum_target::process_qsupported): ... this.
357 (process_target::supports_tracepoints): Rename as ...
358 (process_stratum_target::supports_tracepoints): ... this.
359 (process_target::read_pc): Rename as ...
360 (process_stratum_target::read_pc): ... this.
361 (process_target::write_pc): Rename as ...
362 (process_stratum_target::write_pc): ... this.
363 (process_target::supports_thread_stopped): Rename as ...
364 (process_stratum_target::supports_thread_stopped): ... this.
365 (process_target::thread_stopped): Rename as ...
366 (process_stratum_target::thread_stopped): ... this.
367 (process_target::supports_get_tib_address): Rename as ...
368 (process_stratum_target::supports_get_tib_address): ... this.
369 (process_target::get_tib_address): Rename as ...
370 (process_stratum_target::get_tib_address): ... this.
371 (process_target::pause_all): Rename as ...
372 (process_stratum_target::pause_all): ... this.
373 (process_target::unpause_all): Rename as ...
374 (process_stratum_target::unpause_all): ... this.
375 (process_target::stabilize_threads): Rename as ...
376 (process_stratum_target::stabilize_threads): ... this.
377 (process_target::supports_fast_tracepoints): Rename as ...
378 (process_stratum_target::supports_fast_tracepoints): ... this.
379 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
380 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
381 (process_target::emit_ops): Rename as ...
382 (process_stratum_target::emit_ops): ... this.
383 (process_target::supports_disable_randomization): Rename as ...
384 (process_stratum_target::supports_disable_randomization): ... this.
385 (process_target::supports_qxfer_libraries_svr4): Rename as ...
386 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
387 (process_target::qxfer_libraries_svr4): Rename as ...
388 (process_stratum_target::qxfer_libraries_svr4): ... this.
389 (process_target::supports_agent): Rename as ...
390 (process_stratum_target::supports_agent): ... this.
391 (process_target::enable_btrace): Rename as ...
392 (process_stratum_target::enable_btrace): ... this.
393 (process_target::disable_btrace): Rename as ...
394 (process_stratum_target::disable_btrace): ... this.
395 (process_target::read_btrace): Rename as ...
396 (process_stratum_target::read_btrace): ... this.
397 (process_target::read_btrace_conf): Rename as ...
398 (process_stratum_target::read_btrace_conf): ... this.
399 (process_target::supports_range_stepping): Rename as ...
400 (process_stratum_target::supports_range_stepping): ... this.
401 (process_target::supports_pid_to_exec_file): Rename as ...
402 (process_stratum_target::supports_pid_to_exec_file): ... this.
403 (process_target::pid_to_exec_file): Rename as ...
404 (process_stratum_target::pid_to_exec_file): ... this.
405 (process_target::supports_multifs): Rename as ...
406 (process_stratum_target::supports_multifs): ... this.
407 (process_target::multifs_open): Rename as ...
408 (process_stratum_target::multifs_open): ... this.
409 (process_target::multifs_unlink): Rename as ...
410 (process_stratum_target::multifs_unlink): ... this.
411 (process_target::multifs_readlink): Rename as ...
412 (process_stratum_target::multifs_readlink): ... this.
413 (process_target::breakpoint_kind_from_pc): Rename as ...
414 (process_stratum_target::breakpoint_kind_from_pc): ... this.
415 (process_target::breakpoint_kind_from_current_state): Rename as ...
416 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
417 (process_target::thread_name): Rename as ...
418 (process_stratum_target::thread_name): ... this.
419 (process_target::thread_handle): Rename as ...
420 (process_stratum_target::thread_handle): ... this.
421 (process_target::supports_software_single_step): Rename as ...
422 (process_stratum_target::supports_software_single_step): ... this.
423 (process_target::supports_catch_syscall): Rename as ...
424 (process_stratum_target::supports_catch_syscall): ... this.
425 (process_target::get_ipa_tdesc_idx): Rename as ...
426 (process_stratum_target::get_ipa_tdesc_idx): ... this.
427
428 2020-02-20 Pedro Alves <palves@redhat.com>
429
430 * target.cc (set_target_ops): Simply copy the given target pointer
431 instead of creating a copy of the pointed object.
432
433 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
434
435 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
436 of process_target.
437
438 * target.h (struct process_stratum_target): Remove the target op.
439 (class process_target): Add the target op.
440 (target_get_ipa_tdesc_idx): Update the macro.
441 * target.cc (process_target::get_ipa_tdesc_idx): Define.
442
443 Update the derived classes and callers below.
444
445 * linux-low.cc (linux_target_ops): Update.
446 (linux_get_ipa_tdesc_idx): Turn into ...
447 (linux_process_target::get_ipa_tdesc_idx): ... this.
448 * linux-low.h (class linux_process_target): Update.
449 * lynx-low.cc (lynx_target_ops): Update.
450 * nto-low.cc (nto_target_ops): Update.
451 * win32-low.cc (win32_target_ops): Update.
452
453 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
454
455 Turn process_stratum_target's supports_catch_syscall op into a
456 method of process_target.
457
458 * target.h (struct process_stratum_target): Remove the target op.
459 (class process_target): Add the target op.
460 (target_supports_catch_syscall): Update the macro.
461 * target.cc (process_target::supports_catch_syscall): Define.
462
463 Update the derived classes and callers below.
464
465 * linux-low.cc (linux_target_ops): Update.
466 (linux_supports_catch_syscall): Turn into ...
467 (linux_process_target::supports_catch_syscall): ... this.
468 * linux-low.h (class linux_process_target): Update.
469 * lynx-low.cc (lynx_target_ops): Update.
470 * nto-low.cc (nto_target_ops): Update.
471 * win32-low.cc (win32_target_ops): Update.
472
473 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
474
475 Turn process_stratum_target's supports_software_single_step op
476 into a method of process_target.
477
478 * target.h (struct process_stratum_target): Remove the target op.
479 (class process_target): Add the target op.
480 (target_supports_software_single_step): Update the macro.
481 * target.cc (process_target::supports_software_single_step): Define.
482
483 Update the derived classes and callers below.
484
485 * linux-low.cc (linux_target_ops): Update.
486 (linux_supports_software_single_step): Turn into ...
487 (linux_process_target::supports_software_single_step): ... this.
488 * linux-low.h (class linux_process_target): Update.
489 * lynx-low.cc (lynx_target_ops): Update.
490 * nto-low.cc (nto_target_ops): Update.
491 * win32-low.cc (win32_target_ops): Update.
492
493 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
494
495 Turn process_stratum_target's thread_name and thread_handle ops
496 into methods of process_target.
497
498 * target.h (struct process_stratum_target): Remove the target ops.
499 (class process_target): Add the target ops.
500 (target_thread_name): Update the macro.
501 (target_thread_handle): Update the macro.
502 * target.cc (process_target::thread_name): Define.
503 (process_target::thread_handle): Define.
504
505 Update the derived classes and callers below.
506
507 * linux-low.cc (linux_target_ops): Update.
508 (linux_process_target::thread_name): Define.
509 (linux_process_target::thread_handle): Define.
510 * linux-low.h (class linux_process_target): Update.
511 * lynx-low.cc (lynx_target_ops): Update.
512 * nto-low.cc (nto_target_ops): Update.
513 * win32-low.cc (win32_target_ops): Update.
514
515 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
516
517 Turn process_stratum_target's breakpoint_kind_from_pc,
518 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
519 ops into methods of process_target.
520
521 * target.h (struct process_stratum_target): Remove the target op.
522 (class process_target): Add the target op.
523 (target_breakpoint_kind_from_pc): Update the macro.
524 (target_breakpoint_kind_from_current_state): Update the macro.
525 (default_breakpoint_kind_from_pc): Remove declaration.
526 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
527 (process_target::breakpoint_kind_from_pc): ... this.
528 (process_target::breakpoint_kind_from_current_state): Define.
529
530 Update the derived classes and callers below.
531
532 * mem-break.cc (bp_size): Update.
533 (bp_opcode): Update.
534 * linux-low.cc (linux_target_ops): Update.
535 (linux_wait_1): Update.
536 (linux_breakpoint_kind_from_pc): Turn into ...
537 (linux_process_target::breakpoint_kind_from_pc): ... this.
538 (linux_sw_breakpoint_from_kind): Turn into ...
539 (linux_process_target::sw_breakpoint_from_kind): ... this.
540 (linux_breakpoint_kind_from_current_state): Turn into ...
541 (linux_process_target::breakpoint_kind_from_current_state): ... this.
542 * linux-low.h (class linux_process_target): Update.
543 * lynx-low.cc (lynx_target_ops): Update.
544 (lynx_process_target::sw_breakpoint_from_kind): Define.
545 * lynx-low.h (class lynx_process_target): Update.
546 * nto-low.cc (nto_target_ops): Update.
547 (nto_sw_breakpoint_from_kind): Turn into ...
548 (nto_process_target::sw_breakpoint_from_kind): ... this.
549 * nto-low.h (class nto_process_target): Update.
550 * win32-low.cc (win32_target_ops): Update.
551 (win32_sw_breakpoint_from_kind): Turn into ...
552 (win32_process_target::sw_breakpoint_from_kind): ... this.
553 * win32-low.h (class win32_process_target): Update.
554
555 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
556
557 Turn process_stratum_target's multifs_open, multifs_readlink,
558 multifs_unlink ops into methods of process_target.
559
560 * target.h (struct process_stratum_target): Remove the target ops.
561 (class process_target): Add the target ops. Also add
562 'supports_multifs'.
563 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
564 "sys/stat.h".
565 (process_target::supports_multifs): Define.
566 (process_target::multifs_open): Define.
567 (process_target::multifs_readlink): Define.
568 (process_target::multifs_unlink): Define.
569
570 Update the derived classes and callers below.
571
572 * hostio.cc (handle_setfs): Update.
573 (handle_open): Update.
574 (handle_unlink): Update.
575 (handle_readlink): Update.
576 * linux-low.cc (linux_target_ops): Update.
577 (linux_process_target::supports_multifs): Define.
578 (linux_process_target::multifs_open): Define.
579 (linux_process_target::multifs_readlink): Define.
580 (linux_process_target::multifs_unlink): Define.
581 * linux-low.h (class linux_process_target): Update.
582 * lynx-low.cc (lynx_target_ops): Update.
583 * nto-low.cc (nto_target_ops): Update.
584 * win32-low.cc (win32_target_ops): Update.
585
586 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
587
588 Turn process_stratum_target's pid_to_exec_file op into a method
589 of process_target.
590
591 * target.h (struct process_stratum_target): Remove the target op.
592 (class process_target): Add the target op. Also add
593 'supports_pid_to_exec_file'.
594 * target.cc (process_target::pid_to_exec_file): Define.
595 (process_target::supports_pid_to_exec_file): Define.
596
597 Update the derived classes and callers below.
598
599 * server.cc (handle_qxfer_exec_file): Update.
600 (handle_query): Update.
601 * linux-low.cc (linux_target_ops): Update.
602 (linux_process_target::supports_pid_to_exec_file): Define.
603 (linux_process_target::pid_to_exec_file): Define.
604 * linux-low.h (class linux_process_target): Update.
605 * lynx-low.cc (lynx_target_ops): Update.
606 * nto-low.cc (nto_target_ops): Update.
607 * win32-low.cc (win32_target_ops): Update.
608
609 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
610
611 Turn process_stratum_target's supports_range_stepping op into a
612 method of process_target.
613
614 * target.h (struct process_stratum_target): Remove the target op.
615 (class process_target): Add the target op.
616 (target_supports_range_stepping): Update the macro.
617 * target.cc (process_target::supports_range_stepping): Define.
618
619 Update the derived classes and callers below.
620
621 * linux-low.cc (linux_target_ops): Update.
622 (linux_supports_range_stepping): Turn into ...
623 (linux_process_target::supports_range_stepping): ... this.
624 * linux-low.h (class linux_process_target): Update.
625 * lynx-low.cc (lynx_target_ops): Update.
626 * nto-low.cc (nto_target_ops): Update.
627 * win32-low.cc (win32_target_ops): Update.
628
629 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
630
631 Turn process_stratum_target's btrace-related ops (enable_btrace,
632 disable_btrace, read_btrace, read_btrace_conf) into methods of
633 process_target.
634
635 * target.h (struct process_stratum_target): Remove the target ops.
636 (class process_target): Add the target ops.
637 (target_enable_btrace): Update.
638 (target_disable_btrace): Update.
639 (target_read_btrace): Update.
640 (target_read_btrace_conf): Update.
641 * target.cc (process_target::enable_btrace): Define.
642 (process_target::disable_btrace): Define.
643 (process_target::read_btrace): Define.
644 (process_target::read_btrace_conf): Define.
645
646 Update the derived classes and callers below.
647
648 * linux-low.cc (linux_target_ops): Update.
649 (linux_process_target:enable_btrace): Define as a wrapper around
650 linux_enable_btrace.
651 (linux_low_disable_btrace): Turn into ...
652 (linux_process_target::disable_btrace): ... this.
653 (linux_low_read_btrace): Turn into ...
654 (linux_process_target::read_btrace): ... this.
655 (linux_low_btrace_conf): Turn into ...
656 (linux_process_target::read_btrace_conf): ... this.
657 * linux-low.h (class linux_process_target): Update.
658 * lynx-low.cc (lynx_target_ops): Update.
659 * nto-low.cc (nto_target_ops): Update.
660 * win32-low.cc (win32_target_ops): Update.
661
662 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
663
664 Turn process_stratum_target's supports_agent op into a method of
665 process_target.
666
667 * target.h (struct process_stratum_target): Remove the target op.
668 (class process_target): Add the target op.
669 (target_supports_agent): Update the macro.
670 * target.cc (process_target::supports_agent): Define.
671
672 Update the derived classes and callers below.
673
674 * linux-low.cc (linux_target_ops): Update.
675 (linux_supports_agent): Turn into ...
676 (linux_process_target::supports_agent): ... this.
677 * linux-low.h (class linux_process_target): Update.
678 * lynx-low.cc (lynx_target_ops): Update.
679 * nto-low.cc (nto_target_ops): Update.
680 * win32-low.cc (win32_target_ops): Update.
681
682 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
683
684 Turn process_stratum_target's qxfer_libraries_svr4 op into a
685 method of process_target.
686
687 * target.h (struct process_stratum_target): Remove the target op.
688 (class process_target): Add the target op. Also add
689 'supports_qxfer_libraries_svr4'.
690 * target.cc (process_target::qxfer_libraries_svr4): Define.
691 (process_target::supports_qxfer_libraries_svr4): Define.
692
693 Update the derived classes and callers below.
694
695 * server.cc (handle_qxfer_libraries_svr4): Update.
696 (handle_query): Update.
697 * linux-low.cc (linux_target_ops): Update.
698 (linux_process_target::supports_qxfer_libraries_svr4): Define.
699 (linux_qxfer_libraries_svr4): Turn into ...
700 (linux_process_target::qxfer_libraries_svr4): ... this.
701 * linux-low.h (class linux_process_target): Update.
702 * lynx-low.cc (lynx_target_ops): Update.
703 * nto-low.cc (nto_target_ops): Update.
704 * win32-low.cc (win32_target_ops): Update.
705
706 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
707
708 Turn process_stratum_target's supports_disable_randomization op
709 into a method of process_target.
710
711 * target.h (struct process_stratum_target): Remove the target op.
712 (class process_target): Add the target op.
713 (target_supports_disable_randomization): Update the macro.
714 * target.cc (process_target::supports_disable_randomization): Define.
715
716 Update the derived classes and callers below.
717
718 * linux-low.cc (linux_target_ops): Update.
719 (linux_supports_disable_randomization): Turn into ...
720 (linux_process_target::supports_disable_randomization): ... this.
721 * linux-low.h (class linux_process_target): Update.
722 * lynx-low.cc (lynx_target_ops): Update.
723 * nto-low.cc (nto_target_ops): Update.
724 * win32-low.cc (win32_target_ops): Update.
725
726 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
727
728 Turn process_stratum_target's emit_ops op into a method of
729 process_target.
730
731 * target.h (struct process_stratum_target): Remove the target op.
732 (class process_target): Add the target op.
733 (target_emit_ops): Update the macro.
734 * target.cc (process_target::emit_ops): Define.
735
736 Update the derived classes and callers below.
737
738 * linux-low.cc (linux_target_ops): Update.
739 (linux_emit_ops): Turn into ...
740 (linux_process_target::emit_ops): ... this.
741 * linux-low.h (class linux_process_target): Update.
742 * lynx-low.cc (lynx_target_ops): Update.
743 * nto-low.cc (nto_target_ops): Update.
744 * win32-low.cc (win32_target_ops): Update.
745
746 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
747
748 Turn process_stratum_target's install_fast_tracepoint_jump_pad
749 and get_min_fast_tracepoint_insn_len ops into methods of
750 process_target.
751
752 * target.h (struct process_stratum_target): Remove the target ops.
753 (class process_target): Add the target ops. Also add
754 'supports_fast_tracepoints'.
755 (target_supports_fast_tracepoints): Update the macro.
756 (target_get_min_fast_tracepoint_insn_len): Update the macro.
757 (install_fast_tracepoint_jump_pad): Update and rename the macro
758 to ...
759 (target_install_fast_tracepoint_jump_pad): ... this.
760 * target.cc (process_target::supports_fast_tracepoints): Define.
761 (process_target::install_fast_tracepoint_jump_pad): Define.
762 (process_target::get_min_fast_tracepoint_insn_len): Define.
763
764 Update the derived classes and callers below.
765
766 * tracepoint.cc (install_fast_tracepoint): Update.
767 * linux-low.cc (linux_target_ops): Update.
768 (linux_process_target::supports_fast_tracepoints): Define.
769 (linux_install_fast_tracepoint_jump_pad): Turn into ...
770 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
771 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
772 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
773 * linux-low.h (class linux_process_target): Update.
774 * lynx-low.cc (lynx_target_ops): Update.
775 * nto-low.cc (nto_target_ops): Update.
776 * win32-low.cc (win32_target_ops): Update.
777
778 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
779
780 Turn process_stratum_target's stabilize_threads op into a
781 method of process_target.
782
783 * target.h (struct process_stratum_target): Remove the target op.
784 (class process_target): Add the target op.
785 (target_stabilize_threads): Update the macro.
786 * target.cc (process_target::stabilize_threads): Define.
787
788 Update the derived classes and callers below.
789
790 * server.cc (handle_status): Update.
791 * tracepoint.cc (cmd_qtdp): Update.
792 (cmd_qtstart): Update.
793 * linux-low.cc (linux_target_ops): Update.
794 (linux_stabilize_threads): Turn into ...
795 (linux_process_target::stabilize_threads): ... this.
796 (linux_wait_1): Update.
797 * linux-low.h (class linux_process_target): Update.
798 * lynx-low.cc (lynx_target_ops): Update.
799 * nto-low.cc (nto_target_ops): Update.
800 * win32-low.cc (win32_target_ops): Update.
801
802 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
803
804 Turn process_stratum_target's pause_all and unpause_all ops
805 into methods of process_target.
806
807 * target.h (struct process_stratum_target): Remove the target ops.
808 (class process_target): Add the target ops.
809 (pause_all): Update the macro and rename to...
810 (target_pause_all): ... this.
811 (unpause_all): Update the macro and rename to...
812 (target_unpause_all): ... this.
813 * target.cc (process_target::pause_all): Define.
814 (process_target::unpause_all): Define.
815
816 Update the derived classes and callers below.
817
818 * server.cc (handle_status): Update.
819 * tracepoint.cc (clear_installed_tracepoints): Update.
820 (cmd_qtdp): Update.
821 (cmd_qtstart): Update.
822 (stop_tracing): Update.
823 (cmd_qtstatus): Update.
824 (upload_fast_traceframes): Update.
825 (run_inferior_command): Update.
826 * linux-low.cc (linux_target_ops): Update.
827 (linux_pause_all): Turn into ...
828 (linux_process_target::pause_all): ... this.
829 (linux_unpause_all): Turn into ...
830 (linux_process_target::unpause_all): ... this.
831 (linux_process_target::prepare_to_access_memory): Update.
832 (linux_process_target::done_accessing_memory): Update.
833 * linux-low.h (class linux_process_target): Update.
834 * lynx-low.cc (lynx_target_ops): Update.
835 * nto-low.cc (nto_target_ops): Update.
836 * win32-low.cc (win32_target_ops): Update.
837
838 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
839
840 Turn process_stratum_target's get_tib_address op into a method of
841 process_target.
842
843 * target.h (struct process_stratum_target): Remove the target op.
844 (class process_target): Add the target op. Also add
845 'supports_get_tib_address'.
846 * target.cc (process_target::get_tib_address): Define.
847 (process_target::supports_get_tib_address): Define.
848
849 Update the derived classes and callers below.
850
851 * server.cc (handle_query): Update.
852 * linux-low.cc (win32_target_ops): Update.
853 * lynx-low.cc (lynx_target_ops): Update.
854 * nto-low.cc (nto_target_ops): Update.
855 * win32-low.cc (win32_target_ops): Update.
856 (win32_process_target::supports_get_tib_address): Define.
857 (win32_get_tib_address): Turn into ...
858 (win32_process_target::get_tib_address): ... this.
859 * win32-low.h (class win32_process_target): Update.
860
861 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
862
863 Turn process_stratum_target's thread_stopped op into a method of
864 process_target.
865
866 * target.h (struct process_stratum_target): Remove the target op.
867 (class process_target): Add the target op. Also add
868 'supports_thread_stopped'.
869 (target_thread_stopped): Update the macro.
870 * target.cc (process_target::thread_stopped): Define.
871 (process_target::supports_thread_stopped): Define.
872 (prepare_to_access_memory): Update.
873
874 Update the derived classes and callers below.
875
876 * server.cc (queue_stop_reply_callback): Update.
877 * linux-low.cc (linux_target_ops): Update.
878 (linux_process_target::supports_thread_stopped): Define.
879 (linux_thread_stopped): Turn into ...
880 (linux_process_target::thread_stopped): ... this.
881 * linux-low.h (class linux_process_target): Update.
882 * lynx-low.cc (lynx_target_ops): Update.
883 * nto-low.cc (nto_target_ops): Update.
884 * win32-low.cc (win32_target_ops): Update.
885
886 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
887
888 Turn process_stratum_target's read_pc and write_pc ops into
889 methods of process_target.
890
891 * target.h (struct process_stratum_target): Remove the target ops.
892 (class process_target): Add the target ops.
893 * target.cc (process_target::read_pc): Define.
894 (process_target::write_pc): Define.
895
896 Update the derived classes and callers below.
897
898 * regcache.cc (regcache_read_pc): Update.
899 (regcache_write_pc): Update.
900 * linux-low.cc (linux_target_ops): Update.
901 (linux_read_pc): Turn into ...
902 (linux_process_target::read_pc): ... this.
903 (linux_write_pc): Turn into ...
904 (linux_process_target::write_pc): ... this.
905 * linux-low.h (class linux_process_target): Update.
906 * lynx-low.cc (lynx_target_ops): Update.
907 * nto-low.cc (nto_target_ops): Update.
908 * win32-low.cc (win32_target_ops): Update.
909
910 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
911
912 Turn process_stratum_target's supports_tracepoints op into a
913 method of process_target.
914
915 * target.h (struct process_stratum_target): Remove the target op.
916 (class process_target): Add the target op.
917 (target_supports_tracepoints): Update the macro.
918 * target.cc (process_target::supports_tracepoints): Define.
919
920 Update the derived classes and callers below.
921
922 * linux-low.cc (linux_target_ops): Update.
923 (linux_supports_tracepoints): Turn into ...
924 (linux_process_target::supports_tracepoints): ... this.
925 * linux-low.h (class linux_process_target): Update.
926 * lynx-low.cc (lynx_target_ops): Update.
927 * nto-low.cc (nto_target_ops): Update.
928 * win32-low.cc (win32_target_ops): Update.
929
930 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
931
932 Turn process_stratum_target's process_qsupported op into a method
933 of process_target.
934
935 * target.h (struct process_stratum_target): Remove the target op.
936 (class process_target): Add the target op.
937 (target_process_qsupported): Update the macro.
938 * target.cc (process_target::process_qsupported): Define.
939
940 Update the derived classes and callers below.
941
942 * linux-low.cc (linux_target_ops): Update.
943 (linux_process_qsupported): Turn into ...
944 (linux_process_target::process_qsupported): ... this.
945 * linux-low.h (class linux_process_target): Update.
946 * lynx-low.cc (lynx_target_ops): Update.
947 * nto-low.cc (nto_target_ops): Update.
948 * win32-low.cc (win32_target_ops): Update.
949
950 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
951
952 Turn process_stratum_target's read_loadmap op into a method of
953 process_target.
954
955 * target.h (struct process_stratum_target): Remove the target op.
956 (class process_target): Add the target op. Also add
957 'supports_read_loadmap'.
958 * target.cc (process_target::read_loadmap): Define.
959 (process_target::supports_read_loadmap): Define.
960
961 Update the derived classes and callers below.
962
963 * server.cc (handle_qxfer_fdpic): Update.
964 (handle_query): Update.
965 * linux-low.cc (linux_target_ops): Update.
966 (linux_process_target::supports_read_loadmap): Define.
967 (linux_read_loadmap): Turn into ...
968 (linux_process_target::read_loadmap): ... this.
969 * linux-low.h (class linux_process_target): Update.
970 * lynx-low.cc (lynx_target_ops): Update.
971 * nto-low.cc (nto_target_ops): Update.
972 * win32-low.cc (win32_target_ops): Update.
973
974 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
975
976 Turn process_stratum_target's core_of_thread op into a method of
977 process_target.
978
979 * target.h (struct process_stratum_target): Remove the target op.
980 (class process_target): Add the target op.
981 (target_core_of_thread): Update the macro.
982 * target.cc (process_target::core_of_thread): Define.
983
984 Update the derived classes and callers below.
985
986 * linux-low.cc (linux_target_ops): Update.
987 (linux_process_target::core_of_thread): Define.
988 * linux-low.h (class linux_process_target): Update.
989 * lynx-low.cc (lynx_target_ops): Update.
990 * nto-low.cc (nto_target_ops): Update.
991 * win32-low.cc (win32_target_ops): Update.
992
993 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
994
995 Turn process_stratum_target's handle_monitor_command op into a
996 method of process_target.
997
998 * target.h (struct process_stratum_target): Remove the target op.
999 (class process_target): Add the target op.
1000 (target_handle_monitor_command): Update the macro.
1001 * target.cc (process_target::handle_monitor_command): Define.
1002
1003 Update the derived classes and callers below.
1004
1005 * server.cc (handle_query): Update.
1006 * linux-low.cc (linux_target_ops): Update.
1007 (linux_process_target::handle_monitor_command): Define.
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 * win32-low.cc (win32_target_ops): Update.
1012
1013 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1014
1015 Turn process_stratum_target's handle_new_gdb_connection op into a
1016 method of process_target.
1017
1018 * target.h (struct process_stratum_target): Remove the target op.
1019 (class process_target): Add the target op.
1020 (target_handle_new_gdb_connection): Update the macro.
1021 * target.cc (process_target::handle_new_gdb_connection): Define.
1022
1023 Update the derived classes and callers below.
1024
1025 * linux-low.cc (linux_target_ops): Update.
1026 (linux_handle_new_gdb_connection): Turn into ...
1027 (linux_process_target::handle_new_gdb_connection): ... this.
1028 * linux-low.h (class linux_process_target): Update.
1029 * lynx-low.cc (lynx_target_ops): Update.
1030 * nto-low.cc (nto_target_ops): Update.
1031 * win32-low.cc (win32_target_ops): Update.
1032
1033 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1034
1035 Turn process_stratum_target's supports_fork_events,
1036 supports_vfork_events, and supports_exec_events ops into methods
1037 of process_target.
1038
1039 * target.h (struct process_stratum_target): Remove the target ops.
1040 (class process_target): Add the target ops.
1041 (target_supports_fork_events): Update the macro.
1042 (target_supports_vfork_events): Update the macro.
1043 (target_supports_exec_events): Update the macro.
1044 * target.cc (process_target::supports_fork_events): Define.
1045 (process_target::supports_vfork_events): Define.
1046 (process_target::supports_exec_events): Define.
1047
1048 Update the derived classes and callers below.
1049
1050 * linux-low.cc (linux_target_ops): Update.
1051 (linux_supports_fork_events): Turn into ...
1052 (linux_process_target::supports_fork_events): ... this.
1053 (linux_supports_vfork_events): Turn into ...
1054 (linux_process_target::supports_vfork_events): ... this.
1055 (linux_supports_exec_events): Turn into ...
1056 (linux_process_target::supports_exec_events): ... this.
1057 * linux-low.h (class linux_process_target): Update.
1058 * lynx-low.cc (lynx_target_ops): Update.
1059 * nto-low.cc (nto_target_ops): Update.
1060 * win32-low.cc (win32_target_ops): Update.
1061
1062 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1063
1064 Turn process_stratum_target's supports_multi_process op into a
1065 method of process_target.
1066
1067 * target.h (struct process_stratum_target): Remove the target op.
1068 (class process_target): Add the target op.
1069 * target.cc (process_target::supports_multi_process): Define.
1070 (target_supports_multi_process): Update.
1071
1072 Update the derived classes and callers below.
1073
1074 * linux-low.cc (linux_target_ops): Update.
1075 (linux_supports_multi_process): Turn into ...
1076 (linux_process_target::supports_multi_process): ... this.
1077 * linux-low.h (class linux_process_target): Update.
1078 * lynx-low.cc (lynx_target_ops): Update.
1079 * nto-low.cc (nto_target_ops): Update.
1080 * win32-low.cc (win32_target_ops): Update.
1081
1082 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1083
1084 Turn process_stratum_target's supports_non_stop, async, and
1085 start_non_stop ops into methods of process_target.
1086
1087 * target.h (struct process_stratum_target): Remove the target ops.
1088 (class process_target): Add the target ops.
1089 (target_supports_non_stop): Update the macro.
1090 (target_async): Update the macro.
1091 (start_non_stop): Remove declaration.
1092 * target.cc (process_target::supports_non_stop): Define.
1093 (process_target::async): Define.
1094 (process_target::start_non_stop): Define.
1095 (start_non_stop): Remove.
1096
1097 Update the derived classes and callers below.
1098
1099 * server.cc (handle_qxfer_siginfo): Update.
1100 (handle_query): Update.
1101 * linux-low.cc (linux_target_ops): Update.
1102 (linux_supports_non_stop): Turn into ...
1103 (linux_process_target::supports_non_stop): ... this.
1104 (linux_async): Turn into ...
1105 (linux_process_target::async): ... this.
1106 (linux_start_non_stop): Turn into ...
1107 (linux_process_target::start_non_stop): ... this.
1108 * linux-low.h (class linux_process_target): Update.
1109 * lynx-low.cc (lynx_target_ops): Update.
1110 * nto-low.cc (nto_target_ops): Update.
1111 (nto_supports_non_stop): Remove; rely on the default behavior
1112 instead.
1113 * win32-low.cc (win32_target_ops): Update.
1114
1115 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1116
1117 Turn process_stratum_target's qxfer_siginfo op into a method of
1118 process_target.
1119
1120 * target.h (struct process_stratum_target): Remove the target op.
1121 (class process_target): Add the target op. Also add
1122 'supports_qxfer_siginfo'.
1123 * target.cc (process_target::qxfer_siginfo): Define.
1124 (process_target::supports_qxfer_siginfo): Define.
1125
1126 Update the derived classes and callers below.
1127
1128 * server.cc (handle_qxfer_siginfo): Update.
1129 (handle_query): Update.
1130 * linux-low.cc (linux_target_ops): Update.
1131 (linux_process_target::supports_qxfer_siginfo): Define.
1132 (linux_xfer_siginfo): Turn into ...
1133 (linux_process_target::qxfer_siginfo): ... this.
1134 * linux-low.h (class linux_process_target): Update.
1135 * lynx-low.cc (lynx_target_ops): Update.
1136 * nto-low.cc (nto_target_ops): Update.
1137 * win32-low.cc (win32_target_ops): Update.
1138
1139 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1140
1141 Turn process_stratum_target's qxfer_osdata op into a method of
1142 process_target.
1143
1144 * target.h (struct process_stratum_target): Remove the target op.
1145 (class process_target): Add the target op. Also add
1146 'supports_qxfer_osdata'.
1147 * target.cc (process_target::qxfer_osdata): Define.
1148 (process_target::supports_qxfer_osdata): Define.
1149
1150 Update the derived classes and callers below.
1151
1152 * server.cc (handle_qxfer_osdata): Update.
1153 (handle_query): Update.
1154 * linux-low.cc (linux_target_ops): Update.
1155 (linux_process_target::supports_qxfer_osdata): Define.
1156 (linux_qxfer_osdata): Turn into ...
1157 (linux_process_target::qxfer_osdata): ... this.
1158 * linux-low.h (class linux_process_target): Update.
1159 * lynx-low.cc (lynx_target_ops): Update.
1160 * nto-low.cc (nto_target_ops): Update.
1161 * win32-low.cc (win32_target_ops): Update.
1162
1163 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1164
1165 Turn process_stratum_target's hostio_last_error op into a
1166 method of process_target.
1167
1168 * target.h (struct process_stratum_target): Remove the target op.
1169 (class process_target): Add the target op.
1170 * target.cc: Add "hostio.h" to includes.
1171 (process_target::hostio_last_error): Define.
1172
1173 Update the derived classes and callers below.
1174
1175 * hostio.cc (hostio_error): Update.
1176 * linux-low.cc: Remove "hostio.h" from includes.
1177 (linux_target_ops): Update.
1178 * lynx-low.cc (lynx_target_ops): Update.
1179 * nto-low.cc (nto_target_ops): Update.
1180 * win32-low.h (class win32_process_target): Update.
1181 * win32-low.cc (win32_target_ops): Update.
1182 (wince_hostio_last_error): Turn into ...
1183 (win32_process_target::hostio_last_error): ... this.
1184
1185 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1186
1187 Turn process_stratum_target's get_tls_address op into a method of
1188 process_target.
1189
1190 * target.h (struct process_stratum_target): Remove the target op.
1191 (class process_target): Add the target op. Also add
1192 'supports_get_tls_address'.
1193 * target.cc (process_target::get_tls_address): Define.
1194 (process_target::supports_get_tls_address): Define.
1195
1196 Update the derived classes and callers below.
1197
1198 * server.cc (handle_query): Update.
1199 * linux-low.cc (linux_target_ops): Update.
1200 (linux_process_target::supports_get_tls_address): Define.
1201 (linux_process_target::get_tls_address): Define.
1202 * linux-low.h (class linux_process_target): Update.
1203 * lynx-low.cc (lynx_target_ops): Update.
1204 * nto-low.cc (nto_target_ops): Update.
1205 * win32-low.cc (win32_target_ops): Update.
1206
1207 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1208
1209 Turn process_stratum_target's read_offsets op into a method of
1210 process_target.
1211
1212 * target.h (struct process_stratum_target): Remove the target op.
1213 (class process_target): Add the target op. Also add
1214 'supports_read_offsets'.
1215 * target.cc (process_target::read_offsets): Define.
1216 (process_target::supports_read_offsets): Define.
1217
1218 Update the derived classes and callers below.
1219
1220 * server.cc (handle_query): Update.
1221 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1222 (linux_target_ops): Update.
1223 (linux_process_target::supports_read_offsets): Define.
1224 (linux_read_offsets): Turn into ...
1225 (linux_process_target::read_offsets): ... this.
1226 * linux-low.h (class linux_process_target): Update.
1227 * lynx-low.cc (lynx_target_ops): Update.
1228 * nto-low.cc (nto_target_ops): Update.
1229 * win32-low.cc (win32_target_ops): Update.
1230
1231 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1232
1233 Turn process_stratum_target's stopped_by_watchpoint and
1234 stopped_data_address ops into methods of process_target.
1235
1236 * target.h (struct process_stratum_target): Remove the target ops.
1237 (class process_target): Add the target ops.
1238 * target.cc (process_target::stopped_by_watchpoint): Define.
1239 (process_target::stopped_data_address): Define.
1240
1241 Update the derived classes and callers below.
1242
1243 * remote-utils.cc (prepare_resume_reply): Update.
1244 * linux-low.cc (linux_target_ops): Update.
1245 (linux_stopped_by_watchpoint): Turn into ...
1246 (linux_process_target::stopped_by_watchpoint): ... this.
1247 (linux_stopped_data_address): Turn into ...
1248 (linux_process_target::stopped_data_address): ... this.
1249 * linux-low.h (class linux_process_target): Update.
1250 * lynx-low.cc (lynx_target_ops): Update.
1251 * nto-low.cc (nto_target_ops): Update.
1252 (nto_stopped_by_watchpoint): Turn into ...
1253 (nto_process_target::stopped_by_watchpoint): ... this.
1254 (nto_stopped_data_address): Turn into ...
1255 (nto_process_target::stopped_data_address): ... this.
1256 * nto-low.h (class nto_process_target): Update.
1257 * win32-low.cc (win32_target_ops): Update.
1258 (win32_stopped_by_watchpoint): Turn into ...
1259 (win32_process_target::stopped_by_watchpoint): ... this.
1260 (win32_stopped_data_address): Turn into ...
1261 (win32_process_target::stopped_data_address): ... this.
1262 * win32-low.h (class win32_process_target): Update.
1263
1264 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1265
1266 Turn process_stratum_target's supports_hardware_single_step op into
1267 a method of process_target.
1268
1269 * target.h (struct process_stratum_target): Remove the target op.
1270 (class process_target): Add the target op.
1271 (target_supports_hardware_single_step): Update the macro.
1272 (target_can_do_hardware_single_step): Remove declaration.
1273 * target.cc (process_target::supports_hardware_single_step): Define.
1274 (target_can_do_hardware_single_step): Remove.
1275
1276 Update the derived classes and callers below.
1277
1278 * linux-low.h (class linux_process_target): Update.
1279 * linux-low.cc (linux_target_ops): Update.
1280 (linux_supports_hardware_single_step): Turn into ...
1281 (linux_process_target::supports_hardware_single_step): ... this.
1282 * lynx-low.h (class lynx_process_target): Update.
1283 * lynx-low.cc (lynx_target_ops): Update.
1284 (lynx_process_target::supports_hardware_single_step): Define.
1285 * nto-low.h (class nto_process_target): Update.
1286 * nto-low.cc (nto_target_ops): Update.
1287 (nto_process_target::supports_hardware_single_step): Define.
1288 * win32-low.h (class win32_process_target): Update.
1289 * win32-low.cc (win32_target_ops): Update.
1290 (win32_process_target::supports_hardware_single_step): Define.
1291
1292 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1293
1294 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1295 ops into methods of process_target.
1296
1297 * target.h (struct process_stratum_target): Remove the target ops.
1298 (class process_target): Add the target ops.
1299 (target_stopped_by_hw_breakpoint): Update the macro.
1300 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1301 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1302 (process_target::supports_stopped_by_hw_breakpoint): Define.
1303
1304 Update the derived classes and callers below.
1305
1306 * linux-low.cc (linux_target_ops): Update.
1307 (linux_stopped_by_hw_breakpoint): Turn into ...
1308 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1309 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1310 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1311 * linux-low.h (class linux_process_target): Update.
1312 * lynx-low.cc (lynx_target_ops): Update.
1313 * nto-low.cc (nto_target_ops): Update.
1314 * win32-low.cc (win32_target_ops): Update.
1315
1316 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1317
1318 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1319 ops into methods of process_target.
1320
1321 * target.h (struct process_stratum_target): Remove the target ops.
1322 (class process_target): Add the target ops.
1323 (target_stopped_by_sw_breakpoint): Update the macro.
1324 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1325 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1326 (process_target::supports_stopped_by_sw_breakpoint): Define.
1327
1328 Update the derived classes and callers below.
1329
1330 * linux-low.cc (linux_target_ops): Update.
1331 (linux_stopped_by_sw_breakpoint): Turn into ...
1332 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1333 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1334 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1335 * linux-low.h (class linux_process_target): Update.
1336 * lynx-low.cc (lynx_target_ops): Update.
1337 * nto-low.cc (nto_target_ops): Update.
1338 * win32-low.cc (win32_target_ops): Update.
1339
1340 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1341
1342 Turn process_stratum_target's insert_point and remove_point ops
1343 into methods of process_target.
1344
1345 * target.h (struct process_stratum_target): Remove the target ops.
1346 (class process_target): Add the target ops.
1347 * target.cc (process_target::insert_point): Define.
1348 (process_target::remove_point): Define.
1349
1350 Update the derived classes and callers below.
1351
1352 * mem-break.cc (set_raw_breakpoint_at): Update.
1353 (delete_raw_breakpoint): Update.
1354 (uninsert_raw_breakpoint): Update.
1355 (reinsert_raw_breakpoint): Update.
1356 * linux-low.cc (linux_target_ops): Update.
1357 (linux_insert_point): Turn into ...
1358 (linux_process_target::insert_point): ... this.
1359 (linux_remove_point): Turn into ...
1360 (linux_process_target::remove_point): ... this.
1361 * linux-low.h (class linux_process_target): Update.
1362 * lynx-low.cc (lynx_target_ops): Update.
1363 * nto-low.cc (nto_target_ops): Update.
1364 (nto_insert_point): Turn into ...
1365 (nto_process_target::insert_point): ... this.
1366 (nto_remove_point): Turn into ...
1367 (nto_process_target::remove_point): ... this.
1368 * nto-low.h (class nto_process_target): Update.
1369 * win32-low.cc (win32_target_ops): Update.
1370 (win32_insert_point): Turn into ...
1371 (win32_process_target::insert_point): ... this.
1372 (win32_remove_point): Turn into ...
1373 (win32_process_target::remove_point): ... this.
1374 * win32-low.h (class win32_process_target): Update.
1375
1376 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1377
1378 Turn process_stratum_target's supports_z_point_type op into a
1379 method of process_target.
1380
1381 * target.h (struct process_stratum_target): Remove the target op.
1382 (class process_target): Add the target op.
1383 * target.cc (process_target::supports_z_point_type): Define.
1384
1385 Update the derived classes and callers below.
1386
1387 * mem-break.cc (z_type_supported): Update.
1388 * linux-low.cc (linux_target_ops): Update.
1389 (linux_supports_z_point_type): Turn into ...
1390 (linux_process_target::supports_z_point_type): ... this.
1391 * linux-low.h (class linux_process_target): Update.
1392 * lynx-low.cc (lynx_target_ops): Update.
1393 * nto-low.cc (nto_target_ops): Update.
1394 (nto_supports_z_point_type): Turn into ...
1395 (nto_process_target::supports_z_point_type): ... this.
1396 * nto-low.h (class nto_process_target): Update.
1397 * win32-low.cc (win32_target_ops): Update.
1398 (win32_supports_z_point_type): Turn into ...
1399 (win32_process_target::supports_z_point_type): ... this.
1400 * win32-low.h (class win32_process_target): Update.
1401
1402 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1403
1404 Turn process_stratum_target's read_auxv op into a method of
1405 process_target.
1406
1407 * target.h (class process_stratum_target): Remove the target op.
1408 (struct process_target): Add the target op. Also add
1409 'supports_read_auxv'.
1410 * target.cc (process_target::read_auxv): Define.
1411 (process_target::supports_read_auxv): Define.
1412
1413 Update the derived classes and callers below.
1414
1415 * server.cc (handle_qxfer_auxv): Update.
1416 (handle_query): Update.
1417 * linux-low.cc (linux_target_ops): Update.
1418 (linux_process_target::supports_read_auxv): Define.
1419 (linux_read_auxv): Turn into ...
1420 (linux_process_target::read_auxv): ... this.
1421 * linux-low.h (class linux_process_target): Update.
1422 * lynx-low.cc (lynx_target_ops): Update.
1423 * nto-low.cc (nto_target_ops): Update.
1424 (nto_process_target::supports_read_auxv): Define.
1425 (nto_read_auxv): Turn into ...
1426 (nto_process_target::read_auxv): ... this.
1427 * nto-low.h (class nto_process_target): Update.
1428 * win32-low.cc (win32_target_ops): Update.
1429
1430 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1431
1432 Turn process_stratum_target's request_interrupt op into a method of
1433 process_target.
1434
1435 * target.h (struct process_stratum_target): Remove the target op.
1436 (class process_target): Add the target op.
1437
1438 Update the derived classes and callers below.
1439
1440 * remote-utils.cc (putpkt_binary_1): Update.
1441 (input_interrupt): Update.
1442 (getpkt): Update.
1443 * server.cc (handle_v_requests): Update.
1444 * linux-low.cc (linux_target_ops): Update.
1445 (linux_request_interrupt): Turn into ...
1446 (linux_process_target::request_interrupt): ... this.
1447 * linux-low.h (class linux_process_target): Update.
1448 * lynx-low.cc (lynx_target_ops): Update.
1449 (lynx_request_interrupt): Turn into ...
1450 (lynx_process_target::request_interrupt): ... this.
1451 * lynx-low.h (class lynx_process_target): Update.
1452 * nto-low.cc (nto_target_ops): Update.
1453 (nto_request_interrupt): Turn into ...
1454 (nto_process_target::request_interrupt): ... this.
1455 * nto-low.h (class nto_process_target): Update.
1456 * win32-low.cc (win32_target_ops): Update.
1457 (win32_request_interrupt): Turn into ...
1458 (win32_process_target::request_interrupt): ... this.
1459 * win32-low.h (class win32_process_target): Update.
1460
1461 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1462
1463 Turn process_stratum_target's look_up_symbols op into a method of
1464 process_target.
1465
1466 * target.h (struct process_stratum_target): Remove the target op.
1467 (class process_target): Add the target op.
1468 * target.cc (process_target::look_up_symbols): Define.
1469
1470 Update the derived classes and callers below.
1471
1472 * server.cc (handle_query): Update.
1473 * linux-low.cc (linux_target_ops): Update.
1474 (linux_look_up_symbols): Turn into ...
1475 (linux_process_target::look_up_symbols): ... this.
1476 * linux-low.h (class linux_process_target): Update.
1477 * lynx-low.cc (lynx_target_ops): Update.
1478 * nto-low.cc (nto_target_ops): Update.
1479 * win32-low.cc (win32_target_ops): Update.
1480
1481 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1482
1483 Turn process_stratum_target's read_memory and write_memory
1484 ops into methods of process_target.
1485
1486 * target.h (struct process_stratum_target): Remove the target ops.
1487 (class process_target): Add the target ops.
1488
1489 Update the derived classes and callers below.
1490
1491 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1492 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1493 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1494 (arm_get_syscall_trapinfo): Update.
1495 * linux-cris-low.cc (cris_breakpoint_at): Update.
1496 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1497 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1498 * linux-mips-low.cc (mips_breakpoint_at): Update.
1499 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1500 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1501 * linux-sh-low.cc (sh_breakpoint_at): Update.
1502 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1503 (sparc_store_gregset_from_stack): Update.
1504 (sparc_breakpoint_at): Update.
1505 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1506 * linux-tile-low.cc (tile_breakpoint_at): Update.
1507 * linux-x86-low.cc (x86_breakpoint_at): Update.
1508 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1509 * mem-brea.cc (insert_memory_breakpoint): Update.
1510 (validate_inserted_breakpoint): Update.
1511 * target.cc (read_inferior_memory): Update.
1512 (target_write_memory): Update.
1513 * linux-low.cc (linux_target_ops): Update.
1514 (linux_read_memory): Make a wrapper around the read_memory target
1515 op call.
1516 (linux_process_target::read_memory): Rename from linux_read_memory.
1517 (linux_write_memory): Turn into ...
1518 (linux_process_target::write_memory): ... this.
1519 * linux-low.h (class linux_process_target): Update.
1520 * lynx-low.cc (lynx_target_ops): Update.
1521 (lynx_read_memory): Turn into ...
1522 (lynx_process_target::read_memory): ... this.
1523 (lynx_write_memory): Turn into ...
1524 (lynx_process_target::write_memory): ... this.
1525 * lynx-low.h (class lynx_process_target): Update.
1526 * nto-low.cc (nto_target_ops): Update.
1527 (nto_read_memory): Turn into ...
1528 (nto_process_target::read_memory): ... this.
1529 (nto_write_memory): Turn into ...
1530 (nto_process_target::write_memory): ... this.
1531 * nto-low.h (class nto_process_target): Update.
1532 * win32-low.cc (win32_target_ops): Update.
1533 (win32_read_inferior_memory): Turn into ...
1534 (win32_process_target::read_memory): ... this.
1535 (win32_write_inferior_memory): Turn into ...
1536 (win32_process_target::write_memory): ... this.
1537 * win32-low.h (class win32_process_target): Update.
1538
1539 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1540
1541 Turn process_stratum_target's prepare_to_access_memory and
1542 done_accessing_memory ops into methods of process_target.
1543
1544 * target.h (struct process_stratum_target): Remove the target ops.
1545 (class process_target): Add the target ops.
1546 * target.cc (process_target::prepare_to_access_memory): Define.
1547 (process_target::done_accessing_memory): Define.
1548 (prepare_to_access_memory): Update.
1549 (done_accessing_memory): Update.
1550
1551 Update the derived classes and callers below.
1552
1553 * linux-low.cc (linux_target_ops): Update.
1554 (linux_prepare_to_access_memory): Turn into ...
1555 (linux_process_target::prepare_to_access_memory): ... this.
1556 (linux_done_accessing_memory): Turn into ...
1557 (linux_process_target::done_accessing_memory): ... this.
1558 * linux-low.h (class linux_process_target): Update.
1559 * lynx-low.cc (lynx_target_ops): Update.
1560 * nto-low.cc (nto_target_ops): Update.
1561 * win32-low.cc (win32_target_ops): Update.
1562
1563 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1564
1565 Turn process_stratum_target's fetch_registers and store_registers
1566 ops into methods of process_target.
1567
1568 * target.h (struct process_stratum_target): Remove the target ops.
1569 (class process_target): Add the target ops.
1570 (fetch_inferior_registers): Update the macro.
1571 (store_inferior_registers): Update the macro.
1572
1573 Update the derived classes and callers below.
1574
1575 * linux-low.cc (linux_target_ops): Update.
1576 (linux_fetch_registers): Turn into ...
1577 (linux_process_target::fetch_registers): ... this.
1578 (linux_store_registers): Turn into ...
1579 (linux_process_target::store_registers): ... this.
1580 * linux-low.h (class linux_process_target): Update.
1581 * lynx-low.cc (lynx_target_ops): Update.
1582 (lynx_fetch_registers): Turn into ...
1583 (lynx_process_target::fetch_registers): ... this.
1584 (lynx_store_registers): Turn into ...
1585 (lynx_process_target::store_registers): ... this.
1586 * lynx-low.h (class lynx_process_target): Update.
1587 * nto-low.cc (nto_target_ops): Update.
1588 (nto_fetch_registers): Turn into ...
1589 (nto_process_target::fetch_registers): ... this.
1590 (nto_store_registers): Turn into ...
1591 (nto_process_target::store_registers): ... this.
1592 * nto-low.h (class nto_process_target): Update.
1593 * win32-low.cc (win32_target_ops): Update.
1594 (win32_fetch_inferior_registers): Turn into ...
1595 (win32_process_target::fetch_registers): ... this.
1596 (win32_store_inferior_registers): Turn into ...
1597 (win32_process_target::store_registers): ... this.
1598 * win32-low.h (class win32_process_target): Update.
1599
1600 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1601
1602 Turn process_stratum_target's wait op into a method of
1603 process_target.
1604
1605 * target.h (struct process_stratum_target): Remove the target op.
1606 (class process_target): Add the target op.
1607
1608 Update the derived classes and callers below.
1609
1610 * target.cc (target_wait): Update.
1611 * linux-low.cc (linux_target_ops): Update.
1612 (linux_wait): Turn into ...
1613 (linux_process_target::wait): ... this.
1614 * linux-low.h (class linux_process_target): Update.
1615 * lynx-low.cc (lynx_target_ops): Update.
1616 (lynx_wait): Turn into ...
1617 (lynx_process_target::wait): ... this.
1618 * lynx-low.h (class lynx_process_target): Update.
1619 * nto-low.cc (nto_target_ops): Update.
1620 (nto_wait): Turn into ...
1621 (nto_process_target::wait): ... this.
1622 * nto-low.h (class nto_process_target): Update.
1623 * win32-low.cc (win32_target_ops): Update.
1624 (win32_wait): Turn into ...
1625 (win32_process_target::wait): ... this.
1626 (do_initial_child_stuff): Update.
1627 * win32-low.h (class win32_process_target): Update.
1628
1629 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1630
1631 Turn process_stratum_target's resume op into a method of
1632 process_target.
1633
1634 * target.h (struct process_stratum_target): Remove the target op.
1635 (class process_target): Add the target op.
1636
1637 Update the derived classes and callers below.
1638
1639 * server.cc (resume): Update.
1640 * target.cc (target_stop_and_wait): Update.
1641 (target_continue_no_signal): Update.
1642 (target_continue): Update.
1643 * linux-low.cc (linux_target_ops): Update.
1644 (linux_resume): Turn into ...
1645 (linux_process_target::resume): ... this.
1646 * linux-low.h (class linux_process_target): Update.
1647 * lynx-low.cc (lynx_target_ops): Update.
1648 (lynx_resume): Turn into ...
1649 (lynx_process_target::resume): ... this.
1650 * lynx-low.h (class lynx_process_target): Update.
1651 * nto-low.cc (nto_target_ops): Update.
1652 (nto_resume): Turn into ...
1653 (nto_process_target::resume): ... this.
1654 * nto-low.h (class nto_process_target): Update.
1655 * win32-low.cc (win32_target_ops): Update.
1656 (win32_resume): Turn into ...
1657 (win32_process_target::resume): ... this.
1658 (win32_process_target::detach): Update.
1659 (do_initial_child_stuff): Update.
1660 * win32-low.h (class win32_process_target): Update.
1661
1662 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1663
1664 Turn process_stratum_target's thread_alive op into a method of
1665 process_target.
1666
1667 * target.h (struct process_stratum_target): Remove the target op.
1668 (class process_target): Add the target op.
1669 (mythread_alive): Update the macro.
1670
1671 Update the derived classes and callers below.
1672
1673 * linux-low.cc (linux_target_ops): Update.
1674 (linux_thread_alive): Turn into ...
1675 (linux_process_target::thread_alive): ... this.
1676 (wait_for_sigstop): Update.
1677 * linux-low.h (class linux_process_target): Update.
1678 * lynx-low.cc (lynx_target_ops): Update.
1679 (lynx_thread_alive): Turn into ...
1680 (lynx_process_target::thread_alive): ... this.
1681 * lynx-low.h (class lynx_process_target): Update.
1682 * nto-low.cc (nto_target_ops): Update.
1683 (nto_thread_alive): Turn into ...
1684 (nto_process_target::thread_alive): ... this.
1685 * nto-low.h (class nto_process_target): Update.
1686 * win32-low.cc (win32_target_ops): Update.
1687 (win32_thread_alive): Turn into ...
1688 (win32_process_target::thread_alive): ... this.
1689 * win32-low.h (class win32_process_target): Update.
1690
1691 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1692
1693 Turn process_stratum_target's join op into a method of
1694 process_target.
1695
1696 * target.h (struct process_stratum_target): Remove the target op.
1697 (class process_target): Add the target op.
1698 (join_inferior): Update the macro.
1699
1700 Update the derived classes and callers below.
1701
1702 * linux-low.cc (linux_target_ops): Update.
1703 (linux_join): Turn into ...
1704 (linux_process_target::join): ... this.
1705 * linux-low.h (class linux_process_target): Update.
1706 * lynx-low.cc (lynx_target_ops): Update.
1707 (lynx_join): Turn into ...
1708 (lynx_process_target::join): ... this.
1709 * lynx-low.h (class lynx_process_target): Update.
1710 * nto-low.cc (nto_target_ops): Update.
1711 (nto_process_target::join): Define.
1712 * nto-low.h (class nto_process_target): Update.
1713 * win32-low.cc (win32_target_ops): Update.
1714 (win32_join): Turn into ...
1715 (win32_process_target::join): ... this.
1716 * win32-low.h (class win32_process_target): Update.
1717
1718 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1719
1720 Turn process_stratum_target's mourn op into a method of
1721 process_target.
1722
1723 * target.h (struct process_stratum_target): Remove the target op.
1724 (class process_target): Add the target op.
1725
1726 Update the derived classes and callers below.
1727
1728 * target.cc (target_mourn_inferior): Update.
1729 * linux-low.cc (linux_target_ops): Update.
1730 (linux_mourn): Turn into ...
1731 (linux_process_target::mourn): ... this.
1732 (handle_extended_wait): Update.
1733 (linux_process_target::kill): Update.
1734 (linux_process_target::detach): Update.
1735 * linux-low.h (class linux_process_target): Update.
1736 * lynx-low.cc (lynx_target_ops): Update.
1737 (lynx_mourn): Turn into ...
1738 (lynx_process_target::mourn): ... this.
1739 * lynx-low.h (class lynx_process_target): Update.
1740 * nto-low.cc (nto_target_ops): Update.
1741 (nto_mourn): Turn into ...
1742 (nto_process_target::mourn): ... this.
1743 * nto-low.h (class nto_process_target): Update.
1744 * win32-low.cc (win32_target_ops): Update.
1745 (win32_mourn): Turn into ...
1746 (win32_process_target::mourn): ... this.
1747 * win32-low.h (class win32_process_target): Update.
1748
1749 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1750
1751 Turn process_stratum_target's detach op into a method of
1752 process_target.
1753
1754 * target.h (struct process_stratum_target): Remove the target op.
1755 (class process_target): Add the target op.
1756 (detach_inferior): Update the macro.
1757
1758 Update the derived classes and callers below.
1759
1760 * linux-low.cc (linux_target_ops): Update.
1761 (linux_detach): Turn into ...
1762 (linux_process_target::detach): ... this.
1763 * linux-low.h (class linux_process_target): Update.
1764 * lynx-low.cc (lynx_target_ops): Update.
1765 (lynx_detach): Turn into ...
1766 (lynx_process_target::detach): ... this.
1767 * lynx-low.h (class lynx_process_target): Update.
1768 * nto-low.cc (nto_target_ops): Update.
1769 (nto_detach): Turn into ...
1770 (nto_process_target::detach): ... this.
1771 * nto-low.h (class nto_process_target): Update.
1772 * win32-low.cc (win32_target_ops): Update.
1773 (win32_detach): Turn into ...
1774 (win32_process_target::detach): ... this.
1775 * win32-low.h (class win32_process_target): Update.
1776
1777 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1778
1779 Turn process_stratum_target's kill op into a method of
1780 process_target.
1781
1782 * target.h (struct process_stratum_target): Remove the target op.
1783 (class process_target): Add the target op.
1784
1785 Update the derived classes and callers below.
1786
1787 * target.cc (kill_inferior): Update.
1788 * linux-low.cc (linux_target_ops): Update.
1789 (linux_kill): Turn into ...
1790 (linux_process_target::kill): ... this.
1791 * linux-low.h (class linux_process_target): Update.
1792 * lynx-low.cc (lynx_target_ops): Update.
1793 (lynx_kill): Turn into ...
1794 (lynx_process_target::kill): ... this.
1795 * lynx-low.h (class lynx_process_target): Update.
1796 * nto-low.cc (nto_target_ops): Update.
1797 (nto_kill): Turn into ...
1798 (nto_process_target::kill): ... this.
1799 * nto-low.h (class nto_process_target): Update.
1800 * win32-low.cc (win32_target_ops): Update.
1801 (win32_kill): Turn into ...
1802 (win32_process_target::kill): ... this.
1803 * win32-low.h (class win32_process_target): Update.
1804
1805 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1806
1807 Turn process_stratum_target's attach op into a method of
1808 process_target.
1809
1810 * target.h (struct process_stratum_target): Remove the target op.
1811 (class process_target): Add the target op.
1812 (myattach): Update the macro.
1813
1814 Update the derived classes and callers below.
1815
1816 * linux-low.cc (linux_target_ops): Update.
1817 (linux_attach): Turn into ...
1818 (linux_process_target::attach): ... this.
1819 * linux-low.h (class linux_process_target): Update.
1820 * lynx-low.cc (lynx_target_ops): Update.
1821 (lynx_attach): Turn into ...
1822 (lynx_process_target::attach): ... this.
1823 * lynx-low.h (class lynx_process_target): Update.
1824 * nto-low.cc (nto_target_ops): Update.
1825 (nto_attach): Turn into ...
1826 (nto_process_target::attach): ... this.
1827 * nto-low.h (class nto_process_target): Update.
1828 * win32-low.cc (win32_target_ops): Update.
1829 (win32_attach): Turn into ...
1830 (win32_process_target::attach): ... this.
1831 * win32-low.h (class win32_process_target): Update.
1832
1833 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1834
1835 Turn process_stratum_target's post_create_inferior op into a method
1836 of process_target.
1837
1838 * target.h (struct process_stratum_target): Remove the target op.
1839 (class process_target): Add the target op.
1840 (target_post_create_inferior): Update the macro.
1841 * target.cc (process_target::post_create_inferior): Define.
1842
1843 Update the derived classes and callers below.
1844
1845 * linux-low.cc (linux_target_ops): Update.
1846 (linux_post_create_inferior): Turn into ...
1847 (linux_process_target::post_create_inferior): ... this.
1848 * linux-low.h (class linux_process_target): Update.
1849 * lynx-low.cc (lynx_target_ops): Update.
1850 * nto-low.cc (nto_target_ops): Update.
1851 * win32-low.cc (win32_target_ops): Update.
1852
1853 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1854
1855 Turn process_stratum_target's create_inferior op into a method of
1856 process_target.
1857
1858 * target.h (struct process_stratum_target): Remove the target op.
1859 (class process_target): Add the target op.
1860 (create_inferior): Rename the macro to ...
1861 (target_create_inferior): ... this.
1862
1863 Update the derived classes and callers below.
1864
1865 * server.cc (handle_v_run): Update.
1866 (captured_main): Update.
1867 (process_serial_event): Update.
1868 * linux-low.cc (linux_target_ops): Update.
1869 (linux_create_inferior): Turn into ...
1870 (linux_process_target::create_inferior): ... this.
1871 * linux-low.h (class linux_process_target): Update.
1872 * lynx-low.cc (lynx_target_ops): Update.
1873 (lynx_create_inferior): Turn into ...
1874 (lynx_process_target::create_inferior): ... this.
1875 * lynx-low.h (class lynx_process_target): Update.
1876 * nto-low.cc (nto_target_ops): Update.
1877 (nto_create_inferior): Turn into ...
1878 (nto_process_target::create_inferior): ... this.
1879 * nto-low.h (class nto_process_target): Update.
1880 * win32-low.cc (win32_target_ops): Update.
1881 (win32_create_inferior): Turn into ...
1882 (win32_process_target::create_inferior): ... this.
1883 * win32-low.h (class win32_process_target): Update.
1884
1885 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1886
1887 * target.h (class process_target): New class definition.
1888 (struct process_stratum_target) <pt>: New field with type
1889 'process_target*'.
1890 * linux-low.h (class linux_process_target): Define as a derived
1891 class of 'process_target'.
1892 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1893 as the 'pt' field.
1894 * lynx-low.h (class lynx_process_target): Define as a derived
1895 class of 'process_target'.
1896 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1897 as the 'pt' field.
1898 * nto-low.h (class nto_process_target): Define as a derived
1899 class of 'process_target'.
1900 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1901 as the 'pt' field.
1902 * win32-low.h (class win32_process_target): Define as a derived
1903 class of 'process_target'.
1904 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1905 as the 'pt' field.
1906
1907 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 * configure: Regenerate.
1910
1911 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
1912 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * linux-riscv-low.cc: New file.
1915 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1916 and nat/riscv-linux-tdesc.c.
1917 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1918 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1919 Define.
1920
1921 2020-02-14 Tom Tromey <tom@tromey.com>
1922
1923 * acinclude.m4: Don't include acx_configure_dir.m4.
1924 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1925 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1926 (all, install-only, uninstall, clean-info, clean)
1927 (maintainer-clean): Don't recurse.
1928 (subdir_do, all-lib): Remove.
1929 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1930 (GNULIB_H): Remove.
1931 (generated_files): Update.
1932 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1933 * configure: Rebuild.
1934 * configure.ac: Don't configure gnulib or libiberty.
1935 (GNULIB): Update.
1936
1937 2020-02-14 Eli Zaretskii <eliz@gnu.org>
1938
1939 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1940 preparing the command line for CreateProcess.
1941 (win32_create_inferior): Reflect the program name in debugging
1942 output that shows the process and its command line.
1943
1944 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1945
1946 * Makefile.in: Rename source files from .c to .cc.
1947 * %.c: Rename to %.cc.
1948 * configure.ac: Rename server.c to server.cc.
1949 * configure: Re-generate.
1950
1951 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1954
1955 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
1956
1957 * win32-low.c (win32_create_inferior): Set signal_pid.
1958
1959 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
1960 Pedro Alves <palves@redhat.com>
1961
1962 Skip building gdbserver in a cross-configuration.
1963 * configure.srv: Set $gdbserver_host depending on whether $target
1964 is $host. Use $gdbserver_host instead of $host.
1965
1966 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1967
1968 * configure: Re-generate.
1969
1970 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1971
1972 * configure: Re-generate.
1973
1974 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1975
1976 * acinclude.m4: Update warning.m4 path.
1977
1978 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
1979
1980 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1981 (handle_exception): Set siginfo_er.
1982 (win32_xfer_siginfo): New function.
1983
1984 2020-02-07 Tom Tromey <tom@tromey.com>
1985 Pedro Alves <palves@redhat.com>
1986
1987 * README: Update build documentation.
1988 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1989 host, not target.
1990 * configure.ac: Update paths.
1991 * configure: Rebuild.
1992 * acinclude.m4: Update paths.
1993 * Makefile.in: Update include paths.
1994 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1995 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1996 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1997 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1998 (%-generated.c): Update paths.
1999 * Move entire directory from ../gdb/gdbserver.
2000
2001 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
2002
2003 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
2004
2005 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2006
2007 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
2008 assignment instead of srv_linux_obj.
2009
2010 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
2011
2012 * server.c (handle_qxfer_libraries): Write segment-address with
2013 paddress.
2014
2015 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
2016
2017 * Makefile.in (install-strip): New target.
2018 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
2019 * aclocal.m4: Regenerate.
2020 * configure: Regenerate.
2021 * configure.ac: Add AM_PROG_INSTALL_STRIP.
2022
2023 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2024
2025 * Makefile.in (SFILES): Adjust paths to point to real files.
2026 (OBS): Move waitstatus.o to target/waitstatus.o.
2027 (TAGS): Transform paths appropriately.
2028 (%.o): Rename to...
2029 (nat/%.o): ... this pattern rule.
2030 (%.o): Rename to...
2031 (target/%.o): ... this pattern rule.
2032 * configure.srv: Adjust paths throughout to include nat/ prefix
2033 with the revant files.
2034 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
2035 * configure: Regenerate.
2036
2037 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2038
2039 * Makefile.in (TAGS): Remove config files from the recipe.
2040
2041 2020-01-14 Tom Tromey <tom@tromey.com>
2042
2043 * configure: Rebuild.
2044 * configure.ac: Remove any checks that were added to common.m4.
2045 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
2046 lib-link.m4.
2047
2048 2020-01-14 Tom Tromey <tom@tromey.com>
2049
2050 * server.h: Include config.h.
2051 * gdbreplay.c: Include config.h.
2052 * configure: Rebuild.
2053 * configure.ac: Don't source common.host.
2054 * acinclude.m4: Update path.
2055 * Makefile.in (INCSUPPORT): New variable.
2056 (INCLUDE_CFLAGS): Add INCSUPPORT.
2057 (SFILES): Update paths.
2058 (version-generated.c): Update path to create-version.sh.
2059 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
2060
2061 2020-01-14 Tom Tromey <tom@tromey.com>
2062
2063 * configure.ac (LIBS): Use WIN32APILIBS.
2064 (USE_WIN32API): Don't define.
2065 * configure: Rebuild.
2066
2067 2020-01-14 Tom Tromey <tom@tromey.com>
2068
2069 * configure: Rebuild.
2070
2071 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2072
2073 * Makefile.in (%-generated.c): Remove rule for files from
2074 regformats/i386.
2075
2076 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2077
2078 * configure: Re-generate.
2079
2080 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2081
2082 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
2083 Define to static.
2084 * tracepoint.c (stop_tracing, flush_trace_buffer,
2085 about_to_request_buffer_space, get_trace_state_variable_value,
2086 set_trace_state_variable_value, gdb_collect): Add declaration.
2087
2088 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2089
2090 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
2091 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
2092 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
2093 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
2094 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
2095 static.
2096
2097 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2098
2099 * inferiors.c: Include gdbsupport/common-inferior.h.
2100
2101 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2102
2103 * hostio-errno.c: Include hostio.h.
2104
2105 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2106
2107 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2108 prerequisite.
2109
2110 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2111
2112 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2113 * linux-arm-tdesc.h: Include arch/arm.h.
2114
2115 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2116
2117 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2118
2119 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2120
2121 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2122 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2123
2124 2020-01-10 Pedro Alves <palves@redhat.com>
2125
2126 * fork-child.c (post_fork_inferior): Pass target down to
2127 startup_inferior.
2128 * inferiors.c (switch_to_thread): Add process_stratum_target
2129 parameter.
2130 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2131 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2132 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2133 * remote-utils.c (prepare_resume_reply): Pass the target to
2134 switch_to_thread.
2135 * target.c (the_target): Now a process_stratum_target.
2136 (done_accessing_memory): Pass the target to switch_to_thread.
2137 (set_target_ops): Ajust to use process_stratum_target.
2138 * target.h (struct target_ops): Rename to ...
2139 (struct process_stratum_target): ... this.
2140 (the_target, set_target_ops): Adjust.
2141 (prepare_to_access_memory): Adjust comment.
2142 * win32-low.c (child_xfer_memory): Adjust to use
2143 process_stratum_target.
2144 (win32_target_ops): Now a process_stratum_target.
2145
2146 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2147 Pedro Alves <palves@redhat.com>
2148
2149 * win32-low.c (get_child_debug_event): Extract the fatal exception
2150 from the exit status and convert to the equivalent Posix signal
2151 number.
2152 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2153 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2154
2155 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2156
2157 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2158
2159 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2160
2161 * server.c (gdbserver_version): Change copyright year to 2020.
2162 * gdbreplay.c (gdbreplay_version): Likewise.
2163
2164 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2165
2166 * configure: Regenerate.
2167 * configure.ac: Quote variable arguments of test.
2168
2169 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2170
2171 * Makefile.in: Fix build with GNU Make 3.81
2172
2173 2019-12-16 Tom Tromey <tromey@adacore.com>
2174
2175 * server.c (get_exec_file): Constify result.
2176
2177 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2178
2179 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2180 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2181 * config.in: Regenerate.
2182 * configure: Regenerate.
2183 * configure.ac: Don't check for strerror.
2184 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2185 Call safe_strerror instead of strerror.
2186 * server.h (strerror): Remove this now-unnecessary declaration.
2187 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2188 strerror.
2189 (gdb_agent_helper_thread): Likewise.
2190 * utils.c (perror_with_name): Likewise.
2191
2192 2019-11-26 Tom Tromey <tom@tromey.com>
2193
2194 * configure, config.in: Rebuild.
2195
2196 2019-11-26 Tom Tromey <tom@tromey.com>
2197
2198 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2199 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2200 gdb_sigmask.
2201 * configure, config.in: Rebuild.
2202
2203 2019-11-26 Tom Tromey <tom@tromey.com>
2204
2205 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2206 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2207 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2208 * acinclude.m4: Include ax_pthread.m4.
2209 * config.in, configure: Rebuild.
2210
2211 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2212
2213 * debug.c (debug_set_output): Call safe_strerror instead of
2214 strerror.
2215 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2216 (linux_kill_one_lwp): Likewise.
2217 (linux_detach_one_lwp): Likewise.
2218 (linux_wait_for_event_filtered): Likewise.
2219 (store_register): Likewise.
2220 * lynx-low.c (lynx_attach): Likewise.
2221 * mem-break.c (insert_memory_breakpoint): Likewise.
2222 (remove_memory_breakpoint): Likewise.
2223 (delete_fast_tracepoint_jump): Likewise.
2224 (set_fast_tracepoint_jump): Likewise.
2225 (uninsert_fast_tracepoint_jumps_at): Likewise.
2226 (reinsert_fast_tracepoint_jumps_at): Likewise.
2227 * nto-low.c (nto_xfer_memory): Likewise.
2228 (nto_resume): Likewise.
2229
2230 2019-11-20 Luis Machado <luis.machado@linaro.org>
2231
2232 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2233 instead of register count.
2234 * tdesc.c (tdesc_contains_feature): New function.
2235 * tdesc.h (tdesc_contains_feature): New prototype.
2236
2237 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2238
2239 * Makefile.in: Add safe-strerror.c.
2240 * configure: Regenerate.
2241 * configure.ac: Don't source common.host.
2242
2243 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2244
2245 * config.in: Regenerate.
2246 * configure: Regenerate.
2247
2248 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2249
2250 * ax.c (ax_printf): Handle size_t_arg.
2251
2252 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2253
2254 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2255 * mi/mi-main.c (output_cores): Likewise.
2256 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2257 (linux_xfer_osdata_modules): Likewise.
2258 * remote.c (register_remote_support_xml): Likewise.
2259 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2260 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2261
2262 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2263
2264 * configure: Regenerate.
2265 * configure.ac: Remove check for strerror_r.
2266
2267 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2268
2269 * config.in: Regenerate.
2270 * configure: Regenerate.
2271 * configure.ac: Also check for strerror_r.
2272
2273 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2274
2275 * ax.h (debug_agent): Remove duplicate declaration.
2276
2277 2019-10-26 Tom de Vries <tdevries@suse.de>
2278
2279 * linux-aarch64-low.c: Fix typos in comments.
2280 * linux-arm-low.c: Same.
2281 * linux-low.c: Same.
2282 * linux-ppc-low.c: Same.
2283 * proc-service.c: Same.
2284 * regcache.h: Same.
2285 * server.c: Same.
2286 * tracepoint.c: Same.
2287 * win32-low.c: Same.
2288
2289 2019-10-25 Tom Tromey <tromey@adacore.com>
2290
2291 * utils.c (xstrdup): Remove.
2292
2293 2019-10-23 Tom Tromey <tom@tromey.com>
2294
2295 * configure, config.in: Rebuild.
2296
2297 2019-10-23 Tom Tromey <tom@tromey.com>
2298
2299 * configure: Rebuild.
2300 * acinclude.m4: Use m4_include, not sinclude.
2301
2302 2019-10-17 Tom Tromey <tromey@adacore.com>
2303
2304 * configure: Rebuild.
2305 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2306 in AC_CONFIG_FILES invocation.
2307 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2308 invocation.
2309
2310 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2311
2312 * server.c: Include xml-builtin.h.
2313 (get_xml_features): Don't declare xml_builtins here.
2314
2315 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * Makefile.in: Remove references to vec-ipa.o.
2318
2319 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * Makefile.in: Remove references to vec.c.
2322
2323 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2324
2325 * server.c (server_waiting): Change to bool.
2326 (extended_protocol): Likewise.
2327 (response_needed): Likewise.
2328 (exit_requested): Likewise.
2329 (run_once): Likewise.
2330 (report_no_resumed): Likewise.
2331 (non_stop): Likewise.
2332 (disable_packet_vCont): Likewise.
2333 (disable_packet_Tthread): Likewise.
2334 (disable_packet_qC): Likewise.
2335 (disable_packet_qfThreadInfo): Likewise.
2336 (handle_general_set): Update.
2337 (handle_detach): Update.
2338 (handle_monitor_command): Update.
2339 (handle_query): Update.
2340 (captured_main): Update.
2341 (process_serial_event): Update.
2342 * server.h (server_waiting): Change to bool.
2343 (disable_packet_vCont): Likewise.
2344 (disable_packet_Tthread): Likewise.
2345 (disable_packet_qC): Likewise.
2346 (disable_packet_qfThreadInfo): Likewise.
2347 (run_once): Likewise.
2348 (non_stop): Likewise.
2349 * target.c (target_stop_and_wait): Update.
2350
2351 2019-10-02 Tom Tromey <tromey@adacore.com>
2352
2353 * Makefile.in (SFILES): Add common-inferior.c.
2354 (OBS): Add common-inferior.o.
2355 * server.c (startup_with_shell): Don't define.
2356
2357 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * linux-low.c (linux_low_read_btrace): Update for change to
2360 std::vector.
2361
2362 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2363
2364 * debug.c (debug_threads): Remove comment in favor of the header.
2365 * debug.h (using_threads): Add declaration.
2366 (debug_threads): Add comment.
2367 * linux-aarch64-low.c: Include debug.h and remove declaration of
2368 debug_threads.
2369 * nto-low.c: Likewise.
2370 * remote-utils.c: Likewise.
2371 * thread-db.c: Likewise.
2372
2373 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2374
2375 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2376 and powerpc-cell64l-ipa.o.
2377 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2378 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2379 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2380 (spu*-*-*): Remove.
2381
2382 * spu-low.c: Remove file.
2383
2384 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2385 (parse_spufs_run): Remove.
2386 (ppc_get_pc): Remove Cell/B.E. support.
2387 (ppc_set_pc): Likewise.
2388 (ppc_breakpoint_at): Likewise.
2389 (ppc_arch_setup): Likewise.
2390 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2391 tdesc_powerpc_cell32l.
2392 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2393 or init_registers_powerpc_cell32l.
2394 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2395 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2396 or init_registers_powerpc_cell32l.
2397 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2398 (init_registers_powerpc_cell32l): Remove prototype.
2399 (init_registers_powerpc_cell64l): Likewise.
2400
2401 * target.h (struct target_ops): Remove qxfer_spu member.
2402 * server.c (handle_qxfer_spu): Remove.
2403 (qxfer_packets): Remove entry for "spu".
2404 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2405 * linux-low.c (SPUFS_MAGIC): Remove.
2406 (spu_enumerate_spu_ids): Remove.
2407 (linux_qxfer_spu): Remove.
2408 (linux_target_ops): Remove qxfer_spu member.
2409 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2410 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2411 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2412
2413 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2414
2415 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2416 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2417 * config.in: Regenerate.
2418 * configure: Regenerate.
2419
2420 2019-08-15 Tom Tromey <tromey@adacore.com>
2421
2422 * target.c (target_write_memory): Use gdb::byte_vector.
2423
2424 2019-08-15 Tom Tromey <tromey@adacore.com>
2425
2426 * tracepoint.c (write_inferior_data_pointer)
2427 (write_inferior_integer, write_inferior_int8)
2428 (write_inferior_uinteger, m_tracepoint_action_download)
2429 (r_tracepoint_action_download, x_tracepoint_action_download)
2430 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2431 (download_agent_expr, download_tracepoint_1)
2432 (download_trace_state_variables, upload_fast_traceframes): Update.
2433 * server.c (gdb_write_memory): Update.
2434 * remote-utils.c (relocate_instruction): Update.
2435 * proc-service.c (ps_pdwrite): Update.
2436 * mem-break.c (remove_memory_breakpoint)
2437 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2438 (uninsert_fast_tracepoint_jumps_at)
2439 (reinsert_fast_tracepoint_jumps_at): Update.
2440 * linux-x86-low.c (append_insns)
2441 (i386_install_fast_tracepoint_jump_pad)
2442 (amd64_write_goto_address, i386_write_goto_address): Update.
2443 * linux-s390-low.c (append_insns, s390_write_goto_address):
2444 Update.
2445 * linux-ppc-low.c (ppc_relocate_instruction)
2446 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2447 (ppc_write_goto_address): Update.
2448 * linux-aarch64-low.c (append_insns): Update.
2449 * target.h (struct target_ops): Update.
2450 (write_inferior_memory): Don't declare.
2451 * target.c (target_write_memory): Rename from
2452 write_inferior_memory. Remove old target_write_memory.
2453
2454 2019-08-15 Tom Tromey <tromey@adacore.com>
2455
2456 * target.c (write_inferior_memory): Use std::vector.
2457
2458 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2459
2460 PR build/24886
2461 * configure.ac: Drop enable-libmcheck support.
2462 * configure, config.in: Rebuild.
2463 * acinclude.m4: Don't include it.
2464
2465 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2466
2467 * configure.srv: Remove Arm xml files.
2468
2469 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2470
2471 * configure.srv: Add new files. Remove xml generated files.
2472 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2473 registers.
2474 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2475 * linux-aarch32-tdesc.c: New file.
2476 * linux-aarch32-tdesc.h: New file.
2477 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2478 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2479 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2480 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2481 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2482 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2483 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2484 (arm_read_description): Call arm_linux_read_description.
2485 (initialize_low_arch): Don't init registers.
2486 * linux-arm-tdesc.c: New file.
2487 * linux-arm-tdesc.h: New file.
2488
2489 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2490
2491 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2492 Move counter inside for.
2493 (arm_read_description): Check ptrace earlier.
2494 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2495
2496 2019-07-09 Tom Tromey <tom@tromey.com>
2497
2498 * configure: Rebuild.
2499 * configure.ac: Change common to gdbsupport.
2500 * acinclude.m4: Change common to gdbsupport.
2501 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2502 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2503 common to gdbsupport.
2504 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2505 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2506 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2507 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2508 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2509 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2510 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2511 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2512 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2513 common to gdbsupport.
2514
2515 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2516
2517 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2518 defines.
2519 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2520
2521 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2522
2523 * configure.srv: Remove legacy xml.
2524 * linux-aarch64-low.c (initialize_low_arch): Remove
2525 initialize_low_tdesc call.
2526 * linux-aarch64-tdesc-selftest.c: Remove file.
2527 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2528 * linux-x86-low.c (initialize_low_arch): Remove
2529 initialize_low_tdesc call.
2530 * linux-x86-tdesc-selftest.c: Remove file.
2531 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2532
2533 2019-06-20 Tom de Vries <tdevries@suse.de>
2534
2535 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2536 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2537
2538 2019-06-19 Tom de Vries <tdevries@suse.de>
2539
2540 * debug.h (debug_write): Change return type to ssize_t.
2541 * debug.c (debug_write): Same.
2542
2543 2019-06-14 Tom Tromey <tom@tromey.com>
2544
2545 * configure.ac: Use new path to gnulib.
2546 * configure: Rebuild.
2547 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2548 to gnulib.
2549
2550 2019-06-11 Tom Tromey <tom@tromey.com>
2551
2552 * Makefile.in (SFILES): Add alloc.c.
2553 (OBS): Add alloc.o.
2554 (IPA_OBJS): Add alloc-ipa.o.
2555 (alloc-ipa.o): New target.
2556 (%.o: ../%.c): New pattern rule.
2557
2558 2019-06-10 Tom Tromey <tromey@adacore.com>
2559
2560 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2561 end warning with a newline.
2562 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2563 newline.
2564 * thread-db.c (attach_thread): Don't end warning with a newline.
2565 (thread_db_notice_clone): Likewise.
2566 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2567 newline.
2568 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2569 end warning with a newline.
2570
2571 2019-06-04 Pedro Alves <palves@redhat.com>
2572
2573 * server.c (captured_main): Use make_unique_xstrdup.
2574
2575 2019-06-02 Tom Tromey <tom@tromey.com>
2576
2577 * gdbreplay.c (fromhex): Remove.
2578 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2579
2580 2019-05-29 Tom Tromey <tromey@adacore.com>
2581
2582 * configure: Rebuild.
2583
2584 2019-05-06 Kevin Buettner <kevinb@redhat.com>
2585
2586 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2587 sign extension code on 32-bit builds.
2588
2589 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2590
2591 * remote-utils.c:
2592 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2593
2594 2019-04-19 Tom Tromey <tom@tromey.com>
2595
2596 * server.c (struct vstop_notif): Derive from notif_event.
2597 <base>: Remove.
2598 (queue_stop_reply): Update.
2599 (remove_all_on_match_ptid): Change type. Rewrite.
2600 (discard_queued_stop_replies): Rewrite.
2601 (in_queued_stop_replies_ptid): Change type.
2602 (in_queued_stop_replies): Rewrite.
2603 (notif_stop): Update.
2604 (queue_stop_reply_callback): Update.
2605 (captured_main): Don't call initialize_notif.
2606 (push_stop_notification): Update.
2607 * notif.c (notif_write_event, handle_notif_ack)
2608 (notif_event_enque, notif_push): Update.
2609 (notif_event_xfree, initialize_notif): Remove.
2610 * notif.h (struct notif_event): Include <list>, not
2611 "common/queue.h".
2612 (struct notif_server) <queue>: Now a std::list.
2613 (notif_event_p): Remove typedef.
2614 (initialize_notif): Don't declare.
2615 (struct notif_event): Add virtual destructor.
2616
2617 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2618
2619 * ax.c (ax_vdebug): Call debug_printf.
2620 * debug.c (debug_write): New function.
2621 * debug.h (debug_write): New declaration.
2622 * linux-low.c (sigchld_handler): Call debug_write.
2623
2624 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2625
2626 * debug.c (debug_set_output): New function.
2627 (debug_vprintf): Send output to debug_file.
2628 (debug_flush): Likewise.
2629 * debug.h (debug_set_output): New declaration.
2630 * server.c (handle_monitor_command): Add debug-file option.
2631 (captured_main): Likewise.
2632
2633 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2634
2635 * debug.c (remote_debug): Add definition.
2636 * debug.h (remote_debug): Add declaration.
2637 * hostio.c (remote_debug): Remove declaration.
2638 * remote-utils.c (struct ui_file): Likewise.
2639 (remote_debug): Likewise.
2640 * remote-utils.h (remote_debug): Likewise,
2641 * server.c (remote_debug): Remove definition.
2642
2643 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2644
2645 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2646 when using a 64-bit gdbserver.
2647
2648 2019-04-09 Tom Tromey <tromey@adacore.com>
2649
2650 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2651
2652 2019-04-08 Tom Tromey <tom@tromey.com>
2653
2654 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2655 throw.
2656 (linux_resume_one_lwp): Likewise.
2657
2658 2019-04-08 Tom Tromey <tom@tromey.com>
2659
2660 * gdbreplay.c: Update.
2661 * linux-low.c: Update.
2662 * server.c: Update.
2663
2664 2019-04-08 Tom Tromey <tom@tromey.com>
2665
2666 * server.c: Use C++ exception handling.
2667 * linux-low.c: Use C++ exception handling.
2668 * gdbreplay.c: Use C++ exception handling.
2669
2670 2019-04-08 Tom Tromey <tom@tromey.com>
2671
2672 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2673 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2674 (captured_main, main): Update.
2675 * gdbreplay.c (main): Update.
2676
2677 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2678
2679 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2680 value in argument pointer, return 1 if the entry is found and 0
2681 otherwise. Move comment.
2682 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2683 * linux-low.h (linux_get_auxv): Declare.
2684 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2685
2686 2019-04-05 Tom Tromey <tromey@adacore.com>
2687
2688 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2689 variables.
2690
2691 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2692
2693 * linux-low.c (AT_HWCAP2): Add define if not already included.
2694
2695 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2696
2697 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2698 (aarch64_arch_setup): Call linux_get_hwcap.
2699 * linux-arm-low.c (arm_get_hwcap): Remove function.
2700 (arm_read_description): Call linux_get_hwcap.
2701 * linux-low.c (linux_get_auxv): New function.
2702 (linux_get_hwcap): Likewise.
2703 (linux_get_hwcap2): Likewise.
2704 * linux-low.h (linux_get_hwcap): New declaration.
2705 (linux_get_hwcap2): Likewise.
2706 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2707 (ppc_arch_setup): Call linux_get_hwcap.
2708 * linux-s390-low.c (s390_get_hwcap): Remove function.
2709 (s390_arch_setup): Call linux_get_hwcap.
2710
2711 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2712 Jiong Wang <jiong.wang@arm.com>
2713
2714 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2715 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2716 to fail.
2717 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2718
2719 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2720 Jiong Wang <jiong.wang@arm.com>
2721
2722 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2723 (aarch64_get_hwcap): New function.
2724 (aarch64_arch_setup): Read APIA hwcap.
2725
2726 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2727 Jiong Wang <jiong.wang@arm.com>
2728
2729 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2730 (initialize_low_tracepoint): Likewise.
2731 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2732 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2733 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2734 (aarch64_linux_read_description): Likewise.
2735 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2736
2737 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2738
2739 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2740 i386_create_target_description for 'segments' parameter.
2741 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2742 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2743 * win32-i386-low.c (i386_arch_setup): Likewise.
2744
2745 2019-03-12 Tom Tromey <tromey@adacore.com>
2746
2747 * linux-low.c (iterate_over_lwps): Update.
2748
2749 2019-03-06 Tom Tromey <tom@tromey.com>
2750
2751 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2752 (captured_main): Use SCOPE_EXIT.
2753
2754 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2755
2756 * configure.srv: Use '$enable_unittest' instead of '$development'
2757 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2758 case.
2759
2760 2019-02-27 Tom Tromey <tromey@adacore.com>
2761
2762 * gdbreplay.c (logchar): Handle \r\n.
2763
2764 2019-02-07 Alan Hayward <alan.hayward@arm.com>
2765
2766 * linux-low.c (linux_attach): Add process before lwp.
2767 * server.c (attach_inferior): Check if already attached.
2768
2769 2019-02-07 Tom Tromey <tom@tromey.com>
2770
2771 * x86-tdesc.h: Rename include guard.
2772 * x86-low.h: Add include guard.
2773 * wincecompat.h: Rename include guard.
2774 * win32-low.h: Add include guard.
2775 * utils.h: Rename include guard.
2776 * tracepoint.h: Rename include guard.
2777 * tdesc.h: Rename include guard.
2778 * target.h: Rename include guard.
2779 * server.h: Rename include guard.
2780 * remote-utils.h: Rename include guard.
2781 * regcache.h: Rename include guard.
2782 * nto-low.h: Rename include guard.
2783 * notif.h: Add include guard.
2784 * mem-break.h: Rename include guard.
2785 * lynx-low.h: Add include guard.
2786 * linux-x86-tdesc.h: Add include guard.
2787 * linux-s390-tdesc.h: Add include guard.
2788 * linux-ppc-tdesc-init.h: Add include guard.
2789 * linux-low.h: Add include guard.
2790 * linux-aarch64-tdesc.h: Add include guard.
2791 * linux-aarch32-low.h: Add include guard.
2792 * inferiors.h: Rename include guard.
2793 * i387-fp.h: Rename include guard.
2794 * hostio.h: Rename include guard.
2795 * gdbthread.h: Rename include guard.
2796 * gdb_proc_service.h: Rename include guard.
2797 * event-loop.h: Rename include guard.
2798 * dll.h: Rename include guard.
2799 * debug.h: Rename include guard.
2800 * ax.h: Rename include guard.
2801
2802 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2803
2804 PR gdb/23985
2805 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2806 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2807
2808 2019-01-25 Tom Tromey <tom@tromey.com>
2809
2810 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2811
2812 2019-01-25 Tom Tromey <tom@tromey.com>
2813
2814 * win32-low.c: Fix common/ includes.
2815 * win32-i386-low.c: Fix common/ includes.
2816 * tracepoint.c: Fix common/ includes.
2817 * thread-db.c: Fix common/ includes.
2818 * target.h: Fix common/ includes.
2819 * symbol.c: Fix common/ includes.
2820 * spu-low.c: Fix common/ includes.
2821 * server.h: Fix common/ includes.
2822 * server.c: Fix common/ includes.
2823 * remote-utils.c: Fix common/ includes.
2824 * regcache.h: Fix common/ includes.
2825 * regcache.c: Fix common/ includes.
2826 * nto-x86-low.c: Fix common/ includes.
2827 * notif.h: Fix common/ includes.
2828 * mem-break.h: Fix common/ includes.
2829 * lynx-low.c: Fix common/ includes.
2830 * lynx-i386-low.c: Fix common/ includes.
2831 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2832 * linux-x86-low.c: Fix common/ includes.
2833 * linux-low.c: Fix common/ includes.
2834 * inferiors.h: Fix common/ includes.
2835 * i387-fp.c: Fix common/ includes.
2836 * hostio.c: Fix common/ includes.
2837 * hostio-errno.c: Fix common/ includes.
2838 * gdbthread.h: Fix common/ includes.
2839 * gdbreplay.c: Fix common/ includes.
2840 * fork-child.c: Fix common/ includes.
2841 * event-loop.c: Fix common/ includes.
2842 * ax.c:
2843 (enum gdb_agent_op): Fix common/ includes.
2844
2845 2019-01-21 Tom Tromey <tom@tromey.com>
2846
2847 * tracepoint.c: Fix includes.
2848 * remote-utils.c: Fix includes.
2849 * linux-x86-low.c: Fix includes.
2850
2851 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2852
2853 * gdbreplay.c (gdbreplay_version): Update copyright year in
2854 version message.
2855 * server.c (gdbserver_version): Likewise.
2856
2857 2018-12-05 Alan Hayward <alan.hayward@arm.com>
2858
2859 * linux-low.c (add_lwp): Switch ordering.
2860
2861 2018-11-29 Tom Tromey <tom@tromey.com>
2862
2863 * win32-low.c (win32_join): Take pid, not process.
2864 * target.h (struct target_ops) <join>: Change argument type.
2865 (join_inferior): Change argument name.
2866 * spu-low.c (spu_join): Take pid, not process.
2867 * server.c (handle_detach): Preserve pid before destroying
2868 process.
2869 * lynx-low.c (lynx_join): Take pid, not process.
2870 * linux-low.c (linux_join): Take pid, not process.
2871
2872 2018-11-23 Alan Hayward <alan.hayward@arm.com>
2873
2874 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2875 (aarch64_cannot_fetch_register): Likewise.
2876 (struct linux_target_ops): Update references.
2877
2878 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2879
2880 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2881
2882 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2883
2884 * configure.srv (ipa_ppc_linux_regobj): Add
2885 powerpc-isa207-htm-vsx32l-ipa.o and
2886 powerpc-isa207-htm-vsx64l-ipa.o.
2887 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2888 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2889 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2890 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2891 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2892 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2893 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2894 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2895 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2896 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2897 (init_registers_powerpc_isa207_htm_vsx32l)
2898 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2899 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2900 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2901 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2902 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2903 (ppc_store_tm_ctarregset): New functions.
2904 (ppc_regsets): Add entries for HTM regsets.
2905 (ppc_arch_setup): Set htm in features struct when needed. Set
2906 sizes for the HTM regsets.
2907 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2908 (initialize_low_arch): Call
2909 init_registers_powerpc_isa207_htm_vsx32l and
2910 init_registers_powerpc_isa207_htm_vsx64l.
2911 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2912 PPC_TDESC_ISA207_HTM_VSX.
2913 (initialize_low_tracepoint): Call
2914 init_registers_powerpc_isa207_htm_vsx32l and
2915 init_registers_powerpc_isa207_htm_vsx64l.
2916
2917 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2918
2919 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2920 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2921 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2922 (ppc_store_pmuregset): New functions.
2923 (ppc_regsets): Add entries for ebb and pmu regsets.
2924 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2925 pmu regsets are available. Set sizes for these regsets.
2926
2927 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2928
2929 * configure.srv (ipa_ppc_linux_regobj): Add
2930 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2931 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2932 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2933 rs6000/powerpc-isa207-vsx32l.xml, and
2934 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2935 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2936 <PPC_TDESC_ISA207_VSX>: New enum value.
2937 (init_registers_powerpc_isa207_vsx32l): Declare.
2938 (init_registers_powerpc_isa207_vsx64l): Declare.
2939 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2940 (ppc_store_tarregset): New function.
2941 (ppc_regsets): Add entry for the TAR regset.
2942 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2943 size for the TAR regsets.
2944 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2945 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2946 and init_registers_powerpc_isa207_vsx64l.
2947 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2948 (initialize_low_tracepoint): Call
2949 init_registers_powerpc_isa207_vsx32l and
2950 init_registers_powerpc_isa207_vsx64l.
2951
2952 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2953 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2954
2955 * configure.srv (ipa_ppc_linux_regobj): Add
2956 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2957 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2958 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2959 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2960 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2961 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2962 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2963 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2964 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2965 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2966 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2967 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2968 (ppc_hwcap): Add comment.
2969 (ppc_hwcap2): New global.
2970 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2971 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2972 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2973 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2974 when needed. Set sizes for the the DSCR and PPR regsets.
2975 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2976 (initialize_low_arch): Call
2977 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2978 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2979 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2980 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2981 (initialize_low_tracepoint): Call
2982 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2983 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2984
2985 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2986
2987 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2988
2989 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2990 Simon Marchi <simark@simark.ca>
2991
2992 * acinclude.m4: Include "../selftest.m4".
2993 * configure: Regenerate.
2994 * configure.ac: Use "GDB_AC_SELFTEST".
2995 * configure.srv: Use "$enable_unittests" instead of
2996 "$development" when checking whether unit tests have been
2997 enabled.
2998 * server.c (captured_main): Update message informing that
2999 selftests have been disabled.
3000
3001 2018-10-04 Tom Tromey <tom@tromey.com>
3002
3003 * configure: Rebuild.
3004
3005 2018-10-04 Tom Tromey <tom@tromey.com>
3006
3007 * server.c (handle_status): Rename inner "thread".
3008 (process_serial_event): Declare "res" in 'm' case.
3009 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
3010 (iterate_over_lwps): Rename inner "thread".
3011 (linux_qxfer_libraries_svr4): Rename inner "len".
3012 * gdbthread.h (find_thread_in_random): Rename inner "thread".
3013
3014 2018-10-01 Gary Benson <gbenson@redhat.com>
3015
3016 * gdb_proc_service.h: Moved common code to
3017 common/gdb_proc_service.h.
3018
3019 2018-10-01 Gary Benson <gbenson@redhat.com>
3020
3021 * gdb_proc_service.h: Synchronize comments and whitespace with
3022 GDB's version of this file.
3023
3024 2018-09-25 Tom Tromey <tom@tromey.com>
3025
3026 * configure: Rebuild.
3027 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
3028
3029 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3030
3031 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
3032 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
3033 ($(IPA_LIB)): Sort IPA_OBJS.
3034
3035 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3036
3037 * Makefile.in: Remove references to $(ADD_DEPS).
3038
3039 2018-09-16 Tom Tromey <tom@tromey.com>
3040
3041 * remote-utils.c (remote_open): Use GNU style for metasyntactic
3042 variables.
3043 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
3044 variables.
3045
3046 2018-09-05 Tom Tromey <tom@tromey.com>
3047
3048 * configure: Rebuild.
3049
3050 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3051
3052 PR build/23399
3053 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
3054
3055 2018-08-27 Tom Tromey <tom@tromey.com>
3056
3057 PR build/23087:
3058 * configure: Rebuild.
3059
3060 2018-08-27 Tom Tromey <tom@tromey.com>
3061
3062 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
3063 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
3064 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
3065 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
3066 (s390x_emit_stack_adjust): Add casts to unsigned char.
3067
3068 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
3069
3070 PR gdb/23374
3071 PR gdb/23375
3072 * server.h (struct client_state) <disable_randomization>:
3073 Initialize to 1.
3074
3075 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3076
3077 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
3078 variable.
3079 (mips_supply_ptrace_register): Likewise.
3080
3081 2018-07-22 Tom Tromey <tom@tromey.com>
3082
3083 * configure: Rebuild.
3084
3085 2018-07-22 Tom Tromey <tom@tromey.com>
3086
3087 * win32-low.c (win32_create_inferior): Remove unused variables.
3088 * gdbreplay.c (remote_open): Remove unused variable.
3089 * remote-utils.c (remote_prepare): Remove unused variable.
3090 * x86-tdesc.h (X86_TDESC_H): Define.
3091 (amd64_expedite_regs): Define conditionally.
3092 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
3093 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
3094 * remote-utils.c (readchar): Remove unused variable.
3095
3096 2018-07-13 Pedro Alves <palves@redhat.com>
3097
3098 * linux-low.c (linux_kill): Change parameter to process_info
3099 pointer instead of pid. Adjust.
3100 * lynx-low.c (lynx_kill): Likewise.
3101 * nto-low.c (nto_kill): Likewise.
3102 * spu-low.c (spu_kill): Likewise.
3103 * win32-low.c (win32_kill): Likewise.
3104 * server.c (handle_v_kill, kill_inferior_callback)
3105 (detach_or_kill_for_exit): Adjust.
3106 * target.c (kill_inferior): Change parameter to process_info
3107 pointer instead of pid. Adjust.
3108 * target.h (struct target_ops) <kill>: Change parameter to
3109 process_info pointer instead of pid. Adjust all implementations
3110 and callers.
3111 (kill_inferior): Likewise.
3112
3113 2018-07-13 Pedro Alves <palves@redhat.com>
3114
3115 * linux-low.c (linux_detach, linux_join): Change parameter to
3116 process_info pointer instead of pid. Adjust.
3117 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3118 * nto-low.c (nto_detach): Likewise.
3119 * spu-low.c (spu_detach, spu_join): Likewise.
3120 * win32-low.c (win32_detach, win32_join): Likewise.
3121 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3122 * target.h (struct target_ops) <detach, join>: Change parameter to
3123 process_info pointer instead of pid. Adjust all implementations
3124 and callers.
3125 (detach_inferior, join_inferior): Rename 'pid' parameter to
3126 'proc'.
3127
3128 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3129 Jan Kratochvil <jan.kratochvil@redhat.com>
3130 Paul Fertser <fercerpav@gmail.com>
3131 Tsutomu Seki <sekiriki@gmail.com>
3132
3133 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3134 (OBS): Add 'common/netstuff.o'.
3135 (GDBREPLAY_OBS): Likewise.
3136 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3137 (remote_open): Implement support for IPv6
3138 connections.
3139 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3140 and 'wspiapi.h'.
3141 (handle_accept_event): Accept connections from IPv6 sources.
3142 (remote_prepare): Handle IPv6-style hostnames; implement
3143 support for IPv6 connections.
3144 (remote_open): Implement support for printing connections from
3145 IPv6 sources.
3146
3147 2018-07-11 Pedro Alves <palves@redhat.com>
3148
3149 PR gdb/23377
3150 * mem-break.c (any_persistent_commands): Add process_info
3151 parameter and use it instead of relying on the current process.
3152 Change return type to bool.
3153 * mem-break.h (any_persistent_commands): Add process_info
3154 parameter and change return type to bool.
3155 * server.c (handle_detach): Remove require_running_or_return call.
3156 Look up the process_info for the process we're about to detach.
3157 If not found, return back error to GDB. Adjust
3158 any_persistent_commands call to pass down a process pointer.
3159
3160 2018-07-11 Pedro Alves <palves@redhat.com>
3161
3162 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3163 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3164 instead of collect_register_by_name.
3165 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3166 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3167
3168 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3169 Pedro Alves <palves@redhat.com>
3170
3171 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3172
3173 2018-07-03 Tom Tromey <tom@tromey.com>
3174
3175 * linux-low.c: Update.
3176 * lynx-low.c: Update.
3177 * mem-break.c: Update.
3178 * nto-low.c: Update.
3179 * remote-utils.c: Update.
3180 * server.c: Update.
3181 * spu-low.c: Update.
3182 * target.c: Update.
3183 * win32-low.c: Update.
3184
3185 2018-07-03 Tom Tromey <tom@tromey.com>
3186
3187 * server.c: Update.
3188
3189 2018-07-03 Tom Tromey <tom@tromey.com>
3190
3191 * linux-low.c: Update.
3192
3193 2018-07-03 Tom Tromey <tom@tromey.com>
3194
3195 * target.c: Update.
3196
3197 2018-07-03 Tom Tromey <tom@tromey.com>
3198
3199 * linux-low.c: Update.
3200 * linux-mips-low.c: Update.
3201 * lynx-low.c: Update.
3202 * nto-low.c: Update.
3203 * remote-utils.c: Update.
3204 * server.c: Update.
3205 * spu-low.c: Update.
3206 * target.c: Update.
3207 * thread-db.c: Update.
3208
3209 2018-07-03 Tom Tromey <tom@tromey.com>
3210
3211 * linux-low.c: Update.
3212 * linux-mips-low.c: Update.
3213 * lynx-low.c: Update.
3214 * mem-break.c: Update.
3215 * nto-low.c: Update.
3216 * remote-utils.c: Update.
3217 * server.c: Update.
3218 * spu-low.c: Update.
3219 * target.c: Update.
3220 * tracepoint.c: Update.
3221
3222 2018-07-03 Tom Tromey <tom@tromey.com>
3223
3224 * linux-low.c: Update.
3225 * linux-ppc-low.c: Update.
3226 * linux-x86-low.c: Update.
3227 * proc-service.c: Update.
3228 * server.c: Update.
3229 * spu-low.c: Update.
3230 * thread-db.c: Update.
3231 * win32-low.c: Update.
3232
3233 2018-07-03 Tom Tromey <tom@tromey.com>
3234
3235 * linux-low.c: Update.
3236 * lynx-low.c: Update.
3237 * nto-low.c: Update.
3238 * remote-utils.c: Update.
3239 * spu-low.c: Update.
3240 * thread-db.c: Update.
3241 * win32-low.c: Update.
3242
3243 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3244
3245 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3246 parameter in call to 'amd64_create_target_description'.
3247
3248 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3249
3250 * x86-tdesc.h: Remove executable permission flag.
3251
3252 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3253
3254 * configure.ac: Remove AC_PREREQ, add missing quoting.
3255 * configure: Re-generate.
3256 * config.in: Re-generate.
3257 * aclocal.m4: Re-generate.
3258
3259 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3260
3261 * tracepoint.h (current_traceframe): Remove declaration.
3262
3263 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3264
3265 * linux-aarch64-low.c (is_sve_tdesc): New function.
3266 (aarch64_sve_regs_copy_to_regcache): Likewise.
3267 (aarch64_sve_regs_copy_from_regcache): Likewise.
3268 (aarch64_regs_info): Add SVE checks.
3269 (initialize_low_arch): Initialize SVE.
3270
3271 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3272
3273 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3274
3275 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3276
3277 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3278 (initialize_low_tracepoint): Likewise
3279 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3280 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3281 param.
3282 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3283 checks.
3284 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3285
3286 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3287
3288 * server.h (PBUFSIZ): Increase size
3289
3290 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3291
3292 * regcache.c (regcache::raw_compare): New function.
3293 * regcache.h (regcache::raw_compare): New declaration.
3294
3295 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3296
3297 * regcache.c (new_register_cache): Use new.
3298 (free_register_cache): Use delete.
3299 (register_data): Use const.
3300 (supply_register): Move body inside regcache.
3301 (regcache::raw_supply): New override function.
3302 (collect_register): Move body inside regcache.
3303 (regcache::raw_collect): New override function.
3304 (regcache::get_register_status): New override function.
3305 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3306
3307 2018-06-09 Tom Tromey <tom@tromey.com>
3308
3309 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3310 declare queue.
3311 (event_queue): Use std::queue.
3312 (gdb_event_xfree): Remove.
3313 (initialize_event_loop, process_event, wait_for_event): Update.
3314
3315 2018-06-08 Stan Cox <scox@redhat.com>
3316
3317 * win32-low.c (win32_create_inferior): last_ptid and last_status
3318 moved to client_state.
3319
3320 2018-06-08 Pedro Alves <palves@redhat.com>
3321
3322 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3323 common/common-exceptions.o, common/common-utils.o,
3324 common/errors.o, common/print-utils.o and utils.o.
3325 * gdbreplay.c: Include "common-defs.h" instead of the two
3326 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3327 string.h or alloca.h.
3328 (perror_with_name): Delete.
3329 (remote_open): Use xstrdup instead of strdup.
3330 (main): Rename to ...
3331 (captured_main): ... this.
3332 (main): New.
3333
3334 2018-06-08 Tom Tromey <tom@tromey.com>
3335
3336 * linux-low.c (linux_low_read_btrace): Update.
3337
3338 2018-06-04 Stan Cox <scox@redhat.com>
3339
3340 * server.h (struct client_state): New.
3341 * server.c (cont_thread, general_thread, multi_process)
3342 (report_fork_events, report_vfork_events, report_exec_events)
3343 (report_thread_events, swbreak_feature, hwbreak_feature)
3344 (vCont_supported, disable_randomization, pass_signals)
3345 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3346 Moved to client_state.
3347 * remote-utils.c (remote_debug, noack_mode)
3348 (transport_is_reliable): Moved to client_state.
3349 * tracepoint.c (current_traceframe): Moved to client_state.
3350
3351 Update all callers.
3352 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3353 linux-low.c, remote-utils.h, target.c: Use client_state.
3354
3355 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3356
3357 * configure.srv: Add new c/h file.
3358
3359 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3360
3361 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3362 null VQ.
3363
3364 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3365
3366 * gdb.arch/mips-fpregset-core.exp: New test.
3367 * gdb.arch/mips-fpregset-core.c: New test source.
3368
3369 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3370
3371 PR server/23198
3372 * hostio.c (require_int): Do not report overflow for integers
3373 between 0xfffffff and 0x7fffffff.
3374
3375 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3376
3377 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3378 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3379 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3380 functions.
3381 (the_low_target): Wire them.
3382
3383 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3384
3385 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3386 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3387 mode. Call collect_register_by_name with vscr using
3388 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3389 (ppc_store_vrregset): Add and set vscr_offset variable as in
3390 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3391 vscr_offset.
3392
3393 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3394
3395 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3396 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3397 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3398
3399 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3400
3401 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3402 (ppc_store_vsxregset): Likewise.
3403 (ppc_fill_vrregset): Likewise.
3404 (ppc_store_vrregset): Likewise.
3405 (ppc_fill_evrregset): Likewise.
3406 (ppc_store_evrregset): Likewise.
3407 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3408 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3409 needed.
3410
3411 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3412
3413 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3414 wordsize of the inferior. Call ppc_linux_target_wordsize.
3415
3416 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3417
3418 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3419 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3420 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3421 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3422 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3423 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3424 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3425 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3426 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3427 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3428 (tdesc_powerpc_e500l): Remove.
3429 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3430 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3431 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3432 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3433 linux-ppc-tdesc.h.
3434 (ppc_arch_setup): Remove target description matching code. Fill a
3435 ppc_linux_features struct and call ppc_linux_match_description
3436 with it.
3437
3438 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3439
3440 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3441 width of the requested register exceeds the width of the
3442 `ptrace' data type.
3443 (mips_cannot_store_register): Likewise.
3444
3445 2018-05-21 Maciej W. Rozycki <macro@mips.com>
3446
3447 * linux-mips-low.c (mips_fetch_register): New function. Update
3448 preceding comment.
3449 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3450 (the_low_target): Wire `mips_fetch_register'.
3451
3452 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3453
3454 * lynx-i386-low.c (LYNXOS_178): New macro.
3455 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3456 the layout on LynxOS-178.
3457 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3458 handle floating point registers that are not supported by
3459 LynxOS-178.
3460
3461 2018-05-10 Tom Tromey <tom@tromey.com>
3462
3463 * configure: Rebuild.
3464
3465 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3466
3467 PR server/23158:
3468 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3469 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3470 Use it to set the expedite_regs field in the given tdesc.
3471 * x86-tdesc.h: New file.
3472 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3473 Adjust following the addition of the new expedite_regs parameter
3474 to init_target_desc.
3475 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3476 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3477 (i386_linux_read_description, amd64_linux_read_description):
3478 Adjust following the addition of the new expedite_regs parameter
3479 to init_target_desc.
3480 * lynx-i386-low.c: #include "x86-tdesc.h".
3481 (lynx_i386_arch_setup): Adjust following the addition of the new
3482 expedite_regs parameter to init_target_desc.
3483 * nto-x86-low.c: #include "x86-tdesc.h".
3484 (nto_x86_arch_setup): Adjust following the addition of the new
3485 expedite_regs parameter to init_target_desc.
3486 * win32-i386-low.c: #include "x86-tdesc.h".
3487 (i386_arch_setup): Adjust following the addition of the new
3488 expedite_regs parameter to init_target_desc.
3489
3490 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3491
3492 PR server/23158:
3493 * win32-low.c (win32_create_inferior): Add call to my_wait
3494 setting last_status global.
3495
3496 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3497
3498 PR server/23158:
3499 * win32-low.c (create_process): Only call gdb_tilde_expand if
3500 inferior_cwd is not NULL.
3501
3502 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3503
3504 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3505 registers to the cache if their values have changed.
3506 (i387_xsave_to_cache): Provide default values for x87 control
3507 registers when these features are available, but disabled.
3508 * regcache.c (supply_register_by_name_zeroed): New function.
3509 * regcache.h (supply_register_by_name_zeroed): Declare new
3510 function.
3511
3512 2018-05-07 Tom Tromey <tom@tromey.com>
3513
3514 * configure: Rebuild.
3515
3516 2018-05-04 Tom Tromey <tom@tromey.com>
3517
3518 * configure: Rebuild.
3519
3520 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3521 Pedro Alves <palves@redhat.com>
3522
3523 * linux-aarch64-low.c (aarch64_stopped_data_address):
3524 Likewise.
3525
3526 2018-04-27 Tom Tromey <tom@tromey.com>
3527
3528 * configure: Rebuild.
3529
3530 2018-04-23 Tom Tromey <tom@tromey.com>
3531
3532 * configure: Rebuild.
3533
3534 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3535
3536 * Makefile.in (depcomp): Add "..".
3537 (all_deps_files): New and use it.
3538
3539 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3540
3541 * configure.srv (aarch64*-*-linux*): Don't include xml.
3542 (i[34567]86-*-cygwin*): Likewise.
3543 (i[34567]86-*-linux*): Likewise.
3544 (i[34567]86-*-lynxos*): Likewise.
3545 (i[34567]86-*-mingw32ce*): Likewise.
3546 (i[34567]86-*-mingw*): Likewise.
3547 (i[34567]86-*-nto*): Likewise.
3548 (tic6x-*-uclinux): Likewise.
3549 (x86_64-*-linux*): Likewise.
3550 (x86_64-*-mingw*): Likewise.
3551 (x86_64-*-cygwin*): Likewise.
3552
3553 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3554
3555 * tdesc.c: Remove xml parameter.
3556
3557 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3558
3559 * server.c (get_features_xml): Remove cast.
3560 * tdesc.c (void target_desc::accept): Fill in function.
3561 (tdesc_get_features_xml): Remove old xml creation.
3562 (print_xml_feature::visit_pre): Add xml vistor.
3563 * tdesc.h (struct target_desc): Make xmltarget mutable.
3564 (tdesc_get_features_xml): Remove declaration.
3565
3566 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3567
3568 * tdesc.c (tdesc_architecture_name): Add new function.
3569 (tdesc_osabi_name): Likewise.
3570 (tdesc_get_features_xml): Use new functions.
3571
3572 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3573
3574 * tdesc.c (tdesc_create_flags): Remove.
3575 (tdesc_add_flag): Likewise.
3576 (tdesc_named_type): Likewise.
3577 (tdesc_create_union): Likewise.
3578 (tdesc_create_struct): Likewise.
3579 (tdesc_create_vector): Likewise.
3580 (tdesc_add_bitfield): Likewise.
3581 (tdesc_add_field): Likewise.
3582 (tdesc_set_struct_size): Likewise.
3583
3584 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3585
3586 * tdesc.c (~target_desc): Remove implictly deleted items.
3587 (init_target_desc): Iterate all features.
3588 (tdesc_get_features_xml): Use vector.
3589 (tdesc_create_feature): Create feature.
3590 * tdesc.h (tdesc_feature) Remove
3591 (target_desc): Add features.
3592
3593 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3594
3595 * Makefile.in: Add common/tdesc.c
3596 * tdesc.c (init_target_desc): init all reg_defs from register
3597 vector.
3598 (tdesc_create_reg): Create tdesc_reg.
3599 * tdesc.h (tdesc_feature): Add register vector.
3600
3601 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3602
3603 * tdesc.h (struct target_desc) <features>: Change type to
3604 std::vector<std::string>.
3605 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3606 changes.
3607 (tdesc_get_features_xml): Likewise.
3608 (tdesc_create_feature): Likewise.
3609
3610 2018-03-26 Alan Hayward <alan.hayward@arm.com>
3611
3612 * regcache.c (find_register_by_number): Return a ref.
3613 (find_regno): Use references.
3614 (register_size): Likewise.
3615 (register_data): Likewise.
3616 * tdesc.c (target_desc::~target_desc): Remove free calls.
3617 (target_desc::operator==): Use std::vector compare.
3618 (init_target_desc): Use reference.
3619 (tdesc_create_reg): Use reg constructors.
3620 * tdesc.h (struct target_desc): Replace pointer with object.
3621
3622 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3623
3624 * regcache.c (find_register_by_number): Make static.
3625 (find_regno): Use find_register_by_number
3626 * regcache.h (struct reg): Remove declaration.
3627
3628 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3629
3630 * tdesc.c (target_desc::~target_desc): Move to here.
3631 (target_desc::operator==): Likewise.
3632 * tdesc.h (target_desc::~target_desc): Move from here.
3633 (target_desc::operator==): Likewise.
3634
3635 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3636
3637 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3638
3639 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3640
3641 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3642 S390_TDESC_GS.
3643 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3644 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3645 and init_registers_s390_gs_linux64.
3646
3647 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3648
3649 * linux-s390-low.c (s390_fill_gs): Remove function.
3650 (s390_fill_gsbc): Remove function.
3651 (s390_regsets): Set fill functions for the guarded storage regsets
3652 to NULL.
3653
3654 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3655
3656 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3657 the word size. Add comment.
3658 (s390_get_wordsize): New function.
3659 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3660 pswm with it. Instead, use s390_get_wordsize to determine the
3661 word size first and derive the correct tdesc from that directly.
3662
3663 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3664
3665 * Makefile.in: Include silent-rules.mk.
3666 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3667 (COMPILE): Add ECHO_CXX.
3668 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3669 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3670 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3671 (version-generated.c): Add ECHO_GEN.
3672 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3673 (IPAGENT_COMPILE): Add ECHO_CXX.
3674 (%-generated.c): Add ECHO_REGDAT.
3675
3676 2018-03-14 Tom Tromey <tom@tromey.com>
3677
3678 PR cli/14977:
3679 * ax.c (ax_printf): Special case for NULL.
3680
3681 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3682
3683 * linux-low.c (linux_qxfer_libraries_svr4): Use
3684 xml_escape_text_append.
3685
3686 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3687
3688 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3689
3690 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3691
3692 * server.c (handle_general_set): Remove unnecessary xstrdup.
3693
3694 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * server.c (parse_debug_format_options): Adjust to
3697 delim_string_to_char_ptr_vec changes.
3698 * thread-db.c (thread_db_load_search): Adjust to
3699 dirnames_to_char_ptr_vec changes.
3700
3701 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3702
3703 * target.h (target_enable_btrace, target_disable_btrace)
3704 (target_read_btrace, target_read_btrace_conf): Turn macro into
3705 inline function. Throw error if target method is not defined.
3706 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3707 check for btrace target method. Be prepared to handle exceptions
3708 from btrace target methods.
3709
3710 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3711
3712 * server.c (captured_main): Change order of error message printed
3713 when the current working directory cannot be found.
3714
3715 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3716
3717 * server.c: Include "filenames.h" and "pathstuff.h".
3718 (program_name): Delete variable.
3719 (program_path): New anonymous class.
3720 (get_exec_wrapper): Use "program_path" instead of
3721 "program_name".
3722 (handle_v_run): Likewise.
3723 (captured_main): Likewise.
3724 (process_serial_event): Likewise.
3725
3726 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3727
3728 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3729 (OBJS): Add "pathstuff.o".
3730 * server.c (current_directory): New global variable.
3731 (captured_main): Initialize "current_directory".
3732
3733 2018-02-26 Alan Hayward <alan.hayward@arm.com>
3734
3735 * tdesc.c: Use common/tdesc.h.
3736 * tdesc.h: Likewise.
3737
3738 2018-02-20 Alan Hayward <alan.hayward@arm.com>
3739 Simon Marchi <simon.marchi@ericsson.com>
3740
3741 * Makefile.in: Switch order of make rules.
3742
3743 2018-02-19 Alan Hayward <alan.hayward@arm.com>
3744
3745 * Makefile.in: Add common directory in build.
3746 * configure.ac: Add common reference.
3747 * configure: Regenerate.
3748
3749 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3750
3751 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3752 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3753 * spu-low.c (spu_target_ops): Likewise.
3754 * win32-low.c (win32_target_ops): Likewise.
3755 * server.c (supported_btrace_packets): Report packets unconditionally.
3756 * target.h (target_ops) <supports_btrace>: Remove.
3757 (target_supports_btrace): Remove.
3758
3759 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3760
3761 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3762 (handle_btrace_disable): Change return type to void. Use exceptions
3763 to report errors.
3764 (handle_btrace_general_set): Catch exception and copy message to
3765 return message.
3766
3767 2018-02-08 Tom Tromey <tom@tromey.com>
3768
3769 * linux-low.c (install_software_single_step_breakpoints): Use
3770 make_scoped_restore.
3771 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3772 (do_restore_current_thread_cleanup): Remove.
3773 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3774 declare.
3775
3776 2018-02-08 Tom Tromey <tom@tromey.com>
3777
3778 * mem-break.c (set_raw_breakpoint_at): Use
3779 gdb::unique_xmalloc_ptr.
3780
3781 2018-01-30 Pedro Alves <palves@redhat.com>
3782
3783 PR gdb/13211
3784 * target.c (target_terminal::terminal_state): Rename to ...
3785 (target_terminal::m_terminal_state): ... this.
3786
3787 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3788
3789 * linux-low.c (handle_extended_wait): Surround call to
3790 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3791
3792 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3793
3794 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3795 linux_ptrace_attach_fail_reason_string now returning an
3796 std::string.
3797 (linux_attach): Likewise.
3798 * thread-db.c (attach_thread): Likewise.
3799
3800 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3801
3802 PR gdb/21559
3803 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3804 checking for fs_base/gs_base fields in struct user_regs_struct.
3805 * configure: Regenerate.
3806
3807 2018-01-16 Yao Qi <yao.qi@linaro.org>
3808
3809 PR gdb/18749
3810 * linux-low.c (fetch_register): Call supply_register instead of
3811 error.
3812
3813 2018-01-08 Yao Qi <yao.qi@linaro.org>
3814 Simon Marchi <simon.marchi@ericsson.com>
3815
3816 * Makefile.in (OBS): Remove selftest.o.
3817 * configure.ac: Set srv_selftest_objs if $development is true.
3818 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3819 * configure: Re-generated.
3820 * server.c (captured_main): Wrap variable selftest_filter with
3821 GDB_SELF_TEST.
3822
3823 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3824
3825 * server.c (parse_debug_format_options): Return std::string.
3826 (handle_monitor_command, captured_main): Adjust.
3827
3828 2018-01-05 Pedro Alves <palves@redhat.com>
3829
3830 PR gdb/18653
3831 * server.c (captured_main): Pass quiet=false to
3832 save_original_signals_state.
3833
3834 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3835
3836 * gdbreplay.c (gdbreplay_version): Update copyright year in
3837 version message.
3838 * server.c (gdbserver_version): Likewise.
3839
3840 2017-12-08 Tom Tromey <tom@tromey.com>
3841
3842 * ax.c (ax_printf): Update.
3843
3844 2017-12-07 Yao Qi <yao.qi@linaro.org>
3845
3846 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3847 aarch64_linux_read_description.
3848 * linux-amd64-ipa.c (idx2mask): New array.
3849 (get_ipa_tdesc): Move idx2mask out.
3850 (initialize_low_tracepoint): Initialize target descriptions.
3851 * linux-i386-ipa.c (idx2mask): New array.
3852 (get_ipa_tdesc): Move idx2mask out.
3853 (initialize_low_tracepoint): Initialize target descriptions.
3854
3855 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3856
3857 * tdesc.c (struct tdesc_type): Change return type.
3858 (tdesc_add_flag): Change parameter type.
3859 (tdesc_add_bitfield): Likewise.
3860 (tdesc_add_field): Likewise.
3861 (tdesc_set_struct_size): Likewise.
3862
3863 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3864
3865 * regcache.c (registers_to_string): Remove unused variable.
3866
3867 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3868
3869 * inferiors.c (for_each_inferior_with_data): Remove.
3870 * inferiors.h (for_each_inferior_with_data): Remove.
3871 * server.c (handle_qxfer_threads_worker): Change parameter type.
3872 (handle_qxfer_threads_proper): Use for_each_thread.
3873
3874 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3875
3876 * inferiors.c (for_each_inferior): Remove.
3877 (clear_inferiors): Use for_each_thread.
3878 * inferiors.h (for_each_inferior): Remove.
3879 * linux-low.c (linux_wait_for_event_filtered): Use
3880 for_each_thread.
3881 (linux_stabilize_threads): Likewise.
3882 * regcache.c (regcache_release): Likewise.
3883 * server.c (gdb_wants_all_threads_stopped): Likewise.
3884 (clear_pending_status_callback): Remove.
3885 (handle_status): Use for_each_thread.
3886 (captured_main): Likewise.
3887 * win32-low.c (child_init_thread_list): Likewise.
3888 (win32_clear_inferiors): Likewise.
3889 (fake_breakpoint_event): Likewise.
3890
3891 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3892
3893 * inferiors.h (find_inferior): Remove.
3894 * inferiors.c (find_inferior): Remove.
3895
3896 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3897
3898 * linux-low.c (resume_status_pending_p): Update comment.
3899 (need_step_over_p): Update comment.
3900
3901 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3902
3903 * linux-low.c (proceed_one_lwp): Return void, change parameter
3904 type.
3905 (unsuspend_and_proceed_one_lwp): Likewise.
3906 (proceed_all_lwps): Use for_each_thread.
3907 (unstop_all_lwps): Likewise.
3908
3909 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3910
3911 * linux-low.c (linux_resume_one_thread): Return void, take
3912 parameter directly.
3913 (linux_resume): Use for_each_thread.
3914
3915 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3916
3917 * linux-low.c (send_sigstop_callback): Return void, change
3918 parameter type. Rename to...
3919 (send_sigstop): ... this.
3920 (suspend_and_send_sigstop_callback): Return void, change parameter
3921 type. Rename to...
3922 (suspend_and_send_sigstop): ... this.
3923 (stop_all_lwps): Use for_each_thread.
3924
3925 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * linux-low.c (lwp_running): Return bool, remove unused
3928 argument.
3929 (linux_stabilize_threads): Use find_thread.
3930
3931 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3932
3933 * linux-low.c (select_singlestep_lwp_callback): Remove.
3934 (count_events_callback): Remove.
3935 (select_event_lwp_callback): Remove.
3936 (select_event_lwp): Use find_thread/for_each_thread.
3937
3938 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3939
3940 * linux-low.c (not_stopped_callback): Return bool, take filter
3941 argument directly.
3942 (linux_wait_for_event_filtered): Use find_thread.
3943 (linux_wait_1): Likewise.
3944
3945 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3946
3947 * linux-low.c (same_lwp): Remove.
3948 (find_lwp_pid): Use find_thread.
3949
3950 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3951
3952 * linux-low.c (delete_lwp_callback): Remove.
3953 (linux_mourn): Use for_each_thread.
3954
3955 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3956
3957 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3958 args parameter, don't check for pid.
3959 (linux_detach): Use for_each_thread.
3960
3961 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3962
3963 * linux-low.c (struct counter): Remove.
3964 (second_thread_of_pid_p): Remove.
3965 (last_thread_of_process_p): Use find_thread.
3966
3967 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * inferiors.c (find_inferior_in_random): Remove.
3970 * inferiors.h (find_inferior_in_random): Remove.
3971 * linux-low.c (status_pending_p_callback): Return bool, accept
3972 parameter ptid directly.
3973 (linux_wait_for_event_filtered): Use find_thread_in_random.
3974 (linux_wait_1): Likewise.
3975
3976 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3977
3978 * inferiors.c (find_inferior_id): Remove.
3979 (find_thread_ptid): Move implemention from find_inferior_id to
3980 here.
3981 * inferiors.h (find_inferior_id): Remove.
3982 * server.c (handle_status): Use find_thread_ptid.
3983 (process_serial_event): Likewise.
3984 * thread-db.c (find_one_thread): Likewise.
3985 (thread_db_thread_handle): Likewise.
3986 * win32-low.c (thread_rec): Likewise.
3987 (child_delete_thread): Likewise.
3988 (win32_thread_alive): Likewise.
3989 (get_child_debug_event): Likewise.
3990
3991 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3992
3993 * linux-mips-low.c (update_watch_registers_callback): Return
3994 void, remove pid_p parameter, don't check for pid.
3995 (mips_insert_point, mips_remove_point): Use for_each_thread.
3996
3997 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3998
3999 * lynx.low (lynx_delete_thread_callback): Remove.
4000 (lynx_mourn): Use for_each_thread.
4001
4002 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4003
4004 * regcache.c (regcache_invalidate_one): Remove.
4005 (regcache_invalidate_pid): use for_each_thread.
4006
4007 2017-11-26 Tom Tromey <tom@tromey.com>
4008
4009 * linux-low.c (linux_create_inferior): Update.
4010
4011 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
4012
4013 * spu-low.c (spu_create_inferior): Fix typo in argument name.
4014
4015 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4016
4017 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
4018 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4019 * linux-aarch64-tdesc-selftest.c: New file.
4020 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4021
4022 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4023
4024 * configure.srv: Add new file.
4025 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4026 * linux-aarch64-tdesc-selftest.c: New file.
4027 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4028
4029 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4030
4031 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
4032 * linux-aarch64-low.c (initialize_low_arch): Remove init.
4033 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
4034
4035 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4036
4037 * configure.srv: Add new files.
4038 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
4039 aarch64_linux_read_description.
4040 * linux-aarch64-low.c (aarch64_linux_read_description):
4041 Merge with aarch64_arch_setup.
4042 (aarch64_arch_setup): Call aarch64_linux_read_description.
4043 * linux-aarch64-tdesc.c: New file.
4044 * linux-aarch64-tdesc.h: New file.
4045
4046 2017-11-24 Yao Qi <yao.qi@linaro.org>
4047
4048 * configure.srv: Set $srv_regobj for tic6x-linux.
4049 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
4050 (tic6x_read_description): Move some code to tic6x_arch_setup.
4051 (tic6x_tdesc_test): New function.
4052 (initialize_low_arch): Call selftests::register_test.
4053
4054 2017-11-22 Yao Qi <yao.qi@linaro.org>
4055
4056 * remote-utils.c (prepare_resume_reply): Use memcpy.
4057
4058 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4059
4060 * linux-low.c (kill_one_lwp_callback): Return void, take
4061 argument directly, don't filter on pid.
4062 (linux_kill): Use for_each_thread.
4063
4064 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4065
4066 * linux-low.c (need_step_over_p): Return bool, remove dummy
4067 argument.
4068 (linux_resume, proceed_all_lwps): Use find_thread.
4069
4070 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4071
4072 * linux-low.c (resume_status_pending_p): Return bool, remove
4073 flag_p argument.
4074 (linux_resume): Use find_thread.
4075
4076 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4077
4078 * linux-low.c (struct thread_resume_array): Remove.
4079 (linux_set_resume_request): Return void, take arguments
4080 directly.
4081 (linux_resume): Use for_each_thread.
4082
4083 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4084
4085 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
4086 return bool, remove data argument.
4087 (linux_stabilize_threads): Use find_thread.
4088
4089 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4090
4091 * linux-low.c (unsuspend_one_lwp): Remove.
4092 (unsuspend_all_lwps): Use for_each_thread, inline code from
4093 unsuspend_one_lwp.
4094
4095 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4096
4097 * gdbthread.h (find_thread): Add overload with ptid_t filter.
4098 * linux-low.c (struct iterate_over_lwps_args): Remove.
4099 (iterate_over_lwps_filter): Remove.
4100 (iterate_over_lwps): Use find_thread.
4101
4102 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4103
4104 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4105 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4106 code from reset_lwp_ptrace_options_callback.
4107
4108 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4109
4110 * linux-arm-low.c (struct update_registers_data): Remove.
4111 (update_registers_callback): Return void, take arguments
4112 directly, don't check thread's pid.
4113 (arm_insert_point, arm_remove_point): Use for_each_thread.
4114
4115 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4116
4117 * win32-low.c (continue_one_thread): Return void, take argument
4118 directly.
4119 (child_continue): Use for_each_thread.
4120
4121 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4122
4123 * win32-i386-low.c (update_debug_registers_callback): Rename
4124 to ...
4125 (update_debug_registers): ... this, return void, remove pid_p arg.
4126 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4127
4128 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4129
4130 * inferiors.h (struct process_info): Add constructor, initialize
4131 fields..
4132 <syscalls_to_catch>: Change type to std::vector<int>.
4133 * inferiors.c (add_process): Allocate process_info with new.
4134 (remove_process): Free process_info with delete.
4135 * linux-low.c (handle_extended_wait): Adjust.
4136 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4137 * server.c (handle_general_set): Adjust.
4138
4139 2017-11-16 Pedro Alves <palves@redhat.com>
4140
4141 * remote-utils.c (remote_close): Block SIGIO signals instead of
4142 uninstalling the SIGIO handler.
4143
4144 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4145
4146 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4147
4148 2017-11-16 Yao Qi <yao.qi@linaro.org>
4149
4150 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4151 (tic6x_store_gregset): Likewise.
4152 (tic6x_usrregs_info): Move it up.
4153
4154 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4155
4156 * Makefile.in: Update arch rules.
4157 * configure.srv: Explicitly mark arch/ files.
4158
4159 2017-11-13 Andreas Schwab <schwab@suse.de>
4160
4161 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4162 function.
4163 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4164
4165 2017-11-06 Pedro Alves <palves@redhat.com>
4166
4167 * config.in, configure: Regenerate.
4168
4169 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4170
4171 * target.c (struct thread_search): Remove.
4172 (thread_search_callback): Remove.
4173 (prepare_to_access_memory): Use for_each_thread instead of
4174 find_inferior. Inline code from thread_search_callback.
4175
4176 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4177
4178 * server.c (struct visit_actioned_threads_data): Remove.
4179 (visit_actioned_threads): Change prototype to take arguments
4180 directly.
4181 (resume): Use find_thread instead of find_inferior.
4182
4183 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4184
4185 * server.c (queue_stop_reply_callback): Change prototype, return
4186 void.
4187 (find_status_pending_thread_callback): Remove.
4188 (handle_status): Replace find_inferior with find_thread and
4189 for_each_thread.
4190
4191 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4192
4193 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4194 with REGNO.
4195 (aarch64_store_gregset): Likewise.
4196 (aarch64_fill_fpregset): Likewise.
4197 (aarch64_store_fpregset): Likewise.
4198
4199 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4200
4201 * gdbthread.h (find_thread, for_each_thread): New functions.
4202 * inferiors.c (thread_of_pid): Remove.
4203 (find_any_thread_of_pid): Use find_thread.
4204 * linux-low.c (num_lwps): Use for_each_thread.
4205
4206 2017-10-17 Yao Qi <yao.qi@linaro.org>
4207
4208 * Makefile.in: Remove one rule.
4209 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4210
4211 2017-10-17 Yao Qi <yao.qi@linaro.org>
4212
4213 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4214 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4215
4216 2017-10-17 Yao Qi <yao.qi@linaro.org>
4217
4218 * configure.srv: Rename arm.o with arch/arm.o.
4219
4220 2017-10-17 Yao Qi <yao.qi@linaro.org>
4221
4222 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4223 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4224 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4225 (arch-i386.o, arch-amd64.o): Remove rules.
4226 (arch/%.o): New rule.
4227 Update POSTCOMPILE and COMPILE.pre.
4228 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4229 * configure: Re-generated.
4230 * configure.srv: Replace arch-i386.o with arch/i386.o.
4231 Replace arch-amd64.o with arch/amd64.o.
4232
4233 2017-10-16 Yao Qi <yao.qi@linaro.org>
4234
4235 * configure: Regenerated.
4236
4237 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4238
4239 * inferiors.h: (struct inferior_list): Remove.
4240 (struct inferior_list_entry); Remove.
4241 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4242 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4243 get_first_inferior): Remove.
4244 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4245 find_inferior_id, find_inferior_in_random): Change signature.
4246 * inferiors.c (all_threads): Change type to
4247 std::list<thread_info *>.
4248 (get_thread): Remove macro.
4249 (find_inferior, find_inferior_id): Change signature, implement
4250 using find_thread.
4251 (find_inferior_in_random): Change signature, implement using
4252 find_thread_in_random.
4253 (for_each_inferior, for_each_inferior_with_data): Change
4254 signature, implement using for_each_thread.
4255 (add_inferior_to_list, remove_inferior): Remove.
4256 (add_thread, get_first_thread, thread_of_pid,
4257 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4258 (get_first_inferior, one_inferior_p, clear_inferior_list):
4259 Remove.
4260 (clear_inferiors, get_thread_process): Update.
4261 * gdbthread.h: Include <list>.
4262 (struct thread_info) <entry>: Remove field.
4263 <id>: New field.
4264 (all_threads): Change type to std::list<thread_info *>.
4265 (get_first_inferior): Add doc.
4266 (find_thread, for_each_thread, find_thread_in_random): New
4267 functions.
4268 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4269 * linux-arm-low.c (update_registers_callback): Update.
4270 * linux-low.c (second_thread_of_pid_p): Update.
4271 (kill_one_lwp_callback, linux_detach_lwp_callback,
4272 delete_lwp_callback, status_pending_p_callback, same_lwp,
4273 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4274 iterate_over_lwps, not_stopped_callback,
4275 resume_stopped_resumed_lwps, count_events_callback,
4276 select_singlestep_lwp_callback, select_event_lwp_callback,
4277 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4278 suspend_and_send_sigstop_callback, wait_for_sigstop,
4279 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4280 lwp_running, linux_set_resume_request, resume_status_pending_p,
4281 need_step_over_p, start_step_over, linux_resume_one_thread,
4282 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4283 reset_lwp_ptrace_options_callback): Update.
4284 * linux-mips-low.c (update_watch_registers_callback): Update.
4285 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4286 Update.
4287 (free_register_cache_thread_one): Remove.
4288 (regcache_release): Update.
4289 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4290 handle_qxfer_threads_worker): Update.
4291 (handle_query): Update, use list iterator.
4292 (visit_actioned_threads, handle_pending_status,
4293 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4294 clear_pending_status_callback, set_pending_status_callback,
4295 find_status_pending_thread_callback, handle_status,
4296 process_serial_event): Update.
4297 * target.c (thread_search_callback): Update.
4298 * thread-db.c (thread_db_get_tls_address): Update.
4299 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4300 Update.
4301 * win32-i386-low.c (update_debug_registers_callback): Update.
4302 * win32-low.c (delete_thread_info, child_delete_thread,
4303 continue_one_thread, suspend_one_thread,
4304 get_child_debug_event): Adjust.
4305
4306 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4307
4308 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4309 * inferiors.h: Include <list>.
4310 (struct process_info) <entry>: Remove field.
4311 <pid>: New field.
4312 (pid_of): Change macro to function.
4313 (ptid_of, lwpid_of): Remove macro.
4314 (all_processes): Change type to std::list<process_info *>.
4315 (ALL_PROCESSES): Remove macro.
4316 (for_each_process, find_process): New function.
4317 * inferiors.c (all_processes): Change type to
4318 std::list<process_info *>.
4319 (find_thread_process): Adjust.
4320 (add_process): Likewise.
4321 (remove_process): Likewise.
4322 (find_process_pid): Likewise.
4323 (get_first_process): Likewise.
4324 (started_inferior_callback): Remove.
4325 (have_started_inferiors_p): Adjust.
4326 (attached_inferior_callback): Remove.
4327 (have_attached_inferiors_p): Adjust.
4328 * linux-low.c (check_zombie_leaders): Likewise.
4329 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4330 (x86_linux_update_xmltarget): Adjust.
4331 * server.c (handle_query): Likewise.
4332 (gdb_reattached_process): Remove.
4333 (handle_status): Adjust.
4334 (kill_inferior_callback): Likewise.
4335 (detach_or_kill_inferior): Remove.
4336 (print_started_pid): Likewise.
4337 (print_attached_pid): Likewise.
4338 (detach_or_kill_for_exit): Update.
4339 (process_serial_event): Likewise.
4340 * linux-arm-low.c (arm_new_fork): Likewise.
4341
4342 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4343
4344 * dll.h: Include <list>.
4345 (struct dll_info): Add constructor.
4346 <entry>: Remove field.
4347 (all_dlls): Change type to std::list<dll_info>.
4348 * dll.c: Include <algorithm>.
4349 (get_dll): Remove macro.
4350 (all_dlls): Change type to std::list<dll_info *>.
4351 (free_one_dll): Remove.
4352 (match_dll): Likewise.
4353 (loaded_dll): Adjust.
4354 (unloaded_dll): Adjust to all_dlls type change, use
4355 std::find_if. Inline code from match_dll.
4356 (clear_dlls): Adjust to all_dlls type change.
4357 * server.c (emit_dll_description): Remove.
4358 (handle_qxfer_libraries): Adjust to all_dlls type change,
4359 integrate emit_dll_description's functionality.
4360
4361 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4362
4363 * linux-low.h (struct linux_target_ops) <delete_process>: New
4364 field.
4365 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4366 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4367 (struct linux_target_ops): Add delete_process callback.
4368 * linux-arm-low.c (arm_delete_process): New.
4369 (struct linux_target_ops): Add delete_process callback.
4370 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4371 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4372 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4373 * linux-mips-low.c (mips_linux_delete_process): New.
4374 (struct linux_target_ops): Add delete_process callback.
4375 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4376 * linux-s390-low.c (struct linux_target_ops): Likewise.
4377 * linux-sh-low.c (struct linux_target_ops): Likewise.
4378 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4379 * linux-tile-low.c (struct linux_target_ops): Likewise.
4380 * linux-x86-low.c (x86_linux_delete_process): New.
4381 (struct linux_target_ops): Add delete_process callback.
4382 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4383
4384 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4385
4386 * linux-aarch64-low.c (the_low_target): Add thread delete
4387 callback.
4388 * linux-arm-low.c (arm_delete_thread): New function.
4389 (the_low_target): Add thread delete callback.
4390 * linux-bfin-low.c (the_low_target): Likewise.
4391 * linux-crisv32-low.c (the_low_target): Likewise.
4392 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4393 set.
4394 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4395 field.
4396 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4397 * linux-mips-low.c (mips_linux_delete_thread): New function.
4398 (the_low_target): Add thread delete callback.
4399 * linux-ppc-low.c (the_low_target): Likewise.
4400 * linux-s390-low.c (the_low_target): Likewise.
4401 * linux-sh-low.c (the_low_target): Likewise.
4402 * linux-tic6x-low.c (the_low_target): Likewise.
4403 * linux-tile-low.c (the_low_target): Likewise.
4404 * linux-x86-low.c (the_low_target): Likewise.
4405 * linux-xtensa-low.c (the_low_target): Likewise.
4406
4407 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4408
4409 * win32-low.c: Include "common-inferior.h".
4410
4411 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4412
4413 * inferiors.c (set_inferior_cwd): New function.
4414 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4415 (handle_query): Inform that QSetWorkingDir is supported.
4416 * win32-low.c (create_process): Pass the inferior's cwd to
4417 CreateProcess.
4418
4419 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4420
4421 * inferiors.c (current_inferior_cwd): New global variable.
4422 (get_inferior_cwd): New function.
4423 * inferiors.h (struct process_info) <cwd>: New field.
4424
4425 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4426
4427 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4428 (OBS): Add gdb_tilde_expand.o.
4429
4430 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4431
4432 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4433 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4434
4435 2017-09-29 Pedro Alves <palves@redhat.com>
4436
4437 * ax.c (gdb_parse_agent_expr): Constify.
4438 * ax.h (gdb_parse_agent_expr): Constify.
4439 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4440 Constify.
4441 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4442 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4443 * remote-utils.h (read_ptid): Constify.
4444 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4445 (process_point_options, process_serial_event): Constify.
4446 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4447 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4448 (cmd_qtbuffer): Constify.
4449
4450 2017-09-29 Pedro Alves <palves@redhat.com>
4451
4452 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4453 fails.
4454
4455 2017-09-29 Pedro Alves <palves@redhat.com>
4456
4457 * linux-low.c (handle_extended_wait): Pass parent thread instead
4458 of process to thread_db_notice_clone.
4459 * linux-low.h (thread_db_notice_clone): Replace parent process
4460 parameter with parent thread parameter.
4461 * thread-db.c (find_one_thread): Add comment.
4462 (thread_db_notice_clone): Replace parent process parameter with
4463 parent thread parameter. Temporarily switch to the parent thread.
4464
4465 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4466
4467 * gdbthread.h: Include "common-gdbthread.h".
4468 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4469 "if" when validating the ptid.
4470 * remote-utils.c: Include "gdbthread.h".
4471 (prepare_resume_reply): Use "switch_to_thread".
4472 * target.c (done_accessing_memory): Likewise.
4473
4474 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4475
4476 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4477 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4478 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4479 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4480 s390x-gs-linux64-ipa.o to ipa_obj.
4481 * linux-s390-low.c (HWCAP_S390_GS): New define.
4482 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4483 New functions.
4484 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4485 (s390_arch_setup): Check for guarded-storage support and choose
4486 appropriate tdesc.
4487 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4488 init_registers_s390x_gs_linux64.
4489 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4490 enum value.
4491 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4492 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4493
4494 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4495
4496 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4497
4498 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4499
4500 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4501 (thread_db_thread_handle): Declare.
4502 * linux-low.c (linux_target_ops): Initialize thread_handle.
4503 * server.c (handle_qxfer_threads_worker): Add support for
4504 "handle" attribute.
4505 * target.h (struct target_ops): Add new function pointer,
4506 thread_handle.
4507 (target_thread_handle): Define.
4508 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4509 field in lwp.
4510 (thread_db_thread_handle): New function.
4511
4512 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4513
4514 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4515 * linux-low.h (thread_db_notice_clone): Declare.
4516 * thread-db.c (thread_db_notice_clone): New function.
4517
4518 2017-09-21 Pedro Alves <palves@redhat.com>
4519
4520 * server.c (gdb_read_memory, handle_status, process_serial_event)
4521 (handle_serial_event, handle_target_event): Adjust to
4522 set_desired_thread prototype change.
4523 * target.c (set_desired_thread): Remove 'use_general' parameter
4524 and adjust.
4525 * target.h (set_desired_thread): Remove 'use_general' parameter.
4526
4527 2017-09-20 Tom Tromey <tom@tromey.com>
4528
4529 * target.c (target_terminal::terminal_state): Define.
4530 (target_terminal::init): Rename from target_terminal_init.
4531 (target_terminal::inferior): Rename from
4532 target_terminal_inferior.
4533 (target_terminal::ours): Rename from target_terminal_ours.
4534 (target_terminal::ours_for_output, target_terminal::info): New.
4535
4536 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4537
4538 * server.c (accumulate_file_name_length): Remove.
4539 (emit_dll_description): Adjust to std::string change.
4540 (handle_qxfer_libraries): Use std::string to hold document.
4541
4542 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4543
4544 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4545 return type of xml_escape_text.
4546 * server.c (emit_dll_description): Likewise.
4547
4548 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4549
4550 * server.c (captured_main): Accept argument for --selftest.
4551 Update run_tests call.
4552 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4553 when registering selftests.
4554
4555 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4556
4557 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4558 instead of "VEC" for "target_desc.reg_defs".
4559 (regcache_cpy): Likewise.
4560 (registers_to_string): Likewise.
4561 (registers_from_string): Likewise.
4562 (find_regno): Likewise.
4563 (supply_regblock): Likewise.
4564 (regcache_raw_read_unsigned): Likewise.
4565 * tdesc.c (init_target_desc): Likewise.
4566 (tdesc_create_reg): Likewise.
4567 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4568 (struct target_desc) <reg_defs>: Convert to "std::vector".
4569 (target_desc): Do not initialize "reg_defs".
4570 (~target_desc): Update code to use "std::vector" instead of "VEC"
4571 for "target_desc.reg_defs".
4572 (operator==): Likewise.
4573
4574 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4575
4576 * inferiors.h (thread_to_gdb_id): Remove.
4577 * inferiors.c (thread_to_gdb_id): Remove.
4578 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4579 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4580 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4581 Likewise.
4582 * nto-low.c (nto_fetch_registers, nto_store_registers,
4583 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4584
4585 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4586
4587 * inferiors.h (gdb_id_to_thread_id): Remove.
4588 * inferiors.c (gdb_id_to_thread_id): Remove.
4589 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4590 removal. Move pid declaration closer to where it's used.
4591
4592 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4593
4594 * server.c (handle_detach): New function.
4595 (process_serial_event): Move code out, call handle_detach.
4596
4597 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4598
4599 * server.c (require_running): Rename to ...
4600 (require_running_or_return): ... this ...
4601 (require_running_or_break): ... and this.
4602 (handle_query, process_serial_event): Adjust.
4603
4604 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4605
4606 * linux-low.c (linux_set_resume_request): Remove unused
4607 variables.
4608
4609 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4610
4611 * server.c (first_thread_of): Remove.
4612 (process_serial_event): Replace usage of first_thread_of with
4613 find_any_thread_of_pid.
4614 * tracepoint.c (same_process_p): Remove.
4615 (gdb_agent_about_to_close): Replace usage of same_process_p with
4616 find_any_thread_of_pid.
4617 * linux-x86-low.c (same_process_callback): Remove.
4618 (x86_arch_setup_process_callback): Replace usage of
4619 same_process_callback with find_any_thread_of_pid.
4620 * thread-db.c (any_thread_of): Remove.
4621 (switch_to_process): Replace usage of any_thread_of with
4622 find_any_thread_of_pid.
4623 * inferiors.c (thread_pid_matches_callback): Remove.
4624 (find_thread_process): Adjust to use find_any_thread_of_pid.
4625
4626 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4627
4628 * regcache.c (get_thread_regcache): Guard calls to "memset"
4629 with "!VEC_empty".
4630
4631 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4632
4633 * linux-low.c (handle_extended_wait): Use
4634 "allocate_target_description" instead of "XNEW".
4635 * linux-x86-low.c (initialize_low_arch): Likewise.
4636
4637 2017-09-05 Yao Qi <yao.qi@linaro.org>
4638
4639 * configure.srv (srv_i386_regobj): Remove.
4640 (srv_amd64_regobj): Remove.
4641 (srv_regobj): Set it to "" for x86 non-linux targets.
4642 * linux-x86-tdesc.c (i386_linux_read_description):
4643 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4644 (init_registers_i386): Remove the declaration.
4645 (tdesc_i386): Remove the declaration.
4646 (lynx_i386_arch_setup): Call i386_create_target_description.
4647 * nto-x86-low.c: Likewise.
4648 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4649 [!__x86_64__]: include arch/i386.h.
4650 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4651
4652 2017-09-05 Yao Qi <yao.qi@linaro.org>
4653
4654 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4655 i386/amd64-XXX-linux from it.
4656
4657 2017-09-05 Yao Qi <yao.qi@linaro.org>
4658
4659 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4660 false.
4661 (ipa_amd64_linux_regobj): Remove.
4662 (ipa_x32_linux_regobj): Remove.
4663
4664 2017-09-05 Yao Qi <yao.qi@linaro.org>
4665
4666 * Makefile.in (arch-amd64.o): New rule.
4667 * configure.srv: Append arch-amd64.o.
4668 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4669 (get_ipa_tdesc): Call amd64_linux_read_description.
4670 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4671 and init_registers_amd64_XXX.
4672 * linux-x86-low.c (x86_linux_read_description): Call
4673 amd64_linux_read_description.
4674 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4675 (initialize_low_arch): Don't call init_registers_x32_XXX and
4676 init_registers_amd64_XXX.
4677 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4678 and tdesc_amd64_XXX.
4679 [__x86_64__] (amd64_tdesc_test): New function.
4680 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4681 and init_registers_amd64_XXX.
4682 * linux-x86-tdesc.c: Include arch/amd64.h.
4683 (xcr0_to_tdesc_idx): New function.
4684 (i386_linux_read_description): New function.
4685 (amd64_get_ipa_tdesc_idx): New function.
4686 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4687 (amd64_get_ipa_tdesc): Declare.
4688
4689 2017-09-05 Yao Qi <yao.qi@linaro.org>
4690
4691 * configure.srv (srv_i386_linux_xmlfiles): Remove
4692 i386/i386-XXX-linux.xml from it.
4693
4694 2017-09-05 Yao Qi <yao.qi@linaro.org>
4695
4696 * configure.srv: Set srv_i386_linux_regobj empty if $development
4697 is false.
4698 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4699 initialize_low_tdesc.
4700 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4701 with #if initialize_low_tdesc.
4702 * linux-x86-tdesc-selftest.c: New file.
4703 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4704
4705 2017-09-05 Yao Qi <yao.qi@linaro.org>
4706
4707 * Makefile.in (arch-i386.o): New rule.
4708 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4709 (x86_64-*-linux*): Likewise.
4710 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4711 include arch/i386.h.
4712 (i386_linux_read_description): Remove code and call
4713 i386_create_target_description.
4714 * tdesc.c (allocate_target_description): New function.
4715 * tdesc.h (set_tdesc_architecture): Remove declaration.
4716 (set_tdesc_osabi): Likewise.
4717
4718 2017-09-05 Yao Qi <yao.qi@linaro.org>
4719
4720 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4721 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4722 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4723 .xmltarget.
4724 * server.c (get_features_xml): Call tdesc_get_features_xml.
4725 * tdesc.c (set_tdesc_architecture): New function.
4726 (set_tdesc_osabi): New function.
4727 (tdesc_get_features_xml): New function.
4728 (tdesc_create_feature): Add an argument.
4729 * tdesc.h (struct target_desc) <features>: New field.
4730 <arch, osabi>: New field.
4731 (~target_desc): xfree features, arch, and osabi.
4732 (target_desc::oerator==): Don't compare .xmltarget.
4733 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4734 (set_tdesc_osabi): Likewise.
4735 (tdesc_get_features_xml): Likewise.
4736
4737 2017-09-05 Yao Qi <yao.qi@linaro.org>
4738
4739 * linux-x86-tdesc.c: Include selftest.h.
4740 (i386_tdesc_test): New function.
4741 (initialize_low_tdesc): Call selftests::register_test.
4742 * tdesc.h: Include regdef.h.
4743 (target_desc): Override operator == and !=.
4744
4745 2017-09-05 Yao Qi <yao.qi@linaro.org>
4746
4747 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4748 (ipa_obj): Likewise.
4749 * linux-i386-ipa.c: Include common/x86-xstate.h
4750 (get_ipa_tdesc): Call i386_linux_read_description.
4751 (initialize_low_tracepoint): Don't call init_registers_XXX
4752 functions, call initialize_low_tdesc instead.
4753 * linux-x86-low.c (x86_linux_read_description): Call
4754 i386_linux_read_description.
4755 (initialize_low_arch): Don't call init_registers_i386_XXX
4756 functions, call initialize_low_tdesc.
4757 * linux-x86-tdesc.c: New file.
4758 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4759 (i386_get_ipa_tdesc_idx): Declare.
4760 (i386_get_ipa_tdesc): Declare.
4761 (initialize_low_tdesc): Declare.
4762
4763 2017-09-05 Yao Qi <yao.qi@linaro.org>
4764
4765 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4766 instead of 0.
4767
4768 2017-09-05 Yao Qi <yao.qi@linaro.org>
4769
4770 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4771 * regcache.c (get_thread_regcache): Use VEC_length.
4772 (init_register_cache): Likewise.
4773 (regcache_cpy): Likewise.
4774 (registers_to_string): Iterate reg_defs via VEC_iterate.
4775 (find_regno): Likewise.
4776 (find_register_by_number): Use VEC_index.
4777 (register_size): Call find_register_by_number.
4778 (register_data): Call find_register_by_number.
4779 (supply_regblock): Use VEC_length.
4780 (regcache_raw_read_unsigned): Likewise.
4781 * tdesc.c (init_target_desc): Iterate reg_defs via
4782 VEC_iterate.
4783 (default_description): Update initializer.
4784 (copy_target_description): Don't update field num_registers.
4785 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4786 <num_registers>: Remove.
4787
4788 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4789
4790 * Makefile.in (.SECONDARY): Define target.
4791
4792 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4793
4794 * linux-low.c (linux_wait_1): Adjust.
4795 * server.c (queue_stop_reply_callback): Adjust.
4796
4797 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4798
4799 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4800 QEnvironmentUnset and QEnvironmentReset packets.
4801 (handle_query): Inform remote that QEnvironmentHexEncoded,
4802 QEnvironmentUnset and QEnvironmentReset are supported.
4803
4804 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4805
4806 * inferiors.h (inferior_target_data): Rename to ...
4807 (thread_target_data): ... this.
4808 (inferior_regcache_data): Rename to ...
4809 (thread_regcache_data): ... this.
4810 (set_inferior_regcache_data): Rename to ...
4811 (set_thread_regcache_data): ... this.
4812 * inferiors.c (inferior_target_data): Rename to ...
4813 (thread_target_data): ... this.
4814 (inferior_regcache_data): Rename to ...
4815 (thread_regcache_data): ... this.
4816 (set_inferior_regcache_data): Rename to ...
4817 (set_thread_regcache_data): ... this.
4818 (free_one_thread): Update.
4819 * linux-low.h (get_thread_lwp): Update.
4820 * regcache.c (get_thread_regcache): Update.
4821 (regcache_invalidate_thread): Update.
4822 (free_register_cache_thread): Update.
4823 * win32-i386-low.c (update_debug_registers_callback): Update.
4824 (win32_get_current_dr): Update.
4825 * win32-low.c (thread_rec): Update.
4826 (delete_thread_info): Update.
4827 (continue_one_thread): Update.
4828 (suspend_one_thread): Update.
4829
4830 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4831
4832 * inferiors.c (set_inferior_target_data): Remove.
4833 * inferiors.h (set_inferior_target_data): Remove.
4834
4835 2017-08-18 Yao Qi <yao.qi@linaro.org>
4836
4837 * Makefile.in (OBS): Add selftest.o.
4838 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4839 * configure, config.in: Re-generated.
4840 * server.c: Include common/sefltest.h.
4841 (captured_main): Handle option --selftest.
4842
4843 2017-08-09 Yao Qi <yao.qi@linaro.org>
4844
4845 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4846 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4847 i386-avx-mpx.o and i386-mmx.o.
4848 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4849 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4850 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4851 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4852 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4853 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4854 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4855 i386/amd64-avx-mpx.xml.
4856
4857 2017-08-09 Yao Qi <yao.qi@linaro.org>
4858
4859 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4860 and x32-avx-avx512.o.
4861 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4862 i386/x32-avx-avx512.xml.
4863
4864 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4865
4866 * tracepoint.h (enum class fast_tpoint_collect_result): New
4867 enumeration.
4868 (fast_tracepoint_collecting): Change return type to
4869 fast_tpoint_collect_result.
4870 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4871 * linux-low.h: Include tracepoint.h.
4872 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4873 fast_tpoint_collect_result.
4874 * linux-low.c (handle_tracepoints): Adjust.
4875 (linux_fast_tracepoint_collecting): Change return type to
4876 fast_tpoint_collect_result.
4877 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4878 linux_wait_1, stuck_in_jump_pad_callback,
4879 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4880 proceed_one_lwp): Adjust to type change.
4881
4882 2017-07-10 Yao Qi <yao.qi@linaro.org>
4883
4884 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4885
4886 2017-06-29 Yao Qi <yao.qi@linaro.org>
4887
4888 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4889 Remove.
4890 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4891
4892 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4893
4894 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4895
4896 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4897
4898 * linux-low.c (linux_create_inferior): Adjust code to access the
4899 environment information via 'gdb_environ' class.
4900 * lynx-low.c (lynx_create_inferior): Likewise.
4901 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4902 (get_environ): Return a pointer to 'our_environ'.
4903 (captured_main): Initialize 'our_environ'.
4904 * server.h (get_environ): Adjust prototype.
4905 * spu-low.c (spu_create_inferior): Adjust code to access the
4906 environment information via 'gdb_environ' class.
4907
4908 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4909
4910 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4911 usage of "register" keyword.
4912
4913 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4914
4915 * configure: Re-generate.
4916
4917 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4918
4919 * configure: Re-generate.
4920
4921 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4922
4923 * Makefile.in (COMPILE.pre): Add "-x c++".
4924
4925 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4926
4927 * fork-child.c: Conditionally include <signal.h>.
4928
4929 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4930
4931 * server.c (handle_general_set): Handle new packet
4932 "QStartupWithShell".
4933 (handle_query): Add "QStartupWithShell" to the list of supported
4934 packets.
4935 (gdbserver_usage): Add help text explaining the
4936 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4937 options.
4938 (captured_main): Recognize and act upon the presence of the new
4939 CLI options.
4940
4941 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4942 Pedro Alves <palves@redhat.com>
4943
4944 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4945 * configure: Regenerate.
4946 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4947 "fork-inferior.o".
4948 (i[34567]86-*-lynxos*): Likewise.
4949 (spu*-*-*): Likewise.
4950 * fork-child.c: New file.
4951 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4952 and "environ.h".
4953 (linux_ptrace_fun): New function.
4954 (linux_create_inferior): Adjust function prototype to reflect
4955 change on "target.h". Adjust function code to use
4956 "fork_inferior".
4957 (linux_request_interrupt): Delete "signal_pid".
4958 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4959 (lynx_ptrace_fun): New function.
4960 (lynx_create_inferior): Adjust function prototype to reflect
4961 change on "target.h". Adjust function code to use
4962 "fork_inferior".
4963 * nto-low.c (nto_create_inferior): Adjust function prototype and
4964 code to reflect change on "target.h". Update comments.
4965 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4966 "common-terminal.h" and "environ.h".
4967 (terminal_fd): Moved to fork-child.c.
4968 (old_foreground_pgrp): Likewise.
4969 (restore_old_foreground_pgrp): Likewise.
4970 (last_status): Make it global.
4971 (last_ptid): Likewise.
4972 (our_environ): New variable.
4973 (startup_with_shell): Likewise.
4974 (program_name): Likewise.
4975 (program_argv): Rename to...
4976 (program_args): ...this.
4977 (wrapper_argv): New variable.
4978 (start_inferior): Delete function.
4979 (get_exec_wrapper): New function.
4980 (get_exec_file): Likewise.
4981 (get_environ): Likewise.
4982 (prefork_hook): Likewise.
4983 (post_fork_inferior): Likewise.
4984 (postfork_hook): Likewise.
4985 (postfork_child_hook): Likewise.
4986 (handle_v_run): Update code to deal with arguments coming from the
4987 remote host. Update calls from "start_inferior" to
4988 "create_inferior".
4989 (captured_main): Likewise. Initialize environment variable. Call
4990 "have_job_control".
4991 * server.h (post_fork_inferior): New prototype.
4992 (get_environ): Likewise.
4993 (last_status): Declare.
4994 (last_ptid): Likewise.
4995 (signal_pid): Likewise.
4996 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4997 (spu_ptrace_fun): New function.
4998 (spu_create_inferior): Adjust function prototype to reflect change
4999 on "target.h". Adjust function code to use "fork_inferior".
5000 * target.c (target_terminal_init): New function.
5001 (target_terminal_inferior): Likewise.
5002 (target_terminal_ours): Likewise.
5003 * target.h: Include <vector>.
5004 (struct target_ops) <create_inferior>: Update prototype.
5005 (create_inferior): Update macro.
5006 * utils.c (gdb_flush_out_err): New function.
5007 * win32-low.c (win32_create_inferior): Adjust function prototype
5008 and code to reflect change on "target.h".
5009
5010 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5011
5012 * inferiors.c (switch_to_thread): New function.
5013
5014 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5015
5016 * Makefile.in (SFILE): Add "common/job-control.c".
5017 (OBS): Add "job-control.o".
5018
5019 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5020
5021 * Makefile: Remove "@host_makefile_frag@".
5022
5023 2017-05-05 Pedro Alves <palves@redhat.com>
5024
5025 * configure: Regenerate.
5026
5027 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5028
5029 * configure: Regenerate.
5030
5031 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5032
5033 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
5034 software_single_step change of return type to
5035 std::vector<CORE_ADDR>.
5036 * linux-low.c (install_software_single_step_breakpoints):
5037 Likewise.
5038 * linux-low.h (install_software_single_step_breakpoints):
5039 Likewise.
5040
5041 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5042
5043 * remote-utils.c: Include "gdb_termios.h" instead of
5044 "terminal.h".
5045 * terminal.h: Delete file.
5046
5047 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5048
5049 * server.c: Include <vector>.
5050 <program_argv, wrapper_argv>: Convert to std::vector.
5051 (start_inferior): Rewrite function to use C++.
5052 (handle_v_run): Likewise. Update code that calculates the argv
5053 based on the vRun packet; use C++.
5054 (captured_main): Likewise.
5055
5056 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
5057
5058 * server.c (handle_v_cont): Initialize thread_resume::thread
5059 with null_ptid.
5060
5061 2017-04-05 Pedro Alves <palves@redhat.com>
5062
5063 * configure: Regenerate.
5064
5065 2017-04-05 Pedro Alves <palves@redhat.com>
5066
5067 * gdbreplay.c (sync_error): Constify.
5068 * linux-x86-low.c (push_opcode): Constify.
5069
5070 2017-04-05 Pedro Alves <palves@redhat.com>
5071
5072 * win32-low.c (get_child_debug_event)
5073 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
5074 Report TARGET_WAITKIND_SPURIOUS instead.
5075
5076 2017-04-05 Pedro Alves <palves@redhat.com>
5077
5078 * remote-utils.c (remote_prepare, remote_open): Constify.
5079 * remote-utils.h (remote_prepare, remote_open): Constify.
5080 * server.c (captured_main): Constify 'port' handling.
5081
5082 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
5083
5084 * Makefile.in (clean): Clear .deps.
5085
5086 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
5087
5088 * .gitignore: Remove generated files, replace with wildcard.
5089 * (clean): Replace removal of generated files with wildcard.
5090 (version.c): Replace with...
5091 (version-generated.c): ...this.
5092 (xml-builtin.c): Replace with...
5093 (xml-builtin-generated.c): ...this.
5094 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
5095 (%.c: *regformats*): Replace with...
5096 (%-generated.c: *regformats*): ...this.
5097
5098 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5099
5100 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5101 (xtensa_fill_gregset): Call collect_register_by_name for
5102 threadptr register.
5103 (xtensa_store_gregset): Call supply_register_by_name for
5104 threadptr register.
5105
5106 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5107
5108 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5109 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5110 (xtensa_store_gregset): Call supply_register for all registers in
5111 a0_regnum..a0_regnum + C0_NREGS range.
5112
5113 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5114
5115 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5116 (ax-ipa.o: ax.c): Remove.
5117 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5118 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5119 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5120 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5121 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5122
5123 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5124
5125 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5126 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5127 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5128 (errors-ipa.o: ../common/errors.c): Remove.
5129 (format-ipa.o: ../common/format.c): Remove.
5130 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5131
5132 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5133
5134 * Makefile.in (%-ipa.o: %.c): New rule.
5135 (tracepoint-ipa.o: tracepoint.c): Remove.
5136 (utils-ipa.o: utils.c): Remove.
5137 (remote-utils-ipa.o: remote-utils.c): Remove.
5138 (regcache-ipa.o: regcache.c): Remove.
5139 (i386-linux-ipa.o: i386-linux.c): Remove.
5140 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5141 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5142 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5143 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5144 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5145 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5146 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5147 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5148 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5149 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5150 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5151 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5152 (aarch64-ipa.o: aarch64.c): Remove.
5153 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5154 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5155 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5156 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5157 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5158 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5159 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5160 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5161 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5162 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5163 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5164 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5165 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5166 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5167 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5168 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5169 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5170 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5171 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5172 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5173 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5174 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5175 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5176 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5177 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5178 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5179 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5180 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5181 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5182 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5183 (tdesc-ipa.o: tdesc.c): Remove.
5184 (x32-linux-ipa.o: x32-linux.c): Remove.
5185 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5186 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5187
5188 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5189
5190 * Makefile.in (%.o: ../arch/%.c): New rule.
5191 (arm.o: ../arch/arm.c): Remove.
5192 (arm-linux.o: ../arch/arm-linux.c): Remove.
5193 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5194 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5195
5196 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5197
5198 * Makefile.in (%.o: ../nat/%.c): New rule.
5199 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5200 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5201 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5202 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5203 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5204 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5205 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5206 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5207 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5208 (linux-personality.o: ../nat/linux-personality.c): Remove.
5209 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5210 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5211 (x86-linux.o: ../nat/x86-linux.c): Remove.
5212 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5213 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5214
5215 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5216
5217 * Makefile.in (%.o: ../common/%.c): New rule.
5218 (signals.o: ../common/signals.c): Remove.
5219 (print-utils.o: ../common/print-utils.c): Remove.
5220 (rsp-low.o: ../common/rsp-low.c): Remove.
5221 (common-utils.o: ../common/common-utils.c): Remove.
5222 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5223 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5224 (vec.o: ../common/vec.c): Remove.
5225 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5226 (xml-utils.o: ../common/xml-utils.c): Remove.
5227 (ptid.o: ../common/ptid.c): Remove.
5228 (buffer.o: ../common/buffer.c): Remove.
5229 (format.o: ../common/format.c): Remove.
5230 (filestuff.o: ../common/filestuff.c): Remove.
5231 (agent.o: ../common/agent.c): Remove.
5232 (errors.o: ../common/errors.c): Remove.
5233 (environ.o: ../common/environ.c): Remove.
5234 (common-debug.o: ../common/common-debug.c): Remove.
5235 (cleanups.o: ../common/cleanups.c): Remove.
5236 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5237 (fileio.o: ../common/fileio.c): Remove.
5238 (common-regcache.o: ../common/common-regcache.c): Remove.
5239 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5240 (new-op.o: ../common/new-op.c): Remove.
5241 (btrace-common.o: ../common/btrace-common.c): Remove.
5242
5243 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5244
5245 * Makefile.in (%.o: ../target/%.c): New rule.
5246 (waitstatus.o: ../target/waitstatus.c): Remove.
5247
5248 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5249
5250 * Makefile.in
5251 (%.c: ../regformats/%.dat,
5252 (%.c: ../regformats/arm/%.dat,
5253 (%.c: ../regformats/i386/%.dat,
5254 (%.c: ../regformats/rs6000/%.dat): New rules.
5255 (aarch64.c): Remove.
5256 (reg-arm.c): Remove.
5257 (arm-with-iwmmxt.c): Remove.
5258 (arm-with-vfpv2.c): Remove.
5259 (arm-with-vfpv3.c): Remove.
5260 (arm-with-neon.c): Remove.
5261 (reg-bfin.c): Remove.
5262 (reg-cris.c): Remove.
5263 (reg-crisv32.c): Remove.
5264 (i386.c): Remove.
5265 (i386-linux.c): Remove.
5266 (i386-avx.c): Remove.
5267 (i386-avx-linux.c): Remove.
5268 (i386-avx-avx512.c): Remove.
5269 (i386-avx-avx512-linux.c): Remove.
5270 (i386-mpx.c): Remove.
5271 (i386-mpx-linux.c): Remove.
5272 (i386-avx-mpx-avx512-pku.c): Remove.
5273 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5274 (i386-avx-mpx.c): Remove.
5275 (i386-avx-mpx-linux.c): Remove.
5276 (i386-mmx.c): Remove.
5277 (i386-mmx-linux.c): Remove.
5278 (reg-ia64.c): Remove.
5279 (reg-m32r.c): Remove.
5280 (reg-m68k.c): Remove.
5281 (reg-cf.c): Remove.
5282 (mips-linux.c): Remove.
5283 (mips-dsp-linux.c): Remove.
5284 (mips64-linux.c): Remove.
5285 (mips64-dsp-linux.c): Remove.
5286 (nios2-linux.c): Remove.
5287 (powerpc-32.c): Remove.
5288 (powerpc-32l.c): Remove.
5289 (powerpc-altivec32l.c): Remove.
5290 (powerpc-cell32l.c): Remove.
5291 (powerpc-vsx32l.c): Remove.
5292 (powerpc-isa205-32l.c): Remove.
5293 (powerpc-isa205-altivec32l.c): Remove.
5294 (powerpc-isa205-vsx32l.c): Remove.
5295 (powerpc-e500l.c): Remove.
5296 (powerpc-64l.c): Remove.
5297 (powerpc-altivec64l.c): Remove.
5298 (powerpc-cell64l.c): Remove.
5299 (powerpc-vsx64l.c): Remove.
5300 (powerpc-isa205-64l.c): Remove.
5301 (powerpc-isa205-altivec64l.c): Remove.
5302 (powerpc-isa205-vsx64l.c): Remove.
5303 (s390-linux32.c): Remove.
5304 (s390-linux32v1.c): Remove.
5305 (s390-linux32v2.c): Remove.
5306 (s390-linux64.c): Remove.
5307 (s390-linux64v1.c): Remove.
5308 (s390-linux64v2.c): Remove.
5309 (s390-te-linux64.c): Remove.
5310 (s390-vx-linux64.c): Remove.
5311 (s390-tevx-linux64.c): Remove.
5312 (s390x-linux64.c): Remove.
5313 (s390x-linux64v1.c): Remove.
5314 (s390x-linux64v2.c): Remove.
5315 (s390x-te-linux64.c): Remove.
5316 (s390x-vx-linux64.c): Remove.
5317 (s390x-tevx-linux64.c): Remove.
5318 (tic6x-c64xp-linux.c): Remove.
5319 (tic6x-c64x-linux.c): Remove.
5320 (tic6x-c62x-linux.c): Remove.
5321 (reg-sh.c): Remove.
5322 (reg-sparc64.c): Remove.
5323 (reg-spu.c): Remove.
5324 (amd64.c): Remove.
5325 (amd64-linux.c): Remove.
5326 (amd64-avx.c): Remove.
5327 (amd64-avx-linux.c): Remove.
5328 (amd64-avx-avx512.c): Remove.
5329 (amd64-avx-avx512-linux.c): Remove.
5330 (amd64-mpx.c): Remove.
5331 (amd64-mpx-linux.c): Remove.
5332 (amd64-avx-mpx-avx512-pku.c): Remove.
5333 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5334 (amd64-avx-mpx.c): Remove.
5335 (amd64-avx-mpx-linux.c): Remove.
5336 (x32.c): Remove.
5337 (x32-linux.c): Remove.
5338 (x32-avx.c): Remove.
5339 (x32-avx-linux.c): Remove.
5340 (x32-avx-avx512.c): Remove.
5341 (x32-avx-avx512-linux.c): Remove.
5342 (reg-xtensa.c): Remove.
5343 (reg-tilegx.c): Remove.
5344 (reg-tilegx32.c): Remove.
5345
5346 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5347
5348 * Makefile.in (SFILES): Add "common/environ.c".
5349 (OBJS): Add "common/environ.h".
5350
5351 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5352
5353 * configure.ac: Check if the fs_base and gs_base members of
5354 `struct user_regs_struct' exist.
5355 * config.in: Regenerated.
5356 * configure: Likewise.
5357
5358 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5359
5360 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5361 target_read_memory.
5362 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5363 (get_next_pcs_syscall_next_pc): Likewise.
5364
5365 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5366
5367 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5368 * nto-x86-low.c: Likewise.
5369
5370 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5371
5372 * Makefile.in: Include disable-implicit-rules.mk.
5373
5374 2016-11-23 Pedro Alves <palves@redhat.com>
5375
5376 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5377 (debug_vprintf): Use std::chrono::steady_clock instead of
5378 gettimeofday. Use '.' instead of ':'.
5379 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5380 (get_timestamp): Use std::chrono::steady_clock instead of
5381 gettimeofday.
5382
5383 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5384
5385 * Makefile.in: Fix whitespace formatting.
5386
5387 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5388
5389 * Makefile.in (SFILES, OBS): Flatten list and order
5390 alphabetically.
5391
5392 2016-11-23 Pedro Alves <palves@redhat.com>
5393
5394 * event-loop.c (handle_file_event): Use warning.
5395 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5396 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5397 Use warning.
5398
5399 2016-11-23 Pedro Alves <palves@redhat.com>
5400
5401 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5402 output.
5403 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5404 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5405 debug_printf and debug_flush for debug output.
5406 * server.c (handle_general_set): Likewise.
5407 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5408 output.
5409
5410 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5411
5412 * Makefile.in (.c.o): Replace rule with ...
5413 (%.o: %.c): ... this one.
5414
5415 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5416
5417 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5418 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5419 make.
5420 * configure.ac: Remove checks for the make program.
5421 * configure: Re-generate.
5422
5423 2016-10-28 Pedro Alves <palves@redhat.com>
5424
5425 * Makefile.in (CXX_DIALECT): Get from configure.
5426 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5427 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5428 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5429 * config.in: Regenerate.
5430 * configure: Regenerate.
5431
5432 2016-10-27 Yao Qi <yao.qi@linaro.org>
5433
5434 * linux-low.c (linux_supports_range_stepping): Return true if
5435 can_software_single_step return true.
5436
5437 2016-10-27 Yao Qi <yao.qi@linaro.org>
5438
5439 * inferiors.c (find_inferior_in_random): New function.
5440 * inferiors.h (find_inferior_in_random): Declare.
5441 * linux-low.c (linux_wait_for_event_filtered): Call
5442 find_inferior_in_random instead of find_inferior.
5443
5444 2016-10-27 Yao Qi <yao.qi@linaro.org>
5445
5446 * linux-low.c (linux_wait_1): If single-step breakpoints are
5447 inserted, remove them.
5448
5449 2016-10-26 Pedro Alves <palves@redhat.com>
5450
5451 * linux-low.c (handle_extended_wait): Link parent/child fork
5452 threads.
5453 (linux_wait_1): Unlink them.
5454 (linux_set_resume_request): Ignore resume requests for
5455 already-resumed and unhandled fork child threads.
5456 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5457 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5458 New functions.
5459 (handle_v_requests) <vCont>: Don't call require_running.
5460 * server.h (in_queued_stop_replies): New declaration.
5461
5462 2016-10-24 Yao Qi <yao.qi@linaro.org>
5463
5464 PR server/20733
5465 * linux-aarch64-low.c (append_insns): Cast the return value to
5466 'uint32_t *'.
5467
5468 2016-10-10 Yao Qi <yao.qi@linaro.org>
5469
5470 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5471
5472 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5473
5474 * target.c (target_supports_multi_process): New function, moved
5475 from...
5476 * target.h (target_supports_multi_process): ... here. Remove
5477 macro.
5478
5479 2016-10-05 Tom Tromey <tom@tromey.com>
5480
5481 PR remote/20655:
5482 * tracepoint.c (handle_tracepoint_bkpts): Check
5483 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5484
5485 2016-10-05 Yao Qi <yao.qi@linaro.org>
5486
5487 * configure.srv: Update the path of arm-*.xml files.
5488
5489 2016-10-05 Terry Guo <terry.guo@arm.com>
5490 Yao Qi <yao.qi@linaro.org>
5491
5492 * Makefile.in: Adjust the path of rules.
5493 * configure.srv: Update the path of xml files.
5494 * regformats/arm-with-iwmmxt.dat: Regenerated.
5495 * regformats/arm-with-neon.dat: Likewise.
5496 * regformats/arm-with-vfpv2.dat: Likewise.
5497 * regformats/arm-with-vfpv3.dat Likewise.
5498
5499 2016-09-30 Yao Qi <yao.qi@linaro.org>
5500
5501 PR gdbserver/20627
5502 * target.c (target_stop_and_wait): Don't call
5503 target_continue_no_signal, use resume_stop instead.
5504
5505 2016-09-26 Yao Qi <yao.qi@linaro.org>
5506
5507 * linux-low.c (linux_wait_1): Call debug_exit.
5508
5509 2016-09-23 Pedro Alves <palves@redhat.com>
5510
5511 * Makefile.in (SFILES): Add common/new-op.c.
5512 (OBS): Add common/new-op.o.
5513 (new-op.o): New rule.
5514
5515 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5516
5517 * .gitinore: Ignore more files.
5518
5519 2016-09-21 Yao Qi <yao.qi@linaro.org>
5520
5521 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5522 23.
5523
5524 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5525
5526 * server.c (start_inferior): Call target_mourn_inferior instead of
5527 mourn_inferior; pass ptid_t argument to it.
5528 (resume): Likewise.
5529 (handle_target_event): Likewise.
5530 * target.c (target_mourn_inferior): New function.
5531 * target.h (mourn_inferior): Delete macro.
5532
5533 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5534
5535 * linux-low.c (lwp_is_stepping): New function.
5536
5537 2016-09-06 Carl Love <cel@us.ibm.com>
5538
5539 * server.c (start_inferior): Fixed comment, requested comment change
5540 didn't get updated correctly. Removed reference to ptrace () call as
5541 it is only true on Linux systems.
5542
5543 2016-09-06 Carl Love <cel@us.ibm.com>
5544
5545 * server.c (start_inferior): Do not call
5546 function target_post_create_inferior () if the
5547 inferior process has already exited.
5548
5549 2016-09-05 Pedro Alves <palves@redhat.com>
5550
5551 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5552 (COMPILE.pre, CC_LD): Use CXX directly.
5553 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5554 * acinclude.m4: Don't include build-with-cxx.m4.
5555 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5556 * configure: Regenerate.
5557
5558 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5559
5560 PR gdb/19495
5561 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5562 call writing data to own_buf.
5563
5564 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5565
5566 * target.c (mywait): Call target_wait instead of
5567 the_target->wait.
5568 (target_wait): New function.
5569
5570 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5571
5572 * server.c (start_inferior): New variable 'ptid'. Replace calls
5573 to the_target->resume by target_continue{,_no_signal}, depending
5574 on the case.
5575 * target.c (target_stop_and_wait): Call target_continue_no_signal
5576 instead of the_target->resume.
5577 (target_continue): New function.
5578
5579 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5580
5581 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5582
5583 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5584
5585 PR server/20491
5586 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5587 ps_prochandle.
5588 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5589 * linux-arm-low.c (ps_get_thread_area): Likewise.
5590 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5591 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5592 * linux-mips-low.c (ps_get_thread_area): Likewise.
5593 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5594 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5595 * linux-x86-low.c (ps_get_thread_area): Likewise.
5596 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5597
5598 2016-08-19 Pedro Alves <palves@redhat.com>
5599
5600 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5601
5602 2016-08-19 Pedro Alves <palves@redhat.com>
5603
5604 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5605 comment. Use memcpy instead of casting through unsigned long.
5606
5607 2016-08-19 Pedro Alves <palves@redhat.com>
5608
5609 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5610 allocating around 0x80000000.
5611
5612 2016-08-19 Pedro Alves <palves@redhat.com>
5613
5614 PR gdb/20415
5615 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5616 (x32-avx512-linux-ipa.o): New rules.
5617 * configure.ac (x86_64-*-linux*): New x32 check.
5618 * configure.srv (ipa_x32_linux_regobj): New.
5619 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5620 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5621 descriptions.
5622 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5623 descriptions.
5624 * configure: Regenerate.
5625
5626 2016-08-09 Pedro Alves <palves@redhat.com>
5627
5628 PR gdb/18653
5629 * Makefile.in (OBS): Add signals-state-save-restore.o.
5630 (signals-state-save-restore.o): New rule.
5631 * config.in: Regenerate.
5632 * configure: Regenerate.
5633 * linux-low.c: Include "signals-state-save-restore.h".
5634 (linux_create_inferior): Call
5635 restore_original_signals_state.
5636 * server.c: Include "dispositions-save-restore.h".
5637 (captured_main): Call save_original_signals_state.
5638
5639 2016-08-05 Pedro Alves <palves@redhat.com>
5640
5641 * configure: Regenerate.
5642
5643 2016-08-04 Yao Qi <yao.qi@linaro.org>
5644
5645 * linux-low.c (regsets_fetch_inferior_registers): Check
5646 errno is ESRCH or not.
5647
5648 2016-08-02 Yao Qi <yao.qi@linaro.org>
5649
5650 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5651 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5652 (thread_db_load_search): Update.
5653 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5654 td_ta_set_event and td_ta_event_getmsg.
5655
5656 2016-07-26 Pedro Alves <palves@redhat.com>
5657
5658 PR server/20414
5659 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5660 of unsigned long for 64-bit registers and use uint32_t instead of
5661 unsigned int for 32-bit registers.
5662
5663 2016-07-26 Pedro Alves <palves@redhat.com>
5664
5665 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5666 to 'ptrace'.
5667
5668 2016-07-21 Tom Tromey <tom@tromey.com>
5669
5670 * configure: Rebuild.
5671
5672 2016-07-21 Yao Qi <yao.qi@linaro.org>
5673
5674 * mem-break.c (find_gdb_breakpoint): Cast bp to
5675 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5676
5677 2016-07-21 Yao Qi <yao.qi@linaro.org>
5678
5679 * server.c (handle_v_requests): Support s and S actions
5680 if target_supports_software_single_step return true.
5681
5682 2016-07-21 Yao Qi <yao.qi@linaro.org>
5683
5684 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5685 is resume_step, call maybe_hw_step.
5686 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5687 and unstop them.
5688 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5689 breakpoints or not.
5690 (proceed_one_lwp): If resume request is resume_step, install
5691 reinsert breakpoints and call maybe_hw_step.
5692
5693 2016-07-21 Yao Qi <yao.qi@linaro.org>
5694
5695 * linux-low.c (proceed_one_lwp): Declare.
5696 (linux_resume_one_thread): Remove local variable 'step'.
5697 Lift code enqueue signal. Call proceed_one_lwp instead of
5698 linux_resume_one_lwp.
5699
5700 2016-07-21 Yao Qi <yao.qi@linaro.org>
5701
5702 * linux-low.c (linux_resume_one_thread): Call
5703 enqueue_pending_signal.
5704
5705 2016-07-21 Yao Qi <yao.qi@linaro.org>
5706
5707 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5708 * inferiors.c (do_restore_current_thread_cleanup): New function.
5709 (make_cleanup_restore_current_thread): Likewise.
5710 * linux-low.c (install_software_single_step_breakpoints): Call
5711 make_cleanup_restore_current_thread. Switch current_thread to
5712 thread.
5713
5714 2016-07-21 Yao Qi <yao.qi@linaro.org>
5715
5716 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5717 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5718 (clone_one_breakpoint): Likewise.
5719 (delete_reinsert_breakpoints): Change parameter to thread.
5720 Callers updated.
5721 (has_reinsert_breakpoints): Likewise.
5722 (uninsert_reinsert_breakpoints): Likewise.
5723 (reinsert_reinsert_breakpoints): Likewise.
5724 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5725 (delete_reinsert_breakpoints): Likewise.
5726 (reinsert_reinsert_breakpoints): Likewise.
5727 (uninsert_reinsert_breakpoints): Likewise.
5728 (has_reinsert_breakpoints): Likewise.
5729
5730 2016-07-21 Yao Qi <yao.qi@linaro.org>
5731
5732 * inferiors.c (get_thread_process): Make parameter const.
5733 * inferiors.h (get_thread_process): Update declaration.
5734 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5735 Add new parameters child_thread and parent_thread. Callers
5736 updated.
5737 * mem-break.h (clone_all_breakpoints): Update declaration.
5738
5739 2016-07-21 Yao Qi <yao.qi@linaro.org>
5740
5741 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5742 <command_list, handler>: Remove.
5743 (struct gdb_breakpoint): New.
5744 (struct other_breakpoint): New.
5745 (struct reinsert_breakpoint): New.
5746 (is_gdb_breakpoint): New function.
5747 (any_persistent_commands): Update command_list if
5748 is_gdb_breakpoint returns true.
5749 (set_breakpoint): Create breakpoints according to their types.
5750 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5751 (set_gdb_breakpoint_1): Likewise.
5752 (set_gdb_breakpoint): Likewise.
5753 (clear_breakpoint_conditions): Change parameter type to
5754 'struct gdb_breakpoint *'.
5755 (clear_breakpoint_commands): Likewise.
5756 (clear_breakpoint_conditions_and_commands): Likewise.
5757 (add_condition_to_breakpoint): Likewise.
5758 (add_breakpoint_condition): Likewise.
5759 (add_commands_to_breakpoint): Likewise.
5760 (check_breakpoints): Check other_breakpoint.
5761 (clone_one_breakpoint): Clone breakpopint according to its type.
5762 * mem-break.h (struct gdb_breakpoint): Declare.
5763 (set_gdb_breakpoint): Update declaration.
5764 (clear_breakpoint_conditions_and_commands): Likewise.
5765 (add_breakpoint_condition): Likewise.
5766 (add_breakpoint_commands): Likewise.
5767 * server.c (process_point_options): Change parameter type to
5768 'struct gdb_breakpoint *'.
5769
5770 2016-07-21 Yao Qi <yao.qi@linaro.org>
5771
5772 * mem-break.c (set_breakpoint_at): Rename it to ...
5773 (set_breakpoint_type_at): ... it.
5774 (set_breakpoint_at): Call set_breakpoint_type_at.
5775 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5776 * mem-break.h (set_breakpoint_at): Update comments.
5777
5778 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5779
5780 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5781 to buf parameter.
5782 (nios2_store_gregset): Likewise.
5783
5784 2016-07-01 Pedro Alves <palves@redhat.com>
5785 Antoine Tremblay <antoine.tremblay@ericsson.com>
5786
5787 * linux-low.c: Change interface to take the target lwp_info
5788 pointer directly and return void. Handle detaching from a zombie
5789 thread.
5790 (linux_detach_lwp_callback): New function.
5791 (linux_detach): Detach from the leader thread after detaching from
5792 the clone threads.
5793
5794 2016-06-28 Yao Qi <yao.qi@linaro.org>
5795
5796 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5797 for variable new_offset.
5798 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5799 (aarch64_ftrace_insn_reloc_cb): Likewise.
5800 (aarch64_ftrace_insn_reloc_tb): Likewise.
5801 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5802 PRIx64 instead of PRIx32.
5803
5804 2016-06-28 Yao Qi <yao.qi@linaro.org>
5805
5806 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5807 (the_low_target): Install arm_get_syscall_trapinfo.
5808
5809 2016-06-28 Yao Qi <yao.qi@linaro.org>
5810
5811 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5812 function.
5813 (the_low_target): Install aarch64_get_syscall_trapinfo.
5814
5815 2016-06-28 Yao Qi <yao.qi@linaro.org>
5816
5817 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5818 Callers updated.
5819 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5820 Remove parameter sysno.
5821 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5822 sysret.
5823
5824 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5825
5826 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5827 (s390_emit_ne_goto): Likewise.
5828 (s390_emit_lt_goto): Likewise.
5829 (s390_emit_le_goto): Likewise.
5830 (s390_emit_gt_goto): Likewise.
5831 (s390_emit_ge_goto): Likewise.
5832 (s390x_emit_eq_goto): Likewise.
5833 (s390x_emit_ne_goto): Likewise.
5834 (s390x_emit_lt_goto): Likewise.
5835 (s390x_emit_le_goto): Likewise.
5836 (s390x_emit_gt_goto): Likewise.
5837 (s390x_emit_ge_goto): Likewise.
5838 (s390_emit_ops_impl): Mark variable static.
5839 (s390x_emit_ops): Likewise.
5840
5841 2016-06-17 Yao Qi <yao.qi@linaro.org>
5842
5843 * linux-low.c (handle_extended_wait): Call
5844 uninsert_reinsert_breakpoints for the parent process. Remove
5845 reinsert breakpoints from the child process. Reinsert them to
5846 the parent process when vfork is done.
5847 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5848 (reinsert_reinsert_breakpoints): New function.
5849 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5850 (reinsert_reinsert_breakpoints): Declare.
5851
5852 2016-06-17 Yao Qi <yao.qi@linaro.org>
5853
5854 * linux-low.c (handle_extended_wait): If the parent is doing
5855 step-over, remove the reinsert breakpoints from the forked child.
5856
5857 2016-06-17 Yao Qi <yao.qi@linaro.org>
5858
5859 * linux-low.c (unsuspend_all_lwps): Declare.
5860 (linux_low_filter_event): If thread exited, call finish_step_over.
5861 If step-over is finished, unsuspend other threads.
5862
5863 2016-06-17 Yao Qi <yao.qi@linaro.org>
5864
5865 * linux-low.c (linux_resume_one_lwp_throw): Assert
5866 has_reinsert_breakpoints returns false.
5867 * mem-break.c (delete_disabled_breakpoints): Assert
5868 bp type isn't reinsert_breakpoint.
5869
5870 2016-06-17 Yao Qi <yao.qi@linaro.org>
5871
5872 * linux-low.c (maybe_hw_step): New function.
5873 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5874 (finish_step_over): Switch current_thread to lwp temporarily,
5875 and assert has_reinsert_breakpoints returns true.
5876 (proceed_one_lwp): Call maybe_hw_step.
5877 * mem-break.c (has_reinsert_breakpoints): New function.
5878 * mem-break.h (has_reinsert_breakpoints): Declare.
5879
5880 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5881
5882 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5883
5884 2016-05-17 Yao Qi <yao.qi@linaro.org>
5885
5886 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5887 instead of find_inferior.
5888
5889 2016-05-05 Yao Qi <yao.qi@linaro.org>
5890
5891 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5892 Initialize res to zero.
5893
5894 2016-05-05 Yao Qi <yao.qi@linaro.org>
5895
5896 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5897 to uint32_t.
5898
5899 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5900
5901 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5902 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5903 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5904
5905 2016-04-28 Par Olsson <par.olsson@windriver.com>
5906 Simon Marchi <simon.marchi@ericsson.com>
5907
5908 * tracepoint.c (write_inferior_int8): New function.
5909 (cmd_qtenable_disable): Write enable flag using
5910 write_inferior_int8.
5911
5912 2016-04-25 Yao Qi <yao.qi@linaro.org>
5913
5914 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5915 (need_step_over_p): Return zero if the LWP has pending signals
5916 can be delivered on software single step target.
5917
5918 2016-04-25 Yao Qi <yao.qi@linaro.org>
5919
5920 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5921 return instead of error.
5922
5923 2016-04-22 Yao Qi <yao.qi@linaro.org>
5924
5925 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5926 to 23.
5927
5928 2016-04-22 Yao Qi <yao.qi@linaro.org>
5929
5930 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5931 signal when stepping over breakpoint with software single
5932 step.
5933
5934 2016-04-21 Pedro Alves <palves@redhat.com>
5935
5936 * linux-s390-low.c (s390_collect_ptrace_register)
5937 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5938 add casts.
5939 (s390_check_regset): Use void * instead of gdb_byte *.
5940
5941 2016-04-20 Pedro Alves <palves@redhat.com>
5942
5943 * configure: Renegerate.
5944
5945 2016-04-20 Yao Qi <yao.qi@linaro.org>
5946
5947 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5948 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5949 number 16.
5950 (arm_store_gregset): Likewise.
5951
5952 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5953
5954 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5955 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5956 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5957 (amd64-avx-mpx-linux.c): New rules.
5958 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5959 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5960 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5961 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5962 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5963 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5964 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5965 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5966 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5967 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5968 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5969 * linux-x86-low.c (x86_linux_read_description): Add case for
5970 X86_XSTATE_AVX_MPX_MASK.
5971 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5972 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5973 init_registers_i386_avx_mpx_linux.
5974 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5975 (initialize_low_tracepoint): Call
5976 init_registers_i386_avx_mpx_linux.
5977 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5978 (initialize_low_tracepoint): Call
5979 init_registers_amd64_avx_mpx_linux.
5980 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5981 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5982 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5983 declarations.
5984
5985 2016-04-18 Pedro Alves <palves@redhat.com>
5986
5987 * configure: Regenerate.
5988
5989 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5990
5991 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5992 (aarch64_emit_sub): Likewise.
5993
5994 2016-04-12 Pedro Alves <palves@redhat.com>
5995
5996 * utils.c (prepare_to_throw_exception): Delete.
5997
5998 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5999
6000 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
6001
6002 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
6003
6004 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
6005
6006 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
6007
6008 * linux-aarch64-ipa.c: Add <elf.h> include.
6009 * linux-ppc-ipa.c: Add <elf.h> include.
6010 * linux-s390-ipa.c: Add <elf.h> include.
6011
6012 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6013
6014 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
6015 (get_raw_reg_ptr): Likewise.
6016 (get_trace_state_variable_value_ptr): Likewise.
6017 (set_trace_state_variable_value_ptr): Likewise.
6018 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
6019 char *.
6020
6021 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6022 Marcin Kościelnicki <koriakin@0x04.net>
6023
6024 PR/17221
6025 * linux-ppc-low.c (emit_insns): New function.
6026 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
6027 (ppc_emit_prologue): New function.
6028 (ppc_emit_epilogue): New function.
6029 (ppc_emit_add): New function.
6030 (ppc_emit_sub): New function.
6031 (ppc_emit_mul): New function.
6032 (ppc_emit_lsh): New function.
6033 (ppc_emit_rsh_signed): New function.
6034 (ppc_emit_rsh_unsigned): New function.
6035 (ppc_emit_ext): New function.
6036 (ppc_emit_zero_ext): New function.
6037 (ppc_emit_log_not): New function.
6038 (ppc_emit_bit_and): New function.
6039 (ppc_emit_bit_or): New function.
6040 (ppc_emit_bit_xor): New function.
6041 (ppc_emit_bit_not): New function.
6042 (ppc_emit_equal): New function.
6043 (ppc_emit_less_signed): New function.
6044 (ppc_emit_less_unsigned): New function.
6045 (ppc_emit_ref): New function.
6046 (ppc_emit_const): New function.
6047 (ppc_emit_reg): New function.
6048 (ppc_emit_pop): New function.
6049 (ppc_emit_stack_flush): New function.
6050 (ppc_emit_swap): New function.
6051 (ppc_emit_stack_adjust): New function.
6052 (ppc_emit_call): New function.
6053 (ppc_emit_int_call_1): New function.
6054 (ppc_emit_void_call_2): New function.
6055 (ppc_emit_if_goto): New function.
6056 (ppc_emit_goto): New function.
6057 (ppc_emit_eq_goto): New function.
6058 (ppc_emit_ne_goto): New function.
6059 (ppc_emit_lt_goto): New function.
6060 (ppc_emit_le_goto): New function.
6061 (ppc_emit_gt_goto): New function.
6062 (ppc_emit_ge_goto): New function.
6063 (ppc_write_goto_address): New function.
6064 (ppc_emit_ops_impl): New static variable.
6065 (ppc64v1_emit_prologue): New function.
6066 (ppc64v2_emit_prologue): New function.
6067 (ppc64_emit_epilogue): New function.
6068 (ppc64_emit_add): New function.
6069 (ppc64_emit_sub): New function.
6070 (ppc64_emit_mul): New function.
6071 (ppc64_emit_lsh): New function.
6072 (ppc64_emit_rsh_signed): New function.
6073 (ppc64_emit_rsh_unsigned): New function.
6074 (ppc64_emit_ext): New function.
6075 (ppc64_emit_zero_ext): New function.
6076 (ppc64_emit_log_not): New function.
6077 (ppc64_emit_bit_and): New function.
6078 (ppc64_emit_bit_or): New function.
6079 (ppc64_emit_bit_xor): New function.
6080 (ppc64_emit_bit_not): New function.
6081 (ppc64_emit_equal): New function.
6082 (ppc64_emit_less_signed): New function.
6083 (ppc64_emit_less_unsigned): New function.
6084 (ppc64_emit_ref): New function.
6085 (ppc64_emit_const): New function.
6086 (ppc64v1_emit_reg): New function.
6087 (ppc64v2_emit_reg): New function.
6088 (ppc64_emit_pop): New function.
6089 (ppc64_emit_stack_flush): New function.
6090 (ppc64_emit_swap): New function.
6091 (ppc64v1_emit_call): New function.
6092 (ppc64v2_emit_call): New function.
6093 (ppc64v1_emit_int_call_1): New function.
6094 (ppc64v2_emit_int_call_1): New function.
6095 (ppc64v1_emit_void_call_2): New function.
6096 (ppc64v2_emit_void_call_2): New function.
6097 (ppc64_emit_if_goto): New function.
6098 (ppc64_emit_eq_goto): New function.
6099 (ppc64_emit_ne_goto): New function.
6100 (ppc64_emit_lt_goto): New function.
6101 (ppc64_emit_le_goto): New function.
6102 (ppc64_emit_gt_goto): New function.
6103 (ppc64_emit_ge_goto): New function.
6104 (ppc64v1_emit_ops_impl): New static variable.
6105 (ppc64v2_emit_ops_impl): New static variable.
6106 (ppc_emit_ops): New function.
6107 (linux_low_target): Wire in ppc_emit_ops.
6108
6109 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6110 Marcin Kościelnicki <koriakin@0x04.net>
6111
6112 PR/17221
6113 * Makefile.in: Add powerpc-*-ipa.o
6114 * configure.srv: Add ipa_obj for powerpc*-linux.
6115 * linux-ppc-ipa.c: New file.
6116 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6117 includes.
6118 (PPC_FIELD): New macro.
6119 (PPC_SEXT): New macro.
6120 (PPC_OP6): New macro.
6121 (PPC_BO): New macro.
6122 (PPC_LI): New macro.
6123 (PPC_BD): New macro.
6124 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6125 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6126 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6127 (ppc_get_thread_area): New function.
6128 (is_elfv2_inferior): New function.
6129 (gen_ds_form): New function.
6130 (GEN_STD): New macro.
6131 (GEN_STDU): New macro.
6132 (GEN_LD): New macro.
6133 (GEN_LDU): New macro.
6134 (gen_d_form): New function.
6135 (GEN_ADDI): New macro.
6136 (GEN_ADDIS): New macro.
6137 (GEN_LI): New macro.
6138 (GEN_LIS): New macro.
6139 (GEN_ORI): New macro.
6140 (GEN_ORIS): New macro.
6141 (GEN_LWZ): New macro.
6142 (GEN_STW): New macro.
6143 (GEN_STWU): New macro.
6144 (gen_xfx_form): New function.
6145 (GEN_MFSPR): New macro.
6146 (GEN_MTSPR): New macro.
6147 (GEN_MFCR): New macro.
6148 (GEN_MTCR): New macro.
6149 (GEN_SYNC): New macro.
6150 (GEN_LWSYNC): New macro.
6151 (gen_x_form): New function.
6152 (GEN_OR): New macro.
6153 (GEN_MR): New macro.
6154 (GEN_LWARX): New macro.
6155 (GEN_STWCX): New macro.
6156 (GEN_CMPW): New macro.
6157 (gen_md_form): New function.
6158 (GEN_RLDICL): New macro.
6159 (GEN_RLDICR): New macro.
6160 (gen_i_form): New function.
6161 (GEN_B): New macro.
6162 (GEN_BL): New macro.
6163 (gen_b_form): New function.
6164 (GEN_BNE): New macro.
6165 (GEN_LOAD): New macro.
6166 (GEN_STORE): New macro.
6167 (gen_limm): New function.
6168 (gen_atomic_xchg): New function.
6169 (gen_call): New function.
6170 (ppc_relocate_instruction): New function.
6171 (ppc_install_fast_tracepoint_jump_pad): New function.
6172 (ppc_get_min_fast_tracepoint_insn_len): New function.
6173 (ppc_get_ipa_tdesc_idx): New function.
6174 (the_low_target): Wire in the new functions.
6175 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6176 tdescs.
6177 * linux-ppc-tdesc.h: New file.
6178
6179 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6180
6181 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6182 (alloc_jump_pad_buffer): New function.
6183 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6184 (alloc_jump_pad_buffer): New function.
6185 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6186 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6187 (alloc_jump_pad_buffer): New function.
6188 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6189 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6190 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6191 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6192
6193 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6194
6195 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6196 * linux-amd64-ipa.c: Likewise.
6197 * linux-i386-ipa.c: Likewise.
6198 * linux-s390-ipa.c: Likewise.
6199 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6200 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6201 set_trace_state_variable_value_ptr.
6202 (struct ipa_sym_addresses): Likewise.
6203 (symbol_list): Likewise.
6204 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6205 accessing gdb_collect directly.
6206 (gdb_collect_ptr_type): New typedef.
6207 (get_raw_reg_ptr_type): New typedef.
6208 (get_trace_state_variable_value_ptr_type): New typedef.
6209 (set_trace_state_variable_value_ptr_type): New typedef.
6210 (gdb_collect_ptr): New global.
6211 (get_raw_reg_ptr): New global.
6212 (get_trace_state_variable_value_ptr): New global.
6213 (set_trace_state_variable_value_ptr): New global.
6214 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6215 accessing get_raw_reg directly.
6216 (get_get_tsv_func_addr): Likewise for
6217 get_trace_state_variable_value_ptr.
6218 (get_set_tsv_func_addr): Likewise for
6219 set_trace_state_variable_value_ptr.
6220 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6221
6222 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6223
6224 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6225
6226 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6227
6228 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6229 packets.
6230 (relocate_instruction): Remove own_buf.
6231 * server.c (own_buf): Make global.
6232 (handle_v_requests): Make global.
6233 * server.h (own_buf): New declaration.
6234 (handle_v_requests): New prototype.
6235
6236 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6237
6238 PR 18377
6239 * linux-s390-low.c (add_insns): New function.
6240 (s390_emit_prologue): New function.
6241 (s390_emit_epilogue): New function.
6242 (s390_emit_add): New function.
6243 (s390_emit_sub): New function.
6244 (s390_emit_mul): New function.
6245 (s390_emit_lsh): New function.
6246 (s390_emit_rsh_signed): New function.
6247 (s390_emit_rsh_unsigned): New function.
6248 (s390_emit_ext): New function.
6249 (s390_emit_log_not): New function.
6250 (s390_emit_bit_and): New function.
6251 (s390_emit_bit_or): New function.
6252 (s390_emit_bit_xor): New function.
6253 (s390_emit_bit_not): New function.
6254 (s390_emit_equal): New function.
6255 (s390_emit_less_signed): New function.
6256 (s390_emit_less_unsigned): New function.
6257 (s390_emit_ref): New function.
6258 (s390_emit_if_goto): New function.
6259 (s390_emit_goto): New function.
6260 (s390_write_goto_address): New function.
6261 (s390_emit_litpool): New function.
6262 (s390_emit_const): New function.
6263 (s390_emit_call): New function.
6264 (s390_emit_reg): New function.
6265 (s390_emit_pop): New function.
6266 (s390_emit_stack_flush): New function.
6267 (s390_emit_zero_ext): New function.
6268 (s390_emit_swap): New function.
6269 (s390_emit_stack_adjust): New function.
6270 (s390_emit_set_r2): New function.
6271 (s390_emit_int_call_1): New function.
6272 (s390_emit_void_call_2): New function.
6273 (s390_emit_eq_goto): New function.
6274 (s390_emit_ne_goto): New function.
6275 (s390_emit_lt_goto): New function.
6276 (s390_emit_le_goto): New function.
6277 (s390_emit_gt_goto): New function.
6278 (s390_emit_ge_goto): New function.
6279 (s390x_emit_prologue): New function.
6280 (s390x_emit_epilogue): New function.
6281 (s390x_emit_add): New function.
6282 (s390x_emit_sub): New function.
6283 (s390x_emit_mul): New function.
6284 (s390x_emit_lsh): New function.
6285 (s390x_emit_rsh_signed): New function.
6286 (s390x_emit_rsh_unsigned): New function.
6287 (s390x_emit_ext): New function.
6288 (s390x_emit_log_not): New function.
6289 (s390x_emit_bit_and): New function.
6290 (s390x_emit_bit_or): New function.
6291 (s390x_emit_bit_xor): New function.
6292 (s390x_emit_bit_not): New function.
6293 (s390x_emit_equal): New function.
6294 (s390x_emit_less_signed): New function.
6295 (s390x_emit_less_unsigned): New function.
6296 (s390x_emit_ref): New function.
6297 (s390x_emit_if_goto): New function.
6298 (s390x_emit_const): New function.
6299 (s390x_emit_call): New function.
6300 (s390x_emit_reg): New function.
6301 (s390x_emit_pop): New function.
6302 (s390x_emit_stack_flush): New function.
6303 (s390x_emit_zero_ext): New function.
6304 (s390x_emit_swap): New function.
6305 (s390x_emit_stack_adjust): New function.
6306 (s390x_emit_int_call_1): New function.
6307 (s390x_emit_void_call_2): New function.
6308 (s390x_emit_eq_goto): New function.
6309 (s390x_emit_ne_goto): New function.
6310 (s390x_emit_lt_goto): New function.
6311 (s390x_emit_le_goto): New function.
6312 (s390x_emit_gt_goto): New function.
6313 (s390x_emit_ge_goto): New function.
6314 (s390_emit_ops): New function.
6315 (struct linux_target_ops): Fill in emit_ops hook.
6316
6317 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6318
6319 PR 18377
6320 * Makefile.in: Add s390 IPA files.
6321 * configure.srv: Build IPA for s390.
6322 * linux-s390-ipa.c: New file.
6323 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6324 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6325 (tdesc_s390_linux32): Likewise.
6326 (init_registers_s390_linux32v1): Likewise.
6327 (tdesc_s390_linux32v1): Likewise.
6328 (init_registers_s390_linux32v2): Likewise.
6329 (tdesc_s390_linux32v2): Likewise.
6330 (init_registers_s390_linux64): Likewise.
6331 (tdesc_s390_linux64): Likewise.
6332 (init_registers_s390_linux64v1): Likewise.
6333 (tdesc_s390_linux64v1): Likewise.
6334 (init_registers_s390_linux64v2): Likewise.
6335 (tdesc_s390_linux64v2): Likewise.
6336 (init_registers_s390_te_linux64): Likewise.
6337 (tdesc_s390_te_linux64): Likewise.
6338 (init_registers_s390_vx_linux64): Likewise.
6339 (tdesc_s390_vx_linux64): Likewise.
6340 (init_registers_s390_tevx_linux64): Likewise.
6341 (tdesc_s390_tevx_linux64): Likewise.
6342 (init_registers_s390x_linux64): Likewise.
6343 (tdesc_s390x_linux64): Likewise.
6344 (init_registers_s390x_linux64v1): Likewise.
6345 (tdesc_s390x_linux64v1): Likewise.
6346 (init_registers_s390x_linux64v2): Likewise.
6347 (tdesc_s390x_linux64v2): Likewise.
6348 (init_registers_s390x_te_linux64): Likewise.
6349 (tdesc_s390x_te_linux64): Likewise.
6350 (init_registers_s390x_vx_linux64): Likewise.
6351 (tdesc_s390x_vx_linux64): Likewise.
6352 (init_registers_s390x_tevx_linux64): Likewise.
6353 (tdesc_s390x_tevx_linux64): Likewise.
6354 (have_hwcap_s390_vx): New static variable.
6355 (s390_arch_setup): Fill have_hwcap_s390_vx.
6356 (s390_get_thread_area): New function.
6357 (s390_ft_entry_gpr_esa): New const.
6358 (s390_ft_entry_gpr_zarch): New const.
6359 (s390_ft_entry_misc): New const.
6360 (s390_ft_entry_fr): New const.
6361 (s390_ft_entry_vr): New const.
6362 (s390_ft_main_31): New const.
6363 (s390_ft_main_64): New const.
6364 (s390_ft_exit_fr): New const.
6365 (s390_ft_exit_vr): New const.
6366 (s390_ft_exit_misc): New const.
6367 (s390_ft_exit_gpr_esa): New const.
6368 (s390_ft_exit_gpr_zarch): New const.
6369 (append_insns): New function.
6370 (s390_relocate_instruction): New function.
6371 (s390_install_fast_tracepoint_jump_pad): New function.
6372 (s390_get_min_fast_tracepoint_insn_len): New function.
6373 (s390_get_ipa_tdesc_idx): New function.
6374 (struct linux_target_ops): Wire in the above functions.
6375 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6376 * linux-s390-tdesc.h: New file.
6377
6378 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6379
6380 * linux-s390-low.c (s390_supports_tracepoints): New function.
6381 (struct linux_target_ops): Fill supports_tracepoints hook.
6382
6383 2016-03-18 Yao Qi <yao.qi@linaro.org>
6384
6385 * linux-low.c (lwp_signal_can_be_delivered): New function.
6386 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6387
6388 2016-03-18 Yao Qi <yao.qi@linaro.org>
6389
6390 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6391 0 if signal is enqueued. Remove 'signal' from one debugging
6392 message. Move one debugging message to some lines below.
6393 Remove code setting 'signal' to 0.
6394
6395 2016-03-18 Yao Qi <yao.qi@linaro.org>
6396
6397 * linux-low.c (linux_low_filter_event): Remove redundant
6398 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6399
6400 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6401
6402 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6403 (struct linux_target_ops): Wire in the above.
6404
6405 2016-03-03 Yao Qi <yao.qi@linaro.org>
6406
6407 * linux-low.c: Update comments to start_step_over.
6408
6409 2016-03-03 Yao Qi <yao.qi@linaro.org>
6410
6411 PR server/19736
6412 * linux-low.c (handle_extended_wait): Set child suspended
6413 if event_lwp->bp_reinsert isn't zero.
6414
6415 2016-03-02 Yao Qi <yao.qi@linaro.org>
6416
6417 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6418 enqueue_pending_signal.
6419
6420 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6421
6422 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6423 is actually loaded.
6424
6425 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6426
6427 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6428 (s390_regmap_3264) [!__s390x__]: New global.
6429 (s390_collect_ptrace_register): Skip map entries containing -1.
6430 (s390_supply_ptrace_register): Ditto.
6431 (s390_fill_gprs_high): New function.
6432 (s390_store_gprs_high): New function.
6433 (s390_regsets): Add NT_S390_HIGH_GPRS.
6434 (s390_get_hwcap): Enable on 31-bit.
6435 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6436 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6437 Detect NT_S390_HIGH_GPRS.
6438 (s390_usrregs_info_3264): Enable on 31-bit.
6439 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6440 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6441
6442 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6443
6444 PR gdb/13808
6445 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6446 * configure.srv: Ditto.
6447 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6448 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6449 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6450 (init_registers_amd64_linux): Remove prototype.
6451 (tdesc_amd64_linux): Remove declaration.
6452 (get_ipa_tdesc): New function.
6453 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6454 initialize remaining tdescs.
6455 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6456 (init_registers_i386_linux): Remove prototype.
6457 (tdesc_i386_linux): Remove declaration.
6458 (get_ipa_tdesc): New function.
6459 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6460 initialize remaining tdescs.
6461 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6462 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6463 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6464 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6465 (x86_get_ipa_tdesc_idx): New function.
6466 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6467 * linux-x86-tdesc.h: New file.
6468 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6469 (target_get_ipa_tdesc_idx): New macro.
6470 * tracepoint.c (ipa_tdesc_idx): New macro.
6471 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6472 (symbol_list): Add ipa_tdesc_idx.
6473 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6474 (ipa_tdesc): Remove.
6475 (ipa_tdesc_idx): New variable.
6476 (get_context_regcache): Use get_ipa_tdesc.
6477 (gdb_collect): Ditto.
6478 (gdb_probe): Ditto.
6479 * tracepoint.h (get_ipa_tdesc): New prototype.
6480 (ipa_tdesc): Remove.
6481
6482 2016-02-24 Pedro Alves <palves@redhat.com>
6483
6484 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6485 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6486 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6487 Factor out common code between the USE_SIGTRAP_SIGINFO and
6488 !USE_SIGTRAP_SIGINFO blocks.
6489 (linux_low_filter_event): Call save_stop_reason instead of
6490 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6491 Update comments.
6492 (linux_wait_1): Update comments.
6493
6494 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6495
6496 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6497 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6498 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6499 ppc_insert_point, ppc_remove_point.
6500
6501 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6502
6503 * linux-s390-low.c (s390_supports_z_point_type): New function.
6504 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6505
6506 2016-02-16 Yao Qi <yao.qi@linaro.org>
6507
6508 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6509 PC. Get pc from regcache_read_pc.
6510
6511 2016-02-12 Yao Qi <yao.qi@linaro.org>
6512
6513 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6514 or linux_get_pc_32bit.
6515 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6516
6517 2016-02-12 Yao Qi <yao.qi@linaro.org>
6518
6519 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6520 arm_linux_get_next_pcs_fixup.
6521
6522 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6523
6524 * tracepoint.c (x_tracepoint_action_download): Change
6525 write_inferior_data_ptr to write_inferior_data_pointer.
6526 (cmd_qtstart): Likewise.
6527 (write_inferior_data_ptr): Remove.
6528 (download_agent_expr): Change write_inferior_data_ptr to
6529 write_inferior_data_pointer.
6530 (download_tracepoint_1): Likewise.
6531 (download_tracepoint): Likewise.
6532 (download_trace_state_variables): Likewise.
6533
6534 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6535 Marcin Kościelnicki <koriakin@0x04.net>
6536
6537 * tracepoint.c (struct tracepoint_action_ops): Remove.
6538 (struct tracepoint_action): Remove ops.
6539 (m_tracepoint_action_download, r_tracepoint_action_download)
6540 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6541 size and offset accordingly.
6542 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6543 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6544 (tracepoint_action_send, tracepoint_action_download): New functions.
6545 Helpers for trace action handlers.
6546 (add_tracepoint_action): Remove setup actions ops.
6547 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6548
6549 2016-02-10 Yao Qi <yao.qi@linaro.org>
6550
6551 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6552
6553 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6554
6555 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6556 to AC_OUTPUT.
6557 * configure: Regenerate.
6558
6559 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6560
6561 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6562 void * to gdb_byte *.
6563 * linux-low.c (siginfo_fixup): Likewise.
6564 (linux_xfer_siginfo): Likewise.
6565 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6566 Likewise.
6567 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6568
6569 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6570
6571 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6572 to srv_tgtobj.
6573 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6574 to srv_tgtobj.
6575 * linux-x86-low.c [__x86_64__]: Include
6576 "nat/amd64-linux-siginfo.h".
6577 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6578 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6579 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6580 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6581 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6582 (cpt_si_fd, si_timerid, si_overrun): Move from
6583 nat/amd64-linux-siginfo.c.
6584 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6585
6586 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6587
6588 * server.c (skip_to_semicolon): Remove.
6589 (process_point_options): Use strchrnul instead of
6590 skip_to_semicolon.
6591
6592 2016-01-26 Yao Qi <yao.qi@linaro.org>
6593
6594 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6595 * linux-low.c (install_software_single_step_breakpoints): Don't
6596 call regcache_read_pc.
6597 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6598 argument pc.
6599
6600 2016-01-26 Yao Qi <yao.qi@linaro.org>
6601
6602 * linux-low.c (install_software_single_step_breakpoints): Call
6603 regcache_read_pc instead of get_pc.
6604
6605 2016-01-26 Yao Qi <yao.qi@linaro.org>
6606
6607 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6608 (unblock_async_io): Rename to ...
6609 (block_unblock_async_io): ... it. New function.
6610 (enable_async_io): Don't install SIGIO handler. Unblock it
6611 instead.
6612 (disable_async_io): Don't ignore SIGIO. Block it instead.
6613 (initialize_async_io): Install SIGIO handler. Don't call
6614 unblock_async_io.
6615
6616 2016-01-26 Yao Qi <yao.qi@linaro.org>
6617
6618 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6619 first character is '\003', call *the_target->request_interrupt.
6620
6621 2016-01-25 Yao Qi <yao.qi@linaro.org>
6622
6623 * remote-utils.c (new_thread_notify): Remove.
6624 (dead_thread_notify): Likewise.
6625 * remote-utils.h (new_thread_notify): Remove declaration.
6626 (dead_thread_notify): Likewise.
6627
6628 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6629
6630 * gdb.trace/pending.exp: Fix expected message on continue.
6631
6632 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6633
6634 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6635 it works properly on big-endian machines where sizeof (CORE_ADDR)
6636 != sizeof (void *).
6637
6638 2016-01-21 Pedro Alves <palves@redhat.com>
6639
6640 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6641 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6642 * configure: Regenerate.
6643
6644 2016-01-21 Yao Qi <yao.qi@linaro.org>
6645
6646 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6647 is_thumb and set it according to CPSR saved on the stack.
6648 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6649 arm_sigreturn_next_pc.
6650
6651 2016-01-18 Yao Qi <yao.qi@linaro.org>
6652
6653 * linux-low.c (linux_set_pc_64bit): New function.
6654 (linux_get_pc_64bit): New function.
6655 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6656 Declare.
6657 * linux-sparc-low.c (debug_threads): Remove declaration.
6658 (sparc_get_pc): Remove.
6659 (the_low_target): Use linux_get_pc_64bit instead of
6660 sparc_get_pc.
6661 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6662 (the_low_target): Use linux_get_pc_64bit and
6663 linux_set_pc_64bit.
6664
6665 2016-01-18 Yao Qi <yao.qi@linaro.org>
6666
6667 * linux-arm-low.c (debug_threads): Remove declaration.
6668 (arm_get_pc, arm_set_pc): Remove.
6669 (the_low_target): Use linux_get_pc_32bit and
6670 linux_set_pc_32bit.
6671 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6672 (the_low_target): Use linux_get_pc_32bit and
6673 linux_set_pc_32bit.
6674 * linux-cris-low.c (debug_threads): Remove declaration.
6675 (cris_get_pc, cris_set_pc,): Remove.
6676 (the_low_target): Use linux_get_pc_32bit and
6677 linux_set_pc_32bit.
6678 * linux-crisv32-low.c (debug_threads): Remove declaration.
6679 (cris_get_pc, cris_set_pc): Remove.
6680 (the_low_target): Use linux_get_pc_32bit and
6681 linux_set_pc_32bit.
6682 * linux-low.c: Include inttypes.h.
6683 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6684 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6685 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6686 (the_low_target): Use linux_get_pc_32bit and
6687 linux_set_pc_32bit.
6688 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6689 (the_low_target): Use linux_get_pc_32bit and
6690 linux_set_pc_32bit.
6691 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6692 (the_low_target): Use linux_get_pc_32bit and
6693 linux_set_pc_32bit.
6694 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6695 (the_low_target): Use linux_get_pc_32bit and
6696 linux_set_pc_32bit.
6697 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6698 (the_low_target): Use linux_get_pc_32bit and
6699 linux_set_pc_32bit.
6700
6701 2016-01-18 Gary Benson <gbenson@redhat.com>
6702
6703 * configure.ac (AC_FUNC_FORK): New check.
6704 * config.in: Regenerate.
6705 * configure: Likewise.
6706
6707 2016-01-14 Yao Qi <yao.qi@linaro.org>
6708
6709 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6710 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6711 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6712 arm_get_next_pcs_ctor.
6713
6714 2016-01-12 Josh Stone <jistone@redhat.com>
6715 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6716
6717 * inferiors.h: Include "gdb_vecs.h".
6718 (struct process_info): Add syscalls_to_catch.
6719 * inferiors.c (remove_process): Free syscalls_to_catch.
6720 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6721 syscall_return stops.
6722 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6723 * server.c (handle_general_set): Handle QCatchSyscalls.
6724 (handle_query): Report support for QCatchSyscalls.
6725 * target.h (struct target_ops): Add supports_catch_syscall.
6726 (target_supports_catch_syscall): New macro.
6727 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6728 (struct lwp_info): Add syscall_state.
6729 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6730 Maintain syscall_state and syscalls_to_catch across exec.
6731 (get_syscall_trapinfo): New function, proxy to the_low_target.
6732 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6733 (linux_low_filter_event): Toggle syscall_state entry/return for
6734 syscall traps, and set it ignored for all others.
6735 (gdb_catching_syscalls_p): New function.
6736 (gdb_catch_this_syscall_p): New function.
6737 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6738 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6739 (linux_supports_catch_syscall): New function.
6740 (linux_target_ops): Install it.
6741 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6742 (the_low_target): Install it.
6743
6744 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6745
6746 * acinclude.m4: Include new ../warning.m4 file.
6747 * configure: Regenerated.
6748 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6749
6750 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6751
6752 * ax.c (is_goto_target): Mark static.
6753 * linux-low.c (register_addr): Likewise.
6754 (linux_fetch_registers, linux_store_registers): Likewise.
6755 * mem-break.c (any_persistent_commands): Fix old prototype.
6756 (add_commands_to_breakpoint): Mark static.
6757 * regcache.c (find_register_by_name): Delete unused func.
6758 * remote-utils.c (hex_or_minus_one): Mark static.
6759 * server.c (monitor_show_help): Mark static.
6760 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6761 handle_v_requests): Likewise.
6762
6763 2016-01-12 Pedro Alves <palves@redhat.com>
6764
6765 Remove use of the registered trademark symbol throughout.
6766
6767 2016-01-08 Yao Qi <yao.qi@linaro.org>
6768
6769 * remote-utils.c (getpkt): If c is '\003', call target hook
6770 request_interrupt.
6771
6772 2016-01-06 Yao Qi <yao.qi@linaro.org>
6773
6774 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6775 linux-aarch32-low.c.
6776 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6777 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6778 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6779 (thumb2_breakpoint): Declare.
6780 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6781 linux-aarch32-low.h.
6782 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6783 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6784 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6785
6786 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6787
6788 * gdbreplay.c (gdbreplay_version): Change copyright year in
6789 version message.
6790 * server.c (gdbserver_version): Likewise.
6791
6792 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6793
6794 * server.c (crc32_table): Delete.
6795 (crc32): Use libiberty's xcrc32 function.
6796
6797 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6798
6799 * lynx-low.c (lynx_delete_thread_callback): New function.
6800 (lynx_mourn): Properly delete our process and all of its
6801 threads. Remove call to clear_inferiors.
6802
6803 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6804
6805 * target.c (thread_search_callback): Add check that
6806 the thread_stopped target callback is not NULL before
6807 calling it.
6808
6809 2015-12-21 Yao Qi <yao.qi@linaro.org>
6810
6811 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6812 arm breakpoint.
6813
6814 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6815
6816 * server.c (handle_query): Call target_supports_software_single_step.
6817
6818 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6819
6820 * linux-low.c (single_step): New function.
6821 (linux_resume_one_lwp_throw): Call single_step.
6822 (start_step_over): Likewise.
6823
6824 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6825
6826 * Makefile.in (SFILES): Append arch/arm-linux.c,
6827 arch/arm-get-next-pcs.c.
6828 (arm-linux.o): New rule.
6829 (arm-get-next-pcs.o): New rule.
6830 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6831 arm-linux.o.
6832 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6833 to linux-aarch32-low.c.
6834 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6835 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6836 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6837 (thumb2_breakpoint_len): Likewise.
6838 (arm_is_thumb_mode): Make non-static.
6839 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6840 from linux-aarch32-low.c.
6841 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6842 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6843 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6844 (thumb2_breakpoint_len): Likewise.
6845 (arm_is_thumb_mode): New declaration.
6846 * linux-arm-low.c: Include arch/arm-linux.h
6847 aarch/arm-get-next-pcs.h, sys/syscall.h.
6848 (get_next_pcs_ops): New struct.
6849 (get_next_pcs_addr_bits_remove): New function.
6850 (get_next_pcs_is_thumb): New function.
6851 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6852 (arm_sigreturn_next_pc): Likewise.
6853 (get_next_pcs_syscall_next_pc): Likewise.
6854 (arm_gdbserver_get_next_pcs): Likewise.
6855 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6856 Initialize.
6857 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6858 * server.h: Include gdb_vecs.h.
6859
6860 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6861
6862 * Makefile.in (SFILES): Append common/common-regcache.c.
6863 (OBS): Append common-regcache.o.
6864 (common-regcache.o): New rule.
6865 * regcache.c (init_register_cache): Initialize cache to
6866 REG_UNAVAILABLE.
6867 (regcache_raw_read_unsigned): New function.
6868 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6869 register_status enum.
6870
6871 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6872
6873 * linux-aarch64-low.c (the_low_targets): Rename
6874 breakpoint_reinsert_addr to get_next_pcs.
6875 * linux-arm-low.c (the_low_targets): Likewise.
6876 * linux-bfin-low.c (the_low_targets): Likewise.
6877 * linux-cris-low.c (the_low_targets): Likewise.
6878 * linux-crisv32-low.c (the_low_targets): Likewise.
6879 * linux-low.c (can_software_single_step): Likewise.
6880 (install_software_single_step_breakpoints): New function.
6881 (start_step_over): Use install_software_single_step_breakpoints.
6882 * linux-low.h: New CORE_ADDR vector.
6883 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6884 get_next_pcs.
6885 * linux-mips-low.c (the_low_targets): Likewise.
6886 * linux-nios2-low.c (the_low_targets): Likewise.
6887 * linux-sparc-low.c (the_low_targets): Likewise.
6888
6889 2015-12-17 Pedro Alves <palves@redhat.com>
6890
6891 * linux-low.c (linux_kill_one_lwp): Remove references to
6892 LinuxThreads.
6893 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6894 to 'kill'.
6895 (linux_init_signals): Delete.
6896 (initialize_low): Adjust.
6897 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6898
6899 2015-12-16 Pedro Alves <palves@redhat.com>
6900
6901 * configure.ac (compiler warning flags): When testing a
6902 -Wno-foo option, check whether -Wfoo works instead.
6903 * configure: Regenerate.
6904
6905 2015-12-11 Don Breazeal <donb@codesourcery.com>
6906
6907 * server.c (process_serial_event): Don't exit from gdbserver
6908 in remote mode if there are still active inferiors.
6909
6910 2015-12-11 Yao Qi <yao.qi@linaro.org>
6911
6912 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6913 arm_breakpoint_at if the process is 32-bit.
6914
6915 2015-12-11 Yao Qi <yao.qi@linaro.org>
6916
6917 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6918 arm breakpoint.
6919
6920 2015-12-07 Yao Qi <yao.qi@linaro.org>
6921
6922 * configure.srv: Append arm.o to srv_tgtobj for
6923 aarch64*-*-linux* target.
6924 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6925 from linux-arm-low.c.
6926 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6927 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6928 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6929 (thumb2_breakpoint_len): Likewise.
6930 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6931 (arm_breakpoint_kinds): Likewise.
6932 (arm_breakpoint_kind_from_pc): Likewise.
6933 (arm_sw_breakpoint_from_kind): Likewise.
6934 (arm_breakpoint_kind_from_current_state): Likewise.
6935 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6936 (arm_sw_breakpoint_from_kind): Declare.
6937 (arm_breakpoint_kind_from_current_state): Declare.
6938 (arm_breakpoint_at): Declare.
6939 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6940 arm_sw_breakpoint_from_kind if process is 32-bit.
6941 (aarch64_breakpoint_kind_from_pc): New function.
6942 (aarch64_breakpoint_kind_from_current_state): New function.
6943 (the_low_target): Initialize fields breakpoint_kind_from_pc
6944 and breakpoint_kind_from_current_state.
6945 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6946 linux-aarch32-low.c.
6947 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6948 (arm_breakpoint, arm_breakpoint_len): Likewise.
6949 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6950 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6951 (arm_is_thumb_mode): Likewise.
6952 (arm_breakpoint_at): Likewise.
6953 (arm_breakpoint_kind_from_pc): Likewise.
6954 (arm_sw_breakpoint_from_kind): Likewise.
6955 (arm_breakpoint_kind_from_current_state): Likewise.
6956
6957 Revert:
6958 2015-08-04 Yao Qi <yao.qi@linaro.org>
6959
6960 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6961 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6962 * server.c (extended_protocol): Remove "static".
6963 * server.h (extended_protocol): Declare it.
6964
6965 2015-12-04 Josh Stone <jistone@redhat.com>
6966
6967 * target.h (struct target_ops) <arch_setup>: Rename to ...
6968 (struct target_ops) <post_create_inferior>: ... this.
6969 (target_arch_setup): Rename to ...
6970 (target_post_create_inferior): ... this, calling post_create_inferior.
6971 * server.c (start_inferior): Update target_arch_setup calls to
6972 target_post_create_inferior.
6973 * linux-low.c (linux_low_ptrace_options): Forward declare.
6974 (linux_arch_setup): Update its comment for general use.
6975 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6976 (struct linux_target_ops): Use linux_post_create_inferior.
6977 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6978 to post_create_inferior.
6979 * nto-low.c (struct nto_target_ops): Likewise.
6980 * spu-low.c (struct spu_target_ops): Likewise.
6981 * win32-low.c (struct win32_target_ops): Likewise.
6982
6983 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6984
6985 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6986
6987 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6988
6989 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6990 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6991 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6992 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6993 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6994 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6995 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6996 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6997 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6998 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6999 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
7000 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7001
7002 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7003
7004 * linux-low.c (linux_look_up_symbols): Don't call
7005 linux_supports_traceclone.
7006 * linux-low.h (thread_db_init): Remove use_events argument.
7007 * thread-db.c (thread_db_use_event): Remove global variable.
7008 (struct thread_db) <td_thr_event_enable_p>: Remove field.
7009 (struct thread_db) <td_create_bp>: Remove field.
7010 (thread_db_create_event): Remove function.
7011 (thread_db_enable_reporting): Likewise.
7012 (find_one_thread): Don't check for thread_db_use_events.
7013 (attach_thread): Likewise.
7014 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
7015 (try_thread_db_load_1): Don't check for thread_db_use_events.
7016 (thread_db_init): Remove use_events argument and thread events
7017 handling.
7018 (remove_thread_event_breakpoints): Remove function.
7019 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
7020
7021 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7022
7023 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
7024 New function.
7025 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7026 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
7027 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7028 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
7029 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
7030 Initialize.
7031 * linux-crisv32-low.c (cris_supports_hardware_single_step):
7032 New function.
7033 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7034 * linux-low.c (can_hardware_single_step): Use
7035 supports_hardware_single_step.
7036 (can_software_single_step): New function.
7037 (start_step_over): Call can_software_single_step.
7038 (linux_supports_hardware_single_step): New function.
7039 (struct target_ops) <supports_software_single_step>: Initialize.
7040 * linux-low.h (struct linux_target_ops)
7041 <supports_hardware_single_step>: Initialize.
7042 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
7043 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7044 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
7045 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
7046 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
7047 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7048 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
7049 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7050 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
7051 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
7052 Initialize.
7053 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
7054 (struct linux_target_ops) <tile_supports_hardware_single_step>:
7055 Initialize.
7056 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
7057 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7058 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
7059 New function.
7060 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7061 * target.h (struct target_ops): <supports_software_single_step>:
7062 New field.
7063 (target_supports_software_single_step): New macro.
7064
7065 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7066
7067 * linux-low.c (linux_wait_1): Fix pc advance condition.
7068 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
7069 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
7070
7071 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7072
7073 * linux-arm-low.c (arm_is_thumb_mode): New function.
7074 (arm_breakpoint_at): Use arm_is_thumb_mode.
7075 (arm_breakpoint_kind_from_current_state): New function.
7076 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
7077 Initialize.
7078 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
7079 (linux_breakpoint_kind_from_current_state): New function.
7080 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
7081 * linux-low.h (struct linux_target_ops)
7082 <breakpoint_kind_from_current_state>: New field.
7083 * target.h (struct target_ops): Likewise.
7084 (target_breakpoint_kind_from_current_state): New macro.
7085
7086 2015-11-30 Pedro Alves <palves@redhat.com>
7087
7088 * linux-low.c (linux_resume): Wake up the event loop before
7089 returning.
7090
7091 2015-11-30 Pedro Alves <palves@redhat.com>
7092
7093 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
7094 check.
7095 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7096 to -1.
7097 * target.c (struct thread_search): New structure.
7098 (thread_search_callback): New function.
7099 (prev_general_thread): New global.
7100 (prepare_to_access_memory, done_accessing_memory): New functions.
7101 * target.h (prepare_to_access_memory, done_accessing_memory):
7102 Replace macros with function declarations.
7103
7104 2015-11-30 Pedro Alves <palves@redhat.com>
7105
7106 PR 14618
7107 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7108 report TARGET_WAITKIND_NO_RESUMED.
7109 * remote-utils.c (prepare_resume_reply): Handle
7110 TARGET_WAITKIND_NO_RESUMED.
7111 * server.c (report_no_resumed): New global.
7112 (handle_query) <qSupported>: Handle "no-resumed+". Report
7113 "no-resumed+" support.
7114 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7115 return error if the client doesn't support no-resumed events.
7116 (push_stop_notification): New function.
7117 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7118 events if the client supports them.
7119
7120 2015-11-30 Pedro Alves <palves@redhat.com>
7121
7122 * linux-low.c (thread_still_has_status_pending_p): Don't check
7123 vCont;t here.
7124 (lwp_resumed): New function.
7125 (status_pending_p_callback): Return early if the LWP is not
7126 supposed to be resumed.
7127
7128 2015-11-30 Pedro Alves <palves@redhat.com>
7129
7130 * linux-low.c (handle_extended_wait): Assert that the LWP's
7131 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7132 thread create events, leave the new child's status pending.
7133 (linux_low_filter_event): If GDB wants to hear about thread exit
7134 events, leave the LWP marked dead and don't delete it.
7135 (linux_wait_for_event_filtered): Don't check for thread exit.
7136 (filter_exit_event): New function.
7137 (linux_wait_1): Use it, when returning an exit event.
7138 (linux_resume_one_lwp_throw): Assert that the LWP's
7139 waitstatus is TARGET_WAITKIND_IGNORE.
7140 * remote-utils.c (prepare_resume_reply): Handle
7141 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7142 * server.c (report_thread_events): New global.
7143 (handle_general_set): Handle QThreadEvents.
7144 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7145 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7146 TARGET_WAITKIND_THREAD_EXITED.
7147 * server.h (report_thread_events): Declare.
7148
7149 2015-11-30 Pedro Alves <palves@redhat.com>
7150
7151 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7152 the thread's last_resume_kind was resume_stop.
7153
7154 2015-11-30 Pedro Alves <palves@redhat.com>
7155
7156 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7157 before returning.
7158
7159 2015-11-30 Pedro Alves <palves@redhat.com>
7160
7161 * server.c (handle_v_requests): Handle vCtrlC.
7162
7163 2015-11-30 Pedro Alves <palves@redhat.com>
7164
7165 * gdbthread.h (find_any_thread_of_pid): Declare.
7166 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7167 functions.
7168 * server.c (handle_query): If current_thread is NULL, look for
7169 another thread of the selected process.
7170
7171 2015-11-26 Daniel Colascione <dancol@dancol.org>
7172 Simon Marchi <simon.marchi@ericsson.com>
7173
7174 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7175 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7176 name in reply.
7177 * target.h (struct target_ops) <thread_name>: New field.
7178 (target_thread_name): New macro.
7179
7180 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7181
7182 * regcache.h (regcache_invalidate_pid): Add declaration.
7183 * regcache.c (regcache_invalidate_pid): New function, extracted
7184 from regcache_invalidate.
7185 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7186 Add trivial documentation comment.
7187 * lynx-low.c: Use regcache_invalidate_pid instead of
7188 regcache_invalidate.
7189
7190 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7191
7192 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7193 and Elf64_auxv_t if the target is Android.
7194
7195 2015-11-22 Doug Evans <xdje42@gmail.com>
7196
7197 * target.h: #include <sys/types.h>.
7198
7199 2015-11-19 Pedro Alves <palves@redhat.com>
7200
7201 * linux-low.c (linux_process_qsupported): Change prototype.
7202 Adjust.
7203 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7204 Change prototype.
7205 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7206 and adjust to loop over all features.
7207 * server.c (handle_query) <qSupported>: Adjust to call
7208 target_process_qsupported once, passing it a vector of unprocessed
7209 features.
7210 * target.h (struct target_ops) <process_qsupported>: Change
7211 prototype.
7212 (target_process_qsupported): Adjust.
7213
7214 2015-11-19 Pedro Alves <palves@redhat.com>
7215
7216 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7217 mode.
7218 * configure: Regenerate.
7219
7220 2015-11-19 Pedro Alves <palves@redhat.com>
7221
7222 * configure: Regenerate.
7223
7224 2015-11-19 Yao Qi <yao.qi@linaro.org>
7225
7226 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7227 type to uint32_t.
7228
7229 2015-11-19 Yao Qi <yao.qi@linaro.org>
7230
7231 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7232 (struct aarch64_operand): Move enum out.
7233
7234 2015-11-19 Yao Qi <yao.qi@linaro.org>
7235
7236 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7237 struct user_fpsimd_state *.
7238 (aarch64_store_fpregset): Likewise.
7239
7240 2015-11-19 Yao Qi <yao.qi@linaro.org>
7241
7242 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7243 struct user_pt_regs *.
7244 (aarch64_store_gregset): Likewise.
7245
7246 2015-11-18 Pedro Alves <palves@redhat.com>
7247
7248 * Makefile.in (all_object_files): Add $IPA_OBJS.
7249
7250 2015-11-17 Pedro Alves <palves@redhat.com>
7251
7252 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7253 GDB_SIGNAL_0 and gdb_signal_to_string.
7254
7255 2015-11-17 Pedro Alves <palves@redhat.com>
7256
7257 * win32-low.c (handle_output_debug_string): Remove parameter.
7258 (win32_kill): Remove our_status local and adjust call to
7259 handle_output_debug_string.
7260 (get_child_debug_event): Adjust call to
7261 handle_output_debug_string.
7262
7263 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7264
7265 * linux-mips-low.c (mips_fill_gregset): Add cast.
7266 (mips_store_gregset): Likewise.
7267 (mips_fill_fpregset): Likewise.
7268 (mips_store_fpregset): Likewise.
7269
7270 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7271
7272 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7273 priv.
7274
7275 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7276
7277 * linux-mips-low.c (mips_linux_new_thread): Change type of
7278 watch_type to enum target_hw_bp_type.
7279
7280 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7281
7282 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7283 Change return type to arm_hwbp_type.
7284
7285 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7286
7287 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7288 (arm_store_gregset): Likewise.
7289 * linux-arm-low.c (arm_get_hwcap): Likewise.
7290 (arm_read_description): Likewise.
7291
7292 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7293
7294 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7295
7296 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7297
7298 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7299 (ppc_fill_vsxregset): Likewise.
7300 (ppc_store_vsxregset): Likewise.
7301 (ppc_fill_vrregset): Likewise.
7302 (ppc_store_vrregset): Likewise.
7303 (ppc_fill_evrregset): Likewise.
7304 (ppc_store_evrregset): Likewise.
7305
7306 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7307
7308 * linux-ppc-low.c (ppc_usrregs_info): Remove
7309 forward-declaration.
7310 (ppc_arch_setup): Move lower in file.
7311
7312 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7313
7314 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7315 (ps_pdwrite): Likewise.
7316
7317 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7318
7319 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7320 to after assert checks.
7321
7322 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7323
7324 * proc-service.c (ps_pdread): Add/adjust casts.
7325 (ps_pdwrite): Add/adjust casts.
7326
7327 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7328
7329 * server.c (handle_search_memory_1): Cast return value of
7330 memmem.
7331
7332 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7333
7334 * server.c (write_qxfer_response): Change type of data to
7335 gdb_byte *.
7336
7337 2015-10-29 Pedro Alves <palves@redhat.com>
7338
7339 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7340
7341 2015-10-29 Pedro Alves <palves@redhat.com>
7342
7343 * tracepoint.c (clear_installed_tracepoints): Add casts.
7344
7345 2015-10-29 Pedro Alves <palves@redhat.com>
7346
7347 * server.c (handle_v_cont, process_serial_event): Add enum
7348 gdb_signal casts to signal parsing code.
7349
7350 2015-10-29 Pedro Alves <palves@redhat.com>
7351
7352 * linux-low.h (NULL_REGSET): Define.
7353 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7354 * linux-arm-low.c (arm_regsets): Likewise.
7355 * linux-crisv32-low.c (cris_regsets): Likewise.
7356 * linux-m68k-low.c (m68k_regsets): Likewise.
7357 * linux-mips-low.c (mips_regsets): Likewise.
7358 * linux-nios2-low.c (nios2_regsets): Likewise.
7359 * linux-ppc-low.c (ppc_regsets): Likewise.
7360 * linux-s390-low.c (s390_regsets): Likewise.
7361 * linux-sh-low.c (sh_regsets): Likewise.
7362 * linux-sparc-low.c (sparc_regsets): Likewise.
7363 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7364 * linux-tile-low.c (tile_regsets): Likewise.
7365 * linux-x86-low.c (x86_regsets): Likewise.
7366 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7367
7368 2015-10-29 Pedro Alves <palves@redhat.com>
7369
7370 * linux-low.h (NULL_REGSET): Define.
7371 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7372 * linux-arm-low.c (arm_regsets): Likewise.
7373 * linux-crisv32-low.c (cris_regsets): Likewise.
7374 * linux-m68k-low.c (m68k_regsets): Likewise.
7375 * linux-mips-low.c (mips_regsets): Likewise.
7376 * linux-nios2-low.c (nios2_regsets): Likewise.
7377 * linux-ppc-low.c (ppc_regsets): Likewise.
7378 * linux-s390-low.c (s390_regsets): Likewise.
7379 * linux-sh-low.c (sh_regsets): Likewise.
7380 * linux-sparc-low.c (sparc_regsets): Likewise.
7381 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7382 * linux-tile-low.c (tile_regsets): Likewise.
7383 * linux-x86-low.c (x86_regsets): Likewise.
7384 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7385
7386 2015-10-26 Doug Evans <dje@google.com>
7387
7388 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7389
7390 2015-10-26 Doug Evans <dje@google.com>
7391
7392 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7393
7394 2015-10-26 Doug Evans <dje@google.com>
7395
7396 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7397 for debug_printf.
7398 (attach_thread, find_new_threads_callback): Ditto.
7399
7400 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7401
7402 * mem-break.h (set_breakpoint_data): Remove.
7403
7404 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7405
7406 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7407 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7408 (initialize_low): Remove set_breakpoint_data call.
7409 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7410 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7411 (initialize_low): Remove set_breakpoint_data call.
7412 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7413 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7414 (initialize_low): Remove set_breakpoint_data call.
7415
7416 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7417
7418 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7419 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7420 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7421 * target.h (target_breakpoint_kind_from_pc): New macro.
7422
7423 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7424
7425 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7426 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7427 the default breakpoint kind.
7428
7429 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7430
7431 * linux-arm-low.c (arm_supports_z_point_type): Add software
7432 breakpoint support.
7433
7434 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7435
7436 * linux-arm-low.c: Refactor breakpoint definitions.
7437 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7438 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7439
7440 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7441
7442 * Makefile.in: Add arm.c/o.
7443 * configure.srv: Likewise.
7444 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7445 (arm_breakpoint_kind_from_pc): New function.
7446 (arm_sw_breakpoint_from_kind): Return proper kind.
7447 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7448
7449 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7450
7451 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7452 removal.
7453 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7454 (struct raw_breakpoint) <size>: Remove.
7455 (struct raw_breakpoint) <kind>: Add.
7456 (bp_size): New function.
7457 (bp_opcode): Likewise.
7458 (find_raw_breakpoint_at): Adjust for kind.
7459 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7460 (remove_memory_breakpoint): Adjust for kind call bp_size.
7461 (set_raw_breakpoint_at): Adjust for kind.
7462 (set_breakpoint): Likewise.
7463 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7464 (delete_raw_breakpoint): Adjust for kind.
7465 (delete_breakpoint): Likewise.
7466 (find_gdb_breakpoint): Likewise.
7467 (set_gdb_breakpoint_1): Likewise.
7468 (set_gdb_breakpoint): Likewise.
7469 (delete_gdb_breakpoint_1): Likewise.
7470 (delete_gdb_breakpoint): Likewise.
7471 (uninsert_raw_breakpoint): Likewise.
7472 (reinsert_raw_breakpoint): Likewise.
7473 (set_breakpoint_data): Remove.
7474 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7475 (check_mem_read): Adjust for kind call bp_size.
7476 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7477 (clone_one_breakpoint): Adjust for kind.
7478 * mem-break.h (set_gdb_breakpoint): Likewise.
7479 (delete_gdb_breakpoint): Likewise.
7480 * server.c (process_serial_event): Likewise.
7481
7482 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7483
7484 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7485 (struct linux_target_ops) <breakpoint>: Remove.
7486 (struct linux_target_ops) <breakpoint_len>: Remove.
7487 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7488 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7489 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7490 (arm_sw_breakpoint_from_kind): New function.
7491 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7492 (struct linux_target_ops) <breakpoint>: Remove.
7493 (struct linux_target_ops) <breakpoint_len>: Remove.
7494 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7495 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7496 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7497 (struct linux_target_ops) <breakpoint>: Remove.
7498 (struct linux_target_ops) <breakpoint_len>: Remove.
7499 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7500 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7501 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7502 (struct linux_target_ops) <breakpoint>: Remove.
7503 (struct linux_target_ops) <breakpoint_len>: Remove.
7504 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7505 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7506 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7507 and sw_breakpoint_from_kind to increment the pc.
7508 (linux_breakpoint_kind_from_pc): New function.
7509 (linux_sw_breakpoint_from_kind): New function.
7510 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7511 (initialize_low): Call breakpoint_kind_from_pc and
7512 sw_breakpoint_from_kind to replace breakpoint_data/len.
7513 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7514 New field.
7515 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7516 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7517 (struct linux_target_ops) <breakpoint>: Remove.
7518 (struct linux_target_ops) <breakpoint_len>: Remove.
7519 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7520 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7521 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7522 (struct linux_target_ops) <breakpoint>: Remove.
7523 (struct linux_target_ops) <breakpoint_len>: Remove.
7524 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7525 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7526 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7527 (struct linux_target_ops) <breakpoint>: Remove.
7528 (struct linux_target_ops) <breakpoint_len>: Remove.
7529 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7530 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7531 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7532 (struct linux_target_ops) <breakpoint>: Remove.
7533 (struct linux_target_ops) <breakpoint_len>: Remove.
7534 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7535 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7536 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7537 (struct linux_target_ops) <breakpoint>: Remove.
7538 (struct linux_target_ops) <breakpoint_len>: Remove.
7539 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7540 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7541 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7542 (struct linux_target_ops) <breakpoint>: Remove.
7543 (struct linux_target_ops) <breakpoint_len>: Remove.
7544 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7545 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7546 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7547 (struct linux_target_ops) <breakpoint>: Remove.
7548 (struct linux_target_ops) <breakpoint_len>: Remove.
7549 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7550 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7551 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7552 (struct linux_target_ops) <breakpoint>: Remove.
7553 (struct linux_target_ops) <breakpoint_len>: Remove.
7554 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7555 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7556 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7557 (struct linux_target_ops) <breakpoint>: Remove.
7558 (struct linux_target_ops) <breakpoint_len>: Remove.
7559 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7560 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7561 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7562 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7563 (struct linux_target_ops) <breakpoint>: Remove.
7564 (struct linux_target_ops) <breakpoint_len>: Remove.
7565 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7566 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7567 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7568 (struct linux_target_ops) <breakpoint>: Remove.
7569 (struct linux_target_ops) <breakpoint_len>: Remove.
7570 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7571 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7572
7573 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7574
7575 * linux-cris-low.c (cris_get_pc): Remove void arg.
7576
7577 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7578
7579 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7580 variable name.
7581
7582 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7583
7584 * inferiors.c (thread_pid_matches_callback): New function.
7585 (find_thread_process): New function.
7586 (remove_thread): Reset current_thread.
7587 (remove_process): Assert threads have been removed first.
7588
7589 2015-10-15 Yao Qi <yao.qi@linaro.org>
7590
7591 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7592 if it is 3.
7593 (aarch64_remove_point): Likewise.
7594 * regcache.c (regcache_register_size): New function.
7595
7596 2015-10-12 Yao Qi <yao.qi@linaro.org>
7597
7598 * linux-aarch64-low.c: Update all callers as emit_load_store
7599 is renamed to aarch64_emit_load_store.
7600
7601 2015-10-12 Yao Qi <yao.qi@linaro.org>
7602
7603 * linux-aarch64-low.c: Update all callers of function renaming
7604 from emit_insn to aarch64_emit_insn.
7605
7606 2015-10-12 Yao Qi <yao.qi@linaro.org>
7607
7608 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7609 arch/aarch64-insn.h.
7610 (struct aarch64_memory_operand): Likewise.
7611 (ENCODE): Likewise.
7612 (emit_insn): Move to arch/aarch64-insn.c.
7613 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7614 (emit_load_store): Move to arch/aarch64-insn.c.
7615 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7616 (can_encode_int32): Remove.
7617
7618 2015-10-12 Yao Qi <yao.qi@linaro.org>
7619
7620 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7621 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7622 (aarch64_relocate_instruction): Likewise.
7623 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7624 (struct aarch64_insn_visitor): Likewise.
7625
7626 2015-10-12 Yao Qi <yao.qi@linaro.org>
7627
7628 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7629 (struct aarch64_insn_visitor): New.
7630 (struct aarch64_insn_relocation_data): New.
7631 (aarch64_ftrace_insn_reloc_b): New function.
7632 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7633 (aarch64_ftrace_insn_reloc_cb): Likewise.
7634 (aarch64_ftrace_insn_reloc_tb): Likewise.
7635 (aarch64_ftrace_insn_reloc_adr): Likewise.
7636 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7637 (aarch64_ftrace_insn_reloc_others): Likewise.
7638 (visitor): New.
7639 (aarch64_relocate_instruction): Use visitor.
7640
7641 2015-10-12 Yao Qi <yao.qi@linaro.org>
7642
7643 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7644 int. Add argument buf.
7645 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7646 aarch64_relocate_instruction.
7647
7648 2015-10-12 Yao Qi <yao.qi@linaro.org>
7649
7650 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7651 argument insn. Remove local variable insn. Don't call
7652 target_read_uint32.
7653 (aarch64_install_fast_tracepoint_jump_pad): Call
7654 target_read_uint32.
7655
7656 2015-09-30 Yao Qi <yao.qi@linaro.org>
7657
7658 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7659 (emit_load_store_pair): Likewise.
7660
7661 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7662
7663 * dll.c (match_dll): Add cast(s).
7664 (unloaded_dll): Likewise.
7665 * linux-low.c (second_thread_of_pid_p): Likewise.
7666 (delete_lwp_callback): Likewise.
7667 (count_events_callback): Likewise.
7668 (select_event_lwp_callback): Likewise.
7669 (linux_set_resume_request): Likewise.
7670 * server.c (accumulate_file_name_length): Likewise.
7671 (emit_dll_description): Likewise.
7672 (handle_qxfer_threads_worker): Likewise.
7673 (visit_actioned_threads): Likewise.
7674 * thread-db.c (any_thread_of): Likewise.
7675 * tracepoint.c (same_process_p): Likewise.
7676 (match_blocktype): Likewise.
7677 (build_traceframe_info_xml): Likewise.
7678
7679 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7680
7681 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7682 assignment.
7683 (gdb_unparse_agent_expr): Likewise.
7684 * hostio.c (require_data): Likewise.
7685 (handle_pread): Likewise.
7686 * linux-low.c (disable_regset): Likewise.
7687 (fetch_register): Likewise.
7688 (store_register): Likewise.
7689 (get_dynamic): Likewise.
7690 (linux_qxfer_libraries_svr4): Likewise.
7691 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7692 (set_fast_tracepoint_jump): Likewise.
7693 (uninsert_fast_tracepoint_jumps_at): Likewise.
7694 (reinsert_fast_tracepoint_jumps_at): Likewise.
7695 (validate_inserted_breakpoint): Likewise.
7696 (clone_agent_expr): Likewise.
7697 * regcache.c (init_register_cache): Likewise.
7698 * remote-utils.c (putpkt_binary_1): Likewise.
7699 (decode_M_packet): Likewise.
7700 (decode_X_packet): Likewise.
7701 (look_up_one_symbol): Likewise.
7702 (relocate_instruction): Likewise.
7703 (monitor_output): Likewise.
7704 * server.c (handle_search_memory): Likewise.
7705 (handle_qxfer_exec_file): Likewise.
7706 (handle_qxfer_libraries): Likewise.
7707 (handle_qxfer): Likewise.
7708 (handle_query): Likewise.
7709 (handle_v_cont): Likewise.
7710 (handle_v_run): Likewise.
7711 (captured_main): Likewise.
7712 * target.c (write_inferior_memory): Likewise.
7713 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7714 * tracepoint.c (init_trace_buffer): Likewise.
7715 (add_tracepoint_action): Likewise.
7716 (add_traceframe): Likewise.
7717 (add_traceframe_block): Likewise.
7718 (cmd_qtdpsrc): Likewise.
7719 (cmd_qtdv): Likewise.
7720 (cmd_qtstatus): Likewise.
7721 (response_source): Likewise.
7722 (response_tsv): Likewise.
7723 (cmd_qtnotes): Likewise.
7724 (gdb_collect): Likewise.
7725 (initialize_tracepoint): Likewise.
7726
7727 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7728
7729 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7730 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7731 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7732 <NOP>: New.
7733 (enum aarch64_condition_codes): New enum.
7734 (w0): New static global.
7735 (fp): Likewise.
7736 (lr): Likewise.
7737 (struct aarch64_memory_operand) <type>: New
7738 MEMORY_OPERAND_POSTINDEX type.
7739 (postindex_memory_operand): New helper function.
7740 (emit_ret): New function.
7741 (emit_load_store_pair): New function, factored out of emit_stp
7742 with support for MEMORY_OPERAND_POSTINDEX.
7743 (emit_stp): Rewrite using emit_load_store_pair.
7744 (emit_ldp): New function.
7745 (emit_load_store): Likewise.
7746 (emit_ldr): Mention post-index instruction in comment.
7747 (emit_ldrh): New function.
7748 (emit_ldrb): New function.
7749 (emit_ldrsw): Mention post-index instruction in comment.
7750 (emit_str): Likewise.
7751 (emit_subs): New function.
7752 (emit_cmp): Likewise.
7753 (emit_and): Likewise.
7754 (emit_orr): Likewise.
7755 (emit_orn): Likewise.
7756 (emit_eor): Likewise.
7757 (emit_mvn): Likewise.
7758 (emit_lslv): Likewise.
7759 (emit_lsrv): Likewise.
7760 (emit_asrv): Likewise.
7761 (emit_mul): Likewise.
7762 (emit_sbfm): Likewise.
7763 (emit_sbfx): Likewise.
7764 (emit_ubfm): Likewise.
7765 (emit_ubfx): Likewise.
7766 (emit_csinc): Likewise.
7767 (emit_cset): Likewise.
7768 (emit_nop): Likewise.
7769 (emit_ops_insns): New helper function.
7770 (emit_pop): Likewise.
7771 (emit_push): Likewise.
7772 (aarch64_emit_prologue): New function.
7773 (aarch64_emit_epilogue): Likewise.
7774 (aarch64_emit_add): Likewise.
7775 (aarch64_emit_sub): Likewise.
7776 (aarch64_emit_mul): Likewise.
7777 (aarch64_emit_lsh): Likewise.
7778 (aarch64_emit_rsh_signed): Likewise.
7779 (aarch64_emit_rsh_unsigned): Likewise.
7780 (aarch64_emit_ext): Likewise.
7781 (aarch64_emit_log_not): Likewise.
7782 (aarch64_emit_bit_and): Likewise.
7783 (aarch64_emit_bit_or): Likewise.
7784 (aarch64_emit_bit_xor): Likewise.
7785 (aarch64_emit_bit_not): Likewise.
7786 (aarch64_emit_equal): Likewise.
7787 (aarch64_emit_less_signed): Likewise.
7788 (aarch64_emit_less_unsigned): Likewise.
7789 (aarch64_emit_ref): Likewise.
7790 (aarch64_emit_if_goto): Likewise.
7791 (aarch64_emit_goto): Likewise.
7792 (aarch64_write_goto_address): Likewise.
7793 (aarch64_emit_const): Likewise.
7794 (aarch64_emit_call): Likewise.
7795 (aarch64_emit_reg): Likewise.
7796 (aarch64_emit_pop): Likewise.
7797 (aarch64_emit_stack_flush): Likewise.
7798 (aarch64_emit_zero_ext): Likewise.
7799 (aarch64_emit_swap): Likewise.
7800 (aarch64_emit_stack_adjust): Likewise.
7801 (aarch64_emit_int_call_1): Likewise.
7802 (aarch64_emit_void_call_2): Likewise.
7803 (aarch64_emit_eq_goto): Likewise.
7804 (aarch64_emit_ne_goto): Likewise.
7805 (aarch64_emit_lt_goto): Likewise.
7806 (aarch64_emit_le_goto): Likewise.
7807 (aarch64_emit_gt_goto): Likewise.
7808 (aarch64_emit_ge_got): Likewise.
7809 (aarch64_emit_ops_impl): New static global variable.
7810 (aarch64_emit_ops): New target function, return
7811 &aarch64_emit_ops_impl.
7812 (struct linux_target_ops): Install it.
7813
7814 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7815
7816 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7817 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7818 aarch64-ipa.o.
7819 * linux-aarch64-ipa.c: New file.
7820 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7821 and endian.h.
7822 (aarch64_get_thread_area): New target method.
7823 (extract_signed_bitfield): New helper function.
7824 (aarch64_decode_ldr_literal): New function.
7825 (enum aarch64_opcodes): New enum.
7826 (struct aarch64_register): New struct.
7827 (struct aarch64_operand): New struct.
7828 (x0): New static global.
7829 (x1): Likewise.
7830 (x2): Likewise.
7831 (x3): Likewise.
7832 (x4): Likewise.
7833 (w2): Likewise.
7834 (ip0): Likewise.
7835 (sp): Likewise.
7836 (xzr): Likewise.
7837 (aarch64_register): New helper function.
7838 (register_operand): Likewise.
7839 (immediate_operand): Likewise.
7840 (struct aarch64_memory_operand): New struct.
7841 (offset_memory_operand): New helper function.
7842 (preindex_memory_operand): Likewise.
7843 (enum aarch64_system_control_registers): New enum.
7844 (ENCODE): New macro.
7845 (emit_insn): New helper function.
7846 (emit_b): New function.
7847 (emit_bcond): Likewise.
7848 (emit_cb): Likewise.
7849 (emit_tb): Likewise.
7850 (emit_blr): Likewise.
7851 (emit_stp): Likewise.
7852 (emit_ldp_q_offset): Likewise.
7853 (emit_stp_q_offset): Likewise.
7854 (emit_load_store): Likewise.
7855 (emit_ldr): Likewise.
7856 (emit_ldrsw): Likewise.
7857 (emit_str): Likewise.
7858 (emit_ldaxr): Likewise.
7859 (emit_stxr): Likewise.
7860 (emit_stlr): Likewise.
7861 (emit_data_processing_reg): Likewise.
7862 (emit_data_processing): Likewise.
7863 (emit_add): Likewise.
7864 (emit_sub): Likewise.
7865 (emit_mov): Likewise.
7866 (emit_movk): Likewise.
7867 (emit_mov_addr): Likewise.
7868 (emit_mrs): Likewise.
7869 (emit_msr): Likewise.
7870 (emit_sevl): Likewise.
7871 (emit_wfe): Likewise.
7872 (append_insns): Likewise.
7873 (can_encode_int32_in): New helper function.
7874 (aarch64_relocate_instruction): New function.
7875 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7876 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7877 (struct linux_target_ops): Install aarch64_get_thread_area,
7878 aarch64_install_fast_tracepoint_jump_pad and
7879 aarch64_get_min_fast_tracepoint_insn_len.
7880
7881 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7882
7883 * Makefile.in (aarch64-insn.o): New rule.
7884 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7885
7886 2015-09-21 Yao Qi <yao.qi@linaro.org>
7887
7888 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7889
7890 2015-09-21 Yao Qi <yao.qi@linaro.org>
7891
7892 * tracepoint.c (max_jump_pad_size): Remove.
7893
7894 2015-09-18 Yao Qi <yao.qi@linaro.org>
7895
7896 * linux-aarch64-low.c: Don't include sys/uio.h.
7897 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7898
7899 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
7900
7901 * tracepoint.c (eval_result_type): Change prototype.
7902 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7903
7904 2015-09-15 Pedro Alves <palves@redhat.com>
7905
7906 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7907 Check whether to report exec events instead of checking whether
7908 multiprocess is enabled.
7909
7910 2015-09-15 Pedro Alves <palves@redhat.com>
7911
7912 PR remote/18965
7913 * remote-utils.c (prepare_resume_reply): Merge
7914 TARGET_WAITKIND_VFORK_DONE switch case with the
7915 TARGET_WAITKIND_FORKED case.
7916
7917 2015-09-15 Yao Qi <yao.qi@linaro.org>
7918
7919 * server.c (handle_query): Check string comparison using
7920 "else if" instead of "if".
7921
7922 2015-09-15 Yao Qi <yao.qi@linaro.org>
7923
7924 * server.c (vCont_supported): New global variable.
7925 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7926 matches. Append ";vContSupported+" to own_buf.
7927 (handle_v_requests): Append ";s;S" to own_buf if target supports
7928 hardware single step or vCont_supported is false.
7929 (capture_main): Set vCont_supported to zero.
7930
7931 2015-09-15 Yao Qi <yao.qi@linaro.org>
7932
7933 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7934 it to ...
7935 (linux_supports_hardware_single_step): ... New function.
7936 (linux_target_ops): Update.
7937 * lynx-low.c (lynx_target_ops): Set field
7938 supports_hardware_single_step to target_can_do_hardware_single_step.
7939 * nto-low.c (nto_target_ops): Likewise.
7940 * spu-low.c (spu_target_ops): Likewise.
7941 * win32-low.c (win32_target_ops): Likewise.
7942 * target.c (target_can_do_hardware_single_step): New function.
7943 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7944 Remove. <supports_hardware_single_step>: New field.
7945 (target_supports_conditional_breakpoints): Remove.
7946 (target_supports_hardware_single_step): New macro.
7947 (target_can_do_hardware_single_step): Declare.
7948 * server.c (handle_query): Use target_supports_hardware_single_step
7949 instead of target_supports_conditional_breakpoints.
7950
7951 2015-09-15 Yao Qi <yao.qi@linaro.org>
7952
7953 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7954 function.
7955 (struct linux_target_ops the_low_target): Install
7956 aarch64_linux_siginfo_fixup.
7957
7958 2015-09-11 Don Breazeal <donb@codesourcery.com>
7959 Luis Machado <lgustavo@codesourcery.com>
7960
7961 * linux-low.c (linux_mourn): Static declaration.
7962 (linux_arch_setup): Move in front of
7963 handle_extended_wait.
7964 (linux_arch_setup_thread): New function.
7965 (handle_extended_wait): Handle exec events. Call
7966 linux_arch_setup_thread. Make event_lwp argument a
7967 pointer-to-a-pointer.
7968 (check_zombie_leaders): Do not check stopped threads.
7969 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7970 (linux_low_filter_event): Add lwp and thread for exec'ing
7971 non-leader thread if leader thread has been deleted.
7972 Refactor code into linux_arch_setup_thread and call it.
7973 Pass child lwp pointer by reference to handle_extended_wait.
7974 (linux_wait_for_event_filtered): Update comment.
7975 (linux_wait_1): Prevent clobbering exec event status.
7976 (linux_supports_exec_events): New function.
7977 (linux_target_ops) <supports_exec_events>: Initialize new member.
7978 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7979 new member.
7980 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7981 * server.c (report_exec_events): New global variable.
7982 (handle_query): Handle qSupported query for exec-events feature.
7983 (captured_main): Initialize report_exec_events.
7984 * server.h (report_exec_events): Declare new global variable.
7985 * target.h (struct target_ops) <supports_exec_events>: New
7986 member.
7987 (target_supports_exec_events): New macro.
7988 * win32-low.c (win32_target_ops) <supports_exec_events>:
7989 Initialize new member.
7990
7991 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7992
7993 * linux-low.c (linux_low_enable_btrace): Remove.
7994 (linux_target_ops): Replace linux_low_enable_btrace with
7995 linux_enable_btrace.
7996
7997 2015-09-03 Yao Qi <yao.qi@linaro.org>
7998
7999 * linux-aarch64-low.c (aarch64_insert_point): Call
8000 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
8001 returns true.
8002
8003 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8004
8005 * linux-low.c (check_stopped_by_breakpoint): Use
8006 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
8007
8008 2015-08-27 Pedro Alves <palves@redhat.com>
8009
8010 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
8011
8012 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
8013
8014 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
8015 the XNEW-family equivalent.
8016 (compile_bytecodes): Likewise.
8017 * dll.c (loaded_dll): Likewise.
8018 * event-loop.c (append_callback_event): Likewise.
8019 (create_file_handler): Likewise.
8020 (create_file_event): Likewise.
8021 * hostio.c (handle_open): Likewise.
8022 * inferiors.c (add_thread): Likewise.
8023 (add_process): Likewise.
8024 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
8025 * linux-arm-low.c (arm_new_process): Likewise.
8026 (arm_new_thread): Likewise.
8027 * linux-low.c (add_to_pid_list): Likewise.
8028 (linux_add_process): Likewise.
8029 (handle_extended_wait): Likewise.
8030 (add_lwp): Likewise.
8031 (enqueue_one_deferred_signal): Likewise.
8032 (enqueue_pending_signal): Likewise.
8033 (linux_resume_one_lwp_throw): Likewise.
8034 (linux_resume_one_thread): Likewise.
8035 (linux_read_memory): Likewise.
8036 (linux_write_memory): Likewise.
8037 * linux-mips-low.c (mips_linux_new_process): Likewise.
8038 (mips_linux_new_thread): Likewise.
8039 (mips_add_watchpoint): Likewise.
8040 * linux-x86-low.c (initialize_low_arch): Likewise.
8041 * lynx-low.c (lynx_add_process): Likewise.
8042 * mem-break.c (set_raw_breakpoint_at): Likewise.
8043 (set_breakpoint): Likewise.
8044 (add_condition_to_breakpoint): Likewise.
8045 (add_commands_to_breakpoint): Likewise.
8046 (clone_agent_expr): Likewise.
8047 (clone_one_breakpoint): Likewise.
8048 * regcache.c (new_register_cache): Likewise.
8049 * remote-utils.c (look_up_one_symbol): Likewise.
8050 * server.c (queue_stop_reply): Likewise.
8051 (start_inferior): Likewise.
8052 (queue_stop_reply_callback): Likewise.
8053 (handle_target_event): Likewise.
8054 * spu-low.c (fetch_ppc_memory): Likewise.
8055 (store_ppc_memory): Likewise.
8056 * target.c (set_target_ops): Likewise.
8057 * thread-db.c (thread_db_load_search): Likewise.
8058 (try_thread_db_load_1): Likewise.
8059 * tracepoint.c (add_tracepoint): Likewise.
8060 (add_tracepoint_action): Likewise.
8061 (create_trace_state_variable): Likewise.
8062 (cmd_qtdpsrc): Likewise.
8063 (cmd_qtro): Likewise.
8064 (add_while_stepping_state): Likewise.
8065 * win32-low.c (child_add_thread): Likewise.
8066 (get_image_name): Likewise.
8067
8068 2015-08-25 Yao Qi <yao.qi@linaro.org>
8069
8070 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
8071
8072 2015-08-25 Yao Qi <yao.qi@linaro.org>
8073
8074 * Makefile.in (aarch64-linux.o): New rule.
8075 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
8076 srv_tgtobj.
8077 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
8078 (aarch64_init_debug_reg_state): Make it extern.
8079 (aarch64_linux_prepare_to_resume): Remove.
8080
8081 2015-08-25 Yao Qi <yao.qi@linaro.org>
8082
8083 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
8084 lwp_arch_private_info and ptid_of_lwp.
8085
8086 2015-08-25 Yao Qi <yao.qi@linaro.org>
8087
8088 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
8089 Find proc_info by find_process_pid. All callers updated.
8090
8091 2015-08-25 Yao Qi <yao.qi@linaro.org>
8092
8093 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
8094 Remove.
8095 (debug_reg_change_callback): Remove.
8096 (aarch64_notify_debug_reg_change): Remove.
8097
8098 2015-08-25 Yao Qi <yao.qi@linaro.org>
8099
8100 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8101 Call current_lwp_ptid.
8102
8103 2015-08-25 Yao Qi <yao.qi@linaro.org>
8104
8105 * linux-aarch64-low.c (debug_reg_change_callback): Use
8106 debug_printf.
8107
8108 2015-08-25 Yao Qi <yao.qi@linaro.org>
8109
8110 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8111
8112 2015-08-25 Yao Qi <yao.qi@linaro.org>
8113
8114 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8115
8116 2015-08-25 Yao Qi <yao.qi@linaro.org>
8117
8118 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8119 the code.
8120
8121 2015-08-25 Yao Qi <yao.qi@linaro.org>
8122
8123 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8124 Remove.
8125 (debug_reg_change_callback): Remove argument entry and add argument
8126 lwp. Remove local variable thread. Don't print thread id in the
8127 debugging output. Don't check whether pid of thread equals to pid.
8128 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8129 iterate_over_lwps instead find_inferior.
8130
8131 2015-08-24 Pedro Alves <palves@redhat.com>
8132
8133 * inferiors.c (get_first_process): New function.
8134 * inferiors.h (get_first_process): New declaration.
8135 * remote-utils.c (read_ptid): Default to the first process in the
8136 list, instead of to the current thread's process.
8137
8138 2015-08-24 Pedro Alves <palves@redhat.com>
8139
8140 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8141 * event-loop.c: Likewise.
8142 * remote-utils.c: Likewise.
8143 * tracepoint.c: Likewise.
8144
8145 2015-08-24 Pedro Alves <palves@redhat.com>
8146
8147 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8148 ptid_get_lwp.
8149
8150 2015-08-21 Pedro Alves <palves@redhat.com>
8151
8152 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8153 instead of literal 1.
8154
8155 2015-08-21 Pedro Alves <palves@redhat.com>
8156
8157 * tdesc.c (default_description): Explicitly zero-initialize.
8158
8159 2015-08-21 Pedro Alves <palves@redhat.com>
8160
8161 PR gdb/18749
8162 * inferiors.c (remove_thread): Discard any pending stop reply for
8163 this thread.
8164 * server.c (remove_all_on_match_pid): Rename to ...
8165 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8166 instead of a pid.
8167 (discard_queued_stop_replies): Change parameter to a ptid. Now
8168 extern.
8169 (handle_v_kill, kill_inferior_callback, captured_main)
8170 (process_serial_event): Adjust.
8171 * server.h (discard_queued_stop_replies): Declare.
8172
8173 2015-08-21 Pedro Alves <palves@redhat.com>
8174
8175 * linux-low.c (wait_for_sigstop): Always switch to no thread
8176 selected if the previously current thread dies.
8177 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8178 process instead of the current thread's.
8179 * remote-utils.c (input_interrupt): Don't check if there's no
8180 current thread.
8181 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8182 current thread to the general thread fails, error out.
8183 (handle_qxfer_auxv, handle_qxfer_libraries)
8184 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8185 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8186 (handle_query): Check if there's a thread selected instead of
8187 checking whether there's any thread in the thread list.
8188 (handle_qxfer_threads, handle_qxfer_btrace)
8189 (handle_qxfer_btrace_conf): Don't error out early if there's no
8190 thread in the thread list.
8191 (handle_v_cont, myresume): Don't set the current thread to the
8192 continue thread.
8193 (process_serial_event) <Hg handling>: Also set thread_id if the
8194 previous general thread is still alive.
8195 (process_serial_event) <g/G handling>: If setting the current
8196 thread to the general thread fails, error out.
8197 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8198 thread's lwp instead of the current thread's.
8199 * target.c (set_desired_thread): If the desired thread was not
8200 found, leave the current thread pointing to NULL. Return an int
8201 (boolean) indicating success.
8202 * target.h (set_desired_thread): Change return type to int.
8203
8204 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8205
8206 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8207 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8208 #includes.
8209 (ps_get_thread_area): New function.
8210
8211 2015-08-19 Gary Benson <gbenson@redhat.com>
8212
8213 * hostio.c (handle_pread): Do not attempt to read more data
8214 than hostio_reply_with_data can fit in a packet.
8215
8216 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8217
8218 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8219
8220 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8221
8222 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8223
8224 2015-08-06 Pedro Alves <palves@redhat.com>
8225
8226 * tracepoint.c (expr_eval_result): Now an int.
8227
8228 2015-08-06 Pedro Alves <palves@redhat.com>
8229
8230 * gdbthread.h (struct regcache): Forward declare.
8231 (struct thread_info) <regcache_data>: Now a struct regcache
8232 pointer.
8233 * inferiors.c (inferior_regcache_data)
8234 (set_inferior_regcache_data): Now work with struct regcache
8235 pointers.
8236 * inferiors.h (struct regcache): Forward declare.
8237 (inferior_regcache_data, set_inferior_regcache_data): Now work
8238 with struct regcache pointers.
8239 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8240 (free_register_cache_thread): Remove struct regcache pointer
8241 casts.
8242
8243 2015-08-06 Pedro Alves <palves@redhat.com>
8244
8245 * server.c (captured_main): On error, print the exception message
8246 to stderr, and if run_once is set, throw a quit.
8247
8248 2015-08-06 Pedro Alves <palves@redhat.com>
8249
8250 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8251 the current thread.
8252
8253 2015-08-06 Pedro Alves <palves@redhat.com>
8254
8255 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8256 reading beyond the passed in buffer length.
8257
8258 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8259
8260 * tracepoint.c (symbol_list) <required>: Remove.
8261
8262 2015-08-06 Pedro Alves <palves@redhat.com>
8263
8264 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8265 count if stopping and suspending threads.
8266 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8267 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8268 (linux_detach): Complete an ongoing step-over.
8269 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8270 throughout.
8271 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8272 (linux_wait_1): If passing a signal to the inferior after
8273 finishing a step-over, unsuspend and re-resume all lwps. If we
8274 see a single-step event but the thread should be continuing, don't
8275 pass the trap to gdb.
8276 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8277 internal_error instead of gdb_assert.
8278 (enqueue_pending_signal): New function.
8279 (check_ptrace_stopped_lwp_gone): Add debug output.
8280 (start_step_over): Use internal_error instead of gdb_assert.
8281 (complete_ongoing_step_over): New function.
8282 (linux_resume_one_thread): Don't resume a suspended thread.
8283 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8284 it stepping.
8285
8286 2015-08-06 Pedro Alves <palves@redhat.com>
8287
8288 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8289 (linux_thread_alive): Use lwp_is_marked_dead.
8290 (extended_event_reported): Delete.
8291 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8292 instead of extended_event_reported.
8293 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8294 as well.
8295 (lwp_is_marked_dead): New function.
8296 (lwp_running): Use lwp_is_marked_dead.
8297 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8298 comment.
8299
8300 2015-08-06 Pedro Alves <palves@redhat.com>
8301
8302 * linux-low.c (linux_wait_1): Move fork event output out of the
8303 !report_to_gdb check. Pass event_child->waitstatus to
8304 target_waitstatus_to_string instead of ourstatus.
8305
8306 2015-08-04 Yao Qi <yao.qi@linaro.org>
8307
8308 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8309 if current_thread is 32 bit.
8310
8311 2015-08-04 Yao Qi <yao.qi@linaro.org>
8312
8313 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8314 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8315 * server.c (extended_protocol): Remove "static".
8316 * server.h (extended_protocol): Declare it.
8317
8318 2015-08-04 Yao Qi <yao.qi@linaro.org>
8319
8320 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8321 both aarch64 and aarch32.
8322 (aarch64_set_pc): Likewise.
8323
8324 2015-08-04 Yao Qi <yao.qi@linaro.org>
8325
8326 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8327 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8328 arm-with-neon.xml to srv_xmlfiles.
8329 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8330 (is_64bit_tdesc): New function.
8331 (aarch64_linux_read_description): New function.
8332 (aarch64_arch_setup): Call aarch64_linux_read_description.
8333 (regs_info): Rename to regs_info_aarch64.
8334 (aarch64_regs_info): Return right regs_info.
8335 (initialize_low_arch): Call initialize_low_arch_aarch32.
8336
8337 2015-08-04 Yao Qi <yao.qi@linaro.org>
8338
8339 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8340 * linux-aarch32-low.c: New file.
8341 * linux-aarch32-low.h: New file.
8342 * linux-arm-low.c (arm_fill_gregset): Move it to
8343 linux-aarch32-low.c.
8344 (arm_store_gregset): Likewise.
8345 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8346 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8347 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8348 (regs_info): Rename to regs_info_arm.
8349 (arm_regs_info): Return regs_info_aarch32 if
8350 have_ptrace_getregset is 1 and target description is
8351 arm_with_neon or arm_with_vfpv3.
8352 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8353 Call initialize_low_arch_aarch32 instead.
8354
8355 2015-08-04 Yao Qi <yao.qi@linaro.org>
8356
8357 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8358 * linux-low.c: ... here.
8359 * linux-low.h (have_ptrace_getregset): Declare it.
8360
8361 2015-08-04 Pedro Alves <palves@redhat.com>
8362
8363 * thread-db.c (struct thread_db): Use new typedefs.
8364 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8365 CHK calls.
8366 (disable_thread_event_reporting): Cast result of dlsym to
8367 destination function pointer type.
8368 (thread_db_mourn): Use td_ta_delete_ftype.
8369
8370 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8371
8372 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8373 arch variant.
8374 (CDX_BREAKPOINT): Define for R2.
8375 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8376 (the_low_target): Add comments.
8377
8378 2015-07-30 Yao Qi <yao.qi@linaro.org>
8379
8380 * linux-arm-low.c (arm_hwcap): Remove it.
8381 (arm_read_description): New local variable arm_hwcap. Don't
8382 set arm_hwcap to zero.
8383
8384 2015-07-30 Yao Qi <yao.qi@linaro.org>
8385
8386 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8387 Use regcache->tdesc instead.
8388 (arm_store_wmmxregset): Likewise.
8389 (arm_fill_vfpregset): Likewise.
8390 (arm_store_vfpregset): Likewise.
8391
8392 2015-07-30 Yao Qi <yao.qi@linaro.org>
8393
8394 * linux-arm-low.c: Include arch/arm.h.
8395 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8396 (arm_store_gregset): Likewise.
8397
8398 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8399
8400 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8401 ptrace's 4th parameter.
8402
8403 2015-07-27 Yao Qi <yao.qi@linaro.org>
8404
8405 * configure.srv (case aarch64*-*-linux*): Don't set
8406 srv_linux_usrregs.
8407
8408 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8409
8410 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8411 sys/ptrace.h.
8412 * linux-arm-low.c: Likewise.
8413 * linux-cris-low.c: Likewise.
8414 * linux-crisv32-low.c: Likewise.
8415 * linux-low.c: Likewise.
8416 * linux-m68k-low.c: Likewise.
8417 * linux-mips-low.c: Likewise.
8418 * linux-nios2-low.c: Likewise.
8419 * linux-s390-low.c: Likewise.
8420 * linux-sparc-low.c: Likewise.
8421 * linux-tic6x-low.c: Likewise.
8422 * linux-tile-low.c: Likewise.
8423 * linux-x86-low.c: Likewise.
8424
8425 2015-07-24 Pedro Alves <palves@redhat.com>
8426
8427 * config.in: Regenerate.
8428 * configure: Regenerate.
8429
8430 2015-07-24 Pedro Alves <palves@redhat.com>
8431
8432 * acinclude.m4: Include ../ptrace.m4.
8433 * configure.ac: Call GDB_AC_PTRACE.
8434 * config.in, configure: Regenerate.
8435
8436 2015-07-24 Yao Qi <yao.qi@linaro.org>
8437
8438 * linux-low.c (linux_create_inferior): Remove setting to
8439 proc->priv->new_inferior.
8440 (linux_attach): Likewise.
8441 (linux_low_filter_event): Likewise.
8442 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8443
8444 2015-07-24 Yao Qi <yao.qi@linaro.org>
8445
8446 * linux-low.c (linux_arch_setup): New function.
8447 (linux_low_filter_event): If proc->tdesc is NULL and
8448 proc->attached is true, call the_low_target.arch_setup.
8449 Otherwise, keep status pending, and return.
8450 (linux_resume_one_lwp_throw): Don't call get_pc if
8451 thread->while_stepping isn't NULL. Don't call
8452 get_thread_regcache if proc->tdesc is NULL.
8453 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8454 (linux_target_ops): Install arch_setup.
8455 * server.c (start_inferior): Call the_target->arch_setup.
8456 * target.h (struct target_ops) <arch_setup>: New field.
8457 (target_arch_setup): New marco.
8458 * lynx-low.c (lynx_target_ops): Update.
8459 * nto-low.c (nto_target_ops): Update.
8460 * spu-low.c (spu_target_ops): Update.
8461 * win32-low.c (win32_target_ops): Update.
8462
8463 2015-07-24 Yao Qi <yao.qi@linaro.org>
8464
8465 * linux-low.c (linux_add_process): Don't set
8466 proc->priv->new_inferior.
8467 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8468 (linux_attach): Likewise.
8469
8470 2015-07-24 Yao Qi <yao.qi@linaro.org>
8471
8472 * server.c (start_inferior): Code refactor.
8473
8474 2015-07-24 Yao Qi <yao.qi@linaro.org>
8475
8476 * server.c (process_serial_event): Set general_thread.
8477
8478 2015-07-21 Yao Qi <yao.qi@linaro.org>
8479
8480 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8481 aarch64_linux_get_debug_reg_capacity.
8482
8483 2015-07-17 Yao Qi <yao.qi@linaro.org>
8484
8485 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8486 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8487 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8488 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8489 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8490 (AARCH64_HWP_ALIGNMENT): Likewise.
8491 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8492 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8493 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8494 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8495 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8496 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8497 (struct aarch64_debug_reg_state): Likewise.
8498 (struct arch_lwp_info): Likewise.
8499 (aarch64_align_watchpoint): Likewise.
8500 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8501 (aarch64_watchpoint_length): Likewise.
8502 (aarch64_point_encode_ctrl_reg): Likewise
8503 (aarch64_point_is_aligned): Likewise.
8504 (aarch64_align_watchpoint): Likewise.
8505 (aarch64_linux_set_debug_regs):
8506 (aarch64_dr_state_insert_one_point): Likewise.
8507 (aarch64_dr_state_remove_one_point): Likewise.
8508 (aarch64_handle_breakpoint): Likewise.
8509 (aarch64_handle_aligned_watchpoint): Likewise.
8510 (aarch64_handle_unaligned_watchpoint): Likewise.
8511 (aarch64_handle_watchpoint): Likewise.
8512
8513 2015-07-17 Yao Qi <yao.qi@linaro.org>
8514
8515 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8516 and don't aarch64_get_debug_reg_state. All callers update.
8517 (aarch64_handle_aligned_watchpoint): Likewise.
8518 (aarch64_handle_unaligned_watchpoint): Likewise.
8519 (aarch64_handle_watchpoint): Likewise.
8520 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8521 (aarch64_remove_point): Likewise.
8522
8523 2015-07-17 Yao Qi <yao.qi@linaro.org>
8524
8525 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8526 debug_printf.
8527 (aarch64_handle_unaligned_watchpoint): Likewise.
8528
8529 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8530
8531 Revert the previous 3 commits:
8532 Move gdb_regex* to common/
8533 Move linux_find_memory_regions_full & co.
8534 gdbserver build-id attribute generator
8535
8536 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8537 Jan Kratochvil <jan.kratochvil@redhat.com>
8538
8539 gdbserver build-id attribute generator.
8540 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8541 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8542 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8543 (find_phdr): New.
8544 (get_dynamic): Use find_pdhr to traverse program headers.
8545 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8546 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8547 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8548 (get_hex_build_id): New.
8549 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8550 to reply XML document.
8551
8552 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8553 Jan Kratochvil <jan.kratochvil@redhat.com>
8554
8555 * target.c: Include target/target-utils.h and fcntl.h.
8556 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8557 (target_fileio_read_stralloc): New functions.
8558
8559 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8560
8561 * Makefile.in (OBS): Add gdb_regex.o.
8562 (gdb_regex.o): New.
8563 * config.in: Rebuilt.
8564 * configure: Rebuilt.
8565
8566 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8567 Jan Kratochvil <jan.kratochvil@redhat.com>
8568
8569 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8570 * Makefile.in (OBS): Add target-utils.o.
8571 (linux-maps.o, target-utils.o): New.
8572 * configure.srv (srv_linux_obj): Add linux-maps.o.
8573
8574 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8575
8576 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8577 function, return 1.
8578 (the_low_target): Install it.
8579
8580 2015-07-14 Pedro Alves <palves@redhat.com>
8581
8582 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8583 Instead, ignore ECHILD, and throw an error for other errnos.
8584
8585 2015-07-10 Pedro Alves <palves@redhat.com>
8586
8587 * event-loop.c (struct callback_event) <data>: Change type to
8588 gdb_client_data instance instead of gdb_client_data pointer.
8589 (append_callback_event): Adjust.
8590
8591 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8592
8593 * linux-aarch64-low.c: Add comments for each linux_target_ops
8594 method. Remove comments already covered in target_ops and
8595 linux_target_ops definitions.
8596 (the_low_target): Add comments for each unimplemented method.
8597
8598 2015-07-09 Yao Qi <yao.qi@linaro.org>
8599
8600 * linux-aarch64-low.c (aarch64_regmap): Remove.
8601 (aarch64_usrregs_info): Remove.
8602 (regs_info): Set field usrregs to NULL.
8603
8604 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8605
8606 * linux-low.c: Include "rsp-low.h"
8607 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8608 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8609 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8610 (handle_btrace_enable_pt): New.
8611 (handle_btrace_general_set): Support "pt".
8612 (handle_btrace_conf_general_set): Support "pt:size".
8613
8614 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8615
8616 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8617 Z_PACKET_SW_BP.
8618
8619 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8620
8621 * linux-aarch64-low.c: Remove comment about endianness.
8622 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8623 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8624 memcmp.
8625
8626 2015-06-24 Gary Benson <gbenson@redhat.com>
8627
8628 * linux-i386-ipa.c (stdint.h): Do not include.
8629 * lynx-i386-low.c (stdint.h): Likewise.
8630 * lynx-ppc-low.c (stdint.h): Likewise.
8631 * mem-break.c (stdint.h): Likewise.
8632 * thread-db.c (stdint.h): Likewise.
8633 * tracepoint.c (stdint.h): Likewise.
8634 * win32-low.c (stdint.h): Likewise.
8635
8636 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8637
8638 * server.c (write_qxfer_response): Update call to
8639 remote_escape_output.
8640
8641 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8642 Jan Kratochvil <jan.kratochvil@redhat.com>
8643
8644 Merge multiple hex conversions.
8645 * gdbreplay.c (tohex): Rename to 'fromhex'.
8646 (logchar): Use fromhex.
8647
8648 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8649
8650 * server.c (handle_qxfer_libraries): Set `version' attribute for
8651 <library-list>.
8652
8653 2015-06-10 Gary Benson <gbenson@redhat.com>
8654
8655 * target.h (struct target_ops) <multifs_open>: New field.
8656 <multifs_unlink>: Likewise.
8657 <multifs_readlink>: Likewise.
8658 * linux-low.c (nat/linux-namespaces.h): New include.
8659 (linux_target_ops): Initialize the_target->multifs_open,
8660 the_target->multifs_unlink and the_target->multifs_readlink.
8661 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8662 * hostio.c (hostio_fs_pid): New static variable.
8663 (hostio_handle_new_gdb_connection): New function.
8664 (handle_setfs): Likewise.
8665 (handle_open): Use the_target->multifs_open as appropriate.
8666 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8667 (handle_readlink): Use the_target->multifs_readlink as
8668 appropriate.
8669 (handle_vFile): Handle vFile:setfs packets.
8670 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8671 after target_handle_new_gdb_connection.
8672
8673 2015-06-10 Gary Benson <gbenson@redhat.com>
8674
8675 * configure.ac (AC_CHECK_FUNCS): Add setns.
8676 * config.in: Regenerate.
8677 * configure: Likewise.
8678 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8679 (linux-namespaces.o): New rule.
8680 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8681
8682 2015-06-09 Gary Benson <gbenson@redhat.com>
8683
8684 * hostio.c (handle_open): Process mode argument with
8685 fileio_to_host_mode.
8686
8687 2015-06-01 Yao Qi <yao.qi@linaro.org>
8688
8689 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8690 * linux-x86-low.c: Likewise.
8691
8692 2015-05-28 Don Breazeal <donb@codesourcery.com>
8693
8694 * linux-low.c (handle_extended_wait): Initialize
8695 thread_info.last_resume_kind for new fork children.
8696
8697 2015-05-15 Pedro Alves <palves@redhat.com>
8698
8699 * target.h (target_handle_new_gdb_connection): Rewrite using if
8700 wrapped in do/while.
8701
8702 2015-05-14 Joel Brobecker <brobecker@adacore.com>
8703
8704 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8705 * configure, config.in: Regenerate.
8706 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8707 Declare typedef.
8708
8709 2015-05-12 Don Breazeal <donb@codesourcery.com>
8710
8711 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8712 PTRACE_EVENT_VFORK_DONE.
8713 (linux_low_ptrace_options, extended_event_reported): Add vfork
8714 events.
8715 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8716 and "vforkdone" for RSP 'T' Stop Reply Packet.
8717 * server.h (report_vfork_events): Declare
8718 global variable.
8719
8720 2015-05-12 Don Breazeal <donb@codesourcery.com>
8721
8722 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8723 (the_low_target) <new_fork>: Initialize new member.
8724 * linux-arm-low.c (arm_new_fork): New function.
8725 (the_low_target) <new_fork>: Initialize new member.
8726 * linux-low.c (handle_extended_wait): Call new target function
8727 new_fork.
8728 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8729 * linux-mips-low.c (mips_add_watchpoint): New function
8730 extracted from mips_insert_point.
8731 (the_low_target) <new_fork>: Initialize new member.
8732 (mips_linux_new_fork): New function.
8733 (mips_insert_point): Call mips_add_watchpoint.
8734 * linux-x86-low.c (x86_linux_new_fork): New function.
8735 (the_low_target) <new_fork>: Initialize new member.
8736
8737 2015-05-12 Don Breazeal <donb@codesourcery.com>
8738
8739 * linux-low.c (handle_extended_wait): Implement return value,
8740 rename argument 'event_child' to 'event_lwp', handle
8741 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8742 (linux_low_ptrace_options): New function.
8743 (linux_low_filter_event): Call linux_low_ptrace_options,
8744 use different argument fo linux_enable_event_reporting,
8745 use return value from handle_extended_wait.
8746 (extended_event_reported): New function.
8747 (linux_wait_1): Call extended_event_reported and set
8748 status to report fork events.
8749 (linux_write_memory): Add pid to debug message.
8750 (reset_lwp_ptrace_options_callback): New function.
8751 (linux_handle_new_gdb_connection): New function.
8752 (linux_target_ops): Initialize new structure member.
8753 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8754 * lynx-low.c: Initialize new structure member.
8755 * remote-utils.c (prepare_resume_reply): Implement stop reason
8756 "fork" for "T" stop message.
8757 * server.c (handle_query): Call handle_new_gdb_connection.
8758 * server.h (report_fork_events): Declare global flag.
8759 * target.h (struct target_ops) <handle_new_gdb_connection>:
8760 New member.
8761 (target_handle_new_gdb_connection): New macro.
8762 * win32-low.c: Initialize new structure member.
8763
8764 2015-05-12 Don Breazeal <donb@codesourcery.com>
8765
8766 * mem-break.c (APPEND_TO_LIST): Define macro.
8767 (clone_agent_expr): New function.
8768 (clone_one_breakpoint): New function.
8769 (clone_all_breakpoints): New function.
8770 * mem-break.h: Declare new functions.
8771
8772 2015-05-12 Don Breazeal <donb@codesourcery.com>
8773
8774 * linux-low.c (linux_supports_fork_events): New function.
8775 (linux_supports_vfork_events): New function.
8776 (linux_target_ops): Initialize new structure members.
8777 (initialize_low): Call linux_check_ptrace_features.
8778 * lynx-low.c (lynx_target_ops): Initialize new structure
8779 members.
8780 * server.c (report_fork_events, report_vfork_events):
8781 New global flags.
8782 (handle_query): Add new features to qSupported packet and
8783 response.
8784 (captured_main): Initialize new global variables.
8785 * target.h (struct target_ops) <supports_fork_events>:
8786 New member.
8787 <supports_vfork_events>: New member.
8788 (target_supports_fork_events): New macro.
8789 (target_supports_vfork_events): New macro.
8790 * win32-low.c (win32_target_ops): Initialize new structure
8791 members.
8792
8793 2015-05-12 Gary Benson <gbenson@redhat.com>
8794
8795 * server.c (handle_qxfer_exec_file): Use current process
8796 if annex is empty.
8797
8798 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8799
8800 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8801 Remove HAVE_PTRACE_GETREGS conditionals.
8802 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8803 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8804
8805 2015-05-08 Yao Qi <yao.qi@linaro.org>
8806
8807 * linux-low.c (linux_supports_conditional_breakpoints): New
8808 function.
8809 (linux_target_ops): Install new target method.
8810 * lynx-low.c (lynx_target_ops): Install NULL hook for
8811 supports_conditional_breakpoints.
8812 * nto-low.c (nto_target_ops): Likewise.
8813 * spu-low.c (spu_target_ops): Likewise.
8814 * win32-low.c (win32_target_ops): Likewise.
8815 * server.c (handle_query): Check
8816 target_supports_conditional_breakpoints.
8817 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8818 New field.
8819 (target_supports_conditional_breakpoints): New macro.
8820
8821 2015-05-06 Pedro Alves <palves@redhat.com>
8822
8823 PR server/18081
8824 * server.c (start_inferior): If the process exits, mourn it.
8825
8826 2015-04-21 Gary Benson <gbenson@redhat.com>
8827
8828 * hostio.c (fileio_open_flags_to_host): Factored out to
8829 fileio_to_host_openflags in common/fileio.c. Single use
8830 updated.
8831
8832 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8833
8834 * linux-xtensa-low.c (xtensa_fill_gregset)
8835 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8836 XCHAL_HAVE_LOOP.
8837
8838 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8839
8840 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8841 (regs_info): Replace usrregs pointer with NULL.
8842
8843 2015-04-17 Gary Benson <gbenson@redhat.com>
8844
8845 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8846 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8847 * server.c (handle_qxfer_exec_file): New function.
8848 (qxfer_packets): Add exec-file entry.
8849 (handle_query): Report qXfer:exec-file:read as supported packet.
8850
8851 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8852
8853 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8854
8855 2015-04-09 Gary Benson <gbenson@redhat.com>
8856
8857 * hostio-errno.c (errno_to_fileio_error): Remove function.
8858 Update caller to use remote_fileio_to_fio_error.
8859
8860 2015-04-09 Yao Qi <yao.qi@linaro.org>
8861
8862 * linux-low.c (linux_insert_point): Call
8863 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8864 (linux_remove_point): Call remove_memory_breakpoint if type is
8865 raw_bkpt_type_sw.
8866 * linux-x86-low.c (x86_insert_point): Don't call
8867 insert_memory_breakpoint.
8868 (x86_remove_point): Don't call remove_memory_breakpoint.
8869
8870 2015-04-01 Pedro Alves <palves@redhat.com>
8871 Cleber Rosa <crosa@redhat.com>
8872
8873 * server.c (gdbserver_usage): Reorganize and extend the usage
8874 message.
8875
8876 2015-03-24 Pedro Alves <palves@redhat.com>
8877
8878 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8879 output. Also dump TRAP_TRACE.
8880 (linux_low_filter_event): In debug output, distinguish a
8881 resume_stop SIGSTOP from a delayed SIGSTOP.
8882
8883 2015-03-24 Gary Benson <gbenson@redhat.com>
8884
8885 * linux-x86-low.c (x86_linux_new_thread): Moved to
8886 nat/x86-linux.c.
8887 (x86_linux_prepare_to_resume): Likewise.
8888
8889 2015-03-24 Gary Benson <gbenson@redhat.com>
8890
8891 * Makefile.in (x86-linux-dregs.o): New rule.
8892 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8893 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8894 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8895 (x86_linux_dr_get): Likewise.
8896 (x86_linux_dr_set): Likewise.
8897 (update_debug_registers_callback): Likewise.
8898 (x86_linux_dr_set_addr): Likewise.
8899 (x86_linux_dr_get_addr): Likewise.
8900 (x86_linux_dr_set_control): Likewise.
8901 (x86_linux_dr_get_control): Likewise.
8902 (x86_linux_dr_get_status): Likewise.
8903 (x86_linux_update_debug_registers): Likewise.
8904
8905 2015-03-24 Gary Benson <gbenson@redhat.com>
8906
8907 * linux-x86-low.c (x86_linux_update_debug_registers):
8908 New function, factored out from...
8909 (x86_linux_prepare_to_resume): ...this.
8910
8911 2015-03-24 Gary Benson <gbenson@redhat.com>
8912
8913 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8914 (x86_linux_dr_set): Likewise.
8915 (update_debug_registers_callback): Likewise.
8916 (x86_linux_dr_set_addr): Likewise.
8917 (x86_linux_dr_get_addr): Likewise.
8918 (x86_linux_dr_set_control): Likewise.
8919 (x86_linux_dr_get_control): Likewise.
8920 (x86_linux_dr_get_status): Likewise.
8921 (x86_linux_prepare_to_resume): Likewise.
8922
8923 2015-03-24 Gary Benson <gbenson@redhat.com>
8924
8925 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8926 Use perror_with_name. Pass string through gettext.
8927 (x86_linux_dr_set): Likewise.
8928
8929 2015-03-24 Gary Benson <gbenson@redhat.com>
8930
8931 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8932 (x86_linux_dr_set_addr): ...this.
8933 (x86_dr_low_get_addr): Rename to...
8934 (x86_linux_dr_get_addr): ...this.
8935 (x86_dr_low_set_control): Rename to...
8936 (x86_linux_dr_set_control): ...this.
8937 (x86_dr_low_get_control): Rename to...
8938 (x86_linux_dr_get_control): ...this.
8939 (x86_dr_low_get_status): Rename to...
8940 (x86_linux_dr_get_status): ...this.
8941 (x86_dr_low): Update with new function names.
8942
8943 2015-03-24 Gary Benson <gbenson@redhat.com>
8944
8945 * Makefile.in (x86-linux.o): New rule.
8946 * configure.srv: Add x86-linux.o to relevant targets.
8947 * linux-low.c (lwp_set_arch_private_info): New function.
8948 (lwp_arch_private_info): Likewise.
8949 * linux-x86-low.c: Include nat/x86-linux.h.
8950 (arch_lwp_info): Removed structure.
8951 (update_debug_registers_callback):
8952 Use lwp_set_debug_registers_changed.
8953 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8954 and lwp_set_debug_registers_changed.
8955 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8956
8957 2015-03-24 Gary Benson <gbenson@redhat.com>
8958
8959 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8960 * linux-arm-low.c (arm_new_thread): Likewise.
8961 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8962 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8963 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8964 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8965
8966 2015-03-24 Gary Benson <gbenson@redhat.com>
8967
8968 * linux-low.c (ptid_of_lwp): New function.
8969 (lwp_is_stopped): Likewise.
8970 (lwp_stop_reason): Likewise.
8971 * linux-x86-low.c (update_debug_registers_callback):
8972 Use lwp_is_stopped.
8973 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8974 lwp_stop_reason.
8975
8976 2015-03-24 Gary Benson <gbenson@redhat.com>
8977
8978 * linux-low.h (linux_stop_lwp): Remove declaration.
8979
8980 2015-03-24 Gary Benson <gbenson@redhat.com>
8981
8982 * linux-low.h: Include nat/linux-nat.h.
8983 * linux-low.c (iterate_over_lwps_args): New structure.
8984 (iterate_over_lwps_filter): New function.
8985 (iterate_over_lwps): Likewise.
8986 * linux-x86-low.c (update_debug_registers_callback):
8987 Update signature to what iterate_over_lwps expects.
8988 Remove PID check that iterate_over_lwps now performs.
8989 (x86_dr_low_set_addr): Use iterate_over_lwps.
8990 (x86_dr_low_set_control): Likewise.
8991
8992 2015-03-24 Gary Benson <gbenson@redhat.com>
8993
8994 * linux-x86-low.c (x86_debug_reg_state): New function.
8995 (x86_linux_prepare_to_resume): Use the above.
8996
8997 2015-03-24 Gary Benson <gbenson@redhat.com>
8998
8999 * linux-low.c (current_lwp_ptid): New function.
9000 * linux-x86-low.c: Include nat/linux-nat.h.
9001 (x86_dr_low_get_addr): Use current_lwp_ptid.
9002 (x86_dr_low_get_control): Likewise.
9003 (x86_dr_low_get_status): Likewise.
9004
9005 2015-03-20 Pedro Alves <palves@redhat.com>
9006
9007 * tracepoint.c (cmd_qtstatus): Make "str" const.
9008
9009 2015-03-20 Pedro Alves <palves@redhat.com>
9010
9011 * server.c (handle_general_set): Make "req_str" const.
9012
9013 2015-03-19 Pedro Alves <palves@redhat.com>
9014
9015 * linux-low.c (linux_resume_one_lwp): Rename to ...
9016 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9017 instead call perror_with_name.
9018 (check_ptrace_stopped_lwp_gone): New function.
9019 (linux_resume_one_lwp): Reimplement as wrapper around
9020 linux_resume_one_lwp_throw that swallows errors if the LWP is
9021 gone.
9022
9023 2015-03-19 Pedro Alves <palves@redhat.com>
9024
9025 * linux-low.c (count_events_callback, select_event_lwp_callback):
9026 No longer check whether the thread has resume_stop as last resume
9027 kind.
9028
9029 2015-03-19 Pedro Alves <palves@redhat.com>
9030
9031 * linux-low.c (count_events_callback, select_event_lwp_callback):
9032 Use the lwp's status_pending_p field, not the thread's.
9033
9034 2015-03-19 Pedro Alves <palves@redhat.com>
9035
9036 * linux-low.c (select_event_lwp_callback): Update comments to
9037 no longer mention SIGTRAP.
9038
9039 2015-03-18 Gary Benson <gbenson@redhat.com>
9040
9041 * server.c (handle_query): Do not report vFile:fstat as supported.
9042
9043 2015-03-11 Gary Benson <gbenson@redhat.com>
9044
9045 * hostio.c (sys/types.h): New include.
9046 (sys/stat.h): Likewise.
9047 (common-remote-fileio.h): Likewise.
9048 (handle_fstat): New function.
9049 (handle_vFile): Handle vFile:fstat packets.
9050
9051 2015-03-11 Gary Benson <gbenson@redhat.com>
9052
9053 * configure.ac (AC_CHECK_MEMBERS): Add checks for
9054 struct stat.st_blocks and struct stat.st_blksize.
9055 * configure: Regenerate.
9056 * config.in: Likewise.
9057 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9058 (OBS): Add common-remote-fileio.o.
9059 (common-remote-fileio.o): New rule.
9060
9061 2015-03-09 Pedro Alves <palves@redhat.com>
9062
9063 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
9064 'struct sockaddr' pointer in 'accept' call.
9065
9066 2015-03-09 Pedro Alves <palves@redhat.com>
9067
9068 Revert:
9069 2015-03-07 Pedro Alves <palves@redhat.com>
9070 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9071 or <winsock2.h> here. Instead include "gdb_socket.h".
9072 (remote_open): Use union gdb_sockaddr_u.
9073 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9074 or <winsock2.h> here. Instead include "gdb_socket.h".
9075 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9076 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9077 or <sys/un.h>.
9078 (init_named_socket, gdb_agent_helper_thread): Use union
9079 gdb_sockaddr_u.
9080
9081 2015-03-07 Pedro Alves <palves@redhat.com>
9082
9083 * configure.ac (build_warnings): Move
9084 -Wdeclaration-after-statement to the C-specific set.
9085 * configure: Regenerate.
9086
9087 2015-03-07 Pedro Alves <palves@redhat.com>
9088
9089 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9090 or <winsock2.h> here. Instead include "gdb_socket.h".
9091 (remote_open): Use union gdb_sockaddr_u.
9092 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9093 or <winsock2.h> here. Instead include "gdb_socket.h".
9094 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9095 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9096 or <sys/un.h>.
9097 (init_named_socket, gdb_agent_helper_thread): Use union
9098 gdb_sockaddr_u.
9099
9100 2015-03-07 Pedro Alves <palves@redhat.com>
9101
9102 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9103 instead.
9104
9105 2015-03-06 Yao Qi <yao.qi@linaro.org>
9106
9107 * linux-aarch64-low.c (aarch64_insert_point): Use
9108 show_debug_regs as a boolean.
9109 (aarch64_remove_point): Likewise.
9110
9111 2015-03-05 Pedro Alves <palves@redhat.com>
9112
9113 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9114 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9115 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9116 * nto-low.c (nto_target_ops): Likewise.
9117 * spu-low.c (spu_target_ops): Likewise.
9118 * win32-low.c (win32_target_ops): Likewise.
9119
9120 2015-03-04 Pedro Alves <palves@redhat.com>
9121
9122 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
9123 Decide whether a breakpoint triggered based on the SIGTRAP's
9124 siginfo.si_code.
9125 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9126 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9127 (linux_low_filter_event): Check for breakpoints before checking
9128 watchpoints.
9129 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9130 siginfo.si_code.
9131 (linux_stopped_by_sw_breakpoint)
9132 (linux_supports_stopped_by_sw_breakpoint)
9133 (linux_stopped_by_hw_breakpoint)
9134 (linux_supports_stopped_by_hw_breakpoint): New functions.
9135 (linux_target_ops): Install new target methods.
9136
9137 2015-03-04 Pedro Alves <palves@redhat.com>
9138
9139 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9140 * server.c (swbreak_feature, hwbreak_feature): New globals.
9141 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9142 (captured_main): Clear swbreak_feature and hwbreak_feature.
9143 * server.h (swbreak_feature, hwbreak_feature): Declare.
9144 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9145 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9146 supports_stopped_by_hw_breakpoint>: New fields.
9147 (target_supports_stopped_by_sw_breakpoint)
9148 (target_stopped_by_sw_breakpoint)
9149 (target_supports_stopped_by_hw_breakpoint)
9150 (target_stopped_by_hw_breakpoint): Declare.
9151
9152 2015-03-04 Pedro Alves <palves@redhat.com>
9153
9154 enum lwp_stop_reason -> enum target_stop_reason
9155 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9156 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9157 (linux_wait_1, stuck_in_jump_pad_callback)
9158 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9159 (linux_stopped_by_watchpoint):
9160 * linux-low.h (enum lwp_stop_reason): Delete.
9161 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9162 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9163
9164 2015-03-04 Yao Qi <yao.qi@linaro.org>
9165
9166 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9167
9168 2015-03-03 Gary Benson <gbenson@redhat.com>
9169
9170 * hostio.c (handle_vFile): Fix prefix lengths.
9171
9172 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9173
9174 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9175 ptr_bits.
9176
9177 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9178
9179 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9180 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9181 (clean): Add "rm -f" for above C files.
9182 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9183 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9184 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9185 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9186 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9187 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9188 (init_registers_s390x_vx_linux64)
9189 (init_registers_s390x_tevx_linux64)
9190 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9191 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9192 declarations.
9193 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9194 (s390_store_vxrs_high): New functions.
9195 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9196 NT_S390_VXRS_HIGH.
9197 (s390_arch_setup): Add logic for selecting one of the new target
9198 descriptions. Activate the new vector regsets if applicable.
9199 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9200 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9201 and init_registers_s390x_tevx_linux64.
9202
9203 2015-03-01 Pedro Alves <palves@redhat.com>
9204
9205 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9206 parameter.
9207
9208 2015-02-27 Pedro Alves <palves@redhat.com>
9209
9210 * linux-x86-low.c (u_debugreg_offset): New function.
9211 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9212
9213 2015-02-27 Pedro Alves <palves@redhat.com>
9214
9215 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9216 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9217 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9218 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9219 (ps_lsetfpregs, ps_getpid)
9220 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9221 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9222 (ps_lsetxregs, ps_plog): Declare.
9223
9224 2015-02-27 Pedro Alves <palves@redhat.com>
9225
9226 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9227 IP_AGENT_EXPORT_FUNC.
9228 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9229 IP_AGENT_EXPORT_FUNC.
9230 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9231 (IP_AGENT_EXPORT): Delete.
9232 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9233 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9234 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9235 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9236 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9237 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9238 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9239 (traceframe_read_count, traceframe_write_count)
9240 (traceframes_created, trace_state_variables, get_raw_reg)
9241 (get_trace_state_variable_value, set_trace_state_variable_value)
9242 (ust_loaded, helper_thread_id, cmd_buf): Use
9243 IPA_SYM_EXPORTED_NAME.
9244 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9245 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9246 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9247 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9248 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9249 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9250 EXTERN_C_PUSH/EXTERN_C_POP.
9251 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9252 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9253 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9254 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9255 (traceframe_write_count, traceframe_read_count)
9256 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9257 (about_to_request_buffer_space, get_trace_state_variable_value)
9258 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9259 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9260 EXTERN_C_PUSH/EXTERN_C_POP.
9261 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9262 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9263 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9264 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9265 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9266 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9267 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9268 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9269 Define.
9270 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9271 (IP_AGENT_EXPORT_VAR_DECL): Define.
9272 (tracing): Declare.
9273 (gdb_agent_get_raw_reg): Declare.
9274
9275 2015-02-27 Tom Tromey <tromey@redhat.com>
9276 Pedro Alves <palves@redhat.com>
9277
9278 Rename symbols whose names are reserved C++ keywords throughout.
9279
9280 2015-02-27 Pedro Alves <palves@redhat.com>
9281
9282 * Makefile.in (COMPILER): New, get it from autoconf.
9283 (CXX): Get from autoconf instead.
9284 (COMPILE.pre): Use COMPILER.
9285 (CC-LD): Rename to ...
9286 (CC_LD): ... this. Use COMPILER.
9287 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9288 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9289 * acinclude.m4: Include build-with-cxx.m4.
9290 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9291 Disable -Werror by default if building in C++ mode.
9292 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9293 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9294 the C++ compiler. Save/restore CXXFLAGS too.
9295 * configure: Regenerate.
9296
9297 2015-02-27 Pedro Alves <palves@redhat.com>
9298
9299 * acinclude.m4: Include libiberty.m4.
9300 * configure.ac: Call libiberty_INIT.
9301 * config.in, configure: Regenerate.
9302
9303 2015-02-26 Pedro Alves <palves@redhat.com>
9304
9305 * linux-low.c (linux_wait_1): When incrementing the PC past a
9306 program breakpoint always use the_low_target.breakpoint_len as
9307 increment, rather than the maximum between that and
9308 the_low_target.decr_pc_after_break.
9309
9310 2015-02-23 Pedro Alves <palves@redhat.com>
9311
9312 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9313 thread was doing a step-over; always adjust the PC if
9314 we stepped over a permanent breakpoint.
9315 (linux_wait_1): If we stepped over breakpoint that was on top of a
9316 permanent breakpoint, manually advance the PC past it.
9317
9318 2015-02-23 Pedro Alves <palves@redhat.com>
9319
9320 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9321 modes.
9322 (x86_fill_gregset, x86_store_gregset): Use it when handling
9323 $orig_eax.
9324
9325 2015-02-20 Pedro Alves <palves@redhat.com>
9326
9327 * thread-db.c: Include "nat/linux-procfs.h".
9328 (thread_db_init): Skip listing new threads if the kernel supports
9329 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9330
9331 2015-02-20 Pedro Alves <palves@redhat.com>
9332
9333 * linux-low.c (status_pending_p_callback): Use ptid_match.
9334
9335 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9336
9337 PR breakpoints/16812
9338 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9339 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9340 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9341
9342 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9343
9344 PR breakpoints/15956
9345 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9346
9347 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9348
9349 * linux-low.c (linux_low_btrace_conf): Print size.
9350 * server.c (handle_btrace_conf_general_set): New.
9351 (hanle_general_set): Call handle_btrace_conf_general_set.
9352 (handle_query): Report Qbtrace-conf:bts:size as supported.
9353
9354 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9355
9356 * linux-low.c (linux_low_enable_btrace): Update parameters.
9357 (linux_low_btrace_conf): New.
9358 (linux_target_ops)<to_btrace_conf>: Initialize.
9359 * server.c (current_btrace_conf): New.
9360 (handle_btrace_enable): Rename to ...
9361 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
9362 to target_enable_btrace. Update comment. Update users.
9363 (handle_qxfer_btrace_conf): New.
9364 (qxfer_packets): Add btrace-conf entry.
9365 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9366 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9367 (target_ops)<read_btrace_conf>: New.
9368 (target_enable_btrace): Update parameters.
9369 (target_read_btrace_conf): New.
9370
9371 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9372
9373 * server.c (handle_btrace_general_set): Remove call to
9374 target_supports_btrace.
9375 (supported_btrace_packets): New.
9376 (handle_query): Call supported_btrace_packets.
9377 * target.h: include btrace-common.h.
9378 (btrace_target_info): Removed.
9379 (supports_btrace, target_supports_btrace): Update parameters.
9380
9381 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9382
9383 * Makefile.in (SFILES): Add common/btrace-common.c.
9384 (OBS): Add common/btrace-common.o.
9385 (btrace-common.o): Add build rules.
9386 * linux-low: Include btrace-common.h.
9387 (linux_low_read_btrace): Use struct btrace_data. Call
9388 btrace_data_init and btrace_data_fini.
9389
9390 2015-02-06 Pedro Alves <palves@redhat.com>
9391
9392 * thread-db.c (find_new_threads_callback): Add debug output.
9393
9394 2015-02-04 Pedro Alves <palves@redhat.com>
9395
9396 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9397 (resume_stopped_resumed_lwps): New function.
9398 (linux_wait_for_event_filtered): Use it.
9399
9400 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9401
9402 * Makefile.in (SFILES): Add linux-personality.c.
9403 (linux-personality.o): New rule.
9404 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9405 list of objects to be built.
9406 * linux-low.c: Include nat/linux-personality.h.
9407 (linux_create_inferior): Remove code to disable address space
9408 randomization (moved to ../nat/linux-personality.c). Create
9409 cleanup to disable address space randomization.
9410
9411 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9412
9413 * Makefile.in (posix-strerror.o): New rule.
9414 (mingw-strerror.o): Likewise.
9415 * configure: Regenerated.
9416 * configure.ac: Source file ../common/common.host. Initialize new
9417 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9418
9419 2015-01-14 Yao Qi <yao@codesourcery.com>
9420
9421 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9422 (ppc-linux.o): New rule.
9423 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9424 * configure.ac: AC_CHECK_FUNCS(getauxval).
9425 * config.in: Re-generated.
9426 * configure: Re-generated.
9427 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9428 ppc64_64bit_inferior_p
9429
9430 2015-01-14 Yao Qi <yao@codesourcery.com>
9431
9432 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9433 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9434 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9435 (PT_ORIG_R3, PT_TRAP): Likewise.
9436 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9437 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9438 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9439
9440 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9441
9442 * i387-fp.c (i387_cache_to_xsave): In look over
9443 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9444 zmmh_low_space field by use of zmmh_high_space.
9445
9446 2015-01-09 Pedro Alves <palves@redhat.com>
9447
9448 * linux-low.c (step_over_bkpt): Move higher up in the file.
9449 (handle_extended_wait): Don't store the stop_pc here.
9450 (get_stop_pc): Adjust comments and rename to ...
9451 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9452 stopped for a software breakpoint or hardware breakpoint.
9453 (thread_still_has_status_pending_p): New function.
9454 (status_pending_p_callback): Use
9455 thread_still_has_status_pending_p. If the event is no longer
9456 interesting, resume the LWP.
9457 (handle_tracepoints): Add assert.
9458 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9459 (wstatus_maybe_breakpoint): New function.
9460 (cancel_breakpoint): Delete function.
9461 (check_stopped_by_watchpoint): New function, factored out from
9462 linux_low_filter_event.
9463 (lp_status_maybe_breakpoint): Delete function.
9464 (linux_low_filter_event): Remove filter_ptid argument.
9465 Leave thread group exits pending here. Store the LWP's stop PC.
9466 Always leave events pending.
9467 (linux_wait_for_event_filtered): Pull all events out of the
9468 kernel, and leave them all pending.
9469 (count_events_callback, select_event_lwp_callback): Consider all
9470 events.
9471 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9472 (select_event_lwp): Only give preference to the stepping LWP in
9473 all-stop mode. Adjust comments.
9474 (ignore_event): New function.
9475 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9476 references to cancel_breakpoints. Adjust to renames. Also give
9477 equal priority to all LWPs that have had events in non-stop mode.
9478 If reporting a software breakpoint event, unadjust the LWP's PC.
9479 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9480 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9481 Adjust.
9482 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9483 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9484 (linux_stopped_by_watchpoint): Adjust.
9485 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9486 * linux-low.h (enum lwp_stop_reason): New.
9487 (struct lwp_info) <stop_pc>: Adjust comment.
9488 <stopped_by_watchpoint>: Delete field.
9489 <stop_reason>: New field.
9490 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9491 * mem-break.c (software_breakpoint_inserted_here)
9492 (hardware_breakpoint_inserted_here): New function.
9493 * mem-break.h (software_breakpoint_inserted_here)
9494 (hardware_breakpoint_inserted_here): Declare.
9495 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9496 (cancel_breakpoints): Delete.
9497 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9498 (upload_fast_traceframes): Remove references to
9499 cancel_breakpoints.
9500
9501 2015-01-09 Pedro Alves <palves@redhat.com>
9502
9503 * thread-db.c (find_new_threads_callback): Ignore thread if the
9504 kernel thread ID is -1.
9505
9506 2015-01-09 Pedro Alves <palves@redhat.com>
9507
9508 * linux-low.c (linux_attach_fail_reason_string): Move to
9509 nat/linux-ptrace.c, and rename.
9510 (linux_attach_lwp): Update comment.
9511 (attach_proc_task_lwp_callback): New function.
9512 (linux_attach): Adjust to rename and use
9513 linux_proc_attach_tgid_threads.
9514 (linux_attach_fail_reason_string): Delete declaration.
9515
9516 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9517
9518 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9519 * server.c (gdbserver_version): Likewise.
9520
9521 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9522
9523 * remote-utils.c: Include ctype.h.
9524 (input_interrupt): Explicitly handle the case when the char
9525 received is the NUL byte. Improve the printing of non-ASCII
9526 characters.
9527
9528 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9529
9530 * linux-low.c (linux_low_filter_event): Update call to
9531 linux_enable_event_reporting following the addition of
9532 a new parameter to that function.
9533
9534 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9535
9536 PR server/17457
9537 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9538 (AARCH64_FPCR_REGNO): Likewise.
9539 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9540 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9541 (aarch64_store_fpregset): Likewise.
9542
9543 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9544
9545 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9546 Remove FIXME comment about assumption about N.
9547
9548 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9549
9550 * configure.ac: If large-file support is disabled in GDBserver,
9551 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9552 * configure: Regenerate.
9553
9554 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9555
9556 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9557 warning upon ENODATA from ptrace.
9558 * linux-s390-low.c (s390_store_tdb): New.
9559 (s390_regsets): Add regset for NT_S390_TDB.
9560
9561 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9562
9563 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9564 without a fill_function.
9565 * linux-s390-low.c (s390_fill_last_break): Remove.
9566 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9567 (s390_arch_setup): Use regset's size instead of fill_function for
9568 loop end condition.
9569
9570 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9571
9572 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9573 the regset's store function when ptrace returned an error.
9574 * regcache.c (get_thread_regcache): Invalidate register cache
9575 before fetching inferior's registers.
9576
9577 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9578
9579 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9580 while-loop as for-loop.
9581 (regsets_store_inferior_registers): Likewise.
9582
9583 2014-11-28 Yao Qi <yao@codesourcery.com>
9584
9585 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9586 * config.in, configure: Re-generate.
9587 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9588 is defined.
9589
9590 2014-11-21 Yao Qi <yao@codesourcery.com>
9591
9592 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9593 (AC_CHECK_HEADERS): Remove malloc.h.
9594 * configure: Re-generated.
9595 * config.in: Re-generated.
9596 * server.h: Don't include alloca.h and malloc.h.
9597 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9598 Don't include malloc.h.
9599
9600 2014-11-17 Joel Brobecker <brobecker@adacore.com>
9601
9602 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9603 corresponding ERRNO check in same block.
9604
9605 2014-11-12 Pedro Alves <palves@redhat.com>
9606
9607 * server.c (cont_thread): Update comment.
9608 (start_inferior, attach_inferior): No longer clear cont_thread.
9609 (handle_v_cont): No longer set cont_thread.
9610 (captured_main): Clear cont_thread each time a GDB connects.
9611
9612 2014-11-12 Pedro Alves <palves@redhat.com>
9613
9614 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9615 thread, and don't resume all threads if the Hc thread has exited.
9616
9617 2014-11-12 Pedro Alves <palves@redhat.com>
9618
9619 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9620 the process group instead of to a specific LWP.
9621
9622 2014-10-15 Pedro Alves <palves@redhat.com>
9623
9624 PR server/17487
9625 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9626 parameter.
9627 (arm_set_thread_context): Delete.
9628 (the_low_target): Adjust.
9629 * win32-i386-low.c (debug_registers_changed)
9630 (debug_registers_used): Delete.
9631 (update_debug_registers_callback): New function.
9632 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9633 needing to update their debug registers.
9634 (win32_get_current_dr): New function.
9635 (x86_dr_low_get_addr, x86_dr_low_get_control)
9636 (x86_dr_low_get_status): Fetch the debug register from the thread
9637 record's context.
9638 (i386_initial_stuff): Adjust.
9639 (i386_get_thread_context): Remove current_event parameter. Don't
9640 clear debug_registers_changed nor copy DR values to
9641 debug_reg_state.
9642 (i386_set_thread_context): Delete.
9643 (i386_prepare_to_resume): New function.
9644 (i386_thread_added): Mark the thread as needing to update irs
9645 debug registers.
9646 (the_low_target): Remove i386_set_thread_context and install
9647 i386_prepare_to_resume.
9648 * win32-low.c (win32_get_thread_context): Adjust.
9649 (win32_set_thread_context): Use SetThreadContext
9650 directly.
9651 (win32_prepare_to_resume): New function.
9652 (win32_require_context): New function, factored out from ...
9653 (thread_rec): ... this.
9654 (continue_one_thread): Call win32_prepare_to_resume on each thread
9655 we're about to continue.
9656 (win32_resume): Call win32_prepare_to_resume on the event thread.
9657 * win32-low.h (struct win32_thread_info)
9658 <debug_registers_changed>: New field.
9659 (struct win32_target_ops): Change prototype of set_thread_context,
9660 delete set_thread_context and add prepare_to_resume.
9661 (win32_require_context): New declaration.
9662
9663 2014-10-08 Gary Benson <gbenson@redhat.com>
9664
9665 * server.h: Do not include common-exceptions.h.
9666
9667 2014-10-08 Gary Benson <gbenson@redhat.com>
9668
9669 * server.h: Do not include cleanups.h.
9670
9671 2014-09-30 James Hogan <james.hogan@imgtec.com>
9672
9673 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9674 mips64-dsp-linux.c.
9675
9676 2014-09-23 Yao Qi <yao@codesourcery.com>
9677
9678 * linux-low.c (lp_status_maybe_breakpoint): New function.
9679 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9680 (count_events_callback): Likewise.
9681 (select_event_lwp_callback): Likewise.
9682 (cancel_breakpoints_callback): Likewise.
9683
9684 2014-09-19 Don Breazeal <donb@codesourcery.com>
9685
9686 * linux-low.c (handle_extended_wait): Call
9687 linux_ptrace_get_extended_event.
9688 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9689 linux_is_extended_waitstatus.
9690
9691 2014-09-16 Joel Brobecker <brobecker@adacore.com>
9692
9693 * Makefile.in (CPPFLAGS): Define.
9694 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9695 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9696
9697 2014-09-16 Gary Benson <gbenson@redhat.com>
9698
9699 * inferiors.h (current_inferior): Renamed as...
9700 (current_thread): New variable. All uses updated.
9701 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9702 (maybe_move_out_of_jump_pad): Likewise.
9703 (cancel_breakpoint): Likewise.
9704 (linux_low_filter_event): Likewise.
9705 (wait_for_sigstop): Likewise.
9706 (linux_resume_one_lwp): Likewise.
9707 (need_step_over_p): Likewise.
9708 (start_step_over): Likewise.
9709 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9710 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9711 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9712 and save_inferior as saved_thread.
9713 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9714 saved_thread.
9715 (regcache_invalidate_thread): Likewise.
9716 * remote-utils.c (prepare_resume_reply): Likewise.
9717 * thread-db.c (thread_db_get_tls_address): Likewise.
9718 (disable_thread_event_reporting): Likewise.
9719 (remove_thread_event_breakpoints): Likewise.
9720 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9721 as saved_thread.
9722 * target.h (set_desired_inferior): Renamed as...
9723 (set_desired_thread): New declaration. All uses updated.
9724 * server.c (myresume): Updated comment to reference thread instead
9725 of inferior.
9726 (handle_serial_event): Likewise.
9727 (handle_target_event): Likewise.
9728
9729 2014-09-12 Tom Tromey <tromey@redhat.com>
9730 Gary Benson <gbenson@redhat.com>
9731
9732 * regcache.h: Include common-regcache.h.
9733 (regcache_read_pc): Don't declare.
9734 * regcache.c (get_thread_regcache_for_ptid): New function.
9735
9736 2014-09-11 Tom Tromey <tromey@redhat.com>
9737 Gary Benson <gbenson@redhat.com>
9738
9739 * symbol.c: New file.
9740 * Makefile.in (SFILES): Add symbol.c.
9741 (OBS): Add symbol.o.
9742
9743 2014-09-11 Gary Benson <gbenson@redhat.com>
9744
9745 * target.c (target_stop_ptid, target_continue_ptid): New
9746 functions.
9747
9748 2014-09-11 Tom Tromey <tromey@redhat.com>
9749 Gary Benson <gbenson@redhat.com>
9750
9751 * target.h: Include target/target.h.
9752 * target.c (target_read_memory, target_read_uint32)
9753 (target_write_memory): New functions.
9754
9755 2014-09-11 Gary Benson <gbenson@redhat.com>
9756
9757 * server.h (debug_hw_points): Don't declare.
9758 * server.c (debug_hw_points): Don't define. Replace all uses
9759 with show_debug_regs.
9760 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9761 all uses with show_debug_regs.
9762
9763 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9764
9765 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9766 endianness into account.
9767 (ppc_supply_ptrace_register): Likewise.
9768
9769 2014-09-03 James Hogan <james.hogan@imgtec.com>
9770
9771 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9772 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9773
9774 2014-09-03 Gary Benson <gbenson@redhat.com>
9775
9776 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9777 ALL_DEBUG_ADDRESS_REGISTERS.
9778
9779 2014-09-02 Gary Benson <gbenson@redhat.com>
9780
9781 * i386-low.h: Renamed as...
9782 * x86-low.h: New file. All type, function and variable name
9783 prefixes changed from "i386_" to "x86_". All references updated.
9784 * i386-low.c: Renamed as...
9785 * x86-low.c: New file. All type, function and variable name
9786 prefixes changed from "i386_" to "x86_". All references updated.
9787
9788 2014-09-02 Gary Benson <gbenson@redhat.com>
9789
9790 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9791 (x86_linux_new_thread): Likewise.
9792
9793 2014-08-29 Gary Benson <gbenson@redhat.com>
9794
9795 * server.h (setjmp.h): Do not include.
9796 (toplevel): Do not declare.
9797 (common-exceptions.h): Include.
9798 (cleanups.h): Likewise.
9799 * server.c (toplevel): Do not define.
9800 (exit_code): New static global.
9801 (detach_or_kill_for_exit_cleanup): New function.
9802 (main): New function. Original main renamed to...
9803 (captured_main): New function.
9804 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9805
9806 2014-08-29 Gary Benson <gbenson@redhat.com>
9807
9808 * Makefile.in (SFILES): Add common/common-exceptions.c.
9809 (OBS): Add common-exceptions.o.
9810 (common-exceptions.o): New rule.
9811 * utils.c (prepare_to_throw_exception): New function.
9812
9813 2014-08-29 Gary Benson <gbenson@redhat.com>
9814
9815 * config.in: Regenerate.
9816 * configure: Likewise.
9817
9818 2014-08-29 Gary Benson <gbenson@redhat.com>
9819
9820 * Makefile.in (SFILES): Add common/cleanups.c.
9821 (OBS): cleanups.o.
9822 (cleanups.o): New rule.
9823
9824 2014-08-29 Gary Benson <gbenson@redhat.com>
9825
9826 * utils.c (internal_vwarning): New function.
9827
9828 2014-08-28 Gary Benson <gbenson@redhat.com>
9829
9830 * utils.h (fatal): Remove declaration.
9831 * utils.c (fatal): Remove function.
9832
9833 2014-08-28 Gary Benson <gbenson@redhat.com>
9834
9835 * tracepoint.c (gdb_agent_init): Replace fatal with
9836 perror_with_name.
9837 (initialize_tracepoint): Likewise.
9838
9839 2014-08-28 Gary Benson <gbenson@redhat.com>
9840
9841 * remote-utils.c (remote_prepare): Replace fatal with error.
9842
9843 2014-08-28 Gary Benson <gbenson@redhat.com>
9844
9845 * linux-low.c (linux_async): Replace fatal with warning.
9846 Tidy up and return.
9847 (linux_start_non_stop): Return -1 if linux_async failed.
9848
9849 2014-08-28 Gary Benson <gbenson@redhat.com>
9850
9851 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9852 gdb_assert.
9853 (i386_dr_low_get_addr): Remove vague comment.
9854 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9855 gdb_assert.
9856
9857 2014-08-28 Gary Benson <gbenson@redhat.com>
9858
9859 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9860 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9861 internal_error.
9862 (linux_resume_one_lwp): Likewise.
9863 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9864 gdb_assert.
9865 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9866 with internal_error.
9867 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9868 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9869 (find_register_by_name): Replace fatal with internal_error.
9870 (find_regno): Likewise.
9871 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9872 * thread-db.c (thread_db_create_event): Likewise.
9873 (thread_db_load_search): Likewise.
9874 (try_thread_db_load_1): Likewise.
9875 * tracepoint.c (get_jump_space_head): Replace fatal with
9876 internal_error.
9877 (claim_trampoline_space): Likewise.
9878 (have_fast_tracepoint_trampoline_buffer): Likewise.
9879 (cmd_qtstart): Likewise.
9880 (stop_tracing): Likewise.
9881 (fast_tracepoint_collecting): Likewise.
9882 (target_malloc): Likewise.
9883 (download_tracepoint): Likewise.
9884 (download_trace_state_variables): Replace check with gdb_assert.
9885 (upload_fast_traceframes): Replace fatal with internal_error.
9886
9887 2014-08-19 Tom Tromey <tromey@redhat.com>
9888 Gary Benson <gbenson@redhat.com>
9889
9890 * Makefile.in (SFILES): Add common/common-debug.c.
9891 (OBS): Add common-debug.o.
9892 (common-debug.o): New rule.
9893 * debug.h (debug_printf): Don't declare.
9894 * debug.c (debug_printf): Renamed and rewritten as...
9895 (debug_vprintf): New function.
9896
9897 2014-08-19 Gary Benson <gbenson@redhat.com>
9898
9899 * utils.h: Do not include print-utils.h.
9900
9901 2014-08-19 Tom Tromey <tromey@redhat.com>
9902 Gary Benson <gbenson@redhat.com>
9903
9904 * server.h: Add static assertion.
9905 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9906
9907 2014-08-19 Tom Tromey <tromey@redhat.com>
9908 Gary Benson <gbenson@redhat.com>
9909
9910 * Makefile.in (SFILES): Add common/errors.c.
9911 (OBS): Add errors.o.
9912 (IPA_OBS): Add errors-ipa.o.
9913 (errors.o): New rule.
9914 (errors-ipa.o): Likewise.
9915 * utils.h (perror_with_name, error, warning): Don't declare.
9916 * utils.c (warning): Renamed and rewritten as...
9917 (vwarning): New function.
9918 (error): Renamed and rewritten as...
9919 (verror): New function.
9920 (internal_error): Renamed and rewritten as...
9921 (internal_verror): New function.
9922
9923 2014-08-07 Gary Benson <gbenson@redhat.com>
9924
9925 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9926 * configure: Regenerate.
9927 * config.in: Likewise.
9928 * server.h: Do not include errno.h.
9929 * event-loop.c: Likewise.
9930 * hostio-errno.c: Likewise.
9931 * linux-low.c: Likewise.
9932 * remote-utils.c: Likewise.
9933 * spu-low.c: Likewise.
9934 * utils.c: Likewise.
9935 * gdbreplay.c: Unconditionally include errno.h.
9936
9937 2014-08-07 Gary Benson <gbenson@redhat.com>
9938
9939 * server.h: Do not include string.h.
9940 * event-loop.c: Likewise.
9941 * linux-low.c: Likewise.
9942 * regcache.c: Likewise.
9943 * remote-utils.c: Likewise.
9944 * spu-low.c: Likewise.
9945 * utils.c: Likewise.
9946
9947 2014-08-07 Gary Benson <gbenson@redhat.com>
9948
9949 * server.h: Do not include gdb_assert.h.
9950
9951 2014-08-07 Gary Benson <gbenson@redhat.com>
9952
9953 * server.h: Do not include common-utils.h.
9954
9955 2014-08-07 Gary Benson <gbenson@redhat.com>
9956
9957 * server.h: Do not include ptid.h.
9958 * notif.h: Likewise.
9959
9960 2014-08-07 Gary Benson <gbenson@redhat.com>
9961
9962 * server.h: Do not include gdb_locale.h.
9963
9964 2014-08-07 Gary Benson <gbenson@redhat.com>
9965
9966 * server.h: Do not include gdb/signals.h.
9967 * win32-low.c: Likewise.
9968
9969 2014-08-07 Gary Benson <gbenson@redhat.com>
9970
9971 * server.h: Do not include pathmax.h.
9972
9973 2014-08-07 Gary Benson <gbenson@redhat.com>
9974
9975 * server.h: Do not include libiberty.h.
9976 * linux-bfin-low.c: Likewise.
9977
9978 2014-08-07 Gary Benson <gbenson@redhat.com>
9979
9980 * server.h: Do not include ansidecl.h.
9981
9982 2014-08-07 Gary Benson <gbenson@redhat.com>
9983
9984 * linux-x86-low.c: Do not include stddef.h.
9985 * lynx-ppc-low.c: Likewise.
9986 * tracepoint.c: Likewise.
9987
9988 2014-08-07 Gary Benson <gbenson@redhat.com>
9989
9990 * server.h: Do not include stdarg.h.
9991 * nto-low.c: Likewise.
9992
9993 2014-08-07 Gary Benson <gbenson@redhat.com>
9994
9995 * server.h: Do not include stdlib.h.
9996 * inferiors.c: Likewise.
9997 * linux-low.c: Likewise.
9998 * regcache.c: Likewise.
9999 * spu-low.c: Likewise.
10000 * tracepoint.c: Likewise.
10001 * utils.c: Likewise.
10002
10003 2014-08-07 Gary Benson <gbenson@redhat.com>
10004
10005 * server.h: Do not include stdio.h.
10006 * linux-low.c: Likewise.
10007 * remote-utils.c: Likewise.
10008 * spu-low.c: Likewise.
10009 * utils.c: Likewise.
10010 * wincecompat.c: Likewise.
10011
10012 2014-08-06 Gary Benson <gbenson@redhat.com>
10013
10014 * regcache.c (init_register_cache): Move conditionals inside if.
10015
10016 2014-08-06 Gary Benson <gbenson@redhat.com>
10017
10018 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
10019
10020 2014-07-31 Gary Benson <gbenson@redhat.com>
10021
10022 * ax.h: Do not include server.h.
10023 * gdbthread.h: Likewise.
10024 * lynx-low.h: Likewise.
10025 * notif.h: Likewise.
10026
10027 2014-07-30 Gary Benson <gbenson@redhat.com>
10028
10029 * server.h: Include common-defs.h.
10030 Do not include config.h or build-gnulib-gdbserver/config.h.
10031
10032 2014-07-30 Gary Benson <gbenson@redhat.com>
10033
10034 * hostio-errno.c: Move server.h to top of includes list.
10035 * inferiors.c: Likewise.
10036 * linux-x86-low.c: Likewise.
10037 * notif.c: Include server.h.
10038
10039 2014-07-24 Tom Tromey <tromey@redhat.com>
10040 Gary Benson <gbenson@redhat.com>
10041
10042 * server.h (CORE_ADDR): Now unsigned.
10043
10044 2014-07-16 Pedro Alves <palves@redhat.com>
10045
10046 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
10047
10048 2014-07-15 Pedro Alves <palves@redhat.com>
10049
10050 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
10051 copy.
10052
10053 2014-07-11 Pedro Alves <palves@redhat.com>
10054
10055 * linux-low.c (kill_wait_lwp): New function, based on
10056 kill_one_lwp_callback, but use my_waitpid directly.
10057 (kill_one_lwp_callback, linux_kill): Use it.
10058
10059 2014-06-23 Pedro Alves <palves@redhat.com>
10060
10061 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
10062 before setting DR0..DR3.
10063
10064 2014-06-20 Gary Benson <gbenson@redhat.com>
10065
10066 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
10067 * configure: Regenerated.
10068 * config.in: Likewise.
10069
10070 2014-06-20 Gary Benson <gbenson@redhat.com>
10071
10072 * Makefile.in (SFILES): Update locations for files moved
10073 from common to nat.
10074 (object file files): Reordered.
10075
10076 2014-06-20 Gary Benson <gbenson@redhat.com>
10077
10078 * i386-low.h (i386_dr_low_can_set_addr): Removed.
10079 (i386_dr_low_set_addr): Likewise.
10080 (i386_dr_low_get_addr): Likewise.
10081 (i386_dr_low_can_set_control): Likewise.
10082 (i386_dr_low_set_control): Likewise.
10083 (i386_dr_low_get_control): Likewise.
10084 (i386_dr_low_get_status): Likewise.
10085 (i386_get_debug_register_length): Likewise.
10086 * linux-x86-low.c (i386_dr_low_set_addr):
10087 Changed signature. Made static.
10088 (i386_dr_low_get_addr): Likewise.
10089 (i386_dr_low_set_control): Likewise.
10090 (i386_dr_low_get_control): Likewise.
10091 (i386_dr_low_get_status): Likewise.
10092 (i386_dr_low): New global variable.
10093 * win32-i386-low.c (i386_dr_low_set_addr):
10094 Changed signature. Made static.
10095 (i386_dr_low_get_addr): Likewise.
10096 (i386_dr_low_set_control): Likewise.
10097 (i386_dr_low_get_control): Likewise.
10098 (i386_dr_low_get_status): Likewise.
10099 (i386_dr_low): New global variable.
10100
10101 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10102
10103 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10104 * Makefile.in (AR, AR_FLAGS): Define.
10105 * configure: Regenerate.
10106
10107 2014-06-19 Gary Benson <gbenson@redhat.com>
10108
10109 * Makefile.in (i386-dregs.o): New rule.
10110 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10111 * i386-low.c (target.h): Remove include.
10112 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10113 (DR_CONTROL_SHIFT): Likewise.
10114 (DR_CONTROL_SIZE): Likewise.
10115 (DR_RW_EXECUTE): Likewise.
10116 (DR_RW_WRITE): Likewise.
10117 (DR_RW_READ): Likewise.
10118 (DR_RW_IORW): Likewise.
10119 (DR_LEN_1): Likewise.
10120 (DR_LEN_2): Likewise.
10121 (DR_LEN_4): Likewise.
10122 (DR_LEN_8): Likewise.
10123 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10124 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10125 (DR_ENABLE_SIZE): Likewise.
10126 (DR_LOCAL_SLOWDOWN): Likewise.
10127 (DR_GLOBAL_SLOWDOWN): Likewise.
10128 (DR_CONTROL_RESERVED): Likewise.
10129 (I386_DR_CONTROL_MASK): Likewise.
10130 (I386_DR_VACANT): Likewise.
10131 (I386_DR_LOCAL_ENABLE): Likewise.
10132 (I386_DR_GLOBAL_ENABLE): Likewise.
10133 (I386_DR_DISABLE): Likewise.
10134 (I386_DR_SET_RW_LEN): Likewise.
10135 (I386_DR_GET_RW_LEN): Likewise.
10136 (I386_DR_WATCH_HIT): Likewise.
10137 (i386_wp_op_t): Likewise.
10138 (i386_show_dr): Likewise.
10139 (i386_length_and_rw_bits): Likewise.
10140 (i386_insert_aligned_watchpoint): Likewise.
10141 (i386_remove_aligned_watchpoint): Likewise.
10142 (i386_handle_nonaligned_watchpoint): Likewise.
10143 i386_update_inferior_debug_regs(): Likewise.
10144 (i386_dr_insert_watchpoint): Likewise.
10145 (i386_dr_remove_watchpoint): Likewise.
10146 (i386_dr_region_ok_for_watchpoint): Likewise.
10147 (i386_dr_stopped_data_address): Likewise.
10148 (i386_dr_stopped_by_watchpoint): Likewise.
10149
10150 2014-06-19 Gary Benson <gbenson@redhat.com>
10151
10152 * i386-low.c (i386_dr_show): Renamed to
10153 i386_show_dr and made static. All uses updated.
10154 (i386_dr_length_and_rw_bits): Renamed to
10155 i386_length_and_rw_bits and made static.
10156 All uses updated.
10157 (i386_dr_insert_aligned_watchpoint): Renamed to
10158 i386_insert_aligned_watchpoint and made static.
10159 All uses updated.
10160 (i386_dr_remove_aligned_watchpoint): Renamed to
10161 i386_remove_aligned_watchpoint and made static.
10162 All uses updated.
10163 (i386_dr_update_inferior_debug_regs): Renamed to
10164 i386_update_inferior_debug_regs and made static.
10165 All uses updated.
10166
10167 2014-06-18 Gary Benson <gbenson@redhat.com>
10168
10169 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10170 (i386_dr_low_can_set_control): Likewise.
10171 (i386_get_debug_register_length): Likewise.
10172 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10173 (i386_dr_low_can_set_control): Likewise.
10174 (i386_get_debug_register_length): Likewise.
10175
10176 2014-06-17 Gary Benson <gbenson@redhat.com>
10177
10178 * i386-low.h (i386-dregs.h): New include.
10179 (DR_FIRSTADDR): Now in i386-dregs.h.
10180 (DR_LASTADDR): Likewise.
10181 (DR_NADDR): Likewise.
10182 (DR_STATUS): Likewise.
10183 (DR_CONTROL): Likewise.
10184 (i386_debug_reg_state): Likewise.
10185 (i386_dr_insert_watchpoint): Likewise.
10186 (i386_dr_remove_watchpoint): Likewise.
10187 (i386_dr_region_ok_for_watchpoint): Likewise.
10188 (i386_dr_stopped_data_address): Likewise.
10189 (i386_dr_stopped_by_watchpoint): Likewise.
10190 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10191
10192 2014-06-18 Gary Benson <gbenson@redhat.com>
10193
10194 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10195 i386_dr_insert_watchpoint.
10196 (i386_low_remove_watchpoint): Renamed to
10197 i386_dr_remove_watchpoint.
10198 (i386_low_region_ok_for_watchpoint): Renamed to
10199 i386_dr_region_ok_for_watchpoint.
10200 (i386_low_stopped_data_address): Renamed to
10201 i386_dr_stopped_data_address.
10202 (i386_low_stopped_by_watchpoint): Renamed to
10203 i386_dr_stopped_by_watchpoint.
10204 * i386-low.c (i386_show_dr): Renamed to
10205 i386_dr_show and made nonstatic. All uses updated.
10206 (i386_length_and_rw_bits): Renamed to
10207 i386_dr_length_and_rw_bits and made nonstatic.
10208 All uses updated.
10209 (i386_insert_aligned_watchpoint): Renamed to
10210 i386_dr_insert_aligned_watchpoint and made nonstatic.
10211 All uses updated.
10212 (i386_remove_aligned_watchpoint): Renamed to
10213 i386_dr_remove_aligned_watchpoint and made nonstatic.
10214 All uses updated.
10215 (i386_update_inferior_debug_regs): Renamed to
10216 i386_dr_update_inferior_debug_regs and made nonstatic.
10217 All uses updated.
10218 (i386_low_insert_watchpoint): Renamed to
10219 i386_dr_insert_watchpoint. All uses updated.
10220 (i386_low_remove_watchpoint): Renamed to
10221 i386_dr_remove_watchpoint. All uses updated.
10222 (i386_low_region_ok_for_watchpoint): Renamed to
10223 i386_dr_region_ok_for_watchpoint. All uses updated.
10224 (i386_low_stopped_data_address): Renamed to
10225 i386_dr_stopped_data_address. All uses updated.
10226 (i386_low_stopped_by_watchpoint): Renamed to
10227 i386_dr_stopped_by_watchpoint. All uses updated.
10228
10229 2014-06-18 Gary Benson <gbenson@redhat.com>
10230
10231 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10232 (i386_dr_low_can_set_control): Likewise.
10233 (i386_insert_aligned_watchpoint): New check.
10234
10235 2014-06-18 Gary Benson <gbenson@redhat.com>
10236
10237 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10238 Renamed to state.
10239
10240 2014-06-18 Gary Benson <gbenson@redhat.com>
10241
10242 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10243 instead of fatal and error.
10244 (i386_handle_nonaligned_watchpoint): Likewise.
10245
10246 2014-06-18 Gary Benson <gbenson@redhat.com>
10247
10248 * i386-low.c (i386_get_debug_register_length): New macro.
10249 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10250 (i386_show_dr): Use debug_printf instead of fprintf. Use
10251 phex to format values.
10252
10253 2014-06-18 Gary Benson <gbenson@redhat.com>
10254
10255 * i386-low.h: Comment changes.
10256 * i386-low.c: Likewise.
10257
10258 2014-06-18 Gary Benson <gbenson@redhat.com>
10259
10260 * i386-low.c: Whitespace changes.
10261
10262 2014-06-12 Tom Tromey <tromey@redhat.com>
10263
10264 * utils.c (freeargv): Remove.
10265
10266 2014-06-12 Tom Tromey <tromey@redhat.com>
10267
10268 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10269 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10270 (parse_debug_format_options): Likewise.
10271 (gdbserver_usage): Likewise.
10272 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10273 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10274 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10275 against libiberty.
10276 ($(LIBGNU)): Depend on libiberty.
10277 (all-lib): Recurse into all subdirs.
10278 (install-only): Invoke "install" target in subdirs.
10279 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10280 targets.
10281 * configure: Rebuild.
10282 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10283 for vasprintf, vsnprintf, or gettimeofday.
10284 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10285 srv_tgtobj.
10286
10287 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10288
10289 * development.sh: Delete.
10290 * Makefile.in (config.status): Adjust dependency on development.sh.
10291 * configure.ac: Adjust development.sh source call.
10292 * configure: Regenerate.
10293
10294 2014-06-02 Pedro Alves <palves@redhat.com>
10295
10296 * ax.c (gdb_free_agent_expr): New function.
10297 * ax.h (gdb_free_agent_expr): New declaration.
10298 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10299 list.
10300 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10301 static.
10302 (clear_breakpoint_conditions_and_commands): New function.
10303 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10304 (clear_breakpoint_conditions_and_commands): New declaration.
10305
10306 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10307
10308 * linux-aarch64-low.c (asm/ptrace.h): Include.
10309
10310 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10311
10312 Fix TLS access for -static -pthread.
10313 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10314 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10315 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10316
10317 2014-05-20 Pedro Alves <palves@redhat.com>
10318
10319 * linux-aarch64-low.c (aarch64_insert_point)
10320 (aarch64_remove_point): No longer check whether the type is
10321 supported here. Adjust to new interface.
10322 (the_low_target): Install aarch64_supports_z_point_type as
10323 supports_z_point_type method.
10324 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10325 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10326 instead of a Z packet char. Adjust.
10327 (arm_supports_z_point_type): New function.
10328 (arm_insert_point, arm_remove_point): Adjust to new interface.
10329 (the_low_target): Install arm_supports_z_point_type.
10330 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10331 (cris_insert_point, cris_remove_point): Adjust to new interface.
10332 Don't check whether the type is supported here.
10333 (the_low_target): Install cris_supports_z_point_type.
10334 * linux-low.c (linux_supports_z_point_type): New function.
10335 (linux_insert_point, linux_remove_point): Adjust to new interface.
10336 * linux-low.h (struct linux_target_ops) <insert_point,
10337 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10338 raw_breakpoint pointer parameter.
10339 <supports_z_point_type>: New method.
10340 * linux-mips-low.c (mips_supports_z_point_type): New function.
10341 (mips_insert_point, mips_remove_point): Adjust to new interface.
10342 Use mips_supports_z_point_type.
10343 (the_low_target): Install mips_supports_z_point_type.
10344 * linux-ppc-low.c (the_low_target): Install NULL as
10345 supports_z_point_type method.
10346 * linux-s390-low.c (the_low_target): Install NULL as
10347 supports_z_point_type method.
10348 * linux-sparc-low.c (the_low_target): Install NULL as
10349 supports_z_point_type method.
10350 * linux-x86-low.c (x86_supports_z_point_type): New function.
10351 (x86_insert_point): Adjust to new insert_point interface. Use
10352 insert_memory_breakpoint. Adjust to new
10353 i386_low_insert_watchpoint interface.
10354 (x86_remove_point): Adjust to remove_point interface. Use
10355 remove_memory_breakpoint. Adjust to new
10356 i386_low_remove_watchpoint interface.
10357 (the_low_target): Install x86_supports_z_point_type.
10358 * lynx-low.c (lynx_target_ops): Install NULL as
10359 supports_z_point_type callback.
10360 * nto-low.c (nto_supports_z_point_type): New.
10361 (nto_insert_point, nto_remove_point): Adjust to new interface.
10362 (nto_target_ops): Install nto_supports_z_point_type.
10363 * mem-break.c: Adjust intro comment.
10364 (struct raw_breakpoint) <raw_type, size>: New fields.
10365 <inserted>: Update comment.
10366 <shlib_disabled>: Delete field.
10367 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10368 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10369 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10370 (raw_bkpt_type_to_target_hw_bp_type): New function.
10371 (find_enabled_raw_code_breakpoint_at): New function.
10372 (find_raw_breakpoint_at): New type and size parameters. Use them.
10373 (insert_memory_breakpoint): New function, based off
10374 set_raw_breakpoint_at.
10375 (remove_memory_breakpoint): New function.
10376 (set_raw_breakpoint_at): Reimplement.
10377 (set_breakpoint): New, based on set_breakpoint_at.
10378 (set_breakpoint_at): Reimplement.
10379 (delete_raw_breakpoint): Go through the_target->remove_point
10380 instead of assuming memory breakpoints.
10381 (find_gdb_breakpoint_at): Delete.
10382 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10383 (find_gdb_breakpoint): New function.
10384 (set_gdb_breakpoint_at): Delete.
10385 (z_type_supported): New function.
10386 (set_gdb_breakpoint_1): New function, loosely based off
10387 set_gdb_breakpoint_at.
10388 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10389 (delete_gdb_breakpoint_at): Delete.
10390 (delete_gdb_breakpoint_1): New function, loosely based off
10391 delete_gdb_breakpoint_at.
10392 (delete_gdb_breakpoint): New function.
10393 (clear_gdb_breakpoint_conditions): Rename to ...
10394 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10395 breakpoint.
10396 (add_condition_to_breakpoint): Make static.
10397 (add_breakpoint_condition): Take a struct breakpoint pointer
10398 instead of an address. Adjust.
10399 (gdb_condition_true_at_breakpoint): Rename to ...
10400 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10401 z_type parameter.
10402 (gdb_condition_true_at_breakpoint): Reimplement.
10403 (add_breakpoint_commands): Take a struct breakpoint pointer
10404 instead of an address. Adjust.
10405 (gdb_no_commands_at_breakpoint): Rename to ...
10406 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10407 parameter. Return true if no breakpoint was found. Change debug
10408 output.
10409 (gdb_no_commands_at_breakpoint): Reimplement.
10410 (run_breakpoint_commands): Rename to ...
10411 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10412 and change return type to boolean.
10413 (run_breakpoint_commands): New function.
10414 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10415 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10416 breakpoint. Go through the_target->remove_point instead of
10417 assuming memory breakpoint.
10418 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10419 software and hardware breakpoints.
10420 (reinsert_raw_breakpoint): Go through the_target->insert_point
10421 instead of assuming memory breakpoint.
10422 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10423 software and hardware breakpoints.
10424 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10425 Check both software and hardware breakpoints.
10426 (validate_inserted_breakpoint): Assert the breakpoint is a
10427 software breakpoint. Set the inserted flag to -1 instead of
10428 setting shlib_disabled.
10429 (delete_disabled_breakpoints): Adjust.
10430 (validate_breakpoints): Only validate software breakpoints.
10431 Adjust to inserted flag change.
10432 (check_mem_read, check_mem_write): Skip breakpoint types other
10433 than software breakpoints. Adjust to inserted flag change.
10434 * mem-break.h (enum raw_bkpt_type): New enum.
10435 (raw_breakpoint, struct process_info): Forward declare.
10436 (Z_packet_to_target_hw_bp_type): Delete declaration.
10437 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10438 (set_gdb_breakpoint, delete_gdb_breakpoint)
10439 (clear_breakpoint_conditions): New declarations.
10440 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10441 (breakpoint_inserted_here): Update comment.
10442 (add_breakpoint_condition, add_breakpoint_commands): Replace
10443 address parameter with a breakpoint pointer parameter.
10444 (gdb_breakpoint_here): Update comment.
10445 (delete_gdb_breakpoint_at): Delete.
10446 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10447 * server.c (process_point_options): Take a struct breakpoint
10448 pointer instead of an address. Adjust.
10449 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10450 delete_gdb_breakpoint.
10451 * spu-low.c (spu_target_ops): Install NULL as
10452 supports_z_point_type method.
10453 * target.h: Include mem-break.h.
10454 (struct target_ops) <prepare_to_access_memory>: Update comment.
10455 <supports_z_point_type>: New field.
10456 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10457 instead of a char. Also take a raw breakpoint pointer.
10458 * win32-arm-low.c (the_low_target): Install NULL as
10459 supports_z_point_type.
10460 * win32-i386-low.c (i386_supports_z_point_type): New function.
10461 (i386_insert_point, i386_remove_point): Adjust to new interface.
10462 (the_low_target): Install i386_supports_z_point_type.
10463 * win32-low.c (win32_supports_z_point_type): New function.
10464 (win32_insert_point, win32_remove_point): Adjust to new interface.
10465 (win32_target_ops): Install win32_supports_z_point_type.
10466 * win32-low.h (struct win32_target_ops):
10467 <supports_z_point_type>: New method.
10468 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10469 instead of a char. Also take a raw breakpoint pointer.
10470
10471 2014-05-20 Pedro Alves <palves@redhat.com>
10472
10473 * mem-break.h: Include break-common.h.
10474 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10475 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10476 (Z_packet_to_target_hw_bp_type): New declaration.
10477 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10478 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10479 (Z_PACKET_ACCESS_WP): Delete macros.
10480 (Z_packet_to_hw_type): Delete function.
10481 * i386-low.h: Don't include break-common.h here.
10482 (Z_packet_to_hw_type): Delete declaration.
10483 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10484 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10485 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10486 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10487 * linux-aarch64-low.c: Don't include break-common.h here.
10488 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10489 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10490 (Z_packet_to_target_hw_bp_type): Delete function.
10491 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10492 function.
10493 (mips_insert_point, mips_remove_point): Use
10494 Z_packet_to_target_hw_bp_type.
10495
10496 2014-05-20 Pedro Alves <palves@redhat.com>
10497
10498 * linux-aarch64-low.c: Include break-common.h.
10499 (enum target_point_type): Delete.
10500 (Z_packet_to_point_type): Rename to ...
10501 (Z_packet_to_target_hw_bp_type): ... this, and return a
10502 target_hw_bp_type instead.
10503 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10504 instead of an enum target_point_type.
10505 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10506 breakpoint type.
10507 (aarch64_dr_state_insert_one_point)
10508 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10509 (aarch64_handle_aligned_watchpoint)
10510 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10511 Take an enum target_hw_bp_type instead of an enum
10512 target_point_type.
10513 (aarch64_supports_z_point_type): New function.
10514 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10515 use Z_packet_to_target_hw_bp_type.
10516
10517 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10518
10519 * configure.ac: Only use -Werror by default when DEVELOPMENT
10520 is true.
10521 * configure: Regenerate.
10522
10523 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10524
10525 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10526 * linux-x86-low.c (X86_64_USER_REGS): New.
10527 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10528
10529 2014-04-28 Yao Qi <yao@codesourcery.com>
10530
10531 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10532 name.
10533
10534 2014-04-25 Pedro Alves <palves@redhat.com>
10535
10536 PR server/16255
10537 * linux-low.c (linux_attach_fail_reason_string): New function.
10538 (linux_attach_lwp): Delete.
10539 (linux_attach_lwp_1): Rename to ...
10540 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10541 argument. Remove "initial" parameter. Return int instead of
10542 void. Don't error or warn here.
10543 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10544 failure to attach to the tgid. Call warning when failing to
10545 attach to an lwp.
10546 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10547 argument. Remove "initial" parameter. Return int instead of
10548 void. Don't error or warn here.
10549 (linux_attach_fail_reason_string): New declaration.
10550 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10551 interface change. Use linux_attach_fail_reason_string.
10552
10553 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
10554 Walfred Tedeschi <walfred.tedeschi@intel.com>
10555
10556 * Makefile.in: Added rules to handle new files
10557 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10558 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10559 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10560 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10561 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10562 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10563 x32-avx512-linux.o.
10564 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10565 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10566 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10567 i386/x32-avx512.xml.
10568 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10569 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10570 i386/x32-avx512-linux.xml.
10571 * i387-fp.c (num_avx512_k_registers): New constant for number
10572 of K registers.
10573 (num_avx512_zmmh_low_registers): New constant for number of
10574 lower ZMM registers (0-15).
10575 (num_avx512_zmmh_high_registers): New constant for number of
10576 higher ZMM registers (16-31).
10577 (num_avx512_ymmh_registers): New contant for number of higher
10578 YMM registers (ymm16-31 added by avx521 on x86_64).
10579 (num_avx512_xmm_registers): New constant for number of higher
10580 XMM registers (xmm16-31 added by AVX512 on x86_64).
10581 (struct i387_xsave): Add space for AVX512 registers.
10582 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10583 Add code to handle AVX512 registers.
10584 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10585 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10586 prototypei from generated file.
10587 (tdesc_amd64_avx512_linux): Likewise.
10588 (init_registers_x32_avx512_linux): Likewise.
10589 (tdesc_x32_avx512_linux): Likewise.
10590 (init_registers_i386_avx512_linux): Likewise.
10591 (tdesc_i386_avx512_linux): Likewise.
10592 (x86_64_regmap): Add AVX512 registers.
10593 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10594 mask.
10595 (initialize_low_arch): Add code to initialize AVX512 registers.
10596
10597 2014-04-23 Pedro Alves <palves@redhat.com>
10598
10599 * mem-break.c (find_gdb_breakpoint_at): Make static.
10600 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10601
10602 2014-04-23 Pedro Alves <palves@redhat.com>
10603
10604 * i386-low.c: Don't include break-common.h here.
10605 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10606 prototype to take target_hw_bp_type as argument instead of a Z
10607 packet char.
10608 * i386-low.h: Include break-common.h here.
10609 (Z_packet_to_hw_type): Declare.
10610 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10611 prototypes.
10612 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10613 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10614 (x86_remove_point): Convert the packet number to a
10615 target_hw_bp_type before calling i386_low_remove_watchpoint.
10616 * win32-i386-low.c (i386_insert_point): Convert the packet number
10617 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10618 (i386_remove_point): Convert the packet number to a
10619 target_hw_bp_type before calling i386_low_remove_watchpoint.
10620
10621 2014-04-23 Pedro Alves <palves@redhat.com>
10622
10623 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10624
10625 2014-04-10 Pedro Alves <palves@redhat.com>
10626
10627 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10628 Check if the condition or command is NULL before checking if the
10629 breakpoint is known. On success, return true.
10630 * mem-break.h (add_breakpoint_condition): Document return.
10631 (add_breakpoint_commands): Add describing comment.
10632 * server.c (skip_to_semicolon): New function.
10633 (process_point_options): Use it.
10634
10635 2014-04-09 Pedro Alves <palves@redhat.com>
10636
10637 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10638 to lwpid_of.
10639
10640 2014-02-27 Pedro Alves <palves@redhat.com>
10641
10642 PR 12702
10643 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10644 macros.
10645 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10646 output.
10647 (last_thread_of_process_p): Take a PID argument instead of a
10648 thread pointer.
10649 (linux_wait_for_lwp): Delete.
10650 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10651 functions.
10652 (linux_low_filter_event): New function, party factored out from
10653 linux_wait_for_event.
10654 (linux_wait_for_event): Rename to ...
10655 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10656 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10657 sigsuspend. Check for zombie leaders.
10658 (linux_wait_for_event): Reimplement as wrapper around
10659 linux_wait_for_event_filtered.
10660 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10661 a normal or signal exit is seen, it's the whole process exiting.
10662 (wait_for_sigstop): No longer a for_each_inferior callback.
10663 Rewrite on top of linux_wait_for_event_filtered.
10664 (stop_all_lwps): Call wait_for_sigstop directly.
10665 * server.c (resume, handle_target_event): Handle
10666 TARGET_WAITKIND_NO_RESUMED.
10667
10668 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10669
10670 * win32-low.c (psapi_get_dll_name,
10671 * win32_CreateToolhelp32Snapshot): Delete.
10672 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10673 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10674 Delete.
10675 (handle_load_dll): Add function description.
10676 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10677
10678 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10679
10680 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10681 Add comment.
10682 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10683 base address when calling win32_add_one_solib.
10684 (handle_load_dll): Delete local variable load_addr.
10685 Remove 0x1000 offset applied to DLL base address when calling
10686 win32_add_one_solib.
10687 (handle_unload_dll): Add comment.
10688
10689 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10690
10691 * win32-low.c (win32_add_all_dlls): Renames
10692 win32_ensure_ntdll_loaded. Rewrite function documentation.
10693 Adjust implementation to always load all DLLs.
10694 Add 0x1000 offset to DLL base address when calling
10695 win32_add_one_solib.
10696 (child_initialization_done): New static global.
10697 (do_initial_child_stuff): Set child_initialization_done to
10698 zero during child initialization, and 1 after. Replace call
10699 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10700 Add comment.
10701 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10702 (handle_unload_dll): Add function documentation.
10703 (get_child_debug_event): Ignore load and unload DLL events
10704 during child initialization.
10705
10706 2014-02-20 Doug Evans <dje@google.com>
10707
10708 Remove global all_lwps.
10709 * inferiors.h (ptid_of): Move here from linux-low.h.
10710 (pid_of, lwpid_of): Ditto.
10711 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10712 parameter is a struct thread_info * now.
10713 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10714 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10715 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10716 directly.
10717 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10718 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10719 * linux-arm-low.c (update_registers_callback): Update, "entry"
10720 parameter is a struct thread_info * now.
10721 Fetch lwpid from current_inferior directly.
10722 (arm_insert_point): Pass &all_threads to find_inferior instead of
10723 &all_lwps.
10724 (arm_remove_point): Ditto.
10725 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10726 (arm_prepare_to_resume): Fetch pid from thread.
10727 (arm_read_description): Fetch lwpid from current_inferior directly.
10728 * linux-low.c (all_lwps): Delete.
10729 (delete_lwp): Delete call to remove_inferior.
10730 (handle_extended_wait): Fetch lwpid from thread.
10731 (add_lwp): Don't set lwp->entry.id. Remove call to
10732 add_inferior_to_list.
10733 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10734 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10735 (kill_one_lwp_callback): Ditto.
10736 (linux_kill): Don't dereference NULL pointer.
10737 Fetch ptid,lwpid from thread.
10738 (get_detach_signal): Fetch ptid from thread.
10739 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10740 Simplify call to regcache_invalidate_thread.
10741 (delete_lwp_callback): Update, "entry" parameter is a
10742 struct thread_info * now. Fetch pid from thread.
10743 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10744 (status_pending_p_callback): Update, "entry" parameter is a
10745 struct thread_info * now. Fetch ptid from thread.
10746 (find_lwp_pid): Update, "entry" parameter is a
10747 struct thread_info * now.
10748 (linux_wait_for_lwp): Fetch pid from thread.
10749 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10750 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10751 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10752 (dequeue_one_deferred_signal): Ditto.
10753 (cancel_breakpoint): Fetch ptid from current_inferior.
10754 (linux_wait_for_event): Pass &all_threads to find_inferior,
10755 not &all_lwps. Fetch ptid, lwpid from thread.
10756 (count_events_callback): Update, "entry" parameter is a
10757 struct thread_info * now.
10758 (select_singlestep_lwp_callback): Ditto.
10759 (select_event_lwp_callback): Ditto.
10760 (cancel_breakpoints_callback): Ditto.
10761 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10762 not &all_lwps.
10763 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10764 (unsuspend_one_lwp): Update, "entry" parameter is a
10765 struct thread_info * now.
10766 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10767 not &all_lwps.
10768 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10769 Fetch lwpid from thread, not lwp.
10770 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10771 Pass &all_threads to find_inferior, not &all_lwps.
10772 (send_sigstop): Fetch lwpid from thread, not lwp.
10773 (send_sigstop_callback): Update, "entry" parameter is a
10774 struct thread_info * now.
10775 (suspend_and_send_sigstop_callback): Ditto.
10776 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10777 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10778 struct thread_info * now.
10779 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10780 from thread, lwp.
10781 (lwp_running): Update, "entry" parameter is a
10782 struct thread_info * now.
10783 (stop_all_lwps): Fetch ptid from thread.
10784 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10785 (linux_resume_one_lwp): Fetch lwpid from thread.
10786 (linux_set_resume_request): Update, "entry" parameter is a
10787 struct thread_info * now. Fetch pid, lwpid from thread.
10788 (resume_status_pending_p): Update, "entry" parameter is a
10789 struct thread_info * now.
10790 (need_step_over_p): Ditto. Fetch lwpid from thread.
10791 (start_step_over): Fetch lwpid from thread.
10792 (linux_resume_one_thread): Update, "entry" parameter is a
10793 struct thread_info * now. Fetch lwpid from thread.
10794 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10795 (proceed_one_lwp): Update, "entry" parameter is a
10796 struct thread_info * now. Fetch lwpid from thread.
10797 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10798 struct thread_info * now.
10799 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10800 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10801 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10802 directly.
10803 (regsets_store_inferior_registers): Ditto.
10804 (fetch_register, store_register): Ditto.
10805 (linux_read_memory, linux_write_memory): Ditto.
10806 (linux_request_interrupt): Ditto.
10807 (linux_read_auxv): Ditto.
10808 (linux_xfer_siginfo): Ditto.
10809 (linux_qxfer_spu): Ditto.
10810 (linux_qxfer_libraries_svr4): Ditto.
10811 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10812 moved to inferiors.h.
10813 (get_lwp): Delete.
10814 (get_thread_lwp): Update.
10815 (struct lwp_info): Delete member "entry". Simplify comment for
10816 member "thread".
10817 (all_lwps): Delete.
10818 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10819 current_inferior directly.
10820 (update_watch_registers_callback): Update, "entry" parameter is a
10821 struct thread_info * now. Fetch pid from thread.
10822 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10823 (mips_insert_point): Fetch lwpid from current_inferior.
10824 Pass &all_threads to find_inferior, not &all_lwps.
10825 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10826 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10827 directly.
10828 (mips_stopped_data_address): Ditto.
10829 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10830 directly.
10831 * linux-tile-low.c (tile_arch_setup): Ditto.
10832 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10833 (update_debug_registers_callback): Update, "entry" parameter is a
10834 struct thread_info * now. Fetch pid from thread.
10835 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10836 Pass &all_threads to find_inferior, not &all_lwps.
10837 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10838 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10839 Pass &all_threads to find_inferior, not &all_lwps.
10840 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10841 (i386_dr_low_get_status): Ditto.
10842 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10843 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10844 (x86_linux_read_description): Ditto.
10845 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10846
10847 2014-02-20 Doug Evans <dje@google.com>
10848
10849 * inferiors.c (get_first_inferior): Fix buglet.
10850
10851 2014-02-19 Doug Evans <dje@google.com>
10852
10853 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10854 * inferiors.c (add_thread): Change result type to struct thread_info *.
10855 All callers updated.
10856 (add_lwp): Call add_thread here instead of in callers.
10857 All callers updated.
10858 * linux-low.h (get_lwp_thread): Rewrite.
10859 (struct lwp_info): New member "thread".
10860
10861 2014-02-19 Doug Evans <dje@google.com>
10862
10863 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10864 All callers updated.
10865
10866 2014-02-19 Doug Evans <dje@google.com>
10867
10868 * inferiors.c (add_thread): Fix whitespace.
10869
10870 2014-02-19 Doug Evans <dje@google.com>
10871
10872 * dll.c (clear_dlls): Replace accessing list implemention details
10873 with API function.
10874 * gdbthread.h (get_first_thread): Declare.
10875 * inferiors.c (for_each_inferior_with_data): New function.
10876 (get_first_thread): New function.
10877 (find_thread_ptid): Simplify.
10878 (get_first_inferior): New function.
10879 (clear_list): Delete.
10880 (one_inferior_p): New function.
10881 (clear_inferior_list): New function.
10882 (clear_inferiors): Update.
10883 * inferiors.h (for_each_inferior_with_data): Declare.
10884 (clear_inferior_list): Declare.
10885 (one_inferior_p): Declare.
10886 (get_first_inferior): Declare.
10887 * linux-low.c (linux_wait_for_event): Replace accessing list
10888 implemention details with API function.
10889 * server.c (target_running): Ditto.
10890 (accumulate_file_name_length): New function.
10891 (emit_dll_description): New function.
10892 (handle_qxfer_libraries): Replace accessing list implemention
10893 details with API function.
10894 (handle_qxfer_threads_worker): New function.
10895 (handle_qxfer_threads_proper): Replace accessing list implemention
10896 details with API function.
10897 (handle_query): Ditto.
10898 (visit_actioned_threads_callback_ftype): New typedef.
10899 (visit_actioned_threads_data): New struct.
10900 (visit_actioned_threads): Rewrite to be find_inferior callback.
10901 (resume): Call find_inferior.
10902 (handle_status): Replace accessing list implemention
10903 details with API function.
10904 (process_serial_event): Replace accessing list implemention details
10905 with API function.
10906 * target.c (set_desired_inferior): Replace accessing list implemention
10907 details with API function.
10908 * tracepoint.c (same_process_p): New function.
10909 (gdb_agent_about_to_close): Replace accessing list implemention
10910 details with API function.
10911 * win32-low.c (child_delete_thread): Replace accessing list
10912 implemention details with API function.
10913 (match_dll_by_basename): New function.
10914 (dll_is_loaded_by_basename): New function.
10915 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10916 details call to dll_is_loaded_by_basename.
10917
10918 2014-02-19 Doug Evans <dje@google.com>
10919
10920 * dll.h (struct dll_info): Add comment.
10921 * gdbthread.h (struct thread_info): Add comment.
10922 (current_ptid): Simplify.
10923 * inferiors.c (add_process): Update.
10924 (remove_process): Update.
10925 * inferiors.h (struct process_info): Rename member "head" to "entry".
10926 * linux-low.c (delete_lwp): Update.
10927 (add_lwp): Update.
10928 (last_thread_of_process_p): Update.
10929 (kill_one_lwp_callback, linux_kill): Update.
10930 (status_pending_p_callback): Update.
10931 (wait_for_sigstop): Update. Simplify read of ptid.
10932 (start_step_over): Update.
10933 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10934 (get_lwp_thread): Update.
10935 (struct lwp_info): Rename member "head" to "entry".
10936 * regcache.h (inferior_list_entry): Delete.
10937 * server.c (kill_inferior_callback): Update.
10938 (detach_or_kill_inferior_callback): Update.
10939 (print_started_pid): Update.
10940 (print_attached_pid): Update.
10941 (process_serial_event): Simplify read of ptid.
10942 * thread-db.c (thread_db_create_event): Update.
10943 (thread_db_get_tls_address): Update.
10944 * win32-low.c (current_inferior_ptid): Simplify.
10945
10946 2014-02-19 Tom Tromey <tromey@redhat.com>
10947
10948 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10949 argument.
10950 (target_supports_btrace): Update.
10951
10952 2014-02-14 Yao Qi <yao@codesourcery.com>
10953
10954 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10955 (rsp-low-ipa.o): New target.
10956
10957 2014-02-12 Tom Tromey <tromey@redhat.com>
10958
10959 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10960 convert_ascii_to_int.
10961 * regcache.c (registers_to_string): Likewise.
10962 * remote-utils.c (decode_M_packet): Likewise.
10963 * server.c (process_serial_event): Likewise.
10964
10965 2014-02-12 Tom Tromey <tromey@redhat.com>
10966
10967 * server.c (handle_query, handle_v_run): Use hex2bin, not
10968 unhexify.
10969 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10970
10971 2014-02-12 Tom Tromey <tromey@redhat.com>
10972
10973 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10974 convert_int_to_ascii.
10975 * regcache.c (registers_to_string, collect_register_as_string):
10976 Likewise.
10977 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10978 Likewise.
10979 * server.c (process_serial_event): Likewise.
10980 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10981 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10982
10983 2014-02-12 Tom Tromey <tromey@redhat.com>
10984
10985 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10986 bin2hex, not hexify.
10987 * tracepoint.c (cmd_qtstatus): Likewise.
10988
10989 2014-02-12 Tom Tromey <tromey@redhat.com>
10990
10991 * remote-utils.c (monitor_output): Pass explicit length to
10992 hexify.
10993
10994 2014-02-12 Tom Tromey <tromey@redhat.com>
10995
10996 * tracepoint.c: Include rsp-low.h.
10997 * server.c: Include rsp-low.h.
10998 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10999 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
11000 declare.
11001 * remote-utils.c: Include rsp-low.h.
11002 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
11003 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
11004 (convert_int_to_ascii, convert_ascii_to_int): Move to
11005 common/rsp-low.c.
11006 * regcache.c: Include rsp-low.h.
11007 * ax.c: Include rsp-low.h.
11008 * Makefile.in (SFILES): Add common/rsp-low.c.
11009 (OBS): Add rsp-low.o.
11010 (rsp-low.o): New target.
11011
11012 2014-02-12 Tom Tromey <tromey@redhat.com>
11013
11014 * utils.h (pulongest, plongest, phex_nz): Don't declare.
11015 Include print-utils.h.
11016 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11017 (plongest, thirty_two, phex_nz): Remove.
11018 * Makefile.in (SFILES): Add common/print-utils.c.
11019 (OBS): Add print-utils.o.
11020 (print-utils-ipa.o): New target.
11021 (print-utils.o): New target.
11022 (IPA_OBJS): Add print-utils-ipa.o.
11023
11024 2014-02-06 Tom Tromey <tromey@redhat.com>
11025
11026 * Makefile.in (SFILES): Fix indentation.
11027
11028 2014-02-05 Doug Evans <dje@google.com>
11029
11030 * linux-low.c (linux_wait_for_event): Improve comment.
11031 (linux_wait_1): Keep current_inferior in sync with event_child.
11032
11033 2014-01-22 Doug Evans <dje@google.com>
11034
11035 * gdbthread.h (gdb_id_to_thread): Delete, unused.
11036
11037 2014-01-22 Doug Evans <dje@google.com>
11038
11039 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
11040 * configure: Regenerate.
11041 * config.in: Regenerate.
11042 * Makefile.in (SFILES): Add debug.c.
11043 (OBS): Add debug.o.
11044 * debug.c: New file.
11045 * debug.h: New file.
11046 * linux-aarch64-low.c (*): Update all debugging printfs to use
11047 debug_printf instead of fprintf.
11048 * linux-arm-low.c (*): Ditto.
11049 * linux-cris-low.c (*): Ditto.
11050 * linux-crisv32-low.c (*): Ditto.
11051 * linux-m32r-low.c (*): Ditto.
11052 * linux-sparc-low.c (*): Ditto.
11053 * linux-x86.c (*): Ditto.
11054 * linux-low.c (*): Ditto.
11055 (linux_wait_1): Add calls to debug_enter, debug_exit.
11056 (linux_wait): Remove redundant debugging printf.
11057 (stop_all_lwps): Add calls to debug_enter, debug_exit.
11058 (linux_resume, unstop_all_lwps): Ditto.
11059 * mem-break.c (*): Update all debugging printfs to use
11060 debug_printf instead of fprintf.
11061 * remote-utils.c (*): Ditto.
11062 * thread-db.c (*): Ditto.
11063 * server.c #include <ctype.h>, "gdb_vecs.h".
11064 (debug_threads): Moved to debug.c.
11065 (*): Update all debugging printfs to use debug_printf instead of
11066 fprintf.
11067 (start_inferior): Replace call to fflush with call to debug_flush.
11068 (monitor_show_help): Mention set debug-format.
11069 (parse_debug_format_options): New function.
11070 (handle_monitor_command): Handle "monitor set debug-format".
11071 (gdbserver_usage): Mention --debug-format.
11072 (main): Parse --debug-format.
11073 * server.h (debug_threads): Declaration moved to debug.h.
11074 #include "debug.h".
11075 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
11076 trace_debug_1 that uses debug_printf.
11077 (tracepoint_look_up_symbols): Update all debugging printfs to use
11078 debug_printf instead of fprintf.
11079
11080 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11081
11082 * linux-xtensa-low.c: Include asm/ptrace.h instead of
11083 sys/ptrace.h.
11084
11085 2014-01-17 Pedro Alves <palves@redhat.com>
11086
11087 PR build/16445
11088 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
11089 defined after including gdb_proc_service.h.
11090
11091 2014-01-16 Doug Evans <dje@google.com>
11092
11093 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
11094 (match_dll): Use it.
11095
11096 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11097
11098 * target.h (target_ops) <read_btrace>: Change parameters and
11099 return type to allow error reporting.
11100 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11101 trace reading errors on.
11102 * linux-low.c (linux_low_read_btrace): Pass trace reading
11103 errors on.
11104 (linux_low_disable_btrace): New.
11105
11106 2014-01-15 Doug Evans <dje@google.com>
11107
11108 * inferiors.c (thread_id_to_gdb_id): Delete.
11109 * inferiors.h (thread_id_to_gdb_id): Delete.
11110
11111 2014-01-13 Eli Zaretskii <eliz@gnu.org>
11112
11113 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11114 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11115 versions.
11116
11117 2014-01-08 Pedro Alves <palves@redhat.com>
11118
11119 * server.c (handle_status): Don't discard previous queued stop
11120 replies or thread's pending status here.
11121 (main) <disconnection>: Do it here instead.
11122
11123 2014-01-08 Pedro Alves <palves@redhat.com>
11124
11125 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11126 * server.c (visit_actioned_threads, handle_pending_status): New
11127 function.
11128 (handle_v_cont): Factor out parts to ...
11129 (resume): ... this new function. If in all-stop, and a thread
11130 being resumed has a pending status, report it without actually
11131 resuming.
11132 (myresume): Adjust to use the new 'resume' function.
11133 (clear_pending_status_callback, set_pending_status_callback)
11134 (find_status_pending_thread_callback): New functions.
11135 (handle_status): Handle the case of multiple threads having
11136 interesting statuses to report. Report threads' real last signal
11137 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11138 with an interesting thread to report the status for, instead of
11139 always reporting the status of the first thread.
11140
11141 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11142
11143 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11144 * gdbreplay.c (gdbreplay_version): Likewise.
11145
11146 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11147
11148 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11149 iov.iov_len with the real length in use.
11150
11151 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11152
11153 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11154 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11155 for all targets that use win32-low.c.
11156 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11157 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11158
11159 2013-12-13 Pedro Alves <palves@redhat.com>
11160
11161 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11162 if equal to TARGET_WAITKIND_LOADED.
11163 * win32-low.c (cached_status): New static global.
11164 (win32_wait): Add declaration.
11165 (do_initial_child_stuff): Flush all initial pending debug events
11166 up to the initial breakpoint.
11167 (win32_wait): If CACHED_STATUS was set, return that instead
11168 of doing a real wait. Remove the code resuming the execution
11169 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11170 during the initial phase. Also remove the code changing
11171 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11172 TARGET_WAITKIND_STOPPED.
11173
11174 2013-12-11 Yao Qi <yao@codesourcery.com>
11175
11176 * notif.c (handle_notif_ack): Return 0 if no notification
11177 matches.
11178
11179 2013-11-20 Doug Evans <dje@google.com>
11180
11181 * linux-low.c (linux_set_resume_request): Fix comment.
11182
11183 2013-11-20 Doug Evans <dje@google.com>
11184
11185 * linux-low.c (resume_status_pending_p): Tweak comment.
11186
11187 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11188
11189 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11190 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11191 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11192 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11193 (srv_amd64_regobj): Add amd64-mpx.o.
11194 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11195 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11196 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11197 * i387-fp.c (num_pl_bnd_register) Added constant.
11198 (num_pl_bnd_cfg_registers) Added constant.
11199 (struct i387_xsave) Added reserved area and MPX fields.
11200 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11201 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11202 function.
11203 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11204 (init_registers_amd64_mpx_linux): Declare new function.
11205 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11206 (x86_64_regmap): Add MPX registers.
11207 (x86_linux_read_description): Add MPX case.
11208 (initialize_low_arch): Initialize MPX targets.
11209
11210 2013-11-18 Tom Tromey <tromey@redhat.com>
11211
11212 * configure: Rebuild.
11213 * configure.ac: Don't check for stdlib.h.
11214 * gdbreplay.c: Unconditionally include stdlib.h.
11215
11216 2013-11-18 Tom Tromey <tromey@redhat.com>
11217
11218 * config.in: Rebuild.
11219 * configure: Rebuild.
11220 * configure.ac: Don't use AC_HEADER_DIRENT.
11221
11222 2013-11-18 Tom Tromey <tromey@redhat.com>
11223
11224 * server.h: Don't check HAVE_STRING_H.
11225 * gdbreplay.c: Don't check HAVE_STRING_H.
11226 * configure: Rebuild.
11227
11228 2013-11-18 Tom Tromey <tromey@redhat.com>
11229
11230 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11231 LIBGNU.
11232
11233 2013-11-08 Tom Tromey <tromey@redhat.com>
11234
11235 * configure, config.in: Rebuild.
11236 * configure.ac: Remove unused configury.
11237
11238 2013-11-08 Tom Tromey <tromey@redhat.com>
11239
11240 * acinclude.m4: Include common.m4, codeset.m4.
11241 * configure, config.in: Rebuild.
11242 * configure.ac: Use GDB_AC_COMMON.
11243
11244 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11245
11246 * linux-s390-low.c (HWCAP_S390_TE): New define.
11247 (s390_arch_setup): Consider the TE field in the HWCAP for
11248 determining 'have_regset_tdb'.
11249
11250 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11251
11252 PR gdb/16014
11253 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11254 call to sizeof.
11255
11256 2013-10-02 Pedro Alves <palves@redhat.com>
11257
11258 * server.c (process_serial_event): Don't output "GDBserver
11259 exiting" if GDB is connected through stdio.
11260 * target.c (mywait): Likewise, be silent if GDB is connected
11261 through stdio.
11262
11263 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11264
11265 * lynx-low.c (lynx_add_threads_after_attach): New function.
11266 (lynx_attach): Remove call to add_thread. Add call to
11267 lynx_add_threads_after_attach instead.
11268
11269 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11270
11271 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11272 * config.in, configure: Regenerated.
11273
11274 2013-09-18 Yao Qi <yao@codesourcery.com>
11275
11276 PR server/15959
11277 * server.c (start_inferior): Clear 'resume_info'.
11278
11279 2013-09-16 Jiong Wang <jiwang@tilera.com>
11280
11281 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11282 for each register.
11283
11284 2013-09-16 Jiong Wang <jiwang@tilera.com>
11285
11286 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11287 linux-tile-low.o to srv_tgtobj.
11288
11289 2013-09-16 Will Newton <will.newton@linaro.org>
11290
11291 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11292 out regs.
11293
11294 2013-09-06 Pedro Alves <palves@redhat.com>
11295
11296 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11297 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11298 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11299 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11300 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11301 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11302
11303 2013-09-06 Pedro Alves <palves@redhat.com>
11304
11305 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11306 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11307
11308 2013-09-06 Pedro Alves <palves@redhat.com>
11309
11310 * linux-amd64-ipa.c: Include tracepoint.h.
11311 * linux-i386-ipa.c: Include tracepoint.h.
11312
11313 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11314
11315 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11316 (ps_get_thread_area): New function.
11317
11318 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11319
11320 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11321 (initialize_low_arch): Call init_registers_crisv32 rather than
11322 init_register_crisv32.
11323
11324 2013-09-05 Pedro Alves <palves@redhat.com>
11325
11326 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11327 to ...
11328 * hostio.h: ... this new file.
11329 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11330 win32-low.c: Include hostio.h.
11331
11332 2013-09-05 Pedro Alves <palves@redhat.com>
11333
11334 * server.h (gdb_client_data, handler_func, callback_handler_func)
11335 (delete_file_handler, add_file_handler, append_callback_event)
11336 (delete_callback_event, start_event_loop, initialize_event_loop):
11337 Move to event-loop.h and include it.
11338 * event-loop.h: New file.
11339
11340 2013-09-05 Pedro Alves <palves@redhat.com>
11341
11342 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11343 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11344 (loaded_dll, unloaded_dll): Move to ...
11345 * dll.h: ... this new file.
11346 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11347
11348 2013-09-05 Pedro Alves <palves@redhat.com>
11349
11350 * server.h (current_process, get_thread_process, all_processes)
11351 (add_inferior_to_list, for_each_inferior, current_inferior)
11352 (remove_inferior, add_process, remove_process, find_process_pid)
11353 (have_started_inferiors_p, have_attached_inferiors_p)
11354 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11355 (clear_inferiors, find_inferior, find_inferior_id)
11356 (inferior_target_data, set_inferior_target_data)
11357 (inferior_regcache_data, set_inferior_regcache_data): Move to
11358 inferiors.h, and include it.
11359 * inferiors.h: New file.
11360
11361 2013-09-05 Pedro Alves <palves@redhat.com>
11362
11363 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11364 Move ...
11365 * ax.h: ... here.
11366
11367 2013-09-05 Pedro Alves <palves@redhat.com>
11368
11369 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11370 tracepoint.h.
11371 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11372 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11373 (handle_tracepoint_general_set, handle_tracepoint_query)
11374 (tracepoint_finished_step, tracepoint_was_hit)
11375 (release_while_stepping_state_list, current_traceframe)
11376 (in_readonly_region, traceframe_read_mem)
11377 (fetch_traceframe_registers, traceframe_read_sdata)
11378 (traceframe_read_info, struct fast_tpoint_collect_status)
11379 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11380 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11381 (supply_fast_tracepoint_registers)
11382 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11383 (ipa_tdesc, claim_trampoline_space)
11384 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11385 (agent_mem_read, agent_get_trace_state_variable_value)
11386 (agent_set_trace_state_variable_value, agent_tsv_read)
11387 (agent_mem_read_string, get_raw_reg_func_addr)
11388 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11389 * tracepoint.h: ... this new file.
11390
11391 2013-09-05 Pedro Alves <palves@redhat.com>
11392
11393 * server.h (perror_with_name, error, fatal, warning, paddress)
11394 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11395 include it.
11396 * utils.h: New file.
11397
11398 2013-09-05 Pedro Alves <palves@redhat.com>
11399
11400 * server.h (remote_debug, noack_mode, transport_is_reliable)
11401 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11402 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11403 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11404 (write_enn, initialize_async_io, enable_async_io)
11405 (disable_async_io, check_remote_input_interrupt_request)
11406 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11407 (dead_thread_notify, prepare_resume_reply)
11408 (decode_address_to_semicolon, decode_address, decode_m_packet)
11409 (decode_M_packet, decode_X_packet, decode_xfer_write)
11410 (decode_search_memory_packet, unhexify, hexify)
11411 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11412 (look_up_one_symbol, relocate_instruction)
11413 (monitor_output): Move to remote-utils.h, and include it.
11414 * remote-utils.h: New file.
11415
11416 2013-09-05 Pedro Alves <palves@redhat.com>
11417
11418 * server.h (_): Delete.
11419
11420 2013-09-02 Pedro Alves <palves@redhat.com>
11421
11422 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11423 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11424 allocated.
11425 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11426
11427 2013-09-02 Pierre Muller <muller@sourceware.org>
11428
11429 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11430 or WriteProcessMemory complete successfully and handle
11431 ERROR_PARTIAL_COPY error.
11432
11433 2013-09-02 Pedro Alves <palves@redhat.com>
11434
11435 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11436 error instead of EIO.
11437
11438 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11439
11440 PR server/15604
11441 * linux-low.c: Include filestuff.h.
11442 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11443 * lynx-low.c: Include filestuff.h.
11444 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11445 * server.c: Include filestuff.h.
11446 (main): Call notice_open_fds.
11447 * spu-low.c: Include filestuff.h.
11448 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11449
11450 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11451
11452 * Makefile.in: Explain why ../target and ../nat are not
11453 listed as include file search paths.
11454 (linux-waitpid.o): New object file rule.
11455 * configure.srv (srv_native_linux_obj): New variable.
11456 Replace all occurrences of linux native object files with
11457 $srv_native_linux_obj.
11458 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11459 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11460 (linux_enable_event_reporting): Remove declaration.
11461 (my_waitpid): Moved to common/linux-waitpid.c.
11462 (linux_wait_for_event): Pass ptid when calling
11463 linux_enable_event_reporting.
11464 (linux_supports_tracefork_flag): Remove.
11465 (linux_enable_event_reporting): Likewise.
11466 (linux_tracefork_grandchild): Remove.
11467 (STACK_SIZE): Moved to common/linux-ptrace.c.
11468 (linux_tracefork_child): Remove.
11469 (linux_test_for_tracefork): Remove.
11470 (linux_look_up_symbols): Call linux_supports_traceclone.
11471 (initialize_low): Remove call to linux_test_for_tracefork.
11472 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11473 common/linux-ptrace.h.
11474 (PTRACE_TYPE_ARG4): Likewise.
11475 Include linux-ptrace.h.
11476
11477 2013-08-21 Pedro Alves <palves@redhat.com>
11478
11479 * config.in: Renegerate.
11480
11481 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11482
11483 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11484 (SFILES): Remove $(srcdir)/common/target-common.c and
11485 add $(srcdir)/target/waitstatus.c.
11486 (OBS): Remove target-common.o and add waitstatus.o.
11487 (server_h): Remove $(srcdir)/../common/target-common.h and
11488 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11489 and $(srcdir)/../target/waitstatus.h.
11490 (target-common.o): Remove.
11491 (waitstatus.o): New target object file.
11492 * target.h: Do not include target-common.h and
11493 include target/resume.h, target/wait.h and
11494 target/waitstatus.h.
11495
11496 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11497
11498 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11499 to PTRACE_TYPE_ARG3.
11500 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11501 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11502 PTRACE_TYPE_ARG4.
11503 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11504 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11505
11506 2013-07-27 Jie Zhang <jie@codesourcery.com>
11507 Daniel Jacobowitz <dan@codesourcery.com>
11508 Yao Qi <yao@codesourcery.com>
11509
11510 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11511 (mips-linux-watch.o): New rule.
11512 (mips_linux_watch_h): New variable.
11513 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11514 srv_tgtobj.
11515 * linux-mips-low.c: Include mips-linux-watch.h.
11516 (struct arch_process_info, struct arch_lwp_info): New.
11517 (update_watch_registers_callback): New function.
11518 (mips_linux_new_process, mips_linux_new_thread) New functions.
11519 (mips_linux_prepare_to_resume, mips_insert_point): New
11520 functions.
11521 (mips_remove_point, mips_stopped_by_watchpoint): New
11522 functions.
11523 (rsp_bp_type_to_target_hw_bp_type): New function.
11524 (mips_stopped_data_address): New function.
11525 (the_low_target): Add watchpoint support functions.
11526
11527 2013-07-27 Yao Qi <yao@codesourcery.com>
11528
11529 * i386-low.c: Include break-common.h.
11530 (enum target_hw_bp_type): Remove.
11531
11532 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11533
11534 * Makefile.in (SFILES): /common/target-common.c.
11535 (OBS): Add target-common.o.
11536 (server_h): Add $(srcdir)/../common/target-common.h.
11537 (target-common.o): New target.
11538 * server.c (queue_stop_reply_callback): Free
11539 status string after use.
11540 * target.c (target_waitstatus_to_string): Remove.
11541 * target.h: Include target-common.h.
11542 (resume_kind): Likewise.
11543 (target_waitkind): Likewise.
11544 (target_waitstatus): Likewise.
11545 (TARGET_WNOHANG): Likewise.
11546
11547 2013-07-04 Yao Qi <yao@codesourcery.com>
11548
11549 * Makefile.in (host_alias): Use @host_noncanonical@.
11550 (target_alias): Use @target_noncanonical@.
11551 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11552 ACX_NONCANONICAL_HOST.
11553 * configure: Regenerated.
11554
11555 Revert:
11556 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11557
11558 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11559 * configure: Rebuild.
11560 * Makefile.in (version_host, version_target): Get from configure.
11561 (version.c): Use $(version_host) and $(version_target).
11562
11563 2013-07-03 Pedro Alves <palves@redhat.com>
11564
11565 * Makefile.in (config.status): Depend on development.sh.
11566 * acinclude.m4: Include libmcheck.m4.
11567 * configure: Regenerate.
11568
11569 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11570
11571 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11572 attribute inside the parentheses.
11573 (winapi_DebugSetProcessKillOnExit): Ditto.
11574 (winapi_DebugBreakProcess): Ditto.
11575 (winapi_GenerateConsoleCtrlEvent): Ditto.
11576
11577 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11578
11579 * notif.h (notif_event): Add a dummy member to avoid compiler
11580 errors.
11581
11582 2013-07-01 Pedro Alves <palves@redhat.com>
11583
11584 * hostio.c (HOSTIO_PATH_MAX): Define.
11585 (require_filename, handle_open, handle_unlink, handle_readlink):
11586 Use it.
11587
11588 2013-07-01 Pedro Alves <palves@redhat.com>
11589
11590 * server.h: Include "pathmax.h".
11591 * linux-low.c: Don't include sys/param.h.
11592 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11593 MAXPATHLEN.
11594 * win32-low.c: Don't include sys/param.h.
11595 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11596
11597 2013-07-01 Pedro Alves <palves@redhat.com>
11598
11599 * event-loop.c: Don't check HAVE_UNISTD_H before including
11600 <unistd.h>.
11601 * gdbreplay.c: Likewise.
11602 * remote-utils.c: Likewise.
11603 * server.c: Likewise.
11604 * configure.ac: Don't check for unistd.h.
11605 * configure: Regenerate.
11606
11607 2013-06-28 Tom Tromey <tromey@redhat.com>
11608
11609 * Makefile.in (version.c): Use version.in, not
11610 common/version.in.
11611
11612 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11613
11614 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11615 * configure: Rebuild.
11616 * Makefile.in (version_host, version_target): Get from configure.
11617 (version.c): Use $(version_host) and $(version_target).
11618
11619 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11620
11621 Fix trace-status to output user name without trailing colon.
11622 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11623
11624 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11625
11626 Fix trace-status to output proper start-time and stop-time.
11627 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11628 output start time and stop time in hex as gdb expects.
11629
11630 2013-06-26 Pedro Alves <pedro@codesourcery.com>
11631
11632 * tracepoint.c (build_traceframe_info_xml): Output trace state
11633 variables present in the trace buffer.
11634
11635 2013-06-24 Tom Tromey <tromey@redhat.com>
11636
11637 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11638 create-version.sh.
11639 (version.o): Remove.
11640 * gdbreplay.c: Include version.h.
11641 (version, host_name): Don't declare.
11642 * server.h: Include version.h.
11643 (version, host_name): Don't declare.
11644
11645 2013-06-12 Pedro Alves <palves@redhat.com>
11646
11647 * linux-x86-low.c (linux_is_elf64): Delete global.
11648 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11649 with local linux_pid_exe_is_elf_64_file use.
11650
11651 2013-06-11 Pedro Alves <palves@redhat.com>
11652
11653 * linux-low.c (regset_disabled, disable_regset): New functions.
11654 (regsets_fetch_inferior_registers)
11655 (regsets_store_inferior_registers): Use them.
11656 (initialize_regsets_info); Don't allocate the disabled_regsets
11657 array here.
11658 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11659 comment.
11660
11661 2013-06-11 Pedro Alves <palves@redhat.com>
11662
11663 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11664 xmalloc.
11665
11666 2013-06-11 Pedro Alves <palves@redhat.com>
11667
11668 * linux-x86-low.c (initialize_low_arch): Call
11669 init_registers_x32_avx_linux.
11670
11671 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11672
11673 Fix compatibility with Android Bionic.
11674 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11675 it is not empty.
11676
11677 2013-06-07 Pedro Alves <palves@redhat.com>
11678
11679 PR server/14823
11680 * Makefile.in (OBS): Add tdesc.o.
11681 (IPA_OBJS): Add tdesc-ipa.o.
11682 (tdesc-ipa.o): New rule.
11683 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11684 interface.
11685 * linux-low.c (new_inferior): Delete.
11686 (disabled_regsets, num_regsets): Delete.
11687 (linux_add_process): Adjust to set the new per-process
11688 new_inferior flag.
11689 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11690 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11691 was a stop. When calling arch_setup, switch the current inferior
11692 to the thread that got an event.
11693 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11694 (regsets_fetch_inferior_registers)
11695 (regsets_store_inferior_registers): New regsets_info parameter.
11696 Adjust to use it.
11697 (linux_register_in_regsets): New regs_info parameter. Adjust to
11698 use it.
11699 (register_addr, fetch_register, store_register): New usrregs_info
11700 parameter. Adjust to use it.
11701 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11702 parameter regs_info. Adjust to use it.
11703 (linux_fetch_registers): Get the current inferior's regs_info, and
11704 adjust to use it.
11705 (linux_store_registers): Ditto.
11706 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11707 (initialize_low): Don't initialize the target_regsets here. Call
11708 initialize_low_arch.
11709 * linux-low.h (target_regsets): Delete declaration.
11710 (struct regsets_info): New.
11711 (struct usrregs_info): New.
11712 (struct regs_info): New.
11713 (struct process_info_private) <new_inferior>: New field.
11714 (struct linux_target_ops): Delete the num_regs, regmap, and
11715 regset_bitmap fields. New field regs_info.
11716 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11717 * i387-fp.c (num_xmm_registers): Delete.
11718 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11719 calls to new interface.
11720 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11721 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11722 Infer the number of xmm registers from the regcache's target
11723 description.
11724 * i387-fp.h (num_xmm_registers): Delete.
11725 * inferiors.c (add_thread): Don't install the thread's regcache
11726 here.
11727 * proc-service.c (gregset_info): Fetch the current inferior's
11728 regs_info. Adjust to use it.
11729 * regcache.c: Include tdesc.h.
11730 (register_bytes, reg_defs, num_registers)
11731 (gdbserver_expedite_regs): Delete.
11732 (get_thread_regcache): If the thread doesn't have a regcache yet,
11733 create one, instead of aborting gdbserver.
11734 (regcache_invalidate_one): Rename to ...
11735 (regcache_invalidate_thread): ... this.
11736 (regcache_invalidate_one): New.
11737 (regcache_invalidate): Only invalidate registers of the current
11738 process.
11739 (init_register_cache): Add target_desc parameter, and use it.
11740 (new_register_cache): Ditto. Assert the target description has a
11741 non zero registers_size.
11742 (regcache_cpy): Add assertions. Adjust.
11743 (realloc_register_cache, set_register_cache): Delete.
11744 (registers_to_string, registers_from_string): Adjust.
11745 (find_register_by_name, find_regno, find_register_by_number)
11746 (register_cache_size): Add target_desc parameter, and use it.
11747 (free_register_cache_thread, free_register_cache_thread_one)
11748 (regcache_release, register_cache_size): New.
11749 (register_size): Add target_desc parameter, and use it.
11750 (register_data, supply_register, supply_register_zeroed)
11751 (supply_regblock, supply_register_by_name, collect_register)
11752 (collect_register_as_string, collect_register_by_name): Adjust.
11753 * regcache.h (struct target_desc): Forward declare.
11754 (struct regcache) <tdesc>: New field.
11755 (init_register_cache, new_register_cache): Add target_desc
11756 parameter.
11757 (regcache_invalidate_thread): Declare.
11758 (regcache_invalidate_one): Delete declaration.
11759 (regcache_release): Declare.
11760 (find_register_by_number, register_cache_size, register_size)
11761 (find_regno): Add target_desc parameter.
11762 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11763 declarations.
11764 * remote-utils.c: Include tdesc.h.
11765 (outreg, prepare_resume_reply): Adjust.
11766 * server.c: Include tdesc.h.
11767 (gdbserver_xmltarget): Delete declaration.
11768 (get_features_xml, process_serial_event): Adjust.
11769 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11770 declare.
11771 (struct process_info) <tdesc>: New field.
11772 (ipa_tdesc): Declare.
11773 * tdesc.c: New file.
11774 * tdesc.h: New file.
11775 * tracepoint.c: Include tdesc.h.
11776 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11777 (get_context_regcache): Adjust to pass ipa_tdesc down.
11778 (do_action_at_tracepoint): Adjust to get the register cache size
11779 from the context regcache's description.
11780 (traceframe_walk_blocks): Adjust to get the register cache size
11781 from the current trace frame's description.
11782 (traceframe_get_pc): Adjust to get current trace frame's
11783 description and pass it down.
11784 (gdb_collect): Adjust to get the register cache size from the
11785 IPA's description.
11786 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11787 (gdbserver_xmltarget): Delete.
11788 (initialize_low_tracepoint): Set the ipa's target description.
11789 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11790 (initialize_low_tracepoint): Set the ipa's target description.
11791 * linux-x86-low.c: Include tdesc.h.
11792 [__x86_64__] (is_64bit_tdesc): New.
11793 (ps_get_thread_area, x86_get_thread_area): Use it.
11794 (i386_cannot_store_register): Rename to ...
11795 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11796 (i386_cannot_fetch_register): Rename to ...
11797 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11798 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11799 to new interface.
11800 (target_regsets): Rename to ...
11801 (x86_regsets): ... this.
11802 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11803 interface.
11804 (x86_siginfo_fixup): Use is_64bit_tdesc.
11805 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11806 (tdesc_x32_avx_linux, tdesc_x32_linux)
11807 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11808 Declare.
11809 (x86_linux_update_xmltarget): Delete.
11810 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11811 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11812 (AMD64_LINUX_USER64_CS): New.
11813 (x86_linux_read_description): New, based on
11814 x86_linux_update_xmltarget.
11815 (same_process_callback): New.
11816 (x86_arch_setup_process_callback): New.
11817 (x86_linux_update_xmltarget): New.
11818 (x86_regsets_info): New.
11819 (amd64_linux_regs_info): New.
11820 (i386_linux_usrregs_info): New.
11821 (i386_linux_regs_info): New.
11822 (x86_linux_regs_info): New.
11823 (x86_arch_setup): Reimplement.
11824 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11825 (x86_emit_ops): Ditto.
11826 (the_low_target): Adjust. Install x86_linux_regs_info,
11827 x86_cannot_fetch_register, and x86_cannot_store_register.
11828 (initialize_low_arch): New.
11829 * linux-ia64-low.c (tdesc_ia64): Declare.
11830 (ia64_fetch_register): Adjust.
11831 (ia64_usrregs_info, regs_info): New globals.
11832 (ia64_regs_info): New function.
11833 (the_low_target): Adjust.
11834 (initialize_low_arch): New function.
11835 * linux-sparc-low.c (tdesc_sparc64): Declare.
11836 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11837 Adjust.
11838 (sparc_arch_setup): New function.
11839 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11840 (the_low_target): Adjust.
11841 (initialize_low_arch): New function.
11842 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11843 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11844 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11845 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11846 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11847 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11848 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11849 (tdesc_powerpc_isa205_vsx64l): Declare.
11850 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11851 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11852 (ppc_set_pc, ppc_get_hwcap): Adjust.
11853 (ppc_usrregs_info): Forward declare.
11854 (!__powerpc64__) ppc_regmap_adjusted: New global.
11855 (ppc_arch_setup): Adjust to the current process'es target
11856 description.
11857 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11858 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11859 (ppc_store_evrregset): Adjust.
11860 (target_regsets): Rename to ...
11861 (ppc_regsets): ... this, and make static.
11862 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11863 (ppc_regs_info): New function.
11864 (the_low_target): Adjust.
11865 (initialize_low_arch): New function.
11866 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11867 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11868 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11869 (tdesc_s390x_linux64v2): Declare.
11870 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11871 (s390_fill_gregset, s390_store_last_break): Adjust.
11872 (target_regsets): Rename to ...
11873 (s390_regsets): ... this, and make static.
11874 (s390_get_pc, s390_set_pc): Adjust.
11875 (s390_get_hwcap): New target_desc parameter, and use it.
11876 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11877 (s390_arch_setup): Adjust to set the current process'es target
11878 description. Don't adjust the regmap.
11879 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11880 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11881 (regs_info_3264): New globals.
11882 (s390_regs_info): New function.
11883 (the_low_target): Adjust.
11884 (initialize_low_arch): New function.
11885 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11886 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11887 [__mips64] (init_registers_mips_linux)
11888 (init_registers_mips_dsp_linux): Delete defines.
11889 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11890 (have_dsp): New global.
11891 (mips_read_description): New, based on mips_arch_setup.
11892 (mips_arch_setup): Reimplement.
11893 (get_usrregs_info): New function.
11894 (mips_cannot_fetch_register, mips_cannot_store_register)
11895 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11896 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11897 (target_regsets): Rename to ...
11898 (mips_regsets): ... this, and make static.
11899 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11900 (dsp_regs_info, regs_info): New globals.
11901 (mips_regs_info): New function.
11902 (the_low_target): Adjust.
11903 (initialize_low_arch): New function.
11904 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11905 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11906 Declare.
11907 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11908 (arm_read_description): New, with bits factored from
11909 arm_arch_setup.
11910 (arm_arch_setup): Reimplement.
11911 (target_regsets): Rename to ...
11912 (arm_regsets): ... this, and make static.
11913 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11914 (arm_regs_info): New function.
11915 (the_low_target): Adjust.
11916 (initialize_low_arch): New function.
11917 * linux-m68k-low.c (tdesc_m68k): Declare.
11918 (target_regsets): Rename to ...
11919 (m68k_regsets): ... this, and make static.
11920 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11921 (m68k_regs_info): New function.
11922 (m68k_arch_setup): New function.
11923 (the_low_target): Adjust.
11924 (initialize_low_arch): New function.
11925 * linux-sh-low.c (tdesc_sharch): Declare.
11926 (target_regsets): Rename to ...
11927 (sh_regsets): ... this, and make static.
11928 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11929 (sh_regs_info, sh_arch_setup): New functions.
11930 (the_low_target): Adjust.
11931 (initialize_low_arch): New function.
11932 * linux-bfin-low.c (tdesc_bfin): Declare.
11933 (bfin_arch_setup): New function.
11934 (bfin_usrregs_info, regs_info): New globals.
11935 (bfin_regs_info): New function.
11936 (the_low_target): Adjust.
11937 (initialize_low_arch): New function.
11938 * linux-cris-low.c (tdesc_cris): Declare.
11939 (cris_arch_setup): New function.
11940 (cris_usrregs_info, regs_info): New globals.
11941 (cris_regs_info): New function.
11942 (the_low_target): Adjust.
11943 (initialize_low_arch): New function.
11944 * linux-cris-low.c (tdesc_crisv32): Declare.
11945 (cris_arch_setup): New function.
11946 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11947 (cris_regs_info): New function.
11948 (the_low_target): Adjust.
11949 (initialize_low_arch): New function.
11950 * linux-m32r-low.c (tdesc_m32r): Declare.
11951 (m32r_arch_setup): New function.
11952 (m32r_usrregs_info, regs_info): New globals.
11953 (m32r_regs_info): Adjust.
11954 (initialize_low_arch): New function.
11955 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11956 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11957 (tic6x_usrregs_info): Forward declare.
11958 (tic6x_read_description): New function, based on ...
11959 (tic6x_arch_setup): ... this. Reimplement.
11960 (target_regsets): Rename to ...
11961 (tic6x_regsets): ... this, and make static.
11962 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11963 (tic6x_regs_info): New function.
11964 (the_low_target): Adjust.
11965 (initialize_low_arch): New function.
11966 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11967 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11968 (target_regsets): Rename to ...
11969 (xtensa_regsets): ... this, and make static.
11970 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11971 globals.
11972 (xtensa_arch_setup, xtensa_regs_info): New functions.
11973 (the_low_target): Adjust.
11974 (initialize_low_arch): New function.
11975 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11976 (nios2_arch_setup): Set the current process'es tdesc.
11977 (target_regsets): Rename to ...
11978 (nios2_regsets): ... this.
11979 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11980 (nios2_regs_info): New function.
11981 (the_low_target): Adjust.
11982 (initialize_low_arch): New function.
11983 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11984 (aarch64_arch_setup): Set the current process'es tdesc.
11985 (target_regsets): Rename to ...
11986 (aarch64_regsets): ... this.
11987 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11988 (aarch64_regs_info): New function.
11989 (the_low_target): Adjust.
11990 (initialize_low_arch): New function.
11991 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11992 globals.
11993 (target_regsets): Rename to ...
11994 (tile_regsets): ... this.
11995 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11996 (tile_regs_info): New function.
11997 (tile_arch_setup): Set the current process'es tdesc.
11998 (the_low_target): Adjust.
11999 (initialize_low_arch): New function.
12000 * spu-low.c (tdesc_spu): Declare.
12001 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
12002 * win32-arm-low.c (tdesc_arm): Declare.
12003 (arm_arch_setup): New function.
12004 (the_low_target): Install arm_arch_setup instead of
12005 init_registers_arm.
12006 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
12007 (init_windows_x86): Rename to ...
12008 (i386_arch_setup): ... this. Set `win32_tdesc'.
12009 (the_low_target): Adjust.
12010 * win32-low.c (win32_tdesc): New global.
12011 (child_add_thread): Don't create the thread cache here.
12012 (do_initial_child_stuff): Set the new process'es tdesc.
12013 * win32-low.h (struct target_desc): Forward declare.
12014 (win32_tdesc): Declare.
12015 * lynx-i386-low.c (tdesc_i386): Declare global.
12016 (lynx_i386_arch_setup): Set `lynx_tdesc'.
12017 * lynx-low.c (lynx_tdesc): New global.
12018 (lynx_add_process): Set the new process'es tdesc.
12019 * lynx-low.h (struct target_desc): Forward declare.
12020 (lynx_tdesc): Declare global.
12021 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
12022 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
12023 * nto-low.c (nto_tdesc): New global.
12024 (do_attach): Set the new process'es tdesc.
12025 * nto-low.h (struct target_desc): Forward declare.
12026 (nto_tdesc): Declare.
12027 * nto-x86-low.c (tdesc_i386): Declare.
12028 (nto_x86_arch_setup): Set `nto_tdesc'.
12029
12030 2013-06-04 Gary Benson <gbenson@redhat.com>
12031
12032 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
12033 to qSupported response when appropriate.
12034 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
12035 with nonzero-length annex.
12036 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
12037 arguments supplied in annex.
12038
12039 2013-05-31 Doug Evans <dje@google.com>
12040
12041 PR server/15594
12042 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
12043 64 bits in 64-cross-32 environment.
12044
12045 2013-05-28 Pedro Alves <palves@redhat.com>
12046
12047 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
12048 (aarch64-without-fpu.c): Delete rule.
12049 * configure.srv (aarch64*-*-linux*): Remove references to
12050 aarch64-without-fpu.o and aarch64-without-fpu.xml.
12051 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
12052 declaration.
12053
12054 2013-05-24 Pedro Alves <palves@redhat.com>
12055
12056 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
12057 instead of strchr/decode_address. Error if the range isn't split
12058 with a ','. Don't assume there's be a ':' in the action.
12059
12060 2013-05-23 Yao Qi <yao@codesourcery.com>
12061 Pedro Alves <palves@redhat.com>
12062
12063 * linux-low.c (lwp_in_step_range): New function.
12064 (linux_wait_1): If the thread was range stepping and stopped
12065 outside the stepping range, report the stop to GDB. Otherwise,
12066 continue stepping. Add range stepping debug output.
12067 (linux_set_resume_request): Copy the step range from the resume
12068 request to the lwp.
12069 (linux_supports_range_stepping): New.
12070 (linux_target_ops) <supports_range_stepping>: Set to
12071 linux_supports_range_stepping.
12072 * linux-low.h (struct linux_target_ops)
12073 <supports_range_stepping>: New field.
12074 (struct lwp_info) <step_range_start, step_range_end>: New fields.
12075 * linux-x86-low.c (x86_supports_range_stepping): New.
12076 (the_low_target) <supports_range_stepping>: Set to
12077 x86_supports_range_stepping.
12078 * server.c (handle_v_cont): Handle 'r' action.
12079 (handle_v_requests): Append ";r" if the target supports range
12080 stepping.
12081 * target.h (struct thread_resume) <step_range_start,
12082 step_range_end>: New fields.
12083 (struct target_ops) <supports_range_stepping>:
12084 New field.
12085 (target_supports_range_stepping): New macro.
12086
12087 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12088
12089 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
12090 confusion in comment.
12091
12092 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12093
12094 * lynx-low.c (struct process_info_private): New type.
12095 (lynx_add_process): New function.
12096 (lynx_create_inferior, lynx_attach): Replace calls to
12097 add_process by calls to lynx_add_process.
12098 (lynx_resume): If PTID is null, then try using
12099 current_process()->private->last_wait_event_ptid.
12100 Add comments.
12101 (lynx_clear_inferiors): Delete. The contents of that function
12102 has been inlined in lynx_mourn;
12103 (lynx_wait_1): Save the ptid in the process's private data.
12104 (lynx_mourn): Free the process' private data. Replace call
12105 to lynx_clear_inferiors by call to clear_inferiors.
12106
12107 2013-05-17 Yao Qi <yao@codesourcery.com>
12108
12109 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12110 the right place.
12111
12112 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
12113
12114 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12115 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12116 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12117 PT_TEXT_END_ADDR guards. Update comments.
12118 (linux_target_op) <read_offsets>: Conditionally define to
12119 linux_read_offsets if the target is UCLIBC and if it defines
12120 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12121
12122 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12123 Andrew Jenner <andrew@codesourcery.com>
12124
12125 * Makefile.in (SFILES): Add linux-nios2-low.c.
12126 (clean): Add action to delete nios2-linux.c.
12127 (nios2-linux.c): New rule.
12128 * configure.srv: Add nios2*-*-linux*.
12129 * linux-nios2-low.c: New.
12130
12131 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12132
12133 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12134
12135 2013-04-25 Hui Zhu <hui@codesourcery.com>
12136
12137 PR gdb/15186
12138 * ax.c (ax_printf): Add fflush.
12139
12140 2013-04-22 Tom Tromey <tromey@redhat.com>
12141
12142 * Makefile.in (SFILES): Add filestuff.c.
12143 (OBS): Add filestuff.o.
12144 (filestuff.o): New target.
12145 * config.in, configure: Rebuild.
12146 * configure.ac: Check for fdwalk, pipe2.
12147
12148 2013-04-17 Pedro Alves <palves@redhat.com>
12149
12150 * configure.ac (USE_THREAD_DB): Delete variable.
12151 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12152 Don't AC_SUBST USE_THREAD_DB.
12153 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12154 * config.in, configure: Regenerate.
12155
12156 2013-04-16 Pedro Alves <palves@redhat.com>
12157
12158 * linux-low.h (struct lwp_info) <thread_known>: Move under
12159 the USE_THREAD_DB #ifdef.
12160
12161 2013-04-16 Pedro Alves <palves@redhat.com>
12162
12163 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12164 (linux-low.o): Delete rule.
12165 * linux-low.h: Always include "gdb_thread_db.h" instead of
12166 conditionally including thread_db.h.
12167 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12168 HAVE_THREAD_DB_H.
12169
12170 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12171
12172 * Makefile.in (install-only): Fix make install regression.
12173
12174 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12175
12176 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12177 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12178 installation.
12179 * gdbserver.1: Remove.
12180
12181 2013-03-22 Pedro Alves <palves@redhat.com>
12182
12183 * linux-low.c (handle_extended_wait): Don't call
12184 linux_enable_event_reporting.
12185
12186 2013-03-15 Tony Theodore <tonyt@logyst.com>
12187
12188 PR build/9098:
12189 * Makefile.in (SHELL): Use @SHELL@.
12190
12191 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12192
12193 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12194 compiler warning.
12195
12196 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12197
12198 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12199 Remove extraneous NULL element.
12200
12201 2013-03-13 Yao Qi <yao@codesourcery.com>
12202
12203 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12204 'V' block in trace frame.
12205
12206 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12207
12208 * target.h (struct target_ops): Add btrace ops.
12209 (target_supports_btrace): New macro.
12210 (target_enable_btrace): New macro.
12211 (target_disable_btrace): New macro.
12212 (target_read_btrace): New macro.
12213 * gdbthread.h (struct thread_info): Add btrace field.
12214 * server.c: Include btrace-common.h.
12215 (handle_btrace_general_set): New function.
12216 (handle_btrace_enable): New function.
12217 (handle_btrace_disable): New function.
12218 (handle_general_set): Call handle_btrace_general_set.
12219 (handle_qxfer_btrace): New function.
12220 (struct qxfer qxfer_packets[]): Add btrace entry.
12221 * inferiors.c (remove_thread): Disable btrace.
12222 * linux-low: Include linux-btrace.h.
12223 (linux_low_enable_btrace): New function.
12224 (linux_low_read_btrace): New function.
12225 (linux_target_ops): Add btrace ops.
12226 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12227 Add srv_linux_btrace=yes.
12228 (x86_64-*-linux*): Add linux-btrace.o.
12229 Add srv_linux_btrace=yes.
12230 * configure.ac: Define HAVE_LINUX_BTRACE.
12231 * config.in: Regenerated.
12232 * configure: Regenerated.
12233
12234 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12235
12236 * server.c (handle_qxfer): Preserve error message if -3 is
12237 returned.
12238 (qxfer): Document the -3 return value.
12239
12240 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12241
12242 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12243 (linux_btrace_h): New variable.
12244 (linux-btrace.o): New rule.
12245
12246 2013-03-08 Stan Shebs <stan@codesourcery.com>
12247 Hafiz Abid Qadeer <abidh@codesourcery.com>
12248
12249 * tracepoint.c (trace_buffer_size): New global.
12250 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12251 (init_trace_buffer): Change to one-argument function. Allocate
12252 trace buffer memory.
12253 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12254 handle QTBuffer:size packet.
12255 (cmd_bigqtbuffer_size): New function.
12256 (initialize_tracepoint): Call init_trace_buffer with
12257 DEFAULT_TRACE_BUFFER_SIZE.
12258 * server.c (handle_query): Add QTBuffer:size in the
12259 supported packets.
12260
12261 2013-03-07 Yao Qi <yao@codesourcery.com>
12262
12263 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12264 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12265 of -1.
12266 (cmd_qtsp): Adjust condition. Do post increment.
12267 Set cur_action and cur_step_action back to 0.
12268
12269 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12270
12271 PR server/15236
12272 * linux-low.c (linux_write_memory): Return early success if LEN is
12273 zero.
12274
12275 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12276
12277 * configure.srv: Add x86_64-*-cygwin* as target.
12278
12279 2013-02-28 Tom Tromey <tromey@redhat.com>
12280
12281 * configure.ac: Invoke AC_SYS_LARGEFILE.
12282 * configure, config.in: Rebuild.
12283
12284 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12285
12286 * win32-low.c: Throughout, fix format strings and casts of
12287 printf-like functions to avoid type related warnings on all
12288 platforms.
12289 (get_child_debug_event): Print dwDebugEventCode as hex since
12290 that's how it's usually documented.
12291
12292 2013-02-28 Yao Qi <yao@codesourcery.com>
12293
12294 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12295 pulongest.
12296
12297 2013-02-27 Jiong Wang <jiwang@tilera.com>
12298
12299 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12300 (reg-tilegx32.c): New rule.
12301 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12302 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12303 different register info initializer according to elf class.
12304 (init_registers_tilgx32): New function. The tilegx32 register info
12305 initializer.
12306 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12307 (tile_store_gregset): Likewise.
12308
12309 2013-02-27 Yao Qi <yao@codesourcery.com>
12310
12311 * server.c (process_point_options): Print debug message when
12312 debug_threads is true.
12313
12314 2013-02-26 Yao Qi <yao@codesourcery.com>
12315
12316 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12317
12318 2013-02-19 Pedro Alves <palves@redhat.com>
12319 Kai Tietz <ktietz@redhat.com>
12320
12321 PR gdb/15161
12322
12323 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12324 instead of strtoul to extract address from packet.
12325 (process_serial_event) <'z'>: Likewise.
12326
12327 2013-02-18 Yao Qi <yao@codesourcery.com>
12328
12329 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12330
12331 2013-02-14 Pedro Alves <palves@redhat.com>
12332
12333 Plug memory leak.
12334
12335 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12336 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12337
12338 2013-02-14 Pedro Alves <palves@redhat.com>
12339
12340 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12341
12342 2013-02-14 Pedro Alves <palves@redhat.com>
12343
12344 * tracepoint.c (save_string): Delete.
12345 (add_tracepoint_action): Use savestring instead of save_string.
12346
12347 2013-02-12 Pedro Alves <palves@redhat.com>
12348
12349 * linux-xtensa-low.c: Ditto.
12350 * xtensa-xtregs.c: Ditto.
12351
12352 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12353
12354 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12355 thread_db.
12356
12357 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12358
12359 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12360 aarch64_num_wp_regs and aarch64_num_bp_regs to
12361 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12362
12363 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12364
12365 * linux-aarch64-low.c (ps_get_thread_area): Replace
12366 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12367
12368 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12369 Marcus Shawcroft <marcus.shawcroft@arm.com>
12370 Nigel Stephens <nigel.stephens@arm.com>
12371 Yufeng Zhang <yufeng.zhang@arm.com>
12372
12373 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12374 (aarch64.c, aarch64-without-fpu.c): New targets.
12375 * configure.srv (aarch64*-*-linux*): New.
12376 * linux-aarch64-low.c: New file.
12377
12378 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12379
12380 * linux-low.c (handle_extended_wait, linux_create_inferior)
12381 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12382 (dequeue_one_deferred_signal, linux_resume_one_thread)
12383 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12384 (linux_tracefork_grandchild, linux_test_for_tracefork)
12385 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12386 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12387 where the argument is 0.
12388
12389 2013-01-25 Yao Qi <yao@codesourcery.com>
12390
12391 * event-loop.c: Include "queue.h".
12392 (gdb_event_p): New typedef.
12393 (struct gdb_event) <next_event>: Remove.
12394 (event_queue): Change to QUEUE(gdb_event_p).
12395 (async_queue_event): Remove.
12396 (gdb_event_xfree): New.
12397 (initialize_event_loop): New.
12398 (process_event): Use API from QUEUE.
12399 (wait_for_event): Likewise.
12400 * server.c (main): Call initialize_event_loop.
12401 * server.h (initialize_event_loop): Declare.
12402
12403 2013-01-18 Yao Qi <yao@codesourcery.com>
12404
12405 * ax.h (struct eval_agent_expr_context): New.
12406 (gdb_eval_agent_expr): Update declaration.
12407 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12408 TFRAME. Add new argument CTX.
12409 * server.h (struct eval_agent_expr_context): Declare.
12410 (agent_mem_read, agent_tsv_read): Update declaration.
12411 (agent_mem_read_string): Likewise.
12412 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12413 (add_traceframe_block): Add new argument TPOINT.
12414 Increase TPOINT->traceframe_usage.
12415 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12416 eval_tracepoint_agent_expr.
12417 (condition_true_at_tracepoint): Likewise.
12418 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12419 (agent_mem_read_string, agent_tsv_read): Likewise.
12420
12421 2013-01-16 Yao Qi <yao@codesourcery.com>
12422
12423 * linux-low.c (linux_resume_one_lwp): Don't check
12424 'lwp->bp_reinsert != 0'.
12425
12426 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12427 Pedro Alves <palves@redhat.com>
12428
12429 * lynx-low.c (ptrace_request_to_str): Define a temporary
12430 macro and use it to simplify this function's implementation.
12431
12432 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12433
12434 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12435 sets errno.
12436
12437 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12438
12439 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12440
12441 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12442
12443 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12444
12445 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12446
12447 * lynx-low.c (lynx_resume): Use the resume_info parameter
12448 to determine the ptid for the lynx_ptrace call, unless
12449 it is equal to minus_one_ptid, in which case we use the
12450 ptid of the current_inferior.
12451 (lynx_wait_1): After having received a thread create/exit
12452 event, resume the inferior's execution using the signaling
12453 thread's ptid, rather than the old ptid.
12454
12455 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12456
12457 * lynx-low.c (lynx_resume): Delete variable ret.
12458
12459 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12460
12461 * gdbreplay.c (gdbreplay_version): Update copyright year.
12462 * server.c (gdbserver_version): Likewise.
12463
12464 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12465
12466 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12467 new thread.
12468
12469 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12470
12471 * lynx-low.c (ptrace_request_to_str): Add handling for
12472 PTRACE_GETTRACESIG.
12473
12474 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12475
12476 * lynx-low.c (lynx_attach): Delete variable new_process.
12477
12478 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12479
12480 * lynx-low.c (lynx_create_inferior): Delete variable
12481 new_process.
12482
12483 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12484
12485 * lynx-low.c (ptrace_request_to_str): Do not handle
12486 PTRACE_GETTHREADLIST if this macro does not exist.
12487
12488 2012-12-15 Yao Qi <yao@codesourcery.com>
12489
12490 * Makefile.in (OBS): Add notif.o.
12491 * notif.c, notif.h: New.
12492 * server.c: Include "notif.h".
12493 (struct vstop_notif) <next>: Remove.
12494 <base>: New field.
12495 (queue_stop_reply): Update.
12496 (push_event, send_next_stop_reply): Remove.
12497 (discard_queued_stop_replies): Update.
12498 (notif_stop): New variable.
12499 (handle_v_stopped): Remove.
12500 (handle_v_requests): Don't call handle_v_stopped. Call
12501 handle_ack_notif instead.
12502 (queue_stop_reply_callback): Call notif_event_enque instead
12503 of queue_stop_reply.
12504 (handle_status): Don't call send_next_stop_reply, call
12505 notif_write_event instead.
12506 (kill_inferior_callback): Likewise.
12507 (detach_or_kill_inferior_callback): Likewise.
12508 (main): Call initialize_notif.
12509 (process_serial_event): Call QUEUE_is_empty.
12510 (handle_target_event): Call notif_push instead of push event.
12511 * server.h (push_event): Remove declaration.
12512
12513 2012-12-10 Tom Tromey <tromey@redhat.com>
12514
12515 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12516 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12517 macros.
12518 (.c.o): Rewrite.
12519 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12520 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12521 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12522 (amd64-linux-ipa.o, ax.o): Rewrite.
12523 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12524 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12525 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12526 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12527 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12528 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12529 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12530 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12531 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12532 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12533 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12534 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12535 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12536 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12537 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12538 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12539 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12540 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12541 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12542 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12543 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12544 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12545 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12546 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12547 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12548 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12549 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12550 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12551 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12552 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12553 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12554 (reg-tilegx.o): Remove.
12555 (all_object_files): New macro.
12556 Include .deps files.
12557 * aclocal.m4, configure: Rebuild.
12558 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12559 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12560 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12561
12562 2012-12-05 Tom Tromey <tromey@redhat.com>
12563
12564 PR gdb/14917:
12565 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12566
12567 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
12568
12569 * configure.ac: Check for linux/perf_event.h.
12570 * config.in: Regenerated.
12571 * configure: Regenerated.
12572
12573 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12574
12575 * hostio.c (handle_readlink): Decrease buffer size
12576 parameter passed to readlink by one byte.
12577
12578 2012-11-26 Yao Qi <yao@codesourcery.com>
12579
12580 * configure.ac (build_warnings): Append '-Wempty-body'.
12581 * configure: Regenerated.
12582 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12583 body.
12584
12585 2012-11-15 Pierre Muller <muller@sourceware.org>
12586
12587 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12588 * config.in: Regenerate.
12589 * configure: Regenerate.
12590 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12591 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12592 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12593 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12594 header.
12595 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12596 instead of <sys/wait.h> header.
12597 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12598
12599 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
12600
12601 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12602 (various make rules): Remove -DGDBSERVER
12603
12604 2012-11-09 Yao Qi <yao@codesourcery.com>
12605
12606 * spu-low.c (current_ptid): Move it to ..
12607 * gdbthread.h: ... here. New.
12608 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12609 * server.c (myresume, process_serial_event): Likewise.
12610 * thread-db.c (thread_db_find_new_threads): Likewise.
12611 * tracepoint.c (run_inferior_command): Likewise.
12612
12613 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
12614
12615 * server.c (handle_search_memory_1): Include access length in
12616 warning message.
12617
12618 2012-09-05 Michael Brandt <michael.brandt@axis.com>
12619
12620 * linux-crisv32-low.c: Fix compile errors.
12621
12622 2012-09-04 Yao Qi <yao@codesourcery.com>
12623
12624 * tracepoint.c (cmd_qtsv): Adjust debug message.
12625 Don't check CUR_TPOINT.
12626
12627 2012-08-28 Yao Qi <yao@codesourcery.com>
12628
12629 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12630 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12631 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12632 Remove declarations of xmalloc, xreallloc, xstrdup and
12633 freeargv.
12634 * Makefile.in (libiberty_h): New.
12635 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12636 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12637
12638 2012-08-23 Yao Qi <yao@codesourcery.com>
12639
12640 * server.h: Remove declaration of 'xsnprintf'.
12641
12642 2012-08-22 Keith Seitz <keiths@redhat.com>
12643
12644 * server.h: Include build-gnulib-gbserver/config.h.
12645 * gdbreplay.c: Likewise.
12646
12647 2012-08-08 Doug Evans <dje@google.com>
12648
12649 * Makefile.in (SFILES): Add gdb_vecs.c.
12650 (OBS): Add gdb_vecs.o.
12651 (gdb_vecs_h, host_defs_h): New variables.
12652 (thread-db.o): Add $(gdb_vecs_h) dependency.
12653 (gdb_vecs.o): New rule.
12654 * thread-db.c: #include "gdb_vecs.h".
12655 (thread_db_load_search): Use a vector to iterate over path elements.
12656 Handle text appearing after "$pdir".
12657
12658 * configure.ac: Add check for strstr.
12659 * config.in: Regenerate.
12660 * configure: Regenerate.
12661
12662 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12663
12664 * hostio.c (handle_pread): If pread fails, fall back to attempting
12665 lseek/read.
12666 (handle_pwrite): Likewise for pwrite.
12667
12668 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12669
12670 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12671 between unsupported TYPE and unimplementable ADDR/LEN combination.
12672 (arm_insert_point): Act on new return value.
12673
12674 2012-07-31 Pedro Alves <palves@redhat.com>
12675
12676 * server.c (process_point_options): Only skip tokens if we find
12677 one that is unrecognized. Don't treat 'X' specially while
12678 skipping unrecognized tokens.
12679
12680 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12681
12682 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12683 to 4-byte-align HW breakpoint addresses for Thumb.
12684
12685 2012-07-27 Yao Qi <yao@codesourcery.com>
12686
12687 PR remote/14161.
12688
12689 * server.h: Declare gdb_agent_about_to_close.
12690 * target.c (kill_inferior): Include "agent.h".
12691 New. Send command 'kill'.
12692 * target.h (kill_inferior): Removed macro.
12693 * tracepoint.c (gdb_agent_about_to_close): New.
12694 (gdb_agent_helper_thread): Handle command 'close'.
12695 Wait endlessly until the inferior stops.
12696 Install gdb_agent_remove_socket to atexit hook.
12697 (agent_socket_name): New static variable.
12698 (gdb_agent_socket_init): Replace local variable 'name' with
12699 'agent_socket_name'.
12700 (gdb_agent_remove_socket): New.
12701
12702 2012-07-27 Yao Qi <yao@codesourcery.com>
12703
12704 * server.c (process_point_options): Stop at 'X' when parsing.
12705
12706 2012-07-19 Michael Eager <eager@eagercon.com>
12707
12708 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
12709 to hw_execute.
12710 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12711 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12712 hardware breakpoint.
12713
12714 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12715
12716 * gdbserver/linux-low.c (initialize_low): Call
12717 linux_ptrace_init_warnings.
12718
12719 2012-07-02 Doug Evans <dje@google.com>
12720
12721 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12722 pointer to int.
12723
12724 2012-07-02 Stan Shebs <stan@codesourcery.com>
12725
12726 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12727 (ax.o): Add it to build rule.
12728 (ax-ipa.o): Ditto.
12729 (OBS): Add format.o.
12730 (IPA_OBS): Add format.o.
12731 * server.c (handle_query): Claim support for breakpoint commands.
12732 (process_point_options): Add command case.
12733 (process_serial_event): Leave running if there are printfs in
12734 effect.
12735 * mem-break.h (any_persistent_commands): Declare.
12736 (add_breakpoint_commands): Declare.
12737 (gdb_no_commands_at_breakpoint): Declare.
12738 (run_breakpoint_commands): Declare.
12739 * mem-break.c (struct point_command_list): New struct.
12740 (struct breakpoint): New field command_list.
12741 (any_persistent_commands): New function.
12742 (add_commands_to_breakpoint): New function.
12743 (add_breakpoint_commands): New function.
12744 (gdb_no_commands_at_breakpoint): New function.
12745 (run_breakpoint_commands): New function.
12746 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12747 locally.
12748 * ax.c: Include format.h.
12749 (ax_printf): New function.
12750 (gdb_eval_agent_expr): Add printf opcode.
12751
12752 2012-06-13 Yao Qi <yao@codesourcery.com>
12753
12754 * server.c (start_inferior): Remove duplicated writes to fields
12755 'last_resume_kind' and 'last_status' of 'current_inferior'.
12756
12757 2012-06-12 Yao Qi <yao@codesourcery.com>
12758 Pedro Alves <palves@redhat.com>
12759
12760 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12761 comment.
12762 * server.c (handle_v_cont): Extend comment.
12763
12764 2012-06-11 Yao Qi <yao@codesourcery.com>
12765
12766 * linux-low.c (linux_attach): Add 'static'.
12767
12768 2012-06-06 Yao Qi <yao@codesourcery.com>
12769
12770 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12771
12772 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12773
12774 Fix gcc -flto compilation warning.
12775 * server.c (main): Make variable multi_mode and attach volatile.
12776
12777 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12778
12779 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12780 if the platform doesn't know about it.
12781
12782 2012-05-30 Jeff Kenton <jkenton@tilera.com>
12783
12784 * Makefile.in (SFILES): Add linux-tile-low.c.
12785 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12786 * configure.srv: Handle tilegx-*-linux*.
12787 * linux-tile-low.c: New file.
12788
12789 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12790
12791 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12792
12793 2012-05-24 Pedro Alves <palves@redhat.com>
12794
12795 PR gdb/7205
12796
12797 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
12798
12799 2012-05-24 Pedro Alves <palves@redhat.com>
12800
12801 PR gdb/7205
12802
12803 Replace target_signal with gdb_signal throughout.
12804
12805 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12806
12807 * linux-low.c (linux_store_registers): Avoid the copying sequence
12808 when no data has been retrieved by ptrace.
12809
12810 2012-05-22 Will Deacon <will.deacon@arm.com>
12811
12812 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12813 Include asm/ptrace.h.
12814 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12815 already defined.
12816
12817 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12818
12819 * linux-low.c (linux_store_registers): Don't re-retrieve data
12820 with ptrace that has already been obtained from /proc. Always
12821 copy any data retrieved with ptrace to the buffer supplied.
12822
12823 2012-05-11 Yao Qi <yao@codesourcery.com>
12824 Pedro Alves <palves@redhat.com>
12825
12826 * linux-low.c (enum stopping_threads_kind): New.
12827 (stopping_threads): Change type to `enum stopping_threads_kind'.
12828 (handle_extended_wait): If stopping and suspending threads, leave
12829 the new_lwp suspended too.
12830 (linux_wait_for_event): Adjust.
12831 (stop_all_lwps): Set `stopping_threads' to
12832 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12833 whether we're suspending threads or just stopping them. Assert no
12834 recursion happens.
12835
12836 2012-04-29 Yao Qi <yao@codesourcery.com>
12837
12838 * server.h: Move some code to ...
12839 * gdbthread.h: ... here. New.
12840 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12841 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12842 (nto-low.o, win32-low.o): Likewise.
12843 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12844 * regcache.c, remote-utils.c, server.c: Likewise.
12845 * target.c, tracepoint.c, win32-low.c: Likewise.
12846
12847 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12848
12849 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12850 (PTRACE_ARG4_TYPE): Likewise.
12851 (PTRACE_XFER_TYPE): Likewise.
12852 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12853 ptrace to PTRACE_ARG3_TYPE.
12854 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12855 (PTRACE_ARG4_TYPE): Likewise.
12856 (PTRACE_XFER_TYPE): Likewise.
12857 (linux_detach_one_lwp): Cast fourth argument of
12858 ptrace to long then PTRACE_ARG4_TYPE.
12859 (regsets_fetch_inferior_registers): Cast third argument of
12860 ptrace to long then PTRACE_ARG3_TYPE.
12861 (regsets_store_inferior_registers): Likewise.
12862
12863 2012-04-20 Pedro Alves <palves@redhat.com>
12864
12865 * configure: Regenerate.
12866
12867 2012-04-19 Pedro Alves <palves@redhat.com>
12868
12869 * Makefile.in (GNULIB_BUILDDIR): New.
12870 (LIBGNU, INCGNU, GNULIB_H): Adjust.
12871 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12872 (all, install-only, uninstall, clean-info, all-lib, clean): No
12873 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12874 (maintainer-clean realclean distclean): Use subdir_do.
12875 (subdir_do): New.
12876 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
12877 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
12878 * acinclude.m4: Include acx_configure_dir.m4.
12879 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12880 calls. Call AC_PROG_RANLIB. Configure gnulib using
12881 ACX_CONFIGURE_DIR.
12882 (GNULIB): New.
12883 (GNULIB_STDINT_H): Adjust.
12884 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12885 * gdbreplay.c: Include build-gnulib/config.h.
12886 * server.h: Likewise.
12887 * aclocal.m4: Regenerate.
12888 * config.in: Regenerate.
12889 * configure: Regenerate.
12890
12891 2012-04-19 Pedro Alves <palves@redhat.com>
12892
12893 * Makefile.in (LIBGNU, INCGNU): Adjust.
12894 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12895 (all, install-only, uninstall, clean-info, all-lib, clean)
12896 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12897 * configure.ac: Adjust AC_OUTPUT output.
12898 * aclocal.m4: Regenerate.
12899 * configure: Regenerate.
12900
12901 2012-04-19 Pedro Alves <palves@redhat.com>
12902
12903 * Makefile.in (generated_files): New.
12904 (server_h): Remove the explicit dependency on config.h, and depend
12905 on $generated_files.
12906
12907 2012-04-19 Pedro Alves <palves@redhat.com>
12908
12909 * Makefile.in (INCGNU): Add -Ignulib.
12910
12911 2012-04-19 Pedro Alves <palves@redhat.com>
12912
12913 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12914 (INCGNU): ... this, and spell out -I here.
12915 (GNULIB_LIB): Rename to ...
12916 (LIBGNU): ... this.
12917 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12918
12919 2012-04-19 Pedro Alves <palves@redhat.com>
12920
12921 * config.in: Regenerate.
12922
12923 2012-04-19 Pedro Alves <palves@redhat.com>
12924
12925 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12926 * server.h (memmem): Remove declaration.
12927 * config.in: Regenerate.
12928 * configure: Regenerate.
12929
12930 2012-04-19 Yao Qi <yao@codesourcery.com>
12931
12932 * Makefile.in (SFILES): Add common/vec.c.
12933 (OBS): Add vec.o.
12934 (vec.o): New rule.
12935
12936 2012-04-19 Yao Qi <yao@codesourcery.com>
12937
12938 * remote-utils.c (prepare_resume_reply): Replace with macro
12939 target_core_of_thread.
12940 * server.c (handle_qxfer_threads_proper): Likewise.
12941 * target.h (traget_core_of_thread): New macro.
12942
12943 2012-04-18 Pedro Alves <palves@redhat.com>
12944
12945 * aclocal.m4: Regenerate.
12946 * configure: Regenerate.
12947
12948 2012-04-16 Yao Qi <yao@codesourcery.com>
12949
12950 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12951 duplicated on address.
12952
12953 2012-04-16 Yao Qi <yao@codesourcery.com>
12954
12955 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12956 (struct tracepoint_action_ops) <send>: New field.
12957 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12958 (agent_expr_send, x_tracepoint_action_send): New.
12959 (l_tracepoint_action_send): New.
12960 (cmd_qtdp): Download and install tracepoint
12961 according to `use_agent'.
12962 (run_inferior_command): Add one more parameter `len'.
12963 Update callers.
12964 (tracepoint_send_agent): New.
12965 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12966
12967 2012-04-16 Yao Qi <yao@codesourcery.com>
12968
12969 * tracepoint.c (download_tracepoints): Moved to ...
12970 (cmd_qtstart): ... here.
12971
12972 2012-04-14 Yao Qi <yao@codesourcery.com>
12973
12974 * tracepoint.c: Include inttypes.h.
12975 (struct collect_memory_action): Use sized types.
12976 (struct tracepoint): Likewise.
12977 (cmd_qtdp, stop_tracing): Update print specifiers.
12978 (cmd_qtp, response_tracepoint): Likewise.
12979 (collect_data_at_tracepoint): Likewise.
12980 (collect_data_at_step): Likewise.
12981
12982 2012-04-14 Yao Qi <yao@codesourcery.com>
12983
12984 Import gnulib module inttypes.
12985 * aclocal.m4, config.in, configure: Regenerated.
12986
12987 2012-04-14 Yao Qi <yao@codesourcery.com>
12988
12989 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12990 Makefile and config.status at last.
12991
12992 2012-04-13 Yao Qi <yao@codesourcery.com>
12993
12994 * tracepoint.c: Include stdint.h unconditionally.
12995
12996 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12997
12998 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12999 on BFD_HAVE_SYS_PROCFS_TYPE.
13000 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
13001 * configure: Regenerate.
13002 * config.in: Likewise.
13003
13004 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
13005
13006 * Makefile.in (clean): Also remove x32.c x32-linux.c
13007 x32-avx.c x32-avx-linux.c.
13008 (x32.o): New target.
13009 (x32.c): Likewise.
13010 (x32-linux.o): Likewise.
13011 (x32-linux.c): Likewise.
13012 (x32-avx.o): Likewise.
13013 (x32-avx.c): Likewise.
13014 (x32-avx-linux.o): Likewise.
13015 (x32-avx-linux.c): Likewise.
13016
13017 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
13018 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
13019 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
13020 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
13021 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
13022 i386/x32-avx-linux.xml.
13023
13024 * linux-x86-low.c (init_registers_x32_linux): New prototype.
13025 (init_registers_x32_avx_linux): Likwise.
13026 (x86_linux_update_xmltarget): Call init_registers_x32_linux
13027 or init_registers_x32_avx_linux if linux_is_elf64 is false.
13028
13029 2012-04-13 Pedro Alves <palves@redhat.com>
13030
13031 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
13032 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
13033 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
13034 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
13035 the sub-make.
13036
13037 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13038
13039 * linux-x86-low.c (compat_x32_clock_t): New.
13040 (compat_x32_siginfo_t): Likewise.
13041 (compat_x32_siginfo_from_siginfo): Likewise.
13042 (siginfo_from_compat_x32_siginfo): Likewise.
13043 (linux_is_elf64): Likewise.
13044 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
13045 and siginfo_from_compat_x32_siginfo for x32.
13046 (x86_arch_setup): Set linux_is_elf64.
13047
13048 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13049
13050 PR gdb/13969
13051 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
13052 e_machine field.
13053 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
13054 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
13055 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
13056 compatible with process.
13057
13058 2012-04-12 Yao Qi <yao@codesourcery.com>
13059
13060 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
13061 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
13062 (install-only, install-info, clean): Handle sub dir gnulib.
13063 (all-lib, am--refresh): New targets.
13064 (memmem.o): Remove target.
13065 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
13066 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
13067 (AC_REPLACE_FUNCS): Remove memmem.
13068 Invoke gl_INIT and AM_INIT_AUTOMAKE.
13069 (AC_OUTPUT): Generate Makefile in gnulib/.
13070 * aclocal.m4, config.in, configure: Regenerated.
13071
13072 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
13073
13074 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
13075
13076 2012-04-05 Pedro Alves <palves@redhat.com>
13077
13078 -Werror=strict-aliasing
13079
13080 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
13081 pointer.
13082
13083 2012-04-04 Pedro Alves <palves@redhat.com>
13084
13085 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13086 (sparc_store_gregset_from_stack, sparc_store_gregset)
13087 (sparc_breakpoint_at): Fix formatting.
13088
13089 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13090
13091 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
13092 are available.
13093 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
13094 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
13095 * config.in: Regenerate.
13096 * configure: Likewise.
13097
13098 2012-03-29 Pedro Alves <palves@redhat.com>
13099
13100 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13101 Correct ptrace arguments.
13102
13103 2012-03-28 Pedro Alves <palves@redhat.com>
13104
13105 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13106 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13107 (IA64_FR1_REGNUM): New defines.
13108 (ia64_fetch_register): New.
13109 (the_low_target): Install it.
13110 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13111 field.
13112 * linux-low.c (linux_fetch_registers): Try the
13113 the_low_target.fetch_register hook first.
13114
13115 * linux-arm-low.c (the_low_target): Adjust.
13116 * linux-bfin-low.c (the_low_target): Adjust.
13117 * linux-cris-low.c (the_low_target): Adjust.
13118 * linux-crisv32-low.c (the_low_target): Adjust.
13119 * linux-m32r-low.c (the_low_target): Adjust.
13120 * linux-m68k-low.c (the_low_target): Adjust.
13121 * linux-mips-low.c (the_low_target): Adjust.
13122 * linux-ppc-low.c (the_low_target): Adjust.
13123 * linux-s390-low.c (the_low_target): Adjust.
13124 * linux-sh-low.c (the_low_target): Adjust.
13125 * linux-sparc-low.c (the_low_target): Adjust.
13126 * linux-tic6x-low.c (the_low_target): Adjust.
13127 * linux-x86-low.c (the_low_target): Adjust.
13128 * linux-xtensa-low.c (the_low_target): Adjust.
13129
13130 2012-03-26 Pedro Alves <palves@redhat.com>
13131
13132 * server.c (handle_qxfer_libraries): Don't bail early if
13133 the_target->qxfer_libraries_svr4 is not NULL.
13134
13135 2012-03-26 Pedro Alves <palves@redhat.com>
13136
13137 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13138
13139 2012-03-23 Pedro Alves <palves@redhat.com>
13140
13141 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13142 "library-list-svr4" element's start tag when the the DSO list is
13143 empty.
13144
13145 2012-03-23 Pedro Alves <palves@redhat.com>
13146
13147 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13148 a variable whose type size is the same as the inferior's pointer
13149 size.
13150
13151 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13152
13153 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13154 struct siginfo.
13155 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13156 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13157 * linux-low.h: Include <signal.h>.
13158 (struct siginfo): Remove forward declaration.
13159 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13160 struct siginfo.
13161
13162 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13163
13164 * .gitignore: Ignore more files.
13165
13166 2012-03-19 Pedro Alves <palves@redhat.com>
13167 Jan Kratochvil <jan.kratochvil@redhat.com>
13168
13169 * server.c (cont_thread, general_thread): Add describing comments.
13170 (start_inferior): Clear `cont_thread'.
13171 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13172 of a process.
13173
13174 2012-03-15 Yao Qi <yao@codesourcery.com>
13175
13176 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13177 handling to ...
13178 (cmd_qtdp): ... here.
13179
13180 2012-03-15 Yao Qi <yao@codesourcery.com>
13181
13182 * tracepoint.c (struct tracepoint_action_ops): New.
13183 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13184 (m_tracepoint_action_download): New.
13185 (r_tracepoint_action_download): New.
13186 (x_tracepoint_action_download): New.
13187 (l_tracepoint_action_download): New.
13188 (add_tracepoint_action): Install `action->ops' according type.
13189 (download_tracepoint_1): Move code `download' function pointer
13190 of various tracepoint_action_ops.
13191
13192 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13193
13194 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13195 linux_ptrace_attach_warnings.
13196
13197 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13198
13199 * Makefile.in (linux-ptrace.o): New.
13200 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13201 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13202 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13203 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13204 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13205 of these targets.
13206 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13207
13208 2012-03-08 Yao Qi <yao@codesourcery.com>
13209 Pedro Alves <palves@redhat.com>
13210
13211 Fix PR server/13392.
13212 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13213 offset of JMP insn.
13214 * tracepoint.c (remove_tracepoint): New.
13215 (cmd_qtdp): Call remove_tracepoint when failed to install.
13216
13217 2012-03-07 Pedro Alves <palves@redhat.com>
13218
13219 * linux-low.c (get_detach_signal): New.
13220 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13221 Pass on pending signals to PTRACE_DETACH. Check the result of the
13222 ptrace call.
13223 * server.c (program_signals, program_signals_p): New.
13224 (handle_general_set): Handle QProgramSignals.
13225 * server.h (program_signals, program_signals_p): Declare.
13226
13227 2012-03-05 Pedro Alves <palves@redhat.com>
13228 Jan Kratochvil <jan.kratochvil@redhat.com>
13229
13230 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13231 New comment why.
13232
13233 2012-03-03 Yao Qi <yao@codesourcery.com>
13234
13235 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13236 agent_look_up_symbols.
13237
13238 2012-03-03 Yao Qi <yao@codesourcery.com>
13239
13240 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13241 (linux-x86-low.o): Likewise.
13242 * server.h: Remove in_process_agent_loaded.
13243 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13244 common/agent.c.
13245 Update callers.
13246
13247 2012-03-03 Yao Qi <yao@codesourcery.com>
13248
13249 * tracepoint.c (gdb_agent_capability): New global.
13250 (in_process_agent_loaded_ust): Renamed to
13251 `in_process_agent_supports_ust'.
13252 Update callers.
13253 (in_process_agent_supports_ust): Call agent_capability_check.
13254 (clear_installed_tracepoints): Assert that agent supports
13255 agent.
13256
13257 2012-03-03 Yao Qi <yao@codesourcery.com>
13258
13259 * linux-low.c (linux_supports_agent): New.
13260 (linux_target_ops): Initialize field `supports_agent' with
13261 linux_supports_agent.
13262 * target.h (struct target_ops) <supports_agent>: New.
13263 (target_supports_agent): New macro.
13264 * server.c (handle_general_set): Handle packet 'QAgent'.
13265 (handle_query): Send `QAgent+'.
13266 * Makefile.in (server.o): Depends on agent.h.
13267
13268 2012-03-03 Yao Qi <yao@codesourcery.com>
13269
13270 * Makefile.in (OBS): Add agent.o.
13271 Add new rule for agent.o.
13272 Track dependence of tracepoint.c on agent.h.
13273 * tracepoint.c (run_inferior_command_1):
13274 (run_inferior_command): Call agent_run_command.
13275 (gdb_ust_connect_sync_socket): Deleted. Move it to
13276 common/agent.c.
13277 (resume_thread, stop_thread): Likewise.
13278 (gdb_ust_socket_init): Renamed to ...
13279 (gdb_agent_socket_init): ... New.
13280 (gdb_ust_thread): Renamed to ...
13281 (gdb_agent_helper_thread): ... New.
13282 (gdb_ust_init): Move some code to ...
13283 (gdb_agent_init): ... here. New.
13284 [HAVE_UST]: Call gdb_ust_init.
13285 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13286 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13287 * config.in, configure: Regenerated.
13288
13289 2012-03-02 Pedro Alves <palves@redhat.com>
13290
13291 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13292 * linux-low.c (struct simple_pid_list): New.
13293 (stopped_pids): New a struct simple_pid_list pointer.
13294 (add_to_pid_list, pull_pid_from_list): New.
13295 (handle_extended_wait): Don't assume the first signal new children
13296 report is SIGSTOP. Adjust call to pull_pid_from_list.
13297 (linux_wait_for_lwp): Adjust.
13298
13299 2012-03-02 Yao Qi <yao@codesourcery.com>
13300
13301 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13302 debug log.
13303
13304 2012-03-02 Yao Qi <yao@codesourcery.com>
13305
13306 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13307 `stop_pc' and `tpoint'. Update caller.
13308
13309 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13310
13311 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13312 * linux-low.c (use_linux_regsets): New macro.
13313 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13314 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13315 (linux_register_in_regsets): New function.
13316 (usr_fetch_inferior_registers): Skip registers covered by
13317 regsets.
13318 (usr_store_inferior_registers): Likewise.
13319 (usr_fetch_inferior_registers): New macro.
13320 (usr_store_inferior_registers): Likewise.
13321 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13322 (linux_store_registers): Likewise.
13323 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13324 prototype.
13325 (init_registers_mips64_dsp_linux): Likewise.
13326 (init_registers_mips_linux): New macro.
13327 (init_registers_mips_dsp_linux): Likewise.
13328 (mips_dsp_num_regs): Likewise.
13329 (DSP_BASE, DSP_CONTROL): New fallback macros.
13330 (mips_base_regs): New macro.
13331 (mips_regmap): Use it. Fix the size.
13332 (mips_dsp_regmap): New variable.
13333 (mips_dsp_regset_bitmap): Likewise.
13334 (mips_arch_setup): New function.
13335 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13336 than mips_regmap.
13337 (mips_cannot_store_register): Likewise.
13338 (the_low_target): Update .arch_setup, .num_regs and .regmap
13339 initializers. Add .regset_bitmap initializer.
13340 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13341 initializer.
13342 * linux-bfin-low.c (the_low_target): Likewise.
13343 * linux-cris-low.c (the_low_target): Likewise.
13344 * linux-crisv32-low.c (the_low_target): Likewise.
13345 * linux-ia64-low.c (the_low_target): Likewise.
13346 * linux-m32r-low.c (the_low_target): Likewise.
13347 * linux-m68k-low.c (the_low_target): Likewise.
13348 * linux-ppc-low.c (the_low_target): Likewise.
13349 * linux-s390-low.c (the_low_target): Likewise.
13350 * linux-sh-low.c (the_low_target): Likewise.
13351 * linux-sparc-low.c (the_low_target): Likewise.
13352 * linux-tic6x-low.c (the_low_target): Likewise.
13353 * linux-x86-low.c (the_low_target): Likewise.
13354 * linux-xtensa-low.c (the_low_target): Likewise.
13355 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13356 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13357 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13358 srv_xmlfiles.
13359 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13360 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13361
13362 2012-02-29 Yao Qi <yao@codesourcery.com>
13363 Pedro Alves <palves@redhat.com>
13364
13365 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13366 `step_over_finished' is true.
13367
13368 2012-02-27 Pedro Alves <palves@redhat.com>
13369
13370 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13371 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13372
13373 2012-02-27 Pedro Alves <palves@redhat.com>
13374
13375 PR server/9684
13376 * linux-low.c (pid_is_stopped): New.
13377 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13378
13379 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13380
13381 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13382 of conditions.
13383
13384 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13385
13386 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13387
13388 2012-02-24 Luis Machado <lgustavo@codesourcery>
13389
13390 * server.c (handle_query): Advertise support for target-side
13391 breakpoint condition evaluation.
13392 (process_point_options): New function.
13393 (process_serial_event): When inserting a breakpoint, check for
13394 a target-side condition that should be evaluated.
13395
13396 * mem-break.c: Include regcache.h and ax.h.
13397 (point_cond_list_t): New data structure.
13398 (breakpoint) <cond_list>: New field.
13399 (find_gdb_breakpoint_at): Make non-static.
13400 (delete_gdb_breakpoint_at): Clear any target-side
13401 conditions.
13402 (clear_gdb_breakpoint_conditions): New function.
13403 (add_condition_to_breakpoint): Likewise.
13404 (add_breakpoint_condition): Likewise.
13405 (gdb_condition_true_at_breakpoint): Likewise.
13406 (gdb_breakpoint_here): Return result directly instead
13407 of going through a local variable.
13408
13409 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13410 (clear_gdb_breakpoint_conditions): Likewise.
13411 (add_breakpoint_condition): Likewise.
13412 (gdb_condition_true_at_breakpoint): Likewise.
13413
13414 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13415 (need_step_over_p): Take target-side breakpoint condition into
13416 consideration.
13417
13418 2012-02-24 Luis Machado <lgustavo@codesourcery>
13419
13420 * server.h: Include tracepoint.h.
13421 (agent_mem_read, agent_get_trace_state_variable_value,
13422 agent_set_trace_state_variable_value,
13423 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13424 get_set_tsv_func_addr): New prototypes.
13425
13426 * ax.h: New include file.
13427 * ax.c: New source file.
13428
13429 * tracepoint.c: Include ax.h.
13430 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13431 agent_expr, eval_result_type): Move to ax.h.
13432 (parse_agent_expr): Rename to ...
13433 (gdb_parse_agent_expr): ... this, make it non-static and move
13434 to ax.h.
13435 (unparse_agent_expr) Rename to ...
13436 (gdb_unparse_agent_expr): ... this, make it non-static and move
13437 to ax.h.
13438 (eval_agent_expr): Rename to ...
13439 (eval_tracepoint_agent_expr): ... this.
13440 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13441 forward declarations.
13442 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13443 (agent_get_trace_state_variable_value): New function.
13444 (agent_set_trace_state_variable_value): New function.
13445 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13446 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13447 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13448 (condition_true_at_tracepoint): Likewise.
13449 (parse_agent_expr): Rename to ...
13450 (gdb_parse_agent_expr): ... this and move to ax.c.
13451 (unparse_agent_expr): Rename to ...
13452 (gdb_unparse_agent_expr): ... this and move to ax.c.
13453 (gdb_agent_op_name): Move to ax.c.
13454 (eval_agent_expr): Rename to ...
13455 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13456 and move to ax.c.
13457 (eval_tracepoint_agent_expr): New function.
13458 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13459 non-static.
13460 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13461 ax.c.
13462 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13463 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13464 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13465 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13466 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13467 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13468 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13469 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13470 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13471 (compile_bytecodes): Remove forward declaration.
13472 (is_goto_target): Move to ax.c.
13473 (compile_bytecodes): Move to ax.c and call
13474 agent_get_trace_state_variable_value (...) and
13475 agent_set_trace_state_variable_value (...).
13476
13477 * Makefile.in: Update ax.c and IPA dependencies.
13478
13479 2012-02-24 Pedro Alves <palves@redhat.com>
13480
13481 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13482 (cmd_bigqtbuffer_circular): ... this. Only handle
13483 'QTBuffer:circular:'.
13484 (handle_tracepoint_general_set): Adjust.
13485
13486 2012-02-16 Yao Qi <yao@codesourcery.com>
13487
13488 * inferiors.c: Move code to ...
13489 * dll.c: .... here. New.
13490 * server.h: Declare clear_dlls.
13491 * Makefile.in (SFILES): Add dll.c.
13492 (OBS): Add dll.o
13493 (dll.o): New rule.
13494
13495 2012-02-11 Yao Qi <yao@codesourcery.com>
13496
13497 * server.c: (handle_monitor_command): Add a new parameter
13498 `own_buf'.
13499 (handle_query): Update caller.
13500
13501 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13502
13503 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13504 * configure, config.in: Regenerate.
13505 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13506 is not defined.
13507
13508 2012-02-02 Pedro Alves <palves@redhat.com>
13509
13510 Try SIGKILL first, then PTRACE_KILL.
13511 * linux-low.c (linux_kill_one_lwp): New.
13512 (linux_kill_one_lwp): Rename to ...
13513 (kill_one_lwp_callback): ... this. Use the new
13514 linux_kill_one_lwp.
13515
13516 2012-02-02 Pedro Alves <palves@redhat.com>
13517
13518 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13519 inferior.
13520
13521 2012-01-27 Pedro Alves <palves@redhat.com>
13522
13523 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13524 (elf_64_file_p): Make static.
13525 (linux_pid_exe_is_elf_64_file): New.
13526 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13527 Delete declarations.
13528 (linux_pid_exe_is_elf_64_file): Declare.
13529 * linux-x86-low.c (x86_arch_setup): Use
13530 linux_pid_exe_is_elf_64_file.
13531
13532 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13533
13534 * linux-low.c (linux_wait_for_event_1): Rename to ...
13535 (linux_wait_for_event): ... here and merge it with former
13536 linux_wait_for_event - new variable wait_ptid, use it.
13537 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13538
13539 2012-01-23 Pedro Alves <palves@redhat.com>
13540
13541 * server.c (main): Avoid yet another case of infinite loop while
13542 detaching/killing after a longjmp.
13543
13544 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13545
13546 Code cleanup.
13547 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13548
13549 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13550
13551 * hostio.c (handle_readlink): New function.
13552 (handle_vFile): Call it to handle "vFile:readlink" packets.
13553
13554 2012-01-20 Pedro Alves <palves@redhat.com>
13555 Ulrich Weigand <ulrich.weigand@linaro.org>
13556
13557 * server.c (handle_v_requests): Only support vAttach and vRun to
13558 start multiple processes when in extended protocol mode.
13559
13560 2012-01-17 Pedro Alves <palves@redhat.com>
13561
13562 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13563 memalign plus mprotect to allocate the scratch buffer.
13564
13565 2012-01-13 Pedro Alves <palves@redhat.com>
13566
13567 * server.c (attach_inferior): Clear `cont_thread'.
13568
13569 2012-01-13 Pedro Alves <palves@redhat.com>
13570
13571 * server.c (main): Avoid infinite loop while detaching/killing
13572 after a longjmp.
13573
13574 2012-01-09 Doug Evans <dje@google.com>
13575
13576 * server.c (start_inferior): Set last_ptid in --wrapper case.
13577
13578 2012-01-06 Yao Qi <yao@codesourcery.com>
13579
13580 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13581 defined.
13582 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13583
13584 2012-01-04 Yao Qi <yao@codesourcery.com>
13585
13586 * tracepoint.c (cmd_qtdp): Print debug message
13587 for static tracepoint.
13588
13589 2012-01-04 Yao Qi <yao@codesourcery.com>
13590
13591 * tracepoint.c (trace_vdebug): Differentiate debug message
13592 between gdbserver and IPA.
13593
13594 2012-01-03 Yao Qi <yao@codesourcery.com>
13595
13596 * tracepoint.c (tracepoint_was_hit): Don't collect for
13597 static tracepoint.
13598
13599 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13600
13601 * terminal.h: Reformat copyright header.
13602
13603 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13604
13605 * server.c (gdbserver_version): Update copyright year.
13606 * gdbreplay.c (gdbreplay_version): Likewise.
13607
13608 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13609
13610 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13611
13612 Revert:
13613 2011-12-18 Hui Zhu <teawater@gmail.com>
13614 * linux-low.c (linux_create_inferior): Save return value to ret.
13615
13616 2011-12-18 Hui Zhu <teawater@gmail.com>
13617
13618 * linux-low.c (linux_create_inferior): Save return value to ret.
13619
13620 2011-12-16 Doug Evans <dje@google.com>
13621
13622 * linux-low.c (linux_create_inferior): If stdio connection,
13623 redirect stdin from /dev/null, stdout to stderr.
13624 * remote-utils.c (remote_is_stdio): New static global.
13625 (remote_connection_is_stdio): New function.
13626 (remote_prepare): Handle stdio connection.
13627 (remote_open): Ditto.
13628 (remote_close): Don't close stdin for stdio connections.
13629 (read_prim,write_prim): New functions. Replace all calls to
13630 read/write to these.
13631 * server.c (main): Watch for "-" argument. Move call to
13632 remote_prepare before start_inferior.
13633 * server.h (STDIO_CONNECTION_NAME): New macro.
13634 (remote_connection_is_stdio): Declare.
13635
13636 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13637 in debugging output.
13638
13639 2011-12-15 Yao Qi <yao@codesourcery.com>
13640
13641 * tracepoint.c: Include sys/syscall.h.
13642 (gdb_ust_thread): Remove preprocessor conditional.
13643
13644 2011-12-14 Pedro Alves <pedro@codesourcery.com>
13645
13646 * linux-low.c (linux_detach_one_lwp): Call
13647 the_low_target.prepare_to_resume before detaching.
13648
13649 2011-12-14 Yao Qi <yao@codesourcery.com>
13650
13651 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13652 of write.
13653
13654 2011-12-14 Yao Qi <yao@codesourcery.com>
13655
13656 * i386-low.c (i386_low_stopped_data_address): Initialize local
13657 variable `control'.
13658
13659 2011-12-13 Pedro Alves <pedro@codesourcery.com>
13660
13661 PR remote/13492
13662
13663 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13664 DR_CONTROL unless necessary. Extend comments.
13665 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13666 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13667
13668 2011-12-13 Yao Qi <yao@codesourcery.com>
13669
13670 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13671 macros.
13672 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13673
13674 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13675
13676 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13677 Print new debug message for such case.
13678
13679 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13680
13681 Fix overlapping memcpy.
13682 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13683 the read_inferior_memory transfer.
13684 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13685 write_inferior_memory transfer.
13686 (set_fast_tracepoint_jump): New variable buf. Use it for the
13687 read_inferior_memory and write_inferior_memory transfers.
13688 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13689 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13690 Use it for the write_inferior_memory transfer.
13691 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13692 buffers.
13693
13694 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13695
13696 * linux-low.c (fetch_register, store_register): Make code
13697 consistent, fix formatting.
13698
13699 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13700
13701 * linux-low.c (usr_store_inferior_registers): Factor out code
13702 to handle individual registers into...
13703 (store_register): ... this new function.
13704
13705 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13706
13707 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13708 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13709 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13710 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13711 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13712 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13713 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13714 (srv_xmlfiles): Add new XML files.
13715
13716 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13717 and <sys/uio.h>.
13718 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13719 (init_registers_s390_linux32v1): Add prototype.
13720 (init_registers_s390_linux32v2): Likewise.
13721 (init_registers_s390_linux64v1): Likewise.
13722 (init_registers_s390_linux64v2): Likewise.
13723 (init_registers_s390x_linux64v1): Likewise.
13724 (init_registers_s390x_linux64v2): Likewise.
13725 (s390_num_regs): Increment to 52.
13726 (s390_regmap): Add orig_r2 register.
13727 (s390_num_regs_3264): Increment to 68.
13728 (s390_regmap_3264): Add orig_r2 register.
13729 (s390_collect_ptrace_register): Handle orig_r2 register.
13730 (s390_supply_ptrace_register): Likewise.
13731 (s390_fill_last_break): New function.
13732 (s390_store_last_break): Likewise.
13733 (s390_fill_system_call): New function.
13734 (s390_store_system_call): Likewise.
13735 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13736 register sets.
13737 (s390_check_regset): New function.
13738 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13739 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13740 Update target_regsets for available register sets.
13741
13742 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13743 Jan Kratochvil <jan.kratochvil@redhat.com>
13744
13745 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13746 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13747 New.
13748 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13749 * linux-low.h (struct process_info_private): New member r_debug.
13750 * server.c (handle_qxfer_libraries): Call
13751 the_target->qxfer_libraries_svr4.
13752 (handle_qxfer_libraries_svr4): New function.
13753 (qxfer_packets): New entry "libraries-svr4".
13754 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13755 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13756 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13757 PACKET_qXfer_libraries_svr4.
13758
13759 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13760
13761 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13762 PSW address/mask between 8-byte and 16-byte formats.
13763 (s390_supply_ptrace_register): Likewise.
13764 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13765 basic addressing mode bit.
13766
13767 2011-11-24 Stan Shebs <stan@codesourcery.com>
13768
13769 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13770
13771 2011-11-17 Stan Shebs <stan@codesourcery.com>
13772
13773 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13774 (tracing_start_time): New global.
13775 (tracing_stop_time): New global.
13776 (tracing_user_name): New global.
13777 (tracing_notes): New global.
13778 (tracing_stop_note): New global.
13779 (cmd_qtstart): Set traceframe_usage, start_time.
13780 (stop_tracing): Set stop_time.
13781 (cmd_qtstatus): Report additional status.
13782 (cmd_qtp): New function.
13783 (handle_tracepoint_query): Call it.
13784 (cmd_qtnotes): New function.
13785 (handle_tracepoint_general_set): Call it.
13786 (get_timestamp): Rename from tsv_get_timestamp.
13787
13788 2011-11-14 Stan Shebs <stan@codesourcery.com>
13789 Kwok Cheung Yeung <kcy@codesourcery.com>
13790
13791 * linux-x86-low.c (small_jump_insn): New.
13792 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13793 trampoline and error message, build a trampoline and issue a small
13794 jump instruction to it.
13795 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13796 trampoline and error message.
13797 (x86_get_min_fast_tracepoint_insn_len): New.
13798 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13799 * linux-low.h (struct linux_target_ops): Add arguments to
13800 install_fast_tracepoint_jump_pad operation, add new operation.
13801 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13802 arguments.
13803 (linux_get_min_fast_tracepoint_insn_len): New function.
13804 (linux_target_op): Add new operation.
13805 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13806 (gdb_trampoline_buffer_end): Ditto.
13807 (gdb_trampoline_buffer_error): Ditto.
13808 (struct ipa_sym_addresses): Add fields for new IPA variables.
13809 (symbol_list): Add entries for new IPA variables.
13810 (struct tracepoint): Add fields to hold the address range of the
13811 trampoline used by the tracepoint.
13812 (trampoline_buffer_head): New static variable.
13813 (trampoline_buffer_tail): Ditto.
13814 (claim_trampoline_space): New function.
13815 (have_fast_tracepoint_trampoline_buffer): New function.
13816 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13817 structure.
13818 (install_fast_tracepoint): Ditto, also add error buffer argument.
13819 (cmd_qtminftpilen): New function.
13820 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13821 (fast_tracepoint_from_trampoline_address): New function.
13822 (fast_tracepoint_collecting): Handle trampoline as part of jump
13823 pad space.
13824 (set_trampoline_buffer_space): New function.
13825 (initialize_tracepoint): Initialize new IPA variables.
13826 * target.h (struct target_ops): Add arguments to
13827 install_fast_tracepoint_jump_pad operation, add new
13828 get_min_fast_tracepoint_insn_len operation.
13829 (target_get_min_fast_tracepoint_insn_len): New.
13830 (install_fast_tracepoint_jump_pad): Add arguments.
13831 * server.h (IPA_BUFSIZ): Define.
13832 * linux-i386-ipa.c: Include extra header files.
13833 (initialize_fast_tracepoint_trampoline_buffer): New function.
13834 (initialize_low_tracepoint): Call it.
13835 * server.h (set_trampoline_buffer_space): Declare.
13836 (claim_trampoline_space): Ditto.
13837 (have_fast_tracepoint_trampoline_buffer): Ditto.
13838
13839 2011-11-14 Yao Qi <yao@codesourcery.com>
13840
13841 * server.c (handle_query): Handle InstallInTrace for qSupported.
13842 * tracepoint.c (add_tracepoint): Sort list.
13843 (install_tracepoint, download_tracepoint): New.
13844 (cmd_qtdp): Call them to install and download tracepoints.
13845 (sort_tracepoints): Removed.
13846 (cmd_qtstart): Update.
13847
13848 2011-11-14 Yao Qi <yao@codesourcery.com>
13849
13850 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13851 * mem-break.h: Declare.
13852 * tracepoint.c (cmd_qtstart): Move some code to ...
13853 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13854 New.
13855 (download_tracepoints): Move some code to ...
13856 (download_tracepoint_1): ... here. New.
13857
13858 2011-11-08 Yao Qi <yao@codesourcery.com>
13859
13860 * remote-utils.c (relocate_instruction): A comment fix.
13861
13862 2011-11-07 Joel Brobecker <brobecker@adacore.com>
13863
13864 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13865 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13866 dr_status_mirror and dr_control_mirror from debug_reg_state.
13867 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13868 (i386_initial_stuff): Remove use of deleted globals.
13869 (i386_get_thread_context, i386_set_thread_context,
13870 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13871 from debug_reg_state.
13872
13873 2011-11-05 Yao Qi <yao@codesourcery.com>
13874
13875 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13876 address as TPOINT's.
13877
13878 2011-11-02 Stan Shebs <stan@codesourcery.com>
13879
13880 * tracepoint.c (agent_mem_read_string): New function.
13881 (eval_agent_expr): Call it for tracenz.
13882 * server.c (handle_query): Report support for tracenz.
13883
13884 2011-11-02 Yao Qi <yao@codesourcery.com>
13885
13886 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13887
13888 2011-11-02 Yao Qi <yao@codesourcery.com>
13889
13890 * target.h: Fix a typo in comment.
13891
13892 2011-10-31 Pedro Alves <pedro@codesourcery.com>
13893
13894 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13895 clobber the breakpoints' shadows with fast tracepoint jumps.
13896 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13897 * target.c (write_inferior_memory): Also pass MYADDR down to
13898 check_mem_write.
13899
13900 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13901
13902 * configure.ac: Check support for personality routine.
13903 * configure: Regenerate.
13904 * config.in: Likewise.
13905 * linux-low.c: Include <sys/personality.h>.
13906 Define ADDR_NO_RANDOMIZE if necessary.
13907 (linux_create_inferior): Disable address space randomization when
13908 forking inferior, if requested.
13909 (linux_supports_disable_randomization): New function.
13910 (linux_target_ops): Install it.
13911 * server.h (disable_randomization): Declare.
13912 * server.c (disable_randomization): New global variable.
13913 (handle_general_set): Handle QDisableRandomization.
13914 (handle_query): Likewise for qSupported.
13915 (main): Support --disable-randomization and --no-disable-randomization
13916 command line arguments.
13917 * target.h (struct target_ops): Add supports_disable_randomization.
13918 (target_supports_disable_randomization): New macro.
13919
13920 2011-09-29 Mike Frysinger <vapier@gentoo.org>
13921
13922 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13923 ifdef check.
13924 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13925 [!PT_GETDSBT] (target_loadmap): New definition.
13926 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13927 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13928 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13929 and PT_GETDSBT to LINUX_LOADMAP.
13930 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13931 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13932
13933 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13934
13935 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13936 (arm_linux_hwbp_cap): New static variable.
13937 (arm_linux_get_hwbp_cap): Replace by ...
13938 (arm_linux_init_hwbp_cap): ... this new function.
13939 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13940 (arm_linux_get_hw_watchpoint_count): Likewise.
13941 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13942 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13943 (arm_prepare_to_resume): Use perror_with_name instead of error.
13944
13945 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13946
13947 * linux-arm-low.c: Include <signal.h>.
13948 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13949 (struct arm_linux_hwbp_cap): New data type.
13950 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13951 (struct arm_linux_hw_breakpoint): New data type.
13952 (MAX_BPTS, MAX_WPTS): Define.
13953 (struct arch_process_info, struct arch_lwp_info): New data types.
13954 (arm_linux_get_hwbp_cap): New function.
13955 (arm_linux_get_hw_breakpoint_count): Likewise.
13956 (arm_linux_get_hw_watchpoint_count): Likewise.
13957 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13958 (arm_hwbp_control_initialize): Likewise.
13959 (arm_hwbp_control_is_enabled): Likewise.
13960 (arm_hwbp_control_is_initialized): Likewise.
13961 (arm_hwbp_control_disable): Likewise.
13962 (arm_linux_hw_breakpoint_equal): Likewise.
13963 (arm_linux_hw_point_initialize): Likewise.
13964 (struct update_registers_data): New data structure.
13965 (update_registers_callback: New function.
13966 (arm_insert_point): Likewise.
13967 (arm_remove_point): Likewise.
13968 (arm_stopped_by_watchpoint): Likewise.
13969 (arm_stopped_data_address): Likewise.
13970 (arm_new_process): Likewise.
13971 (arm_new_thread): Likewise.
13972 (arm_prepare_to_resume): Likewise.
13973 (the_low_target): Register arm_insert_point, arm_remove_point,
13974 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13975 arm_new_thread, and arm_prepare_to_resume.
13976
13977 2011-09-15 Stan Shebs <stan@codesourcery.com>
13978
13979 * server.h (struct emit_ops): Add compare-goto fields.
13980 * tracepoint.c (gdb_agent_op_sizes): New table.
13981 (emit_eq_goto): New function.
13982 (emit_ne_goto): New function.
13983 (emit_lt_goto): New function.
13984 (emit_le_goto): New function.
13985 (emit_gt_goto): New function.
13986 (emit_ge_goto): New function.
13987 (is_goto_target): New function.
13988 (compile_bytecodes): Recognize special cases of compare-goto
13989 combinations and call specialized emitters for them.
13990 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13991 (amd64_emit_ne_goto): New function.
13992 (amd64_emit_lt_goto): New function.
13993 (amd64_emit_le_goto): New function.
13994 (amd64_emit_gt_goto): New function.
13995 (amd64_emit_ge_goto): New function.
13996 (amd64_emit_ops): Add the new functions.
13997 (i386_emit_eq_goto): New function.
13998 (i386_emit_ne_goto): New function.
13999 (i386_emit_lt_goto): New function.
14000 (i386_emit_le_goto): New function.
14001 (i386_emit_gt_goto): New function.
14002 (i386_emit_ge_goto): New function.
14003 (i386_emit_ops): Add the new functions.
14004
14005 2011-09-08 Stan Shebs <stan@codesourcery.com>
14006
14007 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
14008 (i386_emit_epilogue): Restore %ebx.
14009
14010 2011-08-31 Jie Zhang <jzhang918@gmail.com>
14011
14012 * server.c (step_thread): Remove definition.
14013 (process_serial_event): Don't handle Hs.
14014 * server.h (step_thread): Remove declaration.
14015 * target.c (set_desired_inferior): Remove use of step_thread.
14016
14017 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14018
14019 * linux-low.c: Include linux-procfs.h.
14020 (linux_attach_lwp_1): Update comments.
14021 (linux_attach): Scan for existing threads when attaching to a
14022 process that is the tgid.
14023 * Makefile.in: Update dependencies.
14024
14025 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14026
14027 * configure.srv: Add linux-procfs.o dependencies.
14028
14029 2011-08-14 Yao Qi <yao@codesourcery.com>
14030
14031 * target.h (struct target_ops): Fix indent.
14032 * win32-low.c (win32_target_ops): Fix comment.
14033
14034 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
14035 Yao Qi <yao@codesourcery.com>
14036
14037 * Makefile.in (clean): Remove tic6x-*.c files.
14038 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
14039 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
14040 (tic6x-c64xp-linux.c): Likewise.
14041 * configure.srv: Add support for tic6x-*-uclinux.
14042 * linux-tic6x-low.c: New.
14043 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
14044
14045 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
14046 Yao Qi <yao@codesourcery.com>
14047
14048 * target.h (struct target_ops): Add read_loadmap.
14049 * linux-low.c (struct target_loadseg): New type.
14050 (struct target_loadmap): New type.
14051 (linux_read_loadmap): New function.
14052 (linux_target_ops): Add linux_read_loadmap.
14053 * server.c (handle_query): Support qXfer:fdpic:read packet.
14054 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
14055 to NULL.
14056
14057 2011-08-05 Eli Zaretskii <eliz@gnu.org>
14058
14059 * win32-low.c: Include <stdint.h>.
14060
14061 2011-07-22 Pedro Alves <pedro@codesourcery.com>
14062
14063 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
14064 to the inferior here.
14065 (i386_remove_aligned_watchpoint): Ditto.
14066 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
14067 fit part of the watchpoint in the debug registers.
14068 (i386_update_inferior_debug_regs): New.
14069 (i386_low_insert_watchpoint): Work on a local mirror of the debug
14070 registers, and only update the inferior on success.
14071 (i386_low_remove_watchpoint): Ditto.
14072
14073 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
14074
14075 * linux-low.c (compare_ints, unique, list_threads, show_process,
14076 linux_core_of_thread): Delete.
14077 (linux_target_ops): Change linux_core_of_thread to
14078 linux_common_core_of_thread.
14079 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
14080 * utils.c (malloc_failure): Change type of argument.
14081 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
14082 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
14083 common/linux-osdata.c, common/ptid.c and common/buffer.c.
14084 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
14085 (IPA_OBJS): Add common-utils-ipa.o.
14086 (ptid_h, linux_osdata_h): New macros.
14087 (server_h): Add common/common-utils.h, common/xml-utils.h,
14088 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
14089 common/ptid.h.
14090 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
14091 ptid.o, buffer.o): New rules.
14092 (linux-low.o): Add common/linux-osdata.h as a dependency.
14093 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
14094 * configure.ac: Add AC_HEADER_DIRENT check.
14095 * config.in: Regenerate.
14096 * configure: Regenerate.
14097 * remote-utils.c (xml_escape_text): Delete.
14098 (buffer_grow, buffer_free, buffer_init, buffer_finish,
14099 buffer_xml_printf): Move to common/buffer.c.
14100 * server.c (main): Remove call to initialize_inferiors.
14101 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14102 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14103 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14104 internal_error, gdb_assert, gdb_assert_fail): Delete.
14105 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14106 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14107 common/buffer.h.
14108 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14109 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14110 initialize_inferiors): Delete.
14111
14112 2011-07-20 Pedro Alves <pedro@codesourcery.com>
14113
14114 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14115 symbol error.
14116
14117 2011-05-31 Pedro Alves <pedro@codesourcery.com>
14118
14119 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14120 assertion.
14121 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14122
14123 2011-05-26 Yao Qi <yao@codesourcery.com>
14124
14125 * Makefile.in (thread-db.o): Track dependence to
14126 common/gdb_thread_db.h.
14127 * thread-db.c: include gdb_thread_db.h from right place.
14128
14129 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14130
14131 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14132 __FILE__ and __LINE__ to internal_error.
14133
14134 2011-05-13 Doug Evans <dje@google.com>
14135
14136 * thread-db.c (try_thread_db_load_from_sdir): New function.
14137 (try_thread_db_load_from_dir): New function.
14138 (thread_db_load_search): Handle $sdir, ignore $pdir.
14139 Remove trying of system directories if search of
14140 libthread-db-search-path fails, that is now done via $sdir.
14141
14142 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14143
14144 * server.c (handle_query): Add EnableDisableTracepoints to the list
14145 of supported features.
14146 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14147 tracepoints.
14148 (cmd_qtenable_disable): New.
14149 (cmd_qtstart): Install tracepoints even if disabled.
14150 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14151 receiving a QTEnable or QTDisable packet.
14152 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14153 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14154 tracepoints.
14155 (gdb_probe): Skip data collection if static tracepoint is disabled.
14156
14157 2011-05-10 Doug Evans <dje@google.com>
14158
14159 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14160
14161 2011-05-04 Doug Evans <dje@google.com>
14162
14163 * linux-low.c (linux_join): Skip process lookup.
14164 * spu-low.c (spu_join): Ditto.
14165 * server.c (join_inferiors_callback): Delete.
14166 (process_serial_event): For 'D' packet (detach) call join_inferior
14167 directly.
14168
14169 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14170
14171 * README: Don't mention xscale*-*-linux*.
14172 * configure.srv (xscale*-*-linux*): Don't handle target.
14173
14174 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14175
14176 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14177 casting pointers.
14178 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14179 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14180 (i386_emit_void_call_2): Likewise.
14181
14182 2011-04-26 Yao Qi <yao@codesourcery.com>
14183
14184 * linux-low.c: Move common macros to linux-ptrace.h.
14185 Include linux-ptrace.h.
14186 * Makefile.in (linux_ptrace_h): New.
14187 (linux-low.o): Depends on linux-ptrace.h.
14188
14189 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14190
14191 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14192 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14193 (remote_prepare): New function with most of the TCP code from ...
14194 (remote_open): ... here. Detect PORT here unconditionally. Move also
14195 setting transport_is_reliable.
14196 * server.c (run_once): New variable.
14197 (gdbserver_usage): Document it.
14198 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14199 the first run if RUN_ONCE.
14200 * server.h (run_once, remote_prepare): New declarations.
14201
14202 2011-04-19 Tom Tromey <tromey@redhat.com>
14203
14204 * win32-low.c (handle_load_dll): Remove duplicate "the".
14205
14206 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14207
14208 Remove support for old Cygwin 1.5 versions.
14209 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14210 function to avoid warning.
14211 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14212 warning.
14213
14214 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14215
14216 * gdbserver/server.h (Macro _): Define it if not available.
14217
14218 2011-03-14 Michael Snyder <msnyder@vmware.com>
14219
14220 * hostio.c (handle_close): Remove unnecessary null test.
14221
14222 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14223
14224 * Makefile.in (maintainer-clean realclean distclean): Remove
14225 "make ... subdir_do" command.
14226
14227 2011-03-10 Michael Snyder <msnyder@vmware.com>
14228
14229 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14230
14231 * server.c (handle_v_run): Free alloced buffer on early return.
14232
14233 2011-03-09 Yao Qi <yao@codesourcery.com>
14234
14235 Revert:
14236 2011-03-04 Yao Qi <yao@codesourcery.com>
14237
14238 * Makefile.in: Remove GNU make feature --directory.
14239
14240 2011-03-05 Yao Qi <yao@codesourcery.com>
14241
14242 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14243 (subdir_do): New make target. Copied from gdb/Makefile.
14244 (maintainer-clean, realclean, distclean, clean): Call corresponding
14245 make targets in common/Makefile.
14246
14247 2011-02-11 Yao Qi <yao@codesourcery.com>
14248
14249 * configure.ac: Call AC_PROG_RANLIB.
14250 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14251 * configure: Regenerate.
14252
14253 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14254
14255 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14256
14257 2011-03-06 Yao Qi <yao@codesourcery.com>
14258
14259 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14260
14261 2011-03-05 Yao Qi <yao@codesourcery.com>
14262
14263 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14264 (subdir_do): New make target. Copied from gdb/Makefile.
14265 (maintainer-clean, realclean, distclean, clean): Call corresponding
14266 make targets in common/Makefile.
14267
14268 2011-03-04 Yao Qi <yao@codesourcery.com>
14269
14270 * Makefile.in: Remove GNU make feature --directory.
14271
14272 2011-03-04 Michael Snyder <msnyder@vmware.com>
14273
14274 * server.c (queue_stop_reply): Call xmalloc not malloc.
14275
14276 2011-03-02 Michael Snyder <msnyder@vmware.com>
14277
14278 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14279
14280 2011-02-28 Michael Snyder <msnyder@vmware.com>
14281
14282 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14283 (cmd_qtframe): Ditto.
14284 (cmd_qtbuffer): Ditto.
14285 (cmd_bigqtbuffer): Ditto.
14286
14287 * utils.c (decimal2str): Initialize 'width' to nine, then
14288 don't mess with it.
14289
14290 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14291
14292 * hostio.c (require_data): Free *data, not data.
14293
14294 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14295
14296 * hostio.c (require_data): Use free, not xfree.
14297
14298 2011-02-27 Michael Snyder <msnyder@vmware.com>
14299
14300 * server.c (handle_query): Discard unused value.
14301
14302 * hostio.c (require_data): Free malloc memory before returning
14303 error.
14304
14305 2011-02-26 Michael Snyder <msnyder@vmware.com>
14306
14307 * linux-low.c (list_threads): Call closedir for dirent.
14308
14309 2011-02-27 Michael Snyder <msnyder@vmware.com>
14310
14311 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14312 a case statement falls through.
14313
14314 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14315
14316 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14317 in comparison.
14318
14319 2011-02-26 Michael Snyder <msnyder@vmware.com>
14320
14321 * utils.c (decimal2str): Eliminate dead code and dead param.
14322 (pulongest): Drop dead param from call to decimal2str.
14323 (plongest): Ditto.
14324
14325 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14326
14327 Revert the following patch (not approved yet):
14328 2011-02-21 Hui Zhu <teawater@gmail.com>
14329 * tracepoint.c (tp_printf): New function.
14330 (eval_agent_expr): Handle gdb_agent_op_printf.
14331
14332 2011-02-21 Hui Zhu <teawater@gmail.com>
14333
14334 * tracepoint.c (tp_printf): New function.
14335 (eval_agent_expr): Handle gdb_agent_op_printf.
14336
14337 2011-02-18 Tom Tromey <tromey@redhat.com>
14338
14339 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14340 (tracepoint.o): Likewise.
14341 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14342 (gdb_agent_op_names): Likewise.
14343
14344 2011-02-18 Tom Tromey <tromey@redhat.com>
14345
14346 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14347 gdb_agent_op_rot>: New constants.
14348 (gdb_agent_op_names): Add pick and roll.
14349 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14350 cases.
14351
14352 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14353
14354 * aclocal.m4: Regenerated with aclocal-1.11.1.
14355
14356 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14357
14358 * server.c (handle_qxfer_traceframe_info): New.
14359 (qxfer_packets): Register "traceframe-info".
14360 (handle_query): Report support for qXfer:traceframe-info:read+.
14361 * tracepoint.c (match_blocktype): New.
14362 (traceframe_find_block_type): Rename to ...
14363 (traceframe_walk_blocks): ... this. Add callback filter argument,
14364 and use it.
14365 (traceframe_find_block_type): New, reimplemented on top of
14366 traceframe_walk_blocks.
14367 (build_traceframe_info_xml): New.
14368 (traceframe_read_info): New.
14369 * server.h (traceframe_read_info): Declare.
14370
14371 2011-02-11 Yao Qi <yao@codesourcery.com>
14372
14373 * configure.ac: Call AC_PROG_RANLIB.
14374 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14375 * configure: Regenerate.
14376
14377 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14378
14379 * server.c (gdb_read_memory): Change return semantics to allow
14380 partial transfers.
14381 (handle_search_memory_1): Adjust.
14382 (process_serial_event) <'m' packet>: Handle partial transfers.
14383 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14384
14385 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14386
14387 * regcache.c (init_register_cache): Initialize
14388 regcache->register_status.
14389 (free_register_cache): Release regcache->register_status.
14390 (regcache_cpy): Copy register_status.
14391 (registers_to_string): Print 'x's for unavailable registers.
14392 (supply_register): Mark the register's status valid or
14393 unavailable, depending on whether a buffer was passed in or not.
14394 (supply_register_zeroed): New.
14395 (supply_regblock): Mark the registers' status valid or
14396 unavailable, depending on whether a buffer was passed in or not.
14397 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14398 (struct regcache): New `register_status' field.
14399 (supply_register_zeroed): Declare.
14400 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14401 supply_register_zeroed, rather than passing a NULL buffer to
14402 supply_register.
14403 * tracepoint.c (fetch_traceframe_registers): Update comment.
14404
14405 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14406
14407 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14408 buffer explicit.
14409
14410 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14411
14412 * server.h (decode_xfer_write): Change prototype.
14413 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14414 and don't extract the annex here.
14415 * server.c (decode_xfer_read): Remove `annex' parameter,
14416 and don't extract the annex here.
14417 (decode_xfer): New.
14418 (struct qxfer): New.
14419 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14420 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14421 (handle_qxfer_statictrace): New functions, abstracted out from
14422 handle_query, and made to use the struct qxfer interface.
14423 (handle_threads_qxfer_proper): Rename to ...
14424 (handle_qxfer_threads_proper): ... this.
14425 (handle_threads_qxfer): Rename to ...
14426 (handle_qxfer_threads): ... this. Adjust.
14427 (qxfer_packets): New array.
14428 (handle_qxfer): New function.
14429 (handle_query): Use handle_qxfer.
14430
14431 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14432
14433 * gdbreplay.c: Shorten lines of >= 80 columns.
14434 * linux-low.c: Ditto.
14435 * linux-ppc-low.c: Ditto.
14436 * linux-s390-low.c: Ditto.
14437 * linux-sparc-low.c: Ditto.
14438 * linux-x86-low.c: Ditto.
14439 * linux-xtensa-low.c: Ditto.
14440 * mem-break.c: Ditto.
14441 * nto-low.c: Ditto.
14442 * regcache.h: Ditto.
14443 * remote-utils.c: Ditto.
14444 * server.c: Ditto.
14445 * server.h: Ditto.
14446 * thread-db.c: Ditto.
14447 * tracepoint.c: Ditto.
14448 * utils.c: Ditto.
14449 * win32-low.h: Ditto.
14450
14451 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14452
14453 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14454 update.
14455
14456 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14457
14458 * server.c (gdbserver_version): Update copyright year in version
14459 output.
14460 * gdbreplay.c (gdbreplay_version): Ditto.
14461
14462 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14463
14464 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14465 * linux-bfin-low.c: New file.
14466 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14467 PT_DATA_ADDR for BFIN targets.
14468 * Makefile.in (SFILES): Add linux-bfin-low.c.
14469 (clean): Remove reg-bfin.c.
14470 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14471 * README: Mention supported Blackfin targets.
14472
14473 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14474
14475 * .gitignore: New file.
14476
14477 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14478
14479 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14480
14481 2010-10-22 Jie Zhang <jie@codesourcery.com>
14482
14483 * Makefile.in: Add FLAGS_TO_PASS variable.
14484 (install): Remove dependency of install-only and recursively
14485 invoke make for install-only.
14486
14487 2010-10-04 Doug Evans <dje@google.com>
14488
14489 * Makefile.in (uninstall): Use $(DESTDIR).
14490
14491 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14492
14493 PR gdb/11842
14494
14495 * linux-x86-low.c (compat_siginfo_from_siginfo)
14496 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14497 si_code is < 0. Check for si_code == SI_TIMER before checking for
14498 si_code < 0.
14499
14500 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14501
14502 * lynx-i386-low.c: New file.
14503 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14504
14505 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14506
14507 * lynx-low.c (ptrace_request_to_str): Remove handling for
14508 request values that have been removed in LynxOS 5.x.
14509
14510 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14511
14512 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14513 <ptrace.h>
14514
14515 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14516
14517 * configure.ac: Add --enable-inprocess-agent option.
14518 * configure: Rebuilt.
14519
14520 2010-09-06 Yao Qi <yao@codesourcery.com>
14521
14522 * linux-low.c (linux_kill): Remove unused variable.
14523 (linux_stabilize_threads): Likewise.
14524 * server.c (start_inferior): Likewise.
14525 (queue_stop_reply_callback): Likewise.
14526 * tracepoint.c (do_action_at_tracepoint): Likewise.
14527
14528 2010-09-06 Yao Qi <yao@codesourcery.com>
14529
14530 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14531 on return.
14532
14533 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14534
14535 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14536
14537 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14538
14539 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14540 "$(IPA_DEPFILES)".
14541
14542 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14543
14544 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14545 gdbserver/lynx-ppc-low.c: New files.
14546 * Makefile.in (lynx_low_h): New variable.
14547 (lynx-low.o, lynx-ppc-low.o): New rules.
14548 * configure.ac: On LynxOS, link with -lnetinet.
14549 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14550 * configure: regenerate.
14551
14552 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14553
14554 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14555 * configure.ac: Add check for vasprintf and vsnprintf.
14556 * configure, config.in: Regenerate.
14557 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14558
14559 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14560
14561 * gdbreplay.c: Move include of alloca.h up, next to include of
14562 malloc.h.
14563 * server.h: Add include of malloc.h.
14564 * mem-break.c: Remove include of malloc.h.
14565 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14566
14567 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14568
14569 * Makefile.in (memmem.o): Build with -Wno-error.
14570
14571 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14572
14573 * utils.c (xsnprintf): Make non-static.
14574 * server.h: Add xsnprintf declaration.
14575 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14576 replace calls to snprintf by calls to xsnprintf throughout.
14577
14578 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14579
14580 * configure.ac: Add configure check for alloca.
14581 * configure, config.in: Regenerate.
14582 * server.h: Include alloca.h if it exists.
14583 * gdbreplay.c: Include alloca.h if it exists.
14584
14585 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14586
14587 * linux-low.c (__SIGRTMIN): Define if not already defined.
14588 (linux_create_inferior): Check for __ANDROID__ rather than
14589 __SIGRTMIN.
14590 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14591 are already deferred.
14592 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14593 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14594 stopped and already has a pending signal to report.
14595 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14596 a pending signal to report or is moving out of a jump pad.
14597 (linux_init_signals): Check for __ANDROID__ rather than
14598 __SIGRTMIN.
14599
14600 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14601
14602 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14603 debug_threads check. Avoid a linear search when not doing debug
14604 output.
14605
14606 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14607
14608 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14609 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14610 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14611 (process_event): Change local fd's type to gdb_fildes_t.
14612 (create_file_handler): Adjust prototype.
14613 (delete_file_handler): Adjust prototype.
14614 (handle_file_event): Adjust prototype. Use pfildes.
14615 (create_file_event): Adjsut prototype.
14616 * remote-utils.c (remote_desc, listen_desc): Change type to
14617 gdb_fildes_t.
14618 * server.h: New gdb_fildes_t typedef.
14619 [USE_WIN32API]: Include winsock2.h.
14620 (delete_file_handler, add_file_handler): Adjust prototypes.
14621 (pfildes): Declare.
14622 * utils.c (pfildes): New.
14623
14624 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14625
14626 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14627 * configure: Regenerate.
14628
14629 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14630
14631 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14632 (linux_done_accessing_memory): ... this.
14633 (linux_target_ops): Adjust.
14634 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14635 * nto-low.c (nto_target_ops): Adjust comment.
14636 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14637 * spu-low.c (spu_target_ops): Adjust comment.
14638 * target.h (target_ops): Rename unprepare_to_access_memory field
14639 to done_accessing_memory.
14640 (unprepare_to_access_memory): Rename to ...
14641 (done_accessing_memory): ... this.
14642
14643 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14644
14645 * linux-low.c (linux_prepare_to_access_memory): New.
14646 (linux_unprepare_to_access_memory): New.
14647 (linux_target_ops): Install them.
14648 * server.c (read_memory): Rename to ...
14649 (gdb_read_memory): ... this. Use
14650 prepare_to_access_memory/prepare_to_access_memory.
14651 (write_memory): Rename to ...
14652 (gdb_write_memory): ... this. Use
14653 prepare_to_access_memory/prepare_to_access_memory.
14654 (handle_search_memory_1): Adjust.
14655 (process_serial_event): Adjust.
14656 * target.h (struct target_ops): New fields
14657 prepare_to_access_memory and unprepare_to_access_memory.
14658 (prepare_to_access_memory, unprepare_to_access_memory): New.
14659 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14660 prepare_to_access_memory/prepare_to_access_memory.
14661 * nto-low.c (nto_target_ops): Adjust.
14662 * spu-low.c (spu_target_ops): Adjust.
14663 * win32-low.c (win32_target_ops): Adjust.
14664
14665 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14666
14667 * Makefile.in (WARN_CFLAGS): Get it from configure.
14668 (WERROR_CFLAGS): New.
14669 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14670 * configure.ac: Introduce --enable-werror, which adds -Werror to
14671 the compiler command line. Enabled by default. Disable with
14672 --disable-werror. Add -Wdeclaration-after-statement
14673 Wpointer-arith and -Wformat-nonliteral to warning flags.
14674 * configure: Regenerate.
14675
14676 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14677
14678 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14679
14680 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14681
14682 * gdbreplay.c (remote_error): New.
14683 (gdbchar): New.
14684 (expect): Use gdbchar. Check for error reading from GDB.
14685 Clarify sync error output.
14686 (play): Check for errors writing to GDB.
14687 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14688 * remote-utils.c (getpkt): Check for errors writing to the remote
14689 descriptor.
14690
14691 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14692
14693 * linux-low.c (linux_wait_1): Move non-debugging code out of
14694 `debug_threads' control.
14695
14696 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14697
14698 * linux-low.c (linux_wait_1): Don't set last_status here.
14699 * server.c (push_event, queue_stop_reply_callback): Assert we're
14700 not pushing a TARGET_WAITKIND_IGNORE event.
14701 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14702 (myresume, handle_target_event): Set the thread's last_resume_kind
14703 and last_status from the target returned status.
14704
14705 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14706
14707 PR threads/10729
14708
14709 * linux-x86-low.c (update_debug_registers_callback): New.
14710 (i386_dr_low_set_addr): Use it.
14711 (i386_dr_low_get_addr): New.
14712 (i386_dr_low_set_control): Use update_debug_registers_callback.
14713 (i386_dr_low_get_control): New.
14714 (i386_dr_low_get_status): Adjust.
14715 * linux-low.c (linux_stop_lwp): New.
14716 * linux-low.h (linux_stop_lwp): Declare.
14717
14718 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14719 argument instead of a i386_debug_reg_state.
14720 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14721 a i386_debug_reg_state.
14722 (i386_insert_aligned_watchpoint): Adjust.
14723 (i386_remove_aligned_watchpoint): Adjust.
14724 (i386_low_stopped_data_address): Read the debug registers from the
14725 inferior instead of from the mirrors.
14726 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14727 (i386_dr_low_get_addr): Declare.
14728 (i386_dr_low_get_control): Declare.
14729 (i386_dr_low_get_status): Change prototype.
14730
14731 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14732 (i386_dr_low_get_addr): New.
14733 (i386_dr_low_get_control): New.
14734 (i386_dr_low_get_status): Adjust prototype. Return
14735 dr_status_mirror.
14736 (i386_initial_stuff): Clear dr_status_mirror and
14737 dr_control_mirror.
14738 (i386_get_thread_context): Adjust.
14739 (i386_set_thread_context): Adjust.
14740 (i386_thread_added): Adjust.
14741
14742 2010-08-24 Pedro Alves <pedro@codesourcery.com>
14743
14744 * linux-low.h (linux_thread_area): Delete declaration.
14745
14746 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14747
14748 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14749 after its termination.
14750
14751 2010-08-09 Pedro Alves <pedro@codesourcery.com>
14752
14753 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14754 (gdb_wants_all_stopped): Delete.
14755 (linux_wait_1): Don't call them.
14756 * server.c (handle_v_cont): Tag all threads as want-stopped.
14757 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14758 stopped as "client-wants-stopped".
14759
14760 2010-07-31 Pedro Alves <pedro@codesourcery.com>
14761
14762 * Makefile.in (signals_h): New.
14763 (server_h): Depend on it.
14764 (server.o): Don't depend on $(signals_def).
14765 (signals.o): Depend on $(signals_def).
14766
14767 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14768
14769 * Makefile.in (signals_def): New.
14770 (server_h): Append include/gdb/signals.h and signals_def.
14771 (server.o): Append signals_def.
14772
14773 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14774
14775 * server.c (handle_target_event): Use target_signal_to_host for
14776 resume_info.sig initialization.
14777 * target.h (struct thread_resume) <sig>: New comment.
14778
14779 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14780
14781 * server.c (handle_query): strcpy() the returned string from paddress()
14782 instead of sprintf().
14783 * utils.c (paddress): Return phex_nz().
14784
14785 2010-07-07 Joel Brobecker <brobecker@adacore.com>
14786
14787 * server.c (handle_v_cont): Call mourn_inferior if process
14788 just exited.
14789 (myresume): Likewise.
14790
14791 2010-07-01 Pedro Alves <pedro@codesourcery.com>
14792
14793 Static tracepoints, and integration with UST.
14794
14795 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14796 * mem-break.c (uninsert_all_breakpoints)
14797 (reinsert_all_breakpoints): New.
14798 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14799 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14800 (gdb_agent_ust_loaded, helper_thread_id)
14801 (gdb_agent_helper_thread_id): New macros.
14802 (struct ipa_sym_addresses): Add addr_ust_loaded,
14803 addr_helper_thread_id, addr_cmd_buf.
14804 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14805 (in_process_agent_loaded_ust): New.
14806 (write_e_ust_not_loaded): New.
14807 (maybe_write_ipa_ust_not_loaded): New.
14808 (struct collect_static_trace_data_action): New.
14809 (enum tracepoint_type) <static_tracepoint>: New.
14810 (struct tracepoint) <handle>: Mention static tracepoints.
14811 (struct static_tracepoint_ctx): New.
14812 (CMD_BUF_SIZE): New.
14813 (add_tracepoint_action): Handle static tracepoint actions.
14814 (unprobe_marker_at): New.
14815 (clear_installed_tracepoints): Handle static tracepoints.
14816 (cmd_qtdp): Handle static tracepoints.
14817 (probe_marker_at): New.
14818 (cmd_qtstart): Handle static tracepoints.
14819 (response_tracepoint): Handle static tracepoints.
14820 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14821 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14822 (get_context_regcache): Handle static tracepoints.
14823 (do_action_at_tracepoint): Handle static tracepoint actions.
14824 (traceframe_find_block_type): Handle static trace data blocks.
14825 (traceframe_read_sdata): New.
14826 (download_tracepoints): Download static tracepoint actions.
14827 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14828 (GDB_PROBE_NAME): New.
14829 (ust_ops): New.
14830 (GET_UST_SYM): New.
14831 (USTF): New.
14832 (dlsym_ust): New.
14833 (ust_marker_to_static_tracepoint): New.
14834 (gdb_probe): New.
14835 (collect_ust_data_at_tracepoint): New.
14836 (gdb_ust_probe): New.
14837 (UNIX_PATH_MAX, SOCK_DIR): New.
14838 (gdb_ust_connect_sync_socket): New.
14839 (resume_thread, stop_thread): New.
14840 (run_inferior_command): New.
14841 (init_named_socket): New.
14842 (gdb_ust_socket_init): New.
14843 (cstr_to_hexstr): New.
14844 (next_st): New.
14845 (first_marker, next_marker): New.
14846 (response_ust_marker): New.
14847 (cmd_qtfstm, cmd_qtsstm): New.
14848 (unprobe_marker_at, probe_marker_at): New.
14849 (cmd_qtstmat, gdb_ust_thread): New.
14850 (gdb_ust_init): New.
14851 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14852 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14853 (ST_REGENTRY): New.
14854 (x86_64_st_collect_regmap): New.
14855 (X86_64_NUM_ST_COLLECT_GREGS): New.
14856 (AMD64_RIP_REGNUM): New.
14857 (supply_static_tracepoint_registers): New.
14858 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14859 (ST_REGENTRY): New.
14860 (i386_st_collect_regmap): New.
14861 (i386_NUM_ST_COLLECT_GREGS): New.
14862 (supply_static_tracepoint_registers): New.
14863 * server.c (handle_query): Handle qXfer:statictrace:read.
14864 <qSupported>: Report support for StaticTracepoints, and
14865 qXfer:statictrace:read features.
14866 * server.h (traceframe_read_sdata)
14867 (supply_static_tracepoint_registers): Declare.
14868 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14869 (unpack_varlen_hex): Include in IPA build.
14870 * Makefile.in (ustlibs, ustinc): New.
14871 (IPA_OBJS): Add remote-utils-ipa.o.
14872 ($(IPA_LIB)): Link -ldl and -lpthread.
14873 (UST_CFLAGS): New.
14874 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14875 * config.in, configure: Regenerate.
14876
14877 2010-06-20 Ian Lance Taylor <iant@google.com>
14878 Pedro Alves <pedro@codesourcery.com>
14879
14880 * linux-x86-low.c (always_true): Delete.
14881 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14882 trying to fool the compiler with always_true.
14883
14884 2010-06-20 Pedro Alves <pedro@codesourcery.com>
14885
14886 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14887 conditions in gdbserver.
14888
14889 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14890
14891 * spu-low.c (spu_read_memory): Wrap around local store limit.
14892 (spu_write_memory): Likewise.
14893
14894 2010-06-15 Pedro Alves <pedro@codesourcery.com>
14895
14896 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14897 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14898 LONGEST uses.
14899 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14900 uses.
14901 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14902 uses with LONGEST uses.
14903
14904 2010-06-14 Stan Shebs <stan@codesourcery.com>
14905 Pedro Alves <pedro@codesourcery.com>
14906
14907 Bytecode compiler.
14908
14909 * linux-x86-low.c: Include limits.h.
14910 (add_insns): New.
14911 (always_true): New.
14912 (EMIT_ASM): New.
14913 (EMIT_ASM32): New.
14914 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14915 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14916 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14917 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14918 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14919 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14920 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14921 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14922 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14923 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14924 (amd64_emit_void_call_2): New.
14925 (amd64_emit_ops): New.
14926 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14927 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14928 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14929 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14930 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14931 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14932 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14933 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14934 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14935 (i386_emit_stack_adjust, i386_emit_int_call_1)
14936 (i386_emit_void_call_2): New.
14937 (i386_emit_ops): New.
14938 (x86_emit_ops): New.
14939 (the_low_target): Install x86_emit_ops.
14940 * server.h (struct emit_ops): New.
14941 (get_raw_reg_func_addr): Declare.
14942 (current_insn_ptr, emit_error): Declare.
14943 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14944 (set_trace_state_variable_value): New defines.
14945 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14946 addr_get_trace_state_variable_value and
14947 addr_set_trace_state_variable_value.
14948 (symbol_list): New fields for get_raw_reg,
14949 get_trace_state_variable_value and set_trace_state_variable_value.
14950 (condfn): New typedef.
14951 (struct tracepoint): New field `compiled_cond'.
14952 (do_action_at_tracepoint): Clear compiled_cond.
14953 (get_trace_state_variable_value, set_trace_state_variable_value):
14954 Export in the IPA.
14955 (condition_true_at_tracepoint): If there's a compiled condition,
14956 run that.
14957 (current_insn_ptr, emit_error): New globals.
14958 (struct bytecode_address): New.
14959 (get_raw_reg_func_addr): New.
14960 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14961 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14962 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14963 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14964 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14965 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14966 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14967 (compile_tracepoint_condition, compile_bytecodes): New.
14968 * target.h (emit_ops): Forward declare.
14969 (struct target_ops): New field emit_ops.
14970 (target_emit_ops): New.
14971 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14972 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14973 * linux-low.c (linux_emit_ops): New.
14974 (linux_target_ops): Install it.
14975 * linux-low.h (struct linux_target_ops): New field emit_ops.
14976
14977 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14978
14979 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14980 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14981
14982 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14983 Stan Shebs <stan@codesourcery.com>
14984
14985 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14986 (all): Depend on $(extra_libraries).
14987 (install-only): Install the IPA.
14988 (IPA_OBJS, IPA_LIB): New.
14989 (clean): Remove the IPA lib.
14990 (IPAGENT_CFLAGS): New.
14991 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14992 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14993 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14994 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14995 * configure.ac: Check for atomic builtins support in the compiler.
14996 (IPA_DEPFILES, extra_libraries): Define.
14997 * configure.srv (ipa_obj): Add description.
14998 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14999 (i[34567]86-*-linux*): Set ipa_obj.
15000 (x86_64-*-linux*): Set ipa_obj.
15001 * linux-low.c (stabilizing_threads): New.
15002 (supports_fast_tracepoints): New.
15003 (linux_detach): Stabilize threads before detaching.
15004 (handle_tracepoints): Handle internal tracing breakpoints. Assert
15005 the lwp is either not stabilizing, or is moving out of a jump pad.
15006 (linux_fast_tracepoint_collecting): New.
15007 (maybe_move_out_of_jump_pad): New.
15008 (enqueue_one_deferred_signal): New.
15009 (dequeue_one_deferred_signal): New.
15010 (linux_wait_for_event_1): If moving out of a jump pad, defer
15011 pending signals to later.
15012 (linux_stabilize_threads): New.
15013 (linux_wait_1): Check if threads need moving out of jump pads, and
15014 do it if so.
15015 (stuck_in_jump_pad_callback): New.
15016 (move_out_of_jump_pad_callback): New.
15017 (lwp_running): New.
15018 (linux_resume_one_lwp): Handle moving out of jump pads.
15019 (linux_set_resume_request): Dequeue deferred signals.
15020 (need_step_over_p): Also step over fast tracepoint jumps.
15021 (start_step_over): Also uninsert fast tracepoint jumps.
15022 (finish_step_over): Also reinsert fast tracepoint jumps.
15023 (linux_install_fast_tracepoint_jump): New.
15024 (linux_target_ops): Install linux_stabilize_threads and
15025 linux_install_fast_tracepoint_jump_pad.
15026 * linux-low.h (linux_target_ops) <get_thread_area,
15027 install_fast_tracepoint_jump_pad>: New fields.
15028 (struct lwp_info) <collecting_fast_tracepoint,
15029 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
15030 (linux_get_thread_area): Declare.
15031 * linux-x86-low.c (jump_insn): New.
15032 (x86_get_thread_area): New.
15033 (append_insns): New.
15034 (push_opcode): New.
15035 (amd64_install_fast_tracepoint_jump_pad): New.
15036 (i386_install_fast_tracepoint_jump_pad): New.
15037 (x86_install_fast_tracepoint_jump_pad): New.
15038 (the_low_target): Install x86_get_thread_area and
15039 x86_install_fast_tracepoint_jump_pad.
15040 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
15041 (struct fast_tracepoint_jump): New.
15042 (fast_tracepoint_jump_insn): New.
15043 (fast_tracepoint_jump_shadow): New.
15044 (find_fast_tracepoint_jump_at): New.
15045 (fast_tracepoint_jump_here): New.
15046 (delete_fast_tracepoint_jump): New.
15047 (set_fast_tracepoint_jump): New.
15048 (uninsert_fast_tracepoint_jumps_at): New.
15049 (reinsert_fast_tracepoint_jumps_at): New.
15050 (set_breakpoint_at): Use write_inferior_memory.
15051 (uninsert_raw_breakpoint): Use write_inferior_memory.
15052 (check_mem_read): Mask out fast tracepoint jumps.
15053 (check_mem_write): Mask out fast tracepoint jumps.
15054 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
15055 (set_fast_tracepoint_jump): Declare.
15056 (delete_fast_tracepoint_jump)
15057 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
15058 (reinsert_fast_tracepoint_jumps_at): Declare.
15059 * regcache.c: Don't compile many functions when building the
15060 in-process agent library.
15061 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
15062 the register buffer in the heap.
15063 (free_register_cache): If the register buffer isn't owned by the
15064 regcache, don't free it.
15065 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
15066 pre-existing register caches.
15067 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
15068 type.
15069 (convert_ascii_to_int): : Constify `from' parameter type.
15070 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
15071 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
15072 the needed buffer in-place.
15073 (relocate_instruction): New.
15074 * server.c (handle_query) <qSymbols>: If the target supports
15075 tracepoints, give it a chance of looking up symbols. Report
15076 support for fast tracepoints.
15077 (handle_status): Stabilize threads.
15078 (process_serial_event): Adjust.
15079 * server.h (struct fast_tracepoint_jump): Forward declare.
15080 (struct process_info) <fast_tracepoint_jumps>: New field.
15081 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
15082 (decode_X_packet, decode_M_packet): Adjust.
15083 (relocate_instruction): Declare.
15084 (in_process_agent_loaded): Declare.
15085 (tracepoint_look_up_symbols): Declare.
15086 (struct fast_tpoint_collect_status): Declare.
15087 (fast_tracepoint_collecting): Declare.
15088 (force_unlock_trace_buffer): Declare.
15089 (handle_tracepoint_bkpts): Declare.
15090 (initialize_low_tracepoint)
15091 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
15092 * target.h (struct target_ops) <stabilize_threads,
15093 install_fast_tracepoint_jump_pad>: New fields.
15094 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
15095 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
15096 [HAVE_STDINT_H]: Include stdint.h.
15097 (trace_debug_1): Rename to ...
15098 (trace_vdebug): ... this.
15099 (trace_debug): Rename to ...
15100 (trace_debug_1): ... this. Add `level' parameter.
15101 (trace_debug): New.
15102 (ATTR_USED, ATTR_NOINLINE): New.
15103 (IP_AGENT_EXPORT): New.
15104 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15105 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15106 (about_to_request_buffer_space, trace_buffer_is_full)
15107 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15108 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15109 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15110 (traceframe_write_count, traceframes_created)
15111 (trace_state_variables)
15112 New renaming defines.
15113 (struct ipa_sym_addresses): New.
15114 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15115 (symbol_list): New.
15116 (ipa_sym_addrs): New.
15117 (all_tracepoint_symbols_looked_up): New.
15118 (in_process_agent_loaded): New.
15119 (write_e_ipa_not_loaded): New.
15120 (maybe_write_ipa_not_loaded): New.
15121 (tracepoint_look_up_symbols): New.
15122 (debug_threads) [IN_PROCESS_AGENT]: New.
15123 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15124 (UNKNOWN_SIDE_EFFECTS): New.
15125 (stop_tracing): New.
15126 (flush_trace_buffer): New.
15127 (stop_tracing_bkpt): New.
15128 (flush_trace_buffer_bkpt): New.
15129 (read_inferior_integer): New.
15130 (read_inferior_uinteger): New.
15131 (read_inferior_data_pointer): New.
15132 (write_inferior_data_pointer): New.
15133 (write_inferior_integer): New.
15134 (write_inferior_uinteger): New.
15135 (struct collect_static_trace_data_action): Delete.
15136 (enum tracepoint_type): New.
15137 (struct tracepoint) <type>: New field `type'.
15138 <actions_str, step_actions, step_actions_str>: Only include in
15139 GDBserver.
15140 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15141 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15142 (tracepoints): Use IP_AGENT_EXPORT.
15143 (last_tracepoint): Don't include in the IPA.
15144 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15145 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15146 (alloced_trace_state_variables): New.
15147 (trace_state_variables): Use IP_AGENT_EXPORT.
15148 (traceframe_t): Delete unused variable.
15149 (circular_trace_buffer): Don't include in the IPA.
15150 (trace_buffer_start): Delete.
15151 (struct trace_buffer_control): New.
15152 (trace_buffer_free): Delete.
15153 (struct ipa_trace_buffer_control): New.
15154 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15155 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15156 New.
15157 (trace_buffer_ctrl): New.
15158 (TRACE_BUFFER_CTRL_CURR): New.
15159 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15160 Reimplement as macros.
15161 (trace_buffer_wrap): Delete.
15162 (traceframe_write_count, traceframe_read_count)
15163 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15164 (struct tracepoint_hit_ctx) <type>: New field.
15165 (struct fast_tracepoint_ctx): New.
15166 (memory_barrier): New.
15167 (cmpxchg): New.
15168 (record_tracepoint_error): Update atomically in the IPA.
15169 (clear_inferior_trace_buffer): New.
15170 (about_to_request_buffer_space): New.
15171 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15172 updating the same buffer.
15173 (add_tracepoint): Default the tracepoint's type to trap
15174 tracepoint, and orig_size to -1.
15175 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15176 internal variables.
15177 (create_trace_state_variable): New parameter `gdb'. Handle it.
15178 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15179 (cmd_qtdp): Handle fast tracepoints.
15180 (cmd_qtdv): Adjust.
15181 (max_jump_pad_size): New.
15182 (gdb_jump_pad_head): New.
15183 (get_jump_space_head): New.
15184 (claim_jump_space): New.
15185 (sort_tracepoints): New.
15186 (MAX_JUMP_SIZE): New.
15187 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15188 IPA.
15189 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15190 support. Upload fast traceframes, and delete internal IPA
15191 breakpoints.
15192 (stop_tracing_handler): New.
15193 (flush_trace_buffer_handler): New.
15194 (cmd_qtstop): Upload fast tracepoints.
15195 (response_tracepoint): Handle fast tracepoints.
15196 (tracepoint_finished_step): Upload fast traceframes. Set the
15197 tracepoint hit context's tracepoint type.
15198 (handle_tracepoint_bkpts): New.
15199 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15200 type. Add comment about fast tracepoints.
15201 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15202 non-existing action_str field.
15203 (get_context_regcache): Handle fast tracepoints.
15204 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15205 to the regcache.
15206 (fast_tracepoint_from_jump_pad_address): New.
15207 (fast_tracepoint_from_ipa_tpoint_address): New.
15208 (collecting_t): New.
15209 (force_unlock_trace_buffer): New.
15210 (fast_tracepoint_collecting): New.
15211 (collecting): New.
15212 (gdb_collect): New.
15213 (write_inferior_data_ptr): New.
15214 (target_tp_heap): New.
15215 (target_malloc): New.
15216 (download_agent_expr): New.
15217 (UALIGN): New.
15218 (download_tracepoints): New.
15219 (download_trace_state_variables): New.
15220 (upload_fast_traceframes): New.
15221 (IPA_FIRST_TRACEFRAME): New.
15222 (IPA_NEXT_TRACEFRAME_1): New.
15223 (IPA_NEXT_TRACEFRAME): New.
15224 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15225 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15226 (gdb_jump_pad_buffer_end): New.
15227 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15228 (initialize_tracepoint): Adjust.
15229 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15230 buffer. Initialize the low module.
15231 * utils.c (PREFIX, TOOLNAME): New.
15232 (malloc_failure): Use PREFIX.
15233 (error): In the IPA, an error causes an exit.
15234 (fatal, warning): Use PREFIX.
15235 (internal_error): Use TOOLNAME.
15236 (NUMCELLS): Increase to 10.
15237 * configure, config.in: Regenerate.
15238
15239 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15240
15241 * server.c (handle_query) <qSupported>: Do two passes over the
15242 qSupported string to avoid nesting strtok.
15243
15244 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15245
15246 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15247 (CDEPS): New.
15248 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15249 -Wl,--dynamic-list.
15250 * configure: Regenerate.
15251 * proc-service.list: New.
15252
15253 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15254
15255 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15256 New comment.
15257
15258 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15259
15260 * gdbreplay.c (remote_open): Check error return from socket() call by
15261 its equality to -1 not by it being negative.
15262 * remote-utils.c (remote_open): Likewise.
15263
15264 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15265
15266 * config.h: Regenerate.
15267
15268 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15269
15270 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15271 doesn't provide PTRACE_GET_THREAD_AREA.
15272
15273 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15274
15275 * linux-m68k-low.c: Include <asm/ptrace.h>
15276 (ps_get_thread_area): Implement.
15277
15278 2010-05-03 Doug Evans <dje@google.com>
15279
15280 * event-loop.c (struct callback_event): New struct.
15281 (callback_list): New global.
15282 (append_callback_event, delete_callback_event): New functions.
15283 (process_callback): New function.
15284 (start_event_loop): Call it.
15285 * remote-utils.c (NOT_SCHEDULED): Define.
15286 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15287 moved out of readchar.
15288 (readchar): Rewrite. Call reschedule before returning.
15289 (reset_readchar): New function.
15290 (remote_close): Call it.
15291 (process_remaining, reschedule): New functions.
15292 * server.h (callback_handler_func): New typedef.
15293 (append_callback_event, delete_callback_event): Declare.
15294
15295 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15296
15297 * proc-service.c (ps_pglobal_lookup): Use
15298 thread_db_look_up_one_symbol.
15299 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15300 parameter. Use it instead of all_symbols_looked_up.
15301 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15302 field.
15303 (all_symbols_looked_up): Don't declare.
15304 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15305 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15306 field.
15307 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15308 Set all_symbols_looked_up here.
15309 (thread_db_look_up_one_symbol): New.
15310 (thread_db_get_tls_address): Adjust.
15311 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15312 thread_db object on the heap, and tentatively set it in the
15313 process structure.
15314 (thread_db_init): Don't set all_symbols_looked_up here.
15315 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15316
15317 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15318
15319 * linux-low.c (linux_kill, linux_detach): Adjust.
15320 (status_pending_p_callback): Remove redundant statement. Check
15321 for !TARGET_WAITIKIND_IGNORE, instead of
15322 TARGET_WAITKIND_STOPPED.
15323 (handle_tracepoints): Make sure LWP is locked. Adjust.
15324 (linux_wait_for_event_1): Adjust.
15325 (linux_cancel_breakpoints): New.
15326 (unsuspend_one_lwp): New.
15327 (unsuspend_all_lwps): New.
15328 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15329 (send_sigstop_callback): Change return type to int, add new
15330 `except' parameter and handle it.
15331 (suspend_and_send_sigstop_callback): New.
15332 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15333 pass them down. If SUSPEND, also increment the lwp's suspend
15334 count.
15335 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15336 (need_step_over_p): Don't consider suspended LWPs.
15337 (start_step_over): Adjust.
15338 (proceed_one_lwp): Change return type to int, add new `except'
15339 parameter and handle it.
15340 (unsuspend_and_proceed_one_lwp): New.
15341 (proceed_all_lwps): Use find_inferior instead of
15342 for_each_inferior.
15343 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15344 also decrement the suspend count of LWPs. Pass `except' down,
15345 instead of hacking its suspend count.
15346 (linux_pause_all): Add `freeze' parameter. Adjust.
15347 (linux_unpause_all): New.
15348 (linux_target_ops): Install linux_unpause_all.
15349 * server.c (handle_status): Adjust.
15350 * target.h (struct target_ops): New fields `unpause_all' and
15351 `cancel_breakpoints'. Add new parameter to `pause_all'.
15352 (pause_all): Add new `freeze' parameter.
15353 (unpause_all): New.
15354 (cancel_breakpoints): New.
15355 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15356 cancel breakpoints.
15357 (cmd_qtstart): Pause threads.
15358 (stop_tracing): Pause threads, and cancel breakpoints.
15359 * win32-low.c (win32_target_ops): Adjust.
15360
15361 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15362
15363 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15364 the inferior right away from here...
15365 (linux_wait_1): ... to here, and adjust to check the thread's
15366 last_resume_kind instead of the lwp's step or stop_expected flags.
15367
15368 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15369
15370 * README: Use consistent `GDB' and `GDBserver' spellings.
15371
15372 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15373
15374 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15375 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15376 (linux_detach_one_lwp): Assume the lwp is stopped.
15377 (any_thread_of): Delete.
15378 (linux_detach): Stop all lwps here. Don't blindly delete all
15379 breakpoints.
15380 (delete_lwp_callback): New.
15381 (linux_mourn): Delete all lwps of the process that is gone.
15382 (linux_wait_1): Don't delete the last lwp of the process here.
15383 * mem-break.h (mark_breakpoints_out): Declare.
15384 * mem-break.c (mark_breakpoints_out): New.
15385 (free_all_breakpoints): Use it.
15386 * server.c (handle_target_event): If the process is gone, mark
15387 breakpoints out.
15388 * thread-db.c (struct thread_db) <create_bp>: New field.
15389 (thread_db_enable_reporting): Fix prototype. Store a thread event
15390 breakpoint reference in the thread_db struct.
15391 (thread_db_load_search): Clear the thread_db object.
15392 (try_thread_db_load_1): Ditto.
15393 (switch_to_process): New.
15394 (disable_thread_event_reporting): Use it.
15395 (remove_thread_event_breakpoints): New.
15396 (thread_db_detach, thread_db_mourn): Use it.
15397
15398 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15399
15400 * linux-low.c (linux_enable_event_reporting): New.
15401 (linux_wait_for_event_1, handle_extended_wait): Use it.
15402
15403 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15404
15405 * linux-low.c (linux_kill_one_lwp, linux_kill)
15406 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15407 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15408 SIGSTOP even if the LWP is stopped.
15409 (send_sigstop_callback): New.
15410 (stop_all_lwps): Use send_sigstop_callback instead.
15411 (linux_resume_one_thread): Adjust.
15412 (proceed_one_lwp): Still proceed an LWP that the client has
15413 requested to stop, if we haven't reported it as stopped yet. Make
15414 sure that LWPs the client want stopped, have a pending SIGSTOP.
15415
15416 2010-04-26 Doug Evans <dje@google.com>
15417
15418 * server.c (handle_general_set): Make static.
15419
15420 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15421 Print received char after testing for error/eof instead of before.
15422 (input_interrupt): Tweak comment.
15423
15424 2010-04-23 Doug Evans <dje@google.com>
15425
15426 * server.c (start_inferior): Print inferior argv if --debug.
15427
15428 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15429
15430 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15431 * nto-x86-low.c: Include server.h
15432
15433 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15434
15435 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15436 be consistent with other sources of this directory.
15437 (init_registers_amd64): Correct name of source file of this function
15438 in the comment.
15439
15440 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15441
15442 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15443 64-bit executables.
15444
15445 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15446
15447 * win32-i386-low.c: Add 64-bit support.
15448 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15449 (init_registers_amd64): Declare.
15450 (mappings): Add 64-bit version of array.
15451 (init_windows_x86): New function.
15452 (the_low_target): Change init_arch field to init_windows_x86.
15453
15454 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15455
15456 * win32-low.c: Adapt to support also 64-bit architecture.
15457 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15458 (get_image_name): Use SIZE_T type for local variable `done'.
15459 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15460 (toolhelp_get_dll_name): Idem.
15461 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15462 Use uintptr_t typecast to avoid warning.
15463 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15464 (handle_exception): Use phex_nz to avoid warning.
15465 (win32_wait): Remove unused local variable `process'.
15466
15467 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15468
15469 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15470 `amd64-avx.o'.
15471
15472 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15473
15474 * configure.ac: Use `ws2_32' library for srv_mingw.
15475 * configure: Regenerate.
15476 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15477 * remote-utils.c: Likewise.
15478
15479 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15480
15481 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15482 if __x86_64__ is defined.
15483
15484 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15485
15486 * configure: Regenerate.
15487
15488 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15489
15490 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15491 * target.h (target_ops): New get_tib_address field.
15492 * win32-low.h (win32_thread_info): Add thread_local_base field.
15493 * win32-low.c (child_add_thread): Add tlb argument.
15494 Set thread_local_base field to TLB.
15495 (get_child_debug_event): Adapt to child_add_thread change.
15496 (win32_get_tib_address): New function.
15497 (win32_target_ops): Set get_tib_address field to
15498 win32_get_tib_address.
15499 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15500
15501 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15502
15503 * linux-low.c (linux_mourn): Also remove the process.
15504 * server.c (handle_target_event): Don't remove the process here.
15505 * nto-low.c (nto_mourn): New.
15506 (nto_target_ops): Install it.
15507 * spu-low.c (spu_mourn): New.
15508 (spu_target_ops): Install it.
15509 * win32-low.c (win32_mourn): New.
15510 (win32_target_ops): Install it.
15511
15512 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15513
15514 * server.h (buffer_xml_printf): Remove redundant `;'.
15515
15516 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15517
15518 * regcache.c (set_register_cache): Invalidate regcaches before
15519 changing the register cache layout.
15520 (regcache_invalidate_one): Allow a NULL regcache.
15521 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15522 regcaches before changing the register cache layout or the target
15523 regsets.
15524
15525 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15526
15527 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15528 variable warning on Linux/x86-64.
15529
15530 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15531
15532 GDBserver disconnected tracing support.
15533
15534 * linux-low.c (linux_remove_process): Delete.
15535 (add_lwp): Don't set last_resume_kind here.
15536 (linux_kill): Use `mourn'.
15537 (linux_detach): Use `thread_db_detach', and `mourn'.
15538 (linux_mourn): New.
15539 (linux_attach_lwp_1): Adjust comment.
15540 (linux_attach): last_resume_kind moved the thread_info; adjust.
15541 (status_pending_p_callback): Adjust.
15542 (linux_wait_for_event_1): Adjust.
15543 (count_events_callback, select_singlestep_lwp_callback)
15544 (select_event_lwp_callback, cancel_breakpoints_callback)
15545 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15546 (proceed_one_lwp): Adjust.
15547 (linux_async): Add debug output.
15548 (linux_thread_stopped): New.
15549 (linux_pause_all): New.
15550 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15551 linux_pause_all.
15552 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15553 (thread_db_free): Delete declaration.
15554 (thread_db_detach, thread_db_mourn): Declare.
15555 * thread-db.c (thread_db_init): Use thread_db_mourn.
15556 (thread_db_free): Delete, split in two.
15557 (disable_thread_event_reporting): New.
15558 (thread_db_detach): New.
15559 (thread_db_mourn): New.
15560
15561 * server.h (struct thread_info) <last_resume_kind>: New field.
15562 <attached>: Add comment.
15563 <gdb_detached>: New field.
15564 (handler_func): Change return type to int.
15565 (handle_serial_event, handle_target_event): Ditto.
15566 (gdb_connected): Declare.
15567 (tracing): Delete.
15568 (disconnected_tracing): Declare.
15569 (stop_tracing): Declare.
15570
15571 * server.c (handle_query) <qSupported>: Report support for
15572 disconnected tracing.
15573 (queue_stop_reply_callback): Account for running threads.
15574 (gdb_wants_thread_stopped): New.
15575 (gdb_wants_all_threads_stopped): New.
15576 (gdb_reattached_process): New.
15577 (handle_status): Clear the `gdb_detached' flag of all processes.
15578 In all-stop, stop all threads.
15579 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15580 (process_serial_event): If the remote connection breaks, or if an
15581 exit was forced with "monitor exit", force an event loop exit.
15582 Handle disconnected tracing on detach.
15583 (handle_serial_event): Adjust.
15584 (handle_target_event): If GDB isn't connected, forward events back
15585 to the inferior, unless the last process exited, in which case,
15586 exit gdbserver. Adjust interface.
15587
15588 * remote-utils.c (remote_open): Don't block in accept. Instead
15589 register an event loop source on the listen socket file
15590 descriptor. Refactor bits into ...
15591 (listen_desc): ... this new global.
15592 (gdb_connected): ... this new function.
15593 (enable_async_notification): ... this new function.
15594 (handle_accept_event): ... this new function.
15595 (remote_close): Clear remote_desc.
15596
15597 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15598
15599 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15600 New fields.
15601 (mourn_inferior): Define.
15602 (target_process_qsupported): Avoid the dangling else problem.
15603 (thread_stopped): Define.
15604 (pause_all): Define.
15605 (target_waitstatus_to_string): Declare.
15606 * target.c (target_waitstatus_to_string): New.
15607
15608 * tracepoint.c (tracing): Make extern.
15609 (disconnected_tracing): New.
15610 (stop_tracing): Make extern. Handle tracing stops due to GDB
15611 disconnecting.
15612 (cmd_qtdisconnected): New.
15613 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15614 (handle_tracepoint_general_set): Handle QTDisconnected.
15615
15616 * event-loop.c (event_handler_func): Change return type to int.
15617 (process_event): Bail out if the event handler wants the event
15618 loop to stop.
15619 (handle_file_event): Ditto.
15620 (start_event_loop): Bail out if the event handler wants the event
15621 loop to stop.
15622
15623 * nto-low.c (nto_target_ops): Adjust.
15624 * spu-low.c (spu_wait): Don't remove the process here.
15625 (spu_target_ops): Adjust.
15626 * win32-low.c (win32_wait): Don't remove the process here.
15627 (win32_target_ops): Adjust.
15628
15629 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15630
15631 * regcache.c (realloc_register_cache): Invalidate inferior's
15632 regcache before recreating it.
15633
15634 2010-04-09 Pedro Alves <pedro@codesourcery.com>
15635
15636 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15637
15638 2010-04-09 Stan Shebs <stan@codesourcery.com>
15639 Pedro Alves <pedro@codesourcery.com>
15640
15641 * server.h (LONGEST): New.
15642 (struct thread_info) <while_stepping>: New field.
15643 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15644 Declare.
15645 (initialize_tracepoint, handle_tracepoint_general_set)
15646 (handle_tracepoint_query, tracepoint_finished_step)
15647 (tracepoint_was_hit, release_while_stepping_state_list):
15648 (current_traceframe): Declare.
15649 * server.c (handle_general_set): Handle tracepoint packets.
15650 (read_memory): New.
15651 (write_memory): New.
15652 (handle_search_memory_1): Use read_memory.
15653 (handle_query): Report support for conditional tracepoints, trace
15654 state variables, and tracepoint sources. Handle tracepoint
15655 queries.
15656 (main): Initialize the tracepoints module.
15657 (process_serial_event): Handle traceframe reads/writes.
15658
15659 * linux-low.c (handle_tracepoints): New.
15660 (linux_wait_1): Call it.
15661 (linux_resume_one_lwp): Handle while-stepping.
15662 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15663 (linux_target_ops): Install them.
15664 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15665 New field.
15666 * linux-x86-low.c (x86_supports_tracepoints): New.
15667 (the_low_target). Install it.
15668
15669 * mem-break.h (delete_breakpoint): Declare.
15670 * mem-break.c (delete_breakpoint): Make external.
15671
15672 * target.h (struct target_ops): Add `supports_tracepoints',
15673 `read_pc', and `write_pc' fields.
15674 (target_supports_tracepoints): Define.
15675 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15676 (phex_nz): New.
15677
15678 * regcache.h (struct regcache) <registers_owned>: New field.
15679 (init_register_cache, regcache_cpy): Declare.
15680 (regcache_read_pc, regcache_write_pc): Declare.
15681 (register_cache_size): Declare.
15682 (supply_regblock): Declare.
15683 * regcache.c (init_register_cache): New.
15684 (new_register_cache): Use it.
15685 (regcache_cpy): New.
15686 (register_cache_size): New.
15687 (supply_regblock): New.
15688 (regcache_read_pc, regcache_write_pc): New.
15689
15690 * tracepoint.c: New.
15691
15692 * Makefile.in (OBS): Add tracepoint.o.
15693 (tracepoint.o): New rule.
15694
15695 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15696
15697 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15698 (i386-mmx.o): New.
15699 (i386-mmx.c): Likewise.
15700 (i386-mmx-linux.o): Likewise.
15701 (i386-mmx-linux.c): Likewise.
15702
15703 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15704 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15705 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15706 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15707
15708 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15709 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15710 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15711
15712 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15713
15714 * Makefile.in (clean): Updated.
15715 (i386-avx.o): New.
15716 (i386-avx.c): Likewise.
15717 (i386-avx-linux.o): Likewise.
15718 (i386-avx-linux.c): Likewise.
15719 (amd64-avx.o): Likewise.
15720 (amd64-avx.c): Likewise.
15721 (amd64-avx-linux.o): Likewise.
15722 (amd64-avx-linux.c): Likewise.
15723
15724 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15725 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15726 (srv_amd64_regobj): Add amd64-avx.o.
15727 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15728 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15729 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15730 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15731 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15732 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15733 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15734
15735 * i387-fp.c: Include "i386-xstate.h".
15736 (i387_xsave): New.
15737 (i387_cache_to_xsave): Likewise.
15738 (i387_xsave_to_cache): Likewise.
15739 (x86_xcr0): Likewise.
15740
15741 * i387-fp.h (i387_cache_to_xsave): Likewise.
15742 (i387_xsave_to_cache): Likewise.
15743 (x86_xcr0): Likewise.
15744
15745 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15746 * linux-crisv32-low.c (target_regsets): Likewise.
15747 * linux-m68k-low.c (target_regsets): Likewise.
15748 * linux-mips-low.c (target_regsets): Likewise.
15749 * linux-ppc-low.c (target_regsets): Likewise.
15750 * linux-s390-low.c (target_regsets): Likewise.
15751 * linux-sh-low.c (target_regsets): Likewise.
15752 * linux-sparc-low.c (target_regsets): Likewise.
15753 * linux-xtensa-low.c (target_regsets): Likewise.
15754
15755 * linux-low.c: Include <sys/uio.h>.
15756 (regsets_fetch_inferior_registers): Support nt_type.
15757 (regsets_store_inferior_registers): Likewise.
15758 (linux_process_qsupported): New.
15759 (linux_target_ops): Add linux_process_qsupported.
15760
15761 * linux-low.h (regset_info): Add nt_type.
15762 (linux_target_ops): Add process_qsupported.
15763
15764 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15765 and <sys/uio.h>.
15766 (init_registers_i386_avx_linux): New.
15767 (init_registers_amd64_avx_linux): Likewise.
15768 (xmltarget_i386_linux_no_xml): Likewise.
15769 (xmltarget_amd64_linux_no_xml): Likewise.
15770 (PTRACE_GETREGSET): Likewise.
15771 (PTRACE_SETREGSET): Likewise.
15772 (x86_fill_xstateregset): Likewise.
15773 (x86_store_xstateregset): Likewise.
15774 (use_xml): Likewise.
15775 (x86_linux_update_xmltarget): Likewise.
15776 (x86_linux_process_qsupported): Likewise.
15777 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15778 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15779 init_registers_i386_linux here. Call
15780 x86_linux_update_xmltarget.
15781 (the_low_target): Add x86_linux_process_qsupported.
15782
15783 * server.c (handle_query): Call target_process_qsupported.
15784
15785 * target.h (target_ops): Add process_qsupported.
15786 (target_process_qsupported): New.
15787
15788 2010-04-03 Pedro Alves <pedro@codesourcery.com>
15789
15790 * inferiors.c (add_thread): Set last_status kind to
15791 TARGET_WAITKIND_IGNORE.
15792 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15793 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15794 (linux_wait_1): Move `thread' local definition to block that uses
15795 it. Don't NULL initialize `event_child'.
15796 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15797 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15798 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15799
15800 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15801
15802 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15803 an extended waitstatus, or by a watchpoint.
15804 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15805 thread was stepping or has been stopped by a watchpoint.
15806
15807 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15808
15809 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15810 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15811 of another, then delete the previous, and validate all
15812 breakpoints.
15813 (validate_inserted_breakpoint): New.
15814 (delete_disabled_breakpoints): New.
15815 (validate_breakpoints): New.
15816 (check_mem_read): Validate breakpoints before trusting their
15817 shadow. Delete disabled breakpoints.
15818 (check_mem_write): Validate breakpoints before trusting they
15819 should be inserted. Delete disabled breakpoints.
15820 * mem-break.h (validate_breakpoints):
15821 * server.c (handle_query): Validate breakpoints when we see a
15822 qSymbol query.
15823
15824 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15825
15826 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15827 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15828 if we could tell there's a GDB breakpoint at stop_pc.
15829 (need_step_over_p): Don't do a step over if we find a GDB
15830 breakpoint at the resume PC.
15831
15832 * mem-break.c (struct raw_breakpoint): New.
15833 (enum bkpt_type): New type `gdb_breakpoint'.
15834 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15835 fields. New field `raw'.
15836 (find_raw_breakpoint_at): New.
15837 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15838 breakpoint instead.
15839 (set_breakpoint_at): Adjust.
15840 (delete_raw_breakpoint): New.
15841 (release_breakpoint): New.
15842 (delete_breakpoint): Rename to...
15843 (delete_breakpoint_1): ... this. Add proc parameter. Use
15844 release_breakpoint. Return ENOENT.
15845 (delete_breakpoint): Reimplement.
15846 (find_breakpoint_at): Delete.
15847 (find_gdb_breakpoint_at): New.
15848 (delete_breakpoint_at): Delete.
15849 (set_gdb_breakpoint_at): New.
15850 (delete_gdb_breakpoint_at): New.
15851 (gdb_breakpoint_here): New.
15852 (set_reinsert_breakpoint): Use release_breakpoint.
15853 (uninsert_breakpoint): Rename to ...
15854 (uninsert_raw_breakpoint): ... this.
15855 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15856 (reinsert_raw_breakpoint): Change parameter type to
15857 raw_breakpoint.
15858 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15859 instead.
15860 (check_breakpoints): Adjust. Use release_breakpoint.
15861 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15862 (breakpoint_inserted_here): Ditto.
15863 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15864 Don't trust the breakpoint's shadow if it is not inserted.
15865 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15866 (delete_all_breakpoints): Adjust.
15867 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15868 use delete_breakpoint_1.
15869
15870 * mem-break.h (breakpoints_supported): Delete declaration.
15871 (set_gdb_breakpoint_at): Declare.
15872 (gdb_breakpoint_here): Declare.
15873 (delete_breakpoint_at): Delete.
15874 (delete_gdb_breakpoint_at): Declare.
15875
15876 * server.h (struct raw_breakpoint): Forward declare.
15877 (struct process_info): New field `raw_breakpoints'.
15878
15879 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15880 breakpoints.
15881
15882 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15883
15884 * linux-low.c (status_pending_p_callback): Fix comment.
15885 (linux_wait_for_event_1): Move most of the internal breakpoint
15886 handling from here...
15887 (linux_wait_1): ... to here.
15888 (count_events_callback): New.
15889 (select_singlestep_lwp_callback): New.
15890 (select_event_lwp_callback): New.
15891 (cancel_breakpoints_callback): New.
15892 (select_event_lwp): New.
15893 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15894 priority to all LWPs that have had events that should be reported
15895 to the client. Cancel breakpoints when about to reporting the
15896 event to the client, not while stopping lwps. No longer cancel
15897 finished single-steps here.
15898 (cancel_finished_single_step): Delete.
15899 (cancel_finished_single_steps): Delete.
15900
15901 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15902
15903 * mem-break.c (enum bkpt_type): New.
15904 (struct breakpoint): New field `type'.
15905 (set_breakpoint_at): Change return type to struct breakpoint
15906 pointer. Set type to `other_breakpoint' by default.
15907 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15908 in the breakpoint list.
15909 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15910 (reinsert_breakpoint): Rename to ...
15911 (reinsert_raw_breakpoint): ... this.
15912 (reinsert_breakpoints_at): Adjust.
15913 * mem-break.h (struct breakpoint): Declare.
15914 (set_breakpoint_at): Change return type to struct breakpoint
15915 pointer.
15916
15917 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15918
15919 * server.c (handle_query): Assign, not compare.
15920
15921 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15922
15923 Teach linux gdbserver to step-over-breakpoints.
15924
15925 * linux-low.c (can_hardware_single_step): New.
15926 (supports_breakpoints): New.
15927 (handle_extended_wait): If stopping threads, read the stop pc of
15928 the new cloned LWP.
15929 (get_pc): New.
15930 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15931 low target doesn't support retrieving the PC.
15932 (add_lwp): Set last_resume_kind to resume_continue.
15933 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15934 (linux_attach): Don't clear stop_expected. Set the lwp's
15935 last_resume_kind to resume_stop.
15936 (linux_detach_one_lwp): Don't check for removed breakpoints.
15937 (check_removed_breakpoint): Delete.
15938 (status_pending_p): Rename to ...
15939 (status_pending_p_callback): ... this. Don't check for removed
15940 breakpoints. Don't consider threads that are stopped from GDB's
15941 perspective.
15942 (linux_wait_for_lwp): Always read the stop_pc here.
15943 (cancel_breakpoint): New.
15944 (step_over_bkpt): New global.
15945 (linux_wait_for_event_1): Implement stepping over breakpoints.
15946 (gdb_wants_lwp_stopped): New.
15947 (gdb_wants_all_stopped): New.
15948 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15949 single-step traps here. Store the thread's last reported target
15950 wait status.
15951 (send_sigstop): Don't clear stop_expected. Always set it,
15952 instead.
15953 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15954 (cancel_finished_single_step): New.
15955 (cancel_finished_single_steps): New.
15956 (wait_for_sigstop): Don't cancel finished single-step traps here.
15957 (linux_resume_one_lwp): Don't check for removed breakpoints.
15958 Don't set `step' on non-hardware step archs.
15959 (linux_set_resume_request): Ignore resume_stop requests if already
15960 stopping or stopped. Set the lwp's last_resume_kind.
15961 (resume_status_pending_p): Don't check for removed breakpoints.
15962 (need_step_over_p): New.
15963 (start_step_over): New.
15964 (finish_step_over): New.
15965 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15966 requests. Clear the thread's last reported target waitstatus.
15967 Don't use the `suspended' flag. Don't consider pending breakpoints.
15968 (linux_resume): Start a step-over if necessary.
15969 (proceed_one_lwp): New.
15970 (proceed_all_lwps): New.
15971 (unstop_all_lwps): New.
15972 * linux-low.h (struct lwp_info): Rewrite comment for the
15973 `suspended' flag. Add the `stop_pc' field. Delete the
15974 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15975 Add `'last_resume_kind' and `need_step_over' fields.
15976 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15977 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15978 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15979 (set_raw_breakpoint_at): New.
15980 (set_breakpoint_at): Rewrite to use it.
15981 (reinsert_breakpoint_handler): Delete.
15982 (set_reinsert_breakpoint): New.
15983 (reinsert_breakpoint_by_bp): Delete.
15984 (delete_reinsert_breakpoints): New.
15985 (uninsert_breakpoint): Rewrite.
15986 (uninsert_breakpoints_at): New.
15987 (reinsert_breakpoint): Rewrite.
15988 (reinsert_breakpoints_at): New.
15989 (check_breakpoints): Rewrite.
15990 (breakpoint_here): New.
15991 (breakpoint_inserted_here): New.
15992 (check_mem_read): Adjust.
15993 * mem-break.h (breakpoints_supported, breakpoint_here)
15994 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15995 (reinsert_breakpoint_by_bp): Delete declaration.
15996 (delete_reinsert_breakpoints): Declare.
15997 (reinsert_breakpoint): Delete declaration.
15998 (reinsert_breakpoints_at): Declare.
15999 (uninsert_breakpoint): Delete declaration.
16000 (uninsert_breakpoints_at): Declare.
16001 (check_breakpoints): Adjust prototype.
16002 * server.h: Adjust include order.
16003 (struct thread_info): Declare here. Add a `last_status' field.
16004
16005 2010-03-23 Michael Snyder <msnyder@vmware.com>
16006
16007 * server.c (crc32): New function.
16008 (handle_query): Add handling for 'qCRC:' request.
16009
16010 2010-03-23 Pedro Alves <pedro@codesourcery.com>
16011
16012 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
16013 lwp had been stopped by a watchpoint.
16014
16015 2010-03-16 Pedro Alves <pedro@codesourcery.com>
16016
16017 * server.h (internal_error): Declare.
16018 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
16019 * utils.c (internal_error): New function.
16020
16021 2010-03-15 Andreas Schwab <schwab@redhat.com>
16022
16023 * configure.srv: Fix typo setting srv_regobj.
16024
16025 2010-03-15 Pedro Alves <pedro@codesourcery.com>
16026
16027 * linux-low.c (fetch_register): Avoid passing a non string literal
16028 format to `error'.
16029 (usr_store_inferior_registers): Ditto.
16030
16031 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16032
16033 * linux-low.c (linux_write_memory): Bail out early if peeking
16034 memory failed.
16035
16036 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16037
16038 * linux-low.h (struct lwp_info): New fields
16039 `stopped_by_watchpoint' and `stopped_data_address'.
16040 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
16041 here, and cache them in the lwp object.
16042 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
16043 directly.
16044 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
16045 field.
16046 (linux_stopped_by_watchpoint): Rewrite.
16047 (linux_stopped_data_address): Rewrite.
16048
16049 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
16050
16051 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
16052 switching the current inferior, not before.
16053
16054 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16055
16056 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
16057 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
16058 i386-linux.c and amd64-linux.c.
16059 (reg-i386.o): Removed.
16060 (reg-i386.c): Likewise.
16061 (reg-i386-linux.o): Likewise.
16062 (reg-i386-linux.c): Likewise.
16063 (reg-x86-64.o): Likewise.
16064 (reg-x86-64.c): Likewise.
16065 (reg-x86-64-linux.o): Likewise.
16066 (reg-x86-64-linux.c): Likewise.
16067 (i386.o): New.
16068 (i386.c): Likewise.
16069 (i386-linux.o): Likewise.
16070 (i386-linux.c): Likewise.
16071 (amd64.o): Likewise.
16072 (amd64.c): Likewise.
16073 (amd64-linux.o): Likewise.
16074 (amd64-linux.c): Likewise.
16075
16076 * configure.srv (srv_i386_regobj): New.
16077 (srv_i386_linux_regobj): Likewise.
16078 (srv_amd64_regobj): Likewise.
16079 (srv_amd64_linux_regobj): Likewise.
16080 (srv_i386_32bit_xmlfiles): Likewise.
16081 (srv_i386_64bit_xmlfiles): Likewise.
16082 (srv_i386_xmlfiles): Likewise.
16083 (srv_amd64_xmlfiles): Likewise.
16084 (srv_i386_linux_xmlfiles): Likewise.
16085 (srv_amd64_linux_xmlfiles): Likewise.
16086 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
16087 srv_xmlfiles to $srv_i386_xmlfiles.
16088 (i[34567]86-*-mingw32ce*): Likewise.
16089 (i[34567]86-*-mingw*): Likewise.
16090 (i[34567]86-*-nto*): Likewise.
16091 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
16092 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
16093 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
16094 (x86_64-*-linux*): Likewise.
16095
16096 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
16097 (init_registers_amd64_linux): New.
16098 (x86_arch_setup): Replace init_registers_x86_64_linux with
16099 init_registers_amd64_linux.
16100
16101 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16102
16103 * configure.ac: Check for libdl. If it is not available link against
16104 static libthread_db.
16105 * configure: Regenerate.
16106
16107 2010-02-22 Pedro Alves <pedro@codesourcery.com>
16108
16109 PR9605
16110
16111 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16112 handing a read watchpoint.
16113 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16114
16115 2010-02-12 Doug Evans <dje@google.com>
16116
16117 * linux-low.c (linux_supports_tracefork_flag): Document.
16118 (linux_look_up_symbols): Add comment.
16119
16120 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16121
16122 * regcache.c (supply_register): Clear regcache if buf is NULL.
16123
16124 2010-02-02 Nicolas Roche <roche@sourceware.org>
16125 Joel Brobecker <brobecker@adacore.com>
16126
16127 * inferiors.c (find_inferior): Add function documentation.
16128 (unloaded_dll): Handle the case where the unloaded dll has not
16129 been previously registered in the dll list.
16130
16131 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16132
16133 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16134 (thumb2_breakpoint): New.
16135 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16136
16137 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16138
16139 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16140 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16141 breakpoints.
16142
16143 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16144
16145 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16146
16147 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16148
16149 * linux-s390-low.c (s390_collect_ptrace_register)
16150 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16151
16152 2010-01-21 Doug Evans <dje@google.com>
16153
16154 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16155 (PTRACE_ARG4_TYPE): New macro.
16156 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16157 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16158 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16159 (usr_store_inferior_registers): Ditto.
16160 (linux_read_memory, linux_write_memory): Ditto.
16161 (linux_test_for_tracefork): Ditto.
16162
16163 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16164 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16165
16166 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16167
16168 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16169 target.
16170
16171 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16172
16173 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16174 prototype to take a regcache. Adjust.
16175
16176 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16177
16178 * regcache.h (struct thread_info): Forward declare.
16179 (struct regcache): New.
16180 (new_register_cache): Adjust prototype.
16181 (get_thread_regcache): Declare.
16182 (free_register_cache): Adjust prototype.
16183 (registers_to_string, registers_from_string): Ditto.
16184 (supply_register, supply_register_by_name, collect_register)
16185 (collect_register_as_string, collect_register_by_name): Ditto.
16186 * regcache.c (struct inferior_regcache_data): Delete.
16187 (get_regcache): Rename to ...
16188 (get_thread_regcache): ... this. Adjust. Switch inferior before
16189 fetching registers.
16190 (regcache_invalidate_one): Adjust.
16191 (regcache_invalidate): Fix prototype.
16192 (new_register_cache): Return the new register cache.
16193 (free_register_cache): Change prototype.
16194 (realloc_register_cache): Adjust.
16195 (registers_to_string): Change prototype to take a regcache. Adjust.
16196 (registers_from_string): Ditto.
16197 (register_data): Ditto.
16198 (supply_register): Ditto.
16199 (supply_register_by_name): Ditto.
16200 (collect_register): Ditto.
16201 (collect_register_as_string): Ditto.
16202 (collect_register_by_name): Ditto.
16203 * server.c (process_serial_event): Adjust.
16204 * linux-low.h (regset_fill_func, regset_store_func): Change
16205 prototype.
16206 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16207 Change prototype.
16208 * linux-low.c (get_stop_pc): Adjust.
16209 (check_removed_breakpoint): Adjust.
16210 (linux_wait_for_event): Adjust.
16211 (linux_resume_one_lwp): Adjust.
16212 (fetch_register): Add regcache parameter. Adjust.
16213 (usr_store_inferior_registers): Ditto.
16214 (regsets_fetch_inferior_registers): Ditto.
16215 (regsets_store_inferior_registers): Ditto.
16216 (linux_fetch_registers, linux_store_registers): Ditto.
16217 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16218 regcache. Adjust.
16219 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16220 Ditto.
16221 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16222 prototype to take a regcache.
16223 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16224 * remote-utils.c (convert_ascii_to_int, outreg)
16225 (prepare_resume_reply): Change prototype to take a regcache.
16226 Adjust.
16227 * target.h (struct target_ops) <fetch_registers, store_registers>:
16228 Change prototype to take a regcache.
16229 (fetch_inferior_registers, store_inferior_registers): Change
16230 prototype to take a regcache. Adjust.
16231 * proc-service.c (ps_lgetregs): Adjust.
16232 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16233 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16234 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16235 take a regcache. Adjust.
16236 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16237 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16238 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16239 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16240 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16241 (cris_cannot_fetch_register):
16242 (cris_breakpoint_at): Change prototype to take a regcache.
16243 Adjust.
16244 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16245 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16246 to take a regcache. Adjust.
16247 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16248 Adjust.
16249 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16250 take a regcache. Adjust.
16251 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16252 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16253 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16254 * linux-mips-low.c (mips_get_pc):
16255 (mips_set_pc): Change prototype to take a regcache. Adjust.
16256 (mips_reinsert_addr): Adjust.
16257 (mips_collect_register): Change prototype to take a regcache.
16258 Adjust.
16259 (mips_supply_register):
16260 (mips_collect_register_32bit, mips_supply_register_32bit)
16261 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16262 (mips_store_fpregset): Ditto.
16263 * linux-ppc-low.c (ppc_supply_ptrace_register)
16264 (ppc_supply_ptrace_register): Ditto.
16265 (parse_spufs_run): Adjust.
16266 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16267 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16268 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16269 take a regcache. Adjust.
16270 * linux-s390-low.c (s390_collect_ptrace_register)
16271 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16272 (s390_set_pc): Change prototype to take a regcache. Adjust.
16273 (s390_arch_setup): Adjust.
16274 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16275 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16276 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16277 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16278 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16279 regcache. Adjust.
16280 (sparc_breakpoint_at): Adjust.
16281 * linux-xtensa-low.c (xtensa_fill_gregset):
16282 (xtensa_store_gregset):
16283 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16284 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16285 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16286 prototype to take a regcache. Adjust.
16287 * win32-arm-low.c (arm_fetch_inferior_register)
16288 (arm_store_inferior_register): Change prototype to take a
16289 regcache. Adjust.
16290 * win32-i386-low.c (i386_fetch_inferior_register)
16291 (i386_store_inferior_register): Change prototype to take a
16292 regcache. Adjust.
16293 * win32-low.c (child_fetch_inferior_registers)
16294 (child_store_inferior_registers): Change prototype to take a
16295 regcache. Adjust.
16296 (win32_wait): Adjust.
16297 (win32_fetch_inferior_registers): Change prototype to take a
16298 regcache. Adjust.
16299 (win32_store_inferior_registers): Adjust.
16300 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16301 store_inferior_register>: Change prototype to take a regcache.
16302
16303 2010-01-20 Doug Evans <dje@google.com>
16304
16305 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16306 #ifdef.
16307 (linux_wait_for_event1, linux_init_signals): Ditto.
16308 (W_STOPCODE): Provide definition if missing.
16309
16310 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16311
16312 * linux-low.c (linux_core_of_thread): New.
16313 (compare_ints, show_process, list_threads): New.
16314 (linux_qxfer_osdata): Report threads and cores.
16315 (linux_target_op): Register linux_core_of_thread.
16316 * remote-utils.c (prepare_resume_reply): Report the core.
16317 (buffer_xml_printf): Support %d specifier.
16318 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16319 New.
16320 (handle_query): Handle qXfer:threads. Announce availability
16321 thereof.
16322 * target.h (struct target_ops): New field core_of_thread.
16323
16324 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16325
16326 * Makefile.in (clean): Remove new generated files.
16327 (reg-s390.o, reg-s390.c): Remove rules.
16328 (reg-s390x.o, reg-s390x.c): Likewise.
16329 (s390-linux32.o, s390-linux32.c): Add rules.
16330 (s390-linux64.o, s390-linux64.c): Likewise.
16331 (s390x-linux64.o, s390x-linux64.c): Likewise.
16332 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16333 * linux-s390-low.c: Include <elf.h>.
16334 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16335 (init_registers_s390): Remove prototype.
16336 (init_registers_s390x): Likewise.
16337 (init_registers_s390_linux32): Add prototype.
16338 (init_registers_s390_linux64): Likewise.
16339 (init_registers_s390x_linux64): Likewise.
16340 (s390_num_regs_3264): New define.
16341 (s390_regmap_3264): New global variable.
16342 (s390_cannot_fetch_register): Remove obsolete check.
16343 (s390_cannot_store_register): Likewise.
16344 (s390_collect_ptrace_register): Handle upper/lower register halves.
16345 (s390_supply_ptrace_register): Likewise.
16346 (s390_fill_gregset): Update to register number changes.
16347 (s390_get_hwcap): New routine.
16348 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16349 Install appropriate regmap and register set.
16350
16351 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16352
16353 * server.c (gdbserver_version): Update copyright year to 2010.
16354 * gdbreplay.c (gdbreplay_version): Likewise.
16355
16356 2009-12-28 Doug Evans <dje@google.com>
16357
16358 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16359 elf/external.h. Include <elf.h> instead but only if necessary.
16360
16361 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16362
16363 * linux-low.c (linux_remove_process): Remove `detaching'
16364 parameter. Don't release/detach from thread_db here.
16365 (linux_kill): Release/detach from thread_db here, ...
16366 (linux_detach): ... and here, before actually detaching.
16367 (linux_wait_1): ... and here, when a process exits.
16368 * thread-db.c (any_thread_of): New.
16369 (thread_db_free): Switch the current inferior to a thread of the
16370 passed in process.
16371
16372 2009-12-21 Doug Evans <dje@google.com>
16373
16374 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16375
16376 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16377 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16378 warning ifndef __NR_tkill. Move setting of errno there too.
16379 Delete unnecessary resetting of errno after syscall.
16380 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16381
16382 * configure.ac: Check for dladdr.
16383 * config.in: Regenerate.
16384 * configure: Regenerate.
16385 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16386 (try_thread_db_load): Update.
16387
16388 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16389
16390 2009-12-18 Doug Evans <dje@google.com>
16391
16392 * event-loop.c: Include unistd.h if it exists.
16393
16394 * linux-low.c (my_waitpid): Move definition away from being in
16395 between linux_tracefork_child/linux_test_for_tracefork.
16396
16397 * gdb_proc_service.h (psaddr_t): Fix type.
16398 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16399 signature to match glibc.
16400
16401 2009-12-16 Doug Evans <dje@google.com>
16402
16403 * linux-low.c (linux_read_memory): Fix argument to read.
16404
16405 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16406
16407 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16408 events, don't leave current_inferior pointing at null.
16409
16410 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16411
16412 * win32-low.c (LOG): Delete.
16413 (OUTMSG): Output to stderr.
16414 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16415 on compile time LOG macro.
16416 (win32_wait): Fix debug output.
16417
16418 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16419
16420 * win32-low.c (win32_add_one_solib): If the dll name is
16421 "ntdll.dll", prepend the system directory to the dll path.
16422
16423 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16424
16425 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16426
16427 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16428 Vladimir Prus <vladimir@codesourcery.com>
16429
16430 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16431 * configure.ac: Check for __mcoldfire__ and set
16432 gdb_cv_m68k_is_coldfire.
16433 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16434 reg-cf.o and reg-m68k.o.
16435 * configure: Regenerated.
16436
16437 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16438
16439 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16440 Pass it to thread_db_free.
16441 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16442 proper `detaching' argument to linux_remove_process.
16443 * linux-low.h (thread_db_free): Add `detaching' parameter.
16444 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16445 to thread_db_free.
16446 (thread_db_free): Add `detaching' parameter. Only
16447 call td_ta_clear_event if detaching from process.
16448
16449 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16450
16451 * thread-db.c (thread_db_free): Fix typo.
16452
16453 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16454
16455 PR gdb/10838
16456 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16457
16458 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16459
16460 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16461 with an i686 compiler.
16462 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16463 needed.
16464 * configure: Rebuilt.
16465
16466 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16467
16468 PR gdb/10783
16469
16470 * server.c (handle_search_memory_1): Correct read_addr initialization
16471 in loop for searching subsequent chunks.
16472
16473 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16474
16475 * configure.ac: New --with-libthread-db option.
16476 * thread-db.c: Allow direct dependence on libthread_db.
16477 (thread_db_free): Adjust.
16478 * config.in: Regenerate.
16479 * configure: Likewise.
16480
16481 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16482
16483 PR gdb/10757
16484 * thread-db.c (attach_thread): New function.
16485 (maybe_attach_thread): Return success/failure.
16486 (find_new_threads_callback): Adjust.
16487 (thread_db_find_new_threads): Loop until no new threads.
16488
16489 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16490
16491 * proc-service.c (ps_lgetregs): Formatting.
16492
16493 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16494
16495 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16496 * configure.ac: Adjust.
16497 * linux-low.h (struct process_info_private): Move members to struct
16498 thread_db.
16499 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16500 * linux-low.c (linux_remove_process): Adjust.
16501 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16502 * server.c (handle_query): Move code ...
16503 (handle_monitor_command): ... here. New function.
16504 * target.h (struct target_ops): New member.
16505 * thread-db.c (struct thread_db): New.
16506 (libthread_db_search_path): New variable.
16507 (thread_db_create_event, thread_db_enable_reporting)
16508 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16509 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16510 (try_thread_db_load_1, dladdr_to_soname): New functions.
16511 (try_thread_db_load, thread_db_load_search): New functions.
16512 (thread_db_init): Search for libthread_db.
16513 (thread_db_free): New function.
16514 (thread_db_handle_monitor_command): Likewise.
16515 * config.in: Regenerate.
16516 * configure: Regenerate.
16517
16518 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16519
16520 * spu-low.c (spu_kill): Wait for inferior to terminate.
16521 Call clear_inferiors.
16522 (spu_detach): Call clear_inferiors.
16523
16524 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16525
16526 * aclocal.m4: Regenerate.
16527 * config.in: Likewise.
16528 * configure: Likewise.
16529
16530 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16531
16532 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16533 (parse_spufs_run): New function.
16534 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16535 (ppc_breakpoint_at): Handle SPU breakpoints.
16536
16537 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16538
16539 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16540 (SPUFS_MAGIC): Define.
16541 (spu_enumerate_spu_ids): New function.
16542 (linux_qxfer_spu): New function.
16543 (linux_target_ops): Install linux_qxfer_spu.
16544
16545 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16546
16547 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16548 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16549 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16550 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16551 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16552 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16553 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16554 (init_registers_powerpc_cell32l): Add prototype.
16555 (init_registers_powerpc_cell64l): Likewise.
16556 (ppc_arch_setup): Detect Cell/B.E. architecture.
16557
16558 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16559
16560 * Makefile.in (datarootdir): New variable.
16561
16562 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16563
16564 * linux-low.c (linux_write_memory): Update debugging output.
16565 * Makefile.in (clean): Add new descriptions.
16566 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16567 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16568 * configure.srv: Add new files for arm*-*-linux*.
16569 * linux-arm-low.c: Add new declarations.
16570 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16571 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16572 (HWCAP_VFPv3D16): New.
16573 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16574 instead of __IWMMXT__.
16575 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16576 (arm_arch_setup): New.
16577 (target_regsets): Remove #ifdef. Add VFP regset.
16578 (the_low_target): Use arm_arch_setup.
16579
16580 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16581
16582 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16583 the main thread again.
16584
16585 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16586
16587 Adding Neutrino gdbserver.
16588 * configure: Regenerated.
16589 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16590 * configure.srv (i[34567]86-*-nto*): New target.
16591 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16592 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16593 (nto_comctrl) [__QNX__]: New function.
16594 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16595
16596 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
16597
16598 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16599 srv_tgtobj.
16600
16601 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16602 Pedro Alves <pedro@codesourcery.com>
16603
16604 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16605 don't support CONTEXT_EXTENDED_REGISTERS.
16606 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16607 (the_low_target): Install them.
16608 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16609 failing with ERROR_PIPE_NOT_CONNECTED.
16610
16611 2009-06-30 Doug Evans <dje@google.com>
16612 Pierre Muller <muller@ics.u-strasbg.fr>
16613
16614 Add h/w watchpoint support to x86-linux, win32-i386.
16615 * Makefile.in (SFILES): Add i386-low.c
16616 (i386_low_h): Define.
16617 (i386-low.o): Add dependencies.
16618 (linux-x86-low.o): Add i386-low.h dependency.
16619 (win32-i386-low.o): Ditto.
16620 * i386-low.c: New file.
16621 * i386-low.h: New file.
16622 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16623 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16624 * linux-low.c (linux_add_process): Initialize arch_private.
16625 (linux_remove_process): Free arch_private.
16626 (add_lwp): Initialize arch_private.
16627 (delete_lwp): Free arch_private.
16628 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16629 provided.
16630 * linux-low.h (process_info_private): New member arch_private.
16631 (lwp_info): New member arch_private.
16632 (linux_target_ops): New members new_process, new_thread,
16633 prepare_to_resume.
16634 (ptid_of): New macro.
16635 * linux-x86-low.c: Include stddef.h, i386-low.h.
16636 (arch_process_info): New struct.
16637 (arch_lwp_info): New struct.
16638 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16639 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16640 (i386_dr_low_get_status): New function.
16641 (x86_insert_point, x86_remove_point): New functions.
16642 (x86_stopped_by_watchpoint): New function.
16643 (x86_stopped_data_address): New function.
16644 (x86_linux_new_process, x86_linux_new_thread): New functions.
16645 (x86_linux_prepare_to_resume): New function.
16646 (the_low_target): Add entries for insert_point, remove_point,
16647 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16648 prepare_to_resume.
16649 * server.c (debug_hw_points): New global.
16650 (monitor_show_help): Document set debug-hw-points.
16651 (handle_query): Process "set debug-hw-points".
16652 * server.h (debug_hw_points): Declare.
16653 (paddress): Declare.
16654 * utils.c (NUMCELLS, CELLSIZE): New macros.
16655 (get_sell, xsnprintf, paddress): New functions.
16656 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16657 remove_point, stopped_by_watchpoint, stopped_data_address.
16658 * win32-i386-low.c: Include i386-low.h.
16659 (debug_reg_state): Replaces dr.
16660 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16661 (i386_dr_low_get_status): New function.
16662 (i386_insert_point, i386_remove_point): New functions.
16663 (i386_stopped_by_watchpoint): New function.
16664 (i386_stopped_data_address): New function.
16665 (i386_initial_stuff): Update.
16666 (get_thread_context,set_thread_context,i386_thread_added): Update.
16667 (the_low_target): Add entries for insert_point,
16668 remove_point, stopped_by_watchpoint, stopped_data_address.
16669 * win32-low.c (win32_insert_watchpoint): New function.
16670 (win32_remove_watchpoint): New function.
16671 (win32_stopped_by_watchpoint): New function.
16672 (win32_stopped_data_address): New function.
16673 (win32_target_ops): Add entries for insert_watchpoint,
16674 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16675 * win32-low.h (win32_target_ops): New members insert_point,
16676 remove_point, stopped_by_watchpoint, stopped_data_address.
16677
16678 2009-06-25 Pedro Alves <pedro@codesourcery.com>
16679
16680 * server.c (process_serial_event): Re-return unsupported, not
16681 error, if the type isn't recognized. Re-allow supporting only
16682 insert or remove packets. Also call require_running for
16683 breakpoints. Add missing break statement to default case. Tidy.
16684 * target.h (struct target_ops): Rename insert_watchpoint to
16685 insert_point, and remove_watchpoint to remove_point.
16686
16687 * linux-low.h (struct linux_target_ops): Likewise.
16688 * linux-low.c (linux_insert_watchpoint): Rename to ...
16689 (linux_insert_point): ... this. Adjust.
16690 (linux_remove_watchpoint): Rename to ...
16691 (linux_remove_point): ... this. Adjust.
16692 (linux_target_ops): Adjust.
16693 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16694 (cris_insert_point): ... this.
16695 (cris_remove_watchpoint): Rename to ...
16696 (cris_remove_point): ... this.
16697 (the_low_target): Adjust.
16698
16699 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16700
16701 * server.c (handle_v_kill): Pass signal_pid to
16702 kill_inferior if multi_process is zero.
16703
16704 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16705
16706 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16707 * target.h (target_ops): Comment for *_watchpoint to make it clear
16708 the functions can get types '0' and '1'.
16709
16710 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16711
16712 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16713 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16714 * regcache.c (get_regcache): Likewise.
16715 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16716 * win32-low.c (child_fetch_inferior_registers): Remove check for
16717 regno 0.
16718
16719 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16720 Pedro Alves <pedro@codesourcery.com>
16721
16722 * target.h (struct target_ops) <supports_multi_process>: New
16723 callback.
16724 (target_supports_multi_process): New.
16725 * server.c (handle_query): Even if GDB reports support, only
16726 enable multi-process if the target also supports it. Report
16727 multi-process support only if the target backend supports it.
16728 * linux-low.c (linux_supports_multi_process): New function.
16729 (linux_target_ops): Install it as target_supports_multi_process
16730 callback.
16731
16732 2009-05-24 Doug Evans <dje@google.com>
16733
16734 Global renaming of find_thread_pid to find_thread_ptid.
16735 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16736 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16737 All callers updated.
16738
16739 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16740 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16741 directly.
16742
16743 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16744 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16745 (linux_resume_one_lwp): Ditto.
16746
16747 2009-05-23 Doug Evans <dje@google.com>
16748
16749 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16750 from struct inferior_list_entry * to struct lwp_info *.
16751 All callers updated.
16752
16753 2009-05-13 Doug Evans <dje@google.com>
16754
16755 * linux-x86-low.c: Don't include assert.h.
16756 (x86_siginfo_fixup): Use fatal, not assert.
16757 (x86_arch_setup): Fix comment.
16758
16759 2009-05-12 Doug Evans <dje@google.com>
16760
16761 Biarch support for i386/amd64 gdbserver.
16762 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16763 Add linux-x86-low.c.
16764 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16765 (linux-x86-low.o): Add.
16766 * linux-x86-64-low.c: Delete.
16767 * linux-i386-low.c: Delete.
16768 * linux-x86-low.c: New file.
16769 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16770 linux-x86-low.o.
16771 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16772 linux-x86-low.o.
16773 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16774 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16775 (linux_child_pid_to_exec_file): New function.
16776 (elf_64_header_p, elf_64_file_p): New functions.
16777 (siginfo_fixup): New function.
16778 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16779 give target a chance to convert layout.
16780 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16781 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16782
16783 2009-05-07 Doug Evans <dje@google.com>
16784
16785 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16786 (regsets_store_inferior_registers): Ditto.
16787
16788 2009-05-06 Pedro Alves <pedro@codesourcery.com>
16789
16790 PR server/10048
16791
16792 * linux-low.c (must_set_ptrace_flags): Delete.
16793 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16794 of the global.
16795 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16796 `lwp->must_set_ptrace_flags' instead.
16797 (linux_wait_for_event_1): Set ptrace options here.
16798 (linux_wait_1): ... not here.
16799
16800 2009-04-30 Doug Evans <dje@google.com>
16801
16802 * inferiors.c (started_inferior_callback): New function.
16803 (attached_inferior_callback): New function.
16804 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16805 * server.c (print_started_pid, print_attached_pid): New functions.
16806 (detach_or_kill_for_exit): New function.
16807 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16808 * server.h (have_started_inferiors_p): Declare.
16809 (have_attached_inferiors_p): Declare.
16810
16811 * inferiors.c (remove_process): Fix memory leak, free process.
16812 * linux-low.c (linux_remove_process): New function.
16813 (linux_kill): Call it instead of remove_process.
16814 (linux_detach, linux_wait_1): Ditto.
16815
16816 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16817
16818 * configure.srv: Add x86 Windows CE target.
16819
16820 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16821
16822 * inferiors.c (get_thread_process): Make global.
16823 * server.h (get_thread_process): Add prototype.
16824 * thread-db.c (find_one_thread): Use get_thread_process
16825 instead of current_process.
16826 (thread_db_get_tls_address): Do not crash if called when
16827 thread layer is not yet initialized.
16828
16829 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16830
16831 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16832 * spu-low.c (current_tid): Rename to ...
16833 (current_ptid): ... this.
16834 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16835 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16836 ptid_get_lwp (current_ptid) instead of current_tid.
16837 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16838 instead of current_tid. Use find_process_pid to verify pid
16839 argument is valid. Pass proper argument to remove_process.
16840 (spu_thread_alive): Compare current_ptid instead of current_tid.
16841 (spu_resume): Likewise.
16842
16843 2009-04-02 Pedro Alves <pedro@codesourcery.com>
16844
16845 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16846 variable.
16847
16848 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16849
16850 Implement the multiprocess extensions, and add linux multiprocess
16851 support.
16852
16853 * server.h (ULONGEST): Declare.
16854 (struct ptid, ptid_t): New.
16855 (minus_one_ptid, null_ptid): Declare.
16856 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16857 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16858 (struct inferior_list_entry): Change `id' type from unsigned from
16859 to ptid_t.
16860 (struct sym_cache, struct breakpoint, struct
16861 process_info_private): Forward declare.
16862 (struct process_info): Declare.
16863 (current_process): Declare.
16864 (all_processes): Declare.
16865 (initialize_inferiors): Declare.
16866 (add_thread): Adjust to use ptid_t.
16867 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16868 (add_process, remove_process, find_thread_pid): Declare.
16869 (find_inferior_id): Adjust to use ptid_t.
16870 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16871 (multi_process): Declare.
16872 (push_event): Adjust to use ptid_t.
16873 (read_ptid, write_ptid): Declare.
16874 (prepare_resume_reply): Adjust to use ptid_t.
16875 (clear_symbol_cache): Declare.
16876 * inferiors.c (all_processes): New.
16877 (null_ptid, minus_one_ptid): New.
16878 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16879 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16880 (add_thread): Change unsigned long to ptid. Remove gdb_id
16881 parameter. Adjust.
16882 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16883 (gdb_id_to_thread): Rename to ...
16884 (find_thread_pid): ... this. Change unsigned long to ptid.
16885 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16886 (loaded_dll, pull_pid_from_list): Adjust.
16887 (add_process, remove_process, find_process_pid)
16888 (get_thread_process, current_process, initialize_inferiors): New.
16889 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16890 (struct target_waitstatus) <related_pid>: Ditto.
16891 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16892 return type to int.
16893 (struct target_ops) <join>: Add `pid' argument.
16894 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16895 (struct target_ops) <wait>: Add `ptid' field. Change return type
16896 to ptid.
16897 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16898 (mywait): Add `ptid' argument. Change return type to ptid_t.
16899 (target_pid_to_str): Declare.
16900 * target.c (set_desired_inferior): Adjust to use ptids.
16901 (mywait): Add new `ptid' argument. Adjust.
16902 (target_pid_to_str): New.
16903 * mem-break.h (free_all_breakpoints): Declare.
16904 * mem-break.c (breakpoints): Delelete.
16905 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16906 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16907 to use per-process breakpoint list.
16908 (free_all_breakpoints): New.
16909 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16910 (symbol_cache, all_symbols_looked_up): Delete.
16911 (hexchars): New.
16912 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16913 read_ptid): New.
16914 (prepare_resume_reply): Change ptid argument's type from unsigned
16915 long to ptid_t. Adjust. Implement W;process and X;process.
16916 (free_sym_cache, clear_symbol_cache): New.
16917 (look_up_one_symbol): Adjust to per-process symbol cache. *
16918 * server.c (cont_thread, general_thread, step_thread): Change type
16919 to ptid_t.
16920 (attached): Delete.
16921 (multi_process): New.
16922 (last_ptid): Change type to ptid_t.
16923 (struct vstop_notif) <ptid>: Change type to ptid_t.
16924 (queue_stop_reply, push_event): Change `ptid' argument's type to
16925 ptid_t.
16926 (discard_queued_stop_replies): Add `pid' argument.
16927 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16928 changes. Don't reference the `attached' global.
16929 (attach_inferior): Adjust to mywait interface changes.
16930 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16931 features. Handle and report "multiprocess+". Handle
16932 "qAttached:PID".
16933 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16934 changes.
16935 (handle_v_kill): New.
16936 (handle_v_stopped): Adjust to use target_pid_to_str.
16937 (handle_v_requests): Allow multiple attaches and runs when
16938 multiprocess extensions are in effect. Handle "vKill".
16939 (myresume): Adjust to use ptids.
16940 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16941 (handle_status): Adjust to discard_queued_stop_replies interface
16942 change.
16943 (first_thread_of, kill_inferior_callback)
16944 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16945 (main): Call initialize_inferiors. Adjust to use ptids, killing
16946 and detaching from all inferiors. Handle multiprocess packet
16947 variants.
16948 * linux-low.h: Include gdb_proc_service.h.
16949 (struct process_info_private): New.
16950 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16951 <lwpid_of>: Use ptid_get_lwp.
16952 (get_lwp_thread): Adjust.
16953 (struct lwp_info): Add `dead' member.
16954 (find_lwp_pid): Declare.
16955 * linux-low.c (thread_db_active): Delete.
16956 (new_inferior): Adjust comment.
16957 (inferior_pid): Delete.
16958 (linux_add_process): New.
16959 (handle_extended_wait): Adjust.
16960 (add_lwp): Change unsigned long to ptid.
16961 (linux_create_inferior): Add process to processes table. Adjust
16962 to use ptids. Don't set new_inferior here.
16963 (linux_attach_lwp): Rename to ...
16964 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16965 it. Adjust to use ptids.
16966 (linux_attach_lwp): New.
16967 (linux_attach): Add process to processes table. Don't set
16968 new_inferior here.
16969 (struct counter): New.
16970 (second_thread_of_pid_p, last_thread_of_process_p): New.
16971 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16972 multiple processes.
16973 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16974 processes. Remove process from process table.
16975 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16976 to multiple processes.
16977 (any_thread_of): New.
16978 (linux_detach): Add `pid' argument, and handle it. Remove process
16979 from processes table.
16980 (linux_join): Add `pid' argument. Handle it.
16981 (linux_thread_alive): Change unsighed long argument to ptid_t.
16982 Consider dead lwps as not being alive.
16983 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16984 threads we're not interested in.
16985 (same_lwp, find_lwp_pid): New.
16986 (linux_wait_for_lwp): Change `pid' argument's type from int to
16987 ptid_t. Adjust.
16988 (linux_wait_for_event): Rename to ...
16989 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16990 from int to ptid_t. Adjust.
16991 (linux_wait_for_event): New.
16992 (linux_wait_1): Add `ptid' argument. Change return type to
16993 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16994 that exit from the process table.
16995 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16996 Adjust.
16997 (mark_lwp_dead): New.
16998 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16999 stopping all threads, mark its main lwp as dead.
17000 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
17001 ptids.
17002 (fetch_register, usr_store_inferior_registers)
17003 (regsets_fetch_inferior_registers)
17004 (regsets_store_inferior_registers, linux_read_memory)
17005 (linux_write_memory): Inline `inferior_pid'.
17006 (linux_look_up_symbols): Adjust to use per-process
17007 `thread_db_active'.
17008 (linux_request_interrupt): Adjust to use ptids.
17009 (linux_read_auxv): Inline `inferior_pid'.
17010 (initialize_low): Don't reference thread_db_active.
17011 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
17012 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
17013 (ps_getpid): Return the pid of the current inferior.
17014 * thread-db.c (proc_handle, thread_agent): Delete.
17015 (thread_db_create_event, thread_db_enable_reporting): Adjust to
17016 per-process data.
17017 (find_one_thread): Change argument type to ptid_t. Adjust to
17018 per-process data.
17019 (maybe_attach_thread): Adjust to per-process data and ptids.
17020 (thread_db_find_new_threads): Ditto.
17021 (thread_db_init): Ditto.
17022 * spu-low.c (spu_create_inferior, spu_attach): Add process to
17023 processes table. Adjust to use ptids.
17024 (spu_kill, spu_detach): Adjust interface. Remove process from
17025 processes table.
17026 (spu_join, spu_thread_alive): Adjust interface.
17027 (spu_wait): Adjust interface. Remove process from processes
17028 table. Adjust to use ptids.
17029 * win32-low.c (current_inferior_tid): Delete.
17030 (current_inferior_ptid): New.
17031 (debug_event_ptid): New.
17032 (thread_rec): Take a ptid. Adjust.
17033 (child_add_thread): Add `pid' argument. Adjust to use ptids.
17034 (child_delete_thread): Ditto.
17035 (do_initial_child_stuff): Add `attached' argument. Add process to
17036 processes table.
17037 (child_fetch_inferior_registers, child_store_inferior_registers):
17038 Adjust.
17039 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
17040 (win32_attach): Pass 1 to do_initial_child_stuff.
17041 (win32_kill): Adjust interface. Remove process from processes
17042 table.
17043 (win32_detach): Ditto.
17044 (win32_join): Adjust interface.
17045 (win32_thread_alive): Take a ptid.
17046 (win32_resume): Adjust to use ptids.
17047 (get_child_debug_event): Ditto.
17048 (win32_wait): Adjust interface. Remove exiting process from
17049 processes table.
17050
17051 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17052
17053 Non-stop mode support.
17054
17055 * server.h (non_stop): Declare.
17056 (gdb_client_data, handler_func): Declare.
17057 (delete_file_handler, add_file_handler, start_event_loop):
17058 Declare.
17059 (handle_serial_event, handle_target_event, push_event)
17060 (putpkt_notif): Declare.
17061 * target.h (enum resume_kind): New.
17062 (struct thread_resume): Replace `step' field by `kind' field.
17063 (TARGET_WNOHANG): Define.
17064 (struct target_ops) <wait>: Add `options' argument.
17065 <supports_non_stop, async, start_non_stop>: New fields.
17066 (target_supports_non_stop, target_async): New.
17067 (start_non_stop): Declare.
17068 (mywait): Add `options' argument.
17069 * target.c (mywait): Add `options' argument. Print child exit
17070 notifications here.
17071 (start_non_stop): New.
17072 * server.c (non_stop, own_buf, mem_buf): New globals.
17073 (struct vstop_notif): New.
17074 (notif_queue): New global.
17075 (queue_stop_reply, push_event, discard_queued_stop_replies)
17076 (send_next_stop_reply): New.
17077 (start_inferior): Adjust to use resume_kind. Adjust to mywait
17078 interface changes.
17079 (attach_inferior): In non-stop mode, don't wait for the target
17080 here.
17081 (handle_general_set): Handle QNonStop.
17082 (handle_query): When handling qC, return the current general
17083 thread, instead of the first thread of the list.
17084 (handle_query): If the backend supports non-stop mode, include
17085 QNonStop+ in the qSupported query response.
17086 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
17087 and non-stop mode.
17088 (handle_v_attach, handle_v_run): Handle non-stop mode.
17089 (handle_v_stopped): New.
17090 (handle_v_requests): Report support for vCont;t. Handle vStopped.
17091 (myresume): Adjust to use resume_kind. Handle non-stop.
17092 (queue_stop_reply_callback): New.
17093 (handle_status): Handle non-stop mode.
17094 (main): Clear non_stop flag on reconnection. Use the event-loop.
17095 Refactor serial protocol handling from here ...
17096 (process_serial_event): ... to this new function. When GDB
17097 selects any thread, select one here. In non-stop mode, wait until
17098 GDB acks all pending events before exiting.
17099 (handle_serial_event, handle_target_event): New.
17100 * remote-utils.c (remote_open): Install remote_desc in the event
17101 loop.
17102 (remote_close): Remove remote_desc from the event loop.
17103 (putpkt_binary): Rename to...
17104 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17105 (putpkt_binary): New as wrapper around putpkt_binary_1.
17106 (putpkt_notif): New.
17107 (prepare_resume_reply): In non-stop mode, don't change the
17108 general_thread.
17109 * event-loop.c: New.
17110 * Makefile.in (OBJ): Add event-loop.o.
17111 (event-loop.o): New rule.
17112
17113 * linux-low.h (pid_of): Moved here.
17114 (lwpid_of): New.
17115 (get_lwp_thread): Use lwpid_of.
17116 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17117 * linux-low.c (pid_of): Delete.
17118 (inferior_pid): Use lwpid_of.
17119 (linux_event_pipe): New.
17120 (target_is_async_p): New.
17121 (delete_lwp): New.
17122 (handle_extended_wait): Use lwpid_of.
17123 (add_lwp): Don't set lwpid field.
17124 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17125 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17126 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17127 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17128 first. Adjust to linux_wait_for_event interface changes. Use
17129 lwpid_of.
17130 (linux_detach): Don't delete the main lwp here.
17131 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17132 (status_pending_p): Don't consider explicitly suspended lwps.
17133 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17134 pointer. Add OPTIONS argument. Change return type to int. Use
17135 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17136 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17137 pointer. Add status pointer argument. Return a pid instead of a
17138 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17139 changes. In non-stop mode, don't switch to a random thread.
17140 (linux_wait): Rename to...
17141 (linux_wait_1): ... this. Add target_options argument, and handle
17142 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17143 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17144 clean exit and signal exit code. Don't stop all threads in
17145 non-stop mode. In all-stop mode, only stop all threads when
17146 reporting a stop to GDB. Handle explicit thread stop requests.
17147 (async_file_flush, async_file_mark): New.
17148 (linux_wait): New.
17149 (send_sigstop): Use lwpid_of.
17150 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17151 interface changes. In non-stop mode, don't switch to a random
17152 thread.
17153 (linux_resume_one_lwp): Use lwpid_of.
17154 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17155 (linux_resume_one_thread): ... this. Handle resume_stop. In
17156 non-stop mode, don't look for pending flag in all threads.
17157 (resume_status_pending_p): Don't consider explicitly suspended
17158 threads.
17159 (my_waitpid): Reimplement. Emulate __WALL.
17160 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17161 Use lwpid_of.
17162 (sigchld_handler, linux_supports_non_stop, linux_async)
17163 (linux_start_non_stop): New.
17164 (linux_target_ops): Register linux_supports_non_stop, linux_async
17165 and linux_start_non_stop.
17166 (initialize_low): Install SIGCHLD handler.
17167 * thread-db.c (thread_db_create_event, find_one_thread)
17168 (thread_db_get_tls_address): Use lwpid_of.
17169 * win32-low.c (win32_detach): Adjust to use resume_kind.
17170 (win32_wait): Add `options' argument.
17171 * spu-low.c (spu_resume): Adjust to use resume_kind.
17172 (spu_wait): Add `options' argument.
17173
17174 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17175
17176 Decouple target code from remote protocol.
17177
17178 * target.h (enum target_waitkind): New.
17179 (struct target_waitstatus): New.
17180 (struct target_ops) <wait>: Return an unsigned long. Take a
17181 target_waitstatus pointer instead of a char pointer.
17182 (mywait): Likewise.
17183 * target.c (mywait): Change prototype to return an unsigned long.
17184 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17185 * server.h (thread_from_wait, old_thread_from_wait): Delete
17186 declarations.
17187 (prepare_resume_reply): Change prototype to take a
17188 target_waitstatus.
17189 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17190 (last_status, last_ptid): New.
17191 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17192 pid instead of a signal.
17193 (attach_inferior): Remove "status" and "signal" parameters.
17194 Adjust.
17195 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17196 not as an address.
17197 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17198 (handle_v_requests, myresume): Remove "status" and "signal"
17199 parameters. Adjust.
17200 (handle_status): New.
17201 (main): Delete local `status'. Adjust.
17202 * remote-utils.c: Include target.h.
17203 (prepare_resume_reply): Change prototype to take a
17204 target_waitstatus. Adjust.
17205
17206 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17207 interface.
17208 * spu-low.c (spu_wait): Adjust.
17209 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17210 Delete.
17211 (win32_wait): Adjust.
17212
17213 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17214
17215 * target.h (struct thread_resume): Delete leave_stopped member.
17216 (struct target_ops): Add a `n' argument to the `resume' callback.
17217 * server.c (start_inferior): Adjust.
17218 (handle_v_cont, myresume): Adjust.
17219 * linux-low.c (check_removed_breakpoint): Adjust to resume
17220 interface change, and to removed leave_stopped field.
17221 (resume_ptr): Delete.
17222 (struct thread_resume_array): New.
17223 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17224 resume interface change.
17225 (linux_continue_one_thread, linux_queue_one_thread)
17226 (resume_status_pending_p): Check if the resume field is NULL
17227 instead of checking the leave_stopped member.
17228 (linux_resume): Adjust to the target resume interface change.
17229 * spu-low.c (spu_resume): Adjust to the target resume interface
17230 change.
17231 * win32-low.c (win32_detach, win32_resume): Ditto.
17232
17233 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17234
17235 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17236 flag.
17237 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17238 pending.
17239 (linux_continue_one_thread): Only preserve the stepping flag if
17240 there's a pending breakpoint.
17241
17242 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17243
17244 * server.c (main): After the inferior having exited, call
17245 remote_close before exiting gdbserver.
17246
17247 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17248
17249 Fix size of FPSCR in Power 7 processors.
17250 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17251 (PPC_FEATURE_HAS_DFP): New #define.
17252 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17253 size of the FPSCR.
17254
17255 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17256
17257 * server.c (handle_query) Whitespace and formatting.
17258
17259 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17260
17261 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17262 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17263 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17264 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17265 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17266 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17267 Makefile.in, configure.ac: Fix whitespace throughout.
17268 * configure: Regenerate.
17269
17270 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17271
17272 * inferiors.c (find_inferior): Make it safe for the callback
17273 function to delete the currently iterated inferior.
17274
17275 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17276
17277 * Makefile.in (linuw_low_h): Move higher.
17278 (thread-db.o): Depend on $(linux_low_h).
17279
17280 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17281
17282 Rename "process" to "lwp" throughout.
17283
17284 * linux-low.c (all_processes): Rename to...
17285 (all_lwps): ... this.
17286 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17287 (add_process): Rename to ...
17288 (add_lwp): ... this. Adjust.
17289 (linux_create_inferior): Adjust.
17290 (linux_attach_lwp): Adjust.
17291 (linux_attach): Adjust.
17292 (linux_kill_one_process): Rename to ...
17293 (linux_kill_one_lwp): ... this. Adjust.
17294 (linux_kill): Adjust.
17295 (linux_detach_one_process): Rename to ...
17296 (linux_detach_one_lwp): ... this. Adjust.
17297 (linux_detach): Adjust.
17298 (check_removed_breakpoint): Adjust.
17299 (status_pending_p): Adjust.
17300 (linux_wait_for_process): Rename to ...
17301 (linux_wait_for_lwp): ... this. Adjust.
17302 (linux_wait_for_event): Adjust.
17303 (send_sigstop): Adjust.
17304 (wait_for_sigstop): Adjust.
17305 (stop_all_processes): Rename to ...
17306 (stop_all_lwps): ... this.
17307 (linux_resume_one_process): Rename to ...
17308 (linux_resume_one_lwp): ... this. Adjust.
17309 (linux_set_resume_request, linux_continue_one_thread)
17310 (linux_queue_one_thread, resume_status_pending_p)
17311 (usr_store_inferior_registers, regsets_store_inferior_registers)
17312 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17313 Adjust.
17314 * linux-low.h (get_process): Rename to ...
17315 (get_lwp): ... this. Adjust.
17316 (get_thread_process): Rename to ...
17317 (get_thread_lwp): ... this. Adjust.
17318 (get_process_thread): Rename to ...
17319 (get_lwp_thread): ... this. Adjust.
17320 (struct process_info): Rename to ...
17321 (struct lwp_info): ... this.
17322 (all_processes): Rename to ...
17323 (all_lwps): ... this.
17324 * proc-service.c (ps_lgetregs): Adjust.
17325 * thread-db.c (thread_db_create_event, find_one_thread)
17326 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17327
17328 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17329
17330 * server.c (handle_query): Handle "qAttached".
17331
17332 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17333
17334 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17335 GPLv3, update license URL.
17336
17337 2009-03-01 Doug Evans <dje@google.com>
17338
17339 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17340 (server_h): Add gdb_signals.h.
17341 (signals.o): Update.
17342 * server.h (target_signal_from_host,target_signal_to_host_p)
17343 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17344
17345 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17346
17347 * remote-utils.c (getpkt): Also generate remote-debug
17348 information if noack_mode is set.
17349
17350 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17351
17352 * server.c (handle_query): Report qXfer:siginfo:read and
17353 qXfer:siginfo:write as supported and handle them.
17354 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17355 * linux-low.c (linux_xfer_siginfo): New.
17356 (linux_target_ops): Set it.
17357
17358 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17359
17360 * server.c (gdbserver_usage): Mention --remote-debug.
17361 (main): Accept '--remote-debug' switch.
17362
17363 2009-01-18 Doug Evans <dje@google.com>
17364
17365 * regcache.c (new_register_cache): No need to check result of xcalloc.
17366 * server.c (handle_search_memory): Back out calls to xmalloc,
17367 result is checked and error is returned to user upon failure.
17368 (handle_query): Ditto. Add more checks for result of malloc.
17369 (handle_v_cont): Check result of malloc, report error back to
17370 user upon failure.
17371 (handle_v_run): Ditto. Call freeargv.
17372 * server.h (freeargv): Declare.
17373 * utils.c (freeargv): New fn.
17374
17375 2009-01-15 Doug Evans <dje@google.com>
17376
17377 * gdbreplay.c (perror_with_name): Make arg const char *.
17378 * server.h (target_signal_to_name): Make return type const char *.
17379 * thread-db.c (thread_db_err_str): Make return type const char *.
17380 * utils.c (perror_with_name): Make arg const char *.
17381
17382 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17383
17384 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17385 when handling a EXIT_PROCESS_DEBUG_EVENT.
17386
17387 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17388
17389 * gdbreplay.c (gdbreplay_version): Update copyright year.
17390 * server.c (gdbserver_version): Likewise.
17391
17392 2009-01-05 Doug Evans <dje@google.com>
17393
17394 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17395 (handle_extended_wait): Improve comment.
17396
17397 2008-12-13 Doug Evans <dje@google.com>
17398
17399 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17400 * server.h (ATTR_MALLOC): New macro.
17401 (xmalloc,xcalloc,xstrdup): Declare.
17402 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17403 * inferiors.c: Ditto.
17404 * linux-low.c: Ditto.
17405 * mem-break.c: Ditto.
17406 * regcache.c: Ditto.
17407 * remote-utils.c: Ditto.
17408 * server.c: Ditto.
17409 * target.c: Ditto.
17410 * win32-low.c: Ditto.
17411
17412 2008-12-12 Doug Evans <dje@google.com>
17413
17414 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17415 in debugging printf.
17416
17417 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17418
17419 2008-12-09 Doug Evans <dje@google.com>
17420
17421 * linux-low.h (struct process_info): Delete member tid, unused.
17422 * thread-db.c (find_one_thread): Update.
17423 (maybe_attach_thread): Update.
17424
17425 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17426
17427 * target.h (struct target_ops): Add qxfer_osdata member.
17428 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17429 and dirent.h.
17430 (linux_qxfer_osdata): New functions.
17431 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17432 callback.
17433 * server.c (handle_query): Handle "qXfer:osdata:read:".
17434 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17435 (buffer_xml_printf): New functions.
17436 * server.h (struct buffer): New.
17437 (buffer_grow_str, buffer_grow_str0): New macros.
17438 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17439 (buffer_xml_printf): Declare.
17440
17441 2008-11-24 Doug Evans <dje@google.com>
17442
17443 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17444
17445 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17446
17447 * server.c (handle_v_run): Always use the supplied argument list.
17448
17449 2008-11-19 Bob Wilson <bob.wilson@acm.org>
17450
17451 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17452 (xtensa_regmap_table): Add entry for scompare1.
17453
17454 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17455
17456 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17457 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17458 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17459 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17460 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17461 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17462 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17463 XML target descriptions.
17464 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17465 when inferior is running on an ISA 2.05 or later processor. Add
17466 special case to return offset for full 64-bit slot of FPSCR when
17467 in 32-bits.
17468
17469 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17470
17471 * Makefile.in (SFILES, clean): Added sparc64 files.
17472 (reg-sparc64.o, reg-sparc64.c): New.
17473 * configure.srv (sparc*-*-linux*): New configuration.
17474 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17475 syscall arguments for SPARC.
17476 (regsets_store_inferior_registers): Likewise.
17477 * linux-sparc-low.c: New file.
17478
17479 2008-10-21 Doug Evans <dje@google.com>
17480
17481 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17482 (READLINE_DIR,READLINE_DEP): Delete.
17483 (INTERNAL_CFLAGS): Update.
17484 (LINTFLAGS): Update.
17485
17486 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17487
17488 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17489 whole argv from the last run, not just argv[0].
17490
17491 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17492
17493 * regcache.c (new_register_cache): Return NULL if the register
17494 cache size isn't known yet.
17495 (free_register_cache): Avoid dereferencing a NULL regcache.
17496
17497 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17498
17499 * configure.srv: Merge MIPS and MIPS64.
17500
17501 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17502
17503 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17504
17505 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17506
17507 * Makefile.in: Add required vsx dependencies.
17508
17509 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17510 Declare init_registers_powerpc_vsx32l.
17511 Declare init_registers_powerpc_vsx64l.
17512 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17513 (ppc_arch_setup): Check for VSX in hwcap.
17514 (ppc_fill_vsxregset): New function.
17515 (ppc_store_vsxregset): New function.
17516 Add new VSX entry in regset_info target_regsets.
17517
17518 * configure.srv: Add new VSX dependencies.
17519
17520 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17521
17522 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17523 (remote_open): Set or clear transport_is_reliable.
17524 (putpkt_binary): Don't expect acks in noack mode.
17525 (getpkt): Don't send ack/nac in noack mode.
17526 * server.c (handle_general_set): Handle QStartNoAckMode.
17527 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17528 qSupported.
17529 (main): Reset noack_mode on every connection.
17530 * server.h (noack_mode): Declare.
17531
17532 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17533
17534 * Makefile.in (GDBREPLAY_OBS): New variable.
17535 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17536
17537 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17538 Daniel Jacobowitz <dan@codesourcery.com>
17539
17540 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17541 (usr_store_inferior_registers): Likewise.
17542 (regsets_store_inferior_registers): Likewise.
17543
17544 2008-07-31 Rolf Jansen <rj@surtec.com>
17545 Pedro Alves <pedro@codesourcery.com>
17546
17547 * configure.ac: Check for memmem declaration.
17548 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17549 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17550 (disable_packet_qfThreadInfo): Unconditionally compile.
17551 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17552 * configure, config.in: Regenerate.
17553
17554 2008-07-28 Doug Kwan <dougkwan@google.com>
17555
17556 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17557 (linux_write_memory): Remove declaration of errno.
17558
17559 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17560
17561 * linux-low.c (handle_extended_wait): Do not use "status"
17562 variable uninitialized.
17563
17564 2008-07-07 Pedro Alves <pedro@codesourcery.com>
17565
17566 * server.c (handle_v_attach): Inhibit reporting dll changes.
17567
17568 2008-06-27 Pedro Alves <pedro@codesourcery.com>
17569
17570 * remote-utils.c (prepare_resume_reply): If requested, don't
17571 output "thread:TID" in the T stop reply.
17572
17573 * server.c (disable_packet_vCont, disable_packet_Tthread)
17574 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17575 (handle_query): If requested, disable support for qC, qfThreadInfo
17576 and qsThreadInfo.
17577 (handle_v_requests): If requested, disable support for vCont.
17578 (gdbserver_show_disableable): New.
17579 (main): Handle --disable-packet and --disable-packet=LIST.
17580
17581 * server.h (disable_packet_vCont, disable_packet_Tthread)
17582 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17583
17584 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17585
17586 * server.c (gdbserver_usage): Mention --version.
17587
17588 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17589
17590 * Makefile.in (gdbreplay.o): New rule.
17591
17592 2008-06-06 Joseph Myers <joseph@codesourcery.com>
17593
17594 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17595 message, not gdbserver.
17596
17597 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
17598 Nathan Sidwell <nathan@codesourcery.com>
17599 Joseph Myers <joseph@codesourcery.com>
17600
17601 * acinclude.m4: Include ../../config/acx.m4.
17602 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17603 * configure, config.in: Regenerate.
17604 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17605 * server.c (gdbserver_version): Print PKGVERSION.
17606 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17607 (main): Adjust gdbserver_usage calls.
17608 * gdbreplay.c (version, host_name): Add declarations.
17609 (gdbreplay_version, gdbreplay_usage): New.
17610 (main): Accept --version and --help options.
17611
17612 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17613
17614 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17615 (arm_breakpoint_at): Handle Thumb.
17616 (the_low_target): Add comment.
17617
17618 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17619
17620 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17621
17622 2008-05-09 Doug Evans <dje@google.com>
17623
17624 * server.h (decode_search_memory_packet): Declare.
17625 * remote-utils.c (decode_search_memory_packet): New fn.
17626 * server.c (handle_search_memory_1): New fn.
17627 (handle_search_memory): New fn.
17628 (handle_query): Process qSearch:memory packets.
17629
17630 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17631
17632 * regcache.c (registers_length): Remove.
17633 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17634 full register packet.
17635 * regcache.h (registers_length): Remove prototype.
17636 * server.h (PBUFSIZ): Define to 16384.
17637
17638 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17639
17640 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17641 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17642 powerpc-64l.o, and powerpc-altivec64l.o.
17643 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17644 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17645 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17646 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17647 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17648 to srv_xmlfiles.
17649
17650 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17651 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17652 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17653 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17654 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17655 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17656 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17657 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17658 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17659 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17660 (clean): Update.
17661
17662 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17663 (init_registers_powerpc_32l): ... this new prototype.
17664 (init_registers_powerpc_32): Remove, replace by ...
17665 (init_registers_powerpc_altivec32l): ... this new prototype.
17666 (init_registers_powerpc_e500): Remove, replace by ...
17667 (init_registers_powerpc_e500l): ... this new prototype.
17668 (init_registers_ppc64): Remove, replace by ...
17669 (init_registers_powerpc_64l): ... this new prototype.
17670 (init_registers_powerpc_64): Remove, replace by ...
17671 (init_registers_powerpc_altivec64l): ... this new prototype.
17672 (ppc_num_regs): Set to 73.
17673 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17674 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17675 (ppc_cannot_store_register): Handle orig_r3 and trap.
17676 (ppc_arch_setup): Update init_registers_... calls.
17677 (ppc_fill_gregset): Handle orig_r3 and trap.
17678
17679 * inferiors.c (clear_inferiors): Reset current_inferior.
17680
17681 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17682
17683 * acinclude.m4: Add override.m4.
17684 * configure: Regenerate.
17685
17686 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17687
17688 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17689 initial call to init_register_ppc64.
17690
17691 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17692
17693 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17694 single powerpc*-*-linux* case.
17695 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17696
17697 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17698
17699 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
17700 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
17701 from reg_xmlfiles.
17702 * linux-ppc-low.c: Include <elf.h>.
17703 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17704 (ppc_hwcap): New global variable.
17705 (ppc_regmap): Remove __SPE__ #ifdef sections.
17706 (ppc_regmap_e500): New global variable.
17707 (ppc_cannot_store_register): Update __SPE__ special case.
17708 (ppc_get_hwcap): New function.
17709 (ppc_arch_setup): Use it to determine whether inferior supports
17710 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17711 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17712 Do not access registers if target does not support AltiVec.
17713 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17714 Do not access registers if target does not support SPE.
17715 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17716
17717 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17718
17719 * linux-low.c (disabled_regsets, num_regsets): New.
17720 (use_regsets_p): Delete.
17721 (linux_wait_for_process): Clear disabled_regsets.
17722 (regsets_fetch_inferior_registers): Check and set it.
17723 (regsets_store_inferior_registers): Likewise.
17724 (linux_fetch_registers, linux_store_registers): Do not use
17725 use_regsets_p.
17726 (initialize_low): Allocate disabled_regsets.
17727
17728 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17729
17730 * Makefile.in (LIBOBJS): New.
17731 (OBS): Use LIBOBJS.
17732 (memmem.o): New rule.
17733 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17734 * configure: Regenerated.
17735
17736 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17737
17738 * server.c (handle_query): Never return "unsupported" for
17739 qXfer:features:read queries.
17740
17741 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17742
17743 * server.c (get_features_xml): Fix inverted condition.
17744 (handle_query): Always support qXfer:feature:read.
17745
17746 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17747
17748 * server.c (wrapper_argv): New.
17749 (start_inferior): Handle wrapper_argv. If set, expect an extra
17750 trap.
17751 (gdbserver_usage): Document --wrapper.
17752 (main): Parse --wrapper.
17753
17754 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17755
17756 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17757 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17758 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17759 (ppc_set_pc): Likewise.
17760 (ppc_arch_setup): New function.
17761 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17762 of collect_register.
17763 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
17764
17765 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17766
17767 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17768 instead of linux-ppc64-low.o.
17769 * linux-ppc64-low.c: Remove file.
17770 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17771 (linux-ppc64-low.o): Remove rule.
17772
17773 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17774 (init_registers_powerpc_64): Likewise.
17775 (ppc_regmap): Conditionally define depending on __powerpc64__.
17776 (ppc_cannot_store_register): Do not special-case "fpscr" when
17777 compiled on __powerpc64__.
17778 (ppc_collect_ptrace_register): New function.
17779 (ppc_supply_ptrace_register): New function.
17780 (ppc_breakpoint): Change type to "unsigned int".
17781 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17782 (the_low_target): Conditionally provide initializers for the
17783 arch_setup member depending on __powerpc64__. Install
17784 collect_ptrace_register and supply_ptrace_register members.
17785
17786 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17787
17788 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17789 * server.c (gdbserver_xmltarget): Define.
17790 (get_features_xml): Use it to replace "target.xml" and arch_string.
17791
17792 * configure.srv: Remove srv_xmltarget. Add XML files that were
17793 mentioned there to srv_xmlfiles instead. Remove conditional tests
17794 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17795 srv_xmlfiles and srv_regobj to include all possible choices.
17796 * configure.ac (srv_xmltarget): Remove.
17797 (srv_xmlfiles): Do not add "target.xml".
17798 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17799 checks for supplementary target information.
17800 * configure: Regenerate.
17801 * Makefile.in (XML_TARGET): Remove.
17802 (target.xml): Remove rule.
17803 (clean): Do not clean up target.xml.
17804 (.PRECIOUS): Do not mention target.xml.
17805
17806 * target.h (struct target_ops): Remove arch_string member.
17807 * linux-low.c (linux_arch_string): Remove.
17808 (linux_target_ops): Remove arch_string initializer.
17809 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17810 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17811 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17812 * spu-low.c (spu_arch_string): Remove.
17813 (spu_target_ops): Remove arch_string initializer.
17814 * win32-low.c (win32_arch_string): Remove.
17815 (win32_target_ops): Remove arch_string initializer.
17816 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17817 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17818 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17819
17820 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17821
17822 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17823 by collect_ptrace_register and supply_ptrace_register hooks.
17824 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17825 instead of checking for the_low_target.left_pad_xfer.
17826 (usr_store_inferior_registers): Use collect_ptrace_register callback
17827 instead of checking for the_low_target.left_pad_xfer.
17828
17829 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17830 (s390_supply_ptrace_register): Likewise.
17831 (s390_fill_gregset): Call s390_collect_ptrace_register.
17832 (the_low_target): Update.
17833
17834 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17835 (ppc_supply_ptrace_register): Likewise.
17836 (the_low_target): Update.
17837
17838 * linux-i386-low.c (the_low_target): Update.
17839 * linux-x86-64-low.c (the_low_target): Update.
17840
17841 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17842
17843 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17844 reg-s390.o and reg-s390x.o.
17845
17846 * linux-low.c (new_inferior): New global variable.
17847 (linux_create_inferior, linux_attach): Set it.
17848 (linux_wait_for_process): Call the_low_target.arch_setup after the
17849 target has stopped for the first time.
17850 (initialize_low): Do not call the_low_target.arch_setup.
17851
17852 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17853 (s390_set_pc): Likewise.
17854 (s390_arch_setup): New function.
17855 (the_low_target): Use s390_arch_setup as arch_setup routine.
17856
17857 * regcache.c (realloc_register_cache): New function.
17858 (set_register_cache): Call it for each existing regcache.
17859
17860 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17861
17862 * server.h (init_registers): Remove prototype.
17863
17864 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17865 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17866 instead of init_registers ().
17867 * linux-arm-low.c (init_registers_arm): Add prototype.
17868 (init_registers_arm_with_iwmmxt): Likewise.
17869 (the_low_target): Add initializer for arch_setup field.
17870 * linux-cris-low.c (init_registers_cris): Add prototype.
17871 (the_low_target): Add initializer for arch_setup field.
17872 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17873 (the_low_target): Add initializer for arch_setup field.
17874 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17875 (the_low_target): Add initializer for arch_setup field.
17876 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17877 (the_low_target): Add initializer for arch_setup field.
17878 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17879 (the_low_target): Add initializer for arch_setup field.
17880 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17881 (the_low_target): Add initializer for arch_setup field.
17882 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17883 (init_registers_mips64_linux): Likewise.
17884 (the_low_target): Add initializer for arch_setup field.
17885 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17886 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17887 (the_low_target): Add initializer for arch_setup field.
17888 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17889 (init_registers_powerpc_64): Likewise.
17890 (the_low_target): Add initializer for arch_setup field.
17891 * linux-s390-low.c (init_registers_s390): Add prototype.
17892 (init_registers_s390x): Likewise.
17893 (the_low_target): Add initializer for arch_setup field.
17894 * linux-sh-low.c (init_registers_sh): Add prototype.
17895 (the_low_target): Add initializer for arch_setup field.
17896 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17897 (the_low_target): Add initializer for arch_setup field.
17898 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17899 (the_low_target): Add initializer for arch_setup field.
17900
17901 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17902 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17903 instead of init_registers ().
17904 * win32-arm-low.c (init_registers_arm): Add prototype.
17905 (the_low_target): Add initializer for arch_setup field.
17906 * win32-i386-low.c (init_registers_i386): Add prototype.
17907 (the_low_target): Add initializer for arch_setup field.
17908
17909 * spu-low.c (init_registers_spu): Add prototype.
17910 (initialize_low): Call initialie_registers_spu () instead of
17911 initialize_registers ().
17912
17913 2008-02-19 Pedro Alves <pedro@codesourcery.com>
17914
17915 * server.c (handle_v_requests): When handling the vRun and vAttach
17916 packets, if already debugging a process, don't kill it. Return an
17917 error instead.
17918
17919 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17920
17921 * server.c (handle_query): Correct length check.
17922
17923 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17924
17925 * win32-low.c (do_initial_child_stuff): Add process handle
17926 parameter. Set current_process_handle and current_process_id from the
17927 parameters. Clear globals.
17928 (win32_create_inferior): Don't set current_process_handle and
17929 current_process_id here. Instead pass them on the call to
17930 do_initial_child_stuff.
17931 (win32_attach): Likewise.
17932 (win32_clear_inferiors): New.
17933 (win32_kill): Don't close the current process handle or the
17934 current thread handle here. Instead call win32_clear_inferiors.
17935 (win32_detach): Don't open a new handle to the process. Call
17936 win32_clear_inferiors.
17937 (win32_join): Don't rely on current_process_handle; open a new
17938 handle using the process id.
17939 (win32_wait): Call win32_clear_inferiors when the inferior process
17940 has exited.
17941
17942 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17943
17944 * server.c (monitor_show_help): Add "exit".
17945
17946 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17947
17948 * Makefile.in (SFILES): Add linux-xtensa-low.c.
17949 (clean): Add reg-xtensa.c.
17950 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
17951 * configure.srv (xtensa*-*-linux*) New target.
17952 * linux-xtensa-low.c: New.
17953 * xtensa-xtregs.c: New.
17954
17955 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17956
17957 * hostio.c: Don't include errno.h.
17958 (errno_to_fileio_errno): Move to hostio-errno.
17959 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17960 error number outputting to the target->hostio_last_error callback.
17961 (hostio_packet_error): Use FILEIO_EINVAL directly.
17962 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17963 calls to hostio_error.
17964 * hostio-errno.c: New.
17965 * server.h (hostio_last_error_from_errno): Declare.
17966 * target.h (target_ops): Add hostio_last_error member.
17967 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17968 as hostio_last_error handler.
17969 * spu-low.c (spu_target_ops): Likewise.
17970 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17971 (wince_hostio_last_error): New functions.
17972 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17973 as hostio_last_error handler.
17974 (win32_target_ops) [!_WIN32_WCE]: Register
17975 hostio_last_error_from_errno as hostio_last_error handler.
17976 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17977 (hostio-errno.o): New rule.
17978 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17979 * configure.srv (srv_hostio_err_objs): New variable. Default to
17980 hostio-errno.o.
17981 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17982 * configure: Regenerate.
17983
17984 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17985
17986 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17987 (linux_kill, linux_detach): Clean up the process list.
17988 * remote-utils.c (remote_open): Improve port number parsing.
17989 (putpkt_binary, input_interrupt): Only send interrupts if the target
17990 is running.
17991 * server.c (extended_protocol): Make static.
17992 (attached): Define earlier.
17993 (exit_requested, response_needed, program_argv): New variables.
17994 (target_running): New.
17995 (start_inferior): Clear attached here.
17996 (attach_inferior): Set attached here.
17997 (require_running): Define.
17998 (handle_query): Use require_running and target_running. Implement
17999 "monitor exit".
18000 (handle_v_attach, handle_v_run): New.
18001 (handle_v_requests): Use require_running. Handle vAttach and vRun.
18002 (gdbserver_usage): Update.
18003 (main): Redo argument parsing. Handle --debug and --multi. Handle
18004 --attach along with other options or after the port. Save
18005 program_argv. Support no initial program. Resynchronize
18006 communication with GDB after an error. Handle "monitor exit".
18007 Use require_running and target_running. Always allow the extended
18008 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
18009 restart in extended mode.
18010 * README: Refer to the GDB manual. Update --attach usage.
18011
18012 2007-12-20 Andreas Schwab <schwab@suse.de>
18013
18014 * linux-low.c (STACK_SIZE): Define.
18015 (linux_tracefork_child): Use it. Use __clone2 on ia64.
18016 (linux_test_for_tracefork): Likewise.
18017
18018 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
18019
18020 * linux-low.c (linux_wait_for_event): Update messages. Do not
18021 reinsert auto-delete breakpoints.
18022 * mem-break.c (struct breakpoint): Change return type of handler to
18023 int.
18024 (set_breakpoint_at): Update handler type.
18025 (reinsert_breakpoint_handler): Return 1 instead of calling
18026 delete_breakpoint.
18027 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
18028 setting a new one.
18029 (check_breakpoints): Delete auto-delete breakpoints and return 2.
18030 * mem-break.h (set_breakpoint_at): Update handler type.
18031 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
18032 * win32-low.c (auto_delete_breakpoint): New.
18033 (get_child_debug_event): Use it.
18034
18035 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
18036
18037 * configure.ac: Check for pread and pwrite.
18038 * hostio.c (handle_pread): Fall back to lseek and read.
18039 (handle_pwrite): Fall back to lseek and write.
18040 * config.in, configure: Regenerated.
18041
18042 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
18043
18044 * server.c (myresume): Add own_buf argument.
18045 (main): Update calls.
18046
18047 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
18048
18049 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
18050 * remote-utils.c (remote_open): Do not call disable_async_io.
18051 (block_async_io): Delete.
18052 (unblock_async_io): Make static.
18053 (initialize_async_io): New.
18054 * server.c (handle_v_cont): Handle async I/O here.
18055 (myresume): Likewise. Move other common resume tasks here...
18056 (main): ... from here. Call initialize_async_io. Disable async
18057 I/O before the main loop.
18058 * server.h (initialize_async_io): Declare.
18059 (block_async_io, unblock_async_io): Delete prototypes.
18060 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
18061
18062 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
18063
18064 * remote-utils.c (readchar): Allow binary data in received messages.
18065
18066 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18067
18068 * win32-low.c (attaching): New global.
18069 (win32_create_inferior): Clear the `attaching' global.
18070 (win32_attach): Set the `attaching' global.
18071 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
18072 attaching. Only set a breakpoint at the entry point if not
18073 attaching.
18074
18075 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18076
18077 * server.c (main): Don't report dll events on the initial
18078 connection on attaches.
18079
18080 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18081
18082 * server.c (main): Relax numerical bases supported for the pid of
18083 the --attach command line argument.
18084
18085 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18086
18087 * win32-low.c (win32_attach): Call OpenProcess before
18088 DebugActiveProcess, not after. Add last error output to error
18089 call.
18090
18091 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18092
18093 * win32-low.c (win32_get_thread_context)
18094 (win32_set_thread_context): New functions.
18095 (thread_rec): Use win32_get_thread_context.
18096 (continue_one_thread, win32_resume): Use win32_set_thread_context.
18097 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
18098 field.
18099
18100 2007-12-03 Leo Zayas
18101 Pedro Alves <pedro_alves@portugalmail.pt>
18102
18103 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18104 global variables.
18105 (child_add_thread): Minor cleanup.
18106 (child_continue): Resume artificially suspended threads before
18107 calling ContinueDebugEvent.
18108 (suspend_one_thread): New.
18109 (fake_breakpoint_event): New.
18110 (get_child_debug_event): Change return type to int. Check here if
18111 gdb sent an interrupt request. If a soft interrupt was requested,
18112 fake a breakpoint event. Return 0 if there is no event to handle,
18113 and 1 otherwise.
18114 (win32_wait): Don't check here if gdb sent an interrupt request.
18115 Ensure there is a valid event to handle.
18116 (win32_request_interrupt): Add soft interruption method as last
18117 resort.
18118
18119 2007-12-03 Leo Zayas
18120 Pedro Alves <pedro_alves@portugalmail.pt>
18121
18122 * win32-low.h (win32_thread_info): Add descriptions to the
18123 structure members. Replace `suspend_count' counter by a
18124 `suspended' flag.
18125 * win32-low.c (thread_rec): Update condition of when to get the
18126 context from the inferior. Rely on ContextFlags being set if it
18127 has already been retrieved. Only suspend the inferior thread if
18128 we haven't already. Warn if that fails.
18129 (continue_one_thread): s/suspend_count/suspended/. Only call
18130 ResumeThread once. Warn if that fails.
18131
18132 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18133
18134 * win32-low.c (win32_wait): Don't read from the inferior when it
18135 has already exited.
18136
18137 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18138
18139 * Makefile.in (win32_low_h): New variable.
18140 (win32-low.o): Add dependency on $(win32_low_h).
18141 (win32-arm-low.o, win32-i386-low.o): New rules.
18142
18143 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18144
18145 * hostio.c: Correct copyright year.
18146
18147 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18148
18149 * Makefile.in (OBS): Add hostio.o.
18150 (hostio.o): New rule.
18151 * server.h (handle_vFile): Declare.
18152 * hostio.c: New file.
18153 * server.c (handle_v_requests): Take packet_len and new_packet_len
18154 for binary packets. Call handle_vFile.
18155 (main): Update call to handle_v_requests.
18156
18157 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18158
18159 * linux-low.c: Include <sched.h>.
18160
18161 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18162
18163 * linux-low.c (linux_tracefork_grandchild): New.
18164 (linux_tracefork_child): Use clone.
18165 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18166
18167 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18168
18169 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18170
18171 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18172
18173 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18174
18175 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18176
18177 * inferiors.c (change_inferior_id): Delete.
18178 (add_pid_to_list, pull_pid_from_list): New.
18179 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18180 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18181 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18182 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18183 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18184 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18185 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18186 (using_threads): Always set to 1.
18187 (handle_extended_wait): New.
18188 (add_process): Do not set TID.
18189 (linux_create_inferior): Set must_set_ptrace_flags.
18190 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18191 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18192 (linux_thread_alive): Rename TID argument to LWPID.
18193 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18194 (linux_wait_for_event): Do not use TID or check using_threads. Update
18195 call to dead_thread_notify. Call handle_extended_wait.
18196 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18197 (send_sigstop): Delete sigstop_sent.
18198 (wait_for_sigstop): Avoid TID.
18199 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18200 (linux_test_for_tracefork): New.
18201 (linux_lookup_signals): Use thread_db_active and
18202 linux_supports_tracefork_flag.
18203 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18204 * linux-low.h (get_process_thread): Avoid TID.
18205 (struct process_ifo): Move thread_known and tid to the end. Remove
18206 sigstop_sent.
18207 (linux_attach_lwp, thread_db_init): Update prototypes.
18208 * server.h (change_inferior_id): Delete prototype.
18209 (add_pid_to_list, pull_pid_from_list): New prototypes.
18210 * thread-db.c (thread_db_use_events): New.
18211 (find_first_thread): Rename to...
18212 (find_one_thread): ...this. Update callers and messages. Do not
18213 call fatal. Check thread_db_use_events. Do not call
18214 change_inferior_id or new_thread_notify.
18215 (maybe_attach_thread): Update. Do not call new_thread_notify.
18216 (thread_db_init): Set thread_db_use_events. Check use_events.
18217 * utils.c (fatal, warning): Correct message prefix.
18218
18219 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18220
18221 * Makefile.in (clean): Remove new files.
18222 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18223 (powerpc-64.o, powerpc-64.c): New rules.
18224 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18225 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18226 with SPE.
18227 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18228 SPE targets.
18229 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18230 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18231 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18232 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18233 (target_regsets): Add AltiVec and SPE register sets.
18234 * configure.ac: Check for AltiVec and SPE.
18235 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18236 (ppc_fill_vrregset, ppc_store_vrregset): New.
18237 (target_regsets): Add AltiVec register set.
18238 * configure: Regenerated.
18239
18240 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18241
18242 * linux-low.c (O_LARGEFILE): Define.
18243 (linux_read_memory): Use /proc/PID/mem.
18244 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18245 * configure, config.in: Regenerated.
18246
18247 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18248
18249 * linux-low.c (linux_wait_for_event): Do not pass signals while
18250 single-stepping.
18251
18252 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18253
18254 * win32-low.c (create_process): New.
18255 (win32_create_inferior): Use create_process instead of
18256 CreateProcess. If create_process failed retry appending an ".exe"
18257 suffix. Store the GetLastError result immediatelly after
18258 create_process calls and use it on the call to error.
18259
18260 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18261
18262 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18263
18264 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18265
18266 * configure.ac: Switch license to GPLv3.
18267
18268 2007-08-01 Michael Snyder <msnyder@access-company.com>
18269
18270 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18271
18272 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18273
18274 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18275 typedef.
18276 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18277 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18278 CloseToolhelp32Snapshot.
18279 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18280 CloseToolhelp32Snapshot.
18281
18282 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18283
18284 * server.c (main): Check for inferior exit before main loop.
18285
18286 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18287
18288 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18289 instead of on tmp_desc.
18290
18291 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18292 Daniel Jacobowitz <dan@codesourcery.com>
18293
18294 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18295 (add_thread): Minor cleanups.
18296 (clear_inferiors): Move lower in the file. Clear the DLL
18297 list.
18298 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18299 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18300 (xml_escape_text): New.
18301 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18302 for qSupported.
18303 (handle_v_cont): Report errors.
18304 (gdbserver_version): Update.
18305 (main): Correct size of own_buf. Do not report initial DLL events.
18306 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18307 (unloaded_dll, xml_escape_text): New.
18308 * win32-low.c (enum target_waitkind): Update comments.
18309 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18310 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18311 (win32_EnumProcessModules, win32_GetModuleInformation)
18312 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18313 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18314 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18315 (win32_Module32First, win32_Module32Next, load_toolhelp)
18316 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18317 (get_child_debug_event): Handle DLL events.
18318 (win32_wait): Likewise.
18319
18320 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18321
18322 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18323 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18324
18325 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18326
18327 * win32-low.c (handle_output_debug_string): Ignore event if not
18328 waiting.
18329
18330 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18331
18332 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18333
18334 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18335
18336 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18337
18338 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18339
18340 * inferiors.c (change_inferior_id): Add comment.
18341 * linux-low.c (check_removed_breakpoint): Add an early
18342 prototype. Improve debug output.
18343 (linux_attach): Doc update.
18344 (linux_detach_one_process, linux_detach): Clean up before releasing
18345 each process.
18346 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18347 * linux-low.h (struct process_info): Doc improvement.
18348 * mem-break.c (delete_all_breakpoints): New.
18349 * mem-break.h (delete_all_breakpoints): New prototype.
18350 * thread-db.c (find_first_thread): New.
18351 (thread_db_create_event): Call it instead of
18352 thread_db_find_new_threads. Clean up unused variables.
18353 (maybe_attach_thread): Remove first thread handling.
18354 (thread_db_find_new_threads): Use find_first_thread.
18355 (thread_db_get_tls_address): Likewise.
18356
18357 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18358
18359 * thread-db.c (thread_db_find_new_threads): Add prototype.
18360 (thread_db_create_event): Check for the main thread before adding
18361 a new thread.
18362 (maybe_attach_thread): Only enable event reporting if TID == 0.
18363 (thread_db_get_tls_address): Check for new threads.
18364
18365 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18366
18367 * linux-low.c (linux_create_inferior): Try execv before execvp.
18368 * spu-low.c (spu_create_inferior): Likewise.
18369
18370 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18371
18372 * linux-low.c (linux_create_inferior): Change execv to execvp.
18373 * spu-low.c (spu_create_inferior): Likewies.
18374
18375 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18376
18377 * Makefile.in (clean): Clean new files instead of deleted ones.
18378 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18379 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18380 rules.
18381 * configure.srv: Specify XML files and new regformats for MIPS and
18382 MIPS64 GNU/Linux.
18383 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18384 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18385 an entry for the restart register.
18386 (mips_cannot_fetch_register, mips_cannot_store_register)
18387 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18388 register names to match the XML descriptions.
18389 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18390 restart register instead of $0.
18391
18392 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18393 Markus Deuling <deuling@de.ibm.com>
18394
18395 * remote-utils.c (decode_xfer_write): New function.
18396 * server.h (decode_xfer_write): Add prototype.
18397 * server.c (handle_query): Add PACKET_LEN argument. Support
18398 qXfer:spu:read and qXfer:spu:write packets.
18399 (main): Pass packet_len to handle_query.
18400 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18401 * target.h (target_ops): Add qxfer_spu.
18402
18403 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18404
18405 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18406 accessing non-seekable spufs files.
18407
18408 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18409
18410 * server.c (handle_query): Add reply for qC packet.
18411
18412 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18413 Leo Zayas <lerele@champenstudios@com>
18414
18415 * server.h (check_remote_input_interrupt_request): New function.
18416 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18417 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18418 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18419 (check_remote_input_interrupt_request): New function.
18420 * server.h (check_remote_input_interrupt_request): Declare.
18421 * win32-low.c (winapi_DebugBreakProcess,
18422 winapi_GenerateConsoleCtrlEvent): New typedefs.
18423 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18424 to 250 ms.
18425 (win32_wait): Check for remote interrupt request
18426 with check_remote_input_interrupt_request.
18427 (win32_request_interrupt): New function.
18428 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18429
18430 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18431
18432 * win32-low.c (debug_registers_changed,
18433 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18434 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18435 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18436 (thread_rec): Get context using the low target.
18437 (child_add_thread): Call thread_added on the low target,
18438 which does the same thing.
18439 (regptr): Delete.
18440 (do_initial_child_stuff): Remove debug registers references.
18441 Set context using the low target. Resume threads after
18442 setting the contexts.
18443 (child_continue): Remove dead variable. Remove debug
18444 registers references.
18445 (child_fetch_inferior_registers): Go through the low target.
18446 (do_child_store_inferior_registers): Remove.
18447 (child_store_inferior_registers): Go through the low target.
18448 (win32_resume): Remove debug registers references.
18449 Set context using the low target.
18450 (handle_exception): Change return type to void. Don't record
18451 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18452 first chance exception.
18453 (get_child_debug_event): Change return type to void. Remove
18454 goto loop. Always return after waiting for debug event.
18455 (win32_wait): Convert to switch statement. Handle spurious
18456 events.
18457
18458 * win32-i386-low.c (debug_registers_changed,
18459 debug_registers_used): New.
18460 (initial_stuff): Rename to ...
18461 (i386_initial_stuff): ... this. Clear debug registers
18462 state variables.
18463 (store_debug_registers): Delete.
18464 (i386_get_thread_context): New.
18465 (load_debug_registers): Delete.
18466 (i386_set_thread_context): New.
18467 (i386_thread_added): New.
18468 (single_step): Rename to ...
18469 (i386_single_step): ... this.
18470 (do_fetch_inferior_registers): Rename to ...
18471 (i386_fetch_inferior_register): ... this.
18472 (i386_store_inferior_register): New.
18473 (the_low_target): Adapt to new interface.
18474
18475 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18476 (arm_get_thread_context): New.
18477 (arm_set_thread_context): New.
18478 (regptr): New.
18479 (do_fetch_inferior_registers): Rename to ...
18480 (arm_fetch_inferior_register): ... this.
18481 (arm_store_inferior_register): New.
18482 (arm_wince_breakpoint): Reimplement as unsigned long.
18483 (arm_wince_breakpoint_len): Define.
18484 (the_low_target): Adapt to new interface.
18485
18486 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18487 load_debug_registers. Add get_thread_context, set_thread_context,
18488 thread_added and store_inferior_register. Rename
18489 fetch_inferior_registers to fetch_inferior_register.
18490 (regptr): Remove declaration.
18491
18492 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18493
18494 * linux-low.c (linux_detach): Change return type to int. Return 0.
18495 * spu-low.c (spu_detach): Likewise.
18496
18497 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18498
18499 * target.h (target_ops): Change return type of detach to int.
18500 Add join.
18501 (join_inferior): New.
18502 * server.c (main): Don't skip detach support on mingw32.
18503 If the inferior doesn't support detaching return error.
18504 Call join_inferior instead of using waitpid.
18505 * linux-low.c (linux_join): New.
18506 (linux_target_op): Add linux_join.
18507 * spu-low.c (spu_join): New.
18508 (spu_target_ops): Add spu_join.
18509 * win32-low.c (win32_detach): Adapt to new interface.
18510 Reopen current_process_handle before detaching. Issue a child
18511 resume before detaching.
18512 (win32_join): New.
18513 (win32_target_op): Add win32_join.
18514
18515 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18516
18517 * win32-low.c (win32-attach): Fix return value.
18518 * target.h (target_ops): Describe ATTACH return values.
18519
18520 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18521
18522 * win32-low.c (GETPROCADDRESS): Define.
18523 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18524 (winapi_DebugSetProcessKillOnExit): Likewise.
18525 (win32_create_inferior): Force usage of ansi CreateProcessA.
18526 (win32_attach): Use GETPROCADDRESS.
18527 (win32_detach): Likewise.
18528
18529 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18530
18531 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18532
18533 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18534
18535 * win32-low.c: Commit leftover changes from 2007-03-29.
18536
18537 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18538
18539 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18540 fields short instead of int. Add explicit padding.
18541 (i387_cache_to_fsave): Remove unnecessary casts.
18542 (i387_fsave_to_cache): Doc fix.
18543 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18544
18545 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18546
18547 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18548 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18549
18550 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18551
18552 * configure.srv (arm*-*-mingw32ce*): Move near the other
18553 arm targets.
18554
18555 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18556
18557 * configure.ac: Add errno checking.
18558 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18559 sys/file.h and malloc.h.
18560 (AC_CHECK_DECLS): Add perror.
18561 (srv_mingwce): Handle.
18562 * configure.srv (i[34567]86-*-cygwin*): Add
18563 win32-i386-low.o to srv_tgtobj.
18564 (i[34567]86-*-mingw*): Likewise.
18565 (arm*-*-mingw32ce*): Add case.
18566 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18567 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18568 [__MINGW32CE__] (strerror): New function.
18569 [__MINGW32CE__] (errno): Define to GetLastError.
18570 [__MINGW32CE__] (COUNTOF): New macro.
18571 (remote_open): Remove extra close call.
18572 * mem-break.c (delete_breakpoint_at): New function.
18573 * mem-break.h (delete_breakpoint_at): Declare.
18574 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18575 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18576 [USE_WIN32API] (read, write): Add char* casts.
18577 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18578 * server.h: Include wincecompat.h on Windows CE.
18579 [HAVE_ERRNO_H]: Check.
18580 (perror): Declare if not declared.
18581 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18582 (perror_with_name): Remove errno declaration.
18583 * wincecompat.h: New.
18584 * wincecompat.c: New.
18585 * win32-low.h: New.
18586 * win32-arm-low.c: New.
18587 * win32-i386-low.c: New.
18588 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18589 (OUTMSG2): Make it safe.
18590 (_T): New macro.
18591 (COUNTOF): New macro.
18592 (NUM_REGS): Get it from the low target.
18593 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18594 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18595 (thread_rec): Let low target handle debug registers.
18596 (child_add_thread): Likewise.
18597 (child_init_thread_list): Likewise.
18598 (continue_one_thread): Likewise.
18599 (regptr): New.
18600 (do_child_fetch_inferior_registers): Move to ...
18601 * win32-i386-low.c: ... here, and rename to ...
18602 (do_fetch_inferior_registers): ... this.
18603 * win32-low.c (child_fetch_inferior_registers):
18604 Go through the low target.
18605 (do_child_store_inferior_registers): Use regptr.
18606 (strwinerror): New function.
18607 (win32_create_inferior): Handle Windows CE.
18608 Use strwinerror instead of strerror on Windows error
18609 codes. Add program to the error output.
18610 Don't close the main thread handle on Windows CE.
18611 (win32_attach): Use coredll.dll on Windows CE.
18612 (win32_kill): Close current process and current
18613 thread handles.
18614 (win32_detach): Use coredll.dll on Windows CE.
18615 (win32_resume): Let low target handle debug registers, and
18616 step request.
18617 (handle_exception): Add/Remove initial breakpoint. Avoid
18618 non-existant WSTOPSIG on Windows CE.
18619 (win32_read_inferior_memory): Cast to remove warning.
18620 (win32_arch_string): Go through the low target.
18621 (initialize_low): Call set_breakpoint_data with the low
18622 target's breakpoint.
18623 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18624 FOP_REGNUM, mappings): Move to ...
18625 * win32-i386-low.c: ... here.
18626 * win32-low.c (win32_thread_info): Move to ...
18627 * win32-low.h: ... here.
18628 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18629 win32-arm-low.c and wincecompat.c.
18630 (all:): Add $EXEEXT.
18631 (install-only:): Likewise.
18632 (gdbserver:): Likewise.
18633 (gdbreplay:): Likewise.
18634 * config.in: Regenerate.
18635 * configure: Regenerate.
18636
18637 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18638
18639 * win32-low.c: Rename typedef thread_info to
18640 win32_thread_info throughout.
18641
18642 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18643
18644 * win32-i386-low.c: Rename to ...
18645 * win32-low.c: ... this.
18646 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18647 * Makefile.in: Likewise.
18648
18649 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18650
18651 * remote-utils.c (monitor_output): Constify msg parameter.
18652 * server.h (monitor_output): Likewise.
18653 * win32-i386-low.c (handle_output_debug_string): New.
18654 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18655 handle_output_debug_string.
18656 (get_child_debug_event): Likewise.
18657
18658 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18659
18660 * server.c (main): Correct strtoul check.
18661
18662 2007-03-27 Jon Ringle <jon@ringle.org>
18663
18664 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18665
18666 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18667
18668 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18669
18670 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18671
18672 * terminal.h: Check HAVE_SGTTY_H.
18673
18674 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
18675
18676 * remote-utils.c (remote_open): Print out the assigned port number.
18677
18678 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18679
18680 * remote-utils.c (monitor_output): New function.
18681 * server.c (debug_threads): Define here.
18682 (monitor_show_help): New function.
18683 (handle_query): Handle qRcmd.
18684 (main): Do not handle 'd' packet.
18685 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18686 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18687 of debug_threads.
18688
18689 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18690
18691 * Makefile.in (EXEEXT): New.
18692 (clean): Use $(EXEEXT).
18693
18694 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18695
18696 * target.h (target_ops): Rename send_signal to request_interrupt,
18697 and remove enum target_signal parameter.
18698 * linux-low.c (linux_request_interrupt): Rename from
18699 linux_send_signal, and always send SIGINT.
18700 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18701 and always send SIGINT.
18702 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18703 of send_signal.
18704 (input_interrupt): Likewise.
18705
18706 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18707
18708 * server.c (get_features_xml): Check if target implemented
18709 arch_string.
18710 * win32-i386-low.c (win32_arch_string): New.
18711 (win32_target_ops): Add win32_arch_string as arch_string member.
18712
18713 2007-02-22 Markus Deuling <deuling@de.ibm.com>
18714
18715 * spu-low.c (spu_arch_string): New.
18716 (spu_target_ops): Add spu_arch_string.
18717
18718 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18719
18720 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18721 * configure.ac: Do not check for terminal.h.
18722 * configure, config.in: Regenerated.
18723
18724 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18725
18726 * Makefile.in (OBS): Add $(XML_BUILTIN).
18727 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18728 (clean): Update.
18729 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18730 (arm-with-iwmmxt.c): New.
18731 * config.in, configure: Regenerate.
18732 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18733 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18734 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18735 (arm*-*-linux*): Add iWMMXt and regset support.
18736 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18737 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18738 (arm_store_wmmxregset, target_regsets): New.
18739 * server.c (get_features_xml): Take annex argument. Check builtin
18740 XML documents.
18741 (handle_query): Handle multiple annexes.
18742
18743 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18744
18745 * remote-utils.c [USE_WIN32API] (read, write): Define.
18746 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18747 write.
18748
18749 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18750
18751 * linux-i386-low.c (the_low_target): Set arch_string.
18752 * linux-x86-64-low.c (the_low_target): Likewise.
18753 * linux-low.c (linux_arch_string): New.
18754 (linux_target_ops): Add it.
18755 * linux-low.h (struct linux_target_ops): Add arch_string.
18756 * server.c (write_qxfer_response): Use const void * for DATA.
18757 (get_features_xml): New.
18758 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18759 * target.h (struct target_ops): Add arch_string method.
18760
18761 2007-01-03 Denis Pilat <denis.pilat@st.com>
18762 Daniel Jacobowitz <dan@codesourcery.com>
18763
18764 * linux-low.c (linux_kill): Handle being called with no threads.
18765 * win32-i386-low.c (win32_kill): Likewise.
18766 (get_child_debug_event): Clear current_process_handle.
18767
18768 2006-12-30 Denis PILAT <denis.pilat@st.com>
18769 Daniel Jacobowitz <dan@codesourcery.com>
18770
18771 * remote-utils.c (remote_open): Check the type of specified
18772 serial port devices before opening them.
18773 * server.c (main): Kill the inferior if an error occurs during
18774 the first remote_open.
18775
18776 2006-12-05 Markus Deuling <deuling@de.ibm.com>
18777
18778 * README: Update supported targets.
18779
18780 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18781
18782 * Makefile.in (clean): Remove reg-mips64.c.
18783 (reg-mips64.c, reg-mips64.o): New rules.
18784 * configure.srv: Handle mips64. Include regset support for mips.
18785 * linux-mips-low.c (union mips_register): New.
18786 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18787 (mips_breakpoint, mips_breakpoint_at): Use int.
18788 (mips_collect_register, mips_supply_register)
18789 (mips_collect_register_32bit, mips_supply_register_32bit)
18790 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18791 (mips_store_fpregset, target_regsets): New.
18792 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18793
18794 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18795
18796 * configure.srv: Add target "spu*-*-*".
18797 * Makefile.in (clean): Remove reg-spu.c.
18798 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18799 * spu-low.c: New file.
18800
18801 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18802
18803 * configure.ac: Correct td_thr_tls_get_addr test.
18804 * configure: Regenerated.
18805
18806 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18807
18808 * linux-low.c (linux_wait_for_event): Reformat. Use the
18809 pass_signals array.
18810 * remote-utils.c (decode_address_to_semicolon): New.
18811 * server.c (pass_signals, handle_general_set): New.
18812 (handle_query): Mention QPassSignals for qSupported.
18813 (main): Call handle_general_set.
18814 * server.h (pass_signals, decode_address_to_semicolon): New.
18815
18816 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18817
18818 * server.c (handle_query): Correct error handling for read_auxv.
18819
18820 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18821
18822 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18823 and srv_linux_thread_db to yes.
18824 * linux-s390-low.c (s390_fill_gregset): New function.
18825 (target_regsets): Define data structure.
18826
18827 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18828
18829 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18830 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18831 * config.in, configure: Regenerated.
18832 * inferiors.c (gdb_id_to_thread): New function.
18833 (gdb_id_to_thread_id): Use it.
18834 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18835 * linux-low.h (struct process_info): Add th member.
18836 (thread_db_get_tls_address): New prototype.
18837 * remote-utils.c (decode_address): Make non-static.
18838 * server.c (handle_query): Handle qGetTLSAddr.
18839 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18840 * target.h (struct target_ops): Add get_tls_address.
18841 * thread-db.c (maybe_attach_thread): Save the thread handle.
18842 (thread_db_get_tls_address): New.
18843
18844 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18845
18846 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18847 (linux_resume_one_process): Take a siginfo_t *. Update all
18848 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18849 (struct pending_signals): Add a siginfo_t.
18850 (linux_wait_for_process): Always set last_status.
18851 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18852 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18853 * linux-low.h (struct process_info): Add last_status.
18854
18855 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18856
18857 * remote-utils.c (try_rle): New function.
18858 (putpkt_binary): Use it.
18859
18860 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18861
18862 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18863 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18864 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18865 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18866 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18867 point registers.
18868
18869 2006-08-08 Richard Sandiford <richard@codesourcery.com>
18870
18871 * server.c (terminal_fd): New variable.
18872 (old_foreground_pgrp): Likewise.
18873 (restore_old_foreground_pgrp): New function.
18874 (start_inferior): Record the terminal file descriptor in terminal_fd
18875 and its original foreground group in old_foreground_pgrp. Register
18876 restore_old_foreground_pgrp with atexit().
18877
18878 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18879
18880 * server.c (handle_query): Correct qPart to qXfer.
18881
18882 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18883
18884 * configure.ac: Check for more headers which are missing on
18885 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18886 * configure.srv: Add Cygwin and mingw32.
18887 * remote-utils.c: Don't include headers unconditionally which
18888 are missing on mingw32. Include <winsock.h> for mingw32.
18889 (remote_open): Adjust for mingw32 support. Flush
18890 standard error after writing to it.
18891 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18892 (unblock_async_io, enable_async_io, disable_async_io)
18893 (readchar, getpkt): Update for Winsock support.
18894 (prepare_resume_reply): Expect a protocol signal number.
18895 * server.c: Disable <sys/wait.h> on mingw32.
18896 (start_inferior): Adjust for mingw32 support. Flush
18897 standard error after writing to it.
18898 (attach_inferior): Likewise. Use protocol signal
18899 numbers.
18900 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18901 and names.
18902 * win32-i386-low.c: New file.
18903 * Makefile.in (XM_CLIBS): Set.
18904 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18905 (win32-i386-low.o): New dependency rule.
18906 * linux-low.c (linux_wait): Use target signal numbers.
18907 * target.h (struct target_ops): Doc fix.
18908 * server.h (target_signal_to_name): New prototype.
18909 * gdbreplay.c: Don't include headers unconditionally which
18910 are missing on mingw32. Include <winsock.h> for mingw32.
18911 (remote_close, remote_open): Adjust for Winsock support.
18912 * configure, config.in: Regenerated.
18913
18914 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18915
18916 * server.c (decode_xfer_read, write_qxfer_response): New.
18917 (handle_query): Take a packet length argument. Handle
18918 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18919 the qSupported response.
18920 (main): Update call to handle_query.
18921
18922 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18923
18924 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18925 (putpkt_binary): Renamed from putpkt and adjusted for binary
18926 data.
18927 (putpkt): New wrapper for putpkt_binary.
18928 (readchar): Don't mask off the high bit.
18929 (decode_X_packet): New function.
18930 * server.c (main): Call putpkt_binary if a handler sets the packet
18931 length. Save the length of the incoming packet. Handle 'X'.
18932 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18933
18934 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18935
18936 * server.c (handle_query): Handle qSupported.
18937
18938 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18939
18940 * remote-utils.c (all_symbols_looked_up): New variable.
18941 (look_up_one_symbol): Check it.
18942 * server.h (look_up_one_symbol): New declaration.
18943 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18944
18945 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18946
18947 * Makefile.in (linux-arm-low.o): Update dependencies.
18948 * linux-arm-low.c: Include "gdb_proc_service.h".
18949 (PTRACE_GET_THREAD_AREA): Define.
18950 (ps_get_thread_area): New function.
18951
18952 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18953
18954 * configure.srv (m68k*-*-uclinux*): New target.
18955 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18956 (linux_resume_one_process): Remove extraneous cast.
18957 (linux_read_offsets): New.
18958 (linux_target_op): Add linux_read_offsets on mmuless systems.
18959 * server.c (handle_query): Add qOffsets logic.
18960 * target.h (struct target_ops): Add read_offsets.
18961
18962 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18963
18964 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18965 (PTRACE_GET_THREAD_AREA): Define.
18966 (ps_get_thread_area): New function.
18967 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18968 (linux-x86-64-low.o): Update.
18969
18970 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18971
18972 * configure.ac: Remove checks for prfpregset_t.
18973 * gdb_proc_service.h: New file.
18974 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18975 new "gdb_proc_service.h".
18976 * proc-service.c: Likewise.
18977 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18978 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18979 * Makefile.in (gdb_proc_service_h): Updated.
18980 * configure, config.in: Regenerated.
18981
18982 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18983
18984 * remote-utils.c (prepare_resume_reply): Move declaration
18985 of gdb_id_from_wait to the top of the block.
18986
18987 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18988
18989 * linux-low.c (regsets_store_inferior_registers): Read the regset
18990 from the target before filling it.
18991
18992 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18993
18994 * server.c (attach_inferior): Return SIGTRAP for a successful
18995 attach.
18996
18997 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18998
18999 * Makefile.in (OBS): Add version.o.
19000 (STAGESTUFF): Delete.
19001 (version.o): Add dependencies.
19002 (version.c): Replace rule.
19003 (clean): Remove version.c.
19004 * server.c (gdbserver_version): New.
19005 (gdbserver_usage): Use printf.
19006 (main): Handle --version and --help.
19007 * server.h (version, host_name): Add declarations.
19008
19009 2005-12-23 Eli Zaretskii <eliz@gnu.org>
19010
19011 * linux-arm-low.c:
19012 * linux-arm-low.c:
19013 * inferiors.c:
19014 * i387-fp.h:
19015 * i387-fp.c:
19016 * gdbreplay.c:
19017 * regcache.c:
19018 * proc-service.c:
19019 * mem-break.h:
19020 * mem-break.c:
19021 * linux-x86-64-low.c:
19022 * linux-sh-low.c:
19023 * linux-s390-low.c:
19024 * linux-ppc64-low.c:
19025 * linux-ppc-low.c:
19026 * linux-mips-low.c:
19027 * linux-m68k-low.c:
19028 * linux-m32r-low.c:
19029 * linux-low.h:
19030 * linux-low.c:
19031 * linux-ia64-low.c:
19032 * linux-i386-low.c:
19033 * linux-crisv32-low.c:
19034 * thread-db.c:
19035 * terminal.h:
19036 * target.h:
19037 * target.c:
19038 * server.h:
19039 * server.c:
19040 * remote-utils.c:
19041 * regcache.h:
19042 * utils.c:
19043 * Makefile.in:
19044 * configure.ac:
19045 * gdbserver.1: Add (C) after Copyright. Update the FSF
19046 address.
19047
19048 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19049
19050 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
19051 (arm_breakpoint_at): Recognize both breakpoints.
19052 (the_low_target): Use the correct breakpoint instruction.
19053
19054 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
19055
19056 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
19057 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
19058 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
19059 (the_low_target): Update.
19060
19061 2005-10-25 Andreas Schwab <schwab@suse.de>
19062
19063 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
19064
19065 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
19066 (ia64_num_regs): Reduce to 462.
19067
19068 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
19069
19070 * acinclude.m4: Correct quoting.
19071 * aclocal.m4: Regenerated.
19072
19073 Suggested by SZOKOVACS Robert <szo@ies.hu>:
19074 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
19075 (thread_db_init): Call thread_db_err_str.
19076 * configure.ac: Check for TD_VERSION.
19077 * config.in, configure: Regenerated.
19078
19079 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19080
19081 * server.h (error, fatal, warning): Add ATTR_FORMAT.
19082
19083 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19084
19085 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
19086 is not available. Define HAVE_PTRACE_GETREGS if it is.
19087 * config.in, configure: Regenerated.
19088 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
19089 * linux-i386-low.c, linux-m68k-low.c: Update to use
19090 HAVE_PTRACE_GETREGS.
19091 * linux-low.c (regsets_fetch_inferior_registers)
19092 (regsets_store_inferior_registers): Only return 0 if we processed
19093 GENERAL_REGS.
19094 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
19095 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19096
19097 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19098
19099 * inferiors.c (struct thread_info): Add gdb_id.
19100 (add_thread): Add gdb_id argument.
19101 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19102 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19103 calls to add_thread.
19104 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19105 * server.c (handle_query): Use thread_to_gdb_id.
19106 (handle_v_cont, main): Use gdb_id_to_thread_id.
19107 * server.h (add_thread): Update prototype.
19108 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19109 prototypes.
19110
19111 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19112
19113 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19114 left-padded registers.
19115 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19116 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19117
19118 2005-07-01 Steve Ellcey <sje@cup.hp.com>
19119
19120 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19121 * configure: Regenerate.
19122 * config.in: Regenerate.
19123 * server.h (NEED_DECLARATION_STRERROR):
19124 Replace with !HAVE_DECL_STRERROR.
19125
19126 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19127
19128 * linux-low.c (linux_wait, linux_send_signal): Don't test
19129 an unsigned long variable for > 0 if it could be MAX_ULONG.
19130 * server.c (myresume): Likewise.
19131 * target.c (set_desired_inferior): Likewise.
19132
19133 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19134
19135 * configure.ac: Simplify and improve check for socklen_t.
19136 * configure, config.in: Regenerate.
19137
19138 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19139
19140 * acconfig.h: Remove.
19141 * configure.ac: Add a test for socklen_t. Use three-argument
19142 AC_DEFINE throughout.
19143 * config.in: Regenerated using autoheader 2.59.
19144 * configure: Regenerated.
19145
19146 * gdbreplay.c (socklen_t): Provide a default.
19147 (remote_open): Use socklen_t.
19148 * remote-utils.c (socklen_t): Provide a default.
19149 (remote_open): Use socklen_t.
19150 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19151 unsigned char.
19152
19153 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19154 char for buffers.
19155 * linux-low.c (linux_read_memory, linux_write_memory)
19156 (linux_read_auxv): Likewise.
19157 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19158 (check_mem_write): Likewise.
19159 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19160 Likewise.
19161 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19162 (registers_from_string, register_data): Likewise.
19163 * server.c (handle_query, main): Likewise.
19164 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19165 (decode_M_packet): Likewise.
19166 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19167 * target.h (struct target_ops): Update read_memory, write_memory,
19168 and read_auxv.
19169 (read_inferior_memory, write_inferior_memory): Update.
19170 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19171 to unsigned char *.
19172 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19173 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19174 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19175 linux-s390-low.c, linux-sh-low.c: Update for changes in
19176 read_inferior_memory and the_low_target->breakpoint.
19177
19178 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19179
19180 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19181 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19182 * configure.srv: Add powerpc64-*-linux*.
19183 * linux-ppc64-low.c: New file.
19184
19185 2005-05-23 Orjan Friberg <orjanf@axis.com>
19186
19187 * linux-cris-low.c: New file with support for CRIS.
19188 * linux-crisv32-low.c: Ditto for CRISv32.
19189 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19190 (clean): Add reg-cris.c and reg-crisv32.c.
19191 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19192 reg-crisv32.o, and reg-crisv32.c to make rules.
19193 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19194 recognized targets.
19195
19196 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19197
19198 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19199 of sizeof (PTRACE_XFER_TYPE).
19200 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19201
19202 2005-05-12 Orjan Friberg <orjanf@axis.com>
19203
19204 * target.h (struct target_ops): Add insert_watchpoint,
19205 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19206 pointers for hardware watchpoint support.
19207 * linux-low.h (struct linux_target_ops): Ditto.
19208 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19209 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19210 to linux_target_ops.
19211 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19212 reply packet.
19213 * server.c (main): Recognize 'Z' and 'z' packets.
19214
19215 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19216
19217 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19218 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19219 (the_low_target): Add new members.
19220
19221 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19222
19223 * proc-service.c (ps_lgetregs): Search all_processes instead of
19224 all_threads.
19225
19226 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19227
19228 * server.c (start_inferior): Change return type to int.
19229 (attach_inferior): Change sigptr to int *.
19230 (handle_v_cont, handle_v_requests): Change signal to int *.
19231 (main): Change signal to int.
19232
19233 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19234
19235 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19236 * configure.srv: Add m32r*-*-linux*.
19237 * linux-m32r-low.c: New file.
19238
19239 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19240
19241 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19242
19243 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19244
19245 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19246 Take unsigned long arguments for PIDs.
19247 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19248 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19249 (wait_for_sigstop, linux_resume_one_process)
19250 (regsets_fetch_inferior_registers, linux_send_signal)
19251 (linux_read_auxv): Likewise. Update the types of variables holding
19252 PIDs. Update format string specifiers.
19253 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19254 * remote-utils.c (prepare_resume_reply): Likewise.
19255 * server.c (cont_thread, general_thread, step_thread)
19256 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19257 unsigned long.
19258 (handle_query): Update format specifiers.
19259 (handle_v_cont, main): Use strtoul for thread IDs.
19260 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19261 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19262 (general_thread, step_thread, thread_from_wait)
19263 (old_thread_from_wait): Update.
19264 * target.h (struct thread_resume): Use unsigned long for THREAD.
19265 (struct target_ops): Use unsigned long for arguments to attach and
19266 thread_alive.
19267
19268 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19269
19270 * acinclude.m4: Include bfd/bfd.m4 directly.
19271 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19272 <agriffis@toolchain.org>.
19273 * aclocal.m4, configure: Regenerated.
19274
19275 2005-01-07 Andrew Cagney <cagney@gnu.org>
19276
19277 * configure.ac: Rename configure.in, require autoconf 2.59.
19278 * configure: Re-generate.
19279
19280 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19281
19282 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19283 LIBS when finished.
19284 * aclocal.m4: Regenerated.
19285 * configure: Regenerated.
19286
19287 2004-11-21 Andreas Schwab <schwab@suse.de>
19288
19289 * linux-m68k-low.c (m68k_num_gregs): Define.
19290 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19291 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19292 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19293 (m68k_breakpoint_at): New. Add to the_low_target.
19294
19295 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19296 srv_linux_thread_db to yes.
19297
19298 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19299
19300 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19301 (ARCH_SET_FS): Likewise.
19302 (ARCH_GET_FS): Likewise.
19303 (ARCH_GET_GS): Likewise.
19304
19305 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19306
19307 * linux-i386-low.c (ps_get_thread_area): New.
19308 * linux-x86-64-low.c (ps_get_thread_area): New.
19309 * linux-low.c: Include <sys/syscall.h>.
19310 (linux_kill_one_process): Don't kill the first thread here.
19311 (linux_kill): Kill the first thread here.
19312 (kill_lwp): New function.
19313 (send_sigstop, linux_send_signal): Use it.
19314 * proc-service.c: Clean up #ifdefs.
19315 (fpregset_info): Delete.
19316 (ps_lgetregs): Update and enable implementation.
19317 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19318 implementations.
19319 * remote-utils.c (struct sym_cache, symbol_cache): New.
19320 (input_interrupt): Print a clearer message.
19321 (async_io_enabled): New variable.
19322 (enable_async_io, disable_async_io): Use it. Update comments.
19323 (look_up_one_symbol): Use the symbol cache.
19324 * thread-db.c (thread_db_look_up_symbols): New function.
19325 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19326
19327 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19328
19329 * configure.in: Test for -rdynamic.
19330 * configure: Regenerated.
19331 * Makefile (INTERNAL_LDFLAGS): New.
19332 (gdbserver, gdbreplay): Use it.
19333
19334 2004-09-02 Andrew Cagney <cagney@gnu.org>
19335
19336 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19337
19338 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19339
19340 * linux-low.c (linux_wait): Clear all_processes list also.
19341
19342 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19343
19344 * linux-low.c: Include <errno.h>. Remove extern declaration of
19345 errno.
19346
19347 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19348
19349 * gdbreplay.c, server.h, utils.c: Update copyright years.
19350
19351 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19352
19353 * server.c (main): Print child status or termination signal from
19354 variable 'signal', not 'sig'.
19355
19356 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19357
19358 * linux-low.c (linux_read_memory): Change return type to
19359 int. Check for and return error from ptrace().
19360 * target.c (read_inferior_memory): Change return type to int. Pass
19361 back return status from the_target->read_memory().
19362 * target.h (struct target_ops): Adapt *read_memory() prototype.
19363 Update comment.
19364 (read_inferior_memory): Adapt prototype.
19365 * server.c (main): Return an error packet if
19366 read_inferior_memory() returns an error.
19367
19368 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19369
19370 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19371 Unify with other clean targets.
19372
19373 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19374
19375 * server.c (handle_v_cont): Call set_desired_inferior.
19376
19377 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19378
19379 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19380
19381 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19382
19383 * linux-low.c (linux_wait): Unblock async I/O.
19384 (linux_resume): Block and enable async I/O.
19385 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19386 * server.h (block_async_io, unblock_async_io): Add prototypes.
19387
19388 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19389
19390 * remote-utils.c (remote_open): Print a status notice after
19391 opening a TCP port.
19392 * server.c (attach_inferior): Print a status notice after
19393 attaching.
19394
19395 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19396
19397 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19398
19399 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19400
19401 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19402 error packet.
19403 * server.c, target.h: Update copyright years.
19404
19405 2004-02-25 Roland McGrath <roland@redhat.com>
19406
19407 * target.h (struct target_ops): New member `read_auxv'.
19408 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19409 * linux-low.c (linux_read_auxv): New function.
19410 (linux_target_ops): Initialize `read_auxv' member to that.
19411
19412 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19413
19414 Committed by Jim Blandy <jimb@redhat.com>.
19415
19416 * linux-s390-low.c (s390_num_regs): Update.
19417 (s390_regmap): Remove control registers. Use __s390x__ predefine
19418 instead of GPR_SIZE to distiguish s390 and s390x targets.
19419
19420 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19421
19422 * linux-low.c: Update copyright year.
19423 (check_removed_breakpoint): Clear pending_is_breakpoint.
19424 (linux_set_resume_request, linux_queue_one_thread)
19425 (resume_status_pending_p): New functions.
19426 (linux_continue_one_thread): Use process->resume.
19427 (linux_resume): Only resume threads if there are no pending events.
19428 * linux-low.h (struct process_info): Add resume request
19429 pointer.
19430
19431 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19432
19433 * regcache.c (new_register_cache): Clear the allocated register
19434 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19435
19436 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19437
19438 * linux-low.c (linux_resume): Take a struct thread_resume *
19439 argument.
19440 (linux_wait): Update call.
19441 (resume_ptr): New static variable.
19442 (linux_continue_one_thread): Renamed from
19443 linux_continue_one_process. Use resume_ptr.
19444 (linux_resume): Use linux_continue_one_thread.
19445 * server.c (handle_v_cont, handle_v_requests): New functions.
19446 (myresume): New function.
19447 (main): Handle 'v' case.
19448 * target.h (struct thread_resume): New type.
19449 (struct target_ops): Change argument of "resume" to struct
19450 thread_resume *.
19451 (myresume): Delete macro.
19452
19453 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19454
19455 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19456 (uninstall): Support DESTDIR.
19457
19458 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19459
19460 * configure.srv: Add xscale*linux copy of arm*linux entry.
19461
19462 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19463
19464 * linux-arm-low.c (arm_reinsert_addr): New function.
19465 (the_low_target): Add arm_reinsert_addr.
19466
19467 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19468
19469 * mem-break.c: Remove whitespace at end of file.
19470
19471 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19472
19473 * configure.in: Check whether we need to prototype strerror.
19474 * server.h: Optionally prototype strerror.
19475 * gdbreplay.c (perror_with_name): Use strerror.
19476 * linux-low.c (linux_attach_lwp): Use strerror.
19477 * utils.c (perror_with_name): Use strerror.
19478 * config.in, configure: Regenerated.
19479
19480 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19481
19482 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19483 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19484
19485 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19486
19487 * Makefile.in (SFILES): Update.
19488 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19489 low-sun3.c: Remove files.
19490
19491 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19492
19493 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19494 (linux_detach_one_process, linux_detach): New functions.
19495 (linux_target_ops): Add linux_detach.
19496 * server.c (main): Handle 'D' packet.
19497 * target.h (struct target_ops): Add "detach" member.
19498 (detach_inferior): Define.
19499
19500 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19501
19502 From Kelley Cook <kelleycook@wideopenwest.com>:
19503 * configure.srv: Accept i[34567]86 variants.
19504
19505 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19506
19507 * linux-low.c (linux_wait_for_event): Correct comment typos.
19508 (linux_resume_one_process): Call check_removed_breakpoint.
19509 (linux_send_signal): New function.
19510 (linux_target_ops): Add linux_send_signal.
19511 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19512 of kill.
19513 * target.h (struct target_ops): Add send_signal.
19514
19515 2003-05-29 Jim Blandy <jimb@redhat.com>
19516
19517 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19518 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19519 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19520 away part of the register's value.
19521
19522 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19523
19524 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19525 (linux_wait_for_event, linux_init_signals): Likewise.
19526
19527 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19528
19529 * configure.in: Check for stdlib.h.
19530 * configure: Regenerated.
19531 * config.in: Regenerated.
19532
19533 2003-01-04 Andreas Schwab <schwab@suse.de>
19534
19535 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19536
19537 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19538
19539 * Makefile.in: Remove obsolete code.
19540
19541 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19542
19543 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19544 defined(PT_FPR0_HI).
19545
19546 2002-11-17 Stuart Hughes <seh@zee2.com>
19547
19548 * linux-arm-low.c (arm_num_regs): Increase.
19549 (arm_regmap): Include status register.
19550
19551 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
19552
19553 * linux-low.c (register_addr): Remove incorrect -1 check.
19554
19555 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
19556
19557 * linux-low.c (linux_create_inferior): Call setpgid. Return
19558 the new PID.
19559 (unstopped_p, linux_signal_pid): Remove.
19560 (linux_target_ops): Remove linux_signal_pid.
19561 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19562 global instead of target method.
19563 * target.h (struct target_ops): Remove signal_pid. Update comment
19564 for create_inferior.
19565 * server.c (signal_pid): New variable.
19566 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
19567 gdbserver. Set the child to be the foreground process group.
19568 (attach_inferior): Set signal_pid.
19569
19570 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
19571
19572 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19573
19574 2002-08-20 Jim Blandy <jimb@redhat.com>
19575
19576 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19577 default for this.
19578
19579 2002-08-01 Andrew Cagney <cagney@redhat.com>
19580
19581 * Makefile.in: Make chill references obsolete.
19582
19583 2002-07-24 Kevin Buettner <kevinb@redhat.com>
19584
19585 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19586 * configure: Regenerate.
19587 * config.in: Regenerate.
19588
19589 2002-07-09 David O'Brien <obrien@FreeBSD.org>
19590
19591 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19592 (perror_with_name, remote_close, remote_open, expect, play): Static.
19593
19594 2002-07-04 Michal Ludvig <mludvig@suse.cz>
19595
19596 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
19597 byte offsets instead of an array of indexes.
19598 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19599
19600 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
19601
19602 * regcache.c: Add comment.
19603
19604 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
19605
19606 * thread-db.c: New file.
19607 * proc-service.c: New file.
19608 * acinclude.m4: New file.
19609 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19610 proc-service.o, and thread-db.o.
19611 (linux-low.o): Add USE_THREAD_DB.
19612 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19613 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19614 * aclocal.m4: Regenerated.
19615 * config.in: Regenerated.
19616 * configure: Regenerated.
19617 * configure.in: Check for proc_service.h, sys/procfs.h,
19618 thread_db.h, and linux/elf.h headrs.
19619 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19620 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19621 Check for -lthread_db and thread support.
19622 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19623 PowerPC, and SuperH.
19624 * i387-fp.c: Constify arguments.
19625 * i387-fp.h: Likewise.
19626 * inferiors.c: (struct thread_info): Renamed from
19627 `struct inferior_info'. Remove PID member. Use generic inferior
19628 list header. All uses updated.
19629 (inferiors, signal_pid): Removed.
19630 (all_threads): New variable.
19631 (get_thread): Define.
19632 (add_inferior_to_list): New function.
19633 (for_each_inferior): New function.
19634 (change_inferior_id): New function.
19635 (add_inferior): Removed.
19636 (remove_inferior): New function.
19637 (add_thread): New function.
19638 (free_one_thread): New function.
19639 (remove_thread): New function.
19640 (clear_inferiors): Use for_each_inferior and free_one_thread.
19641 (find_inferior): New function.
19642 (find_inferior_id): New function.
19643 (inferior_target_data): Update argument type.
19644 (set_inferior_target_data): Likewise.
19645 (inferior_regcache_data): Likewise.
19646 (set_inferior_regcache_data): Likewise.
19647 * linux-low.c (linux_bp_reinsert): Remove.
19648 (all_processes, stopping_threads, using_thrads)
19649 (struct pending_signals, debug_threads, pid_of): New.
19650 (inferior_pid): Replace with macro.
19651 (struct inferior_linux_data): Remove.
19652 (get_stop_pc, add_process): New functions.
19653 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19654 Use add_process and add_thread.
19655 (linux_attach_lwp): New function, based on old linux_attach. Use
19656 add_process and add_thread. Set stop_expected for new threads.
19657 (linux_attach): New function.
19658 (linux_kill_one_process): New function.
19659 (linux_kill): Kill all LWPs.
19660 (linux_thread_alive): Use find_inferior_id.
19661 (check_removed_breakpoints, status_pending_p): New functions.
19662 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19663 Update. Use WNOHANG. Wait for cloned processes also. Update process
19664 struct for the found process.
19665 (linux_wait_for_event): New function.
19666 (linux_wait): Use it. Support LWPs.
19667 (send_sigstop, wait_for_sigstop, stop_all_processes)
19668 (linux_resume_one_process, linux_continue_one_process): New functions.
19669 (linux_resume): Support LWPs.
19670 (REGISTER_RAW_SIZE): Remove.
19671 (fetch_register): Use register_size instead. Call supply_register.
19672 (usr_store_inferior_registers): Likewise. Call collect_register.
19673 Fix recursive case.
19674 (regsets_fetch_inferior_registers): Improve error message.
19675 (regsets_store_inferior_registers): Add debugging.
19676 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19677 (unstopped_p, linux_signal_pid): New functions.
19678 (linux_target_ops): Add linux_signal_pid.
19679 (linux_init_signals): New function.
19680 (initialize_low): Call it. Initialize using_threads.
19681 * regcache.c (inferior_regcache_data): Add valid
19682 flag.
19683 (get_regcache): Fetch registers lazily. Add fetch argument
19684 and update all callers.
19685 (regcache_invalidate_one, regcache_invalidate): New
19686 functions.
19687 (new_register_cache): Renamed from create_register_cache.
19688 Return the new regcache.
19689 (free_register_cache): Change argument to a void *.
19690 (registers_to_string, registers_from_string): Call get_regcache
19691 with fetch flag set.
19692 (register_data): Make static. Pass fetch flag to get_regcache.
19693 (supply_register): Call get_regcache with fetch flag clear.
19694 (collect_register): Call get_regcache with fetch flag set.
19695 (collect_register_as_string): New function.
19696 * regcache.h: Update.
19697 * remote-utils.c (putpkt): Flush after debug output and use
19698 stderr.
19699 Handle input interrupts while waiting for an ACK.
19700 (input_interrupt): Use signal_pid method.
19701 (getpkt): Flush after debug output and use stderr.
19702 (outreg): Use collect_register_as_string.
19703 (new_thread_notify, dead_thread_notify): New functions.
19704 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19705 and general_thread.
19706 (look_up_one_symbol): Flush after debug output.
19707 * server.c (step_thread, server_waiting): New variables.
19708 (start_inferior): Don't use signal_pid. Update call to mywait.
19709 (attach_inferior): Update call to mywait.
19710 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19711 (main): Don't fetch/store registers explicitly. Use
19712 set_desired_inferior. Support proposed ``Hs'' packet. Update
19713 calls to mywait.
19714 * server.h: Update.
19715 (struct inferior_list, struct_inferior_list_entry): New.
19716 * target.c (set_desired_inferior): New.
19717 (write_inferior_memory): Constify.
19718 (mywait): New function.
19719 * target.h: Update.
19720 (struct target_ops): New signal_pid method.
19721 (mywait): Removed macro, added prototype.
19722
19723 * linux-low.h (regset_func): Removed.
19724 (regset_fill_func, regset_store_func): New.
19725 (enum regset_type): New.
19726 (struct regset_info): Add type field. Use new operation types.
19727 (struct linux_target_ops): stop_pc renamed to get_pc.
19728 Add decr_pc_after_break and breakpoint_at.
19729 (get_process, get_thread_proess, get_process_thread)
19730 (strut process_info, all_processes, linux_attach_lwp)
19731 (thread_db_init): New.
19732
19733 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19734 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19735 (the_low_target): Add new members.
19736 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19737 (i386_store_fpxregset): Constify.
19738 (target_regsets): Add new kind identifier.
19739 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19740 (i386_set_pc): Add debugging.
19741 (i386_breakpoint_at): New function.
19742 (the_low_target): Add new members.
19743 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19744 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19745 (mips_breakpoint_at): New.
19746 (the_low_target): Add new members.
19747 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19748 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19749 (the_low_target): Add new members.
19750 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19751 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19752 (the_low_target): Add new members.
19753 * linux-x86-64-low.c (target_regsets): Add new kind
19754 identifier.
19755
19756 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
19757
19758 From Martin Pool <mbp@samba.org>:
19759 * server.c (gdbserver_usage): New function.
19760 (main): Call it.
19761
19762 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
19763
19764 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19765 stop_at -> stop_pc.
19766
19767 2002-05-04 Andrew Cagney <ac131313@redhat.com>
19768
19769 * Makefile.in: Remove obsolete code.
19770
19771 2002-04-24 Michal Ludvig <mludvig@suse.cz>
19772
19773 * linux-low.c (regsets_fetch_inferior_registers),
19774 (regsets_store_inferior_registers): Removed cast to int from
19775 ptrace() calls.
19776 * regcache.h: Added declaration of struct inferior_info.
19777
19778 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19779
19780 * inferiors.c (struct inferior_info): Add regcache_data.
19781 (add_inferior): Call create_register_cache.
19782 (clear_inferiors): Call free_register_cache.
19783 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19784 * regcache.c (struct inferior_regcache_data): New.
19785 (registers): Remove.
19786 (get_regcache): New function.
19787 (create_register_cache, free_register_cache): New functions.
19788 (set_register_cache): Don't initialize the register cache here.
19789 (registers_to_string, registers_from_string, register_data): Call
19790 get_regcache.
19791 * regcache.h: Add prototypes.
19792 * server.h: Likewise.
19793
19794 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19795
19796 * mem-break.c: New file.
19797 * mem-break.h: New file.
19798 * Makefile.in: Add mem-break.o rule; update server.h
19799 dependencies.
19800 * inferiors.c (struct inferior_info): Add target_data
19801 member.
19802 (clear_inferiors): Free target_data member if set.
19803 (inferior_target_data, set_inferior_target_data): New functions.
19804 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19805 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19806 * linux-low.c (linux_bp_reinsert): New variable.
19807 (struct inferior_linux_data): New.
19808 (linux_create_inferior): Use set_inferior_target_data.
19809 (linux_attach): Likewise. Call add_inferior.
19810 (linux_wait_for_one_inferior): New function.
19811 (linux_wait): Call it.
19812 (linux_write_memory): Add const.
19813 (initialize_low): Call set_breakpoint_data.
19814 * linux-low.h (struct linux_target_ops): Add breakpoint
19815 handling members.
19816 * server.c (attach_inferior): Remove extra add_inferior
19817 call.
19818 * server.h: Include mem-break.h. Update inferior.c
19819 prototypes.
19820 * target.c (read_inferior_memory)
19821 (write_inferior_memory): New functions.
19822 * target.h (read_inferior_memory)
19823 (write_inferior_memory): Change macros to prototypes.
19824 (struct target_ops): Update comments. Add const to write_memory
19825 definition.
19826
19827 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
19828
19829 * linux-low.c (usr_store_inferior_registers): Support
19830 registers which are allowed to fail to store.
19831 * linux-low.h (linux_target_ops): Likewise.
19832 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19833 (ppc_cannot_store_register): FPSCR may not be storable.
19834
19835 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19836
19837 * server.h: Include <string.h> if HAVE_STRING_H.
19838 * ChangeLog: Correct paths in last ChangeLog entry.
19839
19840 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19841
19842 * linux-low.h: Remove obsolete prototypes.
19843 (struct linux_target_ops): New.
19844 (extern the_low_target): New.
19845 * linux-low.c (num_regs, regmap): Remove declarations.
19846 (register_addr): Use the_low_target explicitly.
19847 (fetch_register): Likewise.
19848 (usr_fetch_inferior_registers): Likewise.
19849 (usr_store_inferior_registers): Likewise.
19850 * linux-arm-low.c (num_regs): Remove.
19851 (arm_num_regs): Define.
19852 (arm_regmap): Renamed from regmap, made static.
19853 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19854 made static.
19855 (arm_cannot_store_register): Renamed from cannot_store_register,
19856 made static.
19857 (the_low_target): New.
19858 * linux-i386-low.c (num_regs): Remove.
19859 (i386_num_regs): Define.
19860 (i386_regmap): Renamed from regmap, made static.
19861 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19862 made static.
19863 (i386_cannot_store_register): Renamed from cannot_store_register,
19864 made static.
19865 (the_low_target): New.
19866 * linux-ia64-low.c (num_regs): Remove.
19867 (ia64_num_regs): Define.
19868 (ia64_regmap): Renamed from regmap, made static.
19869 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19870 made static.
19871 (ia64_cannot_store_register): Renamed from cannot_store_register,
19872 made static.
19873 (the_low_target): New.
19874 * linux-m68k-low.c (num_regs): Remove.
19875 (m68k_num_regs): Define.
19876 (m68k_regmap): Renamed from regmap, made static.
19877 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19878 made static.
19879 (m68k_cannot_store_register): Renamed from cannot_store_register,
19880 made static.
19881 (the_low_target): New.
19882 * linux-mips-low.c (num_regs): Remove.
19883 (mips_num_regs): Define.
19884 (mips_regmap): Renamed from regmap, made static.
19885 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19886 made static.
19887 (mips_cannot_store_register): Renamed from cannot_store_register,
19888 made static.
19889 (the_low_target): New.
19890 * linux-ppc-low.c (num_regs): Remove.
19891 (ppc_num_regs): Define.
19892 (ppc_regmap): Renamed from regmap, made static.
19893 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19894 made static.
19895 (ppc_cannot_store_register): Renamed from cannot_store_register,
19896 made static.
19897 (the_low_target): New.
19898 * linux-s390-low.c (num_regs): Remove.
19899 (s390_num_regs): Define.
19900 (s390_regmap): Renamed from regmap, made static.
19901 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19902 made static.
19903 (s390_cannot_store_register): Renamed from cannot_store_register,
19904 made static.
19905 (the_low_target): New.
19906 * linux-sh-low.c (num_regs): Remove.
19907 (sh_num_regs): Define.
19908 (sh_regmap): Renamed from regmap, made static.
19909 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19910 made static.
19911 (sh_cannot_store_register): Renamed from cannot_store_register,
19912 made static.
19913 (the_low_target): New.
19914 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19915 (the_low_target): New.
19916
19917 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19918
19919 * Makefile.in: Add stamp-h target.
19920 * configure.in: Create stamp-h.
19921 * configure: Regenerated.
19922
19923 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19924
19925 * inferiors.c: New file.
19926 * target.c: New file.
19927 * target.h: New file.
19928 * Makefile.in: Add target.o and inferiors.o. Update
19929 dependencies.
19930 * linux-low.c (inferior_pid): New static variable,
19931 moved from server.c.
19932 (linux_create_inferior): Renamed from create_inferior.
19933 Call add_inferior. Return 0 on success instead of a PID.
19934 (linux_attach): Renamed from myattach.
19935 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19936 (linux_thread_alive): Renamed from mythread_alive.
19937 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19938 child dies.
19939 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19940 (regsets_store_inferior_registers): Correct error message.
19941 Add missing ``return 0''.
19942 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19943 (linux_store_registers): Renamed from store_inferior_registers.
19944 (linux_read_memory): Renamed from read_inferior_memory.
19945 (linux_write_memory): Renamed from write_inferior_memory.
19946 (linux_target_ops): New structure.
19947 (initialize_low): Call set_target_ops ().
19948 * remote-utils.c (unhexify): New function.
19949 (hexify): New function.
19950 (input_interrupt): Send signals to ``signal_pid''.
19951 * server.c (inferior_pid): Remove.
19952 (start_inferior): Update create_inferior call.
19953 (attach_inferior): Call add_inferior.
19954 (handle_query): New function.
19955 (main): Call handle_query for `q' packets.
19956 * server.h: Include "target.h". Remove obsolete prototypes.
19957 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19958
19959 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19960
19961 * Makefile.in: Add WARN_CFLAGS. Update configury
19962 dependencies.
19963 * configure.in: Check for <string.h>
19964 * configure: Regenerate.
19965 * config.in: Regenerate.
19966 * gdbreplay.c: Include needed system headers.
19967 (remote_open): Remove strchr prototype.
19968 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19969 * regcache.c (supply_register): Change buf argument to const void *.
19970 (supply_register_by_name): Likewise.
19971 (collect_register): Change buf argument to void *.
19972 (collect_register_by_name): Likewise.
19973 * regcache.h: Add missing prototypes.
19974 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19975 * server.c (handle_query): New function.
19976 (attached): New static variable, moved out of main.
19977 (main): Quiet longjmp clobber warnings.
19978 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19979 * utils.c (error): Remove NORETURN.
19980 (fatal): Likewise.
This page took 0.477138 seconds and 4 git commands to generate.