]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Add support for NetBSD threads in i386-bsd-nat.c
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
4635ff97
TT
12020-03-12 Tom Tromey <tom@tromey.com>
2
3 * configure: Rebuild.
4 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
5 (WIN32APILIBS): New subst.
6 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
7 gdbsupport files.
8 (gdbsupport/%.o): Remove target.
9 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
10 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
11 (WIN32APILIBS): New variable.
12 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
13 (gdbreplay$(EXEEXT)): Likewise.
14
9a665d62
TT
152020-03-12 Tom Tromey <tom@tromey.com>
16
17 * config.in, configure: Rebuild.
18 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
19 * acinclude.m4: Include gettext-sister.m4.
20 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
21 variables.
22 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
23 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
24
272cd5a3
SM
252020-03-12 Simon Marchi <simon.marchi@efficios.com>
26
27 * acinclude.m4: Update path to selftest.m4.
28
db6878ac
SM
292020-03-12 Simon Marchi <simon.marchi@efficios.com>
30
31 * configure.ac: Don't source bfd/development.sh, move
32 GDB_AC_COMMON higher.
33 * configure: Re-generate.
34
4d696a5c
SM
352020-03-12 Simon Marchi <simon.marchi@efficios.com>
36
37 * configure: Re-generate.
38
a0761e34
SM
392020-03-11 Simon Marchi <simon.marchi@efficios.com>
40
41 * configure: Re-generate.
42
20ea4a60
AB
432020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
44
45 * .dir-locals.el: New file.
46
842806cb
TBA
472020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
48
49 * .gitattributes: New file.
50
442131c1
AB
512020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
54 reply into an S reply.
55 * server.cc (disable_packet_T): New global.
56 (captured_main): Set new global when appropriate.
57 * server.h (disable_packet_T): Declare.
58
dda42c0b
TT
592020-02-21 Tom Tromey <tom@tromey.com>
60
61 * Makefile.in (mostlyclean): New target.
62
52405d85
TBA
632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
64
65 * target.h (struct process_stratum_target): Remove.
66 (class process_target): Rename to ...
67 (class process_stratum_target): ... this.
68 * linux-low.h (class linux_process_target): Derive from
69 'process_stratum_target'.
70 * linux-low.cc (linux_target_ops): Remove.
71 (initialize_low): Set the_target to the singleton instance of
72 linux_process_target.
73 * lynx-low.h (class lynx_process_target): Derive from
74 'process_stratum_target'.
75 * lynx-low.cc (lynx_target_ops): Remove.
76 (initialize_low): Set the_target to the singleton instance of
77 lynx_process_target.
78 * nto-low.h (class nto_process_target): Derive from
79 'process_stratum_target'.
80 * nto-low.cc (nto_target_ops): Remove.
81 (initialize_low): Set the_target to the singleton instance of
82 nto_process_target.
83 * win32-low.h (class win32_process_target): Derive from
84 'process_stratum_target'.
85 * win32-low.cc (win32_target_ops): Remove.
86 (initialize_low): Set the_target to the singleton instance of
87 win32_process_target.
88
89 Replace 'the_target->pt' with 'the_target' in the uses below.
90
91 * hostio.cc (hostio_error)
92 (handle_setfs)
93 (handle_open)
94 (handle_unlink)
95 (handle_readlink)
96 * linux-aarch32-low.cc (arm_breakpoint_at)
97 * linux-aarch64-low.cc (aarch64_breakpoint_at)
98 * linux-arm-low.cc (arm_sigreturn_next_pc)
99 (arm_get_hwcap)
100 (arm_get_syscall_trapinfo)
101 * linux-cris-low.cc (cris_breakpoint_at)
102 * linux-crisv32-low.cc (cris_breakpoint_at)
103 * linux-low.cc (handle_extended_wait)
104 (linux_wait_1)
105 (linux_read_memory)
106 (linux_process_target::breakpoint_kind_from_pc)
107 (linux_get_auxv)
108 * linux-m32r-low.cc (m32r_breakpoint_at)
109 * linux-mips-low.cc (mips_breakpoint_at)
110 * linux-nios2-low.cc (nios2_breakpoint_at)
111 * linux-ppc-low.cc (ppc_breakpoint_at)
112 * linux-s390-low.cc (s390_get_hwcap)
113 * linux-sh-low.cc (sh_breakpoint_at)
114 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
115 (sparc_store_gregset_from_stack)
116 (sparc_breakpoint_at)
117 * linux-tic6x-low.cc (tic6x_breakpoint_at)
118 * linux-tile-low.cc (tile_breakpoint_at)
119 * linux-x86-low.cc (x86_breakpoint_at)
120 * linux-xtensa-low.cc (xtensa_breakpoint_at)
121 * mem-break.cc (bp_size)
122 (bp_opcode)
123 (insert_memory_breakpoint)
124 (set_raw_breakpoint_at)
125 (delete_raw_breakpoint)
126 (z_type_supported)
127 (uninsert_raw_breakpoint)
128 (reinsert_raw_breakpoint)
129 (validate_inserted_breakpoint)
130 * regcache.cc (regcache_read_pc)
131 (regcache_write_pc)
132 * remote-utils.cc (putpkt_binary_1)
133 (input_interrupt)
134 (getpkt)
135 (prepare_resume_reply)
136 * server.cc (handle_general_set)
137 (handle_detach)
138 (handle_qxfer_auxv)
139 (handle_qxfer_exec_file)
140 (handle_qxfer_libraries_svr4)
141 (handle_qxfer_osdata)
142 (handle_qxfer_siginfo)
143 (handle_qxfer_fdpic)
144 (handle_query)
145 (resume)
146 (handle_v_requests)
147 (queue_stop_reply_callback)
148 (captured_main)
149 * target.cc (prepare_to_access_memory)
150 (done_accessing_memory)
151 (read_inferior_memory)
152 (target_write_memory)
153 (target_stop_and_wait)
154 (target_wait)
155 (target_mourn_inferior)
156 (target_continue_no_signal)
157 (target_continue)
158 (target_supports_multi_process)
159 (kill_inferior)
160 * target.h
161 (target_create_inferior)
162 (target_post_create_inferior)
163 (myattach)
164 (target_supports_fork_events)
165 (target_supports_vfork_events)
166 (target_supports_exec_events)
167 (target_handle_new_gdb_connection)
168 (detach_inferior)
169 (mythread_alive)
170 (fetch_inferior_registers)
171 (store_inferior_registers)
172 (join_inferior)
173 (target_supports_non_stop)
174 (target_async)
175 (target_process_qsupported)
176 (target_supports_catch_syscall)
177 (target_get_ipa_tdesc_idx)
178 (target_supports_tracepoints)
179 (target_supports_fast_tracepoints)
180 (target_get_min_fast_tracepoint_insn_len)
181 (target_thread_stopped)
182 (target_pause_all)
183 (target_unpause_all)
184 (target_stabilize_threads)
185 (target_install_fast_tracepoint_jump_pad)
186 (target_emit_ops)
187 (target_supports_disable_randomization)
188 (target_supports_agent)
189 (target_enable_btrace)
190 (target_disable_btrace)
191 (target_read_btrace)
192 (target_read_btrace_conf)
193 (target_supports_range_stepping)
194 (target_supports_stopped_by_sw_breakpoint)
195 (target_stopped_by_sw_breakpoint)
196 (target_supports_stopped_by_hw_breakpoint)
197 (target_supports_hardware_single_step)
198 (target_stopped_by_hw_breakpoint)
199 (target_breakpoint_kind_from_pc)
200 (target_breakpoint_kind_from_current_state)
201 (target_supports_software_single_step)
202 (target_core_of_thread)
203 (target_thread_name)
204 (target_thread_handle)
205 * win32-low.cc (do_initial_child_stuff)
206
207 Rename target op default definitions listed below.
208
209 * target.cc (process_target::post_create_inferior): Rename as ...
210 (process_stratum_target::post_create_inferior): ... this.
211 (process_target::prepare_to_access_memory): Rename as ...
212 (process_stratum_target::prepare_to_access_memory): ... this.
213 (process_target::done_accessing_memory): Rename as ...
214 (process_stratum_target::done_accessing_memory): ... this.
215 (process_target::look_up_symbols): Rename as ...
216 (process_stratum_target::look_up_symbols): ... this.
217 (process_target::supports_read_auxv): Rename as ...
218 (process_stratum_target::supports_read_auxv): ... this.
219 (process_target::read_auxv): Rename as ...
220 (process_stratum_target::read_auxv): ... this.
221 (process_target::supports_z_point_type): Rename as ...
222 (process_stratum_target::supports_z_point_type): ... this.
223 (process_target::insert_point): Rename as ...
224 (process_stratum_target::insert_point): ... this.
225 (process_target::remove_point): Rename as ...
226 (process_stratum_target::remove_point): ... this.
227 (process_target::stopped_by_sw_breakpoint): Rename as ...
228 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
229 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
230 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
231 (process_target::stopped_by_hw_breakpoint): Rename as ...
232 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
233 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
234 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
235 (process_target::supports_hardware_single_step): Rename as ...
236 (process_stratum_target::supports_hardware_single_step): ... this.
237 (process_target::stopped_by_watchpoint): Rename as ...
238 (process_stratum_target::stopped_by_watchpoint): ... this.
239 (process_target::stopped_data_address): Rename as ...
240 (process_stratum_target::stopped_data_address): ... this.
241 (process_target::supports_read_offsets): Rename as ...
242 (process_stratum_target::supports_read_offsets): ... this.
243 (process_target::read_offsets): Rename as ...
244 (process_stratum_target::read_offsets): ... this.
245 (process_target::supports_get_tls_address): Rename as ...
246 (process_stratum_target::supports_get_tls_address): ... this.
247 (process_target::get_tls_address): Rename as ...
248 (process_stratum_target::get_tls_address): ... this.
249 (process_target::hostio_last_error): Rename as ...
250 (process_stratum_target::hostio_last_error): ... this.
251 (process_target::supports_qxfer_osdata): Rename as ...
252 (process_stratum_target::supports_qxfer_osdata): ... this.
253 (process_target::qxfer_osdata): Rename as ...
254 (process_stratum_target::qxfer_osdata): ... this.
255 (process_target::supports_qxfer_siginfo): Rename as ...
256 (process_stratum_target::supports_qxfer_siginfo): ... this.
257 (process_target::qxfer_siginfo): Rename as ...
258 (process_stratum_target::qxfer_siginfo): ... this.
259 (process_target::supports_non_stop): Rename as ...
260 (process_stratum_target::supports_non_stop): ... this.
261 (process_target::async): Rename as ...
262 (process_stratum_target::async): ... this.
263 (process_target::start_non_stop): Rename as ...
264 (process_stratum_target::start_non_stop): ... this.
265 (process_target::supports_multi_process): Rename as ...
266 (process_stratum_target::supports_multi_process): ... this.
267 (process_target::supports_fork_events): Rename as ...
268 (process_stratum_target::supports_fork_events): ... this.
269 (process_target::supports_vfork_events): Rename as ...
270 (process_stratum_target::supports_vfork_events): ... this.
271 (process_target::supports_exec_events): Rename as ...
272 (process_stratum_target::supports_exec_events): ... this.
273 (process_target::handle_new_gdb_connection): Rename as ...
274 (process_stratum_target::handle_new_gdb_connection): ... this.
275 (process_target::handle_monitor_command): Rename as ...
276 (process_stratum_target::handle_monitor_command): ... this.
277 (process_target::core_of_thread): Rename as ...
278 (process_stratum_target::core_of_thread): ... this.
279 (process_target::supports_read_loadmap): Rename as ...
280 (process_stratum_target::supports_read_loadmap): ... this.
281 (process_target::read_loadmap): Rename as ...
282 (process_stratum_target::read_loadmap): ... this.
283 (process_target::process_qsupported): Rename as ...
284 (process_stratum_target::process_qsupported): ... this.
285 (process_target::supports_tracepoints): Rename as ...
286 (process_stratum_target::supports_tracepoints): ... this.
287 (process_target::read_pc): Rename as ...
288 (process_stratum_target::read_pc): ... this.
289 (process_target::write_pc): Rename as ...
290 (process_stratum_target::write_pc): ... this.
291 (process_target::supports_thread_stopped): Rename as ...
292 (process_stratum_target::supports_thread_stopped): ... this.
293 (process_target::thread_stopped): Rename as ...
294 (process_stratum_target::thread_stopped): ... this.
295 (process_target::supports_get_tib_address): Rename as ...
296 (process_stratum_target::supports_get_tib_address): ... this.
297 (process_target::get_tib_address): Rename as ...
298 (process_stratum_target::get_tib_address): ... this.
299 (process_target::pause_all): Rename as ...
300 (process_stratum_target::pause_all): ... this.
301 (process_target::unpause_all): Rename as ...
302 (process_stratum_target::unpause_all): ... this.
303 (process_target::stabilize_threads): Rename as ...
304 (process_stratum_target::stabilize_threads): ... this.
305 (process_target::supports_fast_tracepoints): Rename as ...
306 (process_stratum_target::supports_fast_tracepoints): ... this.
307 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
308 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
309 (process_target::emit_ops): Rename as ...
310 (process_stratum_target::emit_ops): ... this.
311 (process_target::supports_disable_randomization): Rename as ...
312 (process_stratum_target::supports_disable_randomization): ... this.
313 (process_target::supports_qxfer_libraries_svr4): Rename as ...
314 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
315 (process_target::qxfer_libraries_svr4): Rename as ...
316 (process_stratum_target::qxfer_libraries_svr4): ... this.
317 (process_target::supports_agent): Rename as ...
318 (process_stratum_target::supports_agent): ... this.
319 (process_target::enable_btrace): Rename as ...
320 (process_stratum_target::enable_btrace): ... this.
321 (process_target::disable_btrace): Rename as ...
322 (process_stratum_target::disable_btrace): ... this.
323 (process_target::read_btrace): Rename as ...
324 (process_stratum_target::read_btrace): ... this.
325 (process_target::read_btrace_conf): Rename as ...
326 (process_stratum_target::read_btrace_conf): ... this.
327 (process_target::supports_range_stepping): Rename as ...
328 (process_stratum_target::supports_range_stepping): ... this.
329 (process_target::supports_pid_to_exec_file): Rename as ...
330 (process_stratum_target::supports_pid_to_exec_file): ... this.
331 (process_target::pid_to_exec_file): Rename as ...
332 (process_stratum_target::pid_to_exec_file): ... this.
333 (process_target::supports_multifs): Rename as ...
334 (process_stratum_target::supports_multifs): ... this.
335 (process_target::multifs_open): Rename as ...
336 (process_stratum_target::multifs_open): ... this.
337 (process_target::multifs_unlink): Rename as ...
338 (process_stratum_target::multifs_unlink): ... this.
339 (process_target::multifs_readlink): Rename as ...
340 (process_stratum_target::multifs_readlink): ... this.
341 (process_target::breakpoint_kind_from_pc): Rename as ...
342 (process_stratum_target::breakpoint_kind_from_pc): ... this.
343 (process_target::breakpoint_kind_from_current_state): Rename as ...
344 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
345 (process_target::thread_name): Rename as ...
346 (process_stratum_target::thread_name): ... this.
347 (process_target::thread_handle): Rename as ...
348 (process_stratum_target::thread_handle): ... this.
349 (process_target::supports_software_single_step): Rename as ...
350 (process_stratum_target::supports_software_single_step): ... this.
351 (process_target::supports_catch_syscall): Rename as ...
352 (process_stratum_target::supports_catch_syscall): ... this.
353 (process_target::get_ipa_tdesc_idx): Rename as ...
354 (process_stratum_target::get_ipa_tdesc_idx): ... this.
355
478f9adf
PA
3562020-02-20 Pedro Alves <palves@redhat.com>
357
358 * target.cc (set_target_ops): Simply copy the given target pointer
359 instead of creating a copy of the pointed object.
360
d633e831
TBA
3612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
362
363 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
364 of process_target.
365
366 * target.h (struct process_stratum_target): Remove the target op.
367 (class process_target): Add the target op.
368 (target_get_ipa_tdesc_idx): Update the macro.
369 * target.cc (process_target::get_ipa_tdesc_idx): Define.
370
371 Update the derived classes and callers below.
372
373 * linux-low.cc (linux_target_ops): Update.
374 (linux_get_ipa_tdesc_idx): Turn into ...
375 (linux_process_target::get_ipa_tdesc_idx): ... this.
376 * linux-low.h (class linux_process_target): Update.
377 * lynx-low.cc (lynx_target_ops): Update.
378 * nto-low.cc (nto_target_ops): Update.
379 * win32-low.cc (win32_target_ops): Update.
380
bc8d3ae4
TBA
3812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
382
383 Turn process_stratum_target's supports_catch_syscall op into a
384 method of process_target.
385
386 * target.h (struct process_stratum_target): Remove the target op.
387 (class process_target): Add the target op.
388 (target_supports_catch_syscall): Update the macro.
389 * target.cc (process_target::supports_catch_syscall): Define.
390
391 Update the derived classes and callers below.
392
393 * linux-low.cc (linux_target_ops): Update.
394 (linux_supports_catch_syscall): Turn into ...
395 (linux_process_target::supports_catch_syscall): ... this.
396 * linux-low.h (class linux_process_target): Update.
397 * lynx-low.cc (lynx_target_ops): Update.
398 * nto-low.cc (nto_target_ops): Update.
399 * win32-low.cc (win32_target_ops): Update.
400
5303a34f
TBA
4012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
402
403 Turn process_stratum_target's supports_software_single_step op
404 into a method of process_target.
405
406 * target.h (struct process_stratum_target): Remove the target op.
407 (class process_target): Add the target op.
408 (target_supports_software_single_step): Update the macro.
409 * target.cc (process_target::supports_software_single_step): Define.
410
411 Update the derived classes and callers below.
412
413 * linux-low.cc (linux_target_ops): Update.
414 (linux_supports_software_single_step): Turn into ...
415 (linux_process_target::supports_software_single_step): ... this.
416 * linux-low.h (class linux_process_target): Update.
417 * lynx-low.cc (lynx_target_ops): Update.
418 * nto-low.cc (nto_target_ops): Update.
419 * win32-low.cc (win32_target_ops): Update.
420
7f63b89b
TBA
4212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
422
423 Turn process_stratum_target's thread_name and thread_handle ops
424 into methods of process_target.
425
426 * target.h (struct process_stratum_target): Remove the target ops.
427 (class process_target): Add the target ops.
428 (target_thread_name): Update the macro.
429 (target_thread_handle): Update the macro.
430 * target.cc (process_target::thread_name): Define.
431 (process_target::thread_handle): Define.
432
433 Update the derived classes and callers below.
434
435 * linux-low.cc (linux_target_ops): Update.
436 (linux_process_target::thread_name): Define.
437 (linux_process_target::thread_handle): Define.
438 * linux-low.h (class linux_process_target): Update.
439 * lynx-low.cc (lynx_target_ops): Update.
440 * nto-low.cc (nto_target_ops): Update.
441 * win32-low.cc (win32_target_ops): Update.
442
d367006f
TBA
4432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
444
445 Turn process_stratum_target's breakpoint_kind_from_pc,
446 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
447 ops into methods of process_target.
448
449 * target.h (struct process_stratum_target): Remove the target op.
450 (class process_target): Add the target op.
451 (target_breakpoint_kind_from_pc): Update the macro.
452 (target_breakpoint_kind_from_current_state): Update the macro.
453 (default_breakpoint_kind_from_pc): Remove declaration.
454 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
455 (process_target::breakpoint_kind_from_pc): ... this.
456 (process_target::breakpoint_kind_from_current_state): Define.
457
458 Update the derived classes and callers below.
459
460 * mem-break.cc (bp_size): Update.
461 (bp_opcode): Update.
462 * linux-low.cc (linux_target_ops): Update.
463 (linux_wait_1): Update.
464 (linux_breakpoint_kind_from_pc): Turn into ...
465 (linux_process_target::breakpoint_kind_from_pc): ... this.
466 (linux_sw_breakpoint_from_kind): Turn into ...
467 (linux_process_target::sw_breakpoint_from_kind): ... this.
468 (linux_breakpoint_kind_from_current_state): Turn into ...
469 (linux_process_target::breakpoint_kind_from_current_state): ... this.
470 * linux-low.h (class linux_process_target): Update.
471 * lynx-low.cc (lynx_target_ops): Update.
472 (lynx_process_target::sw_breakpoint_from_kind): Define.
473 * lynx-low.h (class lynx_process_target): Update.
474 * nto-low.cc (nto_target_ops): Update.
475 (nto_sw_breakpoint_from_kind): Turn into ...
476 (nto_process_target::sw_breakpoint_from_kind): ... this.
477 * nto-low.h (class nto_process_target): Update.
478 * win32-low.cc (win32_target_ops): Update.
479 (win32_sw_breakpoint_from_kind): Turn into ...
480 (win32_process_target::sw_breakpoint_from_kind): ... this.
481 * win32-low.h (class win32_process_target): Update.
482
c9b7b804
TBA
4832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
484
485 Turn process_stratum_target's multifs_open, multifs_readlink,
486 multifs_unlink ops into methods of process_target.
487
488 * target.h (struct process_stratum_target): Remove the target ops.
489 (class process_target): Add the target ops. Also add
490 'supports_multifs'.
491 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
492 "sys/stat.h".
493 (process_target::supports_multifs): Define.
494 (process_target::multifs_open): Define.
495 (process_target::multifs_readlink): Define.
496 (process_target::multifs_unlink): Define.
497
498 Update the derived classes and callers below.
499
500 * hostio.cc (handle_setfs): Update.
501 (handle_open): Update.
502 (handle_unlink): Update.
503 (handle_readlink): Update.
504 * linux-low.cc (linux_target_ops): Update.
505 (linux_process_target::supports_multifs): Define.
506 (linux_process_target::multifs_open): Define.
507 (linux_process_target::multifs_readlink): Define.
508 (linux_process_target::multifs_unlink): Define.
509 * linux-low.h (class linux_process_target): Update.
510 * lynx-low.cc (lynx_target_ops): Update.
511 * nto-low.cc (nto_target_ops): Update.
512 * win32-low.cc (win32_target_ops): Update.
513
8247b823
TBA
5142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
515
516 Turn process_stratum_target's pid_to_exec_file op into a method
517 of process_target.
518
519 * target.h (struct process_stratum_target): Remove the target op.
520 (class process_target): Add the target op. Also add
521 'supports_pid_to_exec_file'.
522 * target.cc (process_target::pid_to_exec_file): Define.
523 (process_target::supports_pid_to_exec_file): Define.
524
525 Update the derived classes and callers below.
526
527 * server.cc (handle_qxfer_exec_file): Update.
528 (handle_query): Update.
529 * linux-low.cc (linux_target_ops): Update.
530 (linux_process_target::supports_pid_to_exec_file): Define.
531 (linux_process_target::pid_to_exec_file): Define.
532 * linux-low.h (class linux_process_target): Update.
533 * lynx-low.cc (lynx_target_ops): Update.
534 * nto-low.cc (nto_target_ops): Update.
535 * win32-low.cc (win32_target_ops): Update.
536
2526e0cd
TBA
5372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
538
539 Turn process_stratum_target's supports_range_stepping op into a
540 method of process_target.
541
542 * target.h (struct process_stratum_target): Remove the target op.
543 (class process_target): Add the target op.
544 (target_supports_range_stepping): Update the macro.
545 * target.cc (process_target::supports_range_stepping): Define.
546
547 Update the derived classes and callers below.
548
549 * linux-low.cc (linux_target_ops): Update.
550 (linux_supports_range_stepping): Turn into ...
551 (linux_process_target::supports_range_stepping): ... this.
552 * linux-low.h (class linux_process_target): Update.
553 * lynx-low.cc (lynx_target_ops): Update.
554 * nto-low.cc (nto_target_ops): Update.
555 * win32-low.cc (win32_target_ops): Update.
556
79597bdd
TBA
5572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
558
559 Turn process_stratum_target's btrace-related ops (enable_btrace,
560 disable_btrace, read_btrace, read_btrace_conf) into methods of
561 process_target.
562
563 * target.h (struct process_stratum_target): Remove the target ops.
564 (class process_target): Add the target ops.
565 (target_enable_btrace): Update.
566 (target_disable_btrace): Update.
567 (target_read_btrace): Update.
568 (target_read_btrace_conf): Update.
569 * target.cc (process_target::enable_btrace): Define.
570 (process_target::disable_btrace): Define.
571 (process_target::read_btrace): Define.
572 (process_target::read_btrace_conf): Define.
573
574 Update the derived classes and callers below.
575
576 * linux-low.cc (linux_target_ops): Update.
577 (linux_process_target:enable_btrace): Define as a wrapper around
578 linux_enable_btrace.
579 (linux_low_disable_btrace): Turn into ...
580 (linux_process_target::disable_btrace): ... this.
581 (linux_low_read_btrace): Turn into ...
582 (linux_process_target::read_btrace): ... this.
583 (linux_low_btrace_conf): Turn into ...
584 (linux_process_target::read_btrace_conf): ... this.
585 * linux-low.h (class linux_process_target): Update.
586 * lynx-low.cc (lynx_target_ops): Update.
587 * nto-low.cc (nto_target_ops): Update.
588 * win32-low.cc (win32_target_ops): Update.
589
c0245cb9
TBA
5902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
591
592 Turn process_stratum_target's supports_agent op into a method of
593 process_target.
594
595 * target.h (struct process_stratum_target): Remove the target op.
596 (class process_target): Add the target op.
597 (target_supports_agent): Update the macro.
598 * target.cc (process_target::supports_agent): Define.
599
600 Update the derived classes and callers below.
601
602 * linux-low.cc (linux_target_ops): Update.
603 (linux_supports_agent): Turn into ...
604 (linux_process_target::supports_agent): ... this.
605 * linux-low.h (class linux_process_target): Update.
606 * lynx-low.cc (lynx_target_ops): Update.
607 * nto-low.cc (nto_target_ops): Update.
608 * win32-low.cc (win32_target_ops): Update.
609
974387bb
TBA
6102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
611
612 Turn process_stratum_target's qxfer_libraries_svr4 op into a
613 method of process_target.
614
615 * target.h (struct process_stratum_target): Remove the target op.
616 (class process_target): Add the target op. Also add
617 'supports_qxfer_libraries_svr4'.
618 * target.cc (process_target::qxfer_libraries_svr4): Define.
619 (process_target::supports_qxfer_libraries_svr4): Define.
620
621 Update the derived classes and callers below.
622
623 * server.cc (handle_qxfer_libraries_svr4): Update.
624 (handle_query): Update.
625 * linux-low.cc (linux_target_ops): Update.
626 (linux_process_target::supports_qxfer_libraries_svr4): Define.
627 (linux_qxfer_libraries_svr4): Turn into ...
628 (linux_process_target::qxfer_libraries_svr4): ... this.
629 * linux-low.h (class linux_process_target): Update.
630 * lynx-low.cc (lynx_target_ops): Update.
631 * nto-low.cc (nto_target_ops): Update.
632 * win32-low.cc (win32_target_ops): Update.
633
c756403b
TBA
6342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
635
636 Turn process_stratum_target's supports_disable_randomization op
637 into a method of process_target.
638
639 * target.h (struct process_stratum_target): Remove the target op.
640 (class process_target): Add the target op.
641 (target_supports_disable_randomization): Update the macro.
642 * target.cc (process_target::supports_disable_randomization): Define.
643
644 Update the derived classes and callers below.
645
646 * linux-low.cc (linux_target_ops): Update.
647 (linux_supports_disable_randomization): Turn into ...
648 (linux_process_target::supports_disable_randomization): ... this.
649 * linux-low.h (class linux_process_target): Update.
650 * lynx-low.cc (lynx_target_ops): Update.
651 * nto-low.cc (nto_target_ops): Update.
652 * win32-low.cc (win32_target_ops): Update.
653
345dafad
TBA
6542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
655
656 Turn process_stratum_target's emit_ops op into a method of
657 process_target.
658
659 * target.h (struct process_stratum_target): Remove the target op.
660 (class process_target): Add the target op.
661 (target_emit_ops): Update the macro.
662 * target.cc (process_target::emit_ops): Define.
663
664 Update the derived classes and callers below.
665
666 * linux-low.cc (linux_target_ops): Update.
667 (linux_emit_ops): Turn into ...
668 (linux_process_target::emit_ops): ... this.
669 * linux-low.h (class linux_process_target): Update.
670 * lynx-low.cc (lynx_target_ops): Update.
671 * nto-low.cc (nto_target_ops): Update.
672 * win32-low.cc (win32_target_ops): Update.
673
c23c9391
TBA
6742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
675
676 Turn process_stratum_target's install_fast_tracepoint_jump_pad
677 and get_min_fast_tracepoint_insn_len ops into methods of
678 process_target.
679
680 * target.h (struct process_stratum_target): Remove the target ops.
681 (class process_target): Add the target ops. Also add
682 'supports_fast_tracepoints'.
683 (target_supports_fast_tracepoints): Update the macro.
684 (target_get_min_fast_tracepoint_insn_len): Update the macro.
685 (install_fast_tracepoint_jump_pad): Update and rename the macro
686 to ...
687 (target_install_fast_tracepoint_jump_pad): ... this.
688 * target.cc (process_target::supports_fast_tracepoints): Define.
689 (process_target::install_fast_tracepoint_jump_pad): Define.
690 (process_target::get_min_fast_tracepoint_insn_len): Define.
691
692 Update the derived classes and callers below.
693
694 * tracepoint.cc (install_fast_tracepoint): Update.
695 * linux-low.cc (linux_target_ops): Update.
696 (linux_process_target::supports_fast_tracepoints): Define.
697 (linux_install_fast_tracepoint_jump_pad): Turn into ...
698 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
699 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
700 (linux_process_target::get_min_fast_tracepoint_insn_len): ... 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
5c9eb2f2
TBA
7062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
707
708 Turn process_stratum_target's stabilize_threads op into a
709 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_stabilize_threads): Update the macro.
714 * target.cc (process_target::stabilize_threads): Define.
715
716 Update the derived classes and callers below.
717
718 * server.cc (handle_status): Update.
719 * tracepoint.cc (cmd_qtdp): Update.
720 (cmd_qtstart): Update.
721 * linux-low.cc (linux_target_ops): Update.
722 (linux_stabilize_threads): Turn into ...
723 (linux_process_target::stabilize_threads): ... this.
724 (linux_wait_1): Update.
725 * linux-low.h (class linux_process_target): Update.
726 * lynx-low.cc (lynx_target_ops): Update.
727 * nto-low.cc (nto_target_ops): Update.
728 * win32-low.cc (win32_target_ops): Update.
729
29e8dc09
TBA
7302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
731
732 Turn process_stratum_target's pause_all and unpause_all ops
733 into methods of process_target.
734
735 * target.h (struct process_stratum_target): Remove the target ops.
736 (class process_target): Add the target ops.
737 (pause_all): Update the macro and rename to...
738 (target_pause_all): ... this.
739 (unpause_all): Update the macro and rename to...
740 (target_unpause_all): ... this.
741 * target.cc (process_target::pause_all): Define.
742 (process_target::unpause_all): Define.
743
744 Update the derived classes and callers below.
745
746 * server.cc (handle_status): Update.
747 * tracepoint.cc (clear_installed_tracepoints): Update.
748 (cmd_qtdp): Update.
749 (cmd_qtstart): Update.
750 (stop_tracing): Update.
751 (cmd_qtstatus): Update.
752 (upload_fast_traceframes): Update.
753 (run_inferior_command): Update.
754 * linux-low.cc (linux_target_ops): Update.
755 (linux_pause_all): Turn into ...
756 (linux_process_target::pause_all): ... this.
757 (linux_unpause_all): Turn into ...
758 (linux_process_target::unpause_all): ... this.
759 (linux_process_target::prepare_to_access_memory): Update.
760 (linux_process_target::done_accessing_memory): Update.
761 * linux-low.h (class linux_process_target): Update.
762 * lynx-low.cc (lynx_target_ops): Update.
763 * nto-low.cc (nto_target_ops): Update.
764 * win32-low.cc (win32_target_ops): Update.
765
4e2e869c
TBA
7662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
767
768 Turn process_stratum_target's get_tib_address op into a method of
769 process_target.
770
771 * target.h (struct process_stratum_target): Remove the target op.
772 (class process_target): Add the target op. Also add
773 'supports_get_tib_address'.
774 * target.cc (process_target::get_tib_address): Define.
775 (process_target::supports_get_tib_address): Define.
776
777 Update the derived classes and callers below.
778
779 * server.cc (handle_query): Update.
780 * linux-low.cc (win32_target_ops): Update.
781 * lynx-low.cc (lynx_target_ops): Update.
782 * nto-low.cc (nto_target_ops): Update.
783 * win32-low.cc (win32_target_ops): Update.
784 (win32_process_target::supports_get_tib_address): Define.
785 (win32_get_tib_address): Turn into ...
786 (win32_process_target::get_tib_address): ... this.
787 * win32-low.h (class win32_process_target): Update.
788
68119632
TBA
7892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
790
791 Turn process_stratum_target's thread_stopped op into a method of
792 process_target.
793
794 * target.h (struct process_stratum_target): Remove the target op.
795 (class process_target): Add the target op. Also add
796 'supports_thread_stopped'.
797 (target_thread_stopped): Update the macro.
798 * target.cc (process_target::thread_stopped): Define.
799 (process_target::supports_thread_stopped): Define.
800 (prepare_to_access_memory): Update.
801
802 Update the derived classes and callers below.
803
804 * server.cc (queue_stop_reply_callback): Update.
805 * linux-low.cc (linux_target_ops): Update.
806 (linux_process_target::supports_thread_stopped): Define.
807 (linux_thread_stopped): Turn into ...
808 (linux_process_target::thread_stopped): ... this.
809 * linux-low.h (class linux_process_target): Update.
810 * lynx-low.cc (lynx_target_ops): Update.
811 * nto-low.cc (nto_target_ops): Update.
812 * win32-low.cc (win32_target_ops): Update.
813
770d8f6a
TBA
8142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
815
816 Turn process_stratum_target's read_pc and write_pc ops into
817 methods of process_target.
818
819 * target.h (struct process_stratum_target): Remove the target ops.
820 (class process_target): Add the target ops.
821 * target.cc (process_target::read_pc): Define.
822 (process_target::write_pc): Define.
823
824 Update the derived classes and callers below.
825
826 * regcache.cc (regcache_read_pc): Update.
827 (regcache_write_pc): Update.
828 * linux-low.cc (linux_target_ops): Update.
829 (linux_read_pc): Turn into ...
830 (linux_process_target::read_pc): ... this.
831 (linux_write_pc): Turn into ...
832 (linux_process_target::write_pc): ... this.
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
290732bf
TBA
8382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
839
840 Turn process_stratum_target's supports_tracepoints op into a
841 method of process_target.
842
843 * target.h (struct process_stratum_target): Remove the target op.
844 (class process_target): Add the target op.
845 (target_supports_tracepoints): Update the macro.
846 * target.cc (process_target::supports_tracepoints): Define.
847
848 Update the derived classes and callers below.
849
850 * linux-low.cc (linux_target_ops): Update.
851 (linux_supports_tracepoints): Turn into ...
852 (linux_process_target::supports_tracepoints): ... this.
853 * linux-low.h (class linux_process_target): Update.
854 * lynx-low.cc (lynx_target_ops): Update.
855 * nto-low.cc (nto_target_ops): Update.
856 * win32-low.cc (win32_target_ops): Update.
857
0df28b1b
TBA
8582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
859
860 Turn process_stratum_target's process_qsupported op into a method
861 of process_target.
862
863 * target.h (struct process_stratum_target): Remove the target op.
864 (class process_target): Add the target op.
865 (target_process_qsupported): Update the macro.
866 * target.cc (process_target::process_qsupported): Define.
867
868 Update the derived classes and callers below.
869
870 * linux-low.cc (linux_target_ops): Update.
871 (linux_process_qsupported): Turn into ...
872 (linux_process_target::process_qsupported): ... this.
873 * linux-low.h (class linux_process_target): Update.
874 * lynx-low.cc (lynx_target_ops): Update.
875 * nto-low.cc (nto_target_ops): Update.
876 * win32-low.cc (win32_target_ops): Update.
877
9da41fda
TBA
8782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
879
880 Turn process_stratum_target's read_loadmap op into a method of
881 process_target.
882
883 * target.h (struct process_stratum_target): Remove the target op.
884 (class process_target): Add the target op. Also add
885 'supports_read_loadmap'.
886 * target.cc (process_target::read_loadmap): Define.
887 (process_target::supports_read_loadmap): Define.
888
889 Update the derived classes and callers below.
890
891 * server.cc (handle_qxfer_fdpic): Update.
892 (handle_query): Update.
893 * linux-low.cc (linux_target_ops): Update.
894 (linux_process_target::supports_read_loadmap): Define.
895 (linux_read_loadmap): Turn into ...
896 (linux_process_target::read_loadmap): ... this.
897 * linux-low.h (class linux_process_target): Update.
898 * lynx-low.cc (lynx_target_ops): Update.
899 * nto-low.cc (nto_target_ops): Update.
900 * win32-low.cc (win32_target_ops): Update.
901
95a45fc1
TBA
9022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
903
904 Turn process_stratum_target's core_of_thread op into a method of
905 process_target.
906
907 * target.h (struct process_stratum_target): Remove the target op.
908 (class process_target): Add the target op.
909 (target_core_of_thread): Update the macro.
910 * target.cc (process_target::core_of_thread): Define.
911
912 Update the derived classes and callers below.
913
914 * linux-low.cc (linux_target_ops): Update.
915 (linux_process_target::core_of_thread): Define.
916 * linux-low.h (class linux_process_target): Update.
917 * lynx-low.cc (lynx_target_ops): Update.
918 * nto-low.cc (nto_target_ops): Update.
919 * win32-low.cc (win32_target_ops): Update.
920
55cf3021
TBA
9212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
922
923 Turn process_stratum_target's handle_monitor_command op into a
924 method of process_target.
925
926 * target.h (struct process_stratum_target): Remove the target op.
927 (class process_target): Add the target op.
928 (target_handle_monitor_command): Update the macro.
929 * target.cc (process_target::handle_monitor_command): Define.
930
931 Update the derived classes and callers below.
932
933 * server.cc (handle_query): Update.
934 * linux-low.cc (linux_target_ops): Update.
935 (linux_process_target::handle_monitor_command): Define.
936 * linux-low.h (class linux_process_target): Update.
937 * lynx-low.cc (lynx_target_ops): Update.
938 * nto-low.cc (nto_target_ops): Update.
939 * win32-low.cc (win32_target_ops): Update.
940
fb00dfce
TBA
9412020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
942
943 Turn process_stratum_target's handle_new_gdb_connection op into a
944 method of process_target.
945
946 * target.h (struct process_stratum_target): Remove the target op.
947 (class process_target): Add the target op.
948 (target_handle_new_gdb_connection): Update the macro.
949 * target.cc (process_target::handle_new_gdb_connection): Define.
950
951 Update the derived classes and callers below.
952
953 * linux-low.cc (linux_target_ops): Update.
954 (linux_handle_new_gdb_connection): Turn into ...
955 (linux_process_target::handle_new_gdb_connection): ... this.
956 * linux-low.h (class linux_process_target): Update.
957 * lynx-low.cc (lynx_target_ops): Update.
958 * nto-low.cc (nto_target_ops): Update.
959 * win32-low.cc (win32_target_ops): Update.
960
9690a72a
TBA
9612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
962
963 Turn process_stratum_target's supports_fork_events,
964 supports_vfork_events, and supports_exec_events ops into methods
965 of process_target.
966
967 * target.h (struct process_stratum_target): Remove the target ops.
968 (class process_target): Add the target ops.
969 (target_supports_fork_events): Update the macro.
970 (target_supports_vfork_events): Update the macro.
971 (target_supports_exec_events): Update the macro.
972 * target.cc (process_target::supports_fork_events): Define.
973 (process_target::supports_vfork_events): Define.
974 (process_target::supports_exec_events): Define.
975
976 Update the derived classes and callers below.
977
978 * linux-low.cc (linux_target_ops): Update.
979 (linux_supports_fork_events): Turn into ...
980 (linux_process_target::supports_fork_events): ... this.
981 (linux_supports_vfork_events): Turn into ...
982 (linux_process_target::supports_vfork_events): ... this.
983 (linux_supports_exec_events): Turn into ...
984 (linux_process_target::supports_exec_events): ... this.
985 * linux-low.h (class linux_process_target): Update.
986 * lynx-low.cc (lynx_target_ops): Update.
987 * nto-low.cc (nto_target_ops): Update.
988 * win32-low.cc (win32_target_ops): Update.
989
652aef77
TBA
9902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
991
992 Turn process_stratum_target's supports_multi_process op into a
993 method of process_target.
994
995 * target.h (struct process_stratum_target): Remove the target op.
996 (class process_target): Add the target op.
997 * target.cc (process_target::supports_multi_process): Define.
998 (target_supports_multi_process): Update.
999
1000 Update the derived classes and callers below.
1001
1002 * linux-low.cc (linux_target_ops): Update.
1003 (linux_supports_multi_process): Turn into ...
1004 (linux_process_target::supports_multi_process): ... this.
1005 * linux-low.h (class linux_process_target): Update.
1006 * lynx-low.cc (lynx_target_ops): Update.
1007 * nto-low.cc (nto_target_ops): Update.
1008 * win32-low.cc (win32_target_ops): Update.
1009
0dc587d4
TBA
10102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1011
1012 Turn process_stratum_target's supports_non_stop, async, and
1013 start_non_stop ops into methods of process_target.
1014
1015 * target.h (struct process_stratum_target): Remove the target ops.
1016 (class process_target): Add the target ops.
1017 (target_supports_non_stop): Update the macro.
1018 (target_async): Update the macro.
1019 (start_non_stop): Remove declaration.
1020 * target.cc (process_target::supports_non_stop): Define.
1021 (process_target::async): Define.
1022 (process_target::start_non_stop): Define.
1023 (start_non_stop): Remove.
1024
1025 Update the derived classes and callers below.
1026
1027 * server.cc (handle_qxfer_siginfo): Update.
1028 (handle_query): Update.
1029 * linux-low.cc (linux_target_ops): Update.
1030 (linux_supports_non_stop): Turn into ...
1031 (linux_process_target::supports_non_stop): ... this.
1032 (linux_async): Turn into ...
1033 (linux_process_target::async): ... this.
1034 (linux_start_non_stop): Turn into ...
1035 (linux_process_target::start_non_stop): ... this.
1036 * linux-low.h (class linux_process_target): Update.
1037 * lynx-low.cc (lynx_target_ops): Update.
1038 * nto-low.cc (nto_target_ops): Update.
1039 (nto_supports_non_stop): Remove; rely on the default behavior
1040 instead.
1041 * win32-low.cc (win32_target_ops): Update.
1042
d7abedf7
TBA
10432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1044
1045 Turn process_stratum_target's qxfer_siginfo op into a method of
1046 process_target.
1047
1048 * target.h (struct process_stratum_target): Remove the target op.
1049 (class process_target): Add the target op. Also add
1050 'supports_qxfer_siginfo'.
1051 * target.cc (process_target::qxfer_siginfo): Define.
1052 (process_target::supports_qxfer_siginfo): Define.
1053
1054 Update the derived classes and callers below.
1055
1056 * server.cc (handle_qxfer_siginfo): Update.
1057 (handle_query): Update.
1058 * linux-low.cc (linux_target_ops): Update.
1059 (linux_process_target::supports_qxfer_siginfo): Define.
1060 (linux_xfer_siginfo): Turn into ...
1061 (linux_process_target::qxfer_siginfo): ... this.
1062 * linux-low.h (class linux_process_target): Update.
1063 * lynx-low.cc (lynx_target_ops): Update.
1064 * nto-low.cc (nto_target_ops): Update.
1065 * win32-low.cc (win32_target_ops): Update.
1066
2d0795ee
TBA
10672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1068
1069 Turn process_stratum_target's qxfer_osdata op into a method of
1070 process_target.
1071
1072 * target.h (struct process_stratum_target): Remove the target op.
1073 (class process_target): Add the target op. Also add
1074 'supports_qxfer_osdata'.
1075 * target.cc (process_target::qxfer_osdata): Define.
1076 (process_target::supports_qxfer_osdata): Define.
1077
1078 Update the derived classes and callers below.
1079
1080 * server.cc (handle_qxfer_osdata): Update.
1081 (handle_query): Update.
1082 * linux-low.cc (linux_target_ops): Update.
1083 (linux_process_target::supports_qxfer_osdata): Define.
1084 (linux_qxfer_osdata): Turn into ...
1085 (linux_process_target::qxfer_osdata): ... this.
1086 * linux-low.h (class linux_process_target): Update.
1087 * lynx-low.cc (lynx_target_ops): Update.
1088 * nto-low.cc (nto_target_ops): Update.
1089 * win32-low.cc (win32_target_ops): Update.
1090
ea06bbaa
TBA
10912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1092
1093 Turn process_stratum_target's hostio_last_error op into a
1094 method of process_target.
1095
1096 * target.h (struct process_stratum_target): Remove the target op.
1097 (class process_target): Add the target op.
1098 * target.cc: Add "hostio.h" to includes.
1099 (process_target::hostio_last_error): Define.
1100
1101 Update the derived classes and callers below.
1102
1103 * hostio.cc (hostio_error): Update.
1104 * linux-low.cc: Remove "hostio.h" from includes.
1105 (linux_target_ops): Update.
1106 * lynx-low.cc (lynx_target_ops): Update.
1107 * nto-low.cc (nto_target_ops): Update.
1108 * win32-low.h (class win32_process_target): Update.
1109 * win32-low.cc (win32_target_ops): Update.
1110 (wince_hostio_last_error): Turn into ...
1111 (win32_process_target::hostio_last_error): ... this.
1112
6e3fd7e9
TBA
11132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1114
1115 Turn process_stratum_target's get_tls_address op into a method of
1116 process_target.
1117
1118 * target.h (struct process_stratum_target): Remove the target op.
1119 (class process_target): Add the target op. Also add
1120 'supports_get_tls_address'.
1121 * target.cc (process_target::get_tls_address): Define.
1122 (process_target::supports_get_tls_address): Define.
1123
1124 Update the derived classes and callers below.
1125
1126 * server.cc (handle_query): Update.
1127 * linux-low.cc (linux_target_ops): Update.
1128 (linux_process_target::supports_get_tls_address): Define.
1129 (linux_process_target::get_tls_address): Define.
1130 * linux-low.h (class linux_process_target): Update.
1131 * lynx-low.cc (lynx_target_ops): Update.
1132 * nto-low.cc (nto_target_ops): Update.
1133 * win32-low.cc (win32_target_ops): Update.
1134
5203ae1e
TBA
11352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1136
1137 Turn process_stratum_target's read_offsets op into a method of
1138 process_target.
1139
1140 * target.h (struct process_stratum_target): Remove the target op.
1141 (class process_target): Add the target op. Also add
1142 'supports_read_offsets'.
1143 * target.cc (process_target::read_offsets): Define.
1144 (process_target::supports_read_offsets): Define.
1145
1146 Update the derived classes and callers below.
1147
1148 * server.cc (handle_query): Update.
1149 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1150 (linux_target_ops): Update.
1151 (linux_process_target::supports_read_offsets): Define.
1152 (linux_read_offsets): Turn into ...
1153 (linux_process_target::read_offsets): ... this.
1154 * linux-low.h (class linux_process_target): Update.
1155 * lynx-low.cc (lynx_target_ops): Update.
1156 * nto-low.cc (nto_target_ops): Update.
1157 * win32-low.cc (win32_target_ops): Update.
1158
6eeb5c55
TBA
11592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1160
1161 Turn process_stratum_target's stopped_by_watchpoint and
1162 stopped_data_address ops into methods of process_target.
1163
1164 * target.h (struct process_stratum_target): Remove the target ops.
1165 (class process_target): Add the target ops.
1166 * target.cc (process_target::stopped_by_watchpoint): Define.
1167 (process_target::stopped_data_address): Define.
1168
1169 Update the derived classes and callers below.
1170
1171 * remote-utils.cc (prepare_resume_reply): Update.
1172 * linux-low.cc (linux_target_ops): Update.
1173 (linux_stopped_by_watchpoint): Turn into ...
1174 (linux_process_target::stopped_by_watchpoint): ... this.
1175 (linux_stopped_data_address): Turn into ...
1176 (linux_process_target::stopped_data_address): ... this.
1177 * linux-low.h (class linux_process_target): Update.
1178 * lynx-low.cc (lynx_target_ops): Update.
1179 * nto-low.cc (nto_target_ops): Update.
1180 (nto_stopped_by_watchpoint): Turn into ...
1181 (nto_process_target::stopped_by_watchpoint): ... this.
1182 (nto_stopped_data_address): Turn into ...
1183 (nto_process_target::stopped_data_address): ... this.
1184 * nto-low.h (class nto_process_target): Update.
1185 * win32-low.cc (win32_target_ops): Update.
1186 (win32_stopped_by_watchpoint): Turn into ...
1187 (win32_process_target::stopped_by_watchpoint): ... this.
1188 (win32_stopped_data_address): Turn into ...
1189 (win32_process_target::stopped_data_address): ... this.
1190 * win32-low.h (class win32_process_target): Update.
1191
22aa6223
TBA
11922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1193
1194 Turn process_stratum_target's supports_hardware_single_step op into
1195 a method of process_target.
1196
1197 * target.h (struct process_stratum_target): Remove the target op.
1198 (class process_target): Add the target op.
1199 (target_supports_hardware_single_step): Update the macro.
1200 (target_can_do_hardware_single_step): Remove declaration.
1201 * target.cc (process_target::supports_hardware_single_step): Define.
1202 (target_can_do_hardware_single_step): Remove.
1203
1204 Update the derived classes and callers below.
1205
1206 * linux-low.h (class linux_process_target): Update.
1207 * linux-low.cc (linux_target_ops): Update.
1208 (linux_supports_hardware_single_step): Turn into ...
1209 (linux_process_target::supports_hardware_single_step): ... this.
1210 * lynx-low.h (class lynx_process_target): Update.
1211 * lynx-low.cc (lynx_target_ops): Update.
1212 (lynx_process_target::supports_hardware_single_step): Define.
1213 * nto-low.h (class nto_process_target): Update.
1214 * nto-low.cc (nto_target_ops): Update.
1215 (nto_process_target::supports_hardware_single_step): Define.
1216 * win32-low.h (class win32_process_target): Update.
1217 * win32-low.cc (win32_target_ops): Update.
1218 (win32_process_target::supports_hardware_single_step): Define.
1219
93fe88b2
TBA
12202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1221
1222 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1223 ops into methods of process_target.
1224
1225 * target.h (struct process_stratum_target): Remove the target ops.
1226 (class process_target): Add the target ops.
1227 (target_stopped_by_hw_breakpoint): Update the macro.
1228 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1229 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1230 (process_target::supports_stopped_by_hw_breakpoint): Define.
1231
1232 Update the derived classes and callers below.
1233
1234 * linux-low.cc (linux_target_ops): Update.
1235 (linux_stopped_by_hw_breakpoint): Turn into ...
1236 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1237 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1238 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1239 * linux-low.h (class linux_process_target): Update.
1240 * lynx-low.cc (lynx_target_ops): Update.
1241 * nto-low.cc (nto_target_ops): Update.
1242 * win32-low.cc (win32_target_ops): Update.
1243
84320c4e
TBA
12442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1245
1246 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1247 ops into methods of process_target.
1248
1249 * target.h (struct process_stratum_target): Remove the target ops.
1250 (class process_target): Add the target ops.
1251 (target_stopped_by_sw_breakpoint): Update the macro.
1252 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1253 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1254 (process_target::supports_stopped_by_sw_breakpoint): Define.
1255
1256 Update the derived classes and callers below.
1257
1258 * linux-low.cc (linux_target_ops): Update.
1259 (linux_stopped_by_sw_breakpoint): Turn into ...
1260 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1261 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1262 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1263 * linux-low.h (class linux_process_target): Update.
1264 * lynx-low.cc (lynx_target_ops): Update.
1265 * nto-low.cc (nto_target_ops): Update.
1266 * win32-low.cc (win32_target_ops): Update.
1267
7e0bde70
TBA
12682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1269
1270 Turn process_stratum_target's insert_point and remove_point ops
1271 into methods of process_target.
1272
1273 * target.h (struct process_stratum_target): Remove the target ops.
1274 (class process_target): Add the target ops.
1275 * target.cc (process_target::insert_point): Define.
1276 (process_target::remove_point): Define.
1277
1278 Update the derived classes and callers below.
1279
1280 * mem-break.cc (set_raw_breakpoint_at): Update.
1281 (delete_raw_breakpoint): Update.
1282 (uninsert_raw_breakpoint): Update.
1283 (reinsert_raw_breakpoint): Update.
1284 * linux-low.cc (linux_target_ops): Update.
1285 (linux_insert_point): Turn into ...
1286 (linux_process_target::insert_point): ... this.
1287 (linux_remove_point): Turn into ...
1288 (linux_process_target::remove_point): ... this.
1289 * linux-low.h (class linux_process_target): Update.
1290 * lynx-low.cc (lynx_target_ops): Update.
1291 * nto-low.cc (nto_target_ops): Update.
1292 (nto_insert_point): Turn into ...
1293 (nto_process_target::insert_point): ... this.
1294 (nto_remove_point): Turn into ...
1295 (nto_process_target::remove_point): ... this.
1296 * nto-low.h (class nto_process_target): Update.
1297 * win32-low.cc (win32_target_ops): Update.
1298 (win32_insert_point): Turn into ...
1299 (win32_process_target::insert_point): ... this.
1300 (win32_remove_point): Turn into ...
1301 (win32_process_target::remove_point): ... this.
1302 * win32-low.h (class win32_process_target): Update.
1303
a2b2297a
TBA
13042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1305
1306 Turn process_stratum_target's supports_z_point_type op into a
1307 method of process_target.
1308
1309 * target.h (struct process_stratum_target): Remove the target op.
1310 (class process_target): Add the target op.
1311 * target.cc (process_target::supports_z_point_type): Define.
1312
1313 Update the derived classes and callers below.
1314
1315 * mem-break.cc (z_type_supported): Update.
1316 * linux-low.cc (linux_target_ops): Update.
1317 (linux_supports_z_point_type): Turn into ...
1318 (linux_process_target::supports_z_point_type): ... this.
1319 * linux-low.h (class linux_process_target): Update.
1320 * lynx-low.cc (lynx_target_ops): Update.
1321 * nto-low.cc (nto_target_ops): Update.
1322 (nto_supports_z_point_type): Turn into ...
1323 (nto_process_target::supports_z_point_type): ... this.
1324 * nto-low.h (class nto_process_target): Update.
1325 * win32-low.cc (win32_target_ops): Update.
1326 (win32_supports_z_point_type): Turn into ...
1327 (win32_process_target::supports_z_point_type): ... this.
1328 * win32-low.h (class win32_process_target): Update.
1329
eac215cc
TBA
13302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1331
1332 Turn process_stratum_target's read_auxv op into a method of
1333 process_target.
1334
1335 * target.h (class process_stratum_target): Remove the target op.
1336 (struct process_target): Add the target op. Also add
1337 'supports_read_auxv'.
1338 * target.cc (process_target::read_auxv): Define.
1339 (process_target::supports_read_auxv): Define.
1340
1341 Update the derived classes and callers below.
1342
1343 * server.cc (handle_qxfer_auxv): Update.
1344 (handle_query): Update.
1345 * linux-low.cc (linux_target_ops): Update.
1346 (linux_process_target::supports_read_auxv): Define.
1347 (linux_read_auxv): Turn into ...
1348 (linux_process_target::read_auxv): ... this.
1349 * linux-low.h (class linux_process_target): Update.
1350 * lynx-low.cc (lynx_target_ops): Update.
1351 * nto-low.cc (nto_target_ops): Update.
1352 (nto_process_target::supports_read_auxv): Define.
1353 (nto_read_auxv): Turn into ...
1354 (nto_process_target::read_auxv): ... this.
1355 * nto-low.h (class nto_process_target): Update.
1356 * win32-low.cc (win32_target_ops): Update.
1357
eb497a2a
TBA
13582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1359
1360 Turn process_stratum_target's request_interrupt op into a method of
1361 process_target.
1362
1363 * target.h (struct process_stratum_target): Remove the target op.
1364 (class process_target): Add the target op.
1365
1366 Update the derived classes and callers below.
1367
1368 * remote-utils.cc (putpkt_binary_1): Update.
1369 (input_interrupt): Update.
1370 (getpkt): Update.
1371 * server.cc (handle_v_requests): Update.
1372 * linux-low.cc (linux_target_ops): Update.
1373 (linux_request_interrupt): Turn into ...
1374 (linux_process_target::request_interrupt): ... this.
1375 * linux-low.h (class linux_process_target): Update.
1376 * lynx-low.cc (lynx_target_ops): Update.
1377 (lynx_request_interrupt): Turn into ...
1378 (lynx_process_target::request_interrupt): ... this.
1379 * lynx-low.h (class lynx_process_target): Update.
1380 * nto-low.cc (nto_target_ops): Update.
1381 (nto_request_interrupt): Turn into ...
1382 (nto_process_target::request_interrupt): ... this.
1383 * nto-low.h (class nto_process_target): Update.
1384 * win32-low.cc (win32_target_ops): Update.
1385 (win32_request_interrupt): Turn into ...
1386 (win32_process_target::request_interrupt): ... this.
1387 * win32-low.h (class win32_process_target): Update.
1388
2a31c7aa
TBA
13892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1390
1391 Turn process_stratum_target's look_up_symbols op into a method of
1392 process_target.
1393
1394 * target.h (struct process_stratum_target): Remove the target op.
1395 (class process_target): Add the target op.
1396 * target.cc (process_target::look_up_symbols): Define.
1397
1398 Update the derived classes and callers below.
1399
1400 * server.cc (handle_query): Update.
1401 * linux-low.cc (linux_target_ops): Update.
1402 (linux_look_up_symbols): Turn into ...
1403 (linux_process_target::look_up_symbols): ... this.
1404 * linux-low.h (class linux_process_target): Update.
1405 * lynx-low.cc (lynx_target_ops): Update.
1406 * nto-low.cc (nto_target_ops): Update.
1407 * win32-low.cc (win32_target_ops): Update.
1408
e2558df3
TBA
14092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1410
1411 Turn process_stratum_target's read_memory and write_memory
1412 ops into methods of process_target.
1413
1414 * target.h (struct process_stratum_target): Remove the target ops.
1415 (class process_target): Add the target ops.
1416
1417 Update the derived classes and callers below.
1418
1419 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1420 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1421 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1422 (arm_get_syscall_trapinfo): Update.
1423 * linux-cris-low.cc (cris_breakpoint_at): Update.
1424 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1425 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1426 * linux-mips-low.cc (mips_breakpoint_at): Update.
1427 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1428 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1429 * linux-sh-low.cc (sh_breakpoint_at): Update.
1430 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1431 (sparc_store_gregset_from_stack): Update.
1432 (sparc_breakpoint_at): Update.
1433 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1434 * linux-tile-low.cc (tile_breakpoint_at): Update.
1435 * linux-x86-low.cc (x86_breakpoint_at): Update.
1436 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1437 * mem-brea.cc (insert_memory_breakpoint): Update.
1438 (validate_inserted_breakpoint): Update.
1439 * target.cc (read_inferior_memory): Update.
1440 (target_write_memory): Update.
1441 * linux-low.cc (linux_target_ops): Update.
1442 (linux_read_memory): Make a wrapper around the read_memory target
1443 op call.
1444 (linux_process_target::read_memory): Rename from linux_read_memory.
1445 (linux_write_memory): Turn into ...
1446 (linux_process_target::write_memory): ... this.
1447 * linux-low.h (class linux_process_target): Update.
1448 * lynx-low.cc (lynx_target_ops): Update.
1449 (lynx_read_memory): Turn into ...
1450 (lynx_process_target::read_memory): ... this.
1451 (lynx_write_memory): Turn into ...
1452 (lynx_process_target::write_memory): ... this.
1453 * lynx-low.h (class lynx_process_target): Update.
1454 * nto-low.cc (nto_target_ops): Update.
1455 (nto_read_memory): Turn into ...
1456 (nto_process_target::read_memory): ... this.
1457 (nto_write_memory): Turn into ...
1458 (nto_process_target::write_memory): ... this.
1459 * nto-low.h (class nto_process_target): Update.
1460 * win32-low.cc (win32_target_ops): Update.
1461 (win32_read_inferior_memory): Turn into ...
1462 (win32_process_target::read_memory): ... this.
1463 (win32_write_inferior_memory): Turn into ...
1464 (win32_process_target::write_memory): ... this.
1465 * win32-low.h (class win32_process_target): Update.
1466
79b44087
TBA
14672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1468
1469 Turn process_stratum_target's prepare_to_access_memory and
1470 done_accessing_memory ops into methods of process_target.
1471
1472 * target.h (struct process_stratum_target): Remove the target ops.
1473 (class process_target): Add the target ops.
1474 * target.cc (process_target::prepare_to_access_memory): Define.
1475 (process_target::done_accessing_memory): Define.
1476 (prepare_to_access_memory): Update.
1477 (done_accessing_memory): Update.
1478
1479 Update the derived classes and callers below.
1480
1481 * linux-low.cc (linux_target_ops): Update.
1482 (linux_prepare_to_access_memory): Turn into ...
1483 (linux_process_target::prepare_to_access_memory): ... this.
1484 (linux_done_accessing_memory): Turn into ...
1485 (linux_process_target::done_accessing_memory): ... this.
1486 * linux-low.h (class linux_process_target): Update.
1487 * lynx-low.cc (lynx_target_ops): Update.
1488 * nto-low.cc (nto_target_ops): Update.
1489 * win32-low.cc (win32_target_ops): Update.
1490
a5a4d4cd
TBA
14912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1492
1493 Turn process_stratum_target's fetch_registers and store_registers
1494 ops into methods of process_target.
1495
1496 * target.h (struct process_stratum_target): Remove the target ops.
1497 (class process_target): Add the target ops.
1498 (fetch_inferior_registers): Update the macro.
1499 (store_inferior_registers): Update the macro.
1500
1501 Update the derived classes and callers below.
1502
1503 * linux-low.cc (linux_target_ops): Update.
1504 (linux_fetch_registers): Turn into ...
1505 (linux_process_target::fetch_registers): ... this.
1506 (linux_store_registers): Turn into ...
1507 (linux_process_target::store_registers): ... this.
1508 * linux-low.h (class linux_process_target): Update.
1509 * lynx-low.cc (lynx_target_ops): Update.
1510 (lynx_fetch_registers): Turn into ...
1511 (lynx_process_target::fetch_registers): ... this.
1512 (lynx_store_registers): Turn into ...
1513 (lynx_process_target::store_registers): ... this.
1514 * lynx-low.h (class lynx_process_target): Update.
1515 * nto-low.cc (nto_target_ops): Update.
1516 (nto_fetch_registers): Turn into ...
1517 (nto_process_target::fetch_registers): ... this.
1518 (nto_store_registers): Turn into ...
1519 (nto_process_target::store_registers): ... this.
1520 * nto-low.h (class nto_process_target): Update.
1521 * win32-low.cc (win32_target_ops): Update.
1522 (win32_fetch_inferior_registers): Turn into ...
1523 (win32_process_target::fetch_registers): ... this.
1524 (win32_store_inferior_registers): Turn into ...
1525 (win32_process_target::store_registers): ... this.
1526 * win32-low.h (class win32_process_target): Update.
1527
6532e7e3
TBA
15282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1529
1530 Turn process_stratum_target's wait op into a method of
1531 process_target.
1532
1533 * target.h (struct process_stratum_target): Remove the target op.
1534 (class process_target): Add the target op.
1535
1536 Update the derived classes and callers below.
1537
1538 * target.cc (target_wait): Update.
1539 * linux-low.cc (linux_target_ops): Update.
1540 (linux_wait): Turn into ...
1541 (linux_process_target::wait): ... this.
1542 * linux-low.h (class linux_process_target): Update.
1543 * lynx-low.cc (lynx_target_ops): Update.
1544 (lynx_wait): Turn into ...
1545 (lynx_process_target::wait): ... this.
1546 * lynx-low.h (class lynx_process_target): Update.
1547 * nto-low.cc (nto_target_ops): Update.
1548 (nto_wait): Turn into ...
1549 (nto_process_target::wait): ... this.
1550 * nto-low.h (class nto_process_target): Update.
1551 * win32-low.cc (win32_target_ops): Update.
1552 (win32_wait): Turn into ...
1553 (win32_process_target::wait): ... this.
1554 (do_initial_child_stuff): Update.
1555 * win32-low.h (class win32_process_target): Update.
1556
0e4d7e35
TBA
15572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1558
1559 Turn process_stratum_target's resume op into a method of
1560 process_target.
1561
1562 * target.h (struct process_stratum_target): Remove the target op.
1563 (class process_target): Add the target op.
1564
1565 Update the derived classes and callers below.
1566
1567 * server.cc (resume): Update.
1568 * target.cc (target_stop_and_wait): Update.
1569 (target_continue_no_signal): Update.
1570 (target_continue): Update.
1571 * linux-low.cc (linux_target_ops): Update.
1572 (linux_resume): Turn into ...
1573 (linux_process_target::resume): ... this.
1574 * linux-low.h (class linux_process_target): Update.
1575 * lynx-low.cc (lynx_target_ops): Update.
1576 (lynx_resume): Turn into ...
1577 (lynx_process_target::resume): ... this.
1578 * lynx-low.h (class lynx_process_target): Update.
1579 * nto-low.cc (nto_target_ops): Update.
1580 (nto_resume): Turn into ...
1581 (nto_process_target::resume): ... this.
1582 * nto-low.h (class nto_process_target): Update.
1583 * win32-low.cc (win32_target_ops): Update.
1584 (win32_resume): Turn into ...
1585 (win32_process_target::resume): ... this.
1586 (win32_process_target::detach): Update.
1587 (do_initial_child_stuff): Update.
1588 * win32-low.h (class win32_process_target): Update.
1589
13d3d99b
TBA
15902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1591
1592 Turn process_stratum_target's thread_alive op into a method of
1593 process_target.
1594
1595 * target.h (struct process_stratum_target): Remove the target op.
1596 (class process_target): Add the target op.
1597 (mythread_alive): Update the macro.
1598
1599 Update the derived classes and callers below.
1600
1601 * linux-low.cc (linux_target_ops): Update.
1602 (linux_thread_alive): Turn into ...
1603 (linux_process_target::thread_alive): ... this.
1604 (wait_for_sigstop): Update.
1605 * linux-low.h (class linux_process_target): Update.
1606 * lynx-low.cc (lynx_target_ops): Update.
1607 (lynx_thread_alive): Turn into ...
1608 (lynx_process_target::thread_alive): ... this.
1609 * lynx-low.h (class lynx_process_target): Update.
1610 * nto-low.cc (nto_target_ops): Update.
1611 (nto_thread_alive): Turn into ...
1612 (nto_process_target::thread_alive): ... this.
1613 * nto-low.h (class nto_process_target): Update.
1614 * win32-low.cc (win32_target_ops): Update.
1615 (win32_thread_alive): Turn into ...
1616 (win32_process_target::thread_alive): ... this.
1617 * win32-low.h (class win32_process_target): Update.
1618
95a49a39
TBA
16192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1620
1621 Turn process_stratum_target's join op into a method of
1622 process_target.
1623
1624 * target.h (struct process_stratum_target): Remove the target op.
1625 (class process_target): Add the target op.
1626 (join_inferior): Update the macro.
1627
1628 Update the derived classes and callers below.
1629
1630 * linux-low.cc (linux_target_ops): Update.
1631 (linux_join): Turn into ...
1632 (linux_process_target::join): ... this.
1633 * linux-low.h (class linux_process_target): Update.
1634 * lynx-low.cc (lynx_target_ops): Update.
1635 (lynx_join): Turn into ...
1636 (lynx_process_target::join): ... this.
1637 * lynx-low.h (class lynx_process_target): Update.
1638 * nto-low.cc (nto_target_ops): Update.
1639 (nto_process_target::join): Define.
1640 * nto-low.h (class nto_process_target): Update.
1641 * win32-low.cc (win32_target_ops): Update.
1642 (win32_join): Turn into ...
1643 (win32_process_target::join): ... this.
1644 * win32-low.h (class win32_process_target): Update.
1645
8adb37b9
TBA
16462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1647
1648 Turn process_stratum_target's mourn op into a method of
1649 process_target.
1650
1651 * target.h (struct process_stratum_target): Remove the target op.
1652 (class process_target): Add the target op.
1653
1654 Update the derived classes and callers below.
1655
1656 * target.cc (target_mourn_inferior): Update.
1657 * linux-low.cc (linux_target_ops): Update.
1658 (linux_mourn): Turn into ...
1659 (linux_process_target::mourn): ... this.
1660 (handle_extended_wait): Update.
1661 (linux_process_target::kill): Update.
1662 (linux_process_target::detach): Update.
1663 * linux-low.h (class linux_process_target): Update.
1664 * lynx-low.cc (lynx_target_ops): Update.
1665 (lynx_mourn): Turn into ...
1666 (lynx_process_target::mourn): ... this.
1667 * lynx-low.h (class lynx_process_target): Update.
1668 * nto-low.cc (nto_target_ops): Update.
1669 (nto_mourn): Turn into ...
1670 (nto_process_target::mourn): ... this.
1671 * nto-low.h (class nto_process_target): Update.
1672 * win32-low.cc (win32_target_ops): Update.
1673 (win32_mourn): Turn into ...
1674 (win32_process_target::mourn): ... this.
1675 * win32-low.h (class win32_process_target): Update.
1676
9061c9cf
TBA
16772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1678
1679 Turn process_stratum_target's detach op into a method of
1680 process_target.
1681
1682 * target.h (struct process_stratum_target): Remove the target op.
1683 (class process_target): Add the target op.
1684 (detach_inferior): Update the macro.
1685
1686 Update the derived classes and callers below.
1687
1688 * linux-low.cc (linux_target_ops): Update.
1689 (linux_detach): Turn into ...
1690 (linux_process_target::detach): ... this.
1691 * linux-low.h (class linux_process_target): Update.
1692 * lynx-low.cc (lynx_target_ops): Update.
1693 (lynx_detach): Turn into ...
1694 (lynx_process_target::detach): ... this.
1695 * lynx-low.h (class lynx_process_target): Update.
1696 * nto-low.cc (nto_target_ops): Update.
1697 (nto_detach): Turn into ...
1698 (nto_process_target::detach): ... this.
1699 * nto-low.h (class nto_process_target): Update.
1700 * win32-low.cc (win32_target_ops): Update.
1701 (win32_detach): Turn into ...
1702 (win32_process_target::detach): ... this.
1703 * win32-low.h (class win32_process_target): Update.
1704
c6885a57
TBA
17052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1706
1707 Turn process_stratum_target's kill op into a method of
1708 process_target.
1709
1710 * target.h (struct process_stratum_target): Remove the target op.
1711 (class process_target): Add the target op.
1712
1713 Update the derived classes and callers below.
1714
1715 * target.cc (kill_inferior): Update.
1716 * linux-low.cc (linux_target_ops): Update.
1717 (linux_kill): Turn into ...
1718 (linux_process_target::kill): ... this.
1719 * linux-low.h (class linux_process_target): Update.
1720 * lynx-low.cc (lynx_target_ops): Update.
1721 (lynx_kill): Turn into ...
1722 (lynx_process_target::kill): ... this.
1723 * lynx-low.h (class lynx_process_target): Update.
1724 * nto-low.cc (nto_target_ops): Update.
1725 (nto_kill): Turn into ...
1726 (nto_process_target::kill): ... this.
1727 * nto-low.h (class nto_process_target): Update.
1728 * win32-low.cc (win32_target_ops): Update.
1729 (win32_kill): Turn into ...
1730 (win32_process_target::kill): ... this.
1731 * win32-low.h (class win32_process_target): Update.
1732
ef03dad8
TBA
17332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1734
1735 Turn process_stratum_target's attach op into a method of
1736 process_target.
1737
1738 * target.h (struct process_stratum_target): Remove the target op.
1739 (class process_target): Add the target op.
1740 (myattach): Update the macro.
1741
1742 Update the derived classes and callers below.
1743
1744 * linux-low.cc (linux_target_ops): Update.
1745 (linux_attach): Turn into ...
1746 (linux_process_target::attach): ... this.
1747 * linux-low.h (class linux_process_target): Update.
1748 * lynx-low.cc (lynx_target_ops): Update.
1749 (lynx_attach): Turn into ...
1750 (lynx_process_target::attach): ... this.
1751 * lynx-low.h (class lynx_process_target): Update.
1752 * nto-low.cc (nto_target_ops): Update.
1753 (nto_attach): Turn into ...
1754 (nto_process_target::attach): ... this.
1755 * nto-low.h (class nto_process_target): Update.
1756 * win32-low.cc (win32_target_ops): Update.
1757 (win32_attach): Turn into ...
1758 (win32_process_target::attach): ... this.
1759 * win32-low.h (class win32_process_target): Update.
1760
6dee9afb
TBA
17612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1762
1763 Turn process_stratum_target's post_create_inferior op into a method
1764 of process_target.
1765
1766 * target.h (struct process_stratum_target): Remove the target op.
1767 (class process_target): Add the target op.
1768 (target_post_create_inferior): Update the macro.
1769 * target.cc (process_target::post_create_inferior): Define.
1770
1771 Update the derived classes and callers below.
1772
1773 * linux-low.cc (linux_target_ops): Update.
1774 (linux_post_create_inferior): Turn into ...
1775 (linux_process_target::post_create_inferior): ... this.
1776 * linux-low.h (class linux_process_target): Update.
1777 * lynx-low.cc (lynx_target_ops): Update.
1778 * nto-low.cc (nto_target_ops): Update.
1779 * win32-low.cc (win32_target_ops): Update.
1780
15295543
TBA
17812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1782
1783 Turn process_stratum_target's create_inferior op into a method of
1784 process_target.
1785
1786 * target.h (struct process_stratum_target): Remove the target op.
1787 (class process_target): Add the target op.
1788 (create_inferior): Rename the macro to ...
1789 (target_create_inferior): ... this.
1790
1791 Update the derived classes and callers below.
1792
1793 * server.cc (handle_v_run): Update.
1794 (captured_main): Update.
1795 (process_serial_event): Update.
1796 * linux-low.cc (linux_target_ops): Update.
1797 (linux_create_inferior): Turn into ...
1798 (linux_process_target::create_inferior): ... this.
1799 * linux-low.h (class linux_process_target): Update.
1800 * lynx-low.cc (lynx_target_ops): Update.
1801 (lynx_create_inferior): Turn into ...
1802 (lynx_process_target::create_inferior): ... this.
1803 * lynx-low.h (class lynx_process_target): Update.
1804 * nto-low.cc (nto_target_ops): Update.
1805 (nto_create_inferior): Turn into ...
1806 (nto_process_target::create_inferior): ... this.
1807 * nto-low.h (class nto_process_target): Update.
1808 * win32-low.cc (win32_target_ops): Update.
1809 (win32_create_inferior): Turn into ...
1810 (win32_process_target::create_inferior): ... this.
1811 * win32-low.h (class win32_process_target): Update.
1812
5ef9273d
TBA
18132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1814
1815 * target.h (class process_target): New class definition.
1816 (struct process_stratum_target) <pt>: New field with type
1817 'process_target*'.
1818 * linux-low.h (class linux_process_target): Define as a derived
1819 class of 'process_target'.
1820 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1821 as the 'pt' field.
1822 * lynx-low.h (class lynx_process_target): Define as a derived
1823 class of 'process_target'.
1824 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1825 as the 'pt' field.
1826 * nto-low.h (class nto_process_target): Define as a derived
1827 class of 'process_target'.
1828 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1829 as the 'pt' field.
1830 * win32-low.h (class win32_process_target): Define as a derived
1831 class of 'process_target'.
1832 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1833 as the 'pt' field.
1834
9f1528a1
AB
18352020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1836
1837 * configure: Regenerate.
1838
bf84f706
MR
18392020-02-19 Maciej W. Rozycki <macro@wdc.com>
1840 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * linux-riscv-low.cc: New file.
1843 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1844 and nat/riscv-linux-tdesc.c.
1845 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1846 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1847 Define.
1848
1a627e7e
TT
18492020-02-14 Tom Tromey <tom@tromey.com>
1850
1851 * acinclude.m4: Don't include acx_configure_dir.m4.
1852 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1853 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1854 (all, install-only, uninstall, clean-info, clean)
1855 (maintainer-clean): Don't recurse.
1856 (subdir_do, all-lib): Remove.
1857 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1858 (GNULIB_H): Remove.
1859 (generated_files): Update.
1860 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1861 * configure: Rebuild.
1862 * configure.ac: Don't configure gnulib or libiberty.
1863 (GNULIB): Update.
1864
a9b34532
EZ
18652020-02-14 Eli Zaretskii <eliz@gnu.org>
1866
1867 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1868 preparing the command line for CreateProcess.
1869 (win32_create_inferior): Reflect the program name in debugging
1870 output that shows the process and its command line.
1871
feacfcac
SM
18722020-02-13 Simon Marchi <simon.marchi@efficios.com>
1873
1874 * Makefile.in: Rename source files from .c to .cc.
1875 * %.c: Rename to %.cc.
1876 * configure.ac: Rename server.c to server.cc.
1877 * configure: Re-generate.
1878
06b3c5bd
SM
18792020-02-13 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1882
052793ad
HD
18832020-02-12 Hannes Domani <ssbssa@yahoo.de>
1884
1885 * win32-low.c (win32_create_inferior): Set signal_pid.
1886
f20e3e82
MR
18872020-02-12 Maciej W. Rozycki <macro@wdc.com>
1888 Pedro Alves <palves@redhat.com>
1889
1890 Skip building gdbserver in a cross-configuration.
1891 * configure.srv: Set $gdbserver_host depending on whether $target
1892 is $host. Use $gdbserver_host instead of $host.
1893
8ddd8e0e
SM
18942020-02-11 Simon Marchi <simon.marchi@efficios.com>
1895
1896 * configure: Re-generate.
1897
898e7f60
SM
18982020-02-11 Simon Marchi <simon.marchi@efficios.com>
1899
1900 * configure: Re-generate.
1901
58df732b
SM
19022020-02-11 Simon Marchi <simon.marchi@efficios.com>
1903
1904 * acinclude.m4: Update warning.m4 path.
1905
7928d571
HD
19062020-02-09 Hannes Domani <ssbssa@yahoo.de>
1907
1908 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1909 (handle_exception): Set siginfo_er.
1910 (win32_xfer_siginfo): New function.
1911
919adfe8
TT
19122020-02-07 Tom Tromey <tom@tromey.com>
1913 Pedro Alves <palves@redhat.com>
1914
1915 * README: Update build documentation.
1916 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1917 host, not target.
1918 * configure.ac: Update paths.
1919 * configure: Rebuild.
1920 * acinclude.m4: Update paths.
1921 * Makefile.in: Update include paths.
1922 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1923 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1924 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1925 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1926 (%-generated.c): Update paths.
1927 * Move entire directory from ../gdb/gdbserver.
1928
287c844a
MR
19292020-01-29 Maciej W. Rozycki <macro@wdc.com>
1930
1931 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1932
548a204f
PFC
19332020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1934
1935 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1936 assignment instead of srv_linux_obj.
1937
a2236a08
HD
19382020-01-28 Hannes Domani <ssbssa@yahoo.de>
1939
1940 * server.c (handle_qxfer_libraries): Write segment-address with
1941 paddress.
1942
bdaed379
HD
19432020-01-24 Hannes Domani <ssbssa@yahoo.de>
1944
1945 * Makefile.in (install-strip): New target.
1946 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1947 * aclocal.m4: Regenerate.
1948 * configure: Regenerate.
1949 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1950
42cd72aa
MR
19512020-01-24 Maciej W. Rozycki <macro@wdc.com>
1952
1953 * Makefile.in (SFILES): Adjust paths to point to real files.
1954 (OBS): Move waitstatus.o to target/waitstatus.o.
1955 (TAGS): Transform paths appropriately.
1956 (%.o): Rename to...
1957 (nat/%.o): ... this pattern rule.
1958 (%.o): Rename to...
1959 (target/%.o): ... this pattern rule.
1960 * configure.srv: Adjust paths throughout to include nat/ prefix
1961 with the revant files.
1962 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1963 * configure: Regenerate.
1964
42ba50ec
MR
19652020-01-24 Maciej W. Rozycki <macro@wdc.com>
1966
1967 * Makefile.in (TAGS): Remove config files from the recipe.
1968
05ea2a05
TT
19692020-01-14 Tom Tromey <tom@tromey.com>
1970
1971 * configure: Rebuild.
1972 * configure.ac: Remove any checks that were added to common.m4.
1973 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1974 lib-link.m4.
1975
01027315
TT
19762020-01-14 Tom Tromey <tom@tromey.com>
1977
1978 * server.h: Include config.h.
1979 * gdbreplay.c: Include config.h.
1980 * configure: Rebuild.
1981 * configure.ac: Don't source common.host.
1982 * acinclude.m4: Update path.
1983 * Makefile.in (INCSUPPORT): New variable.
1984 (INCLUDE_CFLAGS): Add INCSUPPORT.
1985 (SFILES): Update paths.
1986 (version-generated.c): Update path to create-version.sh.
1987 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1988
b2ceabe8
TT
19892020-01-14 Tom Tromey <tom@tromey.com>
1990
1991 * configure.ac (LIBS): Use WIN32APILIBS.
1992 (USE_WIN32API): Don't define.
1993 * configure: Rebuild.
1994
25c51f71
TT
19952020-01-14 Tom Tromey <tom@tromey.com>
1996
1997 * configure: Rebuild.
1998
c0bd321d
SM
19992020-01-13 Simon Marchi <simon.marchi@efficios.com>
2000
2001 * Makefile.in (%-generated.c): Remove rule for files from
2002 regformats/i386.
2003
bb564c58
SM
20042020-01-13 Simon Marchi <simon.marchi@efficios.com>
2005
2006 * configure: Re-generate.
2007
6e37c371
SM
20082020-01-13 Simon Marchi <simon.marchi@efficios.com>
2009
2010 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
2011 Define to static.
2012 * tracepoint.c (stop_tracing, flush_trace_buffer,
2013 about_to_request_buffer_space, get_trace_state_variable_value,
2014 set_trace_state_variable_value, gdb_collect): Add declaration.
2015
df4a0200
SM
20162020-01-13 Simon Marchi <simon.marchi@efficios.com>
2017
2018 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
2019 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
2020 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
2021 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
2022 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
2023 static.
2024
89e94ec9
SM
20252020-01-13 Simon Marchi <simon.marchi@efficios.com>
2026
2027 * inferiors.c: Include gdbsupport/common-inferior.h.
2028
2552728a
SM
20292020-01-13 Simon Marchi <simon.marchi@efficios.com>
2030
2031 * hostio-errno.c: Include hostio.h.
2032
4025fa09
SM
20332020-01-13 Simon Marchi <simon.marchi@efficios.com>
2034
2035 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2036 prerequisite.
2037
c0b0a142
SM
20382020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2039
2040 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2041 * linux-arm-tdesc.h: Include arch/arm.h.
2042
bb1183e2
SM
20432020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2044
2045 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2046
f5df0b5f
SM
20472020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2048
2049 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2050 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2051
5b6d1e4f
PA
20522020-01-10 Pedro Alves <palves@redhat.com>
2053
2054 * fork-child.c (post_fork_inferior): Pass target down to
2055 startup_inferior.
2056 * inferiors.c (switch_to_thread): Add process_stratum_target
2057 parameter.
2058 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2059 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2060 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2061 * remote-utils.c (prepare_resume_reply): Pass the target to
2062 switch_to_thread.
2063 * target.c (the_target): Now a process_stratum_target.
2064 (done_accessing_memory): Pass the target to switch_to_thread.
2065 (set_target_ops): Ajust to use process_stratum_target.
2066 * target.h (struct target_ops): Rename to ...
2067 (struct process_stratum_target): ... this.
2068 (the_target, set_target_ops): Adjust.
2069 (prepare_to_access_memory): Adjust comment.
2070 * win32-low.c (child_xfer_memory): Adjust to use
2071 process_stratum_target.
2072 (win32_target_ops): Now a process_stratum_target.
2073
559e7e50
EZ
20742020-01-06 Eli Zaretskii <eliz@gnu.org>
2075 Pedro Alves <palves@redhat.com>
2076
2077 * win32-low.c (get_child_debug_event): Extract the fatal exception
2078 from the exit status and convert to the equivalent Posix signal
2079 number.
2080 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2081 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2082
48189bec
HD
20832020-01-01 Hannes Domani <ssbssa@yahoo.de>
2084
2085 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2086
5dd8bf88
JB
20872020-01-01 Joel Brobecker <brobecker@adacore.com>
2088
2089 * server.c (gdbserver_version): Change copyright year to 2020.
2090 * gdbreplay.c (gdbreplay_version): Likewise.
2091
0ad6b8ee
CB
20922019-12-19 Christian Biesinger <cbiesinger@google.com>
2093
2094 * configure: Regenerate.
2095 * configure.ac: Quote variable arguments of test.
2096
1ee7b812
BE
20972019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2098
2099 * Makefile.in: Fix build with GNU Make 3.81
2100
d9fa87f4
TT
21012019-12-16 Tom Tromey <tromey@adacore.com>
2102
2103 * server.c (get_exec_file): Constify result.
2104
ab7d13f0
CB
21052019-12-10 Christian Biesinger <cbiesinger@google.com>
2106
2107 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2108 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2109 * config.in: Regenerate.
2110 * configure: Regenerate.
2111 * configure.ac: Don't check for strerror.
2112 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2113 Call safe_strerror instead of strerror.
2114 * server.h (strerror): Remove this now-unnecessary declaration.
2115 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2116 strerror.
2117 (gdb_agent_helper_thread): Likewise.
2118 * utils.c (perror_with_name): Likewise.
2119
4da8c3a8
TT
21202019-11-26 Tom Tromey <tom@tromey.com>
2121
2122 * configure, config.in: Rebuild.
2123
21987b9c
TT
21242019-11-26 Tom Tromey <tom@tromey.com>
2125
2126 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2127 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2128 gdb_sigmask.
2129 * configure, config.in: Rebuild.
2130
5e030278
TT
21312019-11-26 Tom Tromey <tom@tromey.com>
2132
2133 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2134 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2135 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2136 * acinclude.m4: Include ax_pthread.m4.
2137 * config.in, configure: Rebuild.
2138
6d91ce9a
CB
21392019-11-26 Christian Biesinger <cbiesinger@google.com>
2140
2141 * debug.c (debug_set_output): Call safe_strerror instead of
2142 strerror.
2143 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2144 (linux_kill_one_lwp): Likewise.
2145 (linux_detach_one_lwp): Likewise.
2146 (linux_wait_for_event_filtered): Likewise.
2147 (store_register): Likewise.
2148 * lynx-low.c (lynx_attach): Likewise.
2149 * mem-break.c (insert_memory_breakpoint): Likewise.
2150 (remove_memory_breakpoint): Likewise.
2151 (delete_fast_tracepoint_jump): Likewise.
2152 (set_fast_tracepoint_jump): Likewise.
2153 (uninsert_fast_tracepoint_jumps_at): Likewise.
2154 (reinsert_fast_tracepoint_jumps_at): Likewise.
2155 * nto-low.c (nto_xfer_memory): Likewise.
2156 (nto_resume): Likewise.
2157
6cdd651f
LM
21582019-11-20 Luis Machado <luis.machado@linaro.org>
2159
2160 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2161 instead of register count.
2162 * tdesc.c (tdesc_contains_feature): New function.
2163 * tdesc.h (tdesc_contains_feature): New prototype.
2164
cd850b40
CB
21652019-11-15 Christian Biesinger <cbiesinger@google.com>
2166
2167 * Makefile.in: Add safe-strerror.c.
2168 * configure: Regenerate.
2169 * configure.ac: Don't source common.host.
2170
5abebf3c
CB
21712019-11-15 Christian Biesinger <cbiesinger@google.com>
2172
2173 * config.in: Regenerate.
2174 * configure: Regenerate.
2175
e06f3d6e
AB
21762019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2177
2178 * ax.c (ax_printf): Handle size_t_arg.
2179
ca3a04f6
CB
21802019-11-06 Christian Biesinger <cbiesinger@google.com>
2181
2182 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2183 * mi/mi-main.c (output_cores): Likewise.
2184 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2185 (linux_xfer_osdata_modules): Likewise.
2186 * remote.c (register_remote_support_xml): Likewise.
2187 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2188 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2189
e48f6033
CB
21902019-11-01 Christian Biesinger <cbiesinger@google.com>
2191
2192 * configure: Regenerate.
2193 * configure.ac: Remove check for strerror_r.
2194
e7e97a2e
CB
21952019-10-31 Christian Biesinger <cbiesinger@google.com>
2196
2197 * config.in: Regenerate.
2198 * configure: Regenerate.
2199 * configure.ac: Also check for strerror_r.
2200
75cafaa6
CB
22012019-10-31 Christian Biesinger <cbiesinger@google.com>
2202
2203 * ax.h (debug_agent): Remove duplicate declaration.
2204
30baf67b
TV
22052019-10-26 Tom de Vries <tdevries@suse.de>
2206
2207 * linux-aarch64-low.c: Fix typos in comments.
2208 * linux-arm-low.c: Same.
2209 * linux-low.c: Same.
2210 * linux-ppc-low.c: Same.
2211 * proc-service.c: Same.
2212 * regcache.h: Same.
2213 * server.c: Same.
2214 * tracepoint.c: Same.
2215 * win32-low.c: Same.
2216
52c64cf7
TT
22172019-10-25 Tom Tromey <tromey@adacore.com>
2218
2219 * utils.c (xstrdup): Remove.
2220
c12d372d
TT
22212019-10-23 Tom Tromey <tom@tromey.com>
2222
2223 * configure, config.in: Rebuild.
2224
4d0b984b
TT
22252019-10-23 Tom Tromey <tom@tromey.com>
2226
2227 * configure: Rebuild.
2228 * acinclude.m4: Use m4_include, not sinclude.
2229
c5adaa19
TT
22302019-10-17 Tom Tromey <tromey@adacore.com>
2231
2232 * configure: Rebuild.
2233 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2234 in AC_CONFIG_FILES invocation.
2235 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2236 invocation.
2237
fec4e896
CB
22382019-10-16 Christian Biesinger <cbiesinger@google.com>
2239
2240 * server.c: Include xml-builtin.h.
2241 (get_xml_features): Don't declare xml_builtins here.
2242
00975ff6
AB
22432019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2244
2245 * Makefile.in: Remove references to vec-ipa.o.
2246
0dc32745
AB
22472019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * Makefile.in: Remove references to vec.c.
2250
3e6ec53a
CB
22512019-10-02 Christian Biesinger <cbiesinger@google.com>
2252
2253 * server.c (server_waiting): Change to bool.
2254 (extended_protocol): Likewise.
2255 (response_needed): Likewise.
2256 (exit_requested): Likewise.
2257 (run_once): Likewise.
2258 (report_no_resumed): Likewise.
2259 (non_stop): Likewise.
2260 (disable_packet_vCont): Likewise.
2261 (disable_packet_Tthread): Likewise.
2262 (disable_packet_qC): Likewise.
2263 (disable_packet_qfThreadInfo): Likewise.
2264 (handle_general_set): Update.
2265 (handle_detach): Update.
2266 (handle_monitor_command): Update.
2267 (handle_query): Update.
2268 (captured_main): Update.
2269 (process_serial_event): Update.
2270 * server.h (server_waiting): Change to bool.
2271 (disable_packet_vCont): Likewise.
2272 (disable_packet_Tthread): Likewise.
2273 (disable_packet_qC): Likewise.
2274 (disable_packet_qfThreadInfo): Likewise.
2275 (run_once): Likewise.
2276 (non_stop): Likewise.
2277 * target.c (target_stop_and_wait): Update.
2278
80fd2826
TT
22792019-10-02 Tom Tromey <tromey@adacore.com>
2280
2281 * Makefile.in (SFILES): Add common-inferior.c.
2282 (OBS): Add common-inferior.o.
2283 * server.c (startup_with_shell): Don't define.
2284
46f29a9a
AB
22852019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2286
2287 * linux-low.c (linux_low_read_btrace): Update for change to
2288 std::vector.
2289
f9d949fb
CB
22902019-09-20 Christian Biesinger <cbiesinger@google.com>
2291
2292 * debug.c (debug_threads): Remove comment in favor of the header.
2293 * debug.h (using_threads): Add declaration.
2294 (debug_threads): Add comment.
2295 * linux-aarch64-low.c: Include debug.h and remove declaration of
2296 debug_threads.
2297 * nto-low.c: Likewise.
2298 * remote-utils.c: Likewise.
2299 * thread-db.c: Likewise.
2300
abf516c6
UW
23012019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2302
2303 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2304 and powerpc-cell64l-ipa.o.
2305 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2306 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2307 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2308 (spu*-*-*): Remove.
2309
2310 * spu-low.c: Remove file.
2311
2312 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2313 (parse_spufs_run): Remove.
2314 (ppc_get_pc): Remove Cell/B.E. support.
2315 (ppc_set_pc): Likewise.
2316 (ppc_breakpoint_at): Likewise.
2317 (ppc_arch_setup): Likewise.
2318 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2319 tdesc_powerpc_cell32l.
2320 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2321 or init_registers_powerpc_cell32l.
2322 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2323 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2324 or init_registers_powerpc_cell32l.
2325 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2326 (init_registers_powerpc_cell32l): Remove prototype.
2327 (init_registers_powerpc_cell64l): Likewise.
2328
2329 * target.h (struct target_ops): Remove qxfer_spu member.
2330 * server.c (handle_qxfer_spu): Remove.
2331 (qxfer_packets): Remove entry for "spu".
2332 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2333 * linux-low.c (SPUFS_MAGIC): Remove.
2334 (spu_enumerate_spu_ids): Remove.
2335 (linux_qxfer_spu): Remove.
2336 (linux_target_ops): Remove qxfer_spu member.
2337 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2338 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2339 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2340
2d41fa11
SDJ
23412019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2342
2343 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2344 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2345 * config.in: Regenerate.
2346 * configure: Regenerate.
2347
d59b55f0
TT
23482019-08-15 Tom Tromey <tromey@adacore.com>
2349
2350 * target.c (target_write_memory): Use gdb::byte_vector.
2351
4196ab2a
TT
23522019-08-15 Tom Tromey <tromey@adacore.com>
2353
2354 * tracepoint.c (write_inferior_data_pointer)
2355 (write_inferior_integer, write_inferior_int8)
2356 (write_inferior_uinteger, m_tracepoint_action_download)
2357 (r_tracepoint_action_download, x_tracepoint_action_download)
2358 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2359 (download_agent_expr, download_tracepoint_1)
2360 (download_trace_state_variables, upload_fast_traceframes): Update.
2361 * server.c (gdb_write_memory): Update.
2362 * remote-utils.c (relocate_instruction): Update.
2363 * proc-service.c (ps_pdwrite): Update.
2364 * mem-break.c (remove_memory_breakpoint)
2365 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2366 (uninsert_fast_tracepoint_jumps_at)
2367 (reinsert_fast_tracepoint_jumps_at): Update.
2368 * linux-x86-low.c (append_insns)
2369 (i386_install_fast_tracepoint_jump_pad)
2370 (amd64_write_goto_address, i386_write_goto_address): Update.
2371 * linux-s390-low.c (append_insns, s390_write_goto_address):
2372 Update.
2373 * linux-ppc-low.c (ppc_relocate_instruction)
2374 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2375 (ppc_write_goto_address): Update.
2376 * linux-aarch64-low.c (append_insns): Update.
2377 * target.h (struct target_ops): Update.
2378 (write_inferior_memory): Don't declare.
2379 * target.c (target_write_memory): Rename from
2380 write_inferior_memory. Remove old target_write_memory.
2381
c6778d00
TT
23822019-08-15 Tom Tromey <tromey@adacore.com>
2383
2384 * target.c (write_inferior_memory): Use std::vector.
2385
404f2902
FCE
23862019-08-06 Frank Ch. Eigler <fche@redhat.com>
2387
2388 PR build/24886
2389 * configure.ac: Drop enable-libmcheck support.
2390 * configure, config.in: Rebuild.
2391 * acinclude.m4: Don't include it.
2392
4c5aa8e0
AH
23932019-07-19 Alan Hayward <alan.hayward@arm.com>
2394
2395 * configure.srv: Remove Arm xml files.
2396
7cc17433
AH
23972019-07-19 Alan Hayward <alan.hayward@arm.com>
2398
2399 * configure.srv: Add new files. Remove xml generated files.
2400 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2401 registers.
2402 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2403 * linux-aarch32-tdesc.c: New file.
2404 * linux-aarch32-tdesc.h: New file.
2405 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2406 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2407 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2408 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2409 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2410 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2411 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2412 (arm_read_description): Call arm_linux_read_description.
2413 (initialize_low_arch): Don't init registers.
2414 * linux-arm-tdesc.c: New file.
2415 * linux-arm-tdesc.h: New file.
2416
166a82be
AH
24172019-07-10 Alan Hayward <alan.hayward@arm.com>
2418
2419 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2420 Move counter inside for.
2421 (arm_read_description): Check ptrace earlier.
2422 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2423
268a13a5
TT
24242019-07-09 Tom Tromey <tom@tromey.com>
2425
2426 * configure: Rebuild.
2427 * configure.ac: Change common to gdbsupport.
2428 * acinclude.m4: Change common to gdbsupport.
2429 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2430 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2431 common to gdbsupport.
2432 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2433 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2434 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2435 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2436 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2437 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2438 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2439 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2440 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2441 common to gdbsupport.
2442
350fab54
AH
24432019-07-04 Alan Hayward <alan.hayward@arm.com>
2444
2445 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2446 defines.
2447 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2448
2b40fda7
AH
24492019-07-04 Alan Hayward <alan.hayward@arm.com>
2450
2451 * configure.srv: Remove legacy xml.
2452 * linux-aarch64-low.c (initialize_low_arch): Remove
2453 initialize_low_tdesc call.
2454 * linux-aarch64-tdesc-selftest.c: Remove file.
2455 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2456 * linux-x86-low.c (initialize_low_arch): Remove
2457 initialize_low_tdesc call.
2458 * linux-x86-tdesc-selftest.c: Remove file.
2459 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2460
7d10623d
TV
24612019-06-20 Tom de Vries <tdevries@suse.de>
2462
2463 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2464 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2465
8d6a48df
TV
24662019-06-19 Tom de Vries <tdevries@suse.de>
2467
2468 * debug.h (debug_write): Change return type to ssize_t.
2469 * debug.c (debug_write): Same.
2470
73cc7272
TT
24712019-06-14 Tom Tromey <tom@tromey.com>
2472
2473 * configure.ac: Use new path to gnulib.
2474 * configure: Rebuild.
2475 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2476 to gnulib.
2477
08f10e02
TT
24782019-06-11 Tom Tromey <tom@tromey.com>
2479
2480 * Makefile.in (SFILES): Add alloc.c.
2481 (OBS): Add alloc.o.
2482 (IPA_OBJS): Add alloc-ipa.o.
2483 (alloc-ipa.o): New target.
2484 (%.o: ../%.c): New pattern rule.
2485
422186a9
TT
24862019-06-10 Tom Tromey <tromey@adacore.com>
2487
2488 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2489 end warning with a newline.
2490 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2491 newline.
2492 * thread-db.c (attach_thread): Don't end warning with a newline.
2493 (thread_db_notice_clone): Likewise.
2494 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2495 newline.
2496 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2497 end warning with a newline.
2498
b02f78f9
PA
24992019-06-04 Pedro Alves <palves@redhat.com>
2500
2501 * server.c (captured_main): Use make_unique_xstrdup.
2502
88ed7edb
TT
25032019-06-02 Tom Tromey <tom@tromey.com>
2504
2505 * gdbreplay.c (fromhex): Remove.
2506 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2507
33a6bc35
TT
25082019-05-29 Tom Tromey <tromey@adacore.com>
2509
2510 * configure: Rebuild.
2511
e90a813d
KB
25122019-05-06 Kevin Buettner <kevinb@redhat.com>
2513
2514 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2515 sign extension code on 32-bit builds.
2516
353ea2d1
EZ
25172019-05-03 Eli Zaretskii <eliz@gnu.org>
2518
2519 * remote-utils.c:
2520 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2521
b494cdff
TT
25222019-04-19 Tom Tromey <tom@tromey.com>
2523
2524 * server.c (struct vstop_notif): Derive from notif_event.
2525 <base>: Remove.
2526 (queue_stop_reply): Update.
2527 (remove_all_on_match_ptid): Change type. Rewrite.
2528 (discard_queued_stop_replies): Rewrite.
2529 (in_queued_stop_replies_ptid): Change type.
2530 (in_queued_stop_replies): Rewrite.
2531 (notif_stop): Update.
2532 (queue_stop_reply_callback): Update.
2533 (captured_main): Don't call initialize_notif.
2534 (push_stop_notification): Update.
2535 * notif.c (notif_write_event, handle_notif_ack)
2536 (notif_event_enque, notif_push): Update.
2537 (notif_event_xfree, initialize_notif): Remove.
2538 * notif.h (struct notif_event): Include <list>, not
2539 "common/queue.h".
2540 (struct notif_server) <queue>: Now a std::list.
2541 (notif_event_p): Remove typedef.
2542 (initialize_notif): Don't declare.
2543 (struct notif_event): Add virtual destructor.
2544
a7e559cc
AH
25452019-04-17 Alan Hayward <alan.hayward@arm.com>
2546
2547 * ax.c (ax_vdebug): Call debug_printf.
2548 * debug.c (debug_write): New function.
2549 * debug.h (debug_write): New declaration.
2550 * linux-low.c (sigchld_handler): Call debug_write.
2551
aeb2e706
AH
25522019-04-17 Alan Hayward <alan.hayward@arm.com>
2553
2554 * debug.c (debug_set_output): New function.
2555 (debug_vprintf): Send output to debug_file.
2556 (debug_flush): Likewise.
2557 * debug.h (debug_set_output): New declaration.
2558 * server.c (handle_monitor_command): Add debug-file option.
2559 (captured_main): Likewise.
2560
c1bc0935
AH
25612019-04-17 Alan Hayward <alan.hayward@arm.com>
2562
2563 * debug.c (remote_debug): Add definition.
2564 * debug.h (remote_debug): Add declaration.
2565 * hostio.c (remote_debug): Remove declaration.
2566 * remote-utils.c (struct ui_file): Likewise.
2567 (remote_debug): Likewise.
2568 * remote-utils.h (remote_debug): Likewise,
2569 * server.c (remote_debug): Remove definition.
2570
3f52fdbc
KB
25712019-04-10 Kevin Buettner <kevinb@redhat.com>
2572
2573 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2574 when using a 64-bit gdbserver.
2575
b0319eaa
TT
25762019-04-09 Tom Tromey <tromey@adacore.com>
2577
2578 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2579
eedc3f4f
TT
25802019-04-08 Tom Tromey <tom@tromey.com>
2581
2582 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2583 throw.
2584 (linux_resume_one_lwp): Likewise.
2585
230d2906
TT
25862019-04-08 Tom Tromey <tom@tromey.com>
2587
2588 * gdbreplay.c: Update.
2589 * linux-low.c: Update.
2590 * server.c: Update.
2591
a70b8144
TT
25922019-04-08 Tom Tromey <tom@tromey.com>
2593
2594 * server.c: Use C++ exception handling.
2595 * linux-low.c: Use C++ exception handling.
2596 * gdbreplay.c: Use C++ exception handling.
2597
3d6e9d23
TT
25982019-04-08 Tom Tromey <tom@tromey.com>
2599
2600 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2601 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2602 (captured_main, main): Update.
2603 * gdbreplay.c (main): Update.
2604
0570503d
PFC
26052019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2606
2607 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2608 value in argument pointer, return 1 if the entry is found and 0
2609 otherwise. Move comment.
2610 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2611 * linux-low.h (linux_get_auxv): Declare.
2612 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2613
227a9e65
TT
26142019-04-05 Tom Tromey <tromey@adacore.com>
2615
2616 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2617 variables.
2618
69f4c9cc
AH
26192019-03-28 Alan Hayward <alan.hayward@arm.com>
2620
2621 * linux-low.c (AT_HWCAP2): Add define if not already included.
2622
974c89e0
AH
26232019-03-26 Alan Hayward <alan.hayward@arm.com>
2624
2625 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2626 (aarch64_arch_setup): Call linux_get_hwcap.
2627 * linux-arm-low.c (arm_get_hwcap): Remove function.
2628 (arm_read_description): Call linux_get_hwcap.
2629 * linux-low.c (linux_get_auxv): New function.
2630 (linux_get_hwcap): Likewise.
2631 (linux_get_hwcap2): Likewise.
2632 * linux-low.h (linux_get_hwcap): New declaration.
2633 (linux_get_hwcap2): Likewise.
2634 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2635 (ppc_arch_setup): Call linux_get_hwcap.
2636 * linux-s390-low.c (s390_get_hwcap): Remove function.
2637 (s390_arch_setup): Call linux_get_hwcap.
2638
1ef53e6b
AH
26392019-03-22 Alan Hayward <alan.hayward@arm.com>
2640 Jiong Wang <jiong.wang@arm.com>
2641
2642 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2643 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2644 to fail.
2645 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2646
ee4fbcfa
AH
26472019-03-22 Alan Hayward <alan.hayward@arm.com>
2648 Jiong Wang <jiong.wang@arm.com>
2649
2650 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2651 (aarch64_get_hwcap): New function.
2652 (aarch64_arch_setup): Read APIA hwcap.
2653
6dc0ebde
AH
26542019-03-22 Alan Hayward <alan.hayward@arm.com>
2655 Jiong Wang <jiong.wang@arm.com>
2656
2657 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2658 (initialize_low_tracepoint): Likewise.
2659 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2660 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2661 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2662 (aarch64_linux_read_description): Likewise.
2663 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2664
1163a4b7
JB
26652019-03-12 John Baldwin <jhb@FreeBSD.org>
2666
2667 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2668 i386_create_target_description for 'segments' parameter.
2669 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2670 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2671 * win32-i386-low.c (i386_arch_setup): Likewise.
2672
d3a70e03
TT
26732019-03-12 Tom Tromey <tromey@adacore.com>
2674
2675 * linux-low.c (iterate_over_lwps): Update.
2676
37991b4f
TT
26772019-03-06 Tom Tromey <tom@tromey.com>
2678
2679 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2680 (captured_main): Use SCOPE_EXIT.
2681
45950eb6
SDJ
26822019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2683
2684 * configure.srv: Use '$enable_unittest' instead of '$development'
2685 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2686 case.
2687
43ac54fc
TT
26882019-02-27 Tom Tromey <tromey@adacore.com>
2689
2690 * gdbreplay.c (logchar): Handle \r\n.
2691
df0da8a2
AH
26922019-02-07 Alan Hayward <alan.hayward@arm.com>
2693
2694 * linux-low.c (linux_attach): Add process before lwp.
2695 * server.c (attach_inferior): Check if already attached.
2696
1a5c2598
TT
26972019-02-07 Tom Tromey <tom@tromey.com>
2698
2699 * x86-tdesc.h: Rename include guard.
2700 * x86-low.h: Add include guard.
2701 * wincecompat.h: Rename include guard.
2702 * win32-low.h: Add include guard.
2703 * utils.h: Rename include guard.
2704 * tracepoint.h: Rename include guard.
2705 * tdesc.h: Rename include guard.
2706 * target.h: Rename include guard.
2707 * server.h: Rename include guard.
2708 * remote-utils.h: Rename include guard.
2709 * regcache.h: Rename include guard.
2710 * nto-low.h: Rename include guard.
2711 * notif.h: Add include guard.
2712 * mem-break.h: Rename include guard.
2713 * lynx-low.h: Add include guard.
2714 * linux-x86-tdesc.h: Add include guard.
2715 * linux-s390-tdesc.h: Add include guard.
2716 * linux-ppc-tdesc-init.h: Add include guard.
2717 * linux-low.h: Add include guard.
2718 * linux-aarch64-tdesc.h: Add include guard.
2719 * linux-aarch32-low.h: Add include guard.
2720 * inferiors.h: Rename include guard.
2721 * i387-fp.h: Rename include guard.
2722 * hostio.h: Rename include guard.
2723 * gdbthread.h: Rename include guard.
2724 * gdb_proc_service.h: Rename include guard.
2725 * event-loop.h: Rename include guard.
2726 * dll.h: Rename include guard.
2727 * debug.h: Rename include guard.
2728 * ax.h: Rename include guard.
2729
956cc47c
SN
27302018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2731
2732 PR gdb/23985
2733 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2734 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2735
a0707f3c
TT
27362019-01-25 Tom Tromey <tom@tromey.com>
2737
2738 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2739
0747795c
TT
27402019-01-25 Tom Tromey <tom@tromey.com>
2741
2742 * win32-low.c: Fix common/ includes.
2743 * win32-i386-low.c: Fix common/ includes.
2744 * tracepoint.c: Fix common/ includes.
2745 * thread-db.c: Fix common/ includes.
2746 * target.h: Fix common/ includes.
2747 * symbol.c: Fix common/ includes.
2748 * spu-low.c: Fix common/ includes.
2749 * server.h: Fix common/ includes.
2750 * server.c: Fix common/ includes.
2751 * remote-utils.c: Fix common/ includes.
2752 * regcache.h: Fix common/ includes.
2753 * regcache.c: Fix common/ includes.
2754 * nto-x86-low.c: Fix common/ includes.
2755 * notif.h: Fix common/ includes.
2756 * mem-break.h: Fix common/ includes.
2757 * lynx-low.c: Fix common/ includes.
2758 * lynx-i386-low.c: Fix common/ includes.
2759 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2760 * linux-x86-low.c: Fix common/ includes.
2761 * linux-low.c: Fix common/ includes.
2762 * inferiors.h: Fix common/ includes.
2763 * i387-fp.c: Fix common/ includes.
2764 * hostio.c: Fix common/ includes.
2765 * hostio-errno.c: Fix common/ includes.
2766 * gdbthread.h: Fix common/ includes.
2767 * gdbreplay.c: Fix common/ includes.
2768 * fork-child.c: Fix common/ includes.
2769 * event-loop.c: Fix common/ includes.
2770 * ax.c:
2771 (enum gdb_agent_op): Fix common/ includes.
2772
be6d4f74
TT
27732019-01-21 Tom Tromey <tom@tromey.com>
2774
2775 * tracepoint.c: Fix includes.
2776 * remote-utils.c: Fix includes.
2777 * linux-x86-low.c: Fix includes.
2778
66d91b39
JB
27792019-01-01 Joel Brobecker <brobecker@adacore.com>
2780
2781 * gdbreplay.c (gdbreplay_version): Update copyright year in
2782 version message.
2783 * server.c (gdbserver_version): Likewise.
2784
754e3168
AH
27852018-12-05 Alan Hayward <alan.hayward@arm.com>
2786
2787 * linux-low.c (add_lwp): Switch ordering.
2788
d105de22
TT
27892018-11-29 Tom Tromey <tom@tromey.com>
2790
2791 * win32-low.c (win32_join): Take pid, not process.
2792 * target.h (struct target_ops) <join>: Change argument type.
2793 (join_inferior): Change argument name.
2794 * spu-low.c (spu_join): Take pid, not process.
2795 * server.c (handle_detach): Preserve pid before destroying
2796 process.
2797 * lynx-low.c (lynx_join): Take pid, not process.
2798 * linux-low.c (linux_join): Take pid, not process.
2799
50138245
AH
28002018-11-23 Alan Hayward <alan.hayward@arm.com>
2801
2802 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2803 (aarch64_cannot_fetch_register): Likewise.
2804 (struct linux_target_ops): Update references.
2805
64f57f3d
PFC
28062018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2807
2808 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2809
8d619c01
EBM
28102018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2811
2812 * configure.srv (ipa_ppc_linux_regobj): Add
2813 powerpc-isa207-htm-vsx32l-ipa.o and
2814 powerpc-isa207-htm-vsx64l-ipa.o.
2815 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2816 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2817 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2818 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2819 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2820 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2821 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2822 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2823 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2824 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2825 (init_registers_powerpc_isa207_htm_vsx32l)
2826 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2827 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2828 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2829 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2830 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2831 (ppc_store_tm_ctarregset): New functions.
2832 (ppc_regsets): Add entries for HTM regsets.
2833 (ppc_arch_setup): Set htm in features struct when needed. Set
2834 sizes for the HTM regsets.
2835 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2836 (initialize_low_arch): Call
2837 init_registers_powerpc_isa207_htm_vsx32l and
2838 init_registers_powerpc_isa207_htm_vsx64l.
2839 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2840 PPC_TDESC_ISA207_HTM_VSX.
2841 (initialize_low_tracepoint): Call
2842 init_registers_powerpc_isa207_htm_vsx32l and
2843 init_registers_powerpc_isa207_htm_vsx64l.
2844
232bfb86
EBM
28452018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2846
2847 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2848 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2849 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2850 (ppc_store_pmuregset): New functions.
2851 (ppc_regsets): Add entries for ebb and pmu regsets.
2852 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2853 pmu regsets are available. Set sizes for these regsets.
2854
f2cf6173
EBM
28552018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2856
2857 * configure.srv (ipa_ppc_linux_regobj): Add
2858 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2859 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2860 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2861 rs6000/powerpc-isa207-vsx32l.xml, and
2862 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2863 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2864 <PPC_TDESC_ISA207_VSX>: New enum value.
2865 (init_registers_powerpc_isa207_vsx32l): Declare.
2866 (init_registers_powerpc_isa207_vsx64l): Declare.
2867 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2868 (ppc_store_tarregset): New function.
2869 (ppc_regsets): Add entry for the TAR regset.
2870 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2871 size for the TAR regsets.
2872 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2873 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2874 and init_registers_powerpc_isa207_vsx64l.
2875 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2876 (initialize_low_tracepoint): Call
2877 init_registers_powerpc_isa207_vsx32l and
2878 init_registers_powerpc_isa207_vsx64l.
2879
7ca18ed6
EBM
28802018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2881 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2882
2883 * configure.srv (ipa_ppc_linux_regobj): Add
2884 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2885 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2886 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2887 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2888 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2889 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2890 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2891 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2892 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2893 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2894 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2895 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2896 (ppc_hwcap): Add comment.
2897 (ppc_hwcap2): New global.
2898 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2899 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2900 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2901 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2902 when needed. Set sizes for the the DSCR and PPR regsets.
2903 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2904 (initialize_low_arch): Call
2905 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2906 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2907 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2908 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2909 (initialize_low_tracepoint): Call
2910 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2911 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2912
5c849b22
PFC
29132018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2914
2915 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2916
8ecfd7bd
SDJ
29172018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2918 Simon Marchi <simark@simark.ca>
2919
2920 * acinclude.m4: Include "../selftest.m4".
2921 * configure: Regenerate.
2922 * configure.ac: Use "GDB_AC_SELFTEST".
2923 * configure.srv: Use "$enable_unittests" instead of
2924 "$development" when checking whether unit tests have been
2925 enabled.
2926 * server.c (captured_main): Update message informing that
2927 selftests have been disabled.
2928
96643e35
TT
29292018-10-04 Tom Tromey <tom@tromey.com>
2930
2931 * configure: Rebuild.
2932
da4ae14a
TT
29332018-10-04 Tom Tromey <tom@tromey.com>
2934
2935 * server.c (handle_status): Rename inner "thread".
2936 (process_serial_event): Declare "res" in 'm' case.
2937 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2938 (iterate_over_lwps): Rename inner "thread".
2939 (linux_qxfer_libraries_svr4): Rename inner "len".
2940 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2941
7c619dbd
GB
29422018-10-01 Gary Benson <gbenson@redhat.com>
2943
2944 * gdb_proc_service.h: Moved common code to
2945 common/gdb_proc_service.h.
2946
3795e814
GB
29472018-10-01 Gary Benson <gbenson@redhat.com>
2948
2949 * gdb_proc_service.h: Synchronize comments and whitespace with
2950 GDB's version of this file.
2951
49b036f1
TT
29522018-09-25 Tom Tromey <tom@tromey.com>
2953
2954 * configure: Rebuild.
2955 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2956
8ff03f0b
SM
29572018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2958
2959 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2960 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2961 ($(IPA_LIB)): Sort IPA_OBJS.
2962
a1cd91dc
SM
29632018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2964
2965 * Makefile.in: Remove references to $(ADD_DEPS).
2966
752312ba
TT
29672018-09-16 Tom Tromey <tom@tromey.com>
2968
2969 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2970 variables.
2971 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2972 variables.
2973
f1628857
TT
29742018-09-05 Tom Tromey <tom@tromey.com>
2975
2976 * configure: Rebuild.
2977
ad202fcc
SM
29782018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2979
2980 PR build/23399
2981 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2982
d3d8724a
TT
29832018-08-27 Tom Tromey <tom@tromey.com>
2984
2985 PR build/23087:
2986 * configure: Rebuild.
2987
b4f183d2
TT
29882018-08-27 Tom Tromey <tom@tromey.com>
2989
2990 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2991 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2992 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2993 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2994 (s390x_emit_stack_adjust): Add casts to unsigned char.
2995
4e2aa472
SM
29962018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2997
2998 PR gdb/23374
2999 PR gdb/23375
3000 * server.h (struct client_state) <disable_randomization>:
3001 Initialize to 1.
3002
cf4088a9
SM
30032018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3004
3005 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
3006 variable.
3007 (mips_supply_ptrace_register): Likewise.
3008
a0de763e
TT
30092018-07-22 Tom Tromey <tom@tromey.com>
3010
3011 * configure: Rebuild.
3012
b0a7723d
TT
30132018-07-22 Tom Tromey <tom@tromey.com>
3014
3015 * win32-low.c (win32_create_inferior): Remove unused variables.
3016 * gdbreplay.c (remote_open): Remove unused variable.
3017 * remote-utils.c (remote_prepare): Remove unused variable.
3018 * x86-tdesc.h (X86_TDESC_H): Define.
3019 (amd64_expedite_regs): Define conditionally.
3020 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
3021 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
3022 * remote-utils.c (readchar): Remove unused variable.
3023
a780ef4f
PA
30242018-07-13 Pedro Alves <palves@redhat.com>
3025
3026 * linux-low.c (linux_kill): Change parameter to process_info
3027 pointer instead of pid. Adjust.
3028 * lynx-low.c (lynx_kill): Likewise.
3029 * nto-low.c (nto_kill): Likewise.
3030 * spu-low.c (spu_kill): Likewise.
3031 * win32-low.c (win32_kill): Likewise.
3032 * server.c (handle_v_kill, kill_inferior_callback)
3033 (detach_or_kill_for_exit): Adjust.
3034 * target.c (kill_inferior): Change parameter to process_info
3035 pointer instead of pid. Adjust.
3036 * target.h (struct target_ops) <kill>: Change parameter to
3037 process_info pointer instead of pid. Adjust all implementations
3038 and callers.
3039 (kill_inferior): Likewise.
3040
ef2ddb33
PA
30412018-07-13 Pedro Alves <palves@redhat.com>
3042
3043 * linux-low.c (linux_detach, linux_join): Change parameter to
3044 process_info pointer instead of pid. Adjust.
3045 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3046 * nto-low.c (nto_detach): Likewise.
3047 * spu-low.c (spu_detach, spu_join): Likewise.
3048 * win32-low.c (win32_detach, win32_join): Likewise.
3049 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3050 * target.h (struct target_ops) <detach, join>: Change parameter to
3051 process_info pointer instead of pid. Adjust all implementations
3052 and callers.
3053 (detach_inferior, join_inferior): Rename 'pid' parameter to
3054 'proc'.
3055
c7ab0aef
SDJ
30562018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3057 Jan Kratochvil <jan.kratochvil@redhat.com>
3058 Paul Fertser <fercerpav@gmail.com>
3059 Tsutomu Seki <sekiriki@gmail.com>
3060
3061 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3062 (OBS): Add 'common/netstuff.o'.
3063 (GDBREPLAY_OBS): Likewise.
3064 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3065 (remote_open): Implement support for IPv6
3066 connections.
3067 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3068 and 'wspiapi.h'.
3069 (handle_accept_event): Accept connections from IPv6 sources.
3070 (remote_prepare): Handle IPv6-style hostnames; implement
3071 support for IPv6 connections.
3072 (remote_open): Implement support for printing connections from
3073 IPv6 sources.
3074
31445d10
PA
30752018-07-11 Pedro Alves <palves@redhat.com>
3076
3077 PR gdb/23377
3078 * mem-break.c (any_persistent_commands): Add process_info
3079 parameter and use it instead of relying on the current process.
3080 Change return type to bool.
3081 * mem-break.h (any_persistent_commands): Add process_info
3082 parameter and change return type to bool.
3083 * server.c (handle_detach): Remove require_running_or_return call.
3084 Look up the process_info for the process we're about to detach.
3085 If not found, return back error to GDB. Adjust
3086 any_persistent_commands call to pass down a process pointer.
3087
cb197132
PA
30882018-07-11 Pedro Alves <palves@redhat.com>
3089
3090 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3091 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3092 instead of collect_register_by_name.
3093 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3094 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3095
1b919490
VB
30962018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3097 Pedro Alves <palves@redhat.com>
3098
3099 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3100
d7e15655
TT
31012018-07-03 Tom Tromey <tom@tromey.com>
3102
3103 * linux-low.c: Update.
3104 * lynx-low.c: Update.
3105 * mem-break.c: Update.
3106 * nto-low.c: Update.
3107 * remote-utils.c: Update.
3108 * server.c: Update.
3109 * spu-low.c: Update.
3110 * target.c: Update.
3111 * win32-low.c: Update.
3112
26a57c92
TT
31132018-07-03 Tom Tromey <tom@tromey.com>
3114
3115 * server.c: Update.
3116
0e998d96
TT
31172018-07-03 Tom Tromey <tom@tromey.com>
3118
3119 * linux-low.c: Update.
3120
cc6bcb54
TT
31212018-07-03 Tom Tromey <tom@tromey.com>
3122
3123 * target.c: Update.
3124
e38504b3
TT
31252018-07-03 Tom Tromey <tom@tromey.com>
3126
3127 * linux-low.c: Update.
3128 * linux-mips-low.c: Update.
3129 * lynx-low.c: Update.
3130 * nto-low.c: Update.
3131 * remote-utils.c: Update.
3132 * server.c: Update.
3133 * spu-low.c: Update.
3134 * target.c: Update.
3135 * thread-db.c: Update.
3136
e99b03dc
TT
31372018-07-03 Tom Tromey <tom@tromey.com>
3138
3139 * linux-low.c: Update.
3140 * linux-mips-low.c: Update.
3141 * lynx-low.c: Update.
3142 * mem-break.c: Update.
3143 * nto-low.c: Update.
3144 * remote-utils.c: Update.
3145 * server.c: Update.
3146 * spu-low.c: Update.
3147 * target.c: Update.
3148 * tracepoint.c: Update.
3149
f2907e49
TT
31502018-07-03 Tom Tromey <tom@tromey.com>
3151
3152 * linux-low.c: Update.
3153 * linux-ppc-low.c: Update.
3154 * linux-x86-low.c: Update.
3155 * proc-service.c: Update.
3156 * server.c: Update.
3157 * spu-low.c: Update.
3158 * thread-db.c: Update.
3159 * win32-low.c: Update.
3160
fd79271b
TT
31612018-07-03 Tom Tromey <tom@tromey.com>
3162
3163 * linux-low.c: Update.
3164 * lynx-low.c: Update.
3165 * nto-low.c: Update.
3166 * remote-utils.c: Update.
3167 * spu-low.c: Update.
3168 * thread-db.c: Update.
3169 * win32-low.c: Update.
3170
c0867626
SDJ
31712018-06-29 Joel Brobecker <brobecker@adacore.com>
3172
3173 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3174 parameter in call to 'amd64_create_target_description'.
3175
2512d7ef
JK
31762018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3177
3178 * x86-tdesc.h: Remove executable permission flag.
3179
d0ac1c44
SM
31802018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3181
3182 * configure.ac: Remove AC_PREREQ, add missing quoting.
3183 * configure: Re-generate.
3184 * config.in: Re-generate.
3185 * aclocal.m4: Re-generate.
3186
c4eb05ff
SM
31872018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3188
3189 * tracepoint.h (current_traceframe): Remove declaration.
3190
02895270
AH
31912018-06-18 Alan Hayward <alan.hayward@arm.com>
3192
3193 * linux-aarch64-low.c (is_sve_tdesc): New function.
3194 (aarch64_sve_regs_copy_to_regcache): Likewise.
3195 (aarch64_sve_regs_copy_from_regcache): Likewise.
3196 (aarch64_regs_info): Add SVE checks.
3197 (initialize_low_arch): Initialize SVE.
3198
e9902bfc
AH
31992018-06-18 Alan Hayward <alan.hayward@arm.com>
3200
3201 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3202
fefa175e
AH
32032018-06-11 Alan Hayward <alan.hayward@arm.com>
3204
3205 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3206 (initialize_low_tracepoint): Likewise
3207 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3208 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3209 param.
3210 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3211 checks.
3212 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3213
b91ad3ff
AH
32142018-06-11 Alan Hayward <alan.hayward@arm.com>
3215
3216 * server.h (PBUFSIZ): Increase size
3217
f868386e
AH
32182018-06-11 Alan Hayward <alan.hayward@arm.com>
3219
3220 * regcache.c (regcache::raw_compare): New function.
3221 * regcache.h (regcache::raw_compare): New declaration.
3222
9c861883
AH
32232018-06-11 Alan Hayward <alan.hayward@arm.com>
3224
3225 * regcache.c (new_register_cache): Use new.
3226 (free_register_cache): Use delete.
3227 (register_data): Use const.
3228 (supply_register): Move body inside regcache.
3229 (regcache::raw_supply): New override function.
3230 (collect_register): Move body inside regcache.
3231 (regcache::raw_collect): New override function.
3232 (regcache::get_register_status): New override function.
3233 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3234
40591844
TT
32352018-06-09 Tom Tromey <tom@tromey.com>
3236
3237 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3238 declare queue.
3239 (event_queue): Use std::queue.
3240 (gdb_event_xfree): Remove.
3241 (initialize_event_loop, process_event, wait_for_event): Update.
3242
6341380d
SC
32432018-06-08 Stan Cox <scox@redhat.com>
3244
3245 * win32-low.c (win32_create_inferior): last_ptid and last_status
3246 moved to client_state.
3247
03349c93
PA
32482018-06-08 Pedro Alves <palves@redhat.com>
3249
3250 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3251 common/common-exceptions.o, common/common-utils.o,
3252 common/errors.o, common/print-utils.o and utils.o.
3253 * gdbreplay.c: Include "common-defs.h" instead of the two
3254 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3255 string.h or alloca.h.
3256 (perror_with_name): Delete.
3257 (remote_open): Use xstrdup instead of strdup.
3258 (main): Rename to ...
3259 (captured_main): ... this.
3260 (main): New.
3261
8dcc53b3
TT
32622018-06-08 Tom Tromey <tom@tromey.com>
3263
3264 * linux-low.c (linux_low_read_btrace): Update.
3265
c12a5089
SC
32662018-06-04 Stan Cox <scox@redhat.com>
3267
3268 * server.h (struct client_state): New.
3269 * server.c (cont_thread, general_thread, multi_process)
3270 (report_fork_events, report_vfork_events, report_exec_events)
3271 (report_thread_events, swbreak_feature, hwbreak_feature)
3272 (vCont_supported, disable_randomization, pass_signals)
3273 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3274 Moved to client_state.
3275 * remote-utils.c (remote_debug, noack_mode)
3276 (transport_is_reliable): Moved to client_state.
3277 * tracepoint.c (current_traceframe): Moved to client_state.
3278
3279 Update all callers.
3280 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3281 linux-low.c, remote-utils.h, target.c: Use client_state.
3282
122394f1
AH
32832018-05-31 Alan Hayward <alan.hayward@arm.com>
3284
3285 * configure.srv: Add new c/h file.
3286
95228a0d
AH
32872018-05-31 Alan Hayward <alan.hayward@arm.com>
3288
3289 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3290 null VQ.
3291
d8dab6c3
MR
32922018-05-25 Maciej W. Rozycki <macro@mips.com>
3293
3294 * gdb.arch/mips-fpregset-core.exp: New test.
3295 * gdb.arch/mips-fpregset-core.c: New test source.
3296
81e25b7c
EK
32972018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3298
3299 PR server/23198
3300 * hostio.c (require_int): Do not report overflow for integers
3301 between 0xfffffff and 0x7fffffff.
3302
7e947ad3
MR
33032018-05-22 Maciej W. Rozycki <macro@mips.com>
3304
3305 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3306 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3307 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3308 functions.
3309 (the_low_target): Wire them.
3310
1d75a658
PFC
33112018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3312
3313 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3314 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3315 mode. Call collect_register_by_name with vscr using
3316 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3317 (ppc_store_vrregset): Add and set vscr_offset variable as in
3318 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3319 vscr_offset.
3320
d078308a
PFC
33212018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3322
3323 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3324 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3325 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3326
7273b5fc
PFC
33272018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3328
3329 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3330 (ppc_store_vsxregset): Likewise.
3331 (ppc_fill_vrregset): Likewise.
3332 (ppc_store_vrregset): Likewise.
3333 (ppc_fill_evrregset): Likewise.
3334 (ppc_store_evrregset): Likewise.
3335 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3336 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3337 needed.
3338
2e077f5e
PFC
33392018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3340
3341 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3342 wordsize of the inferior. Call ppc_linux_target_wordsize.
3343
bd64614e
PFC
33442018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3345
3346 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3347 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3348 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3349 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3350 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3351 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3352 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3353 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3354 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3355 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3356 (tdesc_powerpc_e500l): Remove.
3357 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3358 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3359 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3360 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3361 linux-ppc-tdesc.h.
3362 (ppc_arch_setup): Remove target description matching code. Fill a
3363 ppc_linux_features struct and call ppc_linux_match_description
3364 with it.
3365
75d74cca
MR
33662018-05-22 Maciej W. Rozycki <macro@mips.com>
3367
3368 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3369 width of the requested register exceeds the width of the
3370 `ptrace' data type.
3371 (mips_cannot_store_register): Likewise.
3372
e4439e43
MR
33732018-05-21 Maciej W. Rozycki <macro@mips.com>
3374
3375 * linux-mips-low.c (mips_fetch_register): New function. Update
3376 preceding comment.
3377 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3378 (the_low_target): Wire `mips_fetch_register'.
3379
55271bf9
JB
33802018-05-10 Joel Brobecker <brobecker@adacore.com>
3381
3382 * lynx-i386-low.c (LYNXOS_178): New macro.
3383 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3384 the layout on LynxOS-178.
3385 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3386 handle floating point registers that are not supported by
3387 LynxOS-178.
3388
1a34f210
TT
33892018-05-10 Tom Tromey <tom@tromey.com>
3390
3391 * configure: Rebuild.
3392
190852c8
JB
33932018-05-10 Joel Brobecker <brobecker@adacore.com>
3394
3395 PR server/23158:
3396 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3397 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3398 Use it to set the expedite_regs field in the given tdesc.
3399 * x86-tdesc.h: New file.
3400 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3401 Adjust following the addition of the new expedite_regs parameter
3402 to init_target_desc.
3403 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3404 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3405 (i386_linux_read_description, amd64_linux_read_description):
3406 Adjust following the addition of the new expedite_regs parameter
3407 to init_target_desc.
3408 * lynx-i386-low.c: #include "x86-tdesc.h".
3409 (lynx_i386_arch_setup): Adjust following the addition of the new
3410 expedite_regs parameter to init_target_desc.
3411 * nto-x86-low.c: #include "x86-tdesc.h".
3412 (nto_x86_arch_setup): Adjust following the addition of the new
3413 expedite_regs parameter to init_target_desc.
3414 * win32-i386-low.c: #include "x86-tdesc.h".
3415 (i386_arch_setup): Adjust following the addition of the new
3416 expedite_regs parameter to init_target_desc.
3417
7dbac825
JB
34182018-05-10 Joel Brobecker <brobecker@adacore.com>
3419
3420 PR server/23158:
3421 * win32-low.c (win32_create_inferior): Add call to my_wait
3422 setting last_status global.
3423
906994d9
JB
34242018-05-10 Joel Brobecker <brobecker@adacore.com>
3425
3426 PR server/23158:
3427 * win32-low.c (create_process): Only call gdb_tilde_expand if
3428 inferior_cwd is not NULL.
3429
8ee22052
AB
34302018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3431
3432 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3433 registers to the cache if their values have changed.
3434 (i387_xsave_to_cache): Provide default values for x87 control
3435 registers when these features are available, but disabled.
3436 * regcache.c (supply_register_by_name_zeroed): New function.
3437 * regcache.h (supply_register_by_name_zeroed): Declare new
3438 function.
3439
aff689d3
TT
34402018-05-07 Tom Tromey <tom@tromey.com>
3441
3442 * configure: Rebuild.
3443
85e26832
TT
34442018-05-04 Tom Tromey <tom@tromey.com>
3445
3446 * configure: Rebuild.
3447
a3b60e45
JK
34482018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3449 Pedro Alves <palves@redhat.com>
3450
3451 * linux-aarch64-low.c (aarch64_stopped_data_address):
3452 Likewise.
3453
632e107b
TT
34542018-04-27 Tom Tromey <tom@tromey.com>
3455
3456 * configure: Rebuild.
3457
458412c3
TT
34582018-04-23 Tom Tromey <tom@tromey.com>
3459
3460 * configure: Rebuild.
3461
f31c089e
SM
34622018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3463
3464 * Makefile.in (depcomp): Add "..".
3465 (all_deps_files): New and use it.
3466
b319b098
AH
34672018-04-18 Alan Hayward <alan.hayward@arm.com>
3468
3469 * configure.srv (aarch64*-*-linux*): Don't include xml.
3470 (i[34567]86-*-cygwin*): Likewise.
3471 (i[34567]86-*-linux*): Likewise.
3472 (i[34567]86-*-lynxos*): Likewise.
3473 (i[34567]86-*-mingw32ce*): Likewise.
3474 (i[34567]86-*-mingw*): Likewise.
3475 (i[34567]86-*-nto*): Likewise.
3476 (tic6x-*-uclinux): Likewise.
3477 (x86_64-*-linux*): Likewise.
3478 (x86_64-*-mingw*): Likewise.
3479 (x86_64-*-cygwin*): Likewise.
3480
3b74854b
AH
34812018-04-18 Alan Hayward <alan.hayward@arm.com>
3482
3483 * tdesc.c: Remove xml parameter.
3484
e98577a9
AH
34852018-04-18 Alan Hayward <alan.hayward@arm.com>
3486
3487 * server.c (get_features_xml): Remove cast.
3488 * tdesc.c (void target_desc::accept): Fill in function.
3489 (tdesc_get_features_xml): Remove old xml creation.
3490 (print_xml_feature::visit_pre): Add xml vistor.
3491 * tdesc.h (struct target_desc): Make xmltarget mutable.
3492 (tdesc_get_features_xml): Remove declaration.
3493
d278f585
AH
34942018-04-18 Alan Hayward <alan.hayward@arm.com>
3495
3496 * tdesc.c (tdesc_architecture_name): Add new function.
3497 (tdesc_osabi_name): Likewise.
3498 (tdesc_get_features_xml): Use new functions.
3499
eee8a18d
AH
35002018-04-18 Alan Hayward <alan.hayward@arm.com>
3501
3502 * tdesc.c (tdesc_create_flags): Remove.
3503 (tdesc_add_flag): Likewise.
3504 (tdesc_named_type): Likewise.
3505 (tdesc_create_union): Likewise.
3506 (tdesc_create_struct): Likewise.
3507 (tdesc_create_vector): Likewise.
3508 (tdesc_add_bitfield): Likewise.
3509 (tdesc_add_field): Likewise.
3510 (tdesc_set_struct_size): Likewise.
3511
82ec9bc7
AH
35122018-04-18 Alan Hayward <alan.hayward@arm.com>
3513
3514 * tdesc.c (~target_desc): Remove implictly deleted items.
3515 (init_target_desc): Iterate all features.
3516 (tdesc_get_features_xml): Use vector.
3517 (tdesc_create_feature): Create feature.
3518 * tdesc.h (tdesc_feature) Remove
3519 (target_desc): Add features.
3520
ea3e7d71
AH
35212018-04-18 Alan Hayward <alan.hayward@arm.com>
3522
3523 * Makefile.in: Add common/tdesc.c
3524 * tdesc.c (init_target_desc): init all reg_defs from register
3525 vector.
3526 (tdesc_create_reg): Create tdesc_reg.
3527 * tdesc.h (tdesc_feature): Add register vector.
3528
17d08cd4
SM
35292018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3530
3531 * tdesc.h (struct target_desc) <features>: Change type to
3532 std::vector<std::string>.
3533 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3534 changes.
3535 (tdesc_get_features_xml): Likewise.
3536 (tdesc_create_feature): Likewise.
3537
5cd3e386
AH
35382018-03-26 Alan Hayward <alan.hayward@arm.com>
3539
3540 * regcache.c (find_register_by_number): Return a ref.
3541 (find_regno): Use references.
3542 (register_size): Likewise.
3543 (register_data): Likewise.
3544 * tdesc.c (target_desc::~target_desc): Remove free calls.
3545 (target_desc::operator==): Use std::vector compare.
3546 (init_target_desc): Use reference.
3547 (tdesc_create_reg): Use reg constructors.
3548 * tdesc.h (struct target_desc): Replace pointer with object.
3549
dff7492c
AH
35502018-03-23 Alan Hayward <alan.hayward@arm.com>
3551
3552 * regcache.c (find_register_by_number): Make static.
3553 (find_regno): Use find_register_by_number
3554 * regcache.h (struct reg): Remove declaration.
3555
d80e5242
AH
35562018-03-23 Alan Hayward <alan.hayward@arm.com>
3557
3558 * tdesc.c (target_desc::~target_desc): Move to here.
3559 (target_desc::operator==): Likewise.
3560 * tdesc.h (target_desc::~target_desc): Move from here.
3561 (target_desc::operator==): Likewise.
3562
f69c5afb
AA
35632018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3564
3565 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3566
ce29f843
AA
35672018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3568
3569 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3570 S390_TDESC_GS.
3571 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3572 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3573 and init_registers_s390_gs_linux64.
3574
c49bd90b
AA
35752018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3576
3577 * linux-s390-low.c (s390_fill_gs): Remove function.
3578 (s390_fill_gsbc): Remove function.
3579 (s390_regsets): Set fill functions for the guarded storage regsets
3580 to NULL.
3581
7edb9bd3
AA
35822018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3583
3584 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3585 the word size. Add comment.
3586 (s390_get_wordsize): New function.
3587 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3588 pswm with it. Instead, use s390_get_wordsize to determine the
3589 word size first and derive the correct tdesc from that directly.
3590
39be3c7e
SM
35912018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3592
3593 * Makefile.in: Include silent-rules.mk.
3594 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3595 (COMPILE): Add ECHO_CXX.
3596 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3597 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3598 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3599 (version-generated.c): Add ECHO_GEN.
3600 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3601 (IPAGENT_COMPILE): Add ECHO_CXX.
3602 (%-generated.c): Add ECHO_REGDAT.
3603
3ae9ce5d
TT
36042018-03-14 Tom Tromey <tom@tromey.com>
3605
3606 PR cli/14977:
3607 * ax.c (ax_printf): Special case for NULL.
3608
e6a58aa8
SM
36092018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3610
3611 * linux-low.c (linux_qxfer_libraries_svr4): Use
3612 xml_escape_text_append.
3613
f6e8a41e
SM
36142018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3615
3616 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3617
b9671caf
SM
36182018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3619
3620 * server.c (handle_general_set): Remove unnecessary xstrdup.
3621
e80aaf61
SM
36222018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3623
3624 * server.c (parse_debug_format_options): Adjust to
3625 delim_string_to_char_ptr_vec changes.
3626 * thread-db.c (thread_db_load_search): Adjust to
3627 dirnames_to_char_ptr_vec changes.
3628
b1223e78
MM
36292018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3630
3631 * target.h (target_enable_btrace, target_disable_btrace)
3632 (target_read_btrace, target_read_btrace_conf): Turn macro into
3633 inline function. Throw error if target method is not defined.
3634 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3635 check for btrace target method. Be prepared to handle exceptions
3636 from btrace target methods.
3637
81561546
SDJ
36382018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3639
3640 * server.c (captured_main): Change order of error message printed
3641 when the current working directory cannot be found.
3642
25e3c82c
SDJ
36432018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3644
3645 * server.c: Include "filenames.h" and "pathstuff.h".
3646 (program_name): Delete variable.
3647 (program_path): New anonymous class.
3648 (get_exec_wrapper): Use "program_path" instead of
3649 "program_name".
3650 (handle_v_run): Likewise.
3651 (captured_main): Likewise.
3652 (process_serial_event): Likewise.
3653
b4987c95
SDJ
36542018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3655
3656 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3657 (OBJS): Add "pathstuff.o".
3658 * server.c (current_directory): New global variable.
3659 (captured_main): Initialize "current_directory".
3660
f46cd62a
AH
36612018-02-26 Alan Hayward <alan.hayward@arm.com>
3662
3663 * tdesc.c: Use common/tdesc.h.
3664 * tdesc.h: Likewise.
3665
a543c5ca
AH
36662018-02-20 Alan Hayward <alan.hayward@arm.com>
3667 Simon Marchi <simon.marchi@ericsson.com>
3668
3669 * Makefile.in: Switch order of make rules.
3670
b5884fa7
AH
36712018-02-19 Alan Hayward <alan.hayward@arm.com>
3672
3673 * Makefile.in: Add common directory in build.
3674 * configure.ac: Add common reference.
3675 * configure: Regenerate.
3676
de6242d3
MM
36772018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3678
3679 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3680 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3681 * spu-low.c (spu_target_ops): Likewise.
3682 * win32-low.c (win32_target_ops): Likewise.
3683 * server.c (supported_btrace_packets): Report packets unconditionally.
3684 * target.h (target_ops) <supports_btrace>: Remove.
3685 (target_supports_btrace): Remove.
3686
9ee23a85
MM
36872018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3688
3689 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3690 (handle_btrace_disable): Change return type to void. Use exceptions
3691 to report errors.
3692 (handle_btrace_general_set): Catch exception and copy message to
3693 return message.
3694
8ce47547
TT
36952018-02-08 Tom Tromey <tom@tromey.com>
3696
3697 * linux-low.c (install_software_single_step_breakpoints): Use
3698 make_scoped_restore.
3699 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3700 (do_restore_current_thread_cleanup): Remove.
3701 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3702 declare.
3703
45dd3607
TT
37042018-02-08 Tom Tromey <tom@tromey.com>
3705
3706 * mem-break.c (set_raw_breakpoint_at): Use
3707 gdb::unique_xmalloc_ptr.
3708
e671cd59
PA
37092018-01-30 Pedro Alves <palves@redhat.com>
3710
3711 PR gdb/13211
3712 * target.c (target_terminal::terminal_state): Rename to ...
3713 (target_terminal::m_terminal_state): ... this.
3714
a0aad537
JC
37152018-01-19 James Clarke <jrtc27@jrtc27.com>
3716
3717 * linux-low.c (handle_extended_wait): Surround call to
3718 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3719
4d9b86e1
SM
37202018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3721
3722 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3723 linux_ptrace_attach_fail_reason_string now returning an
3724 std::string.
3725 (linux_attach): Likewise.
3726 * thread-db.c (attach_thread): Likewise.
3727
f517c180
EA
37282018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3729
3730 PR gdb/21559
3731 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3732 checking for fs_base/gs_base fields in struct user_regs_struct.
3733 * configure: Regenerate.
3734
9a70f35c
YQ
37352018-01-16 Yao Qi <yao.qi@linaro.org>
3736
3737 PR gdb/18749
3738 * linux-low.c (fetch_register): Call supply_register instead of
3739 error.
3740
605fd3c6
YQ
37412018-01-08 Yao Qi <yao.qi@linaro.org>
3742 Simon Marchi <simon.marchi@ericsson.com>
3743
3744 * Makefile.in (OBS): Remove selftest.o.
3745 * configure.ac: Set srv_selftest_objs if $development is true.
3746 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3747 * configure: Re-generated.
3748 * server.c (captured_main): Wrap variable selftest_filter with
3749 GDB_SELF_TEST.
3750
2cc05030
SM
37512018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3752
3753 * server.c (parse_debug_format_options): Return std::string.
3754 (handle_monitor_command, captured_main): Adjust.
3755
e379cee6
PA
37562018-01-05 Pedro Alves <palves@redhat.com>
3757
3758 PR gdb/18653
3759 * server.c (captured_main): Pass quiet=false to
3760 save_original_signals_state.
3761
82e1e79a
JB
37622018-01-01 Joel Brobecker <brobecker@adacore.com>
3763
3764 * gdbreplay.c (gdbreplay_version): Update copyright year in
3765 version message.
3766 * server.c (gdbserver_version): Likewise.
3767
8e481c3b
TT
37682017-12-08 Tom Tromey <tom@tromey.com>
3769
3770 * ax.c (ax_printf): Update.
3771
a8806230
YQ
37722017-12-07 Yao Qi <yao.qi@linaro.org>
3773
3774 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3775 aarch64_linux_read_description.
3776 * linux-amd64-ipa.c (idx2mask): New array.
3777 (get_ipa_tdesc): Move idx2mask out.
3778 (initialize_low_tracepoint): Initialize target descriptions.
3779 * linux-i386-ipa.c (idx2mask): New array.
3780 (get_ipa_tdesc): Move idx2mask out.
3781 (initialize_low_tracepoint): Initialize target descriptions.
3782
d4a0e8b5
SM
37832017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3784
3785 * tdesc.c (struct tdesc_type): Change return type.
3786 (tdesc_add_flag): Change parameter type.
3787 (tdesc_add_bitfield): Likewise.
3788 (tdesc_add_field): Likewise.
3789 (tdesc_set_struct_size): Likewise.
3790
798a7429
SM
37912017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3792
3793 * regcache.c (registers_to_string): Remove unused variable.
3794
c0e15c9b
SM
37952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3796
3797 * inferiors.c (for_each_inferior_with_data): Remove.
3798 * inferiors.h (for_each_inferior_with_data): Remove.
3799 * server.c (handle_qxfer_threads_worker): Change parameter type.
3800 (handle_qxfer_threads_proper): Use for_each_thread.
3801
f0045347
SM
38022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3803
3804 * inferiors.c (for_each_inferior): Remove.
3805 (clear_inferiors): Use for_each_thread.
3806 * inferiors.h (for_each_inferior): Remove.
3807 * linux-low.c (linux_wait_for_event_filtered): Use
3808 for_each_thread.
3809 (linux_stabilize_threads): Likewise.
3810 * regcache.c (regcache_release): Likewise.
3811 * server.c (gdb_wants_all_threads_stopped): Likewise.
3812 (clear_pending_status_callback): Remove.
3813 (handle_status): Use for_each_thread.
3814 (captured_main): Likewise.
3815 * win32-low.c (child_init_thread_list): Likewise.
3816 (win32_clear_inferiors): Likewise.
3817 (fake_breakpoint_event): Likewise.
3818
9521758b
SM
38192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3820
3821 * inferiors.h (find_inferior): Remove.
3822 * inferiors.c (find_inferior): Remove.
3823
8f86d7aa
SM
38242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3825
3826 * linux-low.c (resume_status_pending_p): Update comment.
3827 (need_step_over_p): Update comment.
3828
e2b44075
SM
38292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3830
3831 * linux-low.c (proceed_one_lwp): Return void, change parameter
3832 type.
3833 (unsuspend_and_proceed_one_lwp): Likewise.
3834 (proceed_all_lwps): Use for_each_thread.
3835 (unstop_all_lwps): Likewise.
3836
c80825ff
SM
38372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3838
3839 * linux-low.c (linux_resume_one_thread): Return void, take
3840 parameter directly.
3841 (linux_resume): Use for_each_thread.
3842
df3e4dbe
SM
38432017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3844
3845 * linux-low.c (send_sigstop_callback): Return void, change
3846 parameter type. Rename to...
3847 (send_sigstop): ... this.
3848 (suspend_and_send_sigstop_callback): Return void, change parameter
3849 type. Rename to...
3850 (suspend_and_send_sigstop): ... this.
3851 (stop_all_lwps): Use for_each_thread.
3852
5a6b0a41
SM
38532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3854
3855 * linux-low.c (lwp_running): Return bool, remove unused
3856 argument.
3857 (linux_stabilize_threads): Use find_thread.
3858
39a64da5
SM
38592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3860
3861 * linux-low.c (select_singlestep_lwp_callback): Remove.
3862 (count_events_callback): Remove.
3863 (select_event_lwp_callback): Remove.
3864 (select_event_lwp): Use find_thread/for_each_thread.
3865
a1385b7b
SM
38662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3867
3868 * linux-low.c (not_stopped_callback): Return bool, take filter
3869 argument directly.
3870 (linux_wait_for_event_filtered): Use find_thread.
3871 (linux_wait_1): Likewise.
3872
454296a2
SM
38732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3874
3875 * linux-low.c (same_lwp): Remove.
3876 (find_lwp_pid): Use find_thread.
3877
6b2a85da
SM
38782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3879
3880 * linux-low.c (delete_lwp_callback): Remove.
3881 (linux_mourn): Use for_each_thread.
3882
798a38e8
SM
38832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3884
3885 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3886 args parameter, don't check for pid.
3887 (linux_detach): Use for_each_thread.
3888
e4eb0dec
SM
38892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3890
3891 * linux-low.c (struct counter): Remove.
3892 (second_thread_of_pid_p): Remove.
3893 (last_thread_of_process_p): Use find_thread.
3894
83e1b6c1
SM
38952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3896
3897 * inferiors.c (find_inferior_in_random): Remove.
3898 * inferiors.h (find_inferior_in_random): Remove.
3899 * linux-low.c (status_pending_p_callback): Return bool, accept
3900 parameter ptid directly.
3901 (linux_wait_for_event_filtered): Use find_thread_in_random.
3902 (linux_wait_1): Likewise.
3903
8dc7b443
SM
39042017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3905
3906 * inferiors.c (find_inferior_id): Remove.
3907 (find_thread_ptid): Move implemention from find_inferior_id to
3908 here.
3909 * inferiors.h (find_inferior_id): Remove.
3910 * server.c (handle_status): Use find_thread_ptid.
3911 (process_serial_event): Likewise.
3912 * thread-db.c (find_one_thread): Likewise.
3913 (thread_db_thread_handle): Likewise.
3914 * win32-low.c (thread_rec): Likewise.
3915 (child_delete_thread): Likewise.
3916 (win32_thread_alive): Likewise.
3917 (get_child_debug_event): Likewise.
3918
da25033c
SM
39192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3920
3921 * linux-mips-low.c (update_watch_registers_callback): Return
3922 void, remove pid_p parameter, don't check for pid.
3923 (mips_insert_point, mips_remove_point): Use for_each_thread.
3924
c91bb56b
SM
39252017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * lynx.low (lynx_delete_thread_callback): Remove.
3928 (lynx_mourn): Use for_each_thread.
3929
634a3254
SM
39302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3931
3932 * regcache.c (regcache_invalidate_one): Remove.
3933 (regcache_invalidate_pid): use for_each_thread.
3934
41272101
TT
39352017-11-26 Tom Tromey <tom@tromey.com>
3936
3937 * linux-low.c (linux_create_inferior): Update.
3938
f5291a6f
UW
39392017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3940
3941 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3942
6654d750
AH
39432017-11-24 Alan Hayward <alan.hayward@arm.com>
3944
3945 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3946 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3947 * linux-aarch64-tdesc-selftest.c: New file.
3948 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3949
39502017-11-24 Alan Hayward <alan.hayward@arm.com>
3951
3952 * configure.srv: Add new file.
3953 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3954 * linux-aarch64-tdesc-selftest.c: New file.
3955 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3956
49bdb7ee
AH
39572017-11-24 Alan Hayward <alan.hayward@arm.com>
3958
3959 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3960 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3961 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3962
d6d7ce56
AH
39632017-11-24 Alan Hayward <alan.hayward@arm.com>
3964
3965 * configure.srv: Add new files.
3966 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3967 aarch64_linux_read_description.
3968 * linux-aarch64-low.c (aarch64_linux_read_description):
3969 Merge with aarch64_arch_setup.
3970 (aarch64_arch_setup): Call aarch64_linux_read_description.
3971 * linux-aarch64-tdesc.c: New file.
3972 * linux-aarch64-tdesc.h: New file.
3973
506fe5f4
YQ
39742017-11-24 Yao Qi <yao.qi@linaro.org>
3975
3976 * configure.srv: Set $srv_regobj for tic6x-linux.
3977 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3978 (tic6x_read_description): Move some code to tic6x_arch_setup.
3979 (tic6x_tdesc_test): New function.
3980 (initialize_low_arch): Call selftests::register_test.
3981
29f9a567
YQ
39822017-11-22 Yao Qi <yao.qi@linaro.org>
3983
3984 * remote-utils.c (prepare_resume_reply): Use memcpy.
3985
578290ec
SM
39862017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3987
3988 * linux-low.c (kill_one_lwp_callback): Return void, take
3989 argument directly, don't filter on pid.
3990 (linux_kill): Use for_each_thread.
3991
eca55aec
SM
39922017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3993
3994 * linux-low.c (need_step_over_p): Return bool, remove dummy
3995 argument.
3996 (linux_resume, proceed_all_lwps): Use find_thread.
3997
25c28b4d
SM
39982017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3999
4000 * linux-low.c (resume_status_pending_p): Return bool, remove
4001 flag_p argument.
4002 (linux_resume): Use find_thread.
4003
5fdda392
SM
40042017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4005
4006 * linux-low.c (struct thread_resume_array): Remove.
4007 (linux_set_resume_request): Return void, take arguments
4008 directly.
4009 (linux_resume): Use for_each_thread.
4010
fcb056a5
SM
40112017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4012
4013 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
4014 return bool, remove data argument.
4015 (linux_stabilize_threads): Use find_thread.
4016
139720c5
SM
40172017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4018
4019 * linux-low.c (unsuspend_one_lwp): Remove.
4020 (unsuspend_all_lwps): Use for_each_thread, inline code from
4021 unsuspend_one_lwp.
4022
6d1e5673
SM
40232017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4024
4025 * gdbthread.h (find_thread): Add overload with ptid_t filter.
4026 * linux-low.c (struct iterate_over_lwps_args): Remove.
4027 (iterate_over_lwps_filter): Remove.
4028 (iterate_over_lwps): Use find_thread.
4029
bbf550d5
SM
40302017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4031
4032 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4033 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4034 code from reset_lwp_ptrace_options_callback.
4035
00192f77
SM
40362017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4037
4038 * linux-arm-low.c (struct update_registers_data): Remove.
4039 (update_registers_callback): Return void, take arguments
4040 directly, don't check thread's pid.
4041 (arm_insert_point, arm_remove_point): Use for_each_thread.
4042
2bee2b6c
SM
40432017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4044
4045 * win32-low.c (continue_one_thread): Return void, take argument
4046 directly.
4047 (child_continue): Use for_each_thread.
4048
0b360f19
SM
40492017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4050
4051 * win32-i386-low.c (update_debug_registers_callback): Rename
4052 to ...
4053 (update_debug_registers): ... this, return void, remove pid_p arg.
4054 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4055
f27866ba
SM
40562017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4057
4058 * inferiors.h (struct process_info): Add constructor, initialize
4059 fields..
4060 <syscalls_to_catch>: Change type to std::vector<int>.
4061 * inferiors.c (add_process): Allocate process_info with new.
4062 (remove_process): Free process_info with delete.
4063 * linux-low.c (handle_extended_wait): Adjust.
4064 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4065 * server.c (handle_general_set): Adjust.
4066
e849ea89
PA
40672017-11-16 Pedro Alves <palves@redhat.com>
4068
4069 * remote-utils.c (remote_close): Block SIGIO signals instead of
4070 uninstalling the SIGIO handler.
4071
1d0aa65c
AH
40722017-11-16 Alan Hayward <alan.hayward@arm.com>
4073
4074 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4075
3491a34c
YQ
40762017-11-16 Yao Qi <yao.qi@linaro.org>
4077
4078 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4079 (tic6x_store_gregset): Likewise.
4080 (tic6x_usrregs_info): Move it up.
4081
a602f924
AH
40822017-11-15 Alan Hayward <alan.hayward@arm.com>
4083
4084 * Makefile.in: Update arch rules.
4085 * configure.srv: Explicitly mark arch/ files.
4086
5616b6c3
AS
40872017-11-13 Andreas Schwab <schwab@suse.de>
4088
4089 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4090 function.
4091 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4092
d1928160
PA
40932017-11-06 Pedro Alves <palves@redhat.com>
4094
4095 * config.in, configure: Regenerate.
4096
bac608e7
SM
40972017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4098
4099 * target.c (struct thread_search): Remove.
4100 (thread_search_callback): Remove.
4101 (prepare_to_access_memory): Use for_each_thread instead of
4102 find_inferior. Inline code from thread_search_callback.
4103
eaddb425
SM
41042017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4105
4106 * server.c (struct visit_actioned_threads_data): Remove.
4107 (visit_actioned_threads): Change prototype to take arguments
4108 directly.
4109 (resume): Use find_thread instead of find_inferior.
4110
99078d34
SM
41112017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4112
4113 * server.c (queue_stop_reply_callback): Change prototype, return
4114 void.
4115 (find_status_pending_thread_callback): Remove.
4116 (handle_status): Replace find_inferior with find_thread and
4117 for_each_thread.
4118
cc628f3d
AH
41192017-10-25 Alan Hayward <alan.hayward@arm.com>
4120
4121 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4122 with REGNO.
4123 (aarch64_store_gregset): Likewise.
4124 (aarch64_fill_fpregset): Likewise.
4125 (aarch64_store_fpregset): Likewise.
4126
4d3bb80e
SM
41272017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4128
4129 * gdbthread.h (find_thread, for_each_thread): New functions.
4130 * inferiors.c (thread_of_pid): Remove.
4131 (find_any_thread_of_pid): Use find_thread.
4132 * linux-low.c (num_lwps): Use for_each_thread.
4133
7a7cdfa0
YQ
41342017-10-17 Yao Qi <yao.qi@linaro.org>
4135
4136 * Makefile.in: Remove one rule.
4137 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4138
e675d170
YQ
41392017-10-17 Yao Qi <yao.qi@linaro.org>
4140
4141 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4142 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4143
7eb4e0f9
YQ
41442017-10-17 Yao Qi <yao.qi@linaro.org>
4145
4146 * configure.srv: Rename arm.o with arch/arm.o.
4147
60d6cfc9
YQ
41482017-10-17 Yao Qi <yao.qi@linaro.org>
4149
4150 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4151 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4152 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4153 (arch-i386.o, arch-amd64.o): Remove rules.
4154 (arch/%.o): New rule.
4155 Update POSTCOMPILE and COMPILE.pre.
4156 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4157 * configure: Re-generated.
4158 * configure.srv: Replace arch-i386.o with arch/i386.o.
4159 Replace arch-amd64.o with arch/amd64.o.
4160
5bfda255
YQ
41612017-10-16 Yao Qi <yao.qi@linaro.org>
4162
4163 * configure: Regenerated.
4164
9c80ecd6
SM
41652017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4166
4167 * inferiors.h: (struct inferior_list): Remove.
4168 (struct inferior_list_entry); Remove.
4169 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4170 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4171 get_first_inferior): Remove.
4172 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4173 find_inferior_id, find_inferior_in_random): Change signature.
4174 * inferiors.c (all_threads): Change type to
4175 std::list<thread_info *>.
4176 (get_thread): Remove macro.
4177 (find_inferior, find_inferior_id): Change signature, implement
4178 using find_thread.
4179 (find_inferior_in_random): Change signature, implement using
4180 find_thread_in_random.
4181 (for_each_inferior, for_each_inferior_with_data): Change
4182 signature, implement using for_each_thread.
4183 (add_inferior_to_list, remove_inferior): Remove.
4184 (add_thread, get_first_thread, thread_of_pid,
4185 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4186 (get_first_inferior, one_inferior_p, clear_inferior_list):
4187 Remove.
4188 (clear_inferiors, get_thread_process): Update.
4189 * gdbthread.h: Include <list>.
4190 (struct thread_info) <entry>: Remove field.
4191 <id>: New field.
4192 (all_threads): Change type to std::list<thread_info *>.
4193 (get_first_inferior): Add doc.
4194 (find_thread, for_each_thread, find_thread_in_random): New
4195 functions.
4196 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4197 * linux-arm-low.c (update_registers_callback): Update.
4198 * linux-low.c (second_thread_of_pid_p): Update.
4199 (kill_one_lwp_callback, linux_detach_lwp_callback,
4200 delete_lwp_callback, status_pending_p_callback, same_lwp,
4201 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4202 iterate_over_lwps, not_stopped_callback,
4203 resume_stopped_resumed_lwps, count_events_callback,
4204 select_singlestep_lwp_callback, select_event_lwp_callback,
4205 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4206 suspend_and_send_sigstop_callback, wait_for_sigstop,
4207 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4208 lwp_running, linux_set_resume_request, resume_status_pending_p,
4209 need_step_over_p, start_step_over, linux_resume_one_thread,
4210 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4211 reset_lwp_ptrace_options_callback): Update.
4212 * linux-mips-low.c (update_watch_registers_callback): Update.
4213 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4214 Update.
4215 (free_register_cache_thread_one): Remove.
4216 (regcache_release): Update.
4217 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4218 handle_qxfer_threads_worker): Update.
4219 (handle_query): Update, use list iterator.
4220 (visit_actioned_threads, handle_pending_status,
4221 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4222 clear_pending_status_callback, set_pending_status_callback,
4223 find_status_pending_thread_callback, handle_status,
4224 process_serial_event): Update.
4225 * target.c (thread_search_callback): Update.
4226 * thread-db.c (thread_db_get_tls_address): Update.
4227 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4228 Update.
4229 * win32-i386-low.c (update_debug_registers_callback): Update.
4230 * win32-low.c (delete_thread_info, child_delete_thread,
4231 continue_one_thread, suspend_one_thread,
4232 get_child_debug_event): Adjust.
4233
9179355e
SM
42342017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4235
4236 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4237 * inferiors.h: Include <list>.
4238 (struct process_info) <entry>: Remove field.
4239 <pid>: New field.
4240 (pid_of): Change macro to function.
4241 (ptid_of, lwpid_of): Remove macro.
4242 (all_processes): Change type to std::list<process_info *>.
4243 (ALL_PROCESSES): Remove macro.
4244 (for_each_process, find_process): New function.
4245 * inferiors.c (all_processes): Change type to
4246 std::list<process_info *>.
4247 (find_thread_process): Adjust.
4248 (add_process): Likewise.
4249 (remove_process): Likewise.
4250 (find_process_pid): Likewise.
4251 (get_first_process): Likewise.
4252 (started_inferior_callback): Remove.
4253 (have_started_inferiors_p): Adjust.
4254 (attached_inferior_callback): Remove.
4255 (have_attached_inferiors_p): Adjust.
4256 * linux-low.c (check_zombie_leaders): Likewise.
4257 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4258 (x86_linux_update_xmltarget): Adjust.
4259 * server.c (handle_query): Likewise.
4260 (gdb_reattached_process): Remove.
4261 (handle_status): Adjust.
4262 (kill_inferior_callback): Likewise.
4263 (detach_or_kill_inferior): Remove.
4264 (print_started_pid): Likewise.
4265 (print_attached_pid): Likewise.
4266 (detach_or_kill_for_exit): Update.
4267 (process_serial_event): Likewise.
4268 * linux-arm-low.c (arm_new_fork): Likewise.
4269
c9cb8905
SM
42702017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4271
4272 * dll.h: Include <list>.
4273 (struct dll_info): Add constructor.
4274 <entry>: Remove field.
4275 (all_dlls): Change type to std::list<dll_info>.
4276 * dll.c: Include <algorithm>.
4277 (get_dll): Remove macro.
4278 (all_dlls): Change type to std::list<dll_info *>.
4279 (free_one_dll): Remove.
4280 (match_dll): Likewise.
4281 (loaded_dll): Adjust.
4282 (unloaded_dll): Adjust to all_dlls type change, use
4283 std::find_if. Inline code from match_dll.
4284 (clear_dlls): Adjust to all_dlls type change.
4285 * server.c (emit_dll_description): Remove.
4286 (handle_qxfer_libraries): Adjust to all_dlls type change,
4287 integrate emit_dll_description's functionality.
4288
04ec7890
SM
42892017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4290
4291 * linux-low.h (struct linux_target_ops) <delete_process>: New
4292 field.
4293 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4294 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4295 (struct linux_target_ops): Add delete_process callback.
4296 * linux-arm-low.c (arm_delete_process): New.
4297 (struct linux_target_ops): Add delete_process callback.
4298 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4299 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4300 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4301 * linux-mips-low.c (mips_linux_delete_process): New.
4302 (struct linux_target_ops): Add delete_process callback.
4303 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4304 * linux-s390-low.c (struct linux_target_ops): Likewise.
4305 * linux-sh-low.c (struct linux_target_ops): Likewise.
4306 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4307 * linux-tile-low.c (struct linux_target_ops): Likewise.
4308 * linux-x86-low.c (x86_linux_delete_process): New.
4309 (struct linux_target_ops): Add delete_process callback.
4310 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4311
466eecee
SM
43122017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4313
4314 * linux-aarch64-low.c (the_low_target): Add thread delete
4315 callback.
4316 * linux-arm-low.c (arm_delete_thread): New function.
4317 (the_low_target): Add thread delete callback.
4318 * linux-bfin-low.c (the_low_target): Likewise.
4319 * linux-crisv32-low.c (the_low_target): Likewise.
4320 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4321 set.
4322 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4323 field.
4324 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4325 * linux-mips-low.c (mips_linux_delete_thread): New function.
4326 (the_low_target): Add thread delete callback.
4327 * linux-ppc-low.c (the_low_target): Likewise.
4328 * linux-s390-low.c (the_low_target): Likewise.
4329 * linux-sh-low.c (the_low_target): Likewise.
4330 * linux-tic6x-low.c (the_low_target): Likewise.
4331 * linux-tile-low.c (the_low_target): Likewise.
4332 * linux-x86-low.c (the_low_target): Likewise.
4333 * linux-xtensa-low.c (the_low_target): Likewise.
4334
b79f7801
YZ
43352017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4336
4337 * win32-low.c: Include "common-inferior.h".
4338
bc3b087d
SDJ
43392017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4340
4341 * inferiors.c (set_inferior_cwd): New function.
4342 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4343 (handle_query): Inform that QSetWorkingDir is supported.
4344 * win32-low.c (create_process): Pass the inferior's cwd to
4345 CreateProcess.
4346
d092c5a2
SDJ
43472017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4348
4349 * inferiors.c (current_inferior_cwd): New global variable.
4350 (get_inferior_cwd): New function.
4351 * inferiors.h (struct process_info) <cwd>: New field.
4352
7da0a886
SDJ
43532017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4354
4355 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4356 (OBS): Add gdb_tilde_expand.o.
4357
289a6840
SM
43582017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4359
4360 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4361 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4362
256642e8
PA
43632017-09-29 Pedro Alves <palves@redhat.com>
4364
4365 * ax.c (gdb_parse_agent_expr): Constify.
4366 * ax.h (gdb_parse_agent_expr): Constify.
4367 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4368 Constify.
4369 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4370 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4371 * remote-utils.h (read_ptid): Constify.
4372 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4373 (process_point_options, process_serial_event): Constify.
4374 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4375 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4376 (cmd_qtbuffer): Constify.
4377
5b9ca4d4
PA
43782017-09-29 Pedro Alves <palves@redhat.com>
4379
4380 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4381 fails.
4382
94c207e0
PA
43832017-09-29 Pedro Alves <palves@redhat.com>
4384
4385 * linux-low.c (handle_extended_wait): Pass parent thread instead
4386 of process to thread_db_notice_clone.
4387 * linux-low.h (thread_db_notice_clone): Replace parent process
4388 parameter with parent thread parameter.
4389 * thread-db.c (find_one_thread): Add comment.
4390 (thread_db_notice_clone): Replace parent process parameter with
4391 parent thread parameter. Temporarily switch to the parent thread.
4392
75352e28
SDJ
43932017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4394
4395 * gdbthread.h: Include "common-gdbthread.h".
4396 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4397 "if" when validating the ptid.
4398 * remote-utils.c: Include "gdbthread.h".
4399 (prepare_resume_reply): Use "switch_to_thread".
4400 * target.c (done_accessing_memory): Likewise.
4401
ad339634
AA
44022017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4403
4404 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4405 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4406 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4407 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4408 s390x-gs-linux64-ipa.o to ipa_obj.
4409 * linux-s390-low.c (HWCAP_S390_GS): New define.
4410 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4411 New functions.
4412 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4413 (s390_arch_setup): Check for guarded-storage support and choose
4414 appropriate tdesc.
4415 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4416 init_registers_s390x_gs_linux64.
4417 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4418 enum value.
4419 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4420 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4421
cc4d742f
SM
44222017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4423
4424 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4425
f6327dcb
KB
44262017-09-21 Kevin Buettner <kevinb@redhat.com>
4427
4428 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4429 (thread_db_thread_handle): Declare.
4430 * linux-low.c (linux_target_ops): Initialize thread_handle.
4431 * server.c (handle_qxfer_threads_worker): Add support for
4432 "handle" attribute.
4433 * target.h (struct target_ops): Add new function pointer,
4434 thread_handle.
4435 (target_thread_handle): Define.
4436 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4437 field in lwp.
4438 (thread_db_thread_handle): New function.
4439
86299109
KB
44402017-09-21 Kevin Buettner <kevinb@redhat.com>
4441
4442 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4443 * linux-low.h (thread_db_notice_clone): Declare.
4444 * thread-db.c (thread_db_notice_clone): New function.
4445
f557a88a
PA
44462017-09-21 Pedro Alves <palves@redhat.com>
4447
4448 * server.c (gdb_read_memory, handle_status, process_serial_event)
4449 (handle_serial_event, handle_target_event): Adjust to
4450 set_desired_thread prototype change.
4451 * target.c (set_desired_thread): Remove 'use_general' parameter
4452 and adjust.
4453 * target.h (set_desired_thread): Remove 'use_general' parameter.
4454
223ffa71
TT
44552017-09-20 Tom Tromey <tom@tromey.com>
4456
4457 * target.c (target_terminal::terminal_state): Define.
4458 (target_terminal::init): Rename from target_terminal_init.
4459 (target_terminal::inferior): Rename from
4460 target_terminal_inferior.
4461 (target_terminal::ours): Rename from target_terminal_ours.
4462 (target_terminal::ours_for_output, target_terminal::info): New.
4463
04fd3ba9
SM
44642017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4465
4466 * server.c (accumulate_file_name_length): Remove.
4467 (emit_dll_description): Adjust to std::string change.
4468 (handle_qxfer_libraries): Use std::string to hold document.
4469
5e187554
SM
44702017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4471
4472 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4473 return type of xml_escape_text.
4474 * server.c (emit_dll_description): Likewise.
4475
1526853e
SM
44762017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4477
4478 * server.c (captured_main): Accept argument for --selftest.
4479 Update run_tests call.
4480 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4481 when registering selftests.
4482
c4dfafab
SDJ
44832017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4484
4485 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4486 instead of "VEC" for "target_desc.reg_defs".
4487 (regcache_cpy): Likewise.
4488 (registers_to_string): Likewise.
4489 (registers_from_string): Likewise.
4490 (find_regno): Likewise.
4491 (supply_regblock): Likewise.
4492 (regcache_raw_read_unsigned): Likewise.
4493 * tdesc.c (init_target_desc): Likewise.
4494 (tdesc_create_reg): Likewise.
4495 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4496 (struct target_desc) <reg_defs>: Convert to "std::vector".
4497 (target_desc): Do not initialize "reg_defs".
4498 (~target_desc): Update code to use "std::vector" instead of "VEC"
4499 for "target_desc.reg_defs".
4500 (operator==): Likewise.
4501
124aceb4
SM
45022017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4503
4504 * inferiors.h (thread_to_gdb_id): Remove.
4505 * inferiors.c (thread_to_gdb_id): Remove.
4506 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4507 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4508 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4509 Likewise.
4510 * nto-low.c (nto_fetch_registers, nto_store_registers,
4511 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4512
96cde54f
SM
45132017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4514
4515 * inferiors.h (gdb_id_to_thread_id): Remove.
4516 * inferiors.c (gdb_id_to_thread_id): Remove.
4517 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4518 removal. Move pid declaration closer to where it's used.
4519
e8ca139e
SM
45202017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4521
4522 * server.c (handle_detach): New function.
4523 (process_serial_event): Move code out, call handle_detach.
4524
f8a4e119
SM
45252017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4526
4527 * server.c (require_running): Rename to ...
4528 (require_running_or_return): ... this ...
4529 (require_running_or_break): ... and this.
4530 (handle_query, process_serial_event): Adjust.
4531
0eb0a407
SM
45322017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4533
4534 * linux-low.c (linux_set_resume_request): Remove unused
4535 variables.
4536
785922a5
SM
45372017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4538
4539 * server.c (first_thread_of): Remove.
4540 (process_serial_event): Replace usage of first_thread_of with
4541 find_any_thread_of_pid.
4542 * tracepoint.c (same_process_p): Remove.
4543 (gdb_agent_about_to_close): Replace usage of same_process_p with
4544 find_any_thread_of_pid.
4545 * linux-x86-low.c (same_process_callback): Remove.
4546 (x86_arch_setup_process_callback): Replace usage of
4547 same_process_callback with find_any_thread_of_pid.
4548 * thread-db.c (any_thread_of): Remove.
4549 (switch_to_process): Replace usage of any_thread_of with
4550 find_any_thread_of_pid.
4551 * inferiors.c (thread_pid_matches_callback): Remove.
4552 (find_thread_process): Adjust to use find_any_thread_of_pid.
4553
a059f00c
SDJ
45542017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4555
4556 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 4557 with "!VEC_empty".
a059f00c 4558
cc397f3a
SDJ
45592017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4560
4561 * linux-low.c (handle_extended_wait): Use
4562 "allocate_target_description" instead of "XNEW".
4563 * linux-x86-low.c (initialize_low_arch): Likewise.
4564
22916b07
YQ
45652017-09-05 Yao Qi <yao.qi@linaro.org>
4566
4567 * configure.srv (srv_i386_regobj): Remove.
4568 (srv_amd64_regobj): Remove.
4569 (srv_regobj): Set it to "" for x86 non-linux targets.
4570 * linux-x86-tdesc.c (i386_linux_read_description):
4571 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4572 (init_registers_i386): Remove the declaration.
4573 (tdesc_i386): Remove the declaration.
4574 (lynx_i386_arch_setup): Call i386_create_target_description.
4575 * nto-x86-low.c: Likewise.
4576 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4577 [!__x86_64__]: include arch/i386.h.
4578 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4579
38602d55
YQ
45802017-09-05 Yao Qi <yao.qi@linaro.org>
4581
4582 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4583 i386/amd64-XXX-linux from it.
4584
44b886ff
YQ
45852017-09-05 Yao Qi <yao.qi@linaro.org>
4586
4587 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4588 false.
4589 (ipa_amd64_linux_regobj): Remove.
4590 (ipa_x32_linux_regobj): Remove.
4591
b4570e4b
YQ
45922017-09-05 Yao Qi <yao.qi@linaro.org>
4593
4594 * Makefile.in (arch-amd64.o): New rule.
4595 * configure.srv: Append arch-amd64.o.
4596 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4597 (get_ipa_tdesc): Call amd64_linux_read_description.
4598 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4599 and init_registers_amd64_XXX.
4600 * linux-x86-low.c (x86_linux_read_description): Call
4601 amd64_linux_read_description.
4602 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4603 (initialize_low_arch): Don't call init_registers_x32_XXX and
4604 init_registers_amd64_XXX.
4605 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4606 and tdesc_amd64_XXX.
4607 [__x86_64__] (amd64_tdesc_test): New function.
4608 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4609 and init_registers_amd64_XXX.
4610 * linux-x86-tdesc.c: Include arch/amd64.h.
4611 (xcr0_to_tdesc_idx): New function.
4612 (i386_linux_read_description): New function.
4613 (amd64_get_ipa_tdesc_idx): New function.
4614 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4615 (amd64_get_ipa_tdesc): Declare.
4616
d1f28ea2
YQ
46172017-09-05 Yao Qi <yao.qi@linaro.org>
4618
4619 * configure.srv (srv_i386_linux_xmlfiles): Remove
4620 i386/i386-XXX-linux.xml from it.
4621
25a93583
YQ
46222017-09-05 Yao Qi <yao.qi@linaro.org>
4623
4624 * configure.srv: Set srv_i386_linux_regobj empty if $development
4625 is false.
4626 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4627 initialize_low_tdesc.
4628 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4629 with #if initialize_low_tdesc.
4630 * linux-x86-tdesc-selftest.c: New file.
4631 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4632
5f035c07
YQ
46332017-09-05 Yao Qi <yao.qi@linaro.org>
4634
4635 * Makefile.in (arch-i386.o): New rule.
4636 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4637 (x86_64-*-linux*): Likewise.
4638 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4639 include arch/i386.h.
4640 (i386_linux_read_description): Remove code and call
4641 i386_create_target_description.
4642 * tdesc.c (allocate_target_description): New function.
4643 * tdesc.h (set_tdesc_architecture): Remove declaration.
4644 (set_tdesc_osabi): Likewise.
4645
0abe8a89
YQ
46462017-09-05 Yao Qi <yao.qi@linaro.org>
4647
4648 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4649 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4650 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4651 .xmltarget.
4652 * server.c (get_features_xml): Call tdesc_get_features_xml.
4653 * tdesc.c (set_tdesc_architecture): New function.
4654 (set_tdesc_osabi): New function.
4655 (tdesc_get_features_xml): New function.
4656 (tdesc_create_feature): Add an argument.
4657 * tdesc.h (struct target_desc) <features>: New field.
4658 <arch, osabi>: New field.
4659 (~target_desc): xfree features, arch, and osabi.
4660 (target_desc::oerator==): Don't compare .xmltarget.
4661 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4662 (set_tdesc_osabi): Likewise.
4663 (tdesc_get_features_xml): Likewise.
4664
0a188386
YQ
46652017-09-05 Yao Qi <yao.qi@linaro.org>
4666
4667 * linux-x86-tdesc.c: Include selftest.h.
4668 (i386_tdesc_test): New function.
4669 (initialize_low_tdesc): Call selftests::register_test.
4670 * tdesc.h: Include regdef.h.
4671 (target_desc): Override operator == and !=.
4672
f49ff000
YQ
46732017-09-05 Yao Qi <yao.qi@linaro.org>
4674
4675 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4676 (ipa_obj): Likewise.
4677 * linux-i386-ipa.c: Include common/x86-xstate.h
4678 (get_ipa_tdesc): Call i386_linux_read_description.
4679 (initialize_low_tracepoint): Don't call init_registers_XXX
4680 functions, call initialize_low_tdesc instead.
4681 * linux-x86-low.c (x86_linux_read_description): Call
4682 i386_linux_read_description.
4683 (initialize_low_arch): Don't call init_registers_i386_XXX
4684 functions, call initialize_low_tdesc.
4685 * linux-x86-tdesc.c: New file.
4686 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4687 (i386_get_ipa_tdesc_idx): Declare.
4688 (i386_get_ipa_tdesc): Declare.
4689 (initialize_low_tdesc): Declare.
4690
2b68ef2f
YQ
46912017-09-05 Yao Qi <yao.qi@linaro.org>
4692
4693 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4694 instead of 0.
4695
f7000548
YQ
46962017-09-05 Yao Qi <yao.qi@linaro.org>
4697
4698 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4699 * regcache.c (get_thread_regcache): Use VEC_length.
4700 (init_register_cache): Likewise.
4701 (regcache_cpy): Likewise.
4702 (registers_to_string): Iterate reg_defs via VEC_iterate.
4703 (find_regno): Likewise.
4704 (find_register_by_number): Use VEC_index.
4705 (register_size): Call find_register_by_number.
4706 (register_data): Call find_register_by_number.
4707 (supply_regblock): Use VEC_length.
4708 (regcache_raw_read_unsigned): Likewise.
4709 * tdesc.c (init_target_desc): Iterate reg_defs via
4710 VEC_iterate.
4711 (default_description): Update initializer.
4712 (copy_target_description): Don't update field num_registers.
4713 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4714 <num_registers>: Remove.
4715
50a421ac
SM
47162017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4717
4718 * Makefile.in (.SECONDARY): Define target.
4719
23fdd69e
SM
47202017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4721
4722 * linux-low.c (linux_wait_1): Adjust.
4723 * server.c (queue_stop_reply_callback): Adjust.
4724
0a2dde4a
SDJ
47252017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4726
4727 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4728 QEnvironmentUnset and QEnvironmentReset packets.
4729 (handle_query): Inform remote that QEnvironmentHexEncoded,
4730 QEnvironmentUnset and QEnvironmentReset are supported.
4731
6afd337d
SM
47322017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4733
4734 * inferiors.h (inferior_target_data): Rename to ...
4735 (thread_target_data): ... this.
4736 (inferior_regcache_data): Rename to ...
4737 (thread_regcache_data): ... this.
4738 (set_inferior_regcache_data): Rename to ...
4739 (set_thread_regcache_data): ... this.
4740 * inferiors.c (inferior_target_data): Rename to ...
4741 (thread_target_data): ... this.
4742 (inferior_regcache_data): Rename to ...
4743 (thread_regcache_data): ... this.
4744 (set_inferior_regcache_data): Rename to ...
4745 (set_thread_regcache_data): ... this.
4746 (free_one_thread): Update.
4747 * linux-low.h (get_thread_lwp): Update.
4748 * regcache.c (get_thread_regcache): Update.
4749 (regcache_invalidate_thread): Update.
4750 (free_register_cache_thread): Update.
4751 * win32-i386-low.c (update_debug_registers_callback): Update.
4752 (win32_get_current_dr): Update.
4753 * win32-low.c (thread_rec): Update.
4754 (delete_thread_info): Update.
4755 (continue_one_thread): Update.
4756 (suspend_one_thread): Update.
4757
a160cc46
SM
47582017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4759
4760 * inferiors.c (set_inferior_target_data): Remove.
4761 * inferiors.h (set_inferior_target_data): Remove.
4762
6d580b63
YQ
47632017-08-18 Yao Qi <yao.qi@linaro.org>
4764
4765 * Makefile.in (OBS): Add selftest.o.
4766 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4767 * configure, config.in: Re-generated.
4768 * server.c: Include common/sefltest.h.
4769 (captured_main): Handle option --selftest.
4770
f5a29eb0
YQ
47712017-08-09 Yao Qi <yao.qi@linaro.org>
4772
4773 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4774 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4775 i386-avx-mpx.o and i386-mmx.o.
4776 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4777 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4778 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4779 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4780 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4781 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4782 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4783 i386/amd64-avx-mpx.xml.
4784
57757c2f
YQ
47852017-08-09 Yao Qi <yao.qi@linaro.org>
4786
4787 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4788 and x32-avx-avx512.o.
4789 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4790 i386/x32-avx-avx512.xml.
4791
229d26fc
SM
47922017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4793
4794 * tracepoint.h (enum class fast_tpoint_collect_result): New
4795 enumeration.
4796 (fast_tracepoint_collecting): Change return type to
4797 fast_tpoint_collect_result.
4798 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4799 * linux-low.h: Include tracepoint.h.
4800 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4801 fast_tpoint_collect_result.
4802 * linux-low.c (handle_tracepoints): Adjust.
4803 (linux_fast_tracepoint_collecting): Change return type to
4804 fast_tpoint_collect_result.
4805 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4806 linux_wait_1, stuck_in_jump_pad_callback,
4807 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4808 proceed_one_lwp): Adjust to type change.
4809
2e1e43e1
YQ
48102017-07-10 Yao Qi <yao.qi@linaro.org>
4811
4812 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4813
adc764e7
YQ
48142017-06-29 Yao Qi <yao.qi@linaro.org>
4815
4816 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4817 Remove.
4818 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4819
a206891a
SM
48202017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4821
4822 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4823
9a6c7d9c
SDJ
48242017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4825
4826 * linux-low.c (linux_create_inferior): Adjust code to access the
4827 environment information via 'gdb_environ' class.
4828 * lynx-low.c (lynx_create_inferior): Likewise.
4829 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4830 (get_environ): Return a pointer to 'our_environ'.
4831 (captured_main): Initialize 'our_environ'.
4832 * server.h (get_environ): Adjust prototype.
4833 * spu-low.c (spu_create_inferior): Adjust code to access the
4834 environment information via 'gdb_environ' class.
4835
ae3e2ccf
SM
48362017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4837
4838 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4839 usage of "register" keyword.
4840
3e019bdc
SM
48412017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4842
4843 * configure: Re-generate.
4844
8465943a
SM
48452017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4846
4847 * configure: Re-generate.
4848
cf0dd6f0
SM
48492017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4850
4851 * Makefile.in (COMPILE.pre): Add "-x c++".
4852
9845682b
SDJ
48532017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4854
4855 * fork-child.c: Conditionally include <signal.h>.
4856
aefd8b33
SDJ
48572017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4858
4859 * server.c (handle_general_set): Handle new packet
4860 "QStartupWithShell".
4861 (handle_query): Add "QStartupWithShell" to the list of supported
4862 packets.
4863 (gdbserver_usage): Add help text explaining the
4864 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4865 options.
4866 (captured_main): Recognize and act upon the presence of the new
4867 CLI options.
4868
2090129c
SDJ
48692017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4870 Pedro Alves <palves@redhat.com>
4871
4872 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4873 * configure: Regenerate.
4874 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4875 "fork-inferior.o".
4876 (i[34567]86-*-lynxos*): Likewise.
4877 (spu*-*-*): Likewise.
4878 * fork-child.c: New file.
4879 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4880 and "environ.h".
4881 (linux_ptrace_fun): New function.
4882 (linux_create_inferior): Adjust function prototype to reflect
4883 change on "target.h". Adjust function code to use
4884 "fork_inferior".
4885 (linux_request_interrupt): Delete "signal_pid".
4886 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4887 (lynx_ptrace_fun): New function.
4888 (lynx_create_inferior): Adjust function prototype to reflect
4889 change on "target.h". Adjust function code to use
4890 "fork_inferior".
4891 * nto-low.c (nto_create_inferior): Adjust function prototype and
4892 code to reflect change on "target.h". Update comments.
4893 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4894 "common-terminal.h" and "environ.h".
4895 (terminal_fd): Moved to fork-child.c.
4896 (old_foreground_pgrp): Likewise.
4897 (restore_old_foreground_pgrp): Likewise.
4898 (last_status): Make it global.
4899 (last_ptid): Likewise.
4900 (our_environ): New variable.
4901 (startup_with_shell): Likewise.
4902 (program_name): Likewise.
4903 (program_argv): Rename to...
4904 (program_args): ...this.
4905 (wrapper_argv): New variable.
4906 (start_inferior): Delete function.
4907 (get_exec_wrapper): New function.
4908 (get_exec_file): Likewise.
4909 (get_environ): Likewise.
4910 (prefork_hook): Likewise.
4911 (post_fork_inferior): Likewise.
4912 (postfork_hook): Likewise.
4913 (postfork_child_hook): Likewise.
4914 (handle_v_run): Update code to deal with arguments coming from the
4915 remote host. Update calls from "start_inferior" to
4916 "create_inferior".
4917 (captured_main): Likewise. Initialize environment variable. Call
4918 "have_job_control".
4919 * server.h (post_fork_inferior): New prototype.
4920 (get_environ): Likewise.
4921 (last_status): Declare.
4922 (last_ptid): Likewise.
4923 (signal_pid): Likewise.
4924 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4925 (spu_ptrace_fun): New function.
4926 (spu_create_inferior): Adjust function prototype to reflect change
4927 on "target.h". Adjust function code to use "fork_inferior".
4928 * target.c (target_terminal_init): New function.
4929 (target_terminal_inferior): Likewise.
4930 (target_terminal_ours): Likewise.
4931 * target.h: Include <vector>.
4932 (struct target_ops) <create_inferior>: Update prototype.
4933 (create_inferior): Update macro.
4934 * utils.c (gdb_flush_out_err): New function.
4935 * win32-low.c (win32_create_inferior): Adjust function prototype
4936 and code to reflect change on "target.h".
4937
043a4934
SDJ
49382017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4939
4940 * inferiors.c (switch_to_thread): New function.
4941
15652511
SDJ
49422017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4943
4944 * Makefile.in (SFILE): Add "common/job-control.c".
4945 (OBS): Add "job-control.o".
4946
21ea5acd
SDJ
49472017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4948
4949 * Makefile: Remove "@host_makefile_frag@".
4950
e13cb306
PA
49512017-05-05 Pedro Alves <palves@redhat.com>
4952
4953 * configure: Regenerate.
4954
c94fee56
SDJ
49552017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4956
4957 * configure: Regenerate.
4958
a0ff9e1a
SM
49592017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4960
4961 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4962 software_single_step change of return type to
4963 std::vector<CORE_ADDR>.
4964 * linux-low.c (install_software_single_step_breakpoints):
4965 Likewise.
4966 * linux-low.h (install_software_single_step_breakpoints):
4967 Likewise.
4968
be628ab8
SDJ
49692017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4970
4971 * remote-utils.c: Include "gdb_termios.h" instead of
4972 "terminal.h".
4973 * terminal.h: Delete file.
4974
7c5ded6a
SDJ
49752017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4976
4977 * server.c: Include <vector>.
4978 <program_argv, wrapper_argv>: Convert to std::vector.
4979 (start_inferior): Rewrite function to use C++.
4980 (handle_v_run): Likewise. Update code that calculates the argv
4981 based on the vRun packet; use C++.
4982 (captured_main): Likewise.
4983
436252de
SM
49842017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4985
4986 * server.c (handle_v_cont): Initialize thread_resume::thread
4987 with null_ptid.
4988
9bf2a700
PA
49892017-04-05 Pedro Alves <palves@redhat.com>
4990
4991 * configure: Regenerate.
4992
a121b7c1
PA
49932017-04-05 Pedro Alves <palves@redhat.com>
4994
4995 * gdbreplay.c (sync_error): Constify.
4996 * linux-x86-low.c (push_opcode): Constify.
4997
21c8a587
PA
49982017-04-05 Pedro Alves <palves@redhat.com>
4999
5000 * win32-low.c (get_child_debug_event)
5001 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
5002 Report TARGET_WAITKIND_SPURIOUS instead.
5003
fb32b4f7
PA
50042017-04-05 Pedro Alves <palves@redhat.com>
5005
e79be6e5
SM
5006 * remote-utils.c (remote_prepare, remote_open): Constify.
5007 * remote-utils.h (remote_prepare, remote_open): Constify.
5008 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 5009
65dd1e59
SM
50102017-04-04 Simon Marchi <simon.marchi@ericsson.com>
5011
5012 * Makefile.in (clean): Clear .deps.
5013
8fa5b777
SM
50142017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
5015
5016 * .gitignore: Remove generated files, replace with wildcard.
5017 * (clean): Replace removal of generated files with wildcard.
5018 (version.c): Replace with...
5019 (version-generated.c): ...this.
5020 (xml-builtin.c): Replace with...
5021 (xml-builtin-generated.c): ...this.
5022 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
5023 (%.c: *regformats*): Replace with...
5024 (%-generated.c: *regformats*): ...this.
5025
a12e714b
MF
50262017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5027
5028 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5029 (xtensa_fill_gregset): Call collect_register_by_name for
5030 threadptr register.
5031 (xtensa_store_gregset): Call supply_register_by_name for
5032 threadptr register.
5033
1a09b50a
MF
50342017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5035
5036 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5037 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5038 (xtensa_store_gregset): Call supply_register for all registers in
5039 a0_regnum..a0_regnum + C0_NREGS range.
5040
1a01e7c6
SM
50412017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5042
5043 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5044 (ax-ipa.o: ax.c): Remove.
5045 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5046 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5047 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5048 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5049 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5050
36bc18a8
SM
50512017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5052
5053 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5054 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5055 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5056 (errors-ipa.o: ../common/errors.c): Remove.
5057 (format-ipa.o: ../common/format.c): Remove.
5058 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5059
a8ebe3d5
SM
50602017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5061
5062 * Makefile.in (%-ipa.o: %.c): New rule.
5063 (tracepoint-ipa.o: tracepoint.c): Remove.
5064 (utils-ipa.o: utils.c): Remove.
5065 (remote-utils-ipa.o: remote-utils.c): Remove.
5066 (regcache-ipa.o: regcache.c): Remove.
5067 (i386-linux-ipa.o: i386-linux.c): Remove.
5068 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5069 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5070 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5071 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5072 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5073 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5074 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5075 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5076 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5077 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5078 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5079 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5080 (aarch64-ipa.o: aarch64.c): Remove.
5081 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5082 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5083 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5084 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5085 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5086 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5087 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5088 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5089 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5090 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5091 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5092 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5093 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5094 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5095 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5096 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5097 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5098 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5099 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5100 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5101 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5102 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5103 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5104 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5105 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5106 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5107 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5108 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5109 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5110 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5111 (tdesc-ipa.o: tdesc.c): Remove.
5112 (x32-linux-ipa.o: x32-linux.c): Remove.
5113 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5114 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5115
50cfacb7
SM
51162017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5117
5118 * Makefile.in (%.o: ../arch/%.c): New rule.
5119 (arm.o: ../arch/arm.c): Remove.
5120 (arm-linux.o: ../arch/arm-linux.c): Remove.
5121 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5122 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5123
c5a22423
SM
51242017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5125
5126 * Makefile.in (%.o: ../nat/%.c): New rule.
5127 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5128 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5129 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5130 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5131 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5132 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5133 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5134 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5135 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5136 (linux-personality.o: ../nat/linux-personality.c): Remove.
5137 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5138 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5139 (x86-linux.o: ../nat/x86-linux.c): Remove.
5140 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5141 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5142
6bda016b
SM
51432017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5144
5145 * Makefile.in (%.o: ../common/%.c): New rule.
5146 (signals.o: ../common/signals.c): Remove.
5147 (print-utils.o: ../common/print-utils.c): Remove.
5148 (rsp-low.o: ../common/rsp-low.c): Remove.
5149 (common-utils.o: ../common/common-utils.c): Remove.
5150 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5151 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5152 (vec.o: ../common/vec.c): Remove.
5153 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5154 (xml-utils.o: ../common/xml-utils.c): Remove.
5155 (ptid.o: ../common/ptid.c): Remove.
5156 (buffer.o: ../common/buffer.c): Remove.
5157 (format.o: ../common/format.c): Remove.
5158 (filestuff.o: ../common/filestuff.c): Remove.
5159 (agent.o: ../common/agent.c): Remove.
5160 (errors.o: ../common/errors.c): Remove.
5161 (environ.o: ../common/environ.c): Remove.
5162 (common-debug.o: ../common/common-debug.c): Remove.
5163 (cleanups.o: ../common/cleanups.c): Remove.
5164 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5165 (fileio.o: ../common/fileio.c): Remove.
5166 (common-regcache.o: ../common/common-regcache.c): Remove.
5167 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5168 (new-op.o: ../common/new-op.c): Remove.
5169 (btrace-common.o: ../common/btrace-common.c): Remove.
5170
21122961
SM
51712017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5172
5173 * Makefile.in (%.o: ../target/%.c): New rule.
5174 (waitstatus.o: ../target/waitstatus.c): Remove.
5175
c362e621
SM
51762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5177
5178 * Makefile.in
5179 (%.c: ../regformats/%.dat,
5180 (%.c: ../regformats/arm/%.dat,
5181 (%.c: ../regformats/i386/%.dat,
5182 (%.c: ../regformats/rs6000/%.dat): New rules.
5183 (aarch64.c): Remove.
5184 (reg-arm.c): Remove.
5185 (arm-with-iwmmxt.c): Remove.
5186 (arm-with-vfpv2.c): Remove.
5187 (arm-with-vfpv3.c): Remove.
5188 (arm-with-neon.c): Remove.
5189 (reg-bfin.c): Remove.
5190 (reg-cris.c): Remove.
5191 (reg-crisv32.c): Remove.
5192 (i386.c): Remove.
5193 (i386-linux.c): Remove.
5194 (i386-avx.c): Remove.
5195 (i386-avx-linux.c): Remove.
5196 (i386-avx-avx512.c): Remove.
5197 (i386-avx-avx512-linux.c): Remove.
5198 (i386-mpx.c): Remove.
5199 (i386-mpx-linux.c): Remove.
5200 (i386-avx-mpx-avx512-pku.c): Remove.
5201 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5202 (i386-avx-mpx.c): Remove.
5203 (i386-avx-mpx-linux.c): Remove.
5204 (i386-mmx.c): Remove.
5205 (i386-mmx-linux.c): Remove.
5206 (reg-ia64.c): Remove.
5207 (reg-m32r.c): Remove.
5208 (reg-m68k.c): Remove.
5209 (reg-cf.c): Remove.
5210 (mips-linux.c): Remove.
5211 (mips-dsp-linux.c): Remove.
5212 (mips64-linux.c): Remove.
5213 (mips64-dsp-linux.c): Remove.
5214 (nios2-linux.c): Remove.
5215 (powerpc-32.c): Remove.
5216 (powerpc-32l.c): Remove.
5217 (powerpc-altivec32l.c): Remove.
5218 (powerpc-cell32l.c): Remove.
5219 (powerpc-vsx32l.c): Remove.
5220 (powerpc-isa205-32l.c): Remove.
5221 (powerpc-isa205-altivec32l.c): Remove.
5222 (powerpc-isa205-vsx32l.c): Remove.
5223 (powerpc-e500l.c): Remove.
5224 (powerpc-64l.c): Remove.
5225 (powerpc-altivec64l.c): Remove.
5226 (powerpc-cell64l.c): Remove.
5227 (powerpc-vsx64l.c): Remove.
5228 (powerpc-isa205-64l.c): Remove.
5229 (powerpc-isa205-altivec64l.c): Remove.
5230 (powerpc-isa205-vsx64l.c): Remove.
5231 (s390-linux32.c): Remove.
5232 (s390-linux32v1.c): Remove.
5233 (s390-linux32v2.c): Remove.
5234 (s390-linux64.c): Remove.
5235 (s390-linux64v1.c): Remove.
5236 (s390-linux64v2.c): Remove.
5237 (s390-te-linux64.c): Remove.
5238 (s390-vx-linux64.c): Remove.
5239 (s390-tevx-linux64.c): Remove.
5240 (s390x-linux64.c): Remove.
5241 (s390x-linux64v1.c): Remove.
5242 (s390x-linux64v2.c): Remove.
5243 (s390x-te-linux64.c): Remove.
5244 (s390x-vx-linux64.c): Remove.
5245 (s390x-tevx-linux64.c): Remove.
5246 (tic6x-c64xp-linux.c): Remove.
5247 (tic6x-c64x-linux.c): Remove.
5248 (tic6x-c62x-linux.c): Remove.
5249 (reg-sh.c): Remove.
5250 (reg-sparc64.c): Remove.
5251 (reg-spu.c): Remove.
5252 (amd64.c): Remove.
5253 (amd64-linux.c): Remove.
5254 (amd64-avx.c): Remove.
5255 (amd64-avx-linux.c): Remove.
5256 (amd64-avx-avx512.c): Remove.
5257 (amd64-avx-avx512-linux.c): Remove.
5258 (amd64-mpx.c): Remove.
5259 (amd64-mpx-linux.c): Remove.
5260 (amd64-avx-mpx-avx512-pku.c): Remove.
5261 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5262 (amd64-avx-mpx.c): Remove.
5263 (amd64-avx-mpx-linux.c): Remove.
5264 (x32.c): Remove.
5265 (x32-linux.c): Remove.
5266 (x32-avx.c): Remove.
5267 (x32-avx-linux.c): Remove.
5268 (x32-avx-avx512.c): Remove.
5269 (x32-avx-avx512-linux.c): Remove.
5270 (reg-xtensa.c): Remove.
5271 (reg-tilegx.c): Remove.
5272 (reg-tilegx32.c): Remove.
5273
1672e0d9
SDJ
52742017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5275
5276 * Makefile.in (SFILES): Add "common/environ.c".
5277 (OBJS): Add "common/environ.h".
5278
239b6d10
WT
52792017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5280
5281 * configure.ac: Check if the fs_base and gs_base members of
5282 `struct user_regs_struct' exist.
5283 * config.in: Regenerated.
5284 * configure: Likewise.
5285
694b382c
AT
52862017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5287
5288 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5289 target_read_memory.
5290 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5291 (get_next_pcs_syscall_next_pc): Likewise.
5292
7dc53023
LM
52932016-12-23 Luis Machado <lgustavo@codesourcery.com>
5294
5295 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5296 * nto-x86-low.c: Likewise.
5297
ad02e4fe
SM
52982016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5299
5300 * Makefile.in: Include disable-implicit-rules.mk.
5301
dcb07cfa
PA
53022016-11-23 Pedro Alves <palves@redhat.com>
5303
5304 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5305 (debug_vprintf): Use std::chrono::steady_clock instead of
5306 gettimeofday. Use '.' instead of ':'.
5307 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5308 (get_timestamp): Use std::chrono::steady_clock instead of
5309 gettimeofday.
5310
8629c02c
SM
53112016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 * Makefile.in: Fix whitespace formatting.
5314
b593ecca
SM
53152016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5316
5317 * Makefile.in (SFILES, OBS): Flatten list and order
5318 alphabetically.
5319
9986ba08
PA
53202016-11-23 Pedro Alves <palves@redhat.com>
5321
5322 * event-loop.c (handle_file_event): Use warning.
5323 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5324 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5325 Use warning.
5326
4eefa7bc
PA
53272016-11-23 Pedro Alves <palves@redhat.com>
5328
5329 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5330 output.
5331 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5332 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5333 debug_printf and debug_flush for debug output.
5334 * server.c (handle_general_set): Likewise.
5335 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5336 output.
5337
5443506e
SM
53382016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5339
5340 * Makefile.in (.c.o): Replace rule with ...
5341 (%.o: %.c): ... this one.
5342
3b165252
SM
53432016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5344
5345 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5346 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5347 make.
5348 * configure.ac: Remove checks for the make program.
5349 * configure: Re-generate.
5350
0bcda685
PA
53512016-10-28 Pedro Alves <palves@redhat.com>
5352
5353 * Makefile.in (CXX_DIALECT): Get from configure.
5354 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5355 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5356 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5357 * config.in: Regenerate.
5358 * configure: Regenerate.
5359
c3805894
YQ
53602016-10-27 Yao Qi <yao.qi@linaro.org>
5361
5362 * linux-low.c (linux_supports_range_stepping): Return true if
5363 can_software_single_step return true.
5364
89342618
YQ
53652016-10-27 Yao Qi <yao.qi@linaro.org>
5366
5367 * inferiors.c (find_inferior_in_random): New function.
5368 * inferiors.h (find_inferior_in_random): Declare.
5369 * linux-low.c (linux_wait_for_event_filtered): Call
5370 find_inferior_in_random instead of find_inferior.
5371
e3652c84
YQ
53722016-10-27 Yao Qi <yao.qi@linaro.org>
5373
5374 * linux-low.c (linux_wait_1): If single-step breakpoints are
5375 inserted, remove them.
5376
5a04c4cf
PA
53772016-10-26 Pedro Alves <palves@redhat.com>
5378
5379 * linux-low.c (handle_extended_wait): Link parent/child fork
5380 threads.
5381 (linux_wait_1): Unlink them.
5382 (linux_set_resume_request): Ignore resume requests for
5383 already-resumed and unhandled fork child threads.
5384 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5385 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5386 New functions.
5387 (handle_v_requests) <vCont>: Don't call require_running.
5388 * server.h (in_queued_stop_replies): New declaration.
5389
cb93dc7f
YQ
53902016-10-24 Yao Qi <yao.qi@linaro.org>
5391
5392 PR server/20733
5393 * linux-aarch64-low.c (append_insns): Cast the return value to
5394 'uint32_t *'.
5395
a1078bea
YQ
53962016-10-10 Yao Qi <yao.qi@linaro.org>
5397
5398 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5399
1fb77080
SDJ
54002016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5401
5402 * target.c (target_supports_multi_process): New function, moved
5403 from...
5404 * target.h (target_supports_multi_process): ... here. Remove
5405 macro.
5406
39b5a3b9
TT
54072016-10-05 Tom Tromey <tom@tromey.com>
5408
5409 PR remote/20655:
5410 * tracepoint.c (handle_tracepoint_bkpts): Check
5411 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5412
c1d0b70a
YQ
54132016-10-05 Yao Qi <yao.qi@linaro.org>
5414
5415 * configure.srv: Update the path of arm-*.xml files.
5416
0a69eedb
YQ
54172016-10-05 Terry Guo <terry.guo@arm.com>
5418 Yao Qi <yao.qi@linaro.org>
5419
5420 * Makefile.in: Adjust the path of rules.
5421 * configure.srv: Update the path of xml files.
5422 * regformats/arm-with-iwmmxt.dat: Regenerated.
5423 * regformats/arm-with-neon.dat: Likewise.
5424 * regformats/arm-with-vfpv2.dat: Likewise.
5425 * regformats/arm-with-vfpv3.dat Likewise.
5426
17e16485
YQ
54272016-09-30 Yao Qi <yao.qi@linaro.org>
5428
5429 PR gdbserver/20627
5430 * target.c (target_stop_and_wait): Don't call
5431 target_continue_no_signal, use resume_stop instead.
5432
edeeb602
YQ
54332016-09-26 Yao Qi <yao.qi@linaro.org>
5434
5435 * linux-low.c (linux_wait_1): Call debug_exit.
5436
503b1c39
PA
54372016-09-23 Pedro Alves <palves@redhat.com>
5438
5439 * Makefile.in (SFILES): Add common/new-op.c.
5440 (OBS): Add common/new-op.o.
5441 (new-op.o): New rule.
5442
74172ecf
SM
54432016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5444
5445 * .gitinore: Ignore more files.
5446
fc6cda2e
YQ
54472016-09-21 Yao Qi <yao.qi@linaro.org>
5448
5449 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5450 23.
5451
bc1e6c81
SDJ
54522016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5453
5454 * server.c (start_inferior): Call target_mourn_inferior instead of
5455 mourn_inferior; pass ptid_t argument to it.
5456 (resume): Likewise.
5457 (handle_target_event): Likewise.
5458 * target.c (target_mourn_inferior): New function.
5459 * target.h (mourn_inferior): Delete macro.
5460
0e00e962
AA
54612016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5462
5463 * linux-low.c (lwp_is_stepping): New function.
5464
1d8cb77d
CL
54652016-09-06 Carl Love <cel@us.ibm.com>
5466
5467 * server.c (start_inferior): Fixed comment, requested comment change
5468 didn't get updated correctly. Removed reference to ptrace () call as
5469 it is only true on Linux systems.
5470
7313bced
CL
54712016-09-06 Carl Love <cel@us.ibm.com>
5472
5473 * server.c (start_inferior): Do not call
5474 function target_post_create_inferior () if the
5475 inferior process has already exited.
5476
cf6de44d
PA
54772016-09-05 Pedro Alves <palves@redhat.com>
5478
5479 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5480 (COMPILE.pre, CC_LD): Use CXX directly.
5481 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5482 * acinclude.m4: Don't include build-with-cxx.m4.
5483 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5484 * configure: Regenerate.
5485
c1da6748
AT
54862016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5487
5488 PR gdb/19495
5489 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5490 call writing data to own_buf.
5491
f2b9e3df
SDJ
54922016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5493
5494 * target.c (mywait): Call target_wait instead of
5495 the_target->wait.
5496 (target_wait): New function.
5497
049a8570
SDJ
54982016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5499
5500 * server.c (start_inferior): New variable 'ptid'. Replace calls
5501 to the_target->resume by target_continue{,_no_signal}, depending
5502 on the case.
5503 * target.c (target_stop_and_wait): Call target_continue_no_signal
5504 instead of the_target->resume.
5505 (target_continue): New function.
5506
3aa5cfa0
AT
55072016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5508
5509 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5510
754653a7
AZ
55112016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5512
5513 PR server/20491
5514 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5515 ps_prochandle.
5516 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5517 * linux-arm-low.c (ps_get_thread_area): Likewise.
5518 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5519 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5520 * linux-mips-low.c (ps_get_thread_area): Likewise.
5521 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5522 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5523 * linux-x86-low.c (ps_get_thread_area): Likewise.
5524 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5525
ed036b40
PA
55262016-08-19 Pedro Alves <palves@redhat.com>
5527
5528 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5529
c8ef42ee
PA
55302016-08-19 Pedro Alves <palves@redhat.com>
5531
5532 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5533 comment. Use memcpy instead of casting through unsigned long.
5534
9c235a72
PA
55352016-08-19 Pedro Alves <palves@redhat.com>
5536
5537 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5538 allocating around 0x80000000.
5539
201506da
PA
55402016-08-19 Pedro Alves <palves@redhat.com>
5541
5542 PR gdb/20415
5543 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5544 (x32-avx512-linux-ipa.o): New rules.
5545 * configure.ac (x86_64-*-linux*): New x32 check.
5546 * configure.srv (ipa_x32_linux_regobj): New.
5547 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5548 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5549 descriptions.
5550 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5551 descriptions.
5552 * configure: Regenerate.
5553
f348d89a
PA
55542016-08-09 Pedro Alves <palves@redhat.com>
5555
5556 PR gdb/18653
5557 * Makefile.in (OBS): Add signals-state-save-restore.o.
5558 (signals-state-save-restore.o): New rule.
5559 * config.in: Regenerate.
5560 * configure: Regenerate.
5561 * linux-low.c: Include "signals-state-save-restore.h".
5562 (linux_create_inferior): Call
5563 restore_original_signals_state.
5564 * server.c: Include "dispositions-save-restore.h".
5565 (captured_main): Call save_original_signals_state.
5566
1baf5149
PA
55672016-08-05 Pedro Alves <palves@redhat.com>
5568
5569 * configure: Regenerate.
5570
fcd4a73d
YQ
55712016-08-04 Yao Qi <yao.qi@linaro.org>
5572
5573 * linux-low.c (regsets_fetch_inferior_registers): Check
5574 errno is ESRCH or not.
5575
979659d0
YQ
55762016-08-02 Yao Qi <yao.qi@linaro.org>
5577
5578 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5579 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5580 (thread_db_load_search): Update.
5581 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5582 td_ta_set_event and td_ta_event_getmsg.
5583
6598661d
PA
55842016-07-26 Pedro Alves <palves@redhat.com>
5585
5586 PR server/20414
5587 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5588 of unsigned long for 64-bit registers and use uint32_t instead of
5589 unsigned int for 32-bit registers.
5590
9cf12d57
PA
55912016-07-26 Pedro Alves <palves@redhat.com>
5592
5593 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5594 to 'ptrace'.
5595
305450ed
TT
55962016-07-21 Tom Tromey <tom@tromey.com>
5597
5598 * configure: Rebuild.
5599
2583da7c
YQ
56002016-07-21 Yao Qi <yao.qi@linaro.org>
5601
5602 * mem-break.c (find_gdb_breakpoint): Cast bp to
5603 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5604
21536b36
YQ
56052016-07-21 Yao Qi <yao.qi@linaro.org>
5606
5607 * server.c (handle_v_requests): Support s and S actions
5608 if target_supports_software_single_step return true.
5609
8901d193
YQ
56102016-07-21 Yao Qi <yao.qi@linaro.org>
5611
5612 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5613 is resume_step, call maybe_hw_step.
5614 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5615 and unstop them.
5616 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5617 breakpoints or not.
5618 (proceed_one_lwp): If resume request is resume_step, install
5619 reinsert breakpoints and call maybe_hw_step.
5620
0e9a339e
YQ
56212016-07-21 Yao Qi <yao.qi@linaro.org>
5622
5623 * linux-low.c (proceed_one_lwp): Declare.
5624 (linux_resume_one_thread): Remove local variable 'step'.
5625 Lift code enqueue signal. Call proceed_one_lwp instead of
5626 linux_resume_one_lwp.
5627
4281b351
YQ
56282016-07-21 Yao Qi <yao.qi@linaro.org>
5629
5630 * linux-low.c (linux_resume_one_thread): Call
5631 enqueue_pending_signal.
5632
984a2c04
YQ
56332016-07-21 Yao Qi <yao.qi@linaro.org>
5634
5635 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5636 * inferiors.c (do_restore_current_thread_cleanup): New function.
5637 (make_cleanup_restore_current_thread): Likewise.
5638 * linux-low.c (install_software_single_step_breakpoints): Call
5639 make_cleanup_restore_current_thread. Switch current_thread to
5640 thread.
5641
bec903c9
YQ
56422016-07-21 Yao Qi <yao.qi@linaro.org>
5643
5644 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5645 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5646 (clone_one_breakpoint): Likewise.
5647 (delete_reinsert_breakpoints): Change parameter to thread.
5648 Callers updated.
5649 (has_reinsert_breakpoints): Likewise.
5650 (uninsert_reinsert_breakpoints): Likewise.
5651 (reinsert_reinsert_breakpoints): Likewise.
5652 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5653 (delete_reinsert_breakpoints): Likewise.
5654 (reinsert_reinsert_breakpoints): Likewise.
5655 (uninsert_reinsert_breakpoints): Likewise.
5656 (has_reinsert_breakpoints): Likewise.
5657
63c40ec7
YQ
56582016-07-21 Yao Qi <yao.qi@linaro.org>
5659
5660 * inferiors.c (get_thread_process): Make parameter const.
5661 * inferiors.h (get_thread_process): Update declaration.
5662 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5663 Add new parameters child_thread and parent_thread. Callers
5664 updated.
5665 * mem-break.h (clone_all_breakpoints): Update declaration.
5666
9aa76cd0
YQ
56672016-07-21 Yao Qi <yao.qi@linaro.org>
5668
5669 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5670 <command_list, handler>: Remove.
5671 (struct gdb_breakpoint): New.
5672 (struct other_breakpoint): New.
5673 (struct reinsert_breakpoint): New.
5674 (is_gdb_breakpoint): New function.
5675 (any_persistent_commands): Update command_list if
5676 is_gdb_breakpoint returns true.
5677 (set_breakpoint): Create breakpoints according to their types.
5678 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5679 (set_gdb_breakpoint_1): Likewise.
5680 (set_gdb_breakpoint): Likewise.
5681 (clear_breakpoint_conditions): Change parameter type to
5682 'struct gdb_breakpoint *'.
5683 (clear_breakpoint_commands): Likewise.
5684 (clear_breakpoint_conditions_and_commands): Likewise.
5685 (add_condition_to_breakpoint): Likewise.
5686 (add_breakpoint_condition): Likewise.
5687 (add_commands_to_breakpoint): Likewise.
5688 (check_breakpoints): Check other_breakpoint.
5689 (clone_one_breakpoint): Clone breakpopint according to its type.
5690 * mem-break.h (struct gdb_breakpoint): Declare.
5691 (set_gdb_breakpoint): Update declaration.
5692 (clear_breakpoint_conditions_and_commands): Likewise.
5693 (add_breakpoint_condition): Likewise.
5694 (add_breakpoint_commands): Likewise.
5695 * server.c (process_point_options): Change parameter type to
5696 'struct gdb_breakpoint *'.
5697
811f8301
YQ
56982016-07-21 Yao Qi <yao.qi@linaro.org>
5699
5700 * mem-break.c (set_breakpoint_at): Rename it to ...
5701 (set_breakpoint_type_at): ... it.
5702 (set_breakpoint_at): Call set_breakpoint_type_at.
5703 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5704 * mem-break.h (set_breakpoint_at): Update comments.
5705
b1c51e36
CLT
57062016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5707
5708 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5709 to buf parameter.
5710 (nios2_store_gregset): Likewise.
5711
ced2dffb
PA
57122016-07-01 Pedro Alves <palves@redhat.com>
5713 Antoine Tremblay <antoine.tremblay@ericsson.com>
5714
5715 * linux-low.c: Change interface to take the target lwp_info
5716 pointer directly and return void. Handle detaching from a zombie
5717 thread.
5718 (linux_detach_lwp_callback): New function.
5719 (linux_detach): Detach from the leader thread after detaching from
5720 the clone threads.
5721
2ac09a5b
YQ
57222016-06-28 Yao Qi <yao.qi@linaro.org>
5723
5724 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5725 for variable new_offset.
5726 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5727 (aarch64_ftrace_insn_reloc_cb): Likewise.
5728 (aarch64_ftrace_insn_reloc_tb): Likewise.
5729 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5730 PRIx64 instead of PRIx32.
5731
79e7fd4f
YQ
57322016-06-28 Yao Qi <yao.qi@linaro.org>
5733
5734 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5735 (the_low_target): Install arm_get_syscall_trapinfo.
5736
061fc021
YQ
57372016-06-28 Yao Qi <yao.qi@linaro.org>
5738
5739 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5740 function.
5741 (the_low_target): Install aarch64_get_syscall_trapinfo.
5742
4cc32bec
YQ
57432016-06-28 Yao Qi <yao.qi@linaro.org>
5744
5745 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5746 Callers updated.
5747 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5748 Remove parameter sysno.
5749 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5750 sysret.
5751
782c1122
AA
57522016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5753
5754 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5755 (s390_emit_ne_goto): Likewise.
5756 (s390_emit_lt_goto): Likewise.
5757 (s390_emit_le_goto): Likewise.
5758 (s390_emit_gt_goto): Likewise.
5759 (s390_emit_ge_goto): Likewise.
5760 (s390x_emit_eq_goto): Likewise.
5761 (s390x_emit_ne_goto): Likewise.
5762 (s390x_emit_lt_goto): Likewise.
5763 (s390x_emit_le_goto): Likewise.
5764 (s390x_emit_gt_goto): Likewise.
5765 (s390x_emit_ge_goto): Likewise.
5766 (s390_emit_ops_impl): Mark variable static.
5767 (s390x_emit_ops): Likewise.
5768
2e7b624b
YQ
57692016-06-17 Yao Qi <yao.qi@linaro.org>
5770
5771 * linux-low.c (handle_extended_wait): Call
5772 uninsert_reinsert_breakpoints for the parent process. Remove
5773 reinsert breakpoints from the child process. Reinsert them to
5774 the parent process when vfork is done.
5775 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5776 (reinsert_reinsert_breakpoints): New function.
5777 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5778 (reinsert_reinsert_breakpoints): Declare.
5779
8a81c5d7
YQ
57802016-06-17 Yao Qi <yao.qi@linaro.org>
5781
5782 * linux-low.c (handle_extended_wait): If the parent is doing
5783 step-over, remove the reinsert breakpoints from the forked child.
5784
f50bf8e5
YQ
57852016-06-17 Yao Qi <yao.qi@linaro.org>
5786
5787 * linux-low.c (unsuspend_all_lwps): Declare.
5788 (linux_low_filter_event): If thread exited, call finish_step_over.
5789 If step-over is finished, unsuspend other threads.
5790
8376a3cb
YQ
57912016-06-17 Yao Qi <yao.qi@linaro.org>
5792
5793 * linux-low.c (linux_resume_one_lwp_throw): Assert
5794 has_reinsert_breakpoints returns false.
5795 * mem-break.c (delete_disabled_breakpoints): Assert
5796 bp type isn't reinsert_breakpoint.
5797
f79b145d
YQ
57982016-06-17 Yao Qi <yao.qi@linaro.org>
5799
5800 * linux-low.c (maybe_hw_step): New function.
5801 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5802 (finish_step_over): Switch current_thread to lwp temporarily,
5803 and assert has_reinsert_breakpoints returns true.
5804 (proceed_one_lwp): Call maybe_hw_step.
5805 * mem-break.c (has_reinsert_breakpoints): New function.
5806 * mem-break.h (has_reinsert_breakpoints): Declare.
5807
0ae534d2
JT
58082016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5809
5810 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5811
fcdad592
YQ
58122016-05-17 Yao Qi <yao.qi@linaro.org>
5813
5814 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5815 instead of find_inferior.
5816
9e784964
YQ
58172016-05-05 Yao Qi <yao.qi@linaro.org>
5818
5819 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5820 Initialize res to zero.
5821
cf2ebb6e
YQ
58222016-05-05 Yao Qi <yao.qi@linaro.org>
5823
5824 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5825 to uint32_t.
5826
c1aebf87
UW
58272016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5828
5829 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5830 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5831 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5832
35fd2deb 58332016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 5834 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
5835
5836 * tracepoint.c (write_inferior_int8): New function.
5837 (cmd_qtenable_disable): Write enable flag using
5838 write_inferior_int8.
5839
484b3c32
YQ
58402016-04-25 Yao Qi <yao.qi@linaro.org>
5841
5842 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5843 (need_step_over_p): Return zero if the LWP has pending signals
5844 can be delivered on software single step target.
5845
85ba7d86
YQ
58462016-04-25 Yao Qi <yao.qi@linaro.org>
5847
5848 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5849 return instead of error.
5850
3539aa13
YQ
58512016-04-22 Yao Qi <yao.qi@linaro.org>
5852
5853 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5854 to 23.
5855
5b061e98
YQ
58562016-04-22 Yao Qi <yao.qi@linaro.org>
5857
5858 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5859 signal when stepping over breakpoint with software single
5860 step.
5861
3451269c
PA
58622016-04-21 Pedro Alves <palves@redhat.com>
5863
5864 * linux-s390-low.c (s390_collect_ptrace_register)
5865 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5866 add casts.
5867 (s390_check_regset): Use void * instead of gdb_byte *.
5868
a2358508
PA
58692016-04-20 Pedro Alves <palves@redhat.com>
5870
5871 * configure: Renegerate.
5872
6885166d
YQ
58732016-04-20 Yao Qi <yao.qi@linaro.org>
5874
5875 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5876 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5877 number 16.
5878 (arm_store_gregset): Likewise.
5879
2b863f51
WT
58802016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5881
5882 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5883 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5884 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5885 (amd64-avx-mpx-linux.c): New rules.
5886 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5887 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5888 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5889 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5890 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5891 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5892 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5893 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5894 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5895 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5896 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5897 * linux-x86-low.c (x86_linux_read_description): Add case for
5898 X86_XSTATE_AVX_MPX_MASK.
5899 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5900 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5901 init_registers_i386_avx_mpx_linux.
5902 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5903 (initialize_low_tracepoint): Call
5904 init_registers_i386_avx_mpx_linux.
5905 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5906 (initialize_low_tracepoint): Call
5907 init_registers_amd64_avx_mpx_linux.
5908 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5909 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5910 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5911 declarations.
5912
9b30624b
PA
59132016-04-18 Pedro Alves <palves@redhat.com>
5914
5915 * configure: Regenerate.
5916
45e3745e
AT
59172016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5918
5919 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5920 (aarch64_emit_sub): Likewise.
5921
2afc13ff
PA
59222016-04-12 Pedro Alves <palves@redhat.com>
5923
5924 * utils.c (prepare_to_throw_exception): Delete.
5925
6e774b13
SM
59262016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5927
5928 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5929
4dca19f8
MK
59302016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5931
5932 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5933
d0a9981f
MK
59342016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5935
5936 * linux-aarch64-ipa.c: Add <elf.h> include.
5937 * linux-ppc-ipa.c: Add <elf.h> include.
5938 * linux-s390-ipa.c: Add <elf.h> include.
5939
252db07e
MK
59402016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5941
5942 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5943 (get_raw_reg_ptr): Likewise.
5944 (get_trace_state_variable_value_ptr): Likewise.
5945 (set_trace_state_variable_value_ptr): Likewise.
5946 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5947 char *.
5948
14e2b6d9
MK
59492016-03-31 Wei-cheng Wang <cole945@gmail.com>
5950 Marcin Kościelnicki <koriakin@0x04.net>
5951
5952 PR/17221
5953 * linux-ppc-low.c (emit_insns): New function.
5954 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5955 (ppc_emit_prologue): New function.
5956 (ppc_emit_epilogue): New function.
5957 (ppc_emit_add): New function.
5958 (ppc_emit_sub): New function.
5959 (ppc_emit_mul): New function.
5960 (ppc_emit_lsh): New function.
5961 (ppc_emit_rsh_signed): New function.
5962 (ppc_emit_rsh_unsigned): New function.
5963 (ppc_emit_ext): New function.
5964 (ppc_emit_zero_ext): New function.
5965 (ppc_emit_log_not): New function.
5966 (ppc_emit_bit_and): New function.
5967 (ppc_emit_bit_or): New function.
5968 (ppc_emit_bit_xor): New function.
5969 (ppc_emit_bit_not): New function.
5970 (ppc_emit_equal): New function.
5971 (ppc_emit_less_signed): New function.
5972 (ppc_emit_less_unsigned): New function.
5973 (ppc_emit_ref): New function.
5974 (ppc_emit_const): New function.
5975 (ppc_emit_reg): New function.
5976 (ppc_emit_pop): New function.
5977 (ppc_emit_stack_flush): New function.
5978 (ppc_emit_swap): New function.
5979 (ppc_emit_stack_adjust): New function.
5980 (ppc_emit_call): New function.
5981 (ppc_emit_int_call_1): New function.
5982 (ppc_emit_void_call_2): New function.
5983 (ppc_emit_if_goto): New function.
5984 (ppc_emit_goto): New function.
5985 (ppc_emit_eq_goto): New function.
5986 (ppc_emit_ne_goto): New function.
5987 (ppc_emit_lt_goto): New function.
5988 (ppc_emit_le_goto): New function.
5989 (ppc_emit_gt_goto): New function.
5990 (ppc_emit_ge_goto): New function.
5991 (ppc_write_goto_address): New function.
5992 (ppc_emit_ops_impl): New static variable.
5993 (ppc64v1_emit_prologue): New function.
5994 (ppc64v2_emit_prologue): New function.
5995 (ppc64_emit_epilogue): New function.
5996 (ppc64_emit_add): New function.
5997 (ppc64_emit_sub): New function.
5998 (ppc64_emit_mul): New function.
5999 (ppc64_emit_lsh): New function.
6000 (ppc64_emit_rsh_signed): New function.
6001 (ppc64_emit_rsh_unsigned): New function.
6002 (ppc64_emit_ext): New function.
6003 (ppc64_emit_zero_ext): New function.
6004 (ppc64_emit_log_not): New function.
6005 (ppc64_emit_bit_and): New function.
6006 (ppc64_emit_bit_or): New function.
6007 (ppc64_emit_bit_xor): New function.
6008 (ppc64_emit_bit_not): New function.
6009 (ppc64_emit_equal): New function.
6010 (ppc64_emit_less_signed): New function.
6011 (ppc64_emit_less_unsigned): New function.
6012 (ppc64_emit_ref): New function.
6013 (ppc64_emit_const): New function.
6014 (ppc64v1_emit_reg): New function.
6015 (ppc64v2_emit_reg): New function.
6016 (ppc64_emit_pop): New function.
6017 (ppc64_emit_stack_flush): New function.
6018 (ppc64_emit_swap): New function.
6019 (ppc64v1_emit_call): New function.
6020 (ppc64v2_emit_call): New function.
6021 (ppc64v1_emit_int_call_1): New function.
6022 (ppc64v2_emit_int_call_1): New function.
6023 (ppc64v1_emit_void_call_2): New function.
6024 (ppc64v2_emit_void_call_2): New function.
6025 (ppc64_emit_if_goto): New function.
6026 (ppc64_emit_eq_goto): New function.
6027 (ppc64_emit_ne_goto): New function.
6028 (ppc64_emit_lt_goto): New function.
6029 (ppc64_emit_le_goto): New function.
6030 (ppc64_emit_gt_goto): New function.
6031 (ppc64_emit_ge_goto): New function.
6032 (ppc64v1_emit_ops_impl): New static variable.
6033 (ppc64v2_emit_ops_impl): New static variable.
6034 (ppc_emit_ops): New function.
6035 (linux_low_target): Wire in ppc_emit_ops.
6036
a2174ba4
MK
60372016-03-31 Wei-cheng Wang <cole945@gmail.com>
6038 Marcin Kościelnicki <koriakin@0x04.net>
6039
6040 PR/17221
6041 * Makefile.in: Add powerpc-*-ipa.o
6042 * configure.srv: Add ipa_obj for powerpc*-linux.
6043 * linux-ppc-ipa.c: New file.
6044 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6045 includes.
6046 (PPC_FIELD): New macro.
6047 (PPC_SEXT): New macro.
6048 (PPC_OP6): New macro.
6049 (PPC_BO): New macro.
6050 (PPC_LI): New macro.
6051 (PPC_BD): New macro.
6052 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6053 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6054 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6055 (ppc_get_thread_area): New function.
6056 (is_elfv2_inferior): New function.
6057 (gen_ds_form): New function.
6058 (GEN_STD): New macro.
6059 (GEN_STDU): New macro.
6060 (GEN_LD): New macro.
6061 (GEN_LDU): New macro.
6062 (gen_d_form): New function.
6063 (GEN_ADDI): New macro.
6064 (GEN_ADDIS): New macro.
6065 (GEN_LI): New macro.
6066 (GEN_LIS): New macro.
6067 (GEN_ORI): New macro.
6068 (GEN_ORIS): New macro.
6069 (GEN_LWZ): New macro.
6070 (GEN_STW): New macro.
6071 (GEN_STWU): New macro.
6072 (gen_xfx_form): New function.
6073 (GEN_MFSPR): New macro.
6074 (GEN_MTSPR): New macro.
6075 (GEN_MFCR): New macro.
6076 (GEN_MTCR): New macro.
6077 (GEN_SYNC): New macro.
6078 (GEN_LWSYNC): New macro.
6079 (gen_x_form): New function.
6080 (GEN_OR): New macro.
6081 (GEN_MR): New macro.
6082 (GEN_LWARX): New macro.
6083 (GEN_STWCX): New macro.
6084 (GEN_CMPW): New macro.
6085 (gen_md_form): New function.
6086 (GEN_RLDICL): New macro.
6087 (GEN_RLDICR): New macro.
6088 (gen_i_form): New function.
6089 (GEN_B): New macro.
6090 (GEN_BL): New macro.
6091 (gen_b_form): New function.
6092 (GEN_BNE): New macro.
6093 (GEN_LOAD): New macro.
6094 (GEN_STORE): New macro.
6095 (gen_limm): New function.
6096 (gen_atomic_xchg): New function.
6097 (gen_call): New function.
6098 (ppc_relocate_instruction): New function.
6099 (ppc_install_fast_tracepoint_jump_pad): New function.
6100 (ppc_get_min_fast_tracepoint_insn_len): New function.
6101 (ppc_get_ipa_tdesc_idx): New function.
6102 (the_low_target): Wire in the new functions.
6103 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6104 tdescs.
6105 * linux-ppc-tdesc.h: New file.
6106
a13c4696
MK
61072016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6108
6109 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6110 (alloc_jump_pad_buffer): New function.
6111 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6112 (alloc_jump_pad_buffer): New function.
6113 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6114 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6115 (alloc_jump_pad_buffer): New function.
6116 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6117 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6118 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6119 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6120
1cda1512
MK
61212016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6122
6123 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6124 * linux-amd64-ipa.c: Likewise.
6125 * linux-i386-ipa.c: Likewise.
6126 * linux-s390-ipa.c: Likewise.
6127 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6128 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6129 set_trace_state_variable_value_ptr.
6130 (struct ipa_sym_addresses): Likewise.
6131 (symbol_list): Likewise.
6132 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6133 accessing gdb_collect directly.
6134 (gdb_collect_ptr_type): New typedef.
6135 (get_raw_reg_ptr_type): New typedef.
6136 (get_trace_state_variable_value_ptr_type): New typedef.
6137 (set_trace_state_variable_value_ptr_type): New typedef.
6138 (gdb_collect_ptr): New global.
6139 (get_raw_reg_ptr): New global.
6140 (get_trace_state_variable_value_ptr): New global.
6141 (set_trace_state_variable_value_ptr): New global.
6142 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6143 accessing get_raw_reg directly.
6144 (get_get_tsv_func_addr): Likewise for
6145 get_trace_state_variable_value_ptr.
6146 (get_set_tsv_func_addr): Likewise for
6147 set_trace_state_variable_value_ptr.
6148 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6149
72fb5488
SM
61502016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6153
28170b88
MK
61542016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6155
6156 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6157 packets.
6158 (relocate_instruction): Remove own_buf.
6159 * server.c (own_buf): Make global.
6160 (handle_v_requests): Make global.
6161 * server.h (own_buf): New declaration.
6162 (handle_v_requests): New prototype.
6163
f39e8743
MK
61642016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6165
6166 PR 18377
6167 * linux-s390-low.c (add_insns): New function.
6168 (s390_emit_prologue): New function.
6169 (s390_emit_epilogue): New function.
6170 (s390_emit_add): New function.
6171 (s390_emit_sub): New function.
6172 (s390_emit_mul): New function.
6173 (s390_emit_lsh): New function.
6174 (s390_emit_rsh_signed): New function.
6175 (s390_emit_rsh_unsigned): New function.
6176 (s390_emit_ext): New function.
6177 (s390_emit_log_not): New function.
6178 (s390_emit_bit_and): New function.
6179 (s390_emit_bit_or): New function.
6180 (s390_emit_bit_xor): New function.
6181 (s390_emit_bit_not): New function.
6182 (s390_emit_equal): New function.
6183 (s390_emit_less_signed): New function.
6184 (s390_emit_less_unsigned): New function.
6185 (s390_emit_ref): New function.
6186 (s390_emit_if_goto): New function.
6187 (s390_emit_goto): New function.
6188 (s390_write_goto_address): New function.
6189 (s390_emit_litpool): New function.
6190 (s390_emit_const): New function.
6191 (s390_emit_call): New function.
6192 (s390_emit_reg): New function.
6193 (s390_emit_pop): New function.
6194 (s390_emit_stack_flush): New function.
6195 (s390_emit_zero_ext): New function.
6196 (s390_emit_swap): New function.
6197 (s390_emit_stack_adjust): New function.
6198 (s390_emit_set_r2): New function.
6199 (s390_emit_int_call_1): New function.
6200 (s390_emit_void_call_2): New function.
6201 (s390_emit_eq_goto): New function.
6202 (s390_emit_ne_goto): New function.
6203 (s390_emit_lt_goto): New function.
6204 (s390_emit_le_goto): New function.
6205 (s390_emit_gt_goto): New function.
6206 (s390_emit_ge_goto): New function.
6207 (s390x_emit_prologue): New function.
6208 (s390x_emit_epilogue): New function.
6209 (s390x_emit_add): New function.
6210 (s390x_emit_sub): New function.
6211 (s390x_emit_mul): New function.
6212 (s390x_emit_lsh): New function.
6213 (s390x_emit_rsh_signed): New function.
6214 (s390x_emit_rsh_unsigned): New function.
6215 (s390x_emit_ext): New function.
6216 (s390x_emit_log_not): New function.
6217 (s390x_emit_bit_and): New function.
6218 (s390x_emit_bit_or): New function.
6219 (s390x_emit_bit_xor): New function.
6220 (s390x_emit_bit_not): New function.
6221 (s390x_emit_equal): New function.
6222 (s390x_emit_less_signed): New function.
6223 (s390x_emit_less_unsigned): New function.
6224 (s390x_emit_ref): New function.
6225 (s390x_emit_if_goto): New function.
6226 (s390x_emit_const): New function.
6227 (s390x_emit_call): New function.
6228 (s390x_emit_reg): New function.
6229 (s390x_emit_pop): New function.
6230 (s390x_emit_stack_flush): New function.
6231 (s390x_emit_zero_ext): New function.
6232 (s390x_emit_swap): New function.
6233 (s390x_emit_stack_adjust): New function.
6234 (s390x_emit_int_call_1): New function.
6235 (s390x_emit_void_call_2): New function.
6236 (s390x_emit_eq_goto): New function.
6237 (s390x_emit_ne_goto): New function.
6238 (s390x_emit_lt_goto): New function.
6239 (s390x_emit_le_goto): New function.
6240 (s390x_emit_gt_goto): New function.
6241 (s390x_emit_ge_goto): New function.
6242 (s390_emit_ops): New function.
6243 (struct linux_target_ops): Fill in emit_ops hook.
6244
abd9baf9
MK
62452016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6246
6247 PR 18377
6248 * Makefile.in: Add s390 IPA files.
6249 * configure.srv: Build IPA for s390.
6250 * linux-s390-ipa.c: New file.
6251 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6252 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6253 (tdesc_s390_linux32): Likewise.
6254 (init_registers_s390_linux32v1): Likewise.
6255 (tdesc_s390_linux32v1): Likewise.
6256 (init_registers_s390_linux32v2): Likewise.
6257 (tdesc_s390_linux32v2): Likewise.
6258 (init_registers_s390_linux64): Likewise.
6259 (tdesc_s390_linux64): Likewise.
6260 (init_registers_s390_linux64v1): Likewise.
6261 (tdesc_s390_linux64v1): Likewise.
6262 (init_registers_s390_linux64v2): Likewise.
6263 (tdesc_s390_linux64v2): Likewise.
6264 (init_registers_s390_te_linux64): Likewise.
6265 (tdesc_s390_te_linux64): Likewise.
6266 (init_registers_s390_vx_linux64): Likewise.
6267 (tdesc_s390_vx_linux64): Likewise.
6268 (init_registers_s390_tevx_linux64): Likewise.
6269 (tdesc_s390_tevx_linux64): Likewise.
6270 (init_registers_s390x_linux64): Likewise.
6271 (tdesc_s390x_linux64): Likewise.
6272 (init_registers_s390x_linux64v1): Likewise.
6273 (tdesc_s390x_linux64v1): Likewise.
6274 (init_registers_s390x_linux64v2): Likewise.
6275 (tdesc_s390x_linux64v2): Likewise.
6276 (init_registers_s390x_te_linux64): Likewise.
6277 (tdesc_s390x_te_linux64): Likewise.
6278 (init_registers_s390x_vx_linux64): Likewise.
6279 (tdesc_s390x_vx_linux64): Likewise.
6280 (init_registers_s390x_tevx_linux64): Likewise.
6281 (tdesc_s390x_tevx_linux64): Likewise.
6282 (have_hwcap_s390_vx): New static variable.
6283 (s390_arch_setup): Fill have_hwcap_s390_vx.
6284 (s390_get_thread_area): New function.
6285 (s390_ft_entry_gpr_esa): New const.
6286 (s390_ft_entry_gpr_zarch): New const.
6287 (s390_ft_entry_misc): New const.
6288 (s390_ft_entry_fr): New const.
6289 (s390_ft_entry_vr): New const.
6290 (s390_ft_main_31): New const.
6291 (s390_ft_main_64): New const.
6292 (s390_ft_exit_fr): New const.
6293 (s390_ft_exit_vr): New const.
6294 (s390_ft_exit_misc): New const.
6295 (s390_ft_exit_gpr_esa): New const.
6296 (s390_ft_exit_gpr_zarch): New const.
6297 (append_insns): New function.
6298 (s390_relocate_instruction): New function.
6299 (s390_install_fast_tracepoint_jump_pad): New function.
6300 (s390_get_min_fast_tracepoint_insn_len): New function.
6301 (s390_get_ipa_tdesc_idx): New function.
6302 (struct linux_target_ops): Wire in the above functions.
6303 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6304 * linux-s390-tdesc.h: New file.
6305
a4105d04
MK
63062016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6307
6308 * linux-s390-low.c (s390_supports_tracepoints): New function.
6309 (struct linux_target_ops): Fill supports_tracepoints hook.
6310
35ac8b3e
YQ
63112016-03-18 Yao Qi <yao.qi@linaro.org>
6312
6313 * linux-low.c (lwp_signal_can_be_delivered): New function.
6314 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6315
94610ec4
YQ
63162016-03-18 Yao Qi <yao.qi@linaro.org>
6317
6318 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6319 0 if signal is enqueued. Remove 'signal' from one debugging
6320 message. Move one debugging message to some lines below.
6321 Remove code setting 'signal' to 0.
6322
80aea927
YQ
63232016-03-18 Yao Qi <yao.qi@linaro.org>
6324
6325 * linux-low.c (linux_low_filter_event): Remove redundant
6326 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6327
b04fd3be
MK
63282016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6329
6330 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6331 (struct linux_target_ops): Wire in the above.
6332
c40c8d4b
YQ
63332016-03-03 Yao Qi <yao.qi@linaro.org>
6334
6335 * linux-low.c: Update comments to start_step_over.
6336
0f8288ae
YQ
63372016-03-03 Yao Qi <yao.qi@linaro.org>
6338
6339 PR server/19736
6340 * linux-low.c (handle_extended_wait): Set child suspended
6341 if event_lwp->bp_reinsert isn't zero.
6342
fdbd04a8
YQ
63432016-03-02 Yao Qi <yao.qi@linaro.org>
6344
6345 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6346 enqueue_pending_signal.
6347
6896a8fa
MK
63482016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6349
6350 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6351 is actually loaded.
6352
ab503087
MK
63532016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6354
6355 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6356 (s390_regmap_3264) [!__s390x__]: New global.
6357 (s390_collect_ptrace_register): Skip map entries containing -1.
6358 (s390_supply_ptrace_register): Ditto.
6359 (s390_fill_gprs_high): New function.
6360 (s390_store_gprs_high): New function.
6361 (s390_regsets): Add NT_S390_HIGH_GPRS.
6362 (s390_get_hwcap): Enable on 31-bit.
6363 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6364 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6365 Detect NT_S390_HIGH_GPRS.
6366 (s390_usrregs_info_3264): Enable on 31-bit.
6367 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6368 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6369
ae91f625
MK
63702016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6371
6372 PR gdb/13808
6373 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6374 * configure.srv: Ditto.
6375 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6376 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6377 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6378 (init_registers_amd64_linux): Remove prototype.
6379 (tdesc_amd64_linux): Remove declaration.
6380 (get_ipa_tdesc): New function.
6381 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6382 initialize remaining tdescs.
6383 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6384 (init_registers_i386_linux): Remove prototype.
6385 (tdesc_i386_linux): Remove declaration.
6386 (get_ipa_tdesc): New function.
6387 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6388 initialize remaining tdescs.
6389 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6390 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6391 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6392 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6393 (x86_get_ipa_tdesc_idx): New function.
6394 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6395 * linux-x86-tdesc.h: New file.
6396 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6397 (target_get_ipa_tdesc_idx): New macro.
6398 * tracepoint.c (ipa_tdesc_idx): New macro.
6399 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6400 (symbol_list): Add ipa_tdesc_idx.
6401 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6402 (ipa_tdesc): Remove.
6403 (ipa_tdesc_idx): New variable.
6404 (get_context_regcache): Use get_ipa_tdesc.
6405 (gdb_collect): Ditto.
6406 (gdb_probe): Ditto.
6407 * tracepoint.h (get_ipa_tdesc): New prototype.
6408 (ipa_tdesc): Remove.
6409
e7ad2f14
PA
64102016-02-24 Pedro Alves <palves@redhat.com>
6411
6412 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6413 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6414 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6415 Factor out common code between the USE_SIGTRAP_SIGINFO and
6416 !USE_SIGTRAP_SIGINFO blocks.
6417 (linux_low_filter_event): Call save_stop_reason instead of
6418 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6419 Update comments.
6420 (linux_wait_1): Update comments.
6421
657f9cde
WW
64222016-02-24 Wei-cheng Wang <cole945@gmail.com>
6423
6424 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6425 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6426 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6427 ppc_insert_point, ppc_remove_point.
6428
b00b61e1
MK
64292016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6430
6431 * linux-s390-low.c (s390_supports_z_point_type): New function.
6432 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6433
553cb527
YQ
64342016-02-16 Yao Qi <yao.qi@linaro.org>
6435
6436 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6437 PC. Get pc from regcache_read_pc.
6438
a5652c21
YQ
64392016-02-12 Yao Qi <yao.qi@linaro.org>
6440
6441 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6442 or linux_get_pc_32bit.
6443 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6444
ed443b61
YQ
64452016-02-12 Yao Qi <yao.qi@linaro.org>
6446
6447 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6448 arm_linux_get_next_pcs_fixup.
6449
020ecd38
MK
64502016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6451
6452 * tracepoint.c (x_tracepoint_action_download): Change
6453 write_inferior_data_ptr to write_inferior_data_pointer.
6454 (cmd_qtstart): Likewise.
6455 (write_inferior_data_ptr): Remove.
6456 (download_agent_expr): Change write_inferior_data_ptr to
6457 write_inferior_data_pointer.
6458 (download_tracepoint_1): Likewise.
6459 (download_tracepoint): Likewise.
6460 (download_trace_state_variables): Likewise.
6461
7cae9051
WW
64622016-02-11 Wei-cheng Wang <cole945@gmail.com>
6463 Marcin Kościelnicki <koriakin@0x04.net>
6464
6465 * tracepoint.c (struct tracepoint_action_ops): Remove.
6466 (struct tracepoint_action): Remove ops.
6467 (m_tracepoint_action_download, r_tracepoint_action_download)
6468 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6469 size and offset accordingly.
6470 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6471 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6472 (tracepoint_action_send, tracepoint_action_download): New functions.
6473 Helpers for trace action handlers.
6474 (add_tracepoint_action): Remove setup actions ops.
6475 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6476
9f6a71b4
YQ
64772016-02-10 Yao Qi <yao.qi@linaro.org>
6478
6479 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6480
1e94266c
SM
64812016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6482
6483 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6484 to AC_OUTPUT.
6485 * configure: Regenerate.
6486
8adce034
SM
64872016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6488
6489 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6490 void * to gdb_byte *.
6491 * linux-low.c (siginfo_fixup): Likewise.
6492 (linux_xfer_siginfo): Likewise.
6493 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6494 Likewise.
6495 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6496
93813b37
WT
64972016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6498
6499 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6500 to srv_tgtobj.
6501 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6502 to srv_tgtobj.
6503 * linux-x86-low.c [__x86_64__]: Include
6504 "nat/amd64-linux-siginfo.h".
6505 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6506 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6507 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6508 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6509 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6510 (cpt_si_fd, si_timerid, si_overrun): Move from
6511 nat/amd64-linux-siginfo.c.
6512 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6513
8424cc97
SM
65142016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6515
6516 * server.c (skip_to_semicolon): Remove.
6517 (process_point_options): Use strchrnul instead of
6518 skip_to_semicolon.
6519
4d18591b
YQ
65202016-01-26 Yao Qi <yao.qi@linaro.org>
6521
6522 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6523 * linux-low.c (install_software_single_step_breakpoints): Don't
6524 call regcache_read_pc.
6525 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6526 argument pc.
6527
d8020970
YQ
65282016-01-26 Yao Qi <yao.qi@linaro.org>
6529
6530 * linux-low.c (install_software_single_step_breakpoints): Call
6531 regcache_read_pc instead of get_pc.
6532
8b207339
YQ
65332016-01-26 Yao Qi <yao.qi@linaro.org>
6534
6535 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6536 (unblock_async_io): Rename to ...
6537 (block_unblock_async_io): ... it. New function.
6538 (enable_async_io): Don't install SIGIO handler. Unblock it
6539 instead.
6540 (disable_async_io): Don't ignore SIGIO. Block it instead.
6541 (initialize_async_io): Install SIGIO handler. Don't call
6542 unblock_async_io.
6543
18879fef
YQ
65442016-01-26 Yao Qi <yao.qi@linaro.org>
6545
6546 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6547 first character is '\003', call *the_target->request_interrupt.
6548
a0f8e08a
YQ
65492016-01-25 Yao Qi <yao.qi@linaro.org>
6550
6551 * remote-utils.c (new_thread_notify): Remove.
6552 (dead_thread_notify): Likewise.
6553 * remote-utils.h (new_thread_notify): Remove declaration.
6554 (dead_thread_notify): Likewise.
6555
cc5fd9ab
MK
65562016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6557
6558 * gdb.trace/pending.exp: Fix expected message on continue.
6559
99e8eb11
MK
65602016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6561
6562 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6563 it works properly on big-endian machines where sizeof (CORE_ADDR)
6564 != sizeof (void *).
6565
a994041d
PA
65662016-01-21 Pedro Alves <palves@redhat.com>
6567
6568 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6569 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6570 * configure: Regenerate.
6571
f7a6a40d
YQ
65722016-01-21 Yao Qi <yao.qi@linaro.org>
6573
6574 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6575 is_thumb and set it according to CPSR saved on the stack.
6576 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6577 arm_sigreturn_next_pc.
6578
6f69e520
YQ
65792016-01-18 Yao Qi <yao.qi@linaro.org>
6580
6581 * linux-low.c (linux_set_pc_64bit): New function.
6582 (linux_get_pc_64bit): New function.
6583 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6584 Declare.
6585 * linux-sparc-low.c (debug_threads): Remove declaration.
6586 (sparc_get_pc): Remove.
6587 (the_low_target): Use linux_get_pc_64bit instead of
6588 sparc_get_pc.
6589 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6590 (the_low_target): Use linux_get_pc_64bit and
6591 linux_set_pc_64bit.
6592
276d4552
YQ
65932016-01-18 Yao Qi <yao.qi@linaro.org>
6594
6595 * linux-arm-low.c (debug_threads): Remove declaration.
6596 (arm_get_pc, arm_set_pc): Remove.
6597 (the_low_target): Use linux_get_pc_32bit and
6598 linux_set_pc_32bit.
6599 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6600 (the_low_target): Use linux_get_pc_32bit and
6601 linux_set_pc_32bit.
6602 * linux-cris-low.c (debug_threads): Remove declaration.
6603 (cris_get_pc, cris_set_pc,): Remove.
6604 (the_low_target): Use linux_get_pc_32bit and
6605 linux_set_pc_32bit.
6606 * linux-crisv32-low.c (debug_threads): Remove declaration.
6607 (cris_get_pc, cris_set_pc): Remove.
6608 (the_low_target): Use linux_get_pc_32bit and
6609 linux_set_pc_32bit.
6610 * linux-low.c: Include inttypes.h.
6611 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6612 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6613 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6614 (the_low_target): Use linux_get_pc_32bit and
6615 linux_set_pc_32bit.
6616 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6617 (the_low_target): Use linux_get_pc_32bit and
6618 linux_set_pc_32bit.
6619 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6620 (the_low_target): Use linux_get_pc_32bit and
6621 linux_set_pc_32bit.
6622 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6623 (the_low_target): Use linux_get_pc_32bit and
6624 linux_set_pc_32bit.
6625 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6626 (the_low_target): Use linux_get_pc_32bit and
6627 linux_set_pc_32bit.
6628
eb0edac8
GB
66292016-01-18 Gary Benson <gbenson@redhat.com>
6630
6631 * configure.ac (AC_FUNC_FORK): New check.
6632 * config.in: Regenerate.
6633 * configure: Likewise.
6634
1b451dda
YQ
66352016-01-14 Yao Qi <yao.qi@linaro.org>
6636
6637 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6638 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6639 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6640 arm_get_next_pcs_ctor.
6641
82075af2
JS
66422016-01-12 Josh Stone <jistone@redhat.com>
6643 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6644
6645 * inferiors.h: Include "gdb_vecs.h".
6646 (struct process_info): Add syscalls_to_catch.
6647 * inferiors.c (remove_process): Free syscalls_to_catch.
6648 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6649 syscall_return stops.
6650 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6651 * server.c (handle_general_set): Handle QCatchSyscalls.
6652 (handle_query): Report support for QCatchSyscalls.
6653 * target.h (struct target_ops): Add supports_catch_syscall.
6654 (target_supports_catch_syscall): New macro.
6655 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6656 (struct lwp_info): Add syscall_state.
6657 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6658 Maintain syscall_state and syscalls_to_catch across exec.
6659 (get_syscall_trapinfo): New function, proxy to the_low_target.
6660 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6661 (linux_low_filter_event): Toggle syscall_state entry/return for
6662 syscall traps, and set it ignored for all others.
6663 (gdb_catching_syscalls_p): New function.
6664 (gdb_catch_this_syscall_p): New function.
6665 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6666 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6667 (linux_supports_catch_syscall): New function.
6668 (linux_target_ops): Install it.
6669 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6670 (the_low_target): Install it.
6671
8f13a3ce
MF
66722016-01-12 Mike Frysinger <vapier@gentoo.org>
6673
6674 * acinclude.m4: Include new ../warning.m4 file.
6675 * configure: Regenerated.
6676 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6677
5b3da067
MF
66782016-01-12 Mike Frysinger <vapier@gentoo.org>
6679
6680 * ax.c (is_goto_target): Mark static.
6681 * linux-low.c (register_addr): Likewise.
6682 (linux_fetch_registers, linux_store_registers): Likewise.
6683 * mem-break.c (any_persistent_commands): Fix old prototype.
6684 (add_commands_to_breakpoint): Mark static.
6685 * regcache.c (find_register_by_name): Delete unused func.
6686 * remote-utils.c (hex_or_minus_one): Mark static.
6687 * server.c (monitor_show_help): Mark static.
6688 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6689 handle_v_requests): Likewise.
6690
bc504a31
PA
66912016-01-12 Pedro Alves <palves@redhat.com>
6692
6693 Remove use of the registered trademark symbol throughout.
6694
5a0dd67a
YQ
66952016-01-08 Yao Qi <yao.qi@linaro.org>
6696
6697 * remote-utils.c (getpkt): If c is '\003', call target hook
6698 request_interrupt.
6699
b2ca446f
YQ
67002016-01-06 Yao Qi <yao.qi@linaro.org>
6701
6702 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6703 linux-aarch32-low.c.
6704 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6705 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6706 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6707 (thumb2_breakpoint): Declare.
6708 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6709 linux-aarch32-low.h.
6710 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6711 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6712 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6713
edd88788
JB
67142016-01-01 Joel Brobecker <brobecker@adacore.com>
6715
6716 * gdbreplay.c (gdbreplay_version): Change copyright year in
6717 version message.
6718 * server.c (gdbserver_version): Likewise.
6719
65da7f14
PP
67202015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6721
6722 * server.c (crc32_table): Delete.
6723 (crc32): Use libiberty's xcrc32 function.
6724
4abd5ed2
JB
67252015-12-22 Joel Brobecker <brobecker@adacore.com>
6726
6727 * lynx-low.c (lynx_delete_thread_callback): New function.
6728 (lynx_mourn): Properly delete our process and all of its
6729 threads. Remove call to clear_inferiors.
6730
0e50fe5c
JB
67312015-12-22 Joel Brobecker <brobecker@adacore.com>
6732
6733 * target.c (thread_search_callback): Add check that
6734 the thread_stopped target callback is not NULL before
6735 calling it.
6736
35adc03f
YQ
67372015-12-21 Yao Qi <yao.qi@linaro.org>
6738
6739 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6740 arm breakpoint.
6741
bd2b2909
AT
67422015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6743
6744 * server.c (handle_query): Call target_supports_software_single_step.
6745
7fe5e27e
AT
67462015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6747
6748 * linux-low.c (single_step): New function.
6749 (linux_resume_one_lwp_throw): Call single_step.
6750 (start_step_over): Likewise.
6751
d9311bfa
AT
67522015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6753
6754 * Makefile.in (SFILES): Append arch/arm-linux.c,
6755 arch/arm-get-next-pcs.c.
6756 (arm-linux.o): New rule.
6757 (arm-get-next-pcs.o): New rule.
6758 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6759 arm-linux.o.
6760 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6761 to linux-aarch32-low.c.
6762 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6763 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6764 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6765 (thumb2_breakpoint_len): Likewise.
6766 (arm_is_thumb_mode): Make non-static.
6767 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6768 from linux-aarch32-low.c.
6769 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6770 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6771 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6772 (thumb2_breakpoint_len): Likewise.
6773 (arm_is_thumb_mode): New declaration.
6774 * linux-arm-low.c: Include arch/arm-linux.h
6775 aarch/arm-get-next-pcs.h, sys/syscall.h.
6776 (get_next_pcs_ops): New struct.
6777 (get_next_pcs_addr_bits_remove): New function.
6778 (get_next_pcs_is_thumb): New function.
6779 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6780 (arm_sigreturn_next_pc): Likewise.
6781 (get_next_pcs_syscall_next_pc): Likewise.
6782 (arm_gdbserver_get_next_pcs): Likewise.
6783 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6784 Initialize.
6785 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6786 * server.h: Include gdb_vecs.h.
6787
68ce2059
AT
67882015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6789
6790 * Makefile.in (SFILES): Append common/common-regcache.c.
6791 (OBS): Append common-regcache.o.
6792 (common-regcache.o): New rule.
6793 * regcache.c (init_register_cache): Initialize cache to
6794 REG_UNAVAILABLE.
6795 (regcache_raw_read_unsigned): New function.
6796 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6797 register_status enum.
6798
fa5308bd
AT
67992015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6800
6801 * linux-aarch64-low.c (the_low_targets): Rename
6802 breakpoint_reinsert_addr to get_next_pcs.
6803 * linux-arm-low.c (the_low_targets): Likewise.
6804 * linux-bfin-low.c (the_low_targets): Likewise.
6805 * linux-cris-low.c (the_low_targets): Likewise.
6806 * linux-crisv32-low.c (the_low_targets): Likewise.
6807 * linux-low.c (can_software_single_step): Likewise.
6808 (install_software_single_step_breakpoints): New function.
6809 (start_step_over): Use install_software_single_step_breakpoints.
6810 * linux-low.h: New CORE_ADDR vector.
6811 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6812 get_next_pcs.
6813 * linux-mips-low.c (the_low_targets): Likewise.
6814 * linux-nios2-low.c (the_low_targets): Likewise.
6815 * linux-sparc-low.c (the_low_targets): Likewise.
6816
4a6ed09b
PA
68172015-12-17 Pedro Alves <palves@redhat.com>
6818
6819 * linux-low.c (linux_kill_one_lwp): Remove references to
6820 LinuxThreads.
6821 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6822 to 'kill'.
6823 (linux_init_signals): Delete.
6824 (initialize_low): Adjust.
6825 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6826
7544db95
PA
68272015-12-16 Pedro Alves <palves@redhat.com>
6828
6829 * configure.ac (compiler warning flags): When testing a
6830 -Wno-foo option, check whether -Wfoo works instead.
6831 * configure: Regenerate.
6832
8020350c
DB
68332015-12-11 Don Breazeal <donb@codesourcery.com>
6834
6835 * server.c (process_serial_event): Don't exit from gdbserver
6836 in remote mode if there are still active inferiors.
6837
db91f502
YQ
68382015-12-11 Yao Qi <yao.qi@linaro.org>
6839
6840 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6841 arm_breakpoint_at if the process is 32-bit.
6842
b37a6290
YQ
68432015-12-11 Yao Qi <yao.qi@linaro.org>
6844
6845 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6846 arm breakpoint.
6847
17b1509a
YQ
68482015-12-07 Yao Qi <yao.qi@linaro.org>
6849
6850 * configure.srv: Append arm.o to srv_tgtobj for
6851 aarch64*-*-linux* target.
6852 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6853 from linux-arm-low.c.
6854 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6855 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6856 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6857 (thumb2_breakpoint_len): Likewise.
6858 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6859 (arm_breakpoint_kinds): Likewise.
6860 (arm_breakpoint_kind_from_pc): Likewise.
6861 (arm_sw_breakpoint_from_kind): Likewise.
6862 (arm_breakpoint_kind_from_current_state): Likewise.
6863 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6864 (arm_sw_breakpoint_from_kind): Declare.
6865 (arm_breakpoint_kind_from_current_state): Declare.
6866 (arm_breakpoint_at): Declare.
6867 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6868 arm_sw_breakpoint_from_kind if process is 32-bit.
6869 (aarch64_breakpoint_kind_from_pc): New function.
6870 (aarch64_breakpoint_kind_from_current_state): New function.
6871 (the_low_target): Initialize fields breakpoint_kind_from_pc
6872 and breakpoint_kind_from_current_state.
6873 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6874 linux-aarch32-low.c.
6875 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6876 (arm_breakpoint, arm_breakpoint_len): Likewise.
6877 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6878 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6879 (arm_is_thumb_mode): Likewise.
6880 (arm_breakpoint_at): Likewise.
6881 (arm_breakpoint_kind_from_pc): Likewise.
6882 (arm_sw_breakpoint_from_kind): Likewise.
6883 (arm_breakpoint_kind_from_current_state): Likewise.
6884
6885 Revert:
6886 2015-08-04 Yao Qi <yao.qi@linaro.org>
6887
6888 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6889 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6890 * server.c (extended_protocol): Remove "static".
6891 * server.h (extended_protocol): Declare it.
6892
ece66d65
JS
68932015-12-04 Josh Stone <jistone@redhat.com>
6894
6895 * target.h (struct target_ops) <arch_setup>: Rename to ...
6896 (struct target_ops) <post_create_inferior>: ... this.
6897 (target_arch_setup): Rename to ...
6898 (target_post_create_inferior): ... this, calling post_create_inferior.
6899 * server.c (start_inferior): Update target_arch_setup calls to
6900 target_post_create_inferior.
6901 * linux-low.c (linux_low_ptrace_options): Forward declare.
6902 (linux_arch_setup): Update its comment for general use.
6903 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6904 (struct linux_target_ops): Use linux_post_create_inferior.
6905 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6906 to post_create_inferior.
6907 * nto-low.c (struct nto_target_ops): Likewise.
6908 * spu-low.c (struct spu_target_ops): Likewise.
6909 * win32-low.c (struct win32_target_ops): Likewise.
6910
e58c48b4
AT
69112015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6912
6913 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6914
fbec8956
AT
69152015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6916
6917 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6918 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6919 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6920 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6921 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6922 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6923 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6924 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6925 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6926 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6927 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6928 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6929
9b4c5f87
AT
69302015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6931
6932 * linux-low.c (linux_look_up_symbols): Don't call
6933 linux_supports_traceclone.
6934 * linux-low.h (thread_db_init): Remove use_events argument.
6935 * thread-db.c (thread_db_use_event): Remove global variable.
6936 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6937 (struct thread_db) <td_create_bp>: Remove field.
6938 (thread_db_create_event): Remove function.
6939 (thread_db_enable_reporting): Likewise.
6940 (find_one_thread): Don't check for thread_db_use_events.
6941 (attach_thread): Likewise.
6942 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6943 (try_thread_db_load_1): Don't check for thread_db_use_events.
6944 (thread_db_init): Remove use_events argument and thread events
6945 handling.
6946 (remove_thread_event_breakpoints): Remove function.
6947 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6948
7d00775e
AT
69492015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6950
6951 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6952 New function.
6953 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6954 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6955 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6956 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6957 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6958 Initialize.
6959 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6960 New function.
6961 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6962 * linux-low.c (can_hardware_single_step): Use
6963 supports_hardware_single_step.
6964 (can_software_single_step): New function.
6965 (start_step_over): Call can_software_single_step.
6966 (linux_supports_hardware_single_step): New function.
6967 (struct target_ops) <supports_software_single_step>: Initialize.
6968 * linux-low.h (struct linux_target_ops)
6969 <supports_hardware_single_step>: Initialize.
6970 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6971 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6972 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6973 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6974 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6975 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6976 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6977 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6978 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6979 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6980 Initialize.
6981 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6982 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6983 Initialize.
6984 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6985 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6986 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6987 New function.
6988 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6989 * target.h (struct target_ops): <supports_software_single_step>:
6990 New field.
6991 (target_supports_software_single_step): New macro.
6992
2d97cd35
AT
69932015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6994
6995 * linux-low.c (linux_wait_1): Fix pc advance condition.
6996 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6997 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6998
769ef81f
AT
69992015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7000
7001 * linux-arm-low.c (arm_is_thumb_mode): New function.
7002 (arm_breakpoint_at): Use arm_is_thumb_mode.
7003 (arm_breakpoint_kind_from_current_state): New function.
7004 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
7005 Initialize.
7006 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
7007 (linux_breakpoint_kind_from_current_state): New function.
7008 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
7009 * linux-low.h (struct linux_target_ops)
7010 <breakpoint_kind_from_current_state>: New field.
7011 * target.h (struct target_ops): Likewise.
7012 (target_breakpoint_kind_from_current_state): New macro.
7013
1bebeeca
PA
70142015-11-30 Pedro Alves <palves@redhat.com>
7015
7016 * linux-low.c (linux_resume): Wake up the event loop before
7017 returning.
7018
a67a9fae
PA
70192015-11-30 Pedro Alves <palves@redhat.com>
7020
7021 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
7022 check.
7023 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7024 to -1.
7025 * target.c (struct thread_search): New structure.
7026 (thread_search_callback): New function.
7027 (prev_general_thread): New global.
7028 (prepare_to_access_memory, done_accessing_memory): New functions.
7029 * target.h (prepare_to_access_memory, done_accessing_memory):
7030 Replace macros with function declarations.
7031
f2faf941
PA
70322015-11-30 Pedro Alves <palves@redhat.com>
7033
7034 PR 14618
7035 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7036 report TARGET_WAITKIND_NO_RESUMED.
7037 * remote-utils.c (prepare_resume_reply): Handle
7038 TARGET_WAITKIND_NO_RESUMED.
7039 * server.c (report_no_resumed): New global.
7040 (handle_query) <qSupported>: Handle "no-resumed+". Report
7041 "no-resumed+" support.
7042 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7043 return error if the client doesn't support no-resumed events.
7044 (push_stop_notification): New function.
7045 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7046 events if the client supports them.
7047
a681f9c9
PA
70482015-11-30 Pedro Alves <palves@redhat.com>
7049
7050 * linux-low.c (thread_still_has_status_pending_p): Don't check
7051 vCont;t here.
7052 (lwp_resumed): New function.
7053 (status_pending_p_callback): Return early if the LWP is not
7054 supposed to be resumed.
7055
65706a29
PA
70562015-11-30 Pedro Alves <palves@redhat.com>
7057
7058 * linux-low.c (handle_extended_wait): Assert that the LWP's
7059 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7060 thread create events, leave the new child's status pending.
7061 (linux_low_filter_event): If GDB wants to hear about thread exit
7062 events, leave the LWP marked dead and don't delete it.
7063 (linux_wait_for_event_filtered): Don't check for thread exit.
7064 (filter_exit_event): New function.
7065 (linux_wait_1): Use it, when returning an exit event.
7066 (linux_resume_one_lwp_throw): Assert that the LWP's
7067 waitstatus is TARGET_WAITKIND_IGNORE.
7068 * remote-utils.c (prepare_resume_reply): Handle
7069 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7070 * server.c (report_thread_events): New global.
7071 (handle_general_set): Handle QThreadEvents.
7072 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7073 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7074 TARGET_WAITKIND_THREAD_EXITED.
7075 * server.h (report_thread_events): Declare.
7076
56cf4bed
PA
70772015-11-30 Pedro Alves <palves@redhat.com>
7078
7079 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7080 the thread's last_resume_kind was resume_stop.
7081
500c1d85
PA
70822015-11-30 Pedro Alves <palves@redhat.com>
7083
7084 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7085 before returning.
7086
de979965
PA
70872015-11-30 Pedro Alves <palves@redhat.com>
7088
7089 * server.c (handle_v_requests): Handle vCtrlC.
7090
34c65914
PA
70912015-11-30 Pedro Alves <palves@redhat.com>
7092
7093 * gdbthread.h (find_any_thread_of_pid): Declare.
7094 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7095 functions.
7096 * server.c (handle_query): If current_thread is NULL, look for
7097 another thread of the selected process.
7098
79efa585 70992015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 7100 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
7101
7102 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7103 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7104 name in reply.
7105 * target.h (struct target_ops) <thread_name>: New field.
7106 (target_thread_name): New macro.
7107
80d82c19
JB
71082015-11-23 Joel Brobecker <brobecker@adacore.com>
7109
7110 * regcache.h (regcache_invalidate_pid): Add declaration.
7111 * regcache.c (regcache_invalidate_pid): New function, extracted
7112 from regcache_invalidate.
7113 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7114 Add trivial documentation comment.
7115 * lynx-low.c: Use regcache_invalidate_pid instead of
7116 regcache_invalidate.
7117
64da5dd5
JB
71182015-11-23 Joel Brobecker <brobecker@adacore.com>
7119
7120 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7121 and Elf64_auxv_t if the target is Android.
7122
37ce4055
DE
71232015-11-22 Doug Evans <xdje42@gmail.com>
7124
7125 * target.h: #include <sys/types.h>.
7126
06e03fff
PA
71272015-11-19 Pedro Alves <palves@redhat.com>
7128
7129 * linux-low.c (linux_process_qsupported): Change prototype.
7130 Adjust.
7131 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7132 Change prototype.
7133 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7134 and adjust to loop over all features.
7135 * server.c (handle_query) <qSupported>: Adjust to call
7136 target_process_qsupported once, passing it a vector of unprocessed
7137 features.
7138 * target.h (struct target_ops) <process_qsupported>: Change
7139 prototype.
7140 (target_process_qsupported): Adjust.
7141
9a084706
PA
71422015-11-19 Pedro Alves <palves@redhat.com>
7143
7144 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7145 mode.
7146 * configure: Regenerate.
7147
dad44a1f
PA
71482015-11-19 Pedro Alves <palves@redhat.com>
7149
7150 * configure: Regenerate.
7151
231c0592
YQ
71522015-11-19 Yao Qi <yao.qi@linaro.org>
7153
7154 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7155 type to uint32_t.
7156
6c1c9a8b
YQ
71572015-11-19 Yao Qi <yao.qi@linaro.org>
7158
7159 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7160 (struct aarch64_operand): Move enum out.
7161
9caa3311
YQ
71622015-11-19 Yao Qi <yao.qi@linaro.org>
7163
7164 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7165 struct user_fpsimd_state *.
7166 (aarch64_store_fpregset): Likewise.
7167
6a69a054
YQ
71682015-11-19 Yao Qi <yao.qi@linaro.org>
7169
7170 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7171 struct user_pt_regs *.
7172 (aarch64_store_gregset): Likewise.
7173
1798301e
PA
71742015-11-18 Pedro Alves <palves@redhat.com>
7175
7176 * Makefile.in (all_object_files): Add $IPA_OBJS.
7177
ce7715e2
PA
71782015-11-17 Pedro Alves <palves@redhat.com>
7179
7180 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7181 GDB_SIGNAL_0 and gdb_signal_to_string.
7182
c0879059
PA
71832015-11-17 Pedro Alves <palves@redhat.com>
7184
7185 * win32-low.c (handle_output_debug_string): Remove parameter.
7186 (win32_kill): Remove our_status local and adjust call to
7187 handle_output_debug_string.
7188 (get_child_debug_event): Adjust call to
7189 handle_output_debug_string.
7190
1996e237
SM
71912015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7192
7193 * linux-mips-low.c (mips_fill_gregset): Add cast.
7194 (mips_store_gregset): Likewise.
7195 (mips_fill_fpregset): Likewise.
7196 (mips_store_fpregset): Likewise.
7197
cbec665b
SM
71982015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7199
7200 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7201 priv.
7202
eb3e3c67
SM
72032015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7204
7205 * linux-mips-low.c (mips_linux_new_thread): Change type of
7206 watch_type to enum target_hw_bp_type.
7207
171de4b8
SM
72082015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7209
7210 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7211 Change return type to arm_hwbp_type.
7212
04248ead
SM
72132015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7214
7215 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7216 (arm_store_gregset): Likewise.
7217 * linux-arm-low.c (arm_get_hwcap): Likewise.
7218 (arm_read_description): Likewise.
7219
04b3479c
SM
72202015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7221
7222 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7223
2bc84e8a
SM
72242015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7225
7226 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7227 (ppc_fill_vsxregset): Likewise.
7228 (ppc_store_vsxregset): Likewise.
7229 (ppc_fill_vrregset): Likewise.
7230 (ppc_store_vrregset): Likewise.
7231 (ppc_fill_evrregset): Likewise.
7232 (ppc_store_evrregset): Likewise.
7233
e6c5bb05
SM
72342015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7235
7236 * linux-ppc-low.c (ppc_usrregs_info): Remove
7237 forward-declaration.
7238 (ppc_arch_setup): Move lower in file.
7239
7ea45d72
SM
72402015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7241
7242 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7243 (ps_pdwrite): Likewise.
7244
69291610
HW
72452015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7246
7247 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7248 to after assert checks.
7249
b42945fd
SM
72502015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7251
7252 * proc-service.c (ps_pdread): Add/adjust casts.
7253 (ps_pdwrite): Add/adjust casts.
7254
d6f85c84
SM
72552015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7256
7257 * server.c (handle_search_memory_1): Cast return value of
7258 memmem.
7259
f98cd059
SM
72602015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7261
7262 * server.c (write_qxfer_response): Change type of data to
7263 gdb_byte *.
7264
d2412fa5
PA
72652015-10-29 Pedro Alves <palves@redhat.com>
7266
7267 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7268
c17414a2
PA
72692015-10-29 Pedro Alves <palves@redhat.com>
7270
7271 * tracepoint.c (clear_installed_tracepoints): Add casts.
7272
e053fbc4
PA
72732015-10-29 Pedro Alves <palves@redhat.com>
7274
7275 * server.c (handle_v_cont, process_serial_event): Add enum
7276 gdb_signal casts to signal parsing code.
7277
add67df8
PA
72782015-10-29 Pedro Alves <palves@redhat.com>
7279
7280 * linux-low.h (NULL_REGSET): Define.
7281 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7282 * linux-arm-low.c (arm_regsets): Likewise.
7283 * linux-crisv32-low.c (cris_regsets): Likewise.
7284 * linux-m68k-low.c (m68k_regsets): Likewise.
7285 * linux-mips-low.c (mips_regsets): Likewise.
7286 * linux-nios2-low.c (nios2_regsets): Likewise.
7287 * linux-ppc-low.c (ppc_regsets): Likewise.
7288 * linux-s390-low.c (s390_regsets): Likewise.
7289 * linux-sh-low.c (sh_regsets): Likewise.
7290 * linux-sparc-low.c (sparc_regsets): Likewise.
7291 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7292 * linux-tile-low.c (tile_regsets): Likewise.
7293 * linux-x86-low.c (x86_regsets): Likewise.
7294 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7295
50bc912a
PA
72962015-10-29 Pedro Alves <palves@redhat.com>
7297
7298 * linux-low.h (NULL_REGSET): Define.
7299 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7300 * linux-arm-low.c (arm_regsets): Likewise.
7301 * linux-crisv32-low.c (cris_regsets): Likewise.
7302 * linux-m68k-low.c (m68k_regsets): Likewise.
7303 * linux-mips-low.c (mips_regsets): Likewise.
7304 * linux-nios2-low.c (nios2_regsets): Likewise.
7305 * linux-ppc-low.c (ppc_regsets): Likewise.
7306 * linux-s390-low.c (s390_regsets): Likewise.
7307 * linux-sh-low.c (sh_regsets): Likewise.
7308 * linux-sparc-low.c (sparc_regsets): Likewise.
7309 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7310 * linux-tile-low.c (tile_regsets): Likewise.
7311 * linux-x86-low.c (x86_regsets): Likewise.
7312 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7313
682b2546
DE
73142015-10-26 Doug Evans <dje@google.com>
7315
7316 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7317
963843d4
DE
73182015-10-26 Doug Evans <dje@google.com>
7319
7320 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7321
d41401ac
DE
73222015-10-26 Doug Evans <dje@google.com>
7323
7324 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7325 for debug_printf.
7326 (attach_thread, find_new_threads_callback): Ditto.
7327
3db28855
AT
73282015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7329
7330 * mem-break.h (set_breakpoint_data): Remove.
7331
fb78e89c
AT
73322015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7333
7334 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7335 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7336 (initialize_low): Remove set_breakpoint_data call.
7337 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7338 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7339 (initialize_low): Remove set_breakpoint_data call.
7340 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7341 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7342 (initialize_low): Remove set_breakpoint_data call.
7343
2e6ee069
AT
73442015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7345
7346 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7347 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7348 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7349 * target.h (target_breakpoint_kind_from_pc): New macro.
7350
1652a986
AT
73512015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7352
7353 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7354 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7355 the default breakpoint kind.
7356
abeead09
AT
73572015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7358
7359 * linux-arm-low.c (arm_supports_z_point_type): Add software
7360 breakpoint support.
7361
b0b4b501
AT
73622015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7363
7364 * linux-arm-low.c: Refactor breakpoint definitions.
7365 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7366 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7367
8689682c
AT
73682015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7369
7370 * Makefile.in: Add arm.c/o.
7371 * configure.srv: Likewise.
7372 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7373 (arm_breakpoint_kind_from_pc): New function.
7374 (arm_sw_breakpoint_from_kind): Return proper kind.
7375 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7376
27165294
AT
73772015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7378
7379 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7380 removal.
7381 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7382 (struct raw_breakpoint) <size>: Remove.
7383 (struct raw_breakpoint) <kind>: Add.
7384 (bp_size): New function.
7385 (bp_opcode): Likewise.
7386 (find_raw_breakpoint_at): Adjust for kind.
7387 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7388 (remove_memory_breakpoint): Adjust for kind call bp_size.
7389 (set_raw_breakpoint_at): Adjust for kind.
7390 (set_breakpoint): Likewise.
7391 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7392 (delete_raw_breakpoint): Adjust for kind.
7393 (delete_breakpoint): Likewise.
7394 (find_gdb_breakpoint): Likewise.
7395 (set_gdb_breakpoint_1): Likewise.
7396 (set_gdb_breakpoint): Likewise.
7397 (delete_gdb_breakpoint_1): Likewise.
7398 (delete_gdb_breakpoint): Likewise.
7399 (uninsert_raw_breakpoint): Likewise.
7400 (reinsert_raw_breakpoint): Likewise.
7401 (set_breakpoint_data): Remove.
7402 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7403 (check_mem_read): Adjust for kind call bp_size.
7404 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7405 (clone_one_breakpoint): Adjust for kind.
7406 * mem-break.h (set_gdb_breakpoint): Likewise.
7407 (delete_gdb_breakpoint): Likewise.
7408 * server.c (process_serial_event): Likewise.
7409
dd373349
AT
74102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7411
7412 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7413 (struct linux_target_ops) <breakpoint>: Remove.
7414 (struct linux_target_ops) <breakpoint_len>: Remove.
7415 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7416 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7417 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7418 (arm_sw_breakpoint_from_kind): New function.
7419 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7420 (struct linux_target_ops) <breakpoint>: Remove.
7421 (struct linux_target_ops) <breakpoint_len>: Remove.
7422 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7423 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7424 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7425 (struct linux_target_ops) <breakpoint>: Remove.
7426 (struct linux_target_ops) <breakpoint_len>: Remove.
7427 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7428 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7429 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7430 (struct linux_target_ops) <breakpoint>: Remove.
7431 (struct linux_target_ops) <breakpoint_len>: Remove.
7432 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7433 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7434 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7435 and sw_breakpoint_from_kind to increment the pc.
7436 (linux_breakpoint_kind_from_pc): New function.
7437 (linux_sw_breakpoint_from_kind): New function.
7438 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7439 (initialize_low): Call breakpoint_kind_from_pc and
7440 sw_breakpoint_from_kind to replace breakpoint_data/len.
7441 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7442 New field.
7443 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7444 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7445 (struct linux_target_ops) <breakpoint>: Remove.
7446 (struct linux_target_ops) <breakpoint_len>: Remove.
7447 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7448 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7449 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7450 (struct linux_target_ops) <breakpoint>: Remove.
7451 (struct linux_target_ops) <breakpoint_len>: Remove.
7452 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7453 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7454 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7455 (struct linux_target_ops) <breakpoint>: Remove.
7456 (struct linux_target_ops) <breakpoint_len>: Remove.
7457 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7458 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7459 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7460 (struct linux_target_ops) <breakpoint>: Remove.
7461 (struct linux_target_ops) <breakpoint_len>: Remove.
7462 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7463 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7464 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7465 (struct linux_target_ops) <breakpoint>: Remove.
7466 (struct linux_target_ops) <breakpoint_len>: Remove.
7467 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7468 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7469 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7470 (struct linux_target_ops) <breakpoint>: Remove.
7471 (struct linux_target_ops) <breakpoint_len>: Remove.
7472 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7473 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7474 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7475 (struct linux_target_ops) <breakpoint>: Remove.
7476 (struct linux_target_ops) <breakpoint_len>: Remove.
7477 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7478 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7479 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7480 (struct linux_target_ops) <breakpoint>: Remove.
7481 (struct linux_target_ops) <breakpoint_len>: Remove.
7482 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7483 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7484 * linux-tic6x-low.c (tic6x_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-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7490 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7491 (struct linux_target_ops) <breakpoint>: Remove.
7492 (struct linux_target_ops) <breakpoint_len>: Remove.
7493 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7494 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7495 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7496 (struct linux_target_ops) <breakpoint>: Remove.
7497 (struct linux_target_ops) <breakpoint_len>: Remove.
7498 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7499 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7500
4cd98a19
AT
75012015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7502
7503 * linux-cris-low.c (cris_get_pc): Remove void arg.
7504
774ee6d2
AR
75052015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7506
7507 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7508 variable name.
7509
833dcd29
AR
75102015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7511
7512 * inferiors.c (thread_pid_matches_callback): New function.
7513 (find_thread_process): New function.
7514 (remove_thread): Reset current_thread.
7515 (remove_process): Assert threads have been removed first.
7516
8d689ee5
YQ
75172015-10-15 Yao Qi <yao.qi@linaro.org>
7518
7519 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7520 if it is 3.
7521 (aarch64_remove_point): Likewise.
7522 * regcache.c (regcache_register_size): New function.
7523
1c2e1515
YQ
75242015-10-12 Yao Qi <yao.qi@linaro.org>
7525
7526 * linux-aarch64-low.c: Update all callers as emit_load_store
7527 is renamed to aarch64_emit_load_store.
7528
e1c587c3
YQ
75292015-10-12 Yao Qi <yao.qi@linaro.org>
7530
7531 * linux-aarch64-low.c: Update all callers of function renaming
7532 from emit_insn to aarch64_emit_insn.
7533
b6542f81
YQ
75342015-10-12 Yao Qi <yao.qi@linaro.org>
7535
7536 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7537 arch/aarch64-insn.h.
7538 (struct aarch64_memory_operand): Likewise.
7539 (ENCODE): Likewise.
7540 (emit_insn): Move to arch/aarch64-insn.c.
7541 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7542 (emit_load_store): Move to arch/aarch64-insn.c.
7543 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7544 (can_encode_int32): Remove.
7545
246994ce
YQ
75462015-10-12 Yao Qi <yao.qi@linaro.org>
7547
7548 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7549 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7550 (aarch64_relocate_instruction): Likewise.
7551 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7552 (struct aarch64_insn_visitor): Likewise.
7553
0badd99f
YQ
75542015-10-12 Yao Qi <yao.qi@linaro.org>
7555
7556 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7557 (struct aarch64_insn_visitor): New.
7558 (struct aarch64_insn_relocation_data): New.
7559 (aarch64_ftrace_insn_reloc_b): New function.
7560 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7561 (aarch64_ftrace_insn_reloc_cb): Likewise.
7562 (aarch64_ftrace_insn_reloc_tb): Likewise.
7563 (aarch64_ftrace_insn_reloc_adr): Likewise.
7564 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7565 (aarch64_ftrace_insn_reloc_others): Likewise.
7566 (visitor): New.
7567 (aarch64_relocate_instruction): Use visitor.
7568
dfaffe9d
YQ
75692015-10-12 Yao Qi <yao.qi@linaro.org>
7570
7571 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7572 int. Add argument buf.
7573 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7574 aarch64_relocate_instruction.
7575
70b439f0
YQ
75762015-10-12 Yao Qi <yao.qi@linaro.org>
7577
7578 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7579 argument insn. Remove local variable insn. Don't call
7580 target_read_uint32.
7581 (aarch64_install_fast_tracepoint_jump_pad): Call
7582 target_read_uint32.
7583
7781c06f
YQ
75842015-09-30 Yao Qi <yao.qi@linaro.org>
7585
7586 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7587 (emit_load_store_pair): Likewise.
7588
9a3c8263
SM
75892015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7590
7591 * dll.c (match_dll): Add cast(s).
7592 (unloaded_dll): Likewise.
7593 * linux-low.c (second_thread_of_pid_p): Likewise.
7594 (delete_lwp_callback): Likewise.
7595 (count_events_callback): Likewise.
7596 (select_event_lwp_callback): Likewise.
7597 (linux_set_resume_request): Likewise.
7598 * server.c (accumulate_file_name_length): Likewise.
7599 (emit_dll_description): Likewise.
7600 (handle_qxfer_threads_worker): Likewise.
7601 (visit_actioned_threads): Likewise.
7602 * thread-db.c (any_thread_of): Likewise.
7603 * tracepoint.c (same_process_p): Likewise.
7604 (match_blocktype): Likewise.
7605 (build_traceframe_info_xml): Likewise.
7606
224c3ddb
SM
76072015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7608
7609 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7610 assignment.
7611 (gdb_unparse_agent_expr): Likewise.
7612 * hostio.c (require_data): Likewise.
7613 (handle_pread): Likewise.
7614 * linux-low.c (disable_regset): Likewise.
7615 (fetch_register): Likewise.
7616 (store_register): Likewise.
7617 (get_dynamic): Likewise.
7618 (linux_qxfer_libraries_svr4): Likewise.
7619 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7620 (set_fast_tracepoint_jump): Likewise.
7621 (uninsert_fast_tracepoint_jumps_at): Likewise.
7622 (reinsert_fast_tracepoint_jumps_at): Likewise.
7623 (validate_inserted_breakpoint): Likewise.
7624 (clone_agent_expr): Likewise.
7625 * regcache.c (init_register_cache): Likewise.
7626 * remote-utils.c (putpkt_binary_1): Likewise.
7627 (decode_M_packet): Likewise.
7628 (decode_X_packet): Likewise.
7629 (look_up_one_symbol): Likewise.
7630 (relocate_instruction): Likewise.
7631 (monitor_output): Likewise.
7632 * server.c (handle_search_memory): Likewise.
7633 (handle_qxfer_exec_file): Likewise.
7634 (handle_qxfer_libraries): Likewise.
7635 (handle_qxfer): Likewise.
7636 (handle_query): Likewise.
7637 (handle_v_cont): Likewise.
7638 (handle_v_run): Likewise.
7639 (captured_main): Likewise.
7640 * target.c (write_inferior_memory): Likewise.
7641 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7642 * tracepoint.c (init_trace_buffer): Likewise.
7643 (add_tracepoint_action): Likewise.
7644 (add_traceframe): Likewise.
7645 (add_traceframe_block): Likewise.
7646 (cmd_qtdpsrc): Likewise.
7647 (cmd_qtdv): Likewise.
7648 (cmd_qtstatus): Likewise.
7649 (response_source): Likewise.
7650 (response_tsv): Likewise.
7651 (cmd_qtnotes): Likewise.
7652 (gdb_collect): Likewise.
7653 (initialize_tracepoint): Likewise.
7654
afbe19f8
PL
76552015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7656
7657 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7658 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7659 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7660 <NOP>: New.
7661 (enum aarch64_condition_codes): New enum.
7662 (w0): New static global.
7663 (fp): Likewise.
7664 (lr): Likewise.
7665 (struct aarch64_memory_operand) <type>: New
7666 MEMORY_OPERAND_POSTINDEX type.
7667 (postindex_memory_operand): New helper function.
7668 (emit_ret): New function.
7669 (emit_load_store_pair): New function, factored out of emit_stp
7670 with support for MEMORY_OPERAND_POSTINDEX.
7671 (emit_stp): Rewrite using emit_load_store_pair.
7672 (emit_ldp): New function.
7673 (emit_load_store): Likewise.
7674 (emit_ldr): Mention post-index instruction in comment.
7675 (emit_ldrh): New function.
7676 (emit_ldrb): New function.
7677 (emit_ldrsw): Mention post-index instruction in comment.
7678 (emit_str): Likewise.
7679 (emit_subs): New function.
7680 (emit_cmp): Likewise.
7681 (emit_and): Likewise.
7682 (emit_orr): Likewise.
7683 (emit_orn): Likewise.
7684 (emit_eor): Likewise.
7685 (emit_mvn): Likewise.
7686 (emit_lslv): Likewise.
7687 (emit_lsrv): Likewise.
7688 (emit_asrv): Likewise.
7689 (emit_mul): Likewise.
7690 (emit_sbfm): Likewise.
7691 (emit_sbfx): Likewise.
7692 (emit_ubfm): Likewise.
7693 (emit_ubfx): Likewise.
7694 (emit_csinc): Likewise.
7695 (emit_cset): Likewise.
7696 (emit_nop): Likewise.
7697 (emit_ops_insns): New helper function.
7698 (emit_pop): Likewise.
7699 (emit_push): Likewise.
7700 (aarch64_emit_prologue): New function.
7701 (aarch64_emit_epilogue): Likewise.
7702 (aarch64_emit_add): Likewise.
7703 (aarch64_emit_sub): Likewise.
7704 (aarch64_emit_mul): Likewise.
7705 (aarch64_emit_lsh): Likewise.
7706 (aarch64_emit_rsh_signed): Likewise.
7707 (aarch64_emit_rsh_unsigned): Likewise.
7708 (aarch64_emit_ext): Likewise.
7709 (aarch64_emit_log_not): Likewise.
7710 (aarch64_emit_bit_and): Likewise.
7711 (aarch64_emit_bit_or): Likewise.
7712 (aarch64_emit_bit_xor): Likewise.
7713 (aarch64_emit_bit_not): Likewise.
7714 (aarch64_emit_equal): Likewise.
7715 (aarch64_emit_less_signed): Likewise.
7716 (aarch64_emit_less_unsigned): Likewise.
7717 (aarch64_emit_ref): Likewise.
7718 (aarch64_emit_if_goto): Likewise.
7719 (aarch64_emit_goto): Likewise.
7720 (aarch64_write_goto_address): Likewise.
7721 (aarch64_emit_const): Likewise.
7722 (aarch64_emit_call): Likewise.
7723 (aarch64_emit_reg): Likewise.
7724 (aarch64_emit_pop): Likewise.
7725 (aarch64_emit_stack_flush): Likewise.
7726 (aarch64_emit_zero_ext): Likewise.
7727 (aarch64_emit_swap): Likewise.
7728 (aarch64_emit_stack_adjust): Likewise.
7729 (aarch64_emit_int_call_1): Likewise.
7730 (aarch64_emit_void_call_2): Likewise.
7731 (aarch64_emit_eq_goto): Likewise.
7732 (aarch64_emit_ne_goto): Likewise.
7733 (aarch64_emit_lt_goto): Likewise.
7734 (aarch64_emit_le_goto): Likewise.
7735 (aarch64_emit_gt_goto): Likewise.
7736 (aarch64_emit_ge_got): Likewise.
7737 (aarch64_emit_ops_impl): New static global variable.
7738 (aarch64_emit_ops): New target function, return
7739 &aarch64_emit_ops_impl.
7740 (struct linux_target_ops): Install it.
7741
bb903df0
PL
77422015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7743
7744 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7745 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7746 aarch64-ipa.o.
7747 * linux-aarch64-ipa.c: New file.
7748 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7749 and endian.h.
7750 (aarch64_get_thread_area): New target method.
7751 (extract_signed_bitfield): New helper function.
7752 (aarch64_decode_ldr_literal): New function.
7753 (enum aarch64_opcodes): New enum.
7754 (struct aarch64_register): New struct.
7755 (struct aarch64_operand): New struct.
7756 (x0): New static global.
7757 (x1): Likewise.
7758 (x2): Likewise.
7759 (x3): Likewise.
7760 (x4): Likewise.
7761 (w2): Likewise.
7762 (ip0): Likewise.
7763 (sp): Likewise.
7764 (xzr): Likewise.
7765 (aarch64_register): New helper function.
7766 (register_operand): Likewise.
7767 (immediate_operand): Likewise.
7768 (struct aarch64_memory_operand): New struct.
7769 (offset_memory_operand): New helper function.
7770 (preindex_memory_operand): Likewise.
7771 (enum aarch64_system_control_registers): New enum.
7772 (ENCODE): New macro.
7773 (emit_insn): New helper function.
7774 (emit_b): New function.
7775 (emit_bcond): Likewise.
7776 (emit_cb): Likewise.
7777 (emit_tb): Likewise.
7778 (emit_blr): Likewise.
7779 (emit_stp): Likewise.
7780 (emit_ldp_q_offset): Likewise.
7781 (emit_stp_q_offset): Likewise.
7782 (emit_load_store): Likewise.
7783 (emit_ldr): Likewise.
7784 (emit_ldrsw): Likewise.
7785 (emit_str): Likewise.
7786 (emit_ldaxr): Likewise.
7787 (emit_stxr): Likewise.
7788 (emit_stlr): Likewise.
7789 (emit_data_processing_reg): Likewise.
7790 (emit_data_processing): Likewise.
7791 (emit_add): Likewise.
7792 (emit_sub): Likewise.
7793 (emit_mov): Likewise.
7794 (emit_movk): Likewise.
7795 (emit_mov_addr): Likewise.
7796 (emit_mrs): Likewise.
7797 (emit_msr): Likewise.
7798 (emit_sevl): Likewise.
7799 (emit_wfe): Likewise.
7800 (append_insns): Likewise.
7801 (can_encode_int32_in): New helper function.
7802 (aarch64_relocate_instruction): New function.
7803 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7804 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7805 (struct linux_target_ops): Install aarch64_get_thread_area,
7806 aarch64_install_fast_tracepoint_jump_pad and
7807 aarch64_get_min_fast_tracepoint_insn_len.
7808
787749ea
PL
78092015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7810
7811 * Makefile.in (aarch64-insn.o): New rule.
7812 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7813
9812b2e6
YQ
78142015-09-21 Yao Qi <yao.qi@linaro.org>
7815
7816 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7817
18fe412b
YQ
78182015-09-21 Yao Qi <yao.qi@linaro.org>
7819
7820 * tracepoint.c (max_jump_pad_size): Remove.
7821
a0cc84cd
YQ
78222015-09-18 Yao Qi <yao.qi@linaro.org>
7823
7824 * linux-aarch64-low.c: Don't include sys/uio.h.
7825 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7826
d78908cf
WW
78272015-09-16 Wei-cheng Wang <cole945@gmail.com>
7828
7829 * tracepoint.c (eval_result_type): Change prototype.
7830 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7831
d57e0d50
PA
78322015-09-15 Pedro Alves <palves@redhat.com>
7833
7834 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7835 Check whether to report exec events instead of checking whether
7836 multiprocess is enabled.
7837
5a676acc
PA
78382015-09-15 Pedro Alves <palves@redhat.com>
7839
7840 PR remote/18965
7841 * remote-utils.c (prepare_resume_reply): Merge
7842 TARGET_WAITKIND_VFORK_DONE switch case with the
7843 TARGET_WAITKIND_FORKED case.
7844
7c5d0fad
YQ
78452015-09-15 Yao Qi <yao.qi@linaro.org>
7846
7847 * server.c (handle_query): Check string comparison using
7848 "else if" instead of "if".
7849
750ce8d1
YQ
78502015-09-15 Yao Qi <yao.qi@linaro.org>
7851
7852 * server.c (vCont_supported): New global variable.
7853 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7854 matches. Append ";vContSupported+" to own_buf.
7855 (handle_v_requests): Append ";s;S" to own_buf if target supports
7856 hardware single step or vCont_supported is false.
7857 (capture_main): Set vCont_supported to zero.
7858
70b90b91
YQ
78592015-09-15 Yao Qi <yao.qi@linaro.org>
7860
7861 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7862 it to ...
7863 (linux_supports_hardware_single_step): ... New function.
7864 (linux_target_ops): Update.
7865 * lynx-low.c (lynx_target_ops): Set field
7866 supports_hardware_single_step to target_can_do_hardware_single_step.
7867 * nto-low.c (nto_target_ops): Likewise.
7868 * spu-low.c (spu_target_ops): Likewise.
7869 * win32-low.c (win32_target_ops): Likewise.
7870 * target.c (target_can_do_hardware_single_step): New function.
7871 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7872 Remove. <supports_hardware_single_step>: New field.
7873 (target_supports_conditional_breakpoints): Remove.
7874 (target_supports_hardware_single_step): New macro.
7875 (target_can_do_hardware_single_step): Declare.
7876 * server.c (handle_query): Use target_supports_hardware_single_step
7877 instead of target_supports_conditional_breakpoints.
7878
ade90bde
YQ
78792015-09-15 Yao Qi <yao.qi@linaro.org>
7880
7881 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7882 function.
7883 (struct linux_target_ops the_low_target): Install
7884 aarch64_linux_siginfo_fixup.
7885
94585166
DB
78862015-09-11 Don Breazeal <donb@codesourcery.com>
7887 Luis Machado <lgustavo@codesourcery.com>
7888
7889 * linux-low.c (linux_mourn): Static declaration.
7890 (linux_arch_setup): Move in front of
7891 handle_extended_wait.
7892 (linux_arch_setup_thread): New function.
7893 (handle_extended_wait): Handle exec events. Call
7894 linux_arch_setup_thread. Make event_lwp argument a
7895 pointer-to-a-pointer.
7896 (check_zombie_leaders): Do not check stopped threads.
7897 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7898 (linux_low_filter_event): Add lwp and thread for exec'ing
7899 non-leader thread if leader thread has been deleted.
7900 Refactor code into linux_arch_setup_thread and call it.
7901 Pass child lwp pointer by reference to handle_extended_wait.
7902 (linux_wait_for_event_filtered): Update comment.
7903 (linux_wait_1): Prevent clobbering exec event status.
7904 (linux_supports_exec_events): New function.
7905 (linux_target_ops) <supports_exec_events>: Initialize new member.
7906 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7907 new member.
7908 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7909 * server.c (report_exec_events): New global variable.
7910 (handle_query): Handle qSupported query for exec-events feature.
7911 (captured_main): Initialize report_exec_events.
7912 * server.h (report_exec_events): Declare new global variable.
7913 * target.h (struct target_ops) <supports_exec_events>: New
7914 member.
7915 (target_supports_exec_events): New macro.
7916 * win32-low.c (win32_target_ops) <supports_exec_events>:
7917 Initialize new member.
7918
0568462b
MM
79192015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7920
7921 * linux-low.c (linux_low_enable_btrace): Remove.
7922 (linux_target_ops): Replace linux_low_enable_btrace with
7923 linux_enable_btrace.
7924
39edd165
YQ
79252015-09-03 Yao Qi <yao.qi@linaro.org>
7926
7927 * linux-aarch64-low.c (aarch64_insert_point): Call
7928 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7929 returns true.
7930
1db33b5a
UW
79312015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7932
7933 * linux-low.c (check_stopped_by_breakpoint): Use
7934 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7935
ab290430
PA
79362015-08-27 Pedro Alves <palves@redhat.com>
7937
7938 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7939
8d749320
SM
79402015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7941
6711b7f8
SM
7942 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7943 the XNEW-family equivalent.
8d749320
SM
7944 (compile_bytecodes): Likewise.
7945 * dll.c (loaded_dll): Likewise.
7946 * event-loop.c (append_callback_event): Likewise.
7947 (create_file_handler): Likewise.
7948 (create_file_event): Likewise.
7949 * hostio.c (handle_open): Likewise.
7950 * inferiors.c (add_thread): Likewise.
7951 (add_process): Likewise.
7952 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7953 * linux-arm-low.c (arm_new_process): Likewise.
7954 (arm_new_thread): Likewise.
7955 * linux-low.c (add_to_pid_list): Likewise.
7956 (linux_add_process): Likewise.
7957 (handle_extended_wait): Likewise.
7958 (add_lwp): Likewise.
7959 (enqueue_one_deferred_signal): Likewise.
7960 (enqueue_pending_signal): Likewise.
7961 (linux_resume_one_lwp_throw): Likewise.
7962 (linux_resume_one_thread): Likewise.
7963 (linux_read_memory): Likewise.
7964 (linux_write_memory): Likewise.
7965 * linux-mips-low.c (mips_linux_new_process): Likewise.
7966 (mips_linux_new_thread): Likewise.
7967 (mips_add_watchpoint): Likewise.
7968 * linux-x86-low.c (initialize_low_arch): Likewise.
7969 * lynx-low.c (lynx_add_process): Likewise.
7970 * mem-break.c (set_raw_breakpoint_at): Likewise.
7971 (set_breakpoint): Likewise.
7972 (add_condition_to_breakpoint): Likewise.
7973 (add_commands_to_breakpoint): Likewise.
7974 (clone_agent_expr): Likewise.
7975 (clone_one_breakpoint): Likewise.
7976 * regcache.c (new_register_cache): Likewise.
7977 * remote-utils.c (look_up_one_symbol): Likewise.
7978 * server.c (queue_stop_reply): Likewise.
7979 (start_inferior): Likewise.
7980 (queue_stop_reply_callback): Likewise.
7981 (handle_target_event): Likewise.
7982 * spu-low.c (fetch_ppc_memory): Likewise.
7983 (store_ppc_memory): Likewise.
7984 * target.c (set_target_ops): Likewise.
7985 * thread-db.c (thread_db_load_search): Likewise.
7986 (try_thread_db_load_1): Likewise.
7987 * tracepoint.c (add_tracepoint): Likewise.
7988 (add_tracepoint_action): Likewise.
7989 (create_trace_state_variable): Likewise.
7990 (cmd_qtdpsrc): Likewise.
7991 (cmd_qtro): Likewise.
7992 (add_while_stepping_state): Likewise.
7993 * win32-low.c (child_add_thread): Likewise.
7994 (get_image_name): Likewise.
7995
ed8b7b42
YQ
79962015-08-25 Yao Qi <yao.qi@linaro.org>
7997
7998 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7999
db3cb7cb
YQ
80002015-08-25 Yao Qi <yao.qi@linaro.org>
8001
8002 * Makefile.in (aarch64-linux.o): New rule.
8003 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
8004 srv_tgtobj.
8005 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
8006 (aarch64_init_debug_reg_state): Make it extern.
8007 (aarch64_linux_prepare_to_resume): Remove.
8008
f6011a1c
YQ
80092015-08-25 Yao Qi <yao.qi@linaro.org>
8010
8011 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
8012 lwp_arch_private_info and ptid_of_lwp.
8013
88e2cf7e
YQ
80142015-08-25 Yao Qi <yao.qi@linaro.org>
8015
8016 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
8017 Find proc_info by find_process_pid. All callers updated.
8018
5e35436e
YQ
80192015-08-25 Yao Qi <yao.qi@linaro.org>
8020
8021 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
8022 Remove.
8023 (debug_reg_change_callback): Remove.
8024 (aarch64_notify_debug_reg_change): Remove.
8025
4a8a7965
YQ
80262015-08-25 Yao Qi <yao.qi@linaro.org>
8027
8028 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8029 Call current_lwp_ptid.
8030
32a271ee
YQ
80312015-08-25 Yao Qi <yao.qi@linaro.org>
8032
8033 * linux-aarch64-low.c (debug_reg_change_callback): Use
8034 debug_printf.
8035
0d51c8d7
YQ
80362015-08-25 Yao Qi <yao.qi@linaro.org>
8037
8038 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8039
31a43dd5
YQ
80402015-08-25 Yao Qi <yao.qi@linaro.org>
8041
8042 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8043
8ee52567
YQ
80442015-08-25 Yao Qi <yao.qi@linaro.org>
8045
8046 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8047 the code.
8048
ff3f0f45
YQ
80492015-08-25 Yao Qi <yao.qi@linaro.org>
8050
8051 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8052 Remove.
8053 (debug_reg_change_callback): Remove argument entry and add argument
8054 lwp. Remove local variable thread. Don't print thread id in the
8055 debugging output. Don't check whether pid of thread equals to pid.
8056 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8057 iterate_over_lwps instead find_inferior.
8058
3d40fbb5
PA
80592015-08-24 Pedro Alves <palves@redhat.com>
8060
8061 * inferiors.c (get_first_process): New function.
8062 * inferiors.h (get_first_process): New declaration.
8063 * remote-utils.c (read_ptid): Default to the first process in the
8064 list, instead of to the current thread's process.
8065
438e1e42
PA
80662015-08-24 Pedro Alves <palves@redhat.com>
8067
8068 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8069 * event-loop.c: Likewise.
8070 * remote-utils.c: Likewise.
8071 * tracepoint.c: Likewise.
8072
a8c6d4fc
PA
80732015-08-24 Pedro Alves <palves@redhat.com>
8074
8075 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8076 ptid_get_lwp.
8077
99b0bb12
PA
80782015-08-21 Pedro Alves <palves@redhat.com>
8079
8080 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8081 instead of literal 1.
8082
f8904751
PA
80832015-08-21 Pedro Alves <palves@redhat.com>
8084
8085 * tdesc.c (default_description): Explicitly zero-initialize.
8086
465a859e
PA
80872015-08-21 Pedro Alves <palves@redhat.com>
8088
8089 PR gdb/18749
8090 * inferiors.c (remove_thread): Discard any pending stop reply for
8091 this thread.
8092 * server.c (remove_all_on_match_pid): Rename to ...
8093 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8094 instead of a pid.
8095 (discard_queued_stop_replies): Change parameter to a ptid. Now
8096 extern.
8097 (handle_v_kill, kill_inferior_callback, captured_main)
8098 (process_serial_event): Adjust.
8099 * server.h (discard_queued_stop_replies): Declare.
8100
f0db101d
PA
81012015-08-21 Pedro Alves <palves@redhat.com>
8102
8103 * linux-low.c (wait_for_sigstop): Always switch to no thread
8104 selected if the previously current thread dies.
8105 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8106 process instead of the current thread's.
8107 * remote-utils.c (input_interrupt): Don't check if there's no
8108 current thread.
8109 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8110 current thread to the general thread fails, error out.
8111 (handle_qxfer_auxv, handle_qxfer_libraries)
8112 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8113 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8114 (handle_query): Check if there's a thread selected instead of
8115 checking whether there's any thread in the thread list.
8116 (handle_qxfer_threads, handle_qxfer_btrace)
8117 (handle_qxfer_btrace_conf): Don't error out early if there's no
8118 thread in the thread list.
8119 (handle_v_cont, myresume): Don't set the current thread to the
8120 continue thread.
8121 (process_serial_event) <Hg handling>: Also set thread_id if the
8122 previous general thread is still alive.
8123 (process_serial_event) <g/G handling>: If setting the current
8124 thread to the general thread fails, error out.
8125 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8126 thread's lwp instead of the current thread's.
8127 * target.c (set_desired_thread): If the desired thread was not
8128 found, leave the current thread pointing to NULL. Return an int
8129 (boolean) indicating success.
8130 * target.h (set_desired_thread): Change return type to int.
8131
40045d91
MF
81322015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8133
8134 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8135 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8136 #includes.
8137 (ps_get_thread_area): New function.
8138
45face3b
GB
81392015-08-19 Gary Benson <gbenson@redhat.com>
8140
8141 * hostio.c (handle_pread): Do not attempt to read more data
8142 than hostio_reply_with_data can fit in a packet.
8143
16d5f642
JB
81442015-08-18 Joel Brobecker <brobecker@adacore.com>
8145
8146 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8147
a738da3a
MF
81482015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8149
8150 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8151
33ebda9d
PA
81522015-08-06 Pedro Alves <palves@redhat.com>
8153
8154 * tracepoint.c (expr_eval_result): Now an int.
8155
a44892be
PA
81562015-08-06 Pedro Alves <palves@redhat.com>
8157
8158 * gdbthread.h (struct regcache): Forward declare.
8159 (struct thread_info) <regcache_data>: Now a struct regcache
8160 pointer.
8161 * inferiors.c (inferior_regcache_data)
8162 (set_inferior_regcache_data): Now work with struct regcache
8163 pointers.
8164 * inferiors.h (struct regcache): Forward declare.
8165 (inferior_regcache_data, set_inferior_regcache_data): Now work
8166 with struct regcache pointers.
8167 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8168 (free_register_cache_thread): Remove struct regcache pointer
8169 casts.
8170
608a1e46
PA
81712015-08-06 Pedro Alves <palves@redhat.com>
8172
8173 * server.c (captured_main): On error, print the exception message
8174 to stderr, and if run_once is set, throw a quit.
8175
f0ce0d3a
PA
81762015-08-06 Pedro Alves <palves@redhat.com>
8177
8178 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8179 the current thread.
8180
bf47e248
PA
81812015-08-06 Pedro Alves <palves@redhat.com>
8182
8183 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8184 reading beyond the passed in buffer length.
8185
b6b9ffcc
PL
81862015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8187
8188 * tracepoint.c (symbol_list) <required>: Remove.
8189
863d01bd
PA
81902015-08-06 Pedro Alves <palves@redhat.com>
8191
8192 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8193 count if stopping and suspending threads.
8194 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8195 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8196 (linux_detach): Complete an ongoing step-over.
8197 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8198 throughout.
8199 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8200 (linux_wait_1): If passing a signal to the inferior after
8201 finishing a step-over, unsuspend and re-resume all lwps. If we
8202 see a single-step event but the thread should be continuing, don't
8203 pass the trap to gdb.
8204 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8205 internal_error instead of gdb_assert.
8206 (enqueue_pending_signal): New function.
8207 (check_ptrace_stopped_lwp_gone): Add debug output.
8208 (start_step_over): Use internal_error instead of gdb_assert.
8209 (complete_ongoing_step_over): New function.
8210 (linux_resume_one_thread): Don't resume a suspended thread.
8211 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8212 it stepping.
8213
00db26fa
PA
82142015-08-06 Pedro Alves <palves@redhat.com>
8215
8216 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8217 (linux_thread_alive): Use lwp_is_marked_dead.
8218 (extended_event_reported): Delete.
8219 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8220 instead of extended_event_reported.
8221 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8222 as well.
8223 (lwp_is_marked_dead): New function.
8224 (lwp_running): Use lwp_is_marked_dead.
8225 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8226 comment.
8227
ad071a30
PA
82282015-08-06 Pedro Alves <palves@redhat.com>
8229
8230 * linux-low.c (linux_wait_1): Move fork event output out of the
8231 !report_to_gdb check. Pass event_child->waitstatus to
8232 target_waitstatus_to_string instead of ourstatus.
8233
524b57e6
YQ
82342015-08-04 Yao Qi <yao.qi@linaro.org>
8235
8236 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8237 if current_thread is 32 bit.
8238
6085d6f6
YQ
82392015-08-04 Yao Qi <yao.qi@linaro.org>
8240
8241 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8242 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8243 * server.c (extended_protocol): Remove "static".
8244 * server.h (extended_protocol): Declare it.
8245
8a7e4587
YQ
82462015-08-04 Yao Qi <yao.qi@linaro.org>
8247
8248 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8249 both aarch64 and aarch32.
8250 (aarch64_set_pc): Likewise.
8251
3b53ae99
YQ
82522015-08-04 Yao Qi <yao.qi@linaro.org>
8253
8254 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8255 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8256 arm-with-neon.xml to srv_xmlfiles.
8257 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8258 (is_64bit_tdesc): New function.
8259 (aarch64_linux_read_description): New function.
8260 (aarch64_arch_setup): Call aarch64_linux_read_description.
8261 (regs_info): Rename to regs_info_aarch64.
8262 (aarch64_regs_info): Return right regs_info.
8263 (initialize_low_arch): Call initialize_low_arch_aarch32.
8264
bd9e6534
YQ
82652015-08-04 Yao Qi <yao.qi@linaro.org>
8266
8267 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8268 * linux-aarch32-low.c: New file.
8269 * linux-aarch32-low.h: New file.
8270 * linux-arm-low.c (arm_fill_gregset): Move it to
8271 linux-aarch32-low.c.
8272 (arm_store_gregset): Likewise.
8273 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8274 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8275 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8276 (regs_info): Rename to regs_info_arm.
8277 (arm_regs_info): Return regs_info_aarch32 if
8278 have_ptrace_getregset is 1 and target description is
8279 arm_with_neon or arm_with_vfpv3.
8280 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8281 Call initialize_low_arch_aarch32 instead.
8282
ded48a5e
YQ
82832015-08-04 Yao Qi <yao.qi@linaro.org>
8284
8285 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8286 * linux-low.c: ... here.
8287 * linux-low.h (have_ptrace_getregset): Declare it.
8288
96e9210f
PA
82892015-08-04 Pedro Alves <palves@redhat.com>
8290
8291 * thread-db.c (struct thread_db): Use new typedefs.
8292 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8293 CHK calls.
8294 (disable_thread_event_reporting): Cast result of dlsym to
8295 destination function pointer type.
8296 (thread_db_mourn): Use td_ta_delete_ftype.
8297
af60a1ef
SL
82982015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8299
8300 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8301 arch variant.
8302 (CDX_BREAKPOINT): Define for R2.
8303 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8304 (the_low_target): Add comments.
8305
e8b41681
YQ
83062015-07-30 Yao Qi <yao.qi@linaro.org>
8307
8308 * linux-arm-low.c (arm_hwcap): Remove it.
8309 (arm_read_description): New local variable arm_hwcap. Don't
8310 set arm_hwcap to zero.
8311
89abb039
YQ
83122015-07-30 Yao Qi <yao.qi@linaro.org>
8313
8314 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8315 Use regcache->tdesc instead.
8316 (arm_store_wmmxregset): Likewise.
8317 (arm_fill_vfpregset): Likewise.
8318 (arm_store_vfpregset): Likewise.
8319
deca266c
YQ
83202015-07-30 Yao Qi <yao.qi@linaro.org>
8321
8322 * linux-arm-low.c: Include arch/arm.h.
8323 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8324 (arm_store_gregset): Likewise.
8325
aa58a496
SM
83262015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8327
8328 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8329 ptrace's 4th parameter.
8330
50904b25
YQ
83312015-07-27 Yao Qi <yao.qi@linaro.org>
8332
8333 * configure.srv (case aarch64*-*-linux*): Don't set
8334 srv_linux_usrregs.
8335
5826e159
PA
83362015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8337
8338 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8339 sys/ptrace.h.
8340 * linux-arm-low.c: Likewise.
8341 * linux-cris-low.c: Likewise.
8342 * linux-crisv32-low.c: Likewise.
8343 * linux-low.c: Likewise.
8344 * linux-m68k-low.c: Likewise.
8345 * linux-mips-low.c: Likewise.
8346 * linux-nios2-low.c: Likewise.
8347 * linux-s390-low.c: Likewise.
8348 * linux-sparc-low.c: Likewise.
8349 * linux-tic6x-low.c: Likewise.
8350 * linux-tile-low.c: Likewise.
8351 * linux-x86-low.c: Likewise.
8352
54019719
PA
83532015-07-24 Pedro Alves <palves@redhat.com>
8354
8355 * config.in: Regenerate.
8356 * configure: Regenerate.
8357
eb7aa561
PA
83582015-07-24 Pedro Alves <palves@redhat.com>
8359
8360 * acinclude.m4: Include ../ptrace.m4.
8361 * configure.ac: Call GDB_AC_PTRACE.
8362 * config.in, configure: Regenerate.
8363
55d7b841
YQ
83642015-07-24 Yao Qi <yao.qi@linaro.org>
8365
8366 * linux-low.c (linux_create_inferior): Remove setting to
8367 proc->priv->new_inferior.
8368 (linux_attach): Likewise.
8369 (linux_low_filter_event): Likewise.
8370 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8371
c06cbd92
YQ
83722015-07-24 Yao Qi <yao.qi@linaro.org>
8373
8374 * linux-low.c (linux_arch_setup): New function.
8375 (linux_low_filter_event): If proc->tdesc is NULL and
8376 proc->attached is true, call the_low_target.arch_setup.
8377 Otherwise, keep status pending, and return.
8378 (linux_resume_one_lwp_throw): Don't call get_pc if
8379 thread->while_stepping isn't NULL. Don't call
8380 get_thread_regcache if proc->tdesc is NULL.
8381 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8382 (linux_target_ops): Install arch_setup.
8383 * server.c (start_inferior): Call the_target->arch_setup.
8384 * target.h (struct target_ops) <arch_setup>: New field.
8385 (target_arch_setup): New marco.
8386 * lynx-low.c (lynx_target_ops): Update.
8387 * nto-low.c (nto_target_ops): Update.
8388 * spu-low.c (spu_target_ops): Update.
8389 * win32-low.c (win32_target_ops): Update.
8390
5ae3ebba
YQ
83912015-07-24 Yao Qi <yao.qi@linaro.org>
8392
8393 * linux-low.c (linux_add_process): Don't set
8394 proc->priv->new_inferior.
8395 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8396 (linux_attach): Likewise.
8397
eb97750b
YQ
83982015-07-24 Yao Qi <yao.qi@linaro.org>
8399
8400 * server.c (start_inferior): Code refactor.
8401
51aee833
YQ
84022015-07-24 Yao Qi <yao.qi@linaro.org>
8403
8404 * server.c (process_serial_event): Set general_thread.
8405
af1b22f3
YQ
84062015-07-21 Yao Qi <yao.qi@linaro.org>
8407
8408 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8409 aarch64_linux_get_debug_reg_capacity.
8410
554717a3
YQ
84112015-07-17 Yao Qi <yao.qi@linaro.org>
8412
8413 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8414 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8415 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8416 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8417 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8418 (AARCH64_HWP_ALIGNMENT): Likewise.
8419 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8420 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8421 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8422 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8423 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8424 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8425 (struct aarch64_debug_reg_state): Likewise.
8426 (struct arch_lwp_info): Likewise.
8427 (aarch64_align_watchpoint): Likewise.
8428 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8429 (aarch64_watchpoint_length): Likewise.
8430 (aarch64_point_encode_ctrl_reg): Likewise
8431 (aarch64_point_is_aligned): Likewise.
8432 (aarch64_align_watchpoint): Likewise.
8433 (aarch64_linux_set_debug_regs):
8434 (aarch64_dr_state_insert_one_point): Likewise.
8435 (aarch64_dr_state_remove_one_point): Likewise.
8436 (aarch64_handle_breakpoint): Likewise.
8437 (aarch64_handle_aligned_watchpoint): Likewise.
8438 (aarch64_handle_unaligned_watchpoint): Likewise.
8439 (aarch64_handle_watchpoint): Likewise.
8440
c67ca4de
YQ
84412015-07-17 Yao Qi <yao.qi@linaro.org>
8442
8443 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8444 and don't aarch64_get_debug_reg_state. All callers update.
8445 (aarch64_handle_aligned_watchpoint): Likewise.
8446 (aarch64_handle_unaligned_watchpoint): Likewise.
8447 (aarch64_handle_watchpoint): Likewise.
8448 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8449 (aarch64_remove_point): Likewise.
8450
25abf979
YQ
84512015-07-17 Yao Qi <yao.qi@linaro.org>
8452
8453 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8454 debug_printf.
8455 (aarch64_handle_unaligned_watchpoint): Likewise.
8456
db1ff28b
JK
84572015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8458
8459 Revert the previous 3 commits:
8460 Move gdb_regex* to common/
8461 Move linux_find_memory_regions_full & co.
8462 gdbserver build-id attribute generator
8463
700ca40f
JK
84642015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8465 Jan Kratochvil <jan.kratochvil@redhat.com>
8466
8467 gdbserver build-id attribute generator.
8468 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8469 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8470 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8471 (find_phdr): New.
8472 (get_dynamic): Use find_pdhr to traverse program headers.
8473 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8474 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8475 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8476 (get_hex_build_id): New.
8477 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8478 to reply XML document.
8479
9904185c
JK
84802015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8481 Jan Kratochvil <jan.kratochvil@redhat.com>
8482
8483 * target.c: Include target/target-utils.h and fcntl.h.
8484 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8485 (target_fileio_read_stralloc): New functions.
8486
6e5b4429
JK
84872015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8488
8489 * Makefile.in (OBS): Add gdb_regex.o.
8490 (gdb_regex.o): New.
8491 * config.in: Rebuilt.
8492 * configure: Rebuilt.
8493
ddc98fbf
JK
84942015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8495 Jan Kratochvil <jan.kratochvil@redhat.com>
8496
8497 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8498 * Makefile.in (OBS): Add target-utils.o.
8499 (linux-maps.o, target-utils.o): New.
8500 * configure.srv (srv_linux_obj): Add linux-maps.o.
8501
e57bb7a0
PL
85022015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8503
8504 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8505 function, return 1.
8506 (the_low_target): Install it.
8507
586b02a9
PA
85082015-07-14 Pedro Alves <palves@redhat.com>
8509
8510 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8511 Instead, ignore ECHILD, and throw an error for other errnos.
8512
58c1b36c
PA
85132015-07-10 Pedro Alves <palves@redhat.com>
8514
8515 * event-loop.c (struct callback_event) <data>: Change type to
8516 gdb_client_data instance instead of gdb_client_data pointer.
8517 (append_callback_event): Adjust.
8518
421530db
PL
85192015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8520
8521 * linux-aarch64-low.c: Add comments for each linux_target_ops
8522 method. Remove comments already covered in target_ops and
8523 linux_target_ops definitions.
8524 (the_low_target): Add comments for each unimplemented method.
8525
c2d65f38
YQ
85262015-07-09 Yao Qi <yao.qi@linaro.org>
8527
8528 * linux-aarch64-low.c (aarch64_regmap): Remove.
8529 (aarch64_usrregs_info): Remove.
8530 (regs_info): Set field usrregs to NULL.
8531
b20a6524
MM
85322015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8533
8534 * linux-low.c: Include "rsp-low.h"
8535 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8536 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8537 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8538 (handle_btrace_enable_pt): New.
8539 (handle_btrace_general_set): Support "pt".
8540 (handle_btrace_conf_general_set): Support "pt:size".
8541
96c97461
PL
85422015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8543
8544 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8545 Z_PACKET_SW_BP.
8546
37d66942
PL
85472015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8548
8549 * linux-aarch64-low.c: Remove comment about endianness.
8550 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8551 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8552 memcmp.
8553
dc06243f
GB
85542015-06-24 Gary Benson <gbenson@redhat.com>
8555
8556 * linux-i386-ipa.c (stdint.h): Do not include.
8557 * lynx-i386-low.c (stdint.h): Likewise.
8558 * lynx-ppc-low.c (stdint.h): Likewise.
8559 * mem-break.c (stdint.h): Likewise.
8560 * thread-db.c (stdint.h): Likewise.
8561 * tracepoint.c (stdint.h): Likewise.
8562 * win32-low.c (stdint.h): Likewise.
8563
124e13d9
SM
85642015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8565
8566 * server.c (write_qxfer_response): Update call to
8567 remote_escape_output.
8568
909c2cda
JK
85692015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8570 Jan Kratochvil <jan.kratochvil@redhat.com>
8571
8572 Merge multiple hex conversions.
8573 * gdbreplay.c (tohex): Rename to 'fromhex'.
8574 (logchar): Use fromhex.
8575
24c05f46
JK
85762015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8577
8578 * server.c (handle_qxfer_libraries): Set `version' attribute for
8579 <library-list>.
8580
14d2069a
GB
85812015-06-10 Gary Benson <gbenson@redhat.com>
8582
8583 * target.h (struct target_ops) <multifs_open>: New field.
8584 <multifs_unlink>: Likewise.
8585 <multifs_readlink>: Likewise.
8586 * linux-low.c (nat/linux-namespaces.h): New include.
8587 (linux_target_ops): Initialize the_target->multifs_open,
8588 the_target->multifs_unlink and the_target->multifs_readlink.
8589 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8590 * hostio.c (hostio_fs_pid): New static variable.
8591 (hostio_handle_new_gdb_connection): New function.
8592 (handle_setfs): Likewise.
8593 (handle_open): Use the_target->multifs_open as appropriate.
8594 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8595 (handle_readlink): Use the_target->multifs_readlink as
8596 appropriate.
8597 (handle_vFile): Handle vFile:setfs packets.
8598 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8599 after target_handle_new_gdb_connection.
8600
4b8b5e72
GB
86012015-06-10 Gary Benson <gbenson@redhat.com>
8602
8603 * configure.ac (AC_CHECK_FUNCS): Add setns.
8604 * config.in: Regenerate.
8605 * configure: Likewise.
8606 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8607 (linux-namespaces.o): New rule.
8608 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8609
3ac2e371
GB
86102015-06-09 Gary Benson <gbenson@redhat.com>
8611
8612 * hostio.c (handle_open): Process mode argument with
8613 fileio_to_host_mode.
8614
ca9b78ce
YQ
86152015-06-01 Yao Qi <yao.qi@linaro.org>
8616
8617 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8618 * linux-x86-low.c: Likewise.
8619
bfacd19d
DB
86202015-05-28 Don Breazeal <donb@codesourcery.com>
8621
8622 * linux-low.c (handle_extended_wait): Initialize
8623 thread_info.last_resume_kind for new fork children.
8624
452003ef
PA
86252015-05-15 Pedro Alves <palves@redhat.com>
8626
8627 * target.h (target_handle_new_gdb_connection): Rewrite using if
8628 wrapped in do/while.
8629
1041a03c
JB
86302015-05-14 Joel Brobecker <brobecker@adacore.com>
8631
8632 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8633 * configure, config.in: Regenerate.
8634 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8635 Declare typedef.
8636
c269dbdb
DB
86372015-05-12 Don Breazeal <donb@codesourcery.com>
8638
8639 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8640 PTRACE_EVENT_VFORK_DONE.
8641 (linux_low_ptrace_options, extended_event_reported): Add vfork
8642 events.
8643 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8644 and "vforkdone" for RSP 'T' Stop Reply Packet.
8645 * server.h (report_vfork_events): Declare
8646 global variable.
8647
3a8a0396
DB
86482015-05-12 Don Breazeal <donb@codesourcery.com>
8649
8650 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8651 (the_low_target) <new_fork>: Initialize new member.
8652 * linux-arm-low.c (arm_new_fork): New function.
8653 (the_low_target) <new_fork>: Initialize new member.
8654 * linux-low.c (handle_extended_wait): Call new target function
8655 new_fork.
8656 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8657 * linux-mips-low.c (mips_add_watchpoint): New function
8658 extracted from mips_insert_point.
8659 (the_low_target) <new_fork>: Initialize new member.
8660 (mips_linux_new_fork): New function.
8661 (mips_insert_point): Call mips_add_watchpoint.
8662 * linux-x86-low.c (x86_linux_new_fork): New function.
8663 (the_low_target) <new_fork>: Initialize new member.
8664
de0d863e
DB
86652015-05-12 Don Breazeal <donb@codesourcery.com>
8666
8667 * linux-low.c (handle_extended_wait): Implement return value,
8668 rename argument 'event_child' to 'event_lwp', handle
8669 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8670 (linux_low_ptrace_options): New function.
8671 (linux_low_filter_event): Call linux_low_ptrace_options,
8672 use different argument fo linux_enable_event_reporting,
8673 use return value from handle_extended_wait.
8674 (extended_event_reported): New function.
8675 (linux_wait_1): Call extended_event_reported and set
8676 status to report fork events.
8677 (linux_write_memory): Add pid to debug message.
8678 (reset_lwp_ptrace_options_callback): New function.
8679 (linux_handle_new_gdb_connection): New function.
8680 (linux_target_ops): Initialize new structure member.
8681 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8682 * lynx-low.c: Initialize new structure member.
8683 * remote-utils.c (prepare_resume_reply): Implement stop reason
8684 "fork" for "T" stop message.
8685 * server.c (handle_query): Call handle_new_gdb_connection.
8686 * server.h (report_fork_events): Declare global flag.
8687 * target.h (struct target_ops) <handle_new_gdb_connection>:
8688 New member.
8689 (target_handle_new_gdb_connection): New macro.
8690 * win32-low.c: Initialize new structure member.
8691
ddcbc397
DB
86922015-05-12 Don Breazeal <donb@codesourcery.com>
8693
8694 * mem-break.c (APPEND_TO_LIST): Define macro.
8695 (clone_agent_expr): New function.
8696 (clone_one_breakpoint): New function.
8697 (clone_all_breakpoints): New function.
8698 * mem-break.h: Declare new functions.
8699
89245bc0
DB
87002015-05-12 Don Breazeal <donb@codesourcery.com>
8701
8702 * linux-low.c (linux_supports_fork_events): New function.
8703 (linux_supports_vfork_events): New function.
8704 (linux_target_ops): Initialize new structure members.
8705 (initialize_low): Call linux_check_ptrace_features.
8706 * lynx-low.c (lynx_target_ops): Initialize new structure
8707 members.
8708 * server.c (report_fork_events, report_vfork_events):
8709 New global flags.
8710 (handle_query): Add new features to qSupported packet and
8711 response.
8712 (captured_main): Initialize new global variables.
8713 * target.h (struct target_ops) <supports_fork_events>:
8714 New member.
8715 <supports_vfork_events>: New member.
8716 (target_supports_fork_events): New macro.
8717 (target_supports_vfork_events): New macro.
8718 * win32-low.c (win32_target_ops): Initialize new structure
8719 members.
8720
835205d0
GB
87212015-05-12 Gary Benson <gbenson@redhat.com>
8722
8723 * server.c (handle_qxfer_exec_file): Use current process
8724 if annex is empty.
8725
21e94bd9
SL
87262015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8727
8728 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8729 Remove HAVE_PTRACE_GETREGS conditionals.
8730 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8731 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8732
45614f15
YQ
87332015-05-08 Yao Qi <yao.qi@linaro.org>
8734
8735 * linux-low.c (linux_supports_conditional_breakpoints): New
8736 function.
8737 (linux_target_ops): Install new target method.
8738 * lynx-low.c (lynx_target_ops): Install NULL hook for
8739 supports_conditional_breakpoints.
8740 * nto-low.c (nto_target_ops): Likewise.
8741 * spu-low.c (spu_target_ops): Likewise.
8742 * win32-low.c (win32_target_ops): Likewise.
8743 * server.c (handle_query): Check
8744 target_supports_conditional_breakpoints.
8745 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8746 New field.
8747 (target_supports_conditional_breakpoints): New macro.
8748
80ad801e
PA
87492015-05-06 Pedro Alves <palves@redhat.com>
8750
8751 PR server/18081
8752 * server.c (start_inferior): If the process exits, mourn it.
8753
819843c7
GB
87542015-04-21 Gary Benson <gbenson@redhat.com>
8755
8756 * hostio.c (fileio_open_flags_to_host): Factored out to
8757 fileio_to_host_openflags in common/fileio.c. Single use
8758 updated.
8759
a2d5a9d7
MF
87602015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8761
8762 * linux-xtensa-low.c (xtensa_fill_gregset)
8763 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8764 XCHAL_HAVE_LOOP.
8765
deb44829
MF
87662015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8767
8768 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8769 (regs_info): Replace usrregs pointer with NULL.
8770
e57f1de3
GB
87712015-04-17 Gary Benson <gbenson@redhat.com>
8772
8773 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8774 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8775 * server.c (handle_qxfer_exec_file): New function.
8776 (qxfer_packets): Add exec-file entry.
8777 (handle_query): Report qXfer:exec-file:read as supported packet.
8778
62828379
RN
87792015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8780
8781 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8782
b88bb450
GB
87832015-04-09 Gary Benson <gbenson@redhat.com>
8784
8785 * hostio-errno.c (errno_to_fileio_error): Remove function.
8786 Update caller to use remote_fileio_to_fio_error.
8787
c8f4bfdd
YQ
87882015-04-09 Yao Qi <yao.qi@linaro.org>
8789
8790 * linux-low.c (linux_insert_point): Call
8791 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8792 (linux_remove_point): Call remove_memory_breakpoint if type is
8793 raw_bkpt_type_sw.
8794 * linux-x86-low.c (x86_insert_point): Don't call
8795 insert_memory_breakpoint.
8796 (x86_remove_point): Don't call remove_memory_breakpoint.
8797
41f98f02
PA
87982015-04-01 Pedro Alves <palves@redhat.com>
8799 Cleber Rosa <crosa@redhat.com>
8800
8801 * server.c (gdbserver_usage): Reorganize and extend the usage
8802 message.
8803
2bf6fb9d
PA
88042015-03-24 Pedro Alves <palves@redhat.com>
8805
8806 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8807 output. Also dump TRAP_TRACE.
8808 (linux_low_filter_event): In debug output, distinguish a
8809 resume_stop SIGSTOP from a delayed SIGSTOP.
8810
369f6daa
GB
88112015-03-24 Gary Benson <gbenson@redhat.com>
8812
8813 * linux-x86-low.c (x86_linux_new_thread): Moved to
8814 nat/x86-linux.c.
8815 (x86_linux_prepare_to_resume): Likewise.
8816
8e5d4070
GB
88172015-03-24 Gary Benson <gbenson@redhat.com>
8818
8819 * Makefile.in (x86-linux-dregs.o): New rule.
8820 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8821 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8822 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8823 (x86_linux_dr_get): Likewise.
8824 (x86_linux_dr_set): Likewise.
8825 (update_debug_registers_callback): Likewise.
8826 (x86_linux_dr_set_addr): Likewise.
8827 (x86_linux_dr_get_addr): Likewise.
8828 (x86_linux_dr_set_control): Likewise.
8829 (x86_linux_dr_get_control): Likewise.
8830 (x86_linux_dr_get_status): Likewise.
8831 (x86_linux_update_debug_registers): Likewise.
8832
2b95d440
GB
88332015-03-24 Gary Benson <gbenson@redhat.com>
8834
8835 * linux-x86-low.c (x86_linux_update_debug_registers):
8836 New function, factored out from...
8837 (x86_linux_prepare_to_resume): ...this.
8838
14b0bc68
GB
88392015-03-24 Gary Benson <gbenson@redhat.com>
8840
8841 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8842 (x86_linux_dr_set): Likewise.
8843 (update_debug_registers_callback): Likewise.
8844 (x86_linux_dr_set_addr): Likewise.
8845 (x86_linux_dr_get_addr): Likewise.
8846 (x86_linux_dr_set_control): Likewise.
8847 (x86_linux_dr_get_control): Likewise.
8848 (x86_linux_dr_get_status): Likewise.
8849 (x86_linux_prepare_to_resume): Likewise.
8850
5dfe6ca8
GB
88512015-03-24 Gary Benson <gbenson@redhat.com>
8852
8853 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8854 Use perror_with_name. Pass string through gettext.
8855 (x86_linux_dr_set): Likewise.
8856
d33472ad
GB
88572015-03-24 Gary Benson <gbenson@redhat.com>
8858
8859 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8860 (x86_linux_dr_set_addr): ...this.
8861 (x86_dr_low_get_addr): Rename to...
8862 (x86_linux_dr_get_addr): ...this.
8863 (x86_dr_low_set_control): Rename to...
8864 (x86_linux_dr_set_control): ...this.
8865 (x86_dr_low_get_control): Rename to...
8866 (x86_linux_dr_get_control): ...this.
8867 (x86_dr_low_get_status): Rename to...
8868 (x86_linux_dr_get_status): ...this.
8869 (x86_dr_low): Update with new function names.
8870
4b134ca1
GB
88712015-03-24 Gary Benson <gbenson@redhat.com>
8872
8873 * Makefile.in (x86-linux.o): New rule.
8874 * configure.srv: Add x86-linux.o to relevant targets.
8875 * linux-low.c (lwp_set_arch_private_info): New function.
8876 (lwp_arch_private_info): Likewise.
8877 * linux-x86-low.c: Include nat/x86-linux.h.
8878 (arch_lwp_info): Removed structure.
8879 (update_debug_registers_callback):
8880 Use lwp_set_debug_registers_changed.
8881 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8882 and lwp_set_debug_registers_changed.
8883 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8884
34c703da
GB
88852015-03-24 Gary Benson <gbenson@redhat.com>
8886
8887 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8888 * linux-arm-low.c (arm_new_thread): Likewise.
8889 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8890 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8891 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8892 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8893
cff068da
GB
88942015-03-24 Gary Benson <gbenson@redhat.com>
8895
8896 * linux-low.c (ptid_of_lwp): New function.
8897 (lwp_is_stopped): Likewise.
8898 (lwp_stop_reason): Likewise.
8899 * linux-x86-low.c (update_debug_registers_callback):
8900 Use lwp_is_stopped.
8901 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8902 lwp_stop_reason.
8903
b2f7c7e8
GB
89042015-03-24 Gary Benson <gbenson@redhat.com>
8905
8906 * linux-low.h (linux_stop_lwp): Remove declaration.
8907
6d4ee8c6
GB
89082015-03-24 Gary Benson <gbenson@redhat.com>
8909
8910 * linux-low.h: Include nat/linux-nat.h.
8911 * linux-low.c (iterate_over_lwps_args): New structure.
8912 (iterate_over_lwps_filter): New function.
8913 (iterate_over_lwps): Likewise.
8914 * linux-x86-low.c (update_debug_registers_callback):
8915 Update signature to what iterate_over_lwps expects.
8916 Remove PID check that iterate_over_lwps now performs.
8917 (x86_dr_low_set_addr): Use iterate_over_lwps.
8918 (x86_dr_low_set_control): Likewise.
8919
70a0bb6b
GB
89202015-03-24 Gary Benson <gbenson@redhat.com>
8921
8922 * linux-x86-low.c (x86_debug_reg_state): New function.
8923 (x86_linux_prepare_to_resume): Use the above.
8924
7b669087
GB
89252015-03-24 Gary Benson <gbenson@redhat.com>
8926
8927 * linux-low.c (current_lwp_ptid): New function.
8928 * linux-x86-low.c: Include nat/linux-nat.h.
8929 (x86_dr_low_get_addr): Use current_lwp_ptid.
8930 (x86_dr_low_get_control): Likewise.
8931 (x86_dr_low_get_status): Likewise.
8932
eef49a3d
PA
89332015-03-20 Pedro Alves <palves@redhat.com>
8934
8935 * tracepoint.c (cmd_qtstatus): Make "str" const.
8936
b2333d22
PA
89372015-03-20 Pedro Alves <palves@redhat.com>
8938
8939 * server.c (handle_general_set): Make "req_str" const.
8940
23f238d3
PA
89412015-03-19 Pedro Alves <palves@redhat.com>
8942
8943 * linux-low.c (linux_resume_one_lwp): Rename to ...
8944 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8945 instead call perror_with_name.
8946 (check_ptrace_stopped_lwp_gone): New function.
8947 (linux_resume_one_lwp): Reimplement as wrapper around
8948 linux_resume_one_lwp_throw that swallows errors if the LWP is
8949 gone.
8950
91baf43f
PA
89512015-03-19 Pedro Alves <palves@redhat.com>
8952
8953 * linux-low.c (count_events_callback, select_event_lwp_callback):
8954 No longer check whether the thread has resume_stop as last resume
8955 kind.
8956
8bf3b159
PA
89572015-03-19 Pedro Alves <palves@redhat.com>
8958
8959 * linux-low.c (count_events_callback, select_event_lwp_callback):
8960 Use the lwp's status_pending_p field, not the thread's.
8961
b90fc188
PA
89622015-03-19 Pedro Alves <palves@redhat.com>
8963
8964 * linux-low.c (select_event_lwp_callback): Update comments to
8965 no longer mention SIGTRAP.
8966
464b0089
GB
89672015-03-18 Gary Benson <gbenson@redhat.com>
8968
8969 * server.c (handle_query): Do not report vFile:fstat as supported.
8970
aa9e327f
GB
89712015-03-11 Gary Benson <gbenson@redhat.com>
8972
8973 * hostio.c (sys/types.h): New include.
8974 (sys/stat.h): Likewise.
8975 (common-remote-fileio.h): Likewise.
8976 (handle_fstat): New function.
8977 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 8978
791c0056
GB
89792015-03-11 Gary Benson <gbenson@redhat.com>
8980
8981 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8982 struct stat.st_blocks and struct stat.st_blksize.
8983 * configure: Regenerate.
8984 * config.in: Likewise.
8985 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8986 (OBS): Add common-remote-fileio.o.
8987 (common-remote-fileio.o): New rule.
8988
9a9df970
PA
89892015-03-09 Pedro Alves <palves@redhat.com>
8990
8991 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8992 'struct sockaddr' pointer in 'accept' call.
8993
9eb1356e
PA
89942015-03-09 Pedro Alves <palves@redhat.com>
8995
8996 Revert:
8997 2015-03-07 Pedro Alves <palves@redhat.com>
8998 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8999 or <winsock2.h> here. Instead include "gdb_socket.h".
9000 (remote_open): Use union gdb_sockaddr_u.
9001 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9002 or <winsock2.h> here. Instead include "gdb_socket.h".
9003 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9004 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9005 or <sys/un.h>.
9006 (init_named_socket, gdb_agent_helper_thread): Use union
9007 gdb_sockaddr_u.
9008
aac331e4
PA
90092015-03-07 Pedro Alves <palves@redhat.com>
9010
9011 * configure.ac (build_warnings): Move
9012 -Wdeclaration-after-statement to the C-specific set.
9013 * configure: Regenerate.
9014
366c75fc
PA
90152015-03-07 Pedro Alves <palves@redhat.com>
9016
9017 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9018 or <winsock2.h> here. Instead include "gdb_socket.h".
9019 (remote_open): Use union gdb_sockaddr_u.
9020 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9021 or <winsock2.h> here. Instead include "gdb_socket.h".
9022 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9023 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9024 or <sys/un.h>.
9025 (init_named_socket, gdb_agent_helper_thread): Use union
9026 gdb_sockaddr_u.
9027
492d29ea
PA
90282015-03-07 Pedro Alves <palves@redhat.com>
9029
9030 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9031 instead.
9032
60a191ed
YQ
90332015-03-06 Yao Qi <yao.qi@linaro.org>
9034
9035 * linux-aarch64-low.c (aarch64_insert_point): Use
9036 show_debug_regs as a boolean.
9037 (aarch64_remove_point): Likewise.
9038
f5771b1d
PA
90392015-03-05 Pedro Alves <palves@redhat.com>
9040
9041 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9042 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9043 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9044 * nto-low.c (nto_target_ops): Likewise.
9045 * spu-low.c (spu_target_ops): Likewise.
9046 * win32-low.c (win32_target_ops): Likewise.
9047
3e572f71
PA
90482015-03-04 Pedro Alves <palves@redhat.com>
9049
72f4393d 9050 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
9051 Decide whether a breakpoint triggered based on the SIGTRAP's
9052 siginfo.si_code.
72f4393d
L
9053 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9054 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
9055 (linux_low_filter_event): Check for breakpoints before checking
9056 watchpoints.
9057 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9058 siginfo.si_code.
72f4393d
L
9059 (linux_stopped_by_sw_breakpoint)
9060 (linux_supports_stopped_by_sw_breakpoint)
9061 (linux_stopped_by_hw_breakpoint)
9062 (linux_supports_stopped_by_hw_breakpoint): New functions.
9063 (linux_target_ops): Install new target methods.
3e572f71 9064
1ec68e26
PA
90652015-03-04 Pedro Alves <palves@redhat.com>
9066
9067 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9068 * server.c (swbreak_feature, hwbreak_feature): New globals.
9069 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9070 (captured_main): Clear swbreak_feature and hwbreak_feature.
9071 * server.h (swbreak_feature, hwbreak_feature): Declare.
9072 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9073 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9074 supports_stopped_by_hw_breakpoint>: New fields.
9075 (target_supports_stopped_by_sw_breakpoint)
9076 (target_stopped_by_sw_breakpoint)
9077 (target_supports_stopped_by_hw_breakpoint)
9078 (target_stopped_by_hw_breakpoint): Declare.
9079
15c66dd6
PA
90802015-03-04 Pedro Alves <palves@redhat.com>
9081
9082 enum lwp_stop_reason -> enum target_stop_reason
9083 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9084 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9085 (linux_wait_1, stuck_in_jump_pad_callback)
9086 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9087 (linux_stopped_by_watchpoint):
9088 * linux-low.h (enum lwp_stop_reason): Delete.
9089 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9090 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9091
98fc70d6
YQ
90922015-03-04 Yao Qi <yao.qi@linaro.org>
9093
9094 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9095
dd2ac174
GB
90962015-03-03 Gary Benson <gbenson@redhat.com>
9097
9098 * hostio.c (handle_vFile): Fix prefix lengths.
9099
d68e53f4
MM
91002015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9101
9102 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9103 ptr_bits.
9104
bf2d68ab
AA
91052015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9106
9107 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9108 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9109 (clean): Add "rm -f" for above C files.
9110 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9111 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9112 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9113 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9114 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9115 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9116 (init_registers_s390x_vx_linux64)
9117 (init_registers_s390x_tevx_linux64)
9118 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9119 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9120 declarations.
9121 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9122 (s390_store_vxrs_high): New functions.
9123 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9124 NT_S390_VXRS_HIGH.
9125 (s390_arch_setup): Add logic for selecting one of the new target
9126 descriptions. Activate the new vector regsets if applicable.
9127 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9128 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9129 and init_registers_s390x_tevx_linux64.
9130
c966a859
PA
91312015-03-01 Pedro Alves <palves@redhat.com>
9132
9133 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9134 parameter.
9135
4180215b
PA
91362015-02-27 Pedro Alves <palves@redhat.com>
9137
9138 * linux-x86-low.c (u_debugreg_offset): New function.
9139 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9140
749bab01
PA
91412015-02-27 Pedro Alves <palves@redhat.com>
9142
9143 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9144 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9145 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9146 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9147 (ps_lsetfpregs, ps_getpid)
9148 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9149 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9150 (ps_lsetxregs, ps_plog): Declare.
9151
3c14e5a3
PA
91522015-02-27 Pedro Alves <palves@redhat.com>
9153
9154 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9155 IP_AGENT_EXPORT_FUNC.
9156 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9157 IP_AGENT_EXPORT_FUNC.
9158 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9159 (IP_AGENT_EXPORT): Delete.
9160 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9161 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9162 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9163 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9164 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9165 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9166 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9167 (traceframe_read_count, traceframe_write_count)
9168 (traceframes_created, trace_state_variables, get_raw_reg)
9169 (get_trace_state_variable_value, set_trace_state_variable_value)
9170 (ust_loaded, helper_thread_id, cmd_buf): Use
9171 IPA_SYM_EXPORTED_NAME.
9172 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9173 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9174 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9175 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9176 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9177 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9178 EXTERN_C_PUSH/EXTERN_C_POP.
9179 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9180 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9181 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9182 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9183 (traceframe_write_count, traceframe_read_count)
9184 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9185 (about_to_request_buffer_space, get_trace_state_variable_value)
9186 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9187 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9188 EXTERN_C_PUSH/EXTERN_C_POP.
9189 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9190 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9191 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9192 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9193 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9194 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9195 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9196 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9197 Define.
9198 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9199 (IP_AGENT_EXPORT_VAR_DECL): Define.
9200 (tracing): Declare.
9201 (gdb_agent_get_raw_reg): Declare.
9202
fe978cb0
PA
92032015-02-27 Tom Tromey <tromey@redhat.com>
9204 Pedro Alves <palves@redhat.com>
9205
9206 Rename symbols whose names are reserved C++ keywords throughout.
9207
3bc3d82a
PA
92082015-02-27 Pedro Alves <palves@redhat.com>
9209
9210 * Makefile.in (COMPILER): New, get it from autoconf.
9211 (CXX): Get from autoconf instead.
9212 (COMPILE.pre): Use COMPILER.
9213 (CC-LD): Rename to ...
9214 (CC_LD): ... this. Use COMPILER.
9215 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9216 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9217 * acinclude.m4: Include build-with-cxx.m4.
9218 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9219 Disable -Werror by default if building in C++ mode.
9220 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9221 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9222 the C++ compiler. Save/restore CXXFLAGS too.
9223 * configure: Regenerate.
9224
07697489
PA
92252015-02-27 Pedro Alves <palves@redhat.com>
9226
9227 * acinclude.m4: Include libiberty.m4.
9228 * configure.ac: Call libiberty_INIT.
9229 * config.in, configure: Regenerate.
9230
9beb7c4e
PA
92312015-02-26 Pedro Alves <palves@redhat.com>
9232
9233 * linux-low.c (linux_wait_1): When incrementing the PC past a
9234 program breakpoint always use the_low_target.breakpoint_len as
9235 increment, rather than the maximum between that and
9236 the_low_target.decr_pc_after_break.
9237
8090aef2
PA
92382015-02-23 Pedro Alves <palves@redhat.com>
9239
9240 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9241 thread was doing a step-over; always adjust the PC if
9242 we stepped over a permanent breakpoint.
9243 (linux_wait_1): If we stepped over breakpoint that was on top of a
9244 permanent breakpoint, manually advance the PC past it.
9245
bc9540e8
PA
92462015-02-23 Pedro Alves <palves@redhat.com>
9247
9248 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9249 modes.
9250 (x86_fill_gregset, x86_store_gregset): Use it when handling
9251 $orig_eax.
9252
2db9a427
PA
92532015-02-20 Pedro Alves <palves@redhat.com>
9254
9255 * thread-db.c: Include "nat/linux-procfs.h".
9256 (thread_db_init): Skip listing new threads if the kernel supports
9257 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9258
afa8d396
PA
92592015-02-20 Pedro Alves <palves@redhat.com>
9260
9261 * linux-low.c (status_pending_p_callback): Use ptid_match.
9262
c9587f88
AT
92632015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9264
9265 PR breakpoints/16812
9266 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9267 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9268 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9269
b05ec7a5
AT
92702015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9271
9272 PR breakpoints/15956
9273 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9274
d33501a5
MM
92752015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9276
9277 * linux-low.c (linux_low_btrace_conf): Print size.
9278 * server.c (handle_btrace_conf_general_set): New.
9279 (hanle_general_set): Call handle_btrace_conf_general_set.
9280 (handle_query): Report Qbtrace-conf:bts:size as supported.
9281
f4abbc16
MM
92822015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9283
9284 * linux-low.c (linux_low_enable_btrace): Update parameters.
9285 (linux_low_btrace_conf): New.
9286 (linux_target_ops)<to_btrace_conf>: Initialize.
9287 * server.c (current_btrace_conf): New.
9288 (handle_btrace_enable): Rename to ...
9289 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
9290 to target_enable_btrace. Update comment. Update users.
9291 (handle_qxfer_btrace_conf): New.
9292 (qxfer_packets): Add btrace-conf entry.
9293 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9294 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9295 (target_ops)<read_btrace_conf>: New.
9296 (target_enable_btrace): Update parameters.
9297 (target_read_btrace_conf): New.
9298
043c3577
MM
92992015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9300
9301 * server.c (handle_btrace_general_set): Remove call to
9302 target_supports_btrace.
9303 (supported_btrace_packets): New.
9304 (handle_query): Call supported_btrace_packets.
9305 * target.h: include btrace-common.h.
9306 (btrace_target_info): Removed.
9307 (supports_btrace, target_supports_btrace): Update parameters.
9308
734b0e4b
MM
93092015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9310
9311 * Makefile.in (SFILES): Add common/btrace-common.c.
9312 (OBS): Add common/btrace-common.o.
9313 (btrace-common.o): Add build rules.
9314 * linux-low: Include btrace-common.h.
9315 (linux_low_read_btrace): Use struct btrace_data. Call
9316 btrace_data_init and btrace_data_fini.
9317
d6c146e9
PA
93182015-02-06 Pedro Alves <palves@redhat.com>
9319
9320 * thread-db.c (find_new_threads_callback): Add debug output.
9321
20ba1ce6
PA
93222015-02-04 Pedro Alves <palves@redhat.com>
9323
9324 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9325 (resume_stopped_resumed_lwps): New function.
9326 (linux_wait_for_event_filtered): Use it.
9327
8cc73a39
SDJ
93282015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9329
9330 * Makefile.in (SFILES): Add linux-personality.c.
9331 (linux-personality.o): New rule.
9332 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9333 list of objects to be built.
9334 * linux-low.c: Include nat/linux-personality.h.
9335 (linux_create_inferior): Remove code to disable address space
9336 randomization (moved to ../nat/linux-personality.c). Create
9337 cleanup to disable address space randomization.
9338
fb23d554
SDJ
93392015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9340
9341 * Makefile.in (posix-strerror.o): New rule.
9342 (mingw-strerror.o): Likewise.
9343 * configure: Regenerated.
9344 * configure.ac: Source file ../common/common.host. Initialize new
9345 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9346
cdf43629
YQ
93472015-01-14 Yao Qi <yao@codesourcery.com>
9348
9349 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9350 (ppc-linux.o): New rule.
9351 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9352 * configure.ac: AC_CHECK_FUNCS(getauxval).
9353 * config.in: Re-generated.
9354 * configure: Re-generated.
9355 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9356 ppc64_64bit_inferior_p
9357
514c5338
YQ
93582015-01-14 Yao Qi <yao@codesourcery.com>
9359
9360 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9361 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9362 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9363 (PT_ORIG_R3, PT_TRAP): Likewise.
9364 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9365 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9366 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9367
3368c1e5
JB
93682015-01-10 Joel Brobecker <brobecker@adacore.com>
9369
9370 * i387-fp.c (i387_cache_to_xsave): In look over
9371 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9372 zmmh_low_space field by use of zmmh_high_space.
9373
582511be
PA
93742015-01-09 Pedro Alves <palves@redhat.com>
9375
9376 * linux-low.c (step_over_bkpt): Move higher up in the file.
9377 (handle_extended_wait): Don't store the stop_pc here.
9378 (get_stop_pc): Adjust comments and rename to ...
9379 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9380 stopped for a software breakpoint or hardware breakpoint.
9381 (thread_still_has_status_pending_p): New function.
9382 (status_pending_p_callback): Use
9383 thread_still_has_status_pending_p. If the event is no longer
9384 interesting, resume the LWP.
9385 (handle_tracepoints): Add assert.
9386 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9387 (wstatus_maybe_breakpoint): New function.
9388 (cancel_breakpoint): Delete function.
9389 (check_stopped_by_watchpoint): New function, factored out from
9390 linux_low_filter_event.
9391 (lp_status_maybe_breakpoint): Delete function.
9392 (linux_low_filter_event): Remove filter_ptid argument.
9393 Leave thread group exits pending here. Store the LWP's stop PC.
9394 Always leave events pending.
9395 (linux_wait_for_event_filtered): Pull all events out of the
9396 kernel, and leave them all pending.
9397 (count_events_callback, select_event_lwp_callback): Consider all
9398 events.
9399 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9400 (select_event_lwp): Only give preference to the stepping LWP in
9401 all-stop mode. Adjust comments.
9402 (ignore_event): New function.
9403 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9404 references to cancel_breakpoints. Adjust to renames. Also give
9405 equal priority to all LWPs that have had events in non-stop mode.
9406 If reporting a software breakpoint event, unadjust the LWP's PC.
9407 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9408 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9409 Adjust.
9410 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9411 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9412 (linux_stopped_by_watchpoint): Adjust.
9413 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9414 * linux-low.h (enum lwp_stop_reason): New.
9415 (struct lwp_info) <stop_pc>: Adjust comment.
9416 <stopped_by_watchpoint>: Delete field.
9417 <stop_reason>: New field.
9418 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9419 * mem-break.c (software_breakpoint_inserted_here)
9420 (hardware_breakpoint_inserted_here): New function.
9421 * mem-break.h (software_breakpoint_inserted_here)
9422 (hardware_breakpoint_inserted_here): Declare.
9423 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9424 (cancel_breakpoints): Delete.
9425 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9426 (upload_fast_traceframes): Remove references to
9427 cancel_breakpoints.
9428
a33e3959
PA
94292015-01-09 Pedro Alves <palves@redhat.com>
9430
9431 * thread-db.c (find_new_threads_callback): Ignore thread if the
9432 kernel thread ID is -1.
9433
8784d563
PA
94342015-01-09 Pedro Alves <palves@redhat.com>
9435
9436 * linux-low.c (linux_attach_fail_reason_string): Move to
9437 nat/linux-ptrace.c, and rename.
9438 (linux_attach_lwp): Update comment.
9439 (attach_proc_task_lwp_callback): New function.
9440 (linux_attach): Adjust to rename and use
9441 linux_proc_attach_tgid_threads.
9442 (linux_attach_fail_reason_string): Delete declaration.
9443
76f2b779
JB
94442015-01-01 Joel Brobecker <brobecker@adacore.com>
9445
9446 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9447 * server.c (gdbserver_version): Likewise.
9448
fafcc06a
SDJ
94492014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9450
9451 * remote-utils.c: Include ctype.h.
9452 (input_interrupt): Explicitly handle the case when the char
9453 received is the NUL byte. Improve the printing of non-ASCII
9454 characters.
9455
beed38b8
JB
94562014-12-16 Joel Brobecker <brobecker@adacore.com>
9457
9458 * linux-low.c (linux_low_filter_event): Update call to
9459 linux_enable_event_reporting following the addition of
9460 a new parameter to that function.
9461
bf330350
CU
94622014-12-16 Catalin Udma <catalin.udma@freescale.com>
9463
9464 PR server/17457
9465 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9466 (AARCH64_FPCR_REGNO): Likewise.
9467 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9468 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9469 (aarch64_store_fpregset): Likewise.
9470
5227d625
JB
94712014-12-15 Joel Brobecker <brobecker@adacore.com>
9472
9473 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9474 Remove FIXME comment about assumption about N.
9475
f93b65a0
JB
94762014-12-13 Joel Brobecker <brobecker@adacore.com>
9477
9478 * configure.ac: If large-file support is disabled in GDBserver,
9479 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9480 * configure: Regenerate.
9481
e5a9158d
AA
94822014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9483
9484 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9485 warning upon ENODATA from ptrace.
9486 * linux-s390-low.c (s390_store_tdb): New.
9487 (s390_regsets): Add regset for NT_S390_TDB.
9488
feea5f36
AA
94892014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9490
9491 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9492 without a fill_function.
9493 * linux-s390-low.c (s390_fill_last_break): Remove.
9494 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9495 (s390_arch_setup): Use regset's size instead of fill_function for
9496 loop end condition.
9497
098dbe61
AA
94982014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9499
9500 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9501 the regset's store function when ptrace returned an error.
9502 * regcache.c (get_thread_regcache): Invalidate register cache
9503 before fetching inferior's registers.
9504
28eef672
AA
95052014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9506
9507 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9508 while-loop as for-loop.
9509 (regsets_store_inferior_registers): Likewise.
9510
bdca27a2
YQ
95112014-11-28 Yao Qi <yao@codesourcery.com>
9512
9513 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9514 * config.in, configure: Re-generate.
9515 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9516 is defined.
9517
9c232dda
YQ
95182014-11-21 Yao Qi <yao@codesourcery.com>
9519
9520 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9521 (AC_CHECK_HEADERS): Remove malloc.h.
9522 * configure: Re-generated.
9523 * config.in: Re-generated.
9524 * server.h: Don't include alloca.h and malloc.h.
9525 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9526 Don't include malloc.h.
9527
43968415
JB
95282014-11-17 Joel Brobecker <brobecker@adacore.com>
9529
9530 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9531 corresponding ERRNO check in same block.
9532
40e91bc7
PA
95332014-11-12 Pedro Alves <palves@redhat.com>
9534
9535 * server.c (cont_thread): Update comment.
9536 (start_inferior, attach_inferior): No longer clear cont_thread.
9537 (handle_v_cont): No longer set cont_thread.
9538 (captured_main): Clear cont_thread each time a GDB connects.
9539
c2c118cf
PA
95402014-11-12 Pedro Alves <palves@redhat.com>
9541
9542 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9543 thread, and don't resume all threads if the Hc thread has exited.
9544
78708b7c
PA
95452014-11-12 Pedro Alves <palves@redhat.com>
9546
9547 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9548 the process group instead of to a specific LWP.
9549
a2abc7de
PA
95502014-10-15 Pedro Alves <palves@redhat.com>
9551
9552 PR server/17487
9553 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9554 parameter.
9555 (arm_set_thread_context): Delete.
9556 (the_low_target): Adjust.
9557 * win32-i386-low.c (debug_registers_changed)
9558 (debug_registers_used): Delete.
9559 (update_debug_registers_callback): New function.
9560 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9561 needing to update their debug registers.
9562 (win32_get_current_dr): New function.
9563 (x86_dr_low_get_addr, x86_dr_low_get_control)
9564 (x86_dr_low_get_status): Fetch the debug register from the thread
9565 record's context.
9566 (i386_initial_stuff): Adjust.
9567 (i386_get_thread_context): Remove current_event parameter. Don't
9568 clear debug_registers_changed nor copy DR values to
9569 debug_reg_state.
9570 (i386_set_thread_context): Delete.
9571 (i386_prepare_to_resume): New function.
9572 (i386_thread_added): Mark the thread as needing to update irs
9573 debug registers.
9574 (the_low_target): Remove i386_set_thread_context and install
9575 i386_prepare_to_resume.
9576 * win32-low.c (win32_get_thread_context): Adjust.
9577 (win32_set_thread_context): Use SetThreadContext
9578 directly.
9579 (win32_prepare_to_resume): New function.
9580 (win32_require_context): New function, factored out from ...
9581 (thread_rec): ... this.
9582 (continue_one_thread): Call win32_prepare_to_resume on each thread
9583 we're about to continue.
9584 (win32_resume): Call win32_prepare_to_resume on the event thread.
9585 * win32-low.h (struct win32_thread_info)
9586 <debug_registers_changed>: New field.
9587 (struct win32_target_ops): Change prototype of set_thread_context,
9588 delete set_thread_context and add prepare_to_resume.
9589 (win32_require_context): New declaration.
9590
a442d071
GB
95912014-10-08 Gary Benson <gbenson@redhat.com>
9592
9593 * server.h: Do not include common-exceptions.h.
9594
6f1947e8
GB
95952014-10-08 Gary Benson <gbenson@redhat.com>
9596
9597 * server.h: Do not include cleanups.h.
9598
63b434a4
JH
95992014-09-30 James Hogan <james.hogan@imgtec.com>
9600
9601 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9602 mips64-dsp-linux.c.
9603
c4d9ceb6
YQ
96042014-09-23 Yao Qi <yao@codesourcery.com>
9605
9606 * linux-low.c (lp_status_maybe_breakpoint): New function.
9607 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9608 (count_events_callback): Likewise.
9609 (select_event_lwp_callback): Likewise.
9610 (cancel_breakpoints_callback): Likewise.
9611
89a5711c
DB
96122014-09-19 Don Breazeal <donb@codesourcery.com>
9613
9614 * linux-low.c (handle_extended_wait): Call
9615 linux_ptrace_get_extended_event.
9616 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9617 linux_is_extended_waitstatus.
9618
bffc0964
JB
96192014-09-16 Joel Brobecker <brobecker@adacore.com>
9620
9621 * Makefile.in (CPPFLAGS): Define.
9622 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9623 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9624
0bfdf32f
GB
96252014-09-16 Gary Benson <gbenson@redhat.com>
9626
9627 * inferiors.h (current_inferior): Renamed as...
9628 (current_thread): New variable. All uses updated.
9629 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9630 (maybe_move_out_of_jump_pad): Likewise.
9631 (cancel_breakpoint): Likewise.
9632 (linux_low_filter_event): Likewise.
9633 (wait_for_sigstop): Likewise.
9634 (linux_resume_one_lwp): Likewise.
9635 (need_step_over_p): Likewise.
9636 (start_step_over): Likewise.
9637 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9638 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9639 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9640 and save_inferior as saved_thread.
9641 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9642 saved_thread.
9643 (regcache_invalidate_thread): Likewise.
9644 * remote-utils.c (prepare_resume_reply): Likewise.
9645 * thread-db.c (thread_db_get_tls_address): Likewise.
9646 (disable_thread_event_reporting): Likewise.
9647 (remove_thread_event_breakpoints): Likewise.
9648 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9649 as saved_thread.
9650 * target.h (set_desired_inferior): Renamed as...
9651 (set_desired_thread): New declaration. All uses updated.
9652 * server.c (myresume): Updated comment to reference thread instead
9653 of inferior.
9654 (handle_serial_event): Likewise.
9655 (handle_target_event): Likewise.
9656
361c8ade
GB
96572014-09-12 Tom Tromey <tromey@redhat.com>
9658 Gary Benson <gbenson@redhat.com>
9659
9660 * regcache.h: Include common-regcache.h.
9661 (regcache_read_pc): Don't declare.
9662 * regcache.c (get_thread_regcache_for_ptid): New function.
9663
bd9269f7
GB
96642014-09-11 Tom Tromey <tromey@redhat.com>
9665 Gary Benson <gbenson@redhat.com>
9666
9667 * symbol.c: New file.
9668 * Makefile.in (SFILES): Add symbol.c.
9669 (OBS): Add symbol.o.
9670
f8c1d06b
GB
96712014-09-11 Gary Benson <gbenson@redhat.com>
9672
9673 * target.c (target_stop_ptid, target_continue_ptid): New
9674 functions.
9675
721ec300
GB
96762014-09-11 Tom Tromey <tromey@redhat.com>
9677 Gary Benson <gbenson@redhat.com>
9678
9679 * target.h: Include target/target.h.
9680 * target.c (target_read_memory, target_read_uint32)
9681 (target_write_memory): New functions.
9682
c5e92cca
GB
96832014-09-11 Gary Benson <gbenson@redhat.com>
9684
9685 * server.h (debug_hw_points): Don't declare.
9686 * server.c (debug_hw_points): Don't define. Replace all uses
9687 with show_debug_regs.
9688 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9689 all uses with show_debug_regs.
9690
2e4bb98a
EBM
96912014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9692
9693 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9694 endianness into account.
9695 (ppc_supply_ptrace_register): Likewise.
9696
ac740bc7
JH
96972014-09-03 James Hogan <james.hogan@imgtec.com>
9698
9699 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9700 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9701
97ea6506
GB
97022014-09-03 Gary Benson <gbenson@redhat.com>
9703
9704 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9705 ALL_DEBUG_ADDRESS_REGISTERS.
9706
df7e5265
GB
97072014-09-02 Gary Benson <gbenson@redhat.com>
9708
9709 * i386-low.h: Renamed as...
9710 * x86-low.h: New file. All type, function and variable name
9711 prefixes changed from "i386_" to "x86_". All references updated.
9712 * i386-low.c: Renamed as...
9713 * x86-low.c: New file. All type, function and variable name
9714 prefixes changed from "i386_" to "x86_". All references updated.
9715
ed859da7
GB
97162014-09-02 Gary Benson <gbenson@redhat.com>
9717
9718 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9719 (x86_linux_new_thread): Likewise.
9720
860789c7
GB
97212014-08-29 Gary Benson <gbenson@redhat.com>
9722
9723 * server.h (setjmp.h): Do not include.
9724 (toplevel): Do not declare.
9725 (common-exceptions.h): Include.
9726 (cleanups.h): Likewise.
9727 * server.c (toplevel): Do not define.
9728 (exit_code): New static global.
9729 (detach_or_kill_for_exit_cleanup): New function.
9730 (main): New function. Original main renamed to...
9731 (captured_main): New function.
9732 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9733
ff55e1b5
GB
97342014-08-29 Gary Benson <gbenson@redhat.com>
9735
9736 * Makefile.in (SFILES): Add common/common-exceptions.c.
9737 (OBS): Add common-exceptions.o.
9738 (common-exceptions.o): New rule.
9739 * utils.c (prepare_to_throw_exception): New function.
9740
e9bcb658
GB
97412014-08-29 Gary Benson <gbenson@redhat.com>
9742
9743 * config.in: Regenerate.
9744 * configure: Likewise.
9745
e3180625
GB
97462014-08-29 Gary Benson <gbenson@redhat.com>
9747
9748 * Makefile.in (SFILES): Add common/cleanups.c.
9749 (OBS): cleanups.o.
9750 (cleanups.o): New rule.
9751
e3d6ba5d
GB
97522014-08-29 Gary Benson <gbenson@redhat.com>
9753
9754 * utils.c (internal_vwarning): New function.
9755
7096e886
GB
97562014-08-28 Gary Benson <gbenson@redhat.com>
9757
9758 * utils.h (fatal): Remove declaration.
9759 * utils.c (fatal): Remove function.
9760
14ce3192
GB
97612014-08-28 Gary Benson <gbenson@redhat.com>
9762
9763 * tracepoint.c (gdb_agent_init): Replace fatal with
9764 perror_with_name.
9765 (initialize_tracepoint): Likewise.
9766
50278d59
GB
97672014-08-28 Gary Benson <gbenson@redhat.com>
9768
9769 * remote-utils.c (remote_prepare): Replace fatal with error.
9770
aa96c426
GB
97712014-08-28 Gary Benson <gbenson@redhat.com>
9772
9773 * linux-low.c (linux_async): Replace fatal with warning.
9774 Tidy up and return.
9775 (linux_start_non_stop): Return -1 if linux_async failed.
9776
f7160e97
GB
97772014-08-28 Gary Benson <gbenson@redhat.com>
9778
9779 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9780 gdb_assert.
9781 (i386_dr_low_get_addr): Remove vague comment.
9782 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9783 gdb_assert.
9784
38e08fca
GB
97852014-08-28 Gary Benson <gbenson@redhat.com>
9786
9787 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9788 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9789 internal_error.
9790 (linux_resume_one_lwp): Likewise.
9791 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9792 gdb_assert.
9793 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9794 with internal_error.
9795 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9796 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9797 (find_register_by_name): Replace fatal with internal_error.
9798 (find_regno): Likewise.
9799 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9800 * thread-db.c (thread_db_create_event): Likewise.
9801 (thread_db_load_search): Likewise.
9802 (try_thread_db_load_1): Likewise.
9803 * tracepoint.c (get_jump_space_head): Replace fatal with
9804 internal_error.
9805 (claim_trampoline_space): Likewise.
9806 (have_fast_tracepoint_trampoline_buffer): Likewise.
9807 (cmd_qtstart): Likewise.
9808 (stop_tracing): Likewise.
9809 (fast_tracepoint_collecting): Likewise.
9810 (target_malloc): Likewise.
9811 (download_tracepoint): Likewise.
9812 (download_trace_state_variables): Replace check with gdb_assert.
9813 (upload_fast_traceframes): Replace fatal with internal_error.
9814
34abf635
GB
98152014-08-19 Tom Tromey <tromey@redhat.com>
9816 Gary Benson <gbenson@redhat.com>
9817
9818 * Makefile.in (SFILES): Add common/common-debug.c.
9819 (OBS): Add common-debug.o.
9820 (common-debug.o): New rule.
9821 * debug.h (debug_printf): Don't declare.
9822 * debug.c (debug_printf): Renamed and rewritten as...
9823 (debug_vprintf): New function.
9824
f6e94d78
GB
98252014-08-19 Gary Benson <gbenson@redhat.com>
9826
9827 * utils.h: Do not include print-utils.h.
9828
9239eeab
GB
98292014-08-19 Tom Tromey <tromey@redhat.com>
9830 Gary Benson <gbenson@redhat.com>
9831
9832 * server.h: Add static assertion.
9833 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9834
ef87c8bb
GB
98352014-08-19 Tom Tromey <tromey@redhat.com>
9836 Gary Benson <gbenson@redhat.com>
9837
9838 * Makefile.in (SFILES): Add common/errors.c.
9839 (OBS): Add errors.o.
9840 (IPA_OBS): Add errors-ipa.o.
9841 (errors.o): New rule.
9842 (errors-ipa.o): Likewise.
9843 * utils.h (perror_with_name, error, warning): Don't declare.
9844 * utils.c (warning): Renamed and rewritten as...
9845 (vwarning): New function.
9846 (error): Renamed and rewritten as...
9847 (verror): New function.
9848 (internal_error): Renamed and rewritten as...
9849 (internal_verror): New function.
9850
bb974a24
GB
98512014-08-07 Gary Benson <gbenson@redhat.com>
9852
9853 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9854 * configure: Regenerate.
9855 * config.in: Likewise.
9856 * server.h: Do not include errno.h.
9857 * event-loop.c: Likewise.
9858 * hostio-errno.c: Likewise.
9859 * linux-low.c: Likewise.
9860 * remote-utils.c: Likewise.
9861 * spu-low.c: Likewise.
9862 * utils.c: Likewise.
9863 * gdbreplay.c: Unconditionally include errno.h.
9864
6d3d12eb
GB
98652014-08-07 Gary Benson <gbenson@redhat.com>
9866
9867 * server.h: Do not include string.h.
9868 * event-loop.c: Likewise.
9869 * linux-low.c: Likewise.
9870 * regcache.c: Likewise.
9871 * remote-utils.c: Likewise.
9872 * spu-low.c: Likewise.
9873 * utils.c: Likewise.
9874
dccbb609
GB
98752014-08-07 Gary Benson <gbenson@redhat.com>
9876
9877 * server.h: Do not include gdb_assert.h.
9878
e76df0d0
GB
98792014-08-07 Gary Benson <gbenson@redhat.com>
9880
9881 * server.h: Do not include common-utils.h.
9882
4cb9c816
GB
98832014-08-07 Gary Benson <gbenson@redhat.com>
9884
9885 * server.h: Do not include ptid.h.
9886 * notif.h: Likewise.
9887
3995eeee
GB
98882014-08-07 Gary Benson <gbenson@redhat.com>
9889
9890 * server.h: Do not include gdb_locale.h.
9891
cb9f1a9b
GB
98922014-08-07 Gary Benson <gbenson@redhat.com>
9893
9894 * server.h: Do not include gdb/signals.h.
9895 * win32-low.c: Likewise.
9896
a5fceff8
GB
98972014-08-07 Gary Benson <gbenson@redhat.com>
9898
9899 * server.h: Do not include pathmax.h.
9900
b9391142
GB
99012014-08-07 Gary Benson <gbenson@redhat.com>
9902
9903 * server.h: Do not include libiberty.h.
9904 * linux-bfin-low.c: Likewise.
9905
0e443c87
GB
99062014-08-07 Gary Benson <gbenson@redhat.com>
9907
9908 * server.h: Do not include ansidecl.h.
9909
8ebb3f56
GB
99102014-08-07 Gary Benson <gbenson@redhat.com>
9911
9912 * linux-x86-low.c: Do not include stddef.h.
9913 * lynx-ppc-low.c: Likewise.
9914 * tracepoint.c: Likewise.
9915
8980bdf6
GB
99162014-08-07 Gary Benson <gbenson@redhat.com>
9917
9918 * server.h: Do not include stdarg.h.
9919 * nto-low.c: Likewise.
9920
d7096f71
GB
99212014-08-07 Gary Benson <gbenson@redhat.com>
9922
9923 * server.h: Do not include stdlib.h.
9924 * inferiors.c: Likewise.
9925 * linux-low.c: Likewise.
9926 * regcache.c: Likewise.
9927 * spu-low.c: Likewise.
9928 * tracepoint.c: Likewise.
9929 * utils.c: Likewise.
9930
d02f550d
GB
99312014-08-07 Gary Benson <gbenson@redhat.com>
9932
9933 * server.h: Do not include stdio.h.
9934 * linux-low.c: Likewise.
9935 * remote-utils.c: Likewise.
9936 * spu-low.c: Likewise.
9937 * utils.c: Likewise.
9938 * wincecompat.c: Likewise.
9939
87f6c4e3
GB
99402014-08-06 Gary Benson <gbenson@redhat.com>
9941
9942 * regcache.c (init_register_cache): Move conditionals inside if.
9943
7089dca4
GB
99442014-08-06 Gary Benson <gbenson@redhat.com>
9945
9946 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9947
462f517e
GB
99482014-07-31 Gary Benson <gbenson@redhat.com>
9949
9950 * ax.h: Do not include server.h.
9951 * gdbthread.h: Likewise.
9952 * lynx-low.h: Likewise.
9953 * notif.h: Likewise.
9954
976411d6
GB
99552014-07-30 Gary Benson <gbenson@redhat.com>
9956
9957 * server.h: Include common-defs.h.
9958 Do not include config.h or build-gnulib-gdbserver/config.h.
9959
d41f6d8e
GB
99602014-07-30 Gary Benson <gbenson@redhat.com>
9961
9962 * hostio-errno.c: Move server.h to top of includes list.
9963 * inferiors.c: Likewise.
9964 * linux-x86-low.c: Likewise.
9965 * notif.c: Include server.h.
9966
314c6a35
TT
99672014-07-24 Tom Tromey <tromey@redhat.com>
9968 Gary Benson <gbenson@redhat.com>
9969
9970 * server.h (CORE_ADDR): Now unsigned.
9971
69ff6be5
PA
99722014-07-16 Pedro Alves <palves@redhat.com>
9973
9974 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9975
ce9e3fe7
PA
99762014-07-15 Pedro Alves <palves@redhat.com>
9977
9978 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9979 copy.
9980
e76126e8
PA
99812014-07-11 Pedro Alves <palves@redhat.com>
9982
9983 * linux-low.c (kill_wait_lwp): New function, based on
9984 kill_one_lwp_callback, but use my_waitpid directly.
9985 (kill_one_lwp_callback, linux_kill): Use it.
9986
8e9db26e
PA
99872014-06-23 Pedro Alves <palves@redhat.com>
9988
9989 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9990 before setting DR0..DR3.
9991
698b3e08
GB
99922014-06-20 Gary Benson <gbenson@redhat.com>
9993
9994 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9995 * configure: Regenerated.
9996 * config.in: Likewise.
9997
125f8a3d
GB
99982014-06-20 Gary Benson <gbenson@redhat.com>
9999
10000 * Makefile.in (SFILES): Update locations for files moved
10001 from common to nat.
10002 (object file files): Reordered.
10003
42995dbd
GB
100042014-06-20 Gary Benson <gbenson@redhat.com>
10005
10006 * i386-low.h (i386_dr_low_can_set_addr): Removed.
10007 (i386_dr_low_set_addr): Likewise.
10008 (i386_dr_low_get_addr): Likewise.
10009 (i386_dr_low_can_set_control): Likewise.
10010 (i386_dr_low_set_control): Likewise.
10011 (i386_dr_low_get_control): Likewise.
10012 (i386_dr_low_get_status): Likewise.
10013 (i386_get_debug_register_length): Likewise.
10014 * linux-x86-low.c (i386_dr_low_set_addr):
10015 Changed signature. Made static.
10016 (i386_dr_low_get_addr): Likewise.
10017 (i386_dr_low_set_control): Likewise.
10018 (i386_dr_low_get_control): Likewise.
10019 (i386_dr_low_get_status): Likewise.
10020 (i386_dr_low): New global variable.
10021 * win32-i386-low.c (i386_dr_low_set_addr):
10022 Changed signature. Made static.
10023 (i386_dr_low_get_addr): Likewise.
10024 (i386_dr_low_set_control): Likewise.
10025 (i386_dr_low_get_control): Likewise.
10026 (i386_dr_low_get_status): Likewise.
10027 (i386_dr_low): New global variable.
10028
e1d2394b
MS
100292014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10030
10031 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10032 * Makefile.in (AR, AR_FLAGS): Define.
10033 * configure: Regenerate.
10034
3a8ee006
GB
100352014-06-19 Gary Benson <gbenson@redhat.com>
10036
10037 * Makefile.in (i386-dregs.o): New rule.
10038 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10039 * i386-low.c (target.h): Remove include.
10040 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10041 (DR_CONTROL_SHIFT): Likewise.
10042 (DR_CONTROL_SIZE): Likewise.
10043 (DR_RW_EXECUTE): Likewise.
10044 (DR_RW_WRITE): Likewise.
10045 (DR_RW_READ): Likewise.
10046 (DR_RW_IORW): Likewise.
10047 (DR_LEN_1): Likewise.
10048 (DR_LEN_2): Likewise.
10049 (DR_LEN_4): Likewise.
10050 (DR_LEN_8): Likewise.
10051 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10052 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10053 (DR_ENABLE_SIZE): Likewise.
10054 (DR_LOCAL_SLOWDOWN): Likewise.
10055 (DR_GLOBAL_SLOWDOWN): Likewise.
10056 (DR_CONTROL_RESERVED): Likewise.
10057 (I386_DR_CONTROL_MASK): Likewise.
10058 (I386_DR_VACANT): Likewise.
10059 (I386_DR_LOCAL_ENABLE): Likewise.
10060 (I386_DR_GLOBAL_ENABLE): Likewise.
10061 (I386_DR_DISABLE): Likewise.
10062 (I386_DR_SET_RW_LEN): Likewise.
10063 (I386_DR_GET_RW_LEN): Likewise.
10064 (I386_DR_WATCH_HIT): Likewise.
10065 (i386_wp_op_t): Likewise.
10066 (i386_show_dr): Likewise.
10067 (i386_length_and_rw_bits): Likewise.
10068 (i386_insert_aligned_watchpoint): Likewise.
10069 (i386_remove_aligned_watchpoint): Likewise.
10070 (i386_handle_nonaligned_watchpoint): Likewise.
10071 i386_update_inferior_debug_regs(): Likewise.
10072 (i386_dr_insert_watchpoint): Likewise.
10073 (i386_dr_remove_watchpoint): Likewise.
10074 (i386_dr_region_ok_for_watchpoint): Likewise.
10075 (i386_dr_stopped_data_address): Likewise.
10076 (i386_dr_stopped_by_watchpoint): Likewise.
10077
8f26655c
GB
100782014-06-19 Gary Benson <gbenson@redhat.com>
10079
10080 * i386-low.c (i386_dr_show): Renamed to
10081 i386_show_dr and made static. All uses updated.
10082 (i386_dr_length_and_rw_bits): Renamed to
10083 i386_length_and_rw_bits and made static.
10084 All uses updated.
10085 (i386_dr_insert_aligned_watchpoint): Renamed to
10086 i386_insert_aligned_watchpoint and made static.
10087 All uses updated.
10088 (i386_dr_remove_aligned_watchpoint): Renamed to
10089 i386_remove_aligned_watchpoint and made static.
10090 All uses updated.
10091 (i386_dr_update_inferior_debug_regs): Renamed to
10092 i386_update_inferior_debug_regs and made static.
10093 All uses updated.
10094
b9228891
GB
100952014-06-18 Gary Benson <gbenson@redhat.com>
10096
5171def3
GB
10097 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10098 (i386_dr_low_can_set_control): Likewise.
10099 (i386_get_debug_register_length): Likewise.
10100 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10101 (i386_dr_low_can_set_control): Likewise.
10102 (i386_get_debug_register_length): Likewise.
10103
101042014-06-17 Gary Benson <gbenson@redhat.com>
10105
b9228891
GB
10106 * i386-low.h (i386-dregs.h): New include.
10107 (DR_FIRSTADDR): Now in i386-dregs.h.
10108 (DR_LASTADDR): Likewise.
10109 (DR_NADDR): Likewise.
10110 (DR_STATUS): Likewise.
10111 (DR_CONTROL): Likewise.
10112 (i386_debug_reg_state): Likewise.
10113 (i386_dr_insert_watchpoint): Likewise.
10114 (i386_dr_remove_watchpoint): Likewise.
10115 (i386_dr_region_ok_for_watchpoint): Likewise.
10116 (i386_dr_stopped_data_address): Likewise.
10117 (i386_dr_stopped_by_watchpoint): Likewise.
10118 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10119
4be83cc2
GB
101202014-06-18 Gary Benson <gbenson@redhat.com>
10121
10122 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10123 i386_dr_insert_watchpoint.
10124 (i386_low_remove_watchpoint): Renamed to
10125 i386_dr_remove_watchpoint.
10126 (i386_low_region_ok_for_watchpoint): Renamed to
10127 i386_dr_region_ok_for_watchpoint.
10128 (i386_low_stopped_data_address): Renamed to
10129 i386_dr_stopped_data_address.
10130 (i386_low_stopped_by_watchpoint): Renamed to
10131 i386_dr_stopped_by_watchpoint.
10132 * i386-low.c (i386_show_dr): Renamed to
10133 i386_dr_show and made nonstatic. All uses updated.
10134 (i386_length_and_rw_bits): Renamed to
10135 i386_dr_length_and_rw_bits and made nonstatic.
10136 All uses updated.
10137 (i386_insert_aligned_watchpoint): Renamed to
10138 i386_dr_insert_aligned_watchpoint and made nonstatic.
10139 All uses updated.
10140 (i386_remove_aligned_watchpoint): Renamed to
10141 i386_dr_remove_aligned_watchpoint and made nonstatic.
10142 All uses updated.
10143 (i386_update_inferior_debug_regs): Renamed to
10144 i386_dr_update_inferior_debug_regs and made nonstatic.
10145 All uses updated.
10146 (i386_low_insert_watchpoint): Renamed to
10147 i386_dr_insert_watchpoint. All uses updated.
10148 (i386_low_remove_watchpoint): Renamed to
10149 i386_dr_remove_watchpoint. All uses updated.
10150 (i386_low_region_ok_for_watchpoint): Renamed to
10151 i386_dr_region_ok_for_watchpoint. All uses updated.
10152 (i386_low_stopped_data_address): Renamed to
10153 i386_dr_stopped_data_address. All uses updated.
10154 (i386_low_stopped_by_watchpoint): Renamed to
10155 i386_dr_stopped_by_watchpoint. All uses updated.
10156
131aa0d4
GB
101572014-06-18 Gary Benson <gbenson@redhat.com>
10158
10159 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10160 (i386_dr_low_can_set_control): Likewise.
10161 (i386_insert_aligned_watchpoint): New check.
10162
d9305f7f
GB
101632014-06-18 Gary Benson <gbenson@redhat.com>
10164
10165 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10166 Renamed to state.
10167
e927c9fc
GB
101682014-06-18 Gary Benson <gbenson@redhat.com>
10169
10170 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10171 instead of fatal and error.
10172 (i386_handle_nonaligned_watchpoint): Likewise.
10173
1b6d4134
GB
101742014-06-18 Gary Benson <gbenson@redhat.com>
10175
10176 * i386-low.c (i386_get_debug_register_length): New macro.
10177 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10178 (i386_show_dr): Use debug_printf instead of fprintf. Use
10179 phex to format values.
10180
6e62758f
GB
101812014-06-18 Gary Benson <gbenson@redhat.com>
10182
10183 * i386-low.h: Comment changes.
10184 * i386-low.c: Likewise.
10185
fc6e2f03
GB
101862014-06-18 Gary Benson <gbenson@redhat.com>
10187
10188 * i386-low.c: Whitespace changes.
10189
f9d1eeed
TT
101902014-06-12 Tom Tromey <tromey@redhat.com>
10191
10192 * utils.c (freeargv): Remove.
10193
0b04e523
TT
101942014-06-12 Tom Tromey <tromey@redhat.com>
10195
10196 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10197 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10198 (parse_debug_format_options): Likewise.
10199 (gdbserver_usage): Likewise.
10200 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10201 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10202 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10203 against libiberty.
10204 ($(LIBGNU)): Depend on libiberty.
10205 (all-lib): Recurse into all subdirs.
10206 (install-only): Invoke "install" target in subdirs.
10207 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10208 targets.
10209 * configure: Rebuild.
10210 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10211 for vasprintf, vsnprintf, or gettimeofday.
10212 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10213 srv_tgtobj.
10214
270c9937
JB
102152014-06-05 Joel Brobecker <brobecker@adacore.com>
10216
10217 * development.sh: Delete.
10218 * Makefile.in (config.status): Adjust dependency on development.sh.
10219 * configure.ac: Adjust development.sh source call.
10220 * configure: Regenerate.
10221
0a261ed8
PA
102222014-06-02 Pedro Alves <palves@redhat.com>
10223
10224 * ax.c (gdb_free_agent_expr): New function.
10225 * ax.h (gdb_free_agent_expr): New declaration.
10226 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10227 list.
10228 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10229 static.
10230 (clear_breakpoint_conditions_and_commands): New function.
10231 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10232 (clear_breakpoint_conditions_and_commands): New declaration.
10233
e9dae05e
RR
102342014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10235
10236 * linux-aarch64-low.c (asm/ptrace.h): Include.
10237
5876f503
JK
102382014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10239
10240 Fix TLS access for -static -pthread.
10241 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10242 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10243 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10244
802e8e6d
PA
102452014-05-20 Pedro Alves <palves@redhat.com>
10246
10247 * linux-aarch64-low.c (aarch64_insert_point)
10248 (aarch64_remove_point): No longer check whether the type is
10249 supported here. Adjust to new interface.
10250 (the_low_target): Install aarch64_supports_z_point_type as
10251 supports_z_point_type method.
10252 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10253 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10254 instead of a Z packet char. Adjust.
10255 (arm_supports_z_point_type): New function.
10256 (arm_insert_point, arm_remove_point): Adjust to new interface.
10257 (the_low_target): Install arm_supports_z_point_type.
10258 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10259 (cris_insert_point, cris_remove_point): Adjust to new interface.
10260 Don't check whether the type is supported here.
10261 (the_low_target): Install cris_supports_z_point_type.
10262 * linux-low.c (linux_supports_z_point_type): New function.
10263 (linux_insert_point, linux_remove_point): Adjust to new interface.
10264 * linux-low.h (struct linux_target_ops) <insert_point,
10265 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10266 raw_breakpoint pointer parameter.
10267 <supports_z_point_type>: New method.
10268 * linux-mips-low.c (mips_supports_z_point_type): New function.
10269 (mips_insert_point, mips_remove_point): Adjust to new interface.
10270 Use mips_supports_z_point_type.
10271 (the_low_target): Install mips_supports_z_point_type.
10272 * linux-ppc-low.c (the_low_target): Install NULL as
10273 supports_z_point_type method.
10274 * linux-s390-low.c (the_low_target): Install NULL as
10275 supports_z_point_type method.
10276 * linux-sparc-low.c (the_low_target): Install NULL as
10277 supports_z_point_type method.
10278 * linux-x86-low.c (x86_supports_z_point_type): New function.
10279 (x86_insert_point): Adjust to new insert_point interface. Use
10280 insert_memory_breakpoint. Adjust to new
10281 i386_low_insert_watchpoint interface.
10282 (x86_remove_point): Adjust to remove_point interface. Use
10283 remove_memory_breakpoint. Adjust to new
10284 i386_low_remove_watchpoint interface.
10285 (the_low_target): Install x86_supports_z_point_type.
10286 * lynx-low.c (lynx_target_ops): Install NULL as
10287 supports_z_point_type callback.
10288 * nto-low.c (nto_supports_z_point_type): New.
10289 (nto_insert_point, nto_remove_point): Adjust to new interface.
10290 (nto_target_ops): Install nto_supports_z_point_type.
10291 * mem-break.c: Adjust intro comment.
10292 (struct raw_breakpoint) <raw_type, size>: New fields.
10293 <inserted>: Update comment.
10294 <shlib_disabled>: Delete field.
10295 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10296 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10297 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10298 (raw_bkpt_type_to_target_hw_bp_type): New function.
10299 (find_enabled_raw_code_breakpoint_at): New function.
10300 (find_raw_breakpoint_at): New type and size parameters. Use them.
10301 (insert_memory_breakpoint): New function, based off
10302 set_raw_breakpoint_at.
10303 (remove_memory_breakpoint): New function.
10304 (set_raw_breakpoint_at): Reimplement.
10305 (set_breakpoint): New, based on set_breakpoint_at.
10306 (set_breakpoint_at): Reimplement.
10307 (delete_raw_breakpoint): Go through the_target->remove_point
10308 instead of assuming memory breakpoints.
10309 (find_gdb_breakpoint_at): Delete.
10310 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10311 (find_gdb_breakpoint): New function.
10312 (set_gdb_breakpoint_at): Delete.
10313 (z_type_supported): New function.
10314 (set_gdb_breakpoint_1): New function, loosely based off
10315 set_gdb_breakpoint_at.
10316 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10317 (delete_gdb_breakpoint_at): Delete.
10318 (delete_gdb_breakpoint_1): New function, loosely based off
10319 delete_gdb_breakpoint_at.
10320 (delete_gdb_breakpoint): New function.
10321 (clear_gdb_breakpoint_conditions): Rename to ...
10322 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10323 breakpoint.
10324 (add_condition_to_breakpoint): Make static.
10325 (add_breakpoint_condition): Take a struct breakpoint pointer
10326 instead of an address. Adjust.
10327 (gdb_condition_true_at_breakpoint): Rename to ...
10328 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10329 z_type parameter.
10330 (gdb_condition_true_at_breakpoint): Reimplement.
10331 (add_breakpoint_commands): Take a struct breakpoint pointer
10332 instead of an address. Adjust.
10333 (gdb_no_commands_at_breakpoint): Rename to ...
10334 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10335 parameter. Return true if no breakpoint was found. Change debug
10336 output.
10337 (gdb_no_commands_at_breakpoint): Reimplement.
10338 (run_breakpoint_commands): Rename to ...
10339 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10340 and change return type to boolean.
10341 (run_breakpoint_commands): New function.
10342 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10343 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10344 breakpoint. Go through the_target->remove_point instead of
10345 assuming memory breakpoint.
10346 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10347 software and hardware breakpoints.
10348 (reinsert_raw_breakpoint): Go through the_target->insert_point
10349 instead of assuming memory breakpoint.
10350 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10351 software and hardware breakpoints.
10352 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10353 Check both software and hardware breakpoints.
10354 (validate_inserted_breakpoint): Assert the breakpoint is a
10355 software breakpoint. Set the inserted flag to -1 instead of
10356 setting shlib_disabled.
10357 (delete_disabled_breakpoints): Adjust.
10358 (validate_breakpoints): Only validate software breakpoints.
10359 Adjust to inserted flag change.
10360 (check_mem_read, check_mem_write): Skip breakpoint types other
10361 than software breakpoints. Adjust to inserted flag change.
10362 * mem-break.h (enum raw_bkpt_type): New enum.
10363 (raw_breakpoint, struct process_info): Forward declare.
10364 (Z_packet_to_target_hw_bp_type): Delete declaration.
10365 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10366 (set_gdb_breakpoint, delete_gdb_breakpoint)
10367 (clear_breakpoint_conditions): New declarations.
10368 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10369 (breakpoint_inserted_here): Update comment.
10370 (add_breakpoint_condition, add_breakpoint_commands): Replace
10371 address parameter with a breakpoint pointer parameter.
10372 (gdb_breakpoint_here): Update comment.
10373 (delete_gdb_breakpoint_at): Delete.
10374 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10375 * server.c (process_point_options): Take a struct breakpoint
10376 pointer instead of an address. Adjust.
10377 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10378 delete_gdb_breakpoint.
10379 * spu-low.c (spu_target_ops): Install NULL as
10380 supports_z_point_type method.
10381 * target.h: Include mem-break.h.
10382 (struct target_ops) <prepare_to_access_memory>: Update comment.
10383 <supports_z_point_type>: New field.
10384 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10385 instead of a char. Also take a raw breakpoint pointer.
10386 * win32-arm-low.c (the_low_target): Install NULL as
10387 supports_z_point_type.
10388 * win32-i386-low.c (i386_supports_z_point_type): New function.
10389 (i386_insert_point, i386_remove_point): Adjust to new interface.
10390 (the_low_target): Install i386_supports_z_point_type.
10391 * win32-low.c (win32_supports_z_point_type): New function.
10392 (win32_insert_point, win32_remove_point): Adjust to new interface.
10393 (win32_target_ops): Install win32_supports_z_point_type.
10394 * win32-low.h (struct win32_target_ops):
10395 <supports_z_point_type>: New method.
10396 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10397 instead of a char. Also take a raw breakpoint pointer.
10398
932539e3
PA
103992014-05-20 Pedro Alves <palves@redhat.com>
10400
10401 * mem-break.h: Include break-common.h.
10402 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10403 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10404 (Z_packet_to_target_hw_bp_type): New declaration.
10405 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10406 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10407 (Z_PACKET_ACCESS_WP): Delete macros.
10408 (Z_packet_to_hw_type): Delete function.
10409 * i386-low.h: Don't include break-common.h here.
10410 (Z_packet_to_hw_type): Delete declaration.
10411 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10412 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10413 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10414 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10415 * linux-aarch64-low.c: Don't include break-common.h here.
10416 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10417 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10418 (Z_packet_to_target_hw_bp_type): Delete function.
10419 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10420 function.
10421 (mips_insert_point, mips_remove_point): Use
10422 Z_packet_to_target_hw_bp_type.
10423
4ff0d3d8
PA
104242014-05-20 Pedro Alves <palves@redhat.com>
10425
10426 * linux-aarch64-low.c: Include break-common.h.
10427 (enum target_point_type): Delete.
10428 (Z_packet_to_point_type): Rename to ...
10429 (Z_packet_to_target_hw_bp_type): ... this, and return a
10430 target_hw_bp_type instead.
10431 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10432 instead of an enum target_point_type.
10433 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10434 breakpoint type.
10435 (aarch64_dr_state_insert_one_point)
10436 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10437 (aarch64_handle_aligned_watchpoint)
10438 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10439 Take an enum target_hw_bp_type instead of an enum
10440 target_point_type.
10441 (aarch64_supports_z_point_type): New function.
10442 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10443 use Z_packet_to_target_hw_bp_type.
10444
786dc519
JB
104452014-05-20 Joel Brobecker <brobecker@adacore.com>
10446
10447 * configure.ac: Only use -Werror by default when DEVELOPMENT
10448 is true.
10449 * configure: Regenerate.
10450
9e0aa64f
JK
104512014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10452
10453 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10454 * linux-x86-low.c (X86_64_USER_REGS): New.
10455 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10456
2b577b92
YQ
104572014-04-28 Yao Qi <yao@codesourcery.com>
10458
10459 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10460 name.
10461
94611da2
PA
104622014-04-25 Pedro Alves <palves@redhat.com>
10463
10464 PR server/16255
10465 * linux-low.c (linux_attach_fail_reason_string): New function.
10466 (linux_attach_lwp): Delete.
10467 (linux_attach_lwp_1): Rename to ...
10468 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10469 argument. Remove "initial" parameter. Return int instead of
10470 void. Don't error or warn here.
10471 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10472 failure to attach to the tgid. Call warning when failing to
10473 attach to an lwp.
10474 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10475 argument. Remove "initial" parameter. Return int instead of
10476 void. Don't error or warn here.
10477 (linux_attach_fail_reason_string): New declaration.
10478 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10479 interface change. Use linux_attach_fail_reason_string.
10480
01f9f808
MS
104812014-04-24 Michael Sturm <michael.sturm@mintel.com>
10482 Walfred Tedeschi <walfred.tedeschi@intel.com>
10483
10484 * Makefile.in: Added rules to handle new files
10485 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10486 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10487 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10488 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10489 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10490 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10491 x32-avx512-linux.o.
10492 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10493 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10494 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10495 i386/x32-avx512.xml.
10496 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10497 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10498 i386/x32-avx512-linux.xml.
10499 * i387-fp.c (num_avx512_k_registers): New constant for number
10500 of K registers.
10501 (num_avx512_zmmh_low_registers): New constant for number of
10502 lower ZMM registers (0-15).
10503 (num_avx512_zmmh_high_registers): New constant for number of
10504 higher ZMM registers (16-31).
10505 (num_avx512_ymmh_registers): New contant for number of higher
10506 YMM registers (ymm16-31 added by avx521 on x86_64).
10507 (num_avx512_xmm_registers): New constant for number of higher
10508 XMM registers (xmm16-31 added by AVX512 on x86_64).
10509 (struct i387_xsave): Add space for AVX512 registers.
10510 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10511 Add code to handle AVX512 registers.
10512 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10513 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10514 prototypei from generated file.
10515 (tdesc_amd64_avx512_linux): Likewise.
10516 (init_registers_x32_avx512_linux): Likewise.
10517 (tdesc_x32_avx512_linux): Likewise.
10518 (init_registers_i386_avx512_linux): Likewise.
10519 (tdesc_i386_avx512_linux): Likewise.
10520 (x86_64_regmap): Add AVX512 registers.
10521 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10522 mask.
10523 (initialize_low_arch): Add code to initialize AVX512 registers.
10524
51aa91f9
PA
105252014-04-23 Pedro Alves <palves@redhat.com>
10526
10527 * mem-break.c (find_gdb_breakpoint_at): Make static.
10528 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10529
a4165e94
PA
105302014-04-23 Pedro Alves <palves@redhat.com>
10531
10532 * i386-low.c: Don't include break-common.h here.
10533 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10534 prototype to take target_hw_bp_type as argument instead of a Z
10535 packet char.
10536 * i386-low.h: Include break-common.h here.
10537 (Z_packet_to_hw_type): Declare.
10538 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10539 prototypes.
10540 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10541 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10542 (x86_remove_point): Convert the packet number to a
10543 target_hw_bp_type before calling i386_low_remove_watchpoint.
10544 * win32-i386-low.c (i386_insert_point): Convert the packet number
10545 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10546 (i386_remove_point): Convert the packet number to a
10547 target_hw_bp_type before calling i386_low_remove_watchpoint.
10548
b8acf843
PA
105492014-04-23 Pedro Alves <palves@redhat.com>
10550
10551 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10552
d708bcd1
PA
105532014-04-10 Pedro Alves <palves@redhat.com>
10554
10555 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10556 Check if the condition or command is NULL before checking if the
10557 breakpoint is known. On success, return true.
10558 * mem-break.h (add_breakpoint_condition): Document return.
10559 (add_breakpoint_commands): Add describing comment.
10560 * server.c (skip_to_semicolon): New function.
10561 (process_point_options): Use it.
10562
2eec7d5b
PA
105632014-04-09 Pedro Alves <palves@redhat.com>
10564
10565 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10566 to lwpid_of.
10567
fa96cb38
PA
105682014-02-27 Pedro Alves <palves@redhat.com>
10569
10570 PR 12702
10571 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10572 macros.
10573 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10574 output.
10575 (last_thread_of_process_p): Take a PID argument instead of a
10576 thread pointer.
10577 (linux_wait_for_lwp): Delete.
10578 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10579 functions.
10580 (linux_low_filter_event): New function, party factored out from
10581 linux_wait_for_event.
10582 (linux_wait_for_event): Rename to ...
10583 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10584 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10585 sigsuspend. Check for zombie leaders.
10586 (linux_wait_for_event): Reimplement as wrapper around
10587 linux_wait_for_event_filtered.
10588 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10589 a normal or signal exit is seen, it's the whole process exiting.
10590 (wait_for_sigstop): No longer a for_each_inferior callback.
10591 Rewrite on top of linux_wait_for_event_filtered.
10592 (stop_all_lwps): Call wait_for_sigstop directly.
10593 * server.c (resume, handle_target_event): Handle
10594 TARGET_WAITKIND_NO_RESUMED.
10595
d763de10
JB
105962014-02-26 Joel Brobecker <brobecker@adacore.com>
10597
10598 * win32-low.c (psapi_get_dll_name,
10599 * win32_CreateToolhelp32Snapshot): Delete.
10600 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10601 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10602 Delete.
10603 (handle_load_dll): Add function description.
10604 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10605
850a0f76
JB
106062014-02-26 Joel Brobecker <brobecker@adacore.com>
10607
10608 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10609 Add comment.
10610 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10611 base address when calling win32_add_one_solib.
10612 (handle_load_dll): Delete local variable load_addr.
10613 Remove 0x1000 offset applied to DLL base address when calling
10614 win32_add_one_solib.
10615 (handle_unload_dll): Add comment.
10616
f25b3fc3
JB
106172014-02-26 Joel Brobecker <brobecker@adacore.com>
10618
10619 * win32-low.c (win32_add_all_dlls): Renames
10620 win32_ensure_ntdll_loaded. Rewrite function documentation.
10621 Adjust implementation to always load all DLLs.
10622 Add 0x1000 offset to DLL base address when calling
10623 win32_add_one_solib.
10624 (child_initialization_done): New static global.
10625 (do_initial_child_stuff): Set child_initialization_done to
10626 zero during child initialization, and 1 after. Replace call
10627 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10628 Add comment.
10629 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10630 (handle_unload_dll): Add function documentation.
10631 (get_child_debug_event): Ignore load and unload DLL events
10632 during child initialization.
10633
d86d4aaf
DE
106342014-02-20 Doug Evans <dje@google.com>
10635
3bc32da3 10636 Remove global all_lwps.
d86d4aaf
DE
10637 * inferiors.h (ptid_of): Move here from linux-low.h.
10638 (pid_of, lwpid_of): Ditto.
10639 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10640 parameter is a struct thread_info * now.
10641 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10642 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10643 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10644 directly.
10645 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10646 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10647 * linux-arm-low.c (update_registers_callback): Update, "entry"
10648 parameter is a struct thread_info * now.
10649 Fetch lwpid from current_inferior directly.
10650 (arm_insert_point): Pass &all_threads to find_inferior instead of
10651 &all_lwps.
10652 (arm_remove_point): Ditto.
10653 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10654 (arm_prepare_to_resume): Fetch pid from thread.
10655 (arm_read_description): Fetch lwpid from current_inferior directly.
10656 * linux-low.c (all_lwps): Delete.
10657 (delete_lwp): Delete call to remove_inferior.
10658 (handle_extended_wait): Fetch lwpid from thread.
10659 (add_lwp): Don't set lwp->entry.id. Remove call to
10660 add_inferior_to_list.
10661 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10662 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10663 (kill_one_lwp_callback): Ditto.
10664 (linux_kill): Don't dereference NULL pointer.
10665 Fetch ptid,lwpid from thread.
10666 (get_detach_signal): Fetch ptid from thread.
10667 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10668 Simplify call to regcache_invalidate_thread.
10669 (delete_lwp_callback): Update, "entry" parameter is a
10670 struct thread_info * now. Fetch pid from thread.
10671 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10672 (status_pending_p_callback): Update, "entry" parameter is a
10673 struct thread_info * now. Fetch ptid from thread.
10674 (find_lwp_pid): Update, "entry" parameter is a
10675 struct thread_info * now.
10676 (linux_wait_for_lwp): Fetch pid from thread.
10677 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10678 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10679 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10680 (dequeue_one_deferred_signal): Ditto.
10681 (cancel_breakpoint): Fetch ptid from current_inferior.
10682 (linux_wait_for_event): Pass &all_threads to find_inferior,
10683 not &all_lwps. Fetch ptid, lwpid from thread.
10684 (count_events_callback): Update, "entry" parameter is a
10685 struct thread_info * now.
10686 (select_singlestep_lwp_callback): Ditto.
10687 (select_event_lwp_callback): Ditto.
10688 (cancel_breakpoints_callback): Ditto.
10689 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10690 not &all_lwps.
10691 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10692 (unsuspend_one_lwp): Update, "entry" parameter is a
10693 struct thread_info * now.
10694 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10695 not &all_lwps.
10696 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10697 Fetch lwpid from thread, not lwp.
10698 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10699 Pass &all_threads to find_inferior, not &all_lwps.
10700 (send_sigstop): Fetch lwpid from thread, not lwp.
10701 (send_sigstop_callback): Update, "entry" parameter is a
10702 struct thread_info * now.
10703 (suspend_and_send_sigstop_callback): Ditto.
10704 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10705 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10706 struct thread_info * now.
10707 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10708 from thread, lwp.
10709 (lwp_running): Update, "entry" parameter is a
10710 struct thread_info * now.
10711 (stop_all_lwps): Fetch ptid from thread.
10712 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10713 (linux_resume_one_lwp): Fetch lwpid from thread.
10714 (linux_set_resume_request): Update, "entry" parameter is a
10715 struct thread_info * now. Fetch pid, lwpid from thread.
10716 (resume_status_pending_p): Update, "entry" parameter is a
10717 struct thread_info * now.
10718 (need_step_over_p): Ditto. Fetch lwpid from thread.
10719 (start_step_over): Fetch lwpid from thread.
10720 (linux_resume_one_thread): Update, "entry" parameter is a
10721 struct thread_info * now. Fetch lwpid from thread.
10722 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10723 (proceed_one_lwp): Update, "entry" parameter is a
10724 struct thread_info * now. Fetch lwpid from thread.
10725 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10726 struct thread_info * now.
10727 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10728 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10729 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10730 directly.
10731 (regsets_store_inferior_registers): Ditto.
10732 (fetch_register, store_register): Ditto.
10733 (linux_read_memory, linux_write_memory): Ditto.
10734 (linux_request_interrupt): Ditto.
10735 (linux_read_auxv): Ditto.
10736 (linux_xfer_siginfo): Ditto.
10737 (linux_qxfer_spu): Ditto.
10738 (linux_qxfer_libraries_svr4): Ditto.
10739 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10740 moved to inferiors.h.
10741 (get_lwp): Delete.
10742 (get_thread_lwp): Update.
10743 (struct lwp_info): Delete member "entry". Simplify comment for
10744 member "thread".
10745 (all_lwps): Delete.
10746 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10747 current_inferior directly.
10748 (update_watch_registers_callback): Update, "entry" parameter is a
10749 struct thread_info * now. Fetch pid from thread.
10750 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10751 (mips_insert_point): Fetch lwpid from current_inferior.
10752 Pass &all_threads to find_inferior, not &all_lwps.
10753 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10754 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10755 directly.
10756 (mips_stopped_data_address): Ditto.
10757 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10758 directly.
10759 * linux-tile-low.c (tile_arch_setup): Ditto.
10760 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10761 (update_debug_registers_callback): Update, "entry" parameter is a
10762 struct thread_info * now. Fetch pid from thread.
10763 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10764 Pass &all_threads to find_inferior, not &all_lwps.
10765 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10766 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10767 Pass &all_threads to find_inferior, not &all_lwps.
10768 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10769 (i386_dr_low_get_status): Ditto.
10770 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10771 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10772 (x86_linux_read_description): Ditto.
10773 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10774
3b8361aa
DE
107752014-02-20 Doug Evans <dje@google.com>
10776
10777 * inferiors.c (get_first_inferior): Fix buglet.
10778
f7667f0d
DE
107792014-02-19 Doug Evans <dje@google.com>
10780
10781 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10782 * inferiors.c (add_thread): Change result type to struct thread_info *.
10783 All callers updated.
10784 (add_lwp): Call add_thread here instead of in callers.
10785 All callers updated.
10786 * linux-low.h (get_lwp_thread): Rewrite.
10787 (struct lwp_info): New member "thread".
10788
b3312d80
DE
107892014-02-19 Doug Evans <dje@google.com>
10790
10791 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10792 All callers updated.
10793
ecc6f45c
DE
107942014-02-19 Doug Evans <dje@google.com>
10795
10796 * inferiors.c (add_thread): Fix whitespace.
10797
649ebbca
DE
107982014-02-19 Doug Evans <dje@google.com>
10799
10800 * dll.c (clear_dlls): Replace accessing list implemention details
10801 with API function.
10802 * gdbthread.h (get_first_thread): Declare.
10803 * inferiors.c (for_each_inferior_with_data): New function.
10804 (get_first_thread): New function.
10805 (find_thread_ptid): Simplify.
10806 (get_first_inferior): New function.
10807 (clear_list): Delete.
10808 (one_inferior_p): New function.
10809 (clear_inferior_list): New function.
10810 (clear_inferiors): Update.
10811 * inferiors.h (for_each_inferior_with_data): Declare.
10812 (clear_inferior_list): Declare.
10813 (one_inferior_p): Declare.
10814 (get_first_inferior): Declare.
10815 * linux-low.c (linux_wait_for_event): Replace accessing list
10816 implemention details with API function.
10817 * server.c (target_running): Ditto.
10818 (accumulate_file_name_length): New function.
10819 (emit_dll_description): New function.
10820 (handle_qxfer_libraries): Replace accessing list implemention
10821 details with API function.
10822 (handle_qxfer_threads_worker): New function.
10823 (handle_qxfer_threads_proper): Replace accessing list implemention
10824 details with API function.
10825 (handle_query): Ditto.
10826 (visit_actioned_threads_callback_ftype): New typedef.
10827 (visit_actioned_threads_data): New struct.
10828 (visit_actioned_threads): Rewrite to be find_inferior callback.
10829 (resume): Call find_inferior.
10830 (handle_status): Replace accessing list implemention
10831 details with API function.
10832 (process_serial_event): Replace accessing list implemention details
10833 with API function.
10834 * target.c (set_desired_inferior): Replace accessing list implemention
10835 details with API function.
10836 * tracepoint.c (same_process_p): New function.
10837 (gdb_agent_about_to_close): Replace accessing list implemention
10838 details with API function.
10839 * win32-low.c (child_delete_thread): Replace accessing list
10840 implemention details with API function.
10841 (match_dll_by_basename): New function.
10842 (dll_is_loaded_by_basename): New function.
10843 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10844 details call to dll_is_loaded_by_basename.
10845
80894984
DE
108462014-02-19 Doug Evans <dje@google.com>
10847
10848 * dll.h (struct dll_info): Add comment.
10849 * gdbthread.h (struct thread_info): Add comment.
10850 (current_ptid): Simplify.
10851 * inferiors.c (add_process): Update.
10852 (remove_process): Update.
10853 * inferiors.h (struct process_info): Rename member "head" to "entry".
10854 * linux-low.c (delete_lwp): Update.
10855 (add_lwp): Update.
10856 (last_thread_of_process_p): Update.
10857 (kill_one_lwp_callback, linux_kill): Update.
10858 (status_pending_p_callback): Update.
10859 (wait_for_sigstop): Update. Simplify read of ptid.
10860 (start_step_over): Update.
10861 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10862 (get_lwp_thread): Update.
10863 (struct lwp_info): Rename member "head" to "entry".
10864 * regcache.h (inferior_list_entry): Delete.
10865 * server.c (kill_inferior_callback): Update.
10866 (detach_or_kill_inferior_callback): Update.
10867 (print_started_pid): Update.
10868 (print_attached_pid): Update.
10869 (process_serial_event): Simplify read of ptid.
10870 * thread-db.c (thread_db_create_event): Update.
10871 (thread_db_get_tls_address): Update.
10872 * win32-low.c (current_inferior_ptid): Simplify.
10873
46917d26
TT
108742014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10877 argument.
10878 (target_supports_btrace): Update.
10879
0759a81e
YQ
108802014-02-14 Yao Qi <yao@codesourcery.com>
10881
10882 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10883 (rsp-low-ipa.o): New target.
10884
a7191e8b
TT
108852014-02-12 Tom Tromey <tromey@redhat.com>
10886
10887 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10888 convert_ascii_to_int.
10889 * regcache.c (registers_to_string): Likewise.
10890 * remote-utils.c (decode_M_packet): Likewise.
10891 * server.c (process_serial_event): Likewise.
10892
ff0e980e
TT
108932014-02-12 Tom Tromey <tromey@redhat.com>
10894
10895 * server.c (handle_query, handle_v_run): Use hex2bin, not
10896 unhexify.
10897 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10898
e9371aff
TT
108992014-02-12 Tom Tromey <tromey@redhat.com>
10900
10901 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10902 convert_int_to_ascii.
10903 * regcache.c (registers_to_string, collect_register_as_string):
10904 Likewise.
10905 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10906 Likewise.
10907 * server.c (process_serial_event): Likewise.
10908 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10909 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10910
971dc0b8
TT
109112014-02-12 Tom Tromey <tromey@redhat.com>
10912
10913 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10914 bin2hex, not hexify.
10915 * tracepoint.c (cmd_qtstatus): Likewise.
10916
0a822afb
TT
109172014-02-12 Tom Tromey <tromey@redhat.com>
10918
10919 * remote-utils.c (monitor_output): Pass explicit length to
10920 hexify.
10921
9c3d6531
TT
109222014-02-12 Tom Tromey <tromey@redhat.com>
10923
10924 * tracepoint.c: Include rsp-low.h.
10925 * server.c: Include rsp-low.h.
10926 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10927 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10928 declare.
10929 * remote-utils.c: Include rsp-low.h.
10930 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10931 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10932 (convert_int_to_ascii, convert_ascii_to_int): Move to
10933 common/rsp-low.c.
10934 * regcache.c: Include rsp-low.h.
10935 * ax.c: Include rsp-low.h.
10936 * Makefile.in (SFILES): Add common/rsp-low.c.
10937 (OBS): Add rsp-low.o.
10938 (rsp-low.o): New target.
10939
01fd3ea5
TT
109402014-02-12 Tom Tromey <tromey@redhat.com>
10941
10942 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10943 Include print-utils.h.
10944 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10945 (plongest, thirty_two, phex_nz): Remove.
10946 * Makefile.in (SFILES): Add common/print-utils.c.
10947 (OBS): Add print-utils.o.
10948 (print-utils-ipa.o): New target.
10949 (print-utils.o): New target.
10950 (IPA_OBJS): Add print-utils-ipa.o.
10951
e99dc820
TT
109522014-02-06 Tom Tromey <tromey@redhat.com>
10953
10954 * Makefile.in (SFILES): Fix indentation.
10955
ee1e2d4f
DE
109562014-02-05 Doug Evans <dje@google.com>
10957
10958 * linux-low.c (linux_wait_for_event): Improve comment.
10959 (linux_wait_1): Keep current_inferior in sync with event_child.
10960
f5a02773
DE
109612014-01-22 Doug Evans <dje@google.com>
10962
10963 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10964
87ce2a04
DE
109652014-01-22 Doug Evans <dje@google.com>
10966
10967 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10968 * configure: Regenerate.
10969 * config.in: Regenerate.
10970 * Makefile.in (SFILES): Add debug.c.
10971 (OBS): Add debug.o.
10972 * debug.c: New file.
10973 * debug.h: New file.
10974 * linux-aarch64-low.c (*): Update all debugging printfs to use
10975 debug_printf instead of fprintf.
10976 * linux-arm-low.c (*): Ditto.
10977 * linux-cris-low.c (*): Ditto.
10978 * linux-crisv32-low.c (*): Ditto.
10979 * linux-m32r-low.c (*): Ditto.
10980 * linux-sparc-low.c (*): Ditto.
10981 * linux-x86.c (*): Ditto.
10982 * linux-low.c (*): Ditto.
10983 (linux_wait_1): Add calls to debug_enter, debug_exit.
10984 (linux_wait): Remove redundant debugging printf.
10985 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10986 (linux_resume, unstop_all_lwps): Ditto.
10987 * mem-break.c (*): Update all debugging printfs to use
10988 debug_printf instead of fprintf.
10989 * remote-utils.c (*): Ditto.
10990 * thread-db.c (*): Ditto.
10991 * server.c #include <ctype.h>, "gdb_vecs.h".
10992 (debug_threads): Moved to debug.c.
10993 (*): Update all debugging printfs to use debug_printf instead of
10994 fprintf.
10995 (start_inferior): Replace call to fflush with call to debug_flush.
10996 (monitor_show_help): Mention set debug-format.
10997 (parse_debug_format_options): New function.
10998 (handle_monitor_command): Handle "monitor set debug-format".
10999 (gdbserver_usage): Mention --debug-format.
11000 (main): Parse --debug-format.
11001 * server.h (debug_threads): Declaration moved to debug.h.
11002 #include "debug.h".
11003 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
11004 trace_debug_1 that uses debug_printf.
11005 (tracepoint_look_up_symbols): Update all debugging printfs to use
11006 debug_printf instead of fprintf.
11007
e671835b
BS
110082014-01-20 Baruch Siach <baruch@tkos.co.il>
11009
11010 * linux-xtensa-low.c: Include asm/ptrace.h instead of
11011 sys/ptrace.h.
11012
b5737fa9
PA
110132014-01-17 Pedro Alves <palves@redhat.com>
11014
ea38d2a9 11015 PR build/16445
c7faa97a
PA
11016 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
11017 defined after including gdb_proc_service.h.
b5737fa9 11018
40ed484e
DE
110192014-01-16 Doug Evans <dje@google.com>
11020
11021 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
11022 (match_dll): Use it.
11023
969c39fb
MM
110242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11025
11026 * target.h (target_ops) <read_btrace>: Change parameters and
11027 return type to allow error reporting.
11028 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11029 trace reading errors on.
11030 * linux-low.c (linux_low_read_btrace): Pass trace reading
11031 errors on.
11032 (linux_low_disable_btrace): New.
11033
ab7f45ba
DE
110342014-01-15 Doug Evans <dje@google.com>
11035
11036 * inferiors.c (thread_id_to_gdb_id): Delete.
11037 * inferiors.h (thread_id_to_gdb_id): Delete.
11038
66af0f44
EZ
110392014-01-13 Eli Zaretskii <eliz@gnu.org>
11040
11041 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11042 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11043 versions.
11044
9939e131
PA
110452014-01-08 Pedro Alves <palves@redhat.com>
11046
11047 * server.c (handle_status): Don't discard previous queued stop
11048 replies or thread's pending status here.
11049 (main) <disconnection>: Do it here instead.
11050
b7ea362b
PA
110512014-01-08 Pedro Alves <palves@redhat.com>
11052
11053 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11054 * server.c (visit_actioned_threads, handle_pending_status): New
11055 function.
11056 (handle_v_cont): Factor out parts to ...
11057 (resume): ... this new function. If in all-stop, and a thread
11058 being resumed has a pending status, report it without actually
11059 resuming.
11060 (myresume): Adjust to use the new 'resume' function.
11061 (clear_pending_status_callback, set_pending_status_callback)
11062 (find_status_pending_thread_callback): New functions.
11063 (handle_status): Handle the case of multiple threads having
11064 interesting statuses to report. Report threads' real last signal
11065 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11066 with an interesting thread to report the status for, instead of
11067 always reporting the status of the first thread.
11068
28498c42
JB
110692014-01-01 Joel Brobecker <brobecker@adacore.com>
11070
11071 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11072 * gdbreplay.c (gdbreplay_version): Likewise.
11073
f45c82da
YZ
110742013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11075
11076 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11077 iov.iov_len with the real length in use.
11078
379a5e2d
JB
110792013-12-13 Joel Brobecker <brobecker@adacore.com>
11080
11081 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11082 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11083 for all targets that use win32-low.c.
11084 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11085 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11086
4210d83e
PA
110872013-12-13 Pedro Alves <palves@redhat.com>
11088
11089 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11090 if equal to TARGET_WAITKIND_LOADED.
11091 * win32-low.c (cached_status): New static global.
11092 (win32_wait): Add declaration.
11093 (do_initial_child_stuff): Flush all initial pending debug events
11094 up to the initial breakpoint.
11095 (win32_wait): If CACHED_STATUS was set, return that instead
11096 of doing a real wait. Remove the code resuming the execution
11097 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11098 during the initial phase. Also remove the code changing
11099 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11100 TARGET_WAITKIND_STOPPED.
11101
e7f0d979
YQ
111022013-12-11 Yao Qi <yao@codesourcery.com>
11103
11104 * notif.c (handle_notif_ack): Return 0 if no notification
11105 matches.
11106
ebcf782c
DE
111072013-11-20 Doug Evans <dje@google.com>
11108
11109 * linux-low.c (linux_set_resume_request): Fix comment.
11110
20ad9378
DE
111112013-11-20 Doug Evans <dje@google.com>
11112
11113 * linux-low.c (resume_status_pending_p): Tweak comment.
11114
a196ebeb
WT
111152013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11116
11117 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11118 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11119 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11120 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11121 (srv_amd64_regobj): Add amd64-mpx.o.
11122 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11123 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11124 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11125 * i387-fp.c (num_pl_bnd_register) Added constant.
11126 (num_pl_bnd_cfg_registers) Added constant.
11127 (struct i387_xsave) Added reserved area and MPX fields.
11128 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11129 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11130 function.
11131 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11132 (init_registers_amd64_mpx_linux): Declare new function.
11133 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11134 (x86_64_regmap): Add MPX registers.
11135 (x86_linux_read_description): Add MPX case.
11136 (initialize_low_arch): Initialize MPX targets.
11137
0080a2f6
TT
111382013-11-18 Tom Tromey <tromey@redhat.com>
11139
11140 * configure: Rebuild.
11141 * configure.ac: Don't check for stdlib.h.
11142 * gdbreplay.c: Unconditionally include stdlib.h.
11143
2978b111
TT
111442013-11-18 Tom Tromey <tromey@redhat.com>
11145
11146 * config.in: Rebuild.
11147 * configure: Rebuild.
11148 * configure.ac: Don't use AC_HEADER_DIRENT.
11149
a3d08894
TT
111502013-11-18 Tom Tromey <tromey@redhat.com>
11151
11152 * server.h: Don't check HAVE_STRING_H.
11153 * gdbreplay.c: Don't check HAVE_STRING_H.
11154 * configure: Rebuild.
11155
0a5dd17d
TT
111562013-11-18 Tom Tromey <tromey@redhat.com>
11157
11158 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11159 LIBGNU.
11160
1bd2f0ba
TT
111612013-11-08 Tom Tromey <tromey@redhat.com>
11162
11163 * configure, config.in: Rebuild.
11164 * configure.ac: Remove unused configury.
11165
3266f10b
TT
111662013-11-08 Tom Tromey <tromey@redhat.com>
11167
11168 * acinclude.m4: Include common.m4, codeset.m4.
11169 * configure, config.in: Rebuild.
11170 * configure.ac: Use GDB_AC_COMMON.
11171
6682d959
AA
111722013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11173
11174 * linux-s390-low.c (HWCAP_S390_TE): New define.
11175 (s390_arch_setup): Consider the TE field in the HWCAP for
11176 determining 'have_regset_tdb'.
11177
fd0a4d76
SDJ
111782013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11179
11180 PR gdb/16014
11181 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11182 call to sizeof.
11183
1a3d890b
PA
111842013-10-02 Pedro Alves <palves@redhat.com>
11185
11186 * server.c (process_serial_event): Don't output "GDBserver
11187 exiting" if GDB is connected through stdio.
11188 * target.c (mywait): Likewise, be silent if GDB is connected
11189 through stdio.
11190
97ad4581
JB
111912013-10-01 Joel Brobecker <brobecker@adacore.com>
11192
11193 * lynx-low.c (lynx_add_threads_after_attach): New function.
11194 (lynx_attach): Remove call to add_thread. Add call to
11195 lynx_add_threads_after_attach instead.
11196
5b4e221c
MF
111972013-09-28 Mike Frysinger <vapier@gentoo.org>
11198
11199 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11200 * config.in, configure: Regenerated.
11201
ee47b2f8
YQ
112022013-09-18 Yao Qi <yao@codesourcery.com>
11203
11204 PR server/15959
11205 * server.c (start_inferior): Clear 'resume_info'.
11206
d6707650 112072013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 11208
d6707650
JW
11209 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11210 for each register.
11211
9243dd0e 112122013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 11213
9243dd0e
JW
11214 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11215 linux-tile-low.o to srv_tgtobj.
11216
c623a6ef
WN
112172013-09-16 Will Newton <will.newton@linaro.org>
11218
11219 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11220 out regs.
11221
fb71d39e
PA
112222013-09-06 Pedro Alves <palves@redhat.com>
11223
11224 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11225 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11226 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11227 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11228 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11229 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11230
8e7e9910
PA
112312013-09-06 Pedro Alves <palves@redhat.com>
11232
11233 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11234 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11235
7c3a12ca
PA
112362013-09-06 Pedro Alves <palves@redhat.com>
11237
11238 * linux-amd64-ipa.c: Include tracepoint.h.
11239 * linux-i386-ipa.c: Include tracepoint.h.
11240
8eb3d7b6
RW
112412013-09-06 Ricard Wanderlof <ricardw@axis.com>
11242
11243 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11244 (ps_get_thread_area): New function.
11245
eddddb9d
RW
112462013-09-06 Ricard Wanderlof <ricardw@axis.com>
11247
11248 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11249 (initialize_low_arch): Call init_registers_crisv32 rather than
11250 init_register_crisv32.
11251
533b0600
PA
112522013-09-05 Pedro Alves <palves@redhat.com>
11253
11254 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11255 to ...
11256 * hostio.h: ... this new file.
11257 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11258 win32-low.c: Include hostio.h.
11259
0ce3d3b5
PA
112602013-09-05 Pedro Alves <palves@redhat.com>
11261
11262 * server.h (gdb_client_data, handler_func, callback_handler_func)
11263 (delete_file_handler, add_file_handler, append_callback_event)
11264 (delete_callback_event, start_event_loop, initialize_event_loop):
11265 Move to event-loop.h and include it.
11266 * event-loop.h: New file.
11267
799cdc37
PA
112682013-09-05 Pedro Alves <palves@redhat.com>
11269
11270 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11271 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11272 (loaded_dll, unloaded_dll): Move to ...
11273 * dll.h: ... this new file.
11274 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11275
6a6bbd9d
PA
112762013-09-05 Pedro Alves <palves@redhat.com>
11277
11278 * server.h (current_process, get_thread_process, all_processes)
11279 (add_inferior_to_list, for_each_inferior, current_inferior)
11280 (remove_inferior, add_process, remove_process, find_process_pid)
11281 (have_started_inferiors_p, have_attached_inferiors_p)
11282 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11283 (clear_inferiors, find_inferior, find_inferior_id)
11284 (inferior_target_data, set_inferior_target_data)
11285 (inferior_regcache_data, set_inferior_regcache_data): Move to
11286 inferiors.h, and include it.
11287 * inferiors.h: New file.
11288
f699aaba
PA
112892013-09-05 Pedro Alves <palves@redhat.com>
11290
11291 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11292 Move ...
72f4393d 11293 * ax.h: ... here.
f699aaba 11294
c144c7a0
PA
112952013-09-05 Pedro Alves <palves@redhat.com>
11296
11297 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11298 tracepoint.h.
11299 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11300 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11301 (handle_tracepoint_general_set, handle_tracepoint_query)
11302 (tracepoint_finished_step, tracepoint_was_hit)
11303 (release_while_stepping_state_list, current_traceframe)
11304 (in_readonly_region, traceframe_read_mem)
11305 (fetch_traceframe_registers, traceframe_read_sdata)
11306 (traceframe_read_info, struct fast_tpoint_collect_status)
11307 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11308 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11309 (supply_fast_tracepoint_registers)
11310 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11311 (ipa_tdesc, claim_trampoline_space)
11312 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11313 (agent_mem_read, agent_get_trace_state_variable_value)
11314 (agent_set_trace_state_variable_value, agent_tsv_read)
11315 (agent_mem_read_string, get_raw_reg_func_addr)
11316 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11317 * tracepoint.h: ... this new file.
11318
ff42e6ab
PA
113192013-09-05 Pedro Alves <palves@redhat.com>
11320
11321 * server.h (perror_with_name, error, fatal, warning, paddress)
11322 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11323 include it.
11324 * utils.h: New file.
11325
541af0f4
PA
113262013-09-05 Pedro Alves <palves@redhat.com>
11327
11328 * server.h (remote_debug, noack_mode, transport_is_reliable)
11329 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11330 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11331 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11332 (write_enn, initialize_async_io, enable_async_io)
11333 (disable_async_io, check_remote_input_interrupt_request)
11334 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11335 (dead_thread_notify, prepare_resume_reply)
11336 (decode_address_to_semicolon, decode_address, decode_m_packet)
11337 (decode_M_packet, decode_X_packet, decode_xfer_write)
11338 (decode_search_memory_packet, unhexify, hexify)
11339 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11340 (look_up_one_symbol, relocate_instruction)
11341 (monitor_output): Move to remote-utils.h, and include it.
11342 * remote-utils.h: New file.
11343
eebdf26b
PA
113442013-09-05 Pedro Alves <palves@redhat.com>
11345
11346 * server.h (_): Delete.
11347
3aafd2ff
PA
113482013-09-02 Pedro Alves <palves@redhat.com>
11349
11350 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11351 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11352 allocated.
11353 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11354
cee83bcb
PM
113552013-09-02 Pierre Muller <muller@sourceware.org>
11356
11357 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11358 or WriteProcessMemory complete successfully and handle
11359 ERROR_PARTIAL_COPY error.
11360
9a13b2fa
PA
113612013-09-02 Pedro Alves <palves@redhat.com>
11362
11363 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11364 error instead of EIO.
11365
602e3198
JK
113662013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11367
11368 PR server/15604
11369 * linux-low.c: Include filestuff.h.
11370 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11371 * lynx-low.c: Include filestuff.h.
11372 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11373 * server.c: Include filestuff.h.
11374 (main): Call notice_open_fds.
11375 * spu-low.c: Include filestuff.h.
11376 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11377
96d7229d
LM
113782013-08-22 Luis Machado <lgustavo@codesourcery.com>
11379
11380 * Makefile.in: Explain why ../target and ../nat are not
11381 listed as include file search paths.
11382 (linux-waitpid.o): New object file rule.
11383 * configure.srv (srv_native_linux_obj): New variable.
11384 Replace all occurrences of linux native object files with
11385 $srv_native_linux_obj.
11386 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11387 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11388 (linux_enable_event_reporting): Remove declaration.
11389 (my_waitpid): Moved to common/linux-waitpid.c.
11390 (linux_wait_for_event): Pass ptid when calling
11391 linux_enable_event_reporting.
11392 (linux_supports_tracefork_flag): Remove.
11393 (linux_enable_event_reporting): Likewise.
11394 (linux_tracefork_grandchild): Remove.
11395 (STACK_SIZE): Moved to common/linux-ptrace.c.
11396 (linux_tracefork_child): Remove.
11397 (linux_test_for_tracefork): Remove.
11398 (linux_look_up_symbols): Call linux_supports_traceclone.
11399 (initialize_low): Remove call to linux_test_for_tracefork.
11400 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11401 common/linux-ptrace.h.
11402 (PTRACE_TYPE_ARG4): Likewise.
11403 Include linux-ptrace.h.
11404
32940073
PA
114052013-08-21 Pedro Alves <palves@redhat.com>
11406
11407 * config.in: Renegerate.
11408
33b60d58 114092013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 11410
33b60d58
LM
11411 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11412 (SFILES): Remove $(srcdir)/common/target-common.c and
11413 add $(srcdir)/target/waitstatus.c.
11414 (OBS): Remove target-common.o and add waitstatus.o.
11415 (server_h): Remove $(srcdir)/../common/target-common.h and
11416 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11417 and $(srcdir)/../target/waitstatus.h.
11418 (target-common.o): Remove.
11419 (waitstatus.o): New target object file.
11420 * target.h: Do not include target-common.h and
11421 include target/resume.h, target/wait.h and
11422 target/waitstatus.h.
11423
b8e1b30e
LM
114242013-08-13 Luis Machado <lgustavo@codesourcery.com>
11425
11426 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11427 to PTRACE_TYPE_ARG3.
11428 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11429 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11430 PTRACE_TYPE_ARG4.
11431 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11432 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11433
7a60ad40
YQ
114342013-07-27 Jie Zhang <jie@codesourcery.com>
11435 Daniel Jacobowitz <dan@codesourcery.com>
11436 Yao Qi <yao@codesourcery.com>
11437
11438 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11439 (mips-linux-watch.o): New rule.
11440 (mips_linux_watch_h): New variable.
11441 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11442 srv_tgtobj.
11443 * linux-mips-low.c: Include mips-linux-watch.h.
11444 (struct arch_process_info, struct arch_lwp_info): New.
11445 (update_watch_registers_callback): New function.
11446 (mips_linux_new_process, mips_linux_new_thread) New functions.
11447 (mips_linux_prepare_to_resume, mips_insert_point): New
11448 functions.
11449 (mips_remove_point, mips_stopped_by_watchpoint): New
11450 functions.
11451 (rsp_bp_type_to_target_hw_bp_type): New function.
11452 (mips_stopped_data_address): New function.
11453 (the_low_target): Add watchpoint support functions.
11454
de6f69ad
YQ
114552013-07-27 Yao Qi <yao@codesourcery.com>
11456
11457 * i386-low.c: Include break-common.h.
11458 (enum target_hw_bp_type): Remove.
11459
3360c0bf
LM
114602013-07-24 Luis Machado <lgustavo@codesourcery.com>
11461
11462 * Makefile.in (SFILES): /common/target-common.c.
11463 (OBS): Add target-common.o.
11464 (server_h): Add $(srcdir)/../common/target-common.h.
11465 (target-common.o): New target.
11466 * server.c (queue_stop_reply_callback): Free
11467 status string after use.
11468 * target.c (target_waitstatus_to_string): Remove.
11469 * target.h: Include target-common.h.
11470 (resume_kind): Likewise.
11471 (target_waitkind): Likewise.
11472 (target_waitstatus): Likewise.
11473 (TARGET_WNOHANG): Likewise.
11474
bd885420
YQ
114752013-07-04 Yao Qi <yao@codesourcery.com>
11476
11477 * Makefile.in (host_alias): Use @host_noncanonical@.
11478 (target_alias): Use @target_noncanonical@.
11479 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11480 ACX_NONCANONICAL_HOST.
11481 * configure: Regenerated.
11482
11483 Revert:
11484 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11485
11486 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11487 * configure: Rebuild.
11488 * Makefile.in (version_host, version_target): Get from configure.
11489 (version.c): Use $(version_host) and $(version_target).
11490
17ef446e
PA
114912013-07-03 Pedro Alves <palves@redhat.com>
11492
11493 * Makefile.in (config.status): Depend on development.sh.
11494 * acinclude.m4: Include libmcheck.m4.
11495 * configure: Regenerate.
11496
7a9a7487
MG
114972013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11498
11499 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11500 attribute inside the parentheses.
11501 (winapi_DebugSetProcessKillOnExit): Ditto.
11502 (winapi_DebugBreakProcess): Ditto.
11503 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 11504
49b64de6
MG
115052013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11506
11507 * notif.h (notif_event): Add a dummy member to avoid compiler
11508 errors.
11509
d5749ee7
PA
115102013-07-01 Pedro Alves <palves@redhat.com>
11511
11512 * hostio.c (HOSTIO_PATH_MAX): Define.
11513 (require_filename, handle_open, handle_unlink, handle_readlink):
11514 Use it.
11515
d8d2a3ee
PA
115162013-07-01 Pedro Alves <palves@redhat.com>
11517
11518 * server.h: Include "pathmax.h".
11519 * linux-low.c: Don't include sys/param.h.
11520 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11521 MAXPATHLEN.
11522 * win32-low.c: Don't include sys/param.h.
11523 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11524
bc7dea8d
PA
115252013-07-01 Pedro Alves <palves@redhat.com>
11526
11527 * event-loop.c: Don't check HAVE_UNISTD_H before including
11528 <unistd.h>.
11529 * gdbreplay.c: Likewise.
11530 * remote-utils.c: Likewise.
11531 * server.c: Likewise.
11532 * configure.ac: Don't check for unistd.h.
11533 * configure: Regenerate.
11534
d6c2da54
TT
115352013-06-28 Tom Tromey <tromey@redhat.com>
11536
11537 * Makefile.in (version.c): Use version.in, not
11538 common/version.in.
11539
257b6bec
MG
115402013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11541
11542 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11543 * configure: Rebuild.
11544 * Makefile.in (version_host, version_target): Get from configure.
11545 (version.c): Use $(version_host) and $(version_target).
11546
86ebe149
DK
115472013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11548
11549 Fix trace-status to output user name without trailing colon.
11550 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11551
f30aa5af
DK
115522013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11553
11554 Fix trace-status to output proper start-time and stop-time.
11555 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11556 output start time and stop time in hex as gdb expects.
11557
28a93511
YQ
115582013-06-26 Pedro Alves <pedro@codesourcery.com>
11559
11560 * tracepoint.c (build_traceframe_info_xml): Output trace state
11561 variables present in the trace buffer.
11562
01208463
TT
115632013-06-24 Tom Tromey <tromey@redhat.com>
11564
11565 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11566 create-version.sh.
11567 (version.o): Remove.
11568 * gdbreplay.c: Include version.h.
11569 (version, host_name): Don't declare.
11570 * server.h: Include version.h.
11571 (version, host_name): Don't declare.
11572
760256f9
PA
115732013-06-12 Pedro Alves <palves@redhat.com>
11574
11575 * linux-x86-low.c (linux_is_elf64): Delete global.
11576 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11577 with local linux_pid_exe_is_elf_64_file use.
11578
030031ee
PA
115792013-06-11 Pedro Alves <palves@redhat.com>
11580
11581 * linux-low.c (regset_disabled, disable_regset): New functions.
11582 (regsets_fetch_inferior_registers)
11583 (regsets_store_inferior_registers): Use them.
11584 (initialize_regsets_info); Don't allocate the disabled_regsets
11585 array here.
11586 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11587 comment.
11588
5da6eb0a
PA
115892013-06-11 Pedro Alves <palves@redhat.com>
11590
11591 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11592 xmalloc.
11593
7e5aaa09
PA
115942013-06-11 Pedro Alves <palves@redhat.com>
11595
11596 * linux-x86-low.c (initialize_low_arch): Call
11597 init_registers_x32_avx_linux.
11598
d878444c
JK
115992013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11600
11601 Fix compatibility with Android Bionic.
11602 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11603 it is not empty.
11604
3aee8918
PA
116052013-06-07 Pedro Alves <palves@redhat.com>
11606
5f2b57b5 11607 PR server/14823
3aee8918
PA
11608 * Makefile.in (OBS): Add tdesc.o.
11609 (IPA_OBJS): Add tdesc-ipa.o.
11610 (tdesc-ipa.o): New rule.
11611 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11612 interface.
11613 * linux-low.c (new_inferior): Delete.
11614 (disabled_regsets, num_regsets): Delete.
11615 (linux_add_process): Adjust to set the new per-process
11616 new_inferior flag.
11617 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11618 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11619 was a stop. When calling arch_setup, switch the current inferior
11620 to the thread that got an event.
11621 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11622 (regsets_fetch_inferior_registers)
11623 (regsets_store_inferior_registers): New regsets_info parameter.
11624 Adjust to use it.
11625 (linux_register_in_regsets): New regs_info parameter. Adjust to
11626 use it.
11627 (register_addr, fetch_register, store_register): New usrregs_info
11628 parameter. Adjust to use it.
11629 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11630 parameter regs_info. Adjust to use it.
11631 (linux_fetch_registers): Get the current inferior's regs_info, and
11632 adjust to use it.
11633 (linux_store_registers): Ditto.
11634 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11635 (initialize_low): Don't initialize the target_regsets here. Call
11636 initialize_low_arch.
11637 * linux-low.h (target_regsets): Delete declaration.
11638 (struct regsets_info): New.
11639 (struct usrregs_info): New.
11640 (struct regs_info): New.
11641 (struct process_info_private) <new_inferior>: New field.
11642 (struct linux_target_ops): Delete the num_regs, regmap, and
11643 regset_bitmap fields. New field regs_info.
11644 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11645 * i387-fp.c (num_xmm_registers): Delete.
11646 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11647 calls to new interface.
11648 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11649 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11650 Infer the number of xmm registers from the regcache's target
11651 description.
11652 * i387-fp.h (num_xmm_registers): Delete.
11653 * inferiors.c (add_thread): Don't install the thread's regcache
11654 here.
11655 * proc-service.c (gregset_info): Fetch the current inferior's
11656 regs_info. Adjust to use it.
11657 * regcache.c: Include tdesc.h.
11658 (register_bytes, reg_defs, num_registers)
11659 (gdbserver_expedite_regs): Delete.
11660 (get_thread_regcache): If the thread doesn't have a regcache yet,
11661 create one, instead of aborting gdbserver.
11662 (regcache_invalidate_one): Rename to ...
11663 (regcache_invalidate_thread): ... this.
11664 (regcache_invalidate_one): New.
11665 (regcache_invalidate): Only invalidate registers of the current
11666 process.
11667 (init_register_cache): Add target_desc parameter, and use it.
11668 (new_register_cache): Ditto. Assert the target description has a
11669 non zero registers_size.
11670 (regcache_cpy): Add assertions. Adjust.
11671 (realloc_register_cache, set_register_cache): Delete.
11672 (registers_to_string, registers_from_string): Adjust.
11673 (find_register_by_name, find_regno, find_register_by_number)
11674 (register_cache_size): Add target_desc parameter, and use it.
11675 (free_register_cache_thread, free_register_cache_thread_one)
11676 (regcache_release, register_cache_size): New.
11677 (register_size): Add target_desc parameter, and use it.
11678 (register_data, supply_register, supply_register_zeroed)
11679 (supply_regblock, supply_register_by_name, collect_register)
11680 (collect_register_as_string, collect_register_by_name): Adjust.
11681 * regcache.h (struct target_desc): Forward declare.
11682 (struct regcache) <tdesc>: New field.
11683 (init_register_cache, new_register_cache): Add target_desc
11684 parameter.
11685 (regcache_invalidate_thread): Declare.
11686 (regcache_invalidate_one): Delete declaration.
11687 (regcache_release): Declare.
11688 (find_register_by_number, register_cache_size, register_size)
11689 (find_regno): Add target_desc parameter.
11690 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11691 declarations.
11692 * remote-utils.c: Include tdesc.h.
11693 (outreg, prepare_resume_reply): Adjust.
11694 * server.c: Include tdesc.h.
11695 (gdbserver_xmltarget): Delete declaration.
11696 (get_features_xml, process_serial_event): Adjust.
11697 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11698 declare.
11699 (struct process_info) <tdesc>: New field.
11700 (ipa_tdesc): Declare.
11701 * tdesc.c: New file.
11702 * tdesc.h: New file.
11703 * tracepoint.c: Include tdesc.h.
11704 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11705 (get_context_regcache): Adjust to pass ipa_tdesc down.
11706 (do_action_at_tracepoint): Adjust to get the register cache size
11707 from the context regcache's description.
11708 (traceframe_walk_blocks): Adjust to get the register cache size
11709 from the current trace frame's description.
11710 (traceframe_get_pc): Adjust to get current trace frame's
11711 description and pass it down.
11712 (gdb_collect): Adjust to get the register cache size from the
11713 IPA's description.
11714 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11715 (gdbserver_xmltarget): Delete.
11716 (initialize_low_tracepoint): Set the ipa's target description.
11717 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11718 (initialize_low_tracepoint): Set the ipa's target description.
11719 * linux-x86-low.c: Include tdesc.h.
11720 [__x86_64__] (is_64bit_tdesc): New.
11721 (ps_get_thread_area, x86_get_thread_area): Use it.
11722 (i386_cannot_store_register): Rename to ...
11723 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11724 (i386_cannot_fetch_register): Rename to ...
11725 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11726 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11727 to new interface.
11728 (target_regsets): Rename to ...
11729 (x86_regsets): ... this.
11730 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11731 interface.
11732 (x86_siginfo_fixup): Use is_64bit_tdesc.
11733 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11734 (tdesc_x32_avx_linux, tdesc_x32_linux)
11735 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11736 Declare.
11737 (x86_linux_update_xmltarget): Delete.
11738 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11739 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11740 (AMD64_LINUX_USER64_CS): New.
11741 (x86_linux_read_description): New, based on
11742 x86_linux_update_xmltarget.
11743 (same_process_callback): New.
11744 (x86_arch_setup_process_callback): New.
11745 (x86_linux_update_xmltarget): New.
11746 (x86_regsets_info): New.
11747 (amd64_linux_regs_info): New.
11748 (i386_linux_usrregs_info): New.
11749 (i386_linux_regs_info): New.
11750 (x86_linux_regs_info): New.
11751 (x86_arch_setup): Reimplement.
11752 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11753 (x86_emit_ops): Ditto.
11754 (the_low_target): Adjust. Install x86_linux_regs_info,
11755 x86_cannot_fetch_register, and x86_cannot_store_register.
11756 (initialize_low_arch): New.
11757 * linux-ia64-low.c (tdesc_ia64): Declare.
11758 (ia64_fetch_register): Adjust.
11759 (ia64_usrregs_info, regs_info): New globals.
11760 (ia64_regs_info): New function.
11761 (the_low_target): Adjust.
11762 (initialize_low_arch): New function.
11763 * linux-sparc-low.c (tdesc_sparc64): Declare.
11764 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11765 Adjust.
11766 (sparc_arch_setup): New function.
11767 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11768 (the_low_target): Adjust.
11769 (initialize_low_arch): New function.
11770 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11771 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11772 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11773 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11774 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11775 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11776 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11777 (tdesc_powerpc_isa205_vsx64l): Declare.
11778 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11779 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11780 (ppc_set_pc, ppc_get_hwcap): Adjust.
11781 (ppc_usrregs_info): Forward declare.
11782 (!__powerpc64__) ppc_regmap_adjusted: New global.
11783 (ppc_arch_setup): Adjust to the current process'es target
11784 description.
11785 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11786 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11787 (ppc_store_evrregset): Adjust.
11788 (target_regsets): Rename to ...
11789 (ppc_regsets): ... this, and make static.
11790 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11791 (ppc_regs_info): New function.
11792 (the_low_target): Adjust.
11793 (initialize_low_arch): New function.
11794 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11795 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11796 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11797 (tdesc_s390x_linux64v2): Declare.
11798 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11799 (s390_fill_gregset, s390_store_last_break): Adjust.
11800 (target_regsets): Rename to ...
11801 (s390_regsets): ... this, and make static.
11802 (s390_get_pc, s390_set_pc): Adjust.
11803 (s390_get_hwcap): New target_desc parameter, and use it.
11804 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11805 (s390_arch_setup): Adjust to set the current process'es target
11806 description. Don't adjust the regmap.
11807 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11808 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11809 (regs_info_3264): New globals.
11810 (s390_regs_info): New function.
11811 (the_low_target): Adjust.
11812 (initialize_low_arch): New function.
11813 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11814 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11815 [__mips64] (init_registers_mips_linux)
11816 (init_registers_mips_dsp_linux): Delete defines.
11817 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11818 (have_dsp): New global.
11819 (mips_read_description): New, based on mips_arch_setup.
11820 (mips_arch_setup): Reimplement.
11821 (get_usrregs_info): New function.
11822 (mips_cannot_fetch_register, mips_cannot_store_register)
11823 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11824 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11825 (target_regsets): Rename to ...
11826 (mips_regsets): ... this, and make static.
11827 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11828 (dsp_regs_info, regs_info): New globals.
11829 (mips_regs_info): New function.
11830 (the_low_target): Adjust.
11831 (initialize_low_arch): New function.
11832 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11833 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11834 Declare.
11835 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11836 (arm_read_description): New, with bits factored from
11837 arm_arch_setup.
11838 (arm_arch_setup): Reimplement.
11839 (target_regsets): Rename to ...
11840 (arm_regsets): ... this, and make static.
11841 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11842 (arm_regs_info): New function.
11843 (the_low_target): Adjust.
11844 (initialize_low_arch): New function.
11845 * linux-m68k-low.c (tdesc_m68k): Declare.
11846 (target_regsets): Rename to ...
11847 (m68k_regsets): ... this, and make static.
11848 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11849 (m68k_regs_info): New function.
11850 (m68k_arch_setup): New function.
11851 (the_low_target): Adjust.
11852 (initialize_low_arch): New function.
11853 * linux-sh-low.c (tdesc_sharch): Declare.
11854 (target_regsets): Rename to ...
11855 (sh_regsets): ... this, and make static.
11856 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11857 (sh_regs_info, sh_arch_setup): New functions.
11858 (the_low_target): Adjust.
11859 (initialize_low_arch): New function.
11860 * linux-bfin-low.c (tdesc_bfin): Declare.
11861 (bfin_arch_setup): New function.
11862 (bfin_usrregs_info, regs_info): New globals.
11863 (bfin_regs_info): New function.
11864 (the_low_target): Adjust.
11865 (initialize_low_arch): New function.
11866 * linux-cris-low.c (tdesc_cris): Declare.
11867 (cris_arch_setup): New function.
11868 (cris_usrregs_info, regs_info): New globals.
11869 (cris_regs_info): New function.
11870 (the_low_target): Adjust.
11871 (initialize_low_arch): New function.
11872 * linux-cris-low.c (tdesc_crisv32): Declare.
11873 (cris_arch_setup): New function.
11874 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11875 (cris_regs_info): New function.
11876 (the_low_target): Adjust.
11877 (initialize_low_arch): New function.
11878 * linux-m32r-low.c (tdesc_m32r): Declare.
11879 (m32r_arch_setup): New function.
11880 (m32r_usrregs_info, regs_info): New globals.
11881 (m32r_regs_info): Adjust.
11882 (initialize_low_arch): New function.
11883 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11884 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11885 (tic6x_usrregs_info): Forward declare.
11886 (tic6x_read_description): New function, based on ...
11887 (tic6x_arch_setup): ... this. Reimplement.
11888 (target_regsets): Rename to ...
11889 (tic6x_regsets): ... this, and make static.
11890 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11891 (tic6x_regs_info): New function.
11892 (the_low_target): Adjust.
11893 (initialize_low_arch): New function.
11894 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11895 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11896 (target_regsets): Rename to ...
11897 (xtensa_regsets): ... this, and make static.
11898 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11899 globals.
11900 (xtensa_arch_setup, xtensa_regs_info): New functions.
11901 (the_low_target): Adjust.
11902 (initialize_low_arch): New function.
11903 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11904 (nios2_arch_setup): Set the current process'es tdesc.
11905 (target_regsets): Rename to ...
11906 (nios2_regsets): ... this.
11907 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11908 (nios2_regs_info): New function.
11909 (the_low_target): Adjust.
11910 (initialize_low_arch): New function.
a261b8f5
PA
11911 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11912 (aarch64_arch_setup): Set the current process'es tdesc.
11913 (target_regsets): Rename to ...
11914 (aarch64_regsets): ... this.
11915 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11916 (aarch64_regs_info): New function.
11917 (the_low_target): Adjust.
11918 (initialize_low_arch): New function.
3aee8918
PA
11919 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11920 globals.
11921 (target_regsets): Rename to ...
11922 (tile_regsets): ... this.
11923 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11924 (tile_regs_info): New function.
11925 (tile_arch_setup): Set the current process'es tdesc.
11926 (the_low_target): Adjust.
11927 (initialize_low_arch): New function.
11928 * spu-low.c (tdesc_spu): Declare.
11929 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11930 * win32-arm-low.c (tdesc_arm): Declare.
11931 (arm_arch_setup): New function.
11932 (the_low_target): Install arm_arch_setup instead of
11933 init_registers_arm.
11934 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11935 (init_windows_x86): Rename to ...
11936 (i386_arch_setup): ... this. Set `win32_tdesc'.
11937 (the_low_target): Adjust.
11938 * win32-low.c (win32_tdesc): New global.
11939 (child_add_thread): Don't create the thread cache here.
11940 (do_initial_child_stuff): Set the new process'es tdesc.
11941 * win32-low.h (struct target_desc): Forward declare.
11942 (win32_tdesc): Declare.
11943 * lynx-i386-low.c (tdesc_i386): Declare global.
11944 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11945 * lynx-low.c (lynx_tdesc): New global.
11946 (lynx_add_process): Set the new process'es tdesc.
11947 * lynx-low.h (struct target_desc): Forward declare.
11948 (lynx_tdesc): Declare global.
11949 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11950 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11951 * nto-low.c (nto_tdesc): New global.
11952 (do_attach): Set the new process'es tdesc.
11953 * nto-low.h (struct target_desc): Forward declare.
11954 (nto_tdesc): Declare.
11955 * nto-x86-low.c (tdesc_i386): Declare.
11956 (nto_x86_arch_setup): Set `nto_tdesc'.
11957
b1fbec62
GB
119582013-06-04 Gary Benson <gbenson@redhat.com>
11959
11960 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11961 to qSupported response when appropriate.
11962 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11963 with nonzero-length annex.
11964 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11965 arguments supplied in annex.
11966
d1ec4ce7
DE
119672013-05-31 Doug Evans <dje@google.com>
11968
ac44adcb 11969 PR server/15594
d1ec4ce7
DE
11970 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11971 64 bits in 64-cross-32 environment.
11972
9b25f2d3
PA
119732013-05-28 Pedro Alves <palves@redhat.com>
11974
11975 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11976 (aarch64-without-fpu.c): Delete rule.
11977 * configure.srv (aarch64*-*-linux*): Remove references to
11978 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11979 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11980 declaration.
11981
6740dc9c
PA
119822013-05-24 Pedro Alves <palves@redhat.com>
11983
11984 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11985 instead of strchr/decode_address. Error if the range isn't split
11986 with a ','. Don't assume there's be a ':' in the action.
11987
c2d6af84
PA
119882013-05-23 Yao Qi <yao@codesourcery.com>
11989 Pedro Alves <palves@redhat.com>
11990
11991 * linux-low.c (lwp_in_step_range): New function.
11992 (linux_wait_1): If the thread was range stepping and stopped
11993 outside the stepping range, report the stop to GDB. Otherwise,
11994 continue stepping. Add range stepping debug output.
11995 (linux_set_resume_request): Copy the step range from the resume
11996 request to the lwp.
11997 (linux_supports_range_stepping): New.
11998 (linux_target_ops) <supports_range_stepping>: Set to
11999 linux_supports_range_stepping.
12000 * linux-low.h (struct linux_target_ops)
12001 <supports_range_stepping>: New field.
12002 (struct lwp_info) <step_range_start, step_range_end>: New fields.
12003 * linux-x86-low.c (x86_supports_range_stepping): New.
12004 (the_low_target) <supports_range_stepping>: Set to
12005 x86_supports_range_stepping.
12006 * server.c (handle_v_cont): Handle 'r' action.
12007 (handle_v_requests): Append ";r" if the target supports range
12008 stepping.
12009 * target.h (struct thread_resume) <step_range_start,
12010 step_range_end>: New fields.
12011 (struct target_ops) <supports_range_stepping>:
12012 New field.
12013 (target_supports_range_stepping): New macro.
12014
58794e1a
JB
120152013-05-17 Joel Brobecker <brobecker@adacore.com>
12016
12017 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
12018 confusion in comment.
12019
d631c5a7
JB
120202013-05-17 Joel Brobecker <brobecker@adacore.com>
12021
12022 * lynx-low.c (struct process_info_private): New type.
12023 (lynx_add_process): New function.
12024 (lynx_create_inferior, lynx_attach): Replace calls to
12025 add_process by calls to lynx_add_process.
12026 (lynx_resume): If PTID is null, then try using
12027 current_process()->private->last_wait_event_ptid.
12028 Add comments.
12029 (lynx_clear_inferiors): Delete. The contents of that function
12030 has been inlined in lynx_mourn;
12031 (lynx_wait_1): Save the ptid in the process's private data.
12032 (lynx_mourn): Free the process' private data. Replace call
12033 to lynx_clear_inferiors by call to clear_inferiors.
12034
96f7a20f
YQ
120352013-05-17 Yao Qi <yao@codesourcery.com>
12036
12037 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12038 the right place.
12039
db0dfaa0
LM
120402013-05-16 Luis Machado <lgustavo@codesourcery.com>
12041
12042 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12043 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12044 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12045 PT_TEXT_END_ADDR guards. Update comments.
12046 (linux_target_op) <read_offsets>: Conditionally define to
12047 linux_read_offsets if the target is UCLIBC and if it defines
12048 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12049
68f5f838
SL
120502013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12051 Andrew Jenner <andrew@codesourcery.com>
12052
12053 * Makefile.in (SFILES): Add linux-nios2-low.c.
12054 (clean): Add action to delete nios2-linux.c.
12055 (nios2-linux.c): New rule.
12056 * configure.srv: Add nios2*-*-linux*.
12057 * linux-nios2-low.c: New.
12058
1ebff1fd
HAQ
120592013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12060
12061 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12062
f6150862
HZ
120632013-04-25 Hui Zhu <hui@codesourcery.com>
12064
12065 PR gdb/15186
f6150862
HZ
12066 * ax.c (ax_printf): Add fflush.
12067
614c279d
TT
120682013-04-22 Tom Tromey <tromey@redhat.com>
12069
12070 * Makefile.in (SFILES): Add filestuff.c.
12071 (OBS): Add filestuff.o.
12072 (filestuff.o): New target.
12073 * config.in, configure: Rebuild.
12074 * configure.ac: Check for fdwalk, pipe2.
12075
7d4e5717
PA
120762013-04-17 Pedro Alves <palves@redhat.com>
12077
12078 * configure.ac (USE_THREAD_DB): Delete variable.
12079 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12080 Don't AC_SUBST USE_THREAD_DB.
12081 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12082 * config.in, configure: Regenerate.
12083
d5c93e41
PA
120842013-04-16 Pedro Alves <palves@redhat.com>
12085
12086 * linux-low.h (struct lwp_info) <thread_known>: Move under
12087 the USE_THREAD_DB #ifdef.
12088
04f5fe89
PA
120892013-04-16 Pedro Alves <palves@redhat.com>
12090
12091 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12092 (linux-low.o): Delete rule.
12093 * linux-low.h: Always include "gdb_thread_db.h" instead of
12094 conditionally including thread_db.h.
12095 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12096 HAVE_THREAD_DB_H.
12097
480b27bf
JK
120982013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12099
12100 * Makefile.in (install-only): Fix make install regression.
12101
43662968
JK
121022013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12103
12104 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12105 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12106 installation.
12107 * gdbserver.1: Remove.
12108
3e74e146
PA
121092013-03-22 Pedro Alves <palves@redhat.com>
12110
12111 * linux-low.c (handle_extended_wait): Don't call
12112 linux_enable_event_reporting.
12113
a8347a2a
TT
121142013-03-15 Tony Theodore <tonyt@logyst.com>
12115
12116 PR build/9098:
12117 * Makefile.in (SHELL): Use @SHELL@.
12118
eeb56fa7
SDJ
121192013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12120
12121 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12122 compiler warning.
12123
4fa7e2ff
JB
121242013-03-13 Joel Brobecker <brobecker@adacore.com>
12125
12126 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12127 Remove extraneous NULL element.
12128
8ddb1965
YQ
121292013-03-13 Yao Qi <yao@codesourcery.com>
12130
12131 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12132 'V' block in trace frame.
12133
9accd112
MM
121342013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12135
12136 * target.h (struct target_ops): Add btrace ops.
12137 (target_supports_btrace): New macro.
12138 (target_enable_btrace): New macro.
12139 (target_disable_btrace): New macro.
12140 (target_read_btrace): New macro.
12141 * gdbthread.h (struct thread_info): Add btrace field.
12142 * server.c: Include btrace-common.h.
12143 (handle_btrace_general_set): New function.
12144 (handle_btrace_enable): New function.
12145 (handle_btrace_disable): New function.
12146 (handle_general_set): Call handle_btrace_general_set.
12147 (handle_qxfer_btrace): New function.
12148 (struct qxfer qxfer_packets[]): Add btrace entry.
12149 * inferiors.c (remove_thread): Disable btrace.
12150 * linux-low: Include linux-btrace.h.
12151 (linux_low_enable_btrace): New function.
12152 (linux_low_read_btrace): New function.
12153 (linux_target_ops): Add btrace ops.
12154 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12155 Add srv_linux_btrace=yes.
12156 (x86_64-*-linux*): Add linux-btrace.o.
12157 Add srv_linux_btrace=yes.
12158 * configure.ac: Define HAVE_LINUX_BTRACE.
12159 * config.in: Regenerated.
12160 * configure: Regenerated.
12161
5cc22e4c
MM
121622013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12163
12164 * server.c (handle_qxfer): Preserve error message if -3 is
12165 returned.
12166 (qxfer): Document the -3 return value.
12167
7c97f91e
MM
121682013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12169
12170 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12171 (linux_btrace_h): New variable.
12172 (linux-btrace.o): New rule.
12173
be9a119c 121742013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
12175 Hafiz Abid Qadeer <abidh@codesourcery.com>
12176
12177 * tracepoint.c (trace_buffer_size): New global.
12178 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12179 (init_trace_buffer): Change to one-argument function. Allocate
12180 trace buffer memory.
12181 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12182 handle QTBuffer:size packet.
12183 (cmd_bigqtbuffer_size): New function.
12184 (initialize_tracepoint): Call init_trace_buffer with
12185 DEFAULT_TRACE_BUFFER_SIZE.
12186 * server.c (handle_query): Add QTBuffer:size in the
12187 supported packets.
12188
e64f7499
YQ
121892013-03-07 Yao Qi <yao@codesourcery.com>
12190
12191 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12192 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12193 of -1.
12194 (cmd_qtsp): Adjust condition. Do post increment.
12195 Set cur_action and cur_step_action back to 0.
12196
f0ae6fc3
PA
121972013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12198
12199 PR server/15236
12200 * linux-low.c (linux_write_memory): Return early success if LEN is
12201 zero.
12202
b5b0b0af
CV
122032013-03-05 Corinna Vinschen <vinschen@redhat.de>
12204
334ad4a8 12205 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 12206
589bc927
TT
122072013-02-28 Tom Tromey <tromey@redhat.com>
12208
12209 * configure.ac: Invoke AC_SYS_LARGEFILE.
12210 * configure, config.in: Rebuild.
12211
dfe07582
CV
122122013-02-28 Corinna Vinschen <vinschen@redhat.com>
12213
12214 * win32-low.c: Throughout, fix format strings and casts of
12215 printf-like functions to avoid type related warnings on all
12216 platforms.
12217 (get_child_debug_event): Print dwDebugEventCode as hex since
12218 that's how it's usually documented.
12219
736cd585
YQ
122202013-02-28 Yao Qi <yao@codesourcery.com>
12221
12222 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12223 pulongest.
12224
e1f58301
JW
122252013-02-27 Jiong Wang <jiwang@tilera.com>
12226
12227 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12228 (reg-tilegx32.c): New rule.
12229 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12230 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12231 different register info initializer according to elf class.
12232 (init_registers_tilgx32): New function. The tilegx32 register info
12233 initializer.
12234 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12235 (tile_store_gregset): Likewise.
12236
d171ca78
YQ
122372013-02-27 Yao Qi <yao@codesourcery.com>
12238
12239 * server.c (process_point_options): Print debug message when
12240 debug_threads is true.
12241
282bbdf3
YQ
122422013-02-26 Yao Qi <yao@codesourcery.com>
12243
12244 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12245
aca22551
PA
122462013-02-19 Pedro Alves <palves@redhat.com>
12247 Kai Tietz <ktietz@redhat.com>
12248
12249 PR gdb/15161
12250
12251 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12252 instead of strtoul to extract address from packet.
12253 (process_serial_event) <'z'>: Likewise.
12254
4f3cee1c
YQ
122552013-02-18 Yao Qi <yao@codesourcery.com>
12256
12257 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12258
8e1d55a3
PA
122592013-02-14 Pedro Alves <palves@redhat.com>
12260
12261 Plug memory leak.
12262
12263 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12264 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12265
458820da
PA
122662013-02-14 Pedro Alves <palves@redhat.com>
12267
12268 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12269
baea0dae
PA
122702013-02-14 Pedro Alves <palves@redhat.com>
12271
12272 * tracepoint.c (save_string): Delete.
12273 (add_tracepoint_action): Use savestring instead of save_string.
12274
0b1afbb3
PA
122752013-02-12 Pedro Alves <palves@redhat.com>
12276
12277 * linux-xtensa-low.c: Ditto.
12278 * xtensa-xtregs.c: Ditto.
12279
8a4ac37e
PA
122802013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12281
12282 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12283 thread_db.
12284
148de6bb
MS
122852013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12286
12287 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12288 aarch64_num_wp_regs and aarch64_num_bp_regs to
12289 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12290
55fac6e0
MS
122912013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12292
12293 * linux-aarch64-low.c (ps_get_thread_area): Replace
12294 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12295
176eb98c
MS
122962013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12297 Marcus Shawcroft <marcus.shawcroft@arm.com>
12298 Nigel Stephens <nigel.stephens@arm.com>
12299 Yufeng Zhang <yufeng.zhang@arm.com>
12300
12301 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12302 (aarch64.c, aarch64-without-fpu.c): New targets.
12303 * configure.srv (aarch64*-*-linux*): New.
12304 * linux-aarch64-low.c: New file.
12305
56f7af9c
MS
123062013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12307
43aaf8b6 12308 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
12309 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12310 (dequeue_one_deferred_signal, linux_resume_one_thread)
12311 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12312 (linux_tracefork_grandchild, linux_test_for_tracefork)
12313 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12314 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12315 where the argument is 0.
12316
60f662b0
YQ
123172013-01-25 Yao Qi <yao@codesourcery.com>
12318
12319 * event-loop.c: Include "queue.h".
12320 (gdb_event_p): New typedef.
12321 (struct gdb_event) <next_event>: Remove.
12322 (event_queue): Change to QUEUE(gdb_event_p).
12323 (async_queue_event): Remove.
12324 (gdb_event_xfree): New.
12325 (initialize_event_loop): New.
12326 (process_event): Use API from QUEUE.
12327 (wait_for_event): Likewise.
12328 * server.c (main): Call initialize_event_loop.
12329 * server.h (initialize_event_loop): Declare.
12330
5ae4861a
YQ
123312013-01-18 Yao Qi <yao@codesourcery.com>
12332
12333 * ax.h (struct eval_agent_expr_context): New.
12334 (gdb_eval_agent_expr): Update declaration.
12335 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12336 TFRAME. Add new argument CTX.
12337 * server.h (struct eval_agent_expr_context): Declare.
12338 (agent_mem_read, agent_tsv_read): Update declaration.
12339 (agent_mem_read_string): Likewise.
12340 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12341 (add_traceframe_block): Add new argument TPOINT.
12342 Increase TPOINT->traceframe_usage.
12343 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12344 eval_tracepoint_agent_expr.
12345 (condition_true_at_tracepoint): Likewise.
12346 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12347 (agent_mem_read_string, agent_tsv_read): Likewise.
12348
85e00e85
YQ
123492013-01-16 Yao Qi <yao@codesourcery.com>
12350
12351 * linux-low.c (linux_resume_one_lwp): Don't check
12352 'lwp->bp_reinsert != 0'.
12353
4039cf45
JB
123542013-01-07 Joel Brobecker <brobecker@adacore.com>
12355 Pedro Alves <palves@redhat.com>
12356
12357 * lynx-low.c (ptrace_request_to_str): Define a temporary
12358 macro and use it to simplify this function's implementation.
12359
9044dee2
JB
123602013-01-07 Joel Brobecker <brobecker@adacore.com>
12361
12362 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12363 sets errno.
12364
e6352c8f
JB
123652013-01-07 Joel Brobecker <brobecker@adacore.com>
12366
12367 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12368
50681a27
JB
123692013-01-07 Joel Brobecker <brobecker@adacore.com>
12370
12371 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12372
3f6e77ef
JB
123732013-01-07 Joel Brobecker <brobecker@adacore.com>
12374
12375 * lynx-low.c (lynx_resume): Use the resume_info parameter
12376 to determine the ptid for the lynx_ptrace call, unless
12377 it is equal to minus_one_ptid, in which case we use the
12378 ptid of the current_inferior.
12379 (lynx_wait_1): After having received a thread create/exit
12380 event, resume the inferior's execution using the signaling
12381 thread's ptid, rather than the old ptid.
12382
7fda33ae
JB
123832013-01-07 Joel Brobecker <brobecker@adacore.com>
12384
12385 * lynx-low.c (lynx_resume): Delete variable ret.
12386
b9786c74
JB
123872013-01-01 Joel Brobecker <brobecker@adacore.com>
12388
12389 * gdbreplay.c (gdbreplay_version): Update copyright year.
12390 * server.c (gdbserver_version): Likewise.
12391
8b93d60f
JB
123922012-12-17 Joel Brobecker <brobecker@adacore.com>
12393
12394 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12395 new thread.
12396
037335a7
JB
123972012-12-17 Joel Brobecker <brobecker@adacore.com>
12398
12399 * lynx-low.c (ptrace_request_to_str): Add handling for
12400 PTRACE_GETTRACESIG.
12401
52d4cbd8
JB
124022012-12-17 Joel Brobecker <brobecker@adacore.com>
12403
12404 * lynx-low.c (lynx_attach): Delete variable new_process.
12405
ab8f6ca9
JB
124062012-12-17 Joel Brobecker <brobecker@adacore.com>
12407
12408 * lynx-low.c (lynx_create_inferior): Delete variable
12409 new_process.
12410
78cbc024
JB
124112012-12-17 Joel Brobecker <brobecker@adacore.com>
12412
12413 * lynx-low.c (ptrace_request_to_str): Do not handle
12414 PTRACE_GETTHREADLIST if this macro does not exist.
12415
14a00470
YQ
124162012-12-15 Yao Qi <yao@codesourcery.com>
12417
12418 * Makefile.in (OBS): Add notif.o.
12419 * notif.c, notif.h: New.
12420 * server.c: Include "notif.h".
12421 (struct vstop_notif) <next>: Remove.
12422 <base>: New field.
12423 (queue_stop_reply): Update.
12424 (push_event, send_next_stop_reply): Remove.
12425 (discard_queued_stop_replies): Update.
12426 (notif_stop): New variable.
12427 (handle_v_stopped): Remove.
12428 (handle_v_requests): Don't call handle_v_stopped. Call
12429 handle_ack_notif instead.
12430 (queue_stop_reply_callback): Call notif_event_enque instead
12431 of queue_stop_reply.
12432 (handle_status): Don't call send_next_stop_reply, call
12433 notif_write_event instead.
12434 (kill_inferior_callback): Likewise.
12435 (detach_or_kill_inferior_callback): Likewise.
12436 (main): Call initialize_notif.
12437 (process_serial_event): Call QUEUE_is_empty.
12438 (handle_target_event): Call notif_push instead of push event.
12439 * server.h (push_event): Remove declaration.
12440
61c125b9
TT
124412012-12-10 Tom Tromey <tromey@redhat.com>
12442
12443 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12444 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12445 macros.
12446 (.c.o): Rewrite.
12447 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12448 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12449 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12450 (amd64-linux-ipa.o, ax.o): Rewrite.
12451 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12452 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12453 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12454 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12455 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12456 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12457 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12458 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12459 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12460 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12461 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12462 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12463 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12464 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12465 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12466 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12467 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12468 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12469 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12470 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12471 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12472 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12473 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12474 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12475 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12476 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12477 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12478 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12479 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12480 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12481 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12482 (reg-tilegx.o): Remove.
12483 (all_object_files): New macro.
12484 Include .deps files.
12485 * aclocal.m4, configure: Rebuild.
12486 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12487 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12488 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12489
e90e9ad9
TT
124902012-12-05 Tom Tromey <tromey@redhat.com>
12491
12492 PR gdb/14917:
12493 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12494
02d403bf 124952012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
12496
12497 * configure.ac: Check for linux/perf_event.h.
12498 * config.in: Regenerated.
12499 * configure: Regenerated.
12500
0270a750
PA
125012012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12502
12503 * hostio.c (handle_readlink): Decrease buffer size
12504 parameter passed to readlink by one byte.
12505
8c29b58e
YQ
125062012-11-26 Yao Qi <yao@codesourcery.com>
12507
12508 * configure.ac (build_warnings): Append '-Wempty-body'.
12509 * configure: Regenerated.
12510 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12511 body.
12512
8bdce1ff
PM
125132012-11-15 Pierre Muller <muller@sourceware.org>
12514
12515 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12516 * config.in: Regenerate.
12517 * configure: Regenerate.
12518 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12519 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12520 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12521 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12522 header.
12523 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12524 instead of <sys/wait.h> header.
12525 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12526
02d403bf 125272012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
12528
12529 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12530 (various make rules): Remove -DGDBSERVER
12531
fbd5db48
YQ
125322012-11-09 Yao Qi <yao@codesourcery.com>
12533
12534 * spu-low.c (current_ptid): Move it to ..
12535 * gdbthread.h: ... here. New.
12536 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12537 * server.c (myresume, process_serial_event): Likewise.
12538 * thread-db.c (thread_db_find_new_threads): Likewise.
12539 * tracepoint.c (run_inferior_command): Likewise.
12540
b3dc46ff
AB
125412012-10-01 Andrew Burgess <aburgess@broadcom.com>
12542
12543 * server.c (handle_search_memory_1): Include access length in
12544 warning message.
12545
07c04788
HPN
125462012-09-05 Michael Brandt <michael.brandt@axis.com>
12547
12548 * linux-crisv32-low.c: Fix compile errors.
12549
918d227b
YQ
125502012-09-04 Yao Qi <yao@codesourcery.com>
12551
12552 * tracepoint.c (cmd_qtsv): Adjust debug message.
12553 Don't check CUR_TPOINT.
12554
18c1b81a
YQ
125552012-08-28 Yao Qi <yao@codesourcery.com>
12556
12557 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12558 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12559 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12560 Remove declarations of xmalloc, xreallloc, xstrdup and
12561 freeargv.
12562 * Makefile.in (libiberty_h): New.
12563 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12564 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12565
dc82f37b
YQ
125662012-08-23 Yao Qi <yao@codesourcery.com>
12567
12568 * server.h: Remove declaration of 'xsnprintf'.
12569
406b1477
KS
125702012-08-22 Keith Seitz <keiths@redhat.com>
12571
12572 * server.h: Include build-gnulib-gbserver/config.h.
12573 * gdbreplay.c: Likewise.
12574
e6712ff1
DE
125752012-08-08 Doug Evans <dje@google.com>
12576
12577 * Makefile.in (SFILES): Add gdb_vecs.c.
12578 (OBS): Add gdb_vecs.o.
12579 (gdb_vecs_h, host_defs_h): New variables.
12580 (thread-db.o): Add $(gdb_vecs_h) dependency.
12581 (gdb_vecs.o): New rule.
12582 * thread-db.c: #include "gdb_vecs.h".
12583 (thread_db_load_search): Use a vector to iterate over path elements.
12584 Handle text appearing after "$pdir".
12585
12586 * configure.ac: Add check for strstr.
12587 * config.in: Regenerate.
12588 * configure: Regenerate.
12589
7c3270ae
UW
125902012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12591
12592 * hostio.c (handle_pread): If pread fails, fall back to attempting
12593 lseek/read.
12594 (handle_pwrite): Likewise for pwrite.
12595
b62e2b27
UW
125962012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12597
12598 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12599 between unsupported TYPE and unimplementable ADDR/LEN combination.
12600 (arm_insert_point): Act on new return value.
12601
78a99e91
PA
126022012-07-31 Pedro Alves <palves@redhat.com>
12603
12604 * server.c (process_point_options): Only skip tokens if we find
12605 one that is unrecognized. Don't treat 'X' specially while
12606 skipping unrecognized tokens.
12607
fcf303ab
UW
126082012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12609
12610 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12611 to 4-byte-align HW breakpoint addresses for Thumb.
12612
7255706c
YQ
126132012-07-27 Yao Qi <yao@codesourcery.com>
12614
12615 PR remote/14161.
12616
12617 * server.h: Declare gdb_agent_about_to_close.
12618 * target.c (kill_inferior): Include "agent.h".
12619 New. Send command 'kill'.
12620 * target.h (kill_inferior): Removed macro.
12621 * tracepoint.c (gdb_agent_about_to_close): New.
12622 (gdb_agent_helper_thread): Handle command 'close'.
12623 Wait endlessly until the inferior stops.
12624 Install gdb_agent_remove_socket to atexit hook.
12625 (agent_socket_name): New static variable.
12626 (gdb_agent_socket_init): Replace local variable 'name' with
12627 'agent_socket_name'.
12628 (gdb_agent_remove_socket): New.
12629
5a3f286f
YQ
126302012-07-27 Yao Qi <yao@codesourcery.com>
12631
12632 * server.c (process_point_options): Stop at 'X' when parsing.
12633
961bd387
ME
126342012-07-19 Michael Eager <eager@eagercon.com>
12635
a261b8f5 12636 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
12637 to hw_execute.
12638 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12639 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12640 hardware breakpoint.
12641
aa7c7447
JK
126422012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12643
12644 * gdbserver/linux-low.c (initialize_low): Call
12645 linux_ptrace_init_warnings.
12646
7f216e7c
DE
126472012-07-02 Doug Evans <dje@google.com>
12648
12649 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12650 pointer to int.
12651
d3ce09f5
SS
126522012-07-02 Stan Shebs <stan@codesourcery.com>
12653
12654 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12655 (ax.o): Add it to build rule.
12656 (ax-ipa.o): Ditto.
12657 (OBS): Add format.o.
12658 (IPA_OBS): Add format.o.
12659 * server.c (handle_query): Claim support for breakpoint commands.
12660 (process_point_options): Add command case.
12661 (process_serial_event): Leave running if there are printfs in
12662 effect.
12663 * mem-break.h (any_persistent_commands): Declare.
12664 (add_breakpoint_commands): Declare.
12665 (gdb_no_commands_at_breakpoint): Declare.
12666 (run_breakpoint_commands): Declare.
12667 * mem-break.c (struct point_command_list): New struct.
12668 (struct breakpoint): New field command_list.
12669 (any_persistent_commands): New function.
12670 (add_commands_to_breakpoint): New function.
12671 (add_breakpoint_commands): New function.
12672 (gdb_no_commands_at_breakpoint): New function.
12673 (run_breakpoint_commands): New function.
12674 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12675 locally.
12676 * ax.c: Include format.h.
12677 (ax_printf): New function.
12678 (gdb_eval_agent_expr): Add printf opcode.
12679
2f8f6aed
YQ
126802012-06-13 Yao Qi <yao@codesourcery.com>
12681
12682 * server.c (start_inferior): Remove duplicated writes to fields
12683 'last_resume_kind' and 'last_status' of 'current_inferior'.
12684
0c9070b3
YQ
126852012-06-12 Yao Qi <yao@codesourcery.com>
12686 Pedro Alves <palves@redhat.com>
12687
12688 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12689 comment.
12690 * server.c (handle_v_cont): Extend comment.
12691
c52daf70
YQ
126922012-06-11 Yao Qi <yao@codesourcery.com>
12693
12694 * linux-low.c (linux_attach): Add 'static'.
12695
d38bbb0a
YQ
126962012-06-06 Yao Qi <yao@codesourcery.com>
12697
12698 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12699
89dc0afd
JK
127002012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12701
12702 Fix gcc -flto compilation warning.
12703 * server.c (main): Make variable multi_mode and attach volatile.
12704
75f62ce7
TJB
127052012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12706
12707 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12708 if the platform doesn't know about it.
12709
65f479b6
PA
127102012-05-30 Jeff Kenton <jkenton@tilera.com>
12711
12712 * Makefile.in (SFILES): Add linux-tile-low.c.
12713 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12714 * configure.srv: Handle tilegx-*-linux*.
12715 * linux-tile-low.c: New file.
12716
0c5bf5a9
JK
127172012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12718
12719 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12720
a493e3e2
PA
127212012-05-24 Pedro Alves <palves@redhat.com>
12722
12723 PR gdb/7205
12724
43aaf8b6 12725 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 12726
2ea28649
PA
127272012-05-24 Pedro Alves <palves@redhat.com>
12728
12729 PR gdb/7205
12730
12731 Replace target_signal with gdb_signal throughout.
12732
8d409d16
MR
127332012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12734
12735 * linux-low.c (linux_store_registers): Avoid the copying sequence
12736 when no data has been retrieved by ptrace.
12737
23512c01
MGD
127382012-05-22 Will Deacon <will.deacon@arm.com>
12739
12740 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12741 Include asm/ptrace.h.
12742 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12743 already defined.
12744
4934b29e
MR
127452012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12746
12747 * linux-low.c (linux_store_registers): Don't re-retrieve data
12748 with ptrace that has already been obtained from /proc. Always
12749 copy any data retrieved with ptrace to the buffer supplied.
12750
bde24c0a
PA
127512012-05-11 Yao Qi <yao@codesourcery.com>
12752 Pedro Alves <palves@redhat.com>
12753
12754 * linux-low.c (enum stopping_threads_kind): New.
12755 (stopping_threads): Change type to `enum stopping_threads_kind'.
12756 (handle_extended_wait): If stopping and suspending threads, leave
12757 the new_lwp suspended too.
12758 (linux_wait_for_event): Adjust.
12759 (stop_all_lwps): Set `stopping_threads' to
12760 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12761 whether we're suspending threads or just stopping them. Assert no
12762 recursion happens.
12763
623b6bdf
YQ
127642012-04-29 Yao Qi <yao@codesourcery.com>
12765
12766 * server.h: Move some code to ...
12767 * gdbthread.h: ... here. New.
12768 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12769 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12770 (nto-low.o, win32-low.o): Likewise.
12771 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12772 * regcache.c, remote-utils.c, server.c: Likewise.
12773 * target.c, tracepoint.c, win32-low.c: Likewise.
12774
f15f9948
TJB
127752012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12776
12777 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12778 (PTRACE_ARG4_TYPE): Likewise.
12779 (PTRACE_XFER_TYPE): Likewise.
12780 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12781 ptrace to PTRACE_ARG3_TYPE.
12782 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12783 (PTRACE_ARG4_TYPE): Likewise.
12784 (PTRACE_XFER_TYPE): Likewise.
12785 (linux_detach_one_lwp): Cast fourth argument of
12786 ptrace to long then PTRACE_ARG4_TYPE.
12787 (regsets_fetch_inferior_registers): Cast third argument of
12788 ptrace to long then PTRACE_ARG3_TYPE.
12789 (regsets_store_inferior_registers): Likewise.
12790
38ea300a
PA
127912012-04-20 Pedro Alves <palves@redhat.com>
12792
12793 * configure: Regenerate.
12794
c971b7fa
PA
127952012-04-19 Pedro Alves <palves@redhat.com>
12796
43aaf8b6 12797 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 12798 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
12799 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12800 (all, install-only, uninstall, clean-info, all-lib, clean): No
12801 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12802 (maintainer-clean realclean distclean): Use subdir_do.
12803 (subdir_do): New.
12804 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 12805 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
12806 * acinclude.m4: Include acx_configure_dir.m4.
12807 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12808 calls. Call AC_PROG_RANLIB. Configure gnulib using
12809 ACX_CONFIGURE_DIR.
12810 (GNULIB): New.
12811 (GNULIB_STDINT_H): Adjust.
12812 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12813 * gdbreplay.c: Include build-gnulib/config.h.
12814 * server.h: Likewise.
12815 * aclocal.m4: Regenerate.
12816 * config.in: Regenerate.
12817 * configure: Regenerate.
c971b7fa 12818
809277f8
PA
128192012-04-19 Pedro Alves <palves@redhat.com>
12820
12821 * Makefile.in (LIBGNU, INCGNU): Adjust.
12822 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12823 (all, install-only, uninstall, clean-info, all-lib, clean)
12824 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12825 * configure.ac: Adjust AC_OUTPUT output.
12826 * aclocal.m4: Regenerate.
12827 * configure: Regenerate.
12828
fd9bb8b8
PA
128292012-04-19 Pedro Alves <palves@redhat.com>
12830
12831 * Makefile.in (generated_files): New.
12832 (server_h): Remove the explicit dependency on config.h, and depend
12833 on $generated_files.
12834
1c298c66
PA
128352012-04-19 Pedro Alves <palves@redhat.com>
12836
12837 * Makefile.in (INCGNU): Add -Ignulib.
12838
57c4b50b
PA
128392012-04-19 Pedro Alves <palves@redhat.com>
12840
12841 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12842 (INCGNU): ... this, and spell out -I here.
12843 (GNULIB_LIB): Rename to ...
12844 (LIBGNU): ... this.
12845 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12846
1030e047
PA
128472012-04-19 Pedro Alves <palves@redhat.com>
12848
12849 * config.in: Regenerate.
12850
447d4319
PA
128512012-04-19 Pedro Alves <palves@redhat.com>
12852
12853 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12854 * server.h (memmem): Remove declaration.
12855 * config.in: Regenerate.
12856 * configure: Regenerate.
12857
aad9eab9
YQ
128582012-04-19 Yao Qi <yao@codesourcery.com>
12859
12860 * Makefile.in (SFILES): Add common/vec.c.
12861 (OBS): Add vec.o.
12862 (vec.o): New rule.
12863
3e10640f
YQ
128642012-04-19 Yao Qi <yao@codesourcery.com>
12865
12866 * remote-utils.c (prepare_resume_reply): Replace with macro
12867 target_core_of_thread.
12868 * server.c (handle_qxfer_threads_proper): Likewise.
12869 * target.h (traget_core_of_thread): New macro.
12870
71622373
PA
128712012-04-18 Pedro Alves <palves@redhat.com>
12872
12873 * aclocal.m4: Regenerate.
12874 * configure: Regenerate.
12875
80d26939
YQ
128762012-04-16 Yao Qi <yao@codesourcery.com>
12877
12878 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12879 duplicated on address.
12880
42476b70
YQ
128812012-04-16 Yao Qi <yao@codesourcery.com>
12882
12883 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12884 (struct tracepoint_action_ops) <send>: New field.
12885 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12886 (agent_expr_send, x_tracepoint_action_send): New.
12887 (l_tracepoint_action_send): New.
12888 (cmd_qtdp): Download and install tracepoint
12889 according to `use_agent'.
12890 (run_inferior_command): Add one more parameter `len'.
12891 Update callers.
12892 (tracepoint_send_agent): New.
12893 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12894
7bc83639
YQ
128952012-04-16 Yao Qi <yao@codesourcery.com>
12896
12897 * tracepoint.c (download_tracepoints): Moved to ...
12898 (cmd_qtstart): ... here.
12899
5f18041e
YQ
129002012-04-14 Yao Qi <yao@codesourcery.com>
12901
12902 * tracepoint.c: Include inttypes.h.
12903 (struct collect_memory_action): Use sized types.
12904 (struct tracepoint): Likewise.
12905 (cmd_qtdp, stop_tracing): Update print specifiers.
12906 (cmd_qtp, response_tracepoint): Likewise.
12907 (collect_data_at_tracepoint): Likewise.
12908 (collect_data_at_step): Likewise.
12909
55a8c076
YQ
129102012-04-14 Yao Qi <yao@codesourcery.com>
12911
12912 Import gnulib module inttypes.
12913 * aclocal.m4, config.in, configure: Regenerated.
12914
dc750257
YQ
129152012-04-14 Yao Qi <yao@codesourcery.com>
12916
12917 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12918 Makefile and config.status at last.
12919
0ab5faf9
YQ
129202012-04-13 Yao Qi <yao@codesourcery.com>
12921
12922 * tracepoint.c: Include stdint.h unconditionally.
12923
18f5fd81
TJB
129242012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12925
12926 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12927 on BFD_HAVE_SYS_PROCFS_TYPE.
12928 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12929 * configure: Regenerate.
12930 * config.in: Likewise.
12931
4d47af5c
L
129322012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12933
12934 * Makefile.in (clean): Also remove x32.c x32-linux.c
12935 x32-avx.c x32-avx-linux.c.
12936 (x32.o): New target.
12937 (x32.c): Likewise.
12938 (x32-linux.o): Likewise.
12939 (x32-linux.c): Likewise.
12940 (x32-avx.o): Likewise.
12941 (x32-avx.c): Likewise.
12942 (x32-avx-linux.o): Likewise.
12943 (x32-avx-linux.c): Likewise.
12944
12945 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12946 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12947 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12948 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12949 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12950 i386/x32-avx-linux.xml.
12951
12952 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12953 (init_registers_x32_avx_linux): Likwise.
12954 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12955 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12956
ecedbe58
PA
129572012-04-13 Pedro Alves <palves@redhat.com>
12958
12959 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12960 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12961 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12962 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12963 the sub-make.
12964
c92b5177
L
129652012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12966
12967 * linux-x86-low.c (compat_x32_clock_t): New.
12968 (compat_x32_siginfo_t): Likewise.
12969 (compat_x32_siginfo_from_siginfo): Likewise.
12970 (siginfo_from_compat_x32_siginfo): Likewise.
12971 (linux_is_elf64): Likewise.
12972 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12973 and siginfo_from_compat_x32_siginfo for x32.
12974 (x86_arch_setup): Set linux_is_elf64.
12975
214d508e
L
129762012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12977
12978 PR gdb/13969
12979 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12980 e_machine field.
12981 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12982 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12983 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12984 compatible with process.
12985
c9a1864a
YQ
129862012-04-12 Yao Qi <yao@codesourcery.com>
12987
12988 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12989 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12990 (install-only, install-info, clean): Handle sub dir gnulib.
12991 (all-lib, am--refresh): New targets.
12992 (memmem.o): Remove target.
12993 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12994 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12995 (AC_REPLACE_FUNCS): Remove memmem.
12996 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12997 (AC_OUTPUT): Generate Makefile in gnulib/.
12998 * aclocal.m4, config.in, configure: Regenerated.
12999
367ba2c2
MR
130002012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
13001
13002 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
13003
9d236627
PA
130042012-04-05 Pedro Alves <palves@redhat.com>
13005
13006 -Werror=strict-aliasing
13007
13008 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
13009 pointer.
13010
111217b3
PA
130112012-04-04 Pedro Alves <palves@redhat.com>
13012
13013 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13014 (sparc_store_gregset_from_stack, sparc_store_gregset)
13015 (sparc_breakpoint_at): Fix formatting.
13016
8365dcf5
TJB
130172012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13018
13019 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
13020 are available.
13021 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
13022 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
13023 * config.in: Regenerate.
13024 * configure: Likewise.
13025
689cc2ae
PA
130262012-03-29 Pedro Alves <palves@redhat.com>
13027
13028 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13029 Correct ptrace arguments.
13030
c14dfd32
PA
130312012-03-28 Pedro Alves <palves@redhat.com>
13032
13033 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13034 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13035 (IA64_FR1_REGNUM): New defines.
13036 (ia64_fetch_register): New.
13037 (the_low_target): Install it.
13038 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13039 field.
13040 * linux-low.c (linux_fetch_registers): Try the
13041 the_low_target.fetch_register hook first.
13042
13043 * linux-arm-low.c (the_low_target): Adjust.
13044 * linux-bfin-low.c (the_low_target): Adjust.
13045 * linux-cris-low.c (the_low_target): Adjust.
13046 * linux-crisv32-low.c (the_low_target): Adjust.
13047 * linux-m32r-low.c (the_low_target): Adjust.
13048 * linux-m68k-low.c (the_low_target): Adjust.
13049 * linux-mips-low.c (the_low_target): Adjust.
13050 * linux-ppc-low.c (the_low_target): Adjust.
13051 * linux-s390-low.c (the_low_target): Adjust.
13052 * linux-sh-low.c (the_low_target): Adjust.
13053 * linux-sparc-low.c (the_low_target): Adjust.
13054 * linux-tic6x-low.c (the_low_target): Adjust.
13055 * linux-x86-low.c (the_low_target): Adjust.
13056 * linux-xtensa-low.c (the_low_target): Adjust.
13057
63c88e13
PA
130582012-03-26 Pedro Alves <palves@redhat.com>
13059
13060 * server.c (handle_qxfer_libraries): Don't bail early if
13061 the_target->qxfer_libraries_svr4 is not NULL.
13062
fb723180
PA
130632012-03-26 Pedro Alves <palves@redhat.com>
13064
13065 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13066
0afae3cf
PA
130672012-03-23 Pedro Alves <palves@redhat.com>
13068
13069 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13070 "library-list-svr4" element's start tag when the the DSO list is
13071 empty.
13072
485f1ee4
PA
130732012-03-23 Pedro Alves <palves@redhat.com>
13074
13075 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13076 a variable whose type size is the same as the inferior's pointer
13077 size.
13078
a5362b9a
TS
130792012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13080
13081 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13082 struct siginfo.
13083 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13084 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13085 * linux-low.h: Include <signal.h>.
13086 (struct siginfo): Remove forward declaration.
13087 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13088 struct siginfo.
13089
d226c142
MF
130902012-03-21 Mike Frysinger <vapier@gentoo.org>
13091
13092 * .gitignore: Ignore more files.
13093
122f36ef
PA
130942012-03-19 Pedro Alves <palves@redhat.com>
13095 Jan Kratochvil <jan.kratochvil@redhat.com>
13096
13097 * server.c (cont_thread, general_thread): Add describing comments.
13098 (start_inferior): Clear `cont_thread'.
13099 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13100 of a process.
13101
fc3e5175
YQ
131022012-03-15 Yao Qi <yao@codesourcery.com>
13103
13104 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13105 handling to ...
13106 (cmd_qtdp): ... here.
13107
8d0d92cd
YQ
131082012-03-15 Yao Qi <yao@codesourcery.com>
13109
13110 * tracepoint.c (struct tracepoint_action_ops): New.
13111 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13112 (m_tracepoint_action_download): New.
13113 (r_tracepoint_action_download): New.
13114 (x_tracepoint_action_download): New.
13115 (l_tracepoint_action_download): New.
13116 (add_tracepoint_action): Install `action->ops' according type.
13117 (download_tracepoint_1): Move code `download' function pointer
13118 of various tracepoint_action_ops.
13119
87b0bb13
JK
131202012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13121
13122 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13123 linux_ptrace_attach_warnings.
13124
5f572dec
JK
131252012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13126
13127 * Makefile.in (linux-ptrace.o): New.
13128 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13129 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13130 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13131 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13132 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13133 of these targets.
13134 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13135
f4647387
YQ
131362012-03-08 Yao Qi <yao@codesourcery.com>
13137 Pedro Alves <palves@redhat.com>
13138
13139 Fix PR server/13392.
13140 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13141 offset of JMP insn.
13142 * tracepoint.c (remove_tracepoint): New.
13143 (cmd_qtdp): Call remove_tracepoint when failed to install.
13144
9b224c5e
PA
131452012-03-07 Pedro Alves <palves@redhat.com>
13146
13147 * linux-low.c (get_detach_signal): New.
13148 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13149 Pass on pending signals to PTRACE_DETACH. Check the result of the
13150 ptrace call.
13151 * server.c (program_signals, program_signals_p): New.
13152 (handle_general_set): Handle QProgramSignals.
13153 * server.h (program_signals, program_signals_p): Declare.
13154
e237a7e2
JK
131552012-03-05 Pedro Alves <palves@redhat.com>
13156 Jan Kratochvil <jan.kratochvil@redhat.com>
13157
13158 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13159 New comment why.
13160
5808517f
YQ
131612012-03-03 Yao Qi <yao@codesourcery.com>
13162
13163 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13164 agent_look_up_symbols.
13165
58b4daa5
YQ
131662012-03-03 Yao Qi <yao@codesourcery.com>
13167
13168 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13169 (linux-x86-low.o): Likewise.
13170 * server.h: Remove in_process_agent_loaded.
13171 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13172 common/agent.c.
13173 Update callers.
13174
8ffcbaaf
YQ
131752012-03-03 Yao Qi <yao@codesourcery.com>
13176
13177 * tracepoint.c (gdb_agent_capability): New global.
13178 (in_process_agent_loaded_ust): Renamed to
13179 `in_process_agent_supports_ust'.
13180 Update callers.
13181 (in_process_agent_supports_ust): Call agent_capability_check.
13182 (clear_installed_tracepoints): Assert that agent supports
13183 agent.
13184
d1feda86
YQ
131852012-03-03 Yao Qi <yao@codesourcery.com>
13186
13187 * linux-low.c (linux_supports_agent): New.
13188 (linux_target_ops): Initialize field `supports_agent' with
13189 linux_supports_agent.
13190 * target.h (struct target_ops) <supports_agent>: New.
13191 (target_supports_agent): New macro.
13192 * server.c (handle_general_set): Handle packet 'QAgent'.
13193 (handle_query): Send `QAgent+'.
13194 * Makefile.in (server.o): Depends on agent.h.
13195
2fa291ac
YQ
131962012-03-03 Yao Qi <yao@codesourcery.com>
13197
13198 * Makefile.in (OBS): Add agent.o.
13199 Add new rule for agent.o.
13200 Track dependence of tracepoint.c on agent.h.
13201 * tracepoint.c (run_inferior_command_1):
13202 (run_inferior_command): Call agent_run_command.
13203 (gdb_ust_connect_sync_socket): Deleted. Move it to
13204 common/agent.c.
13205 (resume_thread, stop_thread): Likewise.
13206 (gdb_ust_socket_init): Renamed to ...
13207 (gdb_agent_socket_init): ... New.
13208 (gdb_ust_thread): Renamed to ...
13209 (gdb_agent_helper_thread): ... New.
13210 (gdb_ust_init): Move some code to ...
13211 (gdb_agent_init): ... here. New.
13212 [HAVE_UST]: Call gdb_ust_init.
13213 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13214 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13215 * config.in, configure: Regenerated.
13216
05044653
PA
132172012-03-02 Pedro Alves <palves@redhat.com>
13218
13219 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13220 * linux-low.c (struct simple_pid_list): New.
13221 (stopped_pids): New a struct simple_pid_list pointer.
13222 (add_to_pid_list, pull_pid_from_list): New.
13223 (handle_extended_wait): Don't assume the first signal new children
13224 report is SIGSTOP. Adjust call to pull_pid_from_list.
13225 (linux_wait_for_lwp): Adjust.
13226
8d00225b
YQ
132272012-03-02 Yao Qi <yao@codesourcery.com>
13228
13229 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13230 debug log.
13231
19560ba5
YQ
132322012-03-02 Yao Qi <yao@codesourcery.com>
13233
13234 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13235 `stop_pc' and `tpoint'. Update caller.
13236
1faeff08
MR
132372012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13238
13239 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13240 * linux-low.c (use_linux_regsets): New macro.
13241 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13242 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13243 (linux_register_in_regsets): New function.
13244 (usr_fetch_inferior_registers): Skip registers covered by
13245 regsets.
13246 (usr_store_inferior_registers): Likewise.
13247 (usr_fetch_inferior_registers): New macro.
13248 (usr_store_inferior_registers): Likewise.
13249 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13250 (linux_store_registers): Likewise.
13251 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13252 prototype.
13253 (init_registers_mips64_dsp_linux): Likewise.
13254 (init_registers_mips_linux): New macro.
13255 (init_registers_mips_dsp_linux): Likewise.
13256 (mips_dsp_num_regs): Likewise.
13257 (DSP_BASE, DSP_CONTROL): New fallback macros.
13258 (mips_base_regs): New macro.
13259 (mips_regmap): Use it. Fix the size.
13260 (mips_dsp_regmap): New variable.
13261 (mips_dsp_regset_bitmap): Likewise.
13262 (mips_arch_setup): New function.
13263 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13264 than mips_regmap.
13265 (mips_cannot_store_register): Likewise.
13266 (the_low_target): Update .arch_setup, .num_regs and .regmap
13267 initializers. Add .regset_bitmap initializer.
13268 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13269 initializer.
13270 * linux-bfin-low.c (the_low_target): Likewise.
13271 * linux-cris-low.c (the_low_target): Likewise.
13272 * linux-crisv32-low.c (the_low_target): Likewise.
13273 * linux-ia64-low.c (the_low_target): Likewise.
13274 * linux-m32r-low.c (the_low_target): Likewise.
13275 * linux-m68k-low.c (the_low_target): Likewise.
13276 * linux-ppc-low.c (the_low_target): Likewise.
13277 * linux-s390-low.c (the_low_target): Likewise.
13278 * linux-sh-low.c (the_low_target): Likewise.
13279 * linux-sparc-low.c (the_low_target): Likewise.
13280 * linux-tic6x-low.c (the_low_target): Likewise.
13281 * linux-x86-low.c (the_low_target): Likewise.
13282 * linux-xtensa-low.c (the_low_target): Likewise.
13283 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13284 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13285 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13286 srv_xmlfiles.
13287 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13288 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13289
c03e6ccc
YQ
132902012-02-29 Yao Qi <yao@codesourcery.com>
13291 Pedro Alves <palves@redhat.com>
13292
13293 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13294 `step_over_finished' is true.
13295
644cebc9
PA
132962012-02-27 Pedro Alves <palves@redhat.com>
13297
13298 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13299 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13300
c14d7ab2
PA
133012012-02-27 Pedro Alves <palves@redhat.com>
13302
13303 PR server/9684
13304 * linux-low.c (pid_is_stopped): New.
13305 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13306
412c89dd
LM
133072012-02-25 Luis Machado <lgustavo@codesourcery.com>
13308
13309 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13310 of conditions.
13311
b745defe
MR
133122012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13313
13314 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13315
9f3a5c85
LM
133162012-02-24 Luis Machado <lgustavo@codesourcery>
13317
13318 * server.c (handle_query): Advertise support for target-side
13319 breakpoint condition evaluation.
13320 (process_point_options): New function.
13321 (process_serial_event): When inserting a breakpoint, check for
13322 a target-side condition that should be evaluated.
13323
13324 * mem-break.c: Include regcache.h and ax.h.
13325 (point_cond_list_t): New data structure.
13326 (breakpoint) <cond_list>: New field.
13327 (find_gdb_breakpoint_at): Make non-static.
13328 (delete_gdb_breakpoint_at): Clear any target-side
13329 conditions.
13330 (clear_gdb_breakpoint_conditions): New function.
13331 (add_condition_to_breakpoint): Likewise.
13332 (add_breakpoint_condition): Likewise.
13333 (gdb_condition_true_at_breakpoint): Likewise.
13334 (gdb_breakpoint_here): Return result directly instead
13335 of going through a local variable.
13336
13337 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13338 (clear_gdb_breakpoint_conditions): Likewise.
13339 (add_breakpoint_condition): Likewise.
13340 (gdb_condition_true_at_breakpoint): Likewise.
13341
13342 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13343 (need_step_over_p): Take target-side breakpoint condition into
13344 consideration.
13345
5e1dc496
LM
133462012-02-24 Luis Machado <lgustavo@codesourcery>
13347
13348 * server.h: Include tracepoint.h.
13349 (agent_mem_read, agent_get_trace_state_variable_value,
13350 agent_set_trace_state_variable_value,
13351 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13352 get_set_tsv_func_addr): New prototypes.
13353
13354 * ax.h: New include file.
13355 * ax.c: New source file.
13356
13357 * tracepoint.c: Include ax.h.
13358 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13359 agent_expr, eval_result_type): Move to ax.h.
13360 (parse_agent_expr): Rename to ...
13361 (gdb_parse_agent_expr): ... this, make it non-static and move
13362 to ax.h.
13363 (unparse_agent_expr) Rename to ...
13364 (gdb_unparse_agent_expr): ... this, make it non-static and move
13365 to ax.h.
13366 (eval_agent_expr): Rename to ...
13367 (eval_tracepoint_agent_expr): ... this.
13368 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13369 forward declarations.
13370 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13371 (agent_get_trace_state_variable_value): New function.
13372 (agent_set_trace_state_variable_value): New function.
13373 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13374 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13375 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13376 (condition_true_at_tracepoint): Likewise.
13377 (parse_agent_expr): Rename to ...
13378 (gdb_parse_agent_expr): ... this and move to ax.c.
13379 (unparse_agent_expr): Rename to ...
13380 (gdb_unparse_agent_expr): ... this and move to ax.c.
13381 (gdb_agent_op_name): Move to ax.c.
13382 (eval_agent_expr): Rename to ...
13383 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13384 and move to ax.c.
13385 (eval_tracepoint_agent_expr): New function.
13386 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 13387 non-static.
5e1dc496
LM
13388 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13389 ax.c.
13390 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13391 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13392 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13393 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13394 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13395 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13396 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13397 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13398 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13399 (compile_bytecodes): Remove forward declaration.
13400 (is_goto_target): Move to ax.c.
13401 (compile_bytecodes): Move to ax.c and call
13402 agent_get_trace_state_variable_value (...) and
13403 agent_set_trace_state_variable_value (...).
13404
13405 * Makefile.in: Update ax.c and IPA dependencies.
13406
277e4e52
PA
134072012-02-24 Pedro Alves <palves@redhat.com>
13408
13409 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13410 (cmd_bigqtbuffer_circular): ... this. Only handle
13411 'QTBuffer:circular:'.
13412 (handle_tracepoint_general_set): Adjust.
13413
bf4c19f7
YQ
134142012-02-16 Yao Qi <yao@codesourcery.com>
13415
13416 * inferiors.c: Move code to ...
13417 * dll.c: .... here. New.
13418 * server.h: Declare clear_dlls.
13419 * Makefile.in (SFILES): Add dll.c.
13420 (OBS): Add dll.o
13421 (dll.o): New rule.
13422
d73f2619
YQ
134232012-02-11 Yao Qi <yao@codesourcery.com>
13424
13425 * server.c: (handle_monitor_command): Add a new parameter
13426 `own_buf'.
13427 (handle_query): Update caller.
13428
f8255c2a
JB
134292012-02-09 Joel Brobecker <brobecker@adacore.com>
13430
13431 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13432 * configure, config.in: Regenerate.
13433 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13434 is not defined.
13435
da84f473
PA
134362012-02-02 Pedro Alves <palves@redhat.com>
13437
13438 Try SIGKILL first, then PTRACE_KILL.
13439 * linux-low.c (linux_kill_one_lwp): New.
13440 (linux_kill_one_lwp): Rename to ...
13441 (kill_one_lwp_callback): ... this. Use the new
13442 linux_kill_one_lwp.
13443
e886a173
PA
134442012-02-02 Pedro Alves <palves@redhat.com>
13445
13446 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13447 inferior.
13448
be07f1a2
PA
134492012-01-27 Pedro Alves <palves@redhat.com>
13450
13451 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13452 (elf_64_file_p): Make static.
13453 (linux_pid_exe_is_elf_64_file): New.
13454 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13455 Delete declarations.
13456 (linux_pid_exe_is_elf_64_file): Declare.
13457 * linux-x86-low.c (x86_arch_setup): Use
13458 linux_pid_exe_is_elf_64_file.
13459
d8301ad1
JK
134602012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13461
13462 * linux-low.c (linux_wait_for_event_1): Rename to ...
13463 (linux_wait_for_event): ... here and merge it with former
13464 linux_wait_for_event - new variable wait_ptid, use it.
13465 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13466
01b17894
PA
134672012-01-23 Pedro Alves <palves@redhat.com>
13468
13469 * server.c (main): Avoid yet another case of infinite loop while
13470 detaching/killing after a longjmp.
13471
e825046f
JK
134722012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13473
13474 Code cleanup.
13475 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13476
b9e7b9c3
UW
134772012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13478
13479 * hostio.c (handle_readlink): New function.
13480 (handle_vFile): Call it to handle "vFile:readlink" packets.
13481
901f9912
UW
134822012-01-20 Pedro Alves <palves@redhat.com>
13483 Ulrich Weigand <ulrich.weigand@linaro.org>
13484
13485 * server.c (handle_v_requests): Only support vAttach and vRun to
13486 start multiple processes when in extended protocol mode.
13487
fc1ab1a0
PA
134882012-01-17 Pedro Alves <palves@redhat.com>
13489
13490 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13491 memalign plus mprotect to allocate the scratch buffer.
13492
7d5d4e98
PA
134932012-01-13 Pedro Alves <palves@redhat.com>
13494
13495 * server.c (attach_inferior): Clear `cont_thread'.
13496
f128d5e9
PA
134972012-01-13 Pedro Alves <palves@redhat.com>
13498
13499 * server.c (main): Avoid infinite loop while detaching/killing
13500 after a longjmp.
13501
06db92f0
DE
135022012-01-09 Doug Evans <dje@google.com>
13503
13504 * server.c (start_inferior): Set last_ptid in --wrapper case.
13505
32d92999
YQ
135062012-01-06 Yao Qi <yao@codesourcery.com>
13507
13508 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13509 defined.
13510 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13511
5e0a92a9
YQ
135122012-01-04 Yao Qi <yao@codesourcery.com>
13513
13514 * tracepoint.c (cmd_qtdp): Print debug message
13515 for static tracepoint.
13516
ae639e8c
YQ
135172012-01-04 Yao Qi <yao@codesourcery.com>
13518
13519 * tracepoint.c (trace_vdebug): Differentiate debug message
13520 between gdbserver and IPA.
13521
f72429c5
YQ
135222012-01-03 Yao Qi <yao@codesourcery.com>
13523
13524 * tracepoint.c (tracepoint_was_hit): Don't collect for
13525 static tracepoint.
13526
12c3e59c
JB
135272012-01-02 Joel Brobecker <brobecker@adacore.com>
13528
13529 * terminal.h: Reformat copyright header.
13530
67827812
JB
135312012-01-02 Joel Brobecker <brobecker@adacore.com>
13532
13533 * server.c (gdbserver_version): Update copyright year.
13534 * gdbreplay.c (gdbreplay_version): Likewise.
13535
3e52c33d
JK
135362011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13537
13538 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13539
13540 Revert:
13541 2011-12-18 Hui Zhu <teawater@gmail.com>
13542 * linux-low.c (linux_create_inferior): Save return value to ret.
13543
66f1260e
HZ
135442011-12-18 Hui Zhu <teawater@gmail.com>
13545
13546 * linux-low.c (linux_create_inferior): Save return value to ret.
13547
e77616d7
DE
135482011-12-16 Doug Evans <dje@google.com>
13549
e7b06c57
DE
13550 * linux-low.c (linux_create_inferior): If stdio connection,
13551 redirect stdin from /dev/null, stdout to stderr.
13552 * remote-utils.c (remote_is_stdio): New static global.
13553 (remote_connection_is_stdio): New function.
13554 (remote_prepare): Handle stdio connection.
13555 (remote_open): Ditto.
13556 (remote_close): Don't close stdin for stdio connections.
13557 (read_prim,write_prim): New functions. Replace all calls to
13558 read/write to these.
13559 * server.c (main): Watch for "-" argument. Move call to
13560 remote_prepare before start_inferior.
13561 * server.h (STDIO_CONNECTION_NAME): New macro.
13562 (remote_connection_is_stdio): Declare.
13563
e77616d7
DE
13564 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13565 in debugging output.
13566
82067193
YQ
135672011-12-15 Yao Qi <yao@codesourcery.com>
13568
13569 * tracepoint.c: Include sys/syscall.h.
13570 (gdb_ust_thread): Remove preprocessor conditional.
13571
82bfbe7e
PA
135722011-12-14 Pedro Alves <pedro@codesourcery.com>
13573
13574 * linux-low.c (linux_detach_one_lwp): Call
13575 the_low_target.prepare_to_resume before detaching.
13576
712c6575
YQ
135772011-12-14 Yao Qi <yao@codesourcery.com>
13578
13579 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13580 of write.
13581
d54d1edf
YQ
135822011-12-14 Yao Qi <yao@codesourcery.com>
13583
13584 * i386-low.c (i386_low_stopped_data_address): Initialize local
13585 variable `control'.
13586
6210a125
PA
135872011-12-13 Pedro Alves <pedro@codesourcery.com>
13588
13589 PR remote/13492
13590
13591 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13592 DR_CONTROL unless necessary. Extend comments.
13593 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13594 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13595
2ece8244
YQ
135962011-12-13 Yao Qi <yao@codesourcery.com>
13597
13598 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13599 macros.
13600 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13601
784867a5
JK
136022011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13603
13604 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13605 Print new debug message for such case.
13606
6bf36717
JK
136072011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13608
13609 Fix overlapping memcpy.
13610 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13611 the read_inferior_memory transfer.
13612 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13613 write_inferior_memory transfer.
13614 (set_fast_tracepoint_jump): New variable buf. Use it for the
13615 read_inferior_memory and write_inferior_memory transfers.
13616 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13617 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13618 Use it for the write_inferior_memory transfer.
13619 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13620 buffers.
13621
50275556
MR
136222011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13623
13624 * linux-low.c (fetch_register, store_register): Make code
13625 consistent, fix formatting.
13626
7325beb4
MR
136272011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13628
13629 * linux-low.c (usr_store_inferior_registers): Factor out code
13630 to handle individual registers into...
13631 (store_register): ... this new function.
13632
c642a434
UW
136332011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13634
13635 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13636 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13637 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13638 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13639 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13640 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13641 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13642 (srv_xmlfiles): Add new XML files.
13643
13644 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13645 and <sys/uio.h>.
13646 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13647 (init_registers_s390_linux32v1): Add prototype.
13648 (init_registers_s390_linux32v2): Likewise.
13649 (init_registers_s390_linux64v1): Likewise.
13650 (init_registers_s390_linux64v2): Likewise.
13651 (init_registers_s390x_linux64v1): Likewise.
13652 (init_registers_s390x_linux64v2): Likewise.
13653 (s390_num_regs): Increment to 52.
13654 (s390_regmap): Add orig_r2 register.
13655 (s390_num_regs_3264): Increment to 68.
13656 (s390_regmap_3264): Add orig_r2 register.
13657 (s390_collect_ptrace_register): Handle orig_r2 register.
13658 (s390_supply_ptrace_register): Likewise.
13659 (s390_fill_last_break): New function.
13660 (s390_store_last_break): Likewise.
13661 (s390_fill_system_call): New function.
13662 (s390_store_system_call): Likewise.
13663 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13664 register sets.
13665 (s390_check_regset): New function.
13666 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13667 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13668 Update target_regsets for available register sets.
13669
2268b414
JK
136702011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13671 Jan Kratochvil <jan.kratochvil@redhat.com>
13672
13673 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13674 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13675 New.
13676 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13677 * linux-low.h (struct process_info_private): New member r_debug.
13678 * server.c (handle_qxfer_libraries): Call
13679 the_target->qxfer_libraries_svr4.
13680 (handle_qxfer_libraries_svr4): New function.
13681 (qxfer_packets): New entry "libraries-svr4".
13682 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13683 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13684 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13685 PACKET_qXfer_libraries_svr4.
13686
d6db1fab
UW
136872011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13688
13689 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13690 PSW address/mask between 8-byte and 16-byte formats.
13691 (s390_supply_ptrace_register): Likewise.
13692 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13693 basic addressing mode bit.
13694
242f5f1c
SS
136952011-11-24 Stan Shebs <stan@codesourcery.com>
13696
13697 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13698
f196051f
SS
136992011-11-17 Stan Shebs <stan@codesourcery.com>
13700
13701 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13702 (tracing_start_time): New global.
13703 (tracing_stop_time): New global.
13704 (tracing_user_name): New global.
13705 (tracing_notes): New global.
13706 (tracing_stop_note): New global.
13707 (cmd_qtstart): Set traceframe_usage, start_time.
13708 (stop_tracing): Set stop_time.
13709 (cmd_qtstatus): Report additional status.
13710 (cmd_qtp): New function.
13711 (handle_tracepoint_query): Call it.
13712 (cmd_qtnotes): New function.
13713 (handle_tracepoint_general_set): Call it.
13714 (get_timestamp): Rename from tsv_get_timestamp.
13715
405f8e94
SS
137162011-11-14 Stan Shebs <stan@codesourcery.com>
13717 Kwok Cheung Yeung <kcy@codesourcery.com>
13718
13719 * linux-x86-low.c (small_jump_insn): New.
13720 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13721 trampoline and error message, build a trampoline and issue a small
13722 jump instruction to it.
13723 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13724 trampoline and error message.
13725 (x86_get_min_fast_tracepoint_insn_len): New.
13726 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13727 * linux-low.h (struct linux_target_ops): Add arguments to
13728 install_fast_tracepoint_jump_pad operation, add new operation.
13729 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13730 arguments.
13731 (linux_get_min_fast_tracepoint_insn_len): New function.
13732 (linux_target_op): Add new operation.
13733 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13734 (gdb_trampoline_buffer_end): Ditto.
13735 (gdb_trampoline_buffer_error): Ditto.
13736 (struct ipa_sym_addresses): Add fields for new IPA variables.
13737 (symbol_list): Add entries for new IPA variables.
13738 (struct tracepoint): Add fields to hold the address range of the
13739 trampoline used by the tracepoint.
13740 (trampoline_buffer_head): New static variable.
13741 (trampoline_buffer_tail): Ditto.
13742 (claim_trampoline_space): New function.
13743 (have_fast_tracepoint_trampoline_buffer): New function.
13744 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13745 structure.
13746 (install_fast_tracepoint): Ditto, also add error buffer argument.
13747 (cmd_qtminftpilen): New function.
13748 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13749 (fast_tracepoint_from_trampoline_address): New function.
13750 (fast_tracepoint_collecting): Handle trampoline as part of jump
13751 pad space.
13752 (set_trampoline_buffer_space): New function.
13753 (initialize_tracepoint): Initialize new IPA variables.
13754 * target.h (struct target_ops): Add arguments to
13755 install_fast_tracepoint_jump_pad operation, add new
13756 get_min_fast_tracepoint_insn_len operation.
13757 (target_get_min_fast_tracepoint_insn_len): New.
13758 (install_fast_tracepoint_jump_pad): Add arguments.
13759 * server.h (IPA_BUFSIZ): Define.
13760 * linux-i386-ipa.c: Include extra header files.
13761 (initialize_fast_tracepoint_trampoline_buffer): New function.
13762 (initialize_low_tracepoint): Call it.
13763 * server.h (set_trampoline_buffer_space): Declare.
13764 (claim_trampoline_space): Ditto.
13765 (have_fast_tracepoint_trampoline_buffer): Ditto.
13766
1e4d1764
YQ
137672011-11-14 Yao Qi <yao@codesourcery.com>
13768
13769 * server.c (handle_query): Handle InstallInTrace for qSupported.
13770 * tracepoint.c (add_tracepoint): Sort list.
13771 (install_tracepoint, download_tracepoint): New.
13772 (cmd_qtdp): Call them to install and download tracepoints.
13773 (sort_tracepoints): Removed.
13774 (cmd_qtstart): Update.
13775
5c73ff4e
YQ
137762011-11-14 Yao Qi <yao@codesourcery.com>
13777
13778 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13779 * mem-break.h: Declare.
13780 * tracepoint.c (cmd_qtstart): Move some code to ...
13781 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13782 New.
13783 (download_tracepoints): Move some code to ...
13784 (download_tracepoint_1): ... here. New.
13785
86a30030
YQ
137862011-11-08 Yao Qi <yao@codesourcery.com>
13787
13788 * remote-utils.c (relocate_instruction): A comment fix.
13789
8d26e50c
JB
137902011-11-07 Joel Brobecker <brobecker@adacore.com>
13791
13792 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13793 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13794 dr_status_mirror and dr_control_mirror from debug_reg_state.
13795 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13796 (i386_initial_stuff): Remove use of deleted globals.
13797 (i386_get_thread_context, i386_set_thread_context,
13798 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13799 from debug_reg_state.
13800
a59306a3
YQ
138012011-11-05 Yao Qi <yao@codesourcery.com>
13802
13803 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13804 address as TPOINT's.
13805
3065dfb6
SS
138062011-11-02 Stan Shebs <stan@codesourcery.com>
13807
13808 * tracepoint.c (agent_mem_read_string): New function.
13809 (eval_agent_expr): Call it for tracenz.
13810 * server.c (handle_query): Report support for tracenz.
13811
fd0d8c7c
YQ
138122011-11-02 Yao Qi <yao@codesourcery.com>
13813
13814 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13815
609086b1
YQ
138162011-11-02 Yao Qi <yao@codesourcery.com>
13817
13818 * target.h: Fix a typo in comment.
13819
b9fd1791
PA
138202011-10-31 Pedro Alves <pedro@codesourcery.com>
13821
13822 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13823 clobber the breakpoints' shadows with fast tracepoint jumps.
13824 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13825 * target.c (write_inferior_memory): Also pass MYADDR down to
13826 check_mem_write.
13827
03583c20
UW
138282011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13829
13830 * configure.ac: Check support for personality routine.
13831 * configure: Regenerate.
13832 * config.in: Likewise.
13833 * linux-low.c: Include <sys/personality.h>.
13834 Define ADDR_NO_RANDOMIZE if necessary.
13835 (linux_create_inferior): Disable address space randomization when
13836 forking inferior, if requested.
13837 (linux_supports_disable_randomization): New function.
13838 (linux_target_ops): Install it.
13839 * server.h (disable_randomization): Declare.
13840 * server.c (disable_randomization): New global variable.
13841 (handle_general_set): Handle QDisableRandomization.
13842 (handle_query): Likewise for qSupported.
13843 (main): Support --disable-randomization and --no-disable-randomization
13844 command line arguments.
13845 * target.h (struct target_ops): Add supports_disable_randomization.
13846 (target_supports_disable_randomization): New macro.
13847
723b724b
MF
138482011-09-29 Mike Frysinger <vapier@gentoo.org>
13849
13850 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13851 ifdef check.
13852 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13853 [!PT_GETDSBT] (target_loadmap): New definition.
13854 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13855 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13856 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13857 and PT_GETDSBT to LINUX_LOADMAP.
13858 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13859 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13860
55329a5c 138612011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
13862
13863 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13864 (arm_linux_hwbp_cap): New static variable.
13865 (arm_linux_get_hwbp_cap): Replace by ...
13866 (arm_linux_init_hwbp_cap): ... this new function.
13867 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13868 (arm_linux_get_hw_watchpoint_count): Likewise.
13869 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13870 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13871 (arm_prepare_to_resume): Use perror_with_name instead of error.
13872
55329a5c 138732011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
13874
13875 * linux-arm-low.c: Include <signal.h>.
13876 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13877 (struct arm_linux_hwbp_cap): New data type.
13878 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13879 (struct arm_linux_hw_breakpoint): New data type.
13880 (MAX_BPTS, MAX_WPTS): Define.
13881 (struct arch_process_info, struct arch_lwp_info): New data types.
13882 (arm_linux_get_hwbp_cap): New function.
13883 (arm_linux_get_hw_breakpoint_count): Likewise.
13884 (arm_linux_get_hw_watchpoint_count): Likewise.
13885 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13886 (arm_hwbp_control_initialize): Likewise.
13887 (arm_hwbp_control_is_enabled): Likewise.
13888 (arm_hwbp_control_is_initialized): Likewise.
13889 (arm_hwbp_control_disable): Likewise.
13890 (arm_linux_hw_breakpoint_equal): Likewise.
13891 (arm_linux_hw_point_initialize): Likewise.
13892 (struct update_registers_data): New data structure.
13893 (update_registers_callback: New function.
13894 (arm_insert_point): Likewise.
13895 (arm_remove_point): Likewise.
13896 (arm_stopped_by_watchpoint): Likewise.
13897 (arm_stopped_data_address): Likewise.
13898 (arm_new_process): Likewise.
13899 (arm_new_thread): Likewise.
13900 (arm_prepare_to_resume): Likewise.
13901 (the_low_target): Register arm_insert_point, arm_remove_point,
13902 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13903 arm_new_thread, and arm_prepare_to_resume.
13904
6b9801d4
SS
139052011-09-15 Stan Shebs <stan@codesourcery.com>
13906
13907 * server.h (struct emit_ops): Add compare-goto fields.
13908 * tracepoint.c (gdb_agent_op_sizes): New table.
13909 (emit_eq_goto): New function.
13910 (emit_ne_goto): New function.
13911 (emit_lt_goto): New function.
13912 (emit_le_goto): New function.
13913 (emit_gt_goto): New function.
13914 (emit_ge_goto): New function.
13915 (is_goto_target): New function.
13916 (compile_bytecodes): Recognize special cases of compare-goto
13917 combinations and call specialized emitters for them.
13918 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13919 (amd64_emit_ne_goto): New function.
13920 (amd64_emit_lt_goto): New function.
13921 (amd64_emit_le_goto): New function.
13922 (amd64_emit_gt_goto): New function.
13923 (amd64_emit_ge_goto): New function.
13924 (amd64_emit_ops): Add the new functions.
13925 (i386_emit_eq_goto): New function.
13926 (i386_emit_ne_goto): New function.
13927 (i386_emit_lt_goto): New function.
13928 (i386_emit_le_goto): New function.
13929 (i386_emit_gt_goto): New function.
13930 (i386_emit_ge_goto): New function.
13931 (i386_emit_ops): Add the new functions.
13932
bf15cbda
SS
139332011-09-08 Stan Shebs <stan@codesourcery.com>
13934
13935 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13936 (i386_emit_epilogue): Restore %ebx.
13937
943ca1dd
JZ
139382011-08-31 Jie Zhang <jzhang918@gmail.com>
13939
13940 * server.c (step_thread): Remove definition.
13941 (process_serial_event): Don't handle Hs.
13942 * server.h (step_thread): Remove declaration.
13943 * target.c (set_desired_inferior): Remove use of step_thread.
13944
e3deef73
LM
139452011-08-24 Luis Machado <lgustavo@codesourcery.com>
13946
13947 * linux-low.c: Include linux-procfs.h.
13948 (linux_attach_lwp_1): Update comments.
13949 (linux_attach): Scan for existing threads when attaching to a
13950 process that is the tgid.
13951 * Makefile.in: Update dependencies.
13952
13da1c97
LM
139532011-08-24 Luis Machado <lgustavo@codesourcery.com>
13954
13955 * configure.srv: Add linux-procfs.o dependencies.
13956
881127c9
YQ
139572011-08-14 Yao Qi <yao@codesourcery.com>
13958
13959 * target.h (struct target_ops): Fix indent.
13960 * win32-low.c (win32_target_ops): Fix comment.
13961
58dbd541
YQ
139622011-08-14 Andrew Jenner <andrew@codesourcery.com>
13963 Yao Qi <yao@codesourcery.com>
13964
13965 * Makefile.in (clean): Remove tic6x-*.c files.
13966 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13967 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13968 (tic6x-c64xp-linux.c): Likewise.
13969 * configure.srv: Add support for tic6x-*-uclinux.
13970 * linux-tic6x-low.c: New.
13971 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13972
78d85199
YQ
139732011-08-14 Andrew Stubbs <ams@codesourcery.com>
13974 Yao Qi <yao@codesourcery.com>
13975
13976 * target.h (struct target_ops): Add read_loadmap.
13977 * linux-low.c (struct target_loadseg): New type.
13978 (struct target_loadmap): New type.
13979 (linux_read_loadmap): New function.
13980 (linux_target_ops): Add linux_read_loadmap.
13981 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
13982 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13983 to NULL.
78d85199 13984
a959a88d
EZ
139852011-08-05 Eli Zaretskii <eliz@gnu.org>
13986
13987 * win32-low.c: Include <stdint.h>.
13988
1ced966e
PA
139892011-07-22 Pedro Alves <pedro@codesourcery.com>
13990
13991 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13992 to the inferior here.
13993 (i386_remove_aligned_watchpoint): Ditto.
13994 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13995 fit part of the watchpoint in the debug registers.
13996 (i386_update_inferior_debug_regs): New.
13997 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13998 registers, and only update the inferior on success.
13999 (i386_low_remove_watchpoint): Ditto.
14000
d26e3629
KY
140012011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
14002
14003 * linux-low.c (compare_ints, unique, list_threads, show_process,
14004 linux_core_of_thread): Delete.
14005 (linux_target_ops): Change linux_core_of_thread to
14006 linux_common_core_of_thread.
14007 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
14008 * utils.c (malloc_failure): Change type of argument.
14009 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
14010 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
14011 common/linux-osdata.c, common/ptid.c and common/buffer.c.
14012 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
14013 (IPA_OBJS): Add common-utils-ipa.o.
14014 (ptid_h, linux_osdata_h): New macros.
14015 (server_h): Add common/common-utils.h, common/xml-utils.h,
14016 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
14017 common/ptid.h.
14018 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
14019 ptid.o, buffer.o): New rules.
14020 (linux-low.o): Add common/linux-osdata.h as a dependency.
14021 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
14022 * configure.ac: Add AC_HEADER_DIRENT check.
14023 * config.in: Regenerate.
14024 * configure: Regenerate.
14025 * remote-utils.c (xml_escape_text): Delete.
14026 (buffer_grow, buffer_free, buffer_init, buffer_finish,
14027 buffer_xml_printf): Move to common/buffer.c.
14028 * server.c (main): Remove call to initialize_inferiors.
14029 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14030 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14031 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14032 internal_error, gdb_assert, gdb_assert_fail): Delete.
14033 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14034 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14035 common/buffer.h.
14036 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14037 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14038 initialize_inferiors): Delete.
14039
2275a1a7
PA
140402011-07-20 Pedro Alves <pedro@codesourcery.com>
14041
14042 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14043 symbol error.
14044
0a5b1e09
PA
140452011-05-31 Pedro Alves <pedro@codesourcery.com>
14046
14047 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14048 assertion.
14049 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14050
6938fd34
YQ
140512011-05-26 Yao Qi <yao@codesourcery.com>
14052
14053 * Makefile.in (thread-db.o): Track dependence to
14054 common/gdb_thread_db.h.
14055 * thread-db.c: include gdb_thread_db.h from right place.
14056
b481f9e0
TT
140572011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14058
14059 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14060 __FILE__ and __LINE__ to internal_error.
14061
98a5dd13
DE
140622011-05-13 Doug Evans <dje@google.com>
14063
14064 * thread-db.c (try_thread_db_load_from_sdir): New function.
14065 (try_thread_db_load_from_dir): New function.
14066 (thread_db_load_search): Handle $sdir, ignore $pdir.
14067 Remove trying of system directories if search of
14068 libthread-db-search-path fails, that is now done via $sdir.
14069
d248b706
KY
140702011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14071
14072 * server.c (handle_query): Add EnableDisableTracepoints to the list
14073 of supported features.
43aaf8b6 14074 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 14075 tracepoints.
43aaf8b6
PA
14076 (cmd_qtenable_disable): New.
14077 (cmd_qtstart): Install tracepoints even if disabled.
14078 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14079 receiving a QTEnable or QTDisable packet.
14080 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14081 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14082 tracepoints.
14083 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 14084
84e578fb
DE
140852011-05-10 Doug Evans <dje@google.com>
14086
14087 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14088
71f55dd8
DE
140892011-05-04 Doug Evans <dje@google.com>
14090
14091 * linux-low.c (linux_join): Skip process lookup.
14092 * spu-low.c (spu_join): Ditto.
14093 * server.c (join_inferiors_callback): Delete.
14094 (process_serial_event): For 'D' packet (detach) call join_inferior
14095 directly.
14096
4d393d60
JM
140972011-05-04 Joseph Myers <joseph@codesourcery.com>
14098
14099 * README: Don't mention xscale*-*-linux*.
14100 * configure.srv (xscale*-*-linux*): Don't handle target.
14101
b00ad6ff
NF
141022011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14103
14104 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14105 casting pointers.
14106 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14107 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14108 (i386_emit_void_call_2): Likewise.
14109
af96c192
YQ
141102011-04-26 Yao Qi <yao@codesourcery.com>
14111
43aaf8b6
PA
14112 * linux-low.c: Move common macros to linux-ptrace.h.
14113 Include linux-ptrace.h.
af96c192
YQ
14114 * Makefile.in (linux_ptrace_h): New.
14115 (linux-low.o): Depends on linux-ptrace.h.
14116
03f2bd59
JK
141172011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14118
14119 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14120 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14121 (remote_prepare): New function with most of the TCP code from ...
14122 (remote_open): ... here. Detect PORT here unconditionally. Move also
14123 setting transport_is_reliable.
14124 * server.c (run_once): New variable.
14125 (gdbserver_usage): Document it.
14126 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14127 the first run if RUN_ONCE.
14128 * server.h (run_once, remote_prepare): New declarations.
14129
7a9dd1b2
TT
141302011-04-19 Tom Tromey <tromey@redhat.com>
14131
14132 * win32-low.c (handle_load_dll): Remove duplicate "the".
14133
81239425
PM
141342011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14135
14136 Remove support for old Cygwin 1.5 versions.
14137 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14138 function to avoid warning.
14139 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14140 warning.
14141
9e0627f1
PM
141422011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14143
14144 * gdbserver/server.h (Macro _): Define it if not available.
14145
588eebee
MS
141462011-03-14 Michael Snyder <msnyder@vmware.com>
14147
348af9f7 14148 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 14149
43f70d4c
JB
141502011-03-10 Joel Brobecker <brobecker@adacore.com>
14151
14152 * Makefile.in (maintainer-clean realclean distclean): Remove
14153 "make ... subdir_do" command.
14154
348af9f7
MS
141552011-03-10 Michael Snyder <msnyder@vmware.com>
14156
14157 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14158
14159 * server.c (handle_v_run): Free alloced buffer on early return.
14160
e637a4f5
YQ
141612011-03-09 Yao Qi <yao@codesourcery.com>
14162
14163 Revert:
14164 2011-03-04 Yao Qi <yao@codesourcery.com>
14165
14166 * Makefile.in: Remove GNU make feature --directory.
14167
14168 2011-03-05 Yao Qi <yao@codesourcery.com>
14169
14170 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14171 (subdir_do): New make target. Copied from gdb/Makefile.
14172 (maintainer-clean, realclean, distclean, clean): Call corresponding
14173 make targets in common/Makefile.
14174
14175 2011-02-11 Yao Qi <yao@codesourcery.com>
14176
14177 * configure.ac: Call AC_PROG_RANLIB.
14178 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14179 * configure: Regenerate.
14180
e6edda56
JK
141812011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14182
14183 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14184
e5141119
JB
141852011-03-06 Yao Qi <yao@codesourcery.com>
14186
14187 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14188
64794aa4
JB
141892011-03-05 Yao Qi <yao@codesourcery.com>
14190
14191 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14192 (subdir_do): New make target. Copied from gdb/Makefile.
14193 (maintainer-clean, realclean, distclean, clean): Call corresponding
14194 make targets in common/Makefile.
14195
7a762829
YQ
141962011-03-04 Yao Qi <yao@codesourcery.com>
14197
14198 * Makefile.in: Remove GNU make feature --directory.
14199
348af9f7
MS
142002011-03-04 Michael Snyder <msnyder@vmware.com>
14201
14202 * server.c (queue_stop_reply): Call xmalloc not malloc.
14203
142042011-03-02 Michael Snyder <msnyder@vmware.com>
14205
14206 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14207
9f72fee2
MS
142082011-02-28 Michael Snyder <msnyder@vmware.com>
14209
588eebee
MS
14210 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14211 (cmd_qtframe): Ditto.
14212 (cmd_qtbuffer): Ditto.
14213 (cmd_bigqtbuffer): Ditto.
14214
9f72fee2
MS
14215 * utils.c (decimal2str): Initialize 'width' to nine, then
14216 don't mess with it.
14217
8040bd49
UW
142182011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14219
14220 * hostio.c (require_data): Free *data, not data.
14221
7e52cbd0
JK
142222011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14223
14224 * hostio.c (require_data): Use free, not xfree.
14225
9130f83e
MS
142262011-02-27 Michael Snyder <msnyder@vmware.com>
14227
4b812f4e
MS
14228 * server.c (handle_query): Discard unused value.
14229
9130f83e
MS
14230 * hostio.c (require_data): Free malloc memory before returning
14231 error.
14232
69d37113
MS
142332011-02-26 Michael Snyder <msnyder@vmware.com>
14234
14235 * linux-low.c (list_threads): Call closedir for dirent.
14236
35f5825a
MS
142372011-02-27 Michael Snyder <msnyder@vmware.com>
14238
2a589cef
MS
14239 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14240 a case statement falls through.
14241
0adea5f7
MS
14242 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14243
35f5825a
MS
14244 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14245 in comparison.
14246
238f1c74
MS
142472011-02-26 Michael Snyder <msnyder@vmware.com>
14248
14249 * utils.c (decimal2str): Eliminate dead code and dead param.
14250 (pulongest): Drop dead param from call to decimal2str.
14251 (plongest): Ditto.
14252
633ff500
JB
142532011-02-24 Joel Brobecker <brobecker@adacore.com>
14254
14255 Revert the following patch (not approved yet):
14256 2011-02-21 Hui Zhu <teawater@gmail.com>
14257 * tracepoint.c (tp_printf): New function.
14258 (eval_agent_expr): Handle gdb_agent_op_printf.
14259
f9c6ff72
HZ
142602011-02-21 Hui Zhu <teawater@gmail.com>
14261
14262 * tracepoint.c (tp_printf): New function.
14263 (eval_agent_expr): Handle gdb_agent_op_printf.
14264
94d5e490
TT
142652011-02-18 Tom Tromey <tromey@redhat.com>
14266
14267 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14268 (tracepoint.o): Likewise.
14269 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14270 (gdb_agent_op_names): Likewise.
14271
c7f96d2b
TT
142722011-02-18 Tom Tromey <tromey@redhat.com>
14273
14274 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14275 gdb_agent_op_rot>: New constants.
14276 (gdb_agent_op_names): Add pick and roll.
14277 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14278 cases.
14279
0feedb2c
JK
142802011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14281
14282 * aclocal.m4: Regenerated with aclocal-1.11.1.
14283
b3b9301e
PA
142842011-02-14 Pedro Alves <pedro@codesourcery.com>
14285
14286 * server.c (handle_qxfer_traceframe_info): New.
14287 (qxfer_packets): Register "traceframe-info".
14288 (handle_query): Report support for qXfer:traceframe-info:read+.
14289 * tracepoint.c (match_blocktype): New.
14290 (traceframe_find_block_type): Rename to ...
14291 (traceframe_walk_blocks): ... this. Add callback filter argument,
14292 and use it.
14293 (traceframe_find_block_type): New, reimplemented on top of
14294 traceframe_walk_blocks.
14295 (build_traceframe_info_xml): New.
14296 (traceframe_read_info): New.
14297 * server.h (traceframe_read_info): Declare.
14298
4f3e6fb7
YQ
142992011-02-11 Yao Qi <yao@codesourcery.com>
14300
14301 * configure.ac: Call AC_PROG_RANLIB.
14302 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14303 * configure: Regenerate.
14304
764880b7
PA
143052011-02-07 Pedro Alves <pedro@codesourcery.com>
14306
14307 * server.c (gdb_read_memory): Change return semantics to allow
14308 partial transfers.
14309 (handle_search_memory_1): Adjust.
14310 (process_serial_event) <'m' packet>: Handle partial transfers.
14311 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14312
1c79eb8a
PA
143132011-01-28 Pedro Alves <pedro@codesourcery.com>
14314
14315 * regcache.c (init_register_cache): Initialize
14316 regcache->register_status.
14317 (free_register_cache): Release regcache->register_status.
14318 (regcache_cpy): Copy register_status.
14319 (registers_to_string): Print 'x's for unavailable registers.
14320 (supply_register): Mark the register's status valid or
14321 unavailable, depending on whether a buffer was passed in or not.
14322 (supply_register_zeroed): New.
14323 (supply_regblock): Mark the registers' status valid or
14324 unavailable, depending on whether a buffer was passed in or not.
14325 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14326 (struct regcache): New `register_status' field.
14327 (supply_register_zeroed): Declare.
14328 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14329 supply_register_zeroed, rather than passing a NULL buffer to
14330 supply_register.
14331 * tracepoint.c (fetch_traceframe_registers): Update comment.
14332
85724a0e
PA
143332011-01-28 Pedro Alves <pedro@codesourcery.com>
14334
14335 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14336 buffer explicit.
14337
d08aafef
PA
143382011-01-25 Pedro Alves <pedro@codesourcery.com>
14339
14340 * server.h (decode_xfer_write): Change prototype.
14341 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14342 and don't extract the annex here.
14343 * server.c (decode_xfer_read): Remove `annex' parameter,
14344 and don't extract the annex here.
14345 (decode_xfer): New.
14346 (struct qxfer): New.
14347 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14348 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14349 (handle_qxfer_statictrace): New functions, abstracted out from
14350 handle_query, and made to use the struct qxfer interface.
14351 (handle_threads_qxfer_proper): Rename to ...
14352 (handle_qxfer_threads_proper): ... this.
14353 (handle_threads_qxfer): Rename to ...
14354 (handle_qxfer_threads): ... this. Adjust.
14355 (qxfer_packets): New array.
14356 (handle_qxfer): New function.
14357 (handle_query): Use handle_qxfer.
14358
493e2a69
MS
143592011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14360
14361 * gdbreplay.c: Shorten lines of >= 80 columns.
14362 * linux-low.c: Ditto.
14363 * linux-ppc-low.c: Ditto.
14364 * linux-s390-low.c: Ditto.
14365 * linux-sparc-low.c: Ditto.
14366 * linux-x86-low.c: Ditto.
14367 * linux-xtensa-low.c: Ditto.
14368 * mem-break.c: Ditto.
14369 * nto-low.c: Ditto.
14370 * regcache.h: Ditto.
14371 * remote-utils.c: Ditto.
14372 * server.c: Ditto.
14373 * server.h: Ditto.
14374 * thread-db.c: Ditto.
14375 * tracepoint.c: Ditto.
14376 * utils.c: Ditto.
14377 * win32-low.h: Ditto.
14378
44944448
JB
143792011-01-05 Joel Brobecker <brobecker@adacore.com>
14380
14381 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14382 update.
14383
71ce852c
JB
143842011-01-01 Joel Brobecker <brobecker@adacore.com>
14385
14386 * server.c (gdbserver_version): Update copyright year in version
14387 output.
14388 * gdbreplay.c (gdbreplay_version): Ditto.
14389
eb826dc6
MF
143902010-12-29 Jie Zhang <jie.zhang@analog.com>
14391
14392 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14393 * linux-bfin-low.c: New file.
14394 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14395 PT_DATA_ADDR for BFIN targets.
14396 * Makefile.in (SFILES): Add linux-bfin-low.c.
14397 (clean): Remove reg-bfin.c.
14398 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14399 * README: Mention supported Blackfin targets.
14400
39ab222a
MF
144012010-12-23 Mike Frysinger <vapier@gentoo.org>
14402
14403 * .gitignore: New file.
14404
a1f2ce7d
MF
144052010-11-16 Mike Frysinger <vapier@gentoo.org>
14406
14407 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14408
f474844c
JZ
144092010-10-22 Jie Zhang <jie@codesourcery.com>
14410
14411 * Makefile.in: Add FLAGS_TO_PASS variable.
14412 (install): Remove dependency of install-only and recursively
14413 invoke make for install-only.
14414
f1048712
DE
144152010-10-04 Doug Evans <dje@google.com>
14416
14417 * Makefile.in (uninstall): Use $(DESTDIR).
14418
b53a1623
PA
144192010-09-24 Pedro Alves <pedro@codesourcery.com>
14420
e6ee044d
PA
14421 PR gdb/11842
14422
b53a1623
PA
14423 * linux-x86-low.c (compat_siginfo_from_siginfo)
14424 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14425 si_code is < 0. Check for si_code == SI_TIMER before checking for
14426 si_code < 0.
14427
fa1bd1e4
JB
144282010-09-13 Joel Brobecker <brobecker@adacore.com>
14429
14430 * lynx-i386-low.c: New file.
14431 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14432
47fac8f8
JB
144332010-09-13 Joel Brobecker <brobecker@adacore.com>
14434
14435 * lynx-low.c (ptrace_request_to_str): Remove handling for
14436 request values that have been removed in LynxOS 5.x.
14437
1adfc54d
JB
144382010-09-13 Joel Brobecker <brobecker@adacore.com>
14439
14440 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14441 <ptrace.h>
14442
c2a66c29
NS
144432010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14444
14445 * configure.ac: Add --enable-inprocess-agent option.
14446 * configure: Rebuilt.
14447
32fcada3
YQ
144482010-09-06 Yao Qi <yao@codesourcery.com>
14449
14450 * linux-low.c (linux_kill): Remove unused variable.
14451 (linux_stabilize_threads): Likewise.
14452 * server.c (start_inferior): Likewise.
14453 (queue_stop_reply_callback): Likewise.
14454 * tracepoint.c (do_action_at_tracepoint): Likewise.
14455
0cccb683
YQ
144562010-09-06 Yao Qi <yao@codesourcery.com>
14457
14458 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14459 on return.
14460
423ec54c
JK
144612010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14462
14463 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14464
12ac6819
PA
144652010-09-06 Pedro Alves <pedro@codesourcery.com>
14466
14467 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14468 "$(IPA_DEPFILES)".
14469
8ed54b31
JB
144702010-09-01 Joel Brobecker <brobecker@adacore.com>
14471
14472 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14473 gdbserver/lynx-ppc-low.c: New files.
14474 * Makefile.in (lynx_low_h): New variable.
14475 (lynx-low.o, lynx-ppc-low.o): New rules.
14476 * configure.ac: On LynxOS, link with -lnetinet.
14477 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14478 * configure: regenerate.
14479
bb0116a4
JB
144802010-09-01 Joel Brobecker <brobecker@adacore.com>
14481
14482 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14483 * configure.ac: Add check for vasprintf and vsnprintf.
14484 * configure, config.in: Regenerate.
14485 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14486
a778ab81 144872010-09-01 Joel Brobecker <brobecker@adacore.com>
14488
14489 * gdbreplay.c: Move include of alloca.h up, next to include of
14490 malloc.h.
14491 * server.h: Add include of malloc.h.
14492 * mem-break.c: Remove include of malloc.h.
14493 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14494
8b034a19 144952010-09-01 Joel Brobecker <brobecker@adacore.com>
14496
14497 * Makefile.in (memmem.o): Build with -Wno-error.
14498
144992010-09-01 Joel Brobecker <brobecker@adacore.com>
14500
14501 * utils.c (xsnprintf): Make non-static.
14502 * server.h: Add xsnprintf declaration.
14503 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14504 replace calls to snprintf by calls to xsnprintf throughout.
14505
145062010-09-01 Joel Brobecker <brobecker@adacore.com>
14507
14508 * configure.ac: Add configure check for alloca.
14509 * configure, config.in: Regenerate.
14510 * server.h: Include alloca.h if it exists.
14511 * gdbreplay.c: Include alloca.h if it exists.
14512
1a981360
PA
145132010-08-28 Pedro Alves <pedro@codesourcery.com>
14514
14515 * linux-low.c (__SIGRTMIN): Define if not already defined.
14516 (linux_create_inferior): Check for __ANDROID__ rather than
14517 __SIGRTMIN.
14518 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14519 are already deferred.
14520 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14521 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14522 stopped and already has a pending signal to report.
14523 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14524 a pending signal to report or is moving out of a jump pad.
14525 (linux_init_signals): Check for __ANDROID__ rather than
14526 __SIGRTMIN.
14527
b4d51a55
PA
145282010-08-28 Pedro Alves <pedro@codesourcery.com>
14529
14530 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14531 debug_threads check. Avoid a linear search when not doing debug
14532 output.
14533
ec48365d
PA
145342010-08-27 Pedro Alves <pedro@codesourcery.com>
14535
14536 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14537 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14538 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14539 (process_event): Change local fd's type to gdb_fildes_t.
14540 (create_file_handler): Adjust prototype.
14541 (delete_file_handler): Adjust prototype.
14542 (handle_file_event): Adjust prototype. Use pfildes.
14543 (create_file_event): Adjsut prototype.
14544 * remote-utils.c (remote_desc, listen_desc): Change type to
14545 gdb_fildes_t.
14546 * server.h: New gdb_fildes_t typedef.
14547 [USE_WIN32API]: Include winsock2.h.
14548 (delete_file_handler, add_file_handler): Adjust prototypes.
14549 (pfildes): Declare.
14550 * utils.c (pfildes): New.
14551
854d88f0
PA
145522010-08-27 Pedro Alves <pedro@codesourcery.com>
14553
14554 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14555 * configure: Regenerate.
14556
0146f85b
PA
145572010-08-27 Pedro Alves <pedro@codesourcery.com>
14558
14559 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14560 (linux_done_accessing_memory): ... this.
14561 (linux_target_ops): Adjust.
14562 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14563 * nto-low.c (nto_target_ops): Adjust comment.
14564 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14565 * spu-low.c (spu_target_ops): Adjust comment.
14566 * target.h (target_ops): Rename unprepare_to_access_memory field
14567 to done_accessing_memory.
14568 (unprepare_to_access_memory): Rename to ...
14569 (done_accessing_memory): ... this.
14570
90d74c30
PA
145712010-08-26 Pedro Alves <pedro@codesourcery.com>
14572
14573 * linux-low.c (linux_prepare_to_access_memory): New.
14574 (linux_unprepare_to_access_memory): New.
14575 (linux_target_ops): Install them.
14576 * server.c (read_memory): Rename to ...
14577 (gdb_read_memory): ... this. Use
14578 prepare_to_access_memory/prepare_to_access_memory.
14579 (write_memory): Rename to ...
14580 (gdb_write_memory): ... this. Use
14581 prepare_to_access_memory/prepare_to_access_memory.
14582 (handle_search_memory_1): Adjust.
14583 (process_serial_event): Adjust.
14584 * target.h (struct target_ops): New fields
14585 prepare_to_access_memory and unprepare_to_access_memory.
14586 (prepare_to_access_memory, unprepare_to_access_memory): New.
14587 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14588 prepare_to_access_memory/prepare_to_access_memory.
14589 * nto-low.c (nto_target_ops): Adjust.
14590 * spu-low.c (spu_target_ops): Adjust.
14591 * win32-low.c (win32_target_ops): Adjust.
14592
fd467969
PA
145932010-08-26 Pedro Alves <pedro@codesourcery.com>
14594
14595 * Makefile.in (WARN_CFLAGS): Get it from configure.
14596 (WERROR_CFLAGS): New.
14597 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14598 * configure.ac: Introduce --enable-werror, which adds -Werror to
14599 the compiler command line. Enabled by default. Disable with
14600 --disable-werror. Add -Wdeclaration-after-statement
14601 Wpointer-arith and -Wformat-nonliteral to warning flags.
14602 * configure: Regenerate.
14603
331e2f5f
PA
146042010-08-26 Pedro Alves <pedro@codesourcery.com>
14605
14606 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14607
e581f2b4
PA
146082010-08-26 Pedro Alves <pedro@codesourcery.com>
14609
14610 * gdbreplay.c (remote_error): New.
14611 (gdbchar): New.
14612 (expect): Use gdbchar. Check for error reading from GDB.
14613 Clarify sync error output.
14614 (play): Check for errors writing to GDB.
14615 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14616 * remote-utils.c (getpkt): Check for errors writing to the remote
14617 descriptor.
14618
3c11dd79
PA
146192010-08-25 Pedro Alves <pedro@codesourcery.com>
14620
14621 * linux-low.c (linux_wait_1): Move non-debugging code out of
14622 `debug_threads' control.
14623
d20a8ad9
PA
146242010-08-25 Pedro Alves <pedro@codesourcery.com>
14625
14626 * linux-low.c (linux_wait_1): Don't set last_status here.
14627 * server.c (push_event, queue_stop_reply_callback): Assert we're
14628 not pushing a TARGET_WAITKIND_IGNORE event.
14629 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14630 (myresume, handle_target_event): Set the thread's last_resume_kind
14631 and last_status from the target returned status.
14632
964e4306
PA
146332010-08-25 Pedro Alves <pedro@codesourcery.com>
14634
14635 PR threads/10729
14636
14637 * linux-x86-low.c (update_debug_registers_callback): New.
14638 (i386_dr_low_set_addr): Use it.
14639 (i386_dr_low_get_addr): New.
14640 (i386_dr_low_set_control): Use update_debug_registers_callback.
14641 (i386_dr_low_get_control): New.
14642 (i386_dr_low_get_status): Adjust.
14643 * linux-low.c (linux_stop_lwp): New.
14644 * linux-low.h (linux_stop_lwp): Declare.
14645
14646 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14647 argument instead of a i386_debug_reg_state.
14648 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14649 a i386_debug_reg_state.
14650 (i386_insert_aligned_watchpoint): Adjust.
14651 (i386_remove_aligned_watchpoint): Adjust.
14652 (i386_low_stopped_data_address): Read the debug registers from the
14653 inferior instead of from the mirrors.
14654 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14655 (i386_dr_low_get_addr): Declare.
14656 (i386_dr_low_get_control): Declare.
14657 (i386_dr_low_get_status): Change prototype.
14658
14659 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14660 (i386_dr_low_get_addr): New.
14661 (i386_dr_low_get_control): New.
14662 (i386_dr_low_get_status): Adjust prototype. Return
14663 dr_status_mirror.
14664 (i386_initial_stuff): Clear dr_status_mirror and
14665 dr_control_mirror.
14666 (i386_get_thread_context): Adjust.
14667 (i386_set_thread_context): Adjust.
14668 (i386_thread_added): Adjust.
14669
5f21a75b
PA
146702010-08-24 Pedro Alves <pedro@codesourcery.com>
14671
14672 * linux-low.h (linux_thread_area): Delete declaration.
14673
3e4c1235
TS
146742010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14675
14676 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14677 after its termination.
14678
1971b033
PA
146792010-08-09 Pedro Alves <pedro@codesourcery.com>
14680
14681 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14682 (gdb_wants_all_stopped): Delete.
14683 (linux_wait_1): Don't call them.
14684 * server.c (handle_v_cont): Tag all threads as want-stopped.
14685 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14686 stopped as "client-wants-stopped".
14687
310444ac
PA
146882010-07-31 Pedro Alves <pedro@codesourcery.com>
14689
14690 * Makefile.in (signals_h): New.
14691 (server_h): Depend on it.
14692 (server.o): Don't depend on $(signals_def).
14693 (signals.o): Depend on $(signals_def).
14694
a19cae16
JK
146952010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14696
14697 * Makefile.in (signals_def): New.
14698 (server_h): Append include/gdb/signals.h and signals_def.
14699 (server.o): Append signals_def.
14700
30d50328
JK
147012010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14702
14703 * server.c (handle_target_event): Use target_signal_to_host for
14704 resume_info.sig initialization.
14705 * target.h (struct thread_resume) <sig>: New comment.
14706
5c3216e2
OS
147072010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14708
c6f46ca0
OS
14709 * server.c (handle_query): strcpy() the returned string from paddress()
14710 instead of sprintf().
5c3216e2
OS
14711 * utils.c (paddress): Return phex_nz().
14712
6bd31874
JB
147132010-07-07 Joel Brobecker <brobecker@adacore.com>
14714
14715 * server.c (handle_v_cont): Call mourn_inferior if process
14716 just exited.
14717 (myresume): Likewise.
14718
0fb4aa4b
PA
147192010-07-01 Pedro Alves <pedro@codesourcery.com>
14720
14721 Static tracepoints, and integration with UST.
14722
14723 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14724 * mem-break.c (uninsert_all_breakpoints)
14725 (reinsert_all_breakpoints): New.
14726 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14727 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14728 (gdb_agent_ust_loaded, helper_thread_id)
14729 (gdb_agent_helper_thread_id): New macros.
14730 (struct ipa_sym_addresses): Add addr_ust_loaded,
14731 addr_helper_thread_id, addr_cmd_buf.
14732 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14733 (in_process_agent_loaded_ust): New.
14734 (write_e_ust_not_loaded): New.
14735 (maybe_write_ipa_ust_not_loaded): New.
14736 (struct collect_static_trace_data_action): New.
14737 (enum tracepoint_type) <static_tracepoint>: New.
14738 (struct tracepoint) <handle>: Mention static tracepoints.
14739 (struct static_tracepoint_ctx): New.
14740 (CMD_BUF_SIZE): New.
14741 (add_tracepoint_action): Handle static tracepoint actions.
14742 (unprobe_marker_at): New.
14743 (clear_installed_tracepoints): Handle static tracepoints.
14744 (cmd_qtdp): Handle static tracepoints.
14745 (probe_marker_at): New.
14746 (cmd_qtstart): Handle static tracepoints.
14747 (response_tracepoint): Handle static tracepoints.
14748 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14749 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14750 (get_context_regcache): Handle static tracepoints.
14751 (do_action_at_tracepoint): Handle static tracepoint actions.
14752 (traceframe_find_block_type): Handle static trace data blocks.
14753 (traceframe_read_sdata): New.
14754 (download_tracepoints): Download static tracepoint actions.
14755 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14756 (GDB_PROBE_NAME): New.
14757 (ust_ops): New.
14758 (GET_UST_SYM): New.
14759 (USTF): New.
14760 (dlsym_ust): New.
14761 (ust_marker_to_static_tracepoint): New.
14762 (gdb_probe): New.
14763 (collect_ust_data_at_tracepoint): New.
14764 (gdb_ust_probe): New.
14765 (UNIX_PATH_MAX, SOCK_DIR): New.
14766 (gdb_ust_connect_sync_socket): New.
14767 (resume_thread, stop_thread): New.
14768 (run_inferior_command): New.
14769 (init_named_socket): New.
14770 (gdb_ust_socket_init): New.
14771 (cstr_to_hexstr): New.
14772 (next_st): New.
14773 (first_marker, next_marker): New.
14774 (response_ust_marker): New.
14775 (cmd_qtfstm, cmd_qtsstm): New.
14776 (unprobe_marker_at, probe_marker_at): New.
14777 (cmd_qtstmat, gdb_ust_thread): New.
14778 (gdb_ust_init): New.
14779 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14780 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14781 (ST_REGENTRY): New.
14782 (x86_64_st_collect_regmap): New.
14783 (X86_64_NUM_ST_COLLECT_GREGS): New.
14784 (AMD64_RIP_REGNUM): New.
14785 (supply_static_tracepoint_registers): New.
14786 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14787 (ST_REGENTRY): New.
14788 (i386_st_collect_regmap): New.
14789 (i386_NUM_ST_COLLECT_GREGS): New.
14790 (supply_static_tracepoint_registers): New.
14791 * server.c (handle_query): Handle qXfer:statictrace:read.
14792 <qSupported>: Report support for StaticTracepoints, and
14793 qXfer:statictrace:read features.
14794 * server.h (traceframe_read_sdata)
14795 (supply_static_tracepoint_registers): Declare.
14796 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14797 (unpack_varlen_hex): Include in IPA build.
14798 * Makefile.in (ustlibs, ustinc): New.
14799 (IPA_OBJS): Add remote-utils-ipa.o.
14800 ($(IPA_LIB)): Link -ldl and -lpthread.
14801 (UST_CFLAGS): New.
14802 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14803 * config.in, configure: Regenerate.
14804
9e4344e5
PA
148052010-06-20 Ian Lance Taylor <iant@google.com>
14806 Pedro Alves <pedro@codesourcery.com>
14807
14808 * linux-x86-low.c (always_true): Delete.
14809 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14810 trying to fool the compiler with always_true.
14811
c6beb2cb
PA
148122010-06-20 Pedro Alves <pedro@codesourcery.com>
14813
14814 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14815 conditions in gdbserver.
14816
d2ed6730
UW
148172010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14818
14819 * spu-low.c (spu_read_memory): Wrap around local store limit.
14820 (spu_write_memory): Likewise.
14821
4e29fb54
PA
148222010-06-15 Pedro Alves <pedro@codesourcery.com>
14823
14824 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14825 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14826 LONGEST uses.
14827 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14828 uses.
14829 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14830 uses with LONGEST uses.
14831
6a271cae
PA
148322010-06-14 Stan Shebs <stan@codesourcery.com>
14833 Pedro Alves <pedro@codesourcery.com>
14834
14835 Bytecode compiler.
14836
14837 * linux-x86-low.c: Include limits.h.
14838 (add_insns): New.
14839 (always_true): New.
14840 (EMIT_ASM): New.
14841 (EMIT_ASM32): New.
14842 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14843 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14844 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14845 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14846 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14847 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14848 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14849 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14850 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14851 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14852 (amd64_emit_void_call_2): New.
14853 (amd64_emit_ops): New.
14854 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14855 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14856 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14857 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14858 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14859 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14860 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14861 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14862 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14863 (i386_emit_stack_adjust, i386_emit_int_call_1)
14864 (i386_emit_void_call_2): New.
14865 (i386_emit_ops): New.
14866 (x86_emit_ops): New.
14867 (the_low_target): Install x86_emit_ops.
14868 * server.h (struct emit_ops): New.
14869 (get_raw_reg_func_addr): Declare.
14870 (current_insn_ptr, emit_error): Declare.
14871 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14872 (set_trace_state_variable_value): New defines.
14873 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14874 addr_get_trace_state_variable_value and
14875 addr_set_trace_state_variable_value.
14876 (symbol_list): New fields for get_raw_reg,
14877 get_trace_state_variable_value and set_trace_state_variable_value.
14878 (condfn): New typedef.
14879 (struct tracepoint): New field `compiled_cond'.
14880 (do_action_at_tracepoint): Clear compiled_cond.
14881 (get_trace_state_variable_value, set_trace_state_variable_value):
14882 Export in the IPA.
14883 (condition_true_at_tracepoint): If there's a compiled condition,
14884 run that.
14885 (current_insn_ptr, emit_error): New globals.
14886 (struct bytecode_address): New.
14887 (get_raw_reg_func_addr): New.
14888 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14889 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14890 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14891 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14892 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14893 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14894 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14895 (compile_tracepoint_condition, compile_bytecodes): New.
14896 * target.h (emit_ops): Forward declare.
14897 (struct target_ops): New field emit_ops.
14898 (target_emit_ops): New.
14899 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14900 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14901 * linux-low.c (linux_emit_ops): New.
14902 (linux_target_ops): Install it.
14903 * linux-low.h (struct linux_target_ops): New field emit_ops.
14904
92b72907
UW
149052010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14906
14907 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14908 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14909
fa593d66
PA
149102010-06-01 Pedro Alves <pedro@codesourcery.com>
14911 Stan Shebs <stan@codesourcery.com>
14912
14913 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14914 (all): Depend on $(extra_libraries).
14915 (install-only): Install the IPA.
14916 (IPA_OBJS, IPA_LIB): New.
14917 (clean): Remove the IPA lib.
14918 (IPAGENT_CFLAGS): New.
14919 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14920 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14921 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14922 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14923 * configure.ac: Check for atomic builtins support in the compiler.
14924 (IPA_DEPFILES, extra_libraries): Define.
14925 * configure.srv (ipa_obj): Add description.
14926 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14927 (i[34567]86-*-linux*): Set ipa_obj.
14928 (x86_64-*-linux*): Set ipa_obj.
14929 * linux-low.c (stabilizing_threads): New.
14930 (supports_fast_tracepoints): New.
14931 (linux_detach): Stabilize threads before detaching.
14932 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14933 the lwp is either not stabilizing, or is moving out of a jump pad.
14934 (linux_fast_tracepoint_collecting): New.
14935 (maybe_move_out_of_jump_pad): New.
14936 (enqueue_one_deferred_signal): New.
14937 (dequeue_one_deferred_signal): New.
14938 (linux_wait_for_event_1): If moving out of a jump pad, defer
14939 pending signals to later.
14940 (linux_stabilize_threads): New.
14941 (linux_wait_1): Check if threads need moving out of jump pads, and
14942 do it if so.
14943 (stuck_in_jump_pad_callback): New.
14944 (move_out_of_jump_pad_callback): New.
14945 (lwp_running): New.
14946 (linux_resume_one_lwp): Handle moving out of jump pads.
14947 (linux_set_resume_request): Dequeue deferred signals.
14948 (need_step_over_p): Also step over fast tracepoint jumps.
14949 (start_step_over): Also uninsert fast tracepoint jumps.
14950 (finish_step_over): Also reinsert fast tracepoint jumps.
14951 (linux_install_fast_tracepoint_jump): New.
14952 (linux_target_ops): Install linux_stabilize_threads and
14953 linux_install_fast_tracepoint_jump_pad.
14954 * linux-low.h (linux_target_ops) <get_thread_area,
14955 install_fast_tracepoint_jump_pad>: New fields.
14956 (struct lwp_info) <collecting_fast_tracepoint,
14957 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14958 (linux_get_thread_area): Declare.
14959 * linux-x86-low.c (jump_insn): New.
14960 (x86_get_thread_area): New.
14961 (append_insns): New.
14962 (push_opcode): New.
14963 (amd64_install_fast_tracepoint_jump_pad): New.
14964 (i386_install_fast_tracepoint_jump_pad): New.
14965 (x86_install_fast_tracepoint_jump_pad): New.
14966 (the_low_target): Install x86_get_thread_area and
14967 x86_install_fast_tracepoint_jump_pad.
14968 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14969 (struct fast_tracepoint_jump): New.
14970 (fast_tracepoint_jump_insn): New.
14971 (fast_tracepoint_jump_shadow): New.
14972 (find_fast_tracepoint_jump_at): New.
14973 (fast_tracepoint_jump_here): New.
14974 (delete_fast_tracepoint_jump): New.
14975 (set_fast_tracepoint_jump): New.
14976 (uninsert_fast_tracepoint_jumps_at): New.
14977 (reinsert_fast_tracepoint_jumps_at): New.
14978 (set_breakpoint_at): Use write_inferior_memory.
14979 (uninsert_raw_breakpoint): Use write_inferior_memory.
14980 (check_mem_read): Mask out fast tracepoint jumps.
14981 (check_mem_write): Mask out fast tracepoint jumps.
14982 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14983 (set_fast_tracepoint_jump): Declare.
14984 (delete_fast_tracepoint_jump)
14985 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14986 (reinsert_fast_tracepoint_jumps_at): Declare.
14987 * regcache.c: Don't compile many functions when building the
14988 in-process agent library.
14989 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14990 the register buffer in the heap.
14991 (free_register_cache): If the register buffer isn't owned by the
14992 regcache, don't free it.
14993 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14994 pre-existing register caches.
14995 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14996 type.
14997 (convert_ascii_to_int): : Constify `from' parameter type.
14998 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14999 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
15000 the needed buffer in-place.
15001 (relocate_instruction): New.
15002 * server.c (handle_query) <qSymbols>: If the target supports
15003 tracepoints, give it a chance of looking up symbols. Report
15004 support for fast tracepoints.
15005 (handle_status): Stabilize threads.
15006 (process_serial_event): Adjust.
15007 * server.h (struct fast_tracepoint_jump): Forward declare.
15008 (struct process_info) <fast_tracepoint_jumps>: New field.
15009 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
15010 (decode_X_packet, decode_M_packet): Adjust.
15011 (relocate_instruction): Declare.
15012 (in_process_agent_loaded): Declare.
15013 (tracepoint_look_up_symbols): Declare.
15014 (struct fast_tpoint_collect_status): Declare.
15015 (fast_tracepoint_collecting): Declare.
15016 (force_unlock_trace_buffer): Declare.
15017 (handle_tracepoint_bkpts): Declare.
15018 (initialize_low_tracepoint)
15019 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
15020 * target.h (struct target_ops) <stabilize_threads,
15021 install_fast_tracepoint_jump_pad>: New fields.
15022 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
15023 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
15024 [HAVE_STDINT_H]: Include stdint.h.
15025 (trace_debug_1): Rename to ...
15026 (trace_vdebug): ... this.
15027 (trace_debug): Rename to ...
15028 (trace_debug_1): ... this. Add `level' parameter.
15029 (trace_debug): New.
15030 (ATTR_USED, ATTR_NOINLINE): New.
15031 (IP_AGENT_EXPORT): New.
15032 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15033 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15034 (about_to_request_buffer_space, trace_buffer_is_full)
15035 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15036 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15037 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15038 (traceframe_write_count, traceframes_created)
15039 (trace_state_variables)
15040 New renaming defines.
15041 (struct ipa_sym_addresses): New.
15042 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15043 (symbol_list): New.
15044 (ipa_sym_addrs): New.
15045 (all_tracepoint_symbols_looked_up): New.
15046 (in_process_agent_loaded): New.
15047 (write_e_ipa_not_loaded): New.
15048 (maybe_write_ipa_not_loaded): New.
15049 (tracepoint_look_up_symbols): New.
15050 (debug_threads) [IN_PROCESS_AGENT]: New.
15051 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15052 (UNKNOWN_SIDE_EFFECTS): New.
15053 (stop_tracing): New.
15054 (flush_trace_buffer): New.
15055 (stop_tracing_bkpt): New.
15056 (flush_trace_buffer_bkpt): New.
15057 (read_inferior_integer): New.
15058 (read_inferior_uinteger): New.
15059 (read_inferior_data_pointer): New.
15060 (write_inferior_data_pointer): New.
15061 (write_inferior_integer): New.
15062 (write_inferior_uinteger): New.
15063 (struct collect_static_trace_data_action): Delete.
15064 (enum tracepoint_type): New.
15065 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
15066 <actions_str, step_actions, step_actions_str>: Only include in
15067 GDBserver.
fa593d66
PA
15068 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15069 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15070 (tracepoints): Use IP_AGENT_EXPORT.
15071 (last_tracepoint): Don't include in the IPA.
15072 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15073 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15074 (alloced_trace_state_variables): New.
15075 (trace_state_variables): Use IP_AGENT_EXPORT.
15076 (traceframe_t): Delete unused variable.
15077 (circular_trace_buffer): Don't include in the IPA.
15078 (trace_buffer_start): Delete.
15079 (struct trace_buffer_control): New.
15080 (trace_buffer_free): Delete.
15081 (struct ipa_trace_buffer_control): New.
15082 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15083 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15084 New.
15085 (trace_buffer_ctrl): New.
15086 (TRACE_BUFFER_CTRL_CURR): New.
15087 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15088 Reimplement as macros.
15089 (trace_buffer_wrap): Delete.
15090 (traceframe_write_count, traceframe_read_count)
15091 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15092 (struct tracepoint_hit_ctx) <type>: New field.
15093 (struct fast_tracepoint_ctx): New.
15094 (memory_barrier): New.
15095 (cmpxchg): New.
15096 (record_tracepoint_error): Update atomically in the IPA.
15097 (clear_inferior_trace_buffer): New.
15098 (about_to_request_buffer_space): New.
15099 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15100 updating the same buffer.
15101 (add_tracepoint): Default the tracepoint's type to trap
15102 tracepoint, and orig_size to -1.
15103 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15104 internal variables.
15105 (create_trace_state_variable): New parameter `gdb'. Handle it.
15106 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15107 (cmd_qtdp): Handle fast tracepoints.
15108 (cmd_qtdv): Adjust.
15109 (max_jump_pad_size): New.
15110 (gdb_jump_pad_head): New.
15111 (get_jump_space_head): New.
15112 (claim_jump_space): New.
15113 (sort_tracepoints): New.
15114 (MAX_JUMP_SIZE): New.
15115 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15116 IPA.
15117 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15118 support. Upload fast traceframes, and delete internal IPA
15119 breakpoints.
15120 (stop_tracing_handler): New.
15121 (flush_trace_buffer_handler): New.
15122 (cmd_qtstop): Upload fast tracepoints.
15123 (response_tracepoint): Handle fast tracepoints.
15124 (tracepoint_finished_step): Upload fast traceframes. Set the
15125 tracepoint hit context's tracepoint type.
15126 (handle_tracepoint_bkpts): New.
15127 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15128 type. Add comment about fast tracepoints.
15129 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15130 non-existing action_str field.
15131 (get_context_regcache): Handle fast tracepoints.
15132 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15133 to the regcache.
15134 (fast_tracepoint_from_jump_pad_address): New.
15135 (fast_tracepoint_from_ipa_tpoint_address): New.
15136 (collecting_t): New.
15137 (force_unlock_trace_buffer): New.
15138 (fast_tracepoint_collecting): New.
15139 (collecting): New.
15140 (gdb_collect): New.
15141 (write_inferior_data_ptr): New.
15142 (target_tp_heap): New.
15143 (target_malloc): New.
15144 (download_agent_expr): New.
15145 (UALIGN): New.
15146 (download_tracepoints): New.
15147 (download_trace_state_variables): New.
15148 (upload_fast_traceframes): New.
15149 (IPA_FIRST_TRACEFRAME): New.
15150 (IPA_NEXT_TRACEFRAME_1): New.
15151 (IPA_NEXT_TRACEFRAME): New.
15152 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15153 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15154 (gdb_jump_pad_buffer_end): New.
15155 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15156 (initialize_tracepoint): Adjust.
15157 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15158 buffer. Initialize the low module.
15159 * utils.c (PREFIX, TOOLNAME): New.
15160 (malloc_failure): Use PREFIX.
15161 (error): In the IPA, an error causes an exit.
15162 (fatal, warning): Use PREFIX.
15163 (internal_error): Use TOOLNAME.
15164 (NUMCELLS): Increase to 10.
15165 * configure, config.in: Regenerate.
15166
d149dd1d
PA
151672010-06-01 Pedro Alves <pedro@codesourcery.com>
15168
15169 * server.c (handle_query) <qSupported>: Do two passes over the
15170 qSupported string to avoid nesting strtok.
15171
f6528abd
JK
151722010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15173
15174 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15175 (CDEPS): New.
15176 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15177 -Wl,--dynamic-list.
15178 * configure: Regenerate.
15179 * proc-service.list: New.
15180
ca2a87a0
JK
151812010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15182
15183 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15184 New comment.
15185
363a6e9f
OS
151862010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15187
15188 * gdbreplay.c (remote_open): Check error return from socket() call by
15189 its equality to -1 not by it being negative.
15190 * remote-utils.c (remote_open): Likewise.
15191
d23b6cb1
PA
151922010-05-23 Pedro Alves <pedro@codesourcery.com>
15193
15194 * config.h: Regenerate.
15195
28d3cf85
MK
151962010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15197
15198 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15199 doesn't provide PTRACE_GET_THREAD_AREA.
15200
fea36a59
MK
152012010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15202
15203 * linux-m68k-low.c: Include <asm/ptrace.h>
15204 (ps_get_thread_area): Implement.
15205
24b066ba
DE
152062010-05-03 Doug Evans <dje@google.com>
15207
15208 * event-loop.c (struct callback_event): New struct.
15209 (callback_list): New global.
15210 (append_callback_event, delete_callback_event): New functions.
15211 (process_callback): New function.
15212 (start_event_loop): Call it.
15213 * remote-utils.c (NOT_SCHEDULED): Define.
15214 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15215 moved out of readchar.
15216 (readchar): Rewrite. Call reschedule before returning.
15217 (reset_readchar): New function.
15218 (remote_close): Call it.
15219 (process_remaining, reschedule): New functions.
15220 * server.h (callback_handler_func): New typedef.
15221 (append_callback_event, delete_callback_event): Declare.
15222
9836d6ea
PA
152232010-05-03 Pedro Alves <pedro@codesourcery.com>
15224
15225 * proc-service.c (ps_pglobal_lookup): Use
15226 thread_db_look_up_one_symbol.
15227 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15228 parameter. Use it instead of all_symbols_looked_up.
15229 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15230 field.
15231 (all_symbols_looked_up): Don't declare.
15232 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15233 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15234 field.
15235 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15236 Set all_symbols_looked_up here.
15237 (thread_db_look_up_one_symbol): New.
15238 (thread_db_get_tls_address): Adjust.
15239 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15240 thread_db object on the heap, and tentatively set it in the
15241 process structure.
15242 (thread_db_init): Don't set all_symbols_looked_up here.
15243 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15244
7984d532
PA
152452010-05-03 Pedro Alves <pedro@codesourcery.com>
15246
15247 * linux-low.c (linux_kill, linux_detach): Adjust.
15248 (status_pending_p_callback): Remove redundant statement. Check
15249 for !TARGET_WAITIKIND_IGNORE, instead of
15250 TARGET_WAITKIND_STOPPED.
15251 (handle_tracepoints): Make sure LWP is locked. Adjust.
15252 (linux_wait_for_event_1): Adjust.
15253 (linux_cancel_breakpoints): New.
15254 (unsuspend_one_lwp): New.
15255 (unsuspend_all_lwps): New.
15256 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15257 (send_sigstop_callback): Change return type to int, add new
15258 `except' parameter and handle it.
15259 (suspend_and_send_sigstop_callback): New.
15260 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15261 pass them down. If SUSPEND, also increment the lwp's suspend
15262 count.
15263 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15264 (need_step_over_p): Don't consider suspended LWPs.
15265 (start_step_over): Adjust.
15266 (proceed_one_lwp): Change return type to int, add new `except'
15267 parameter and handle it.
15268 (unsuspend_and_proceed_one_lwp): New.
15269 (proceed_all_lwps): Use find_inferior instead of
15270 for_each_inferior.
15271 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15272 also decrement the suspend count of LWPs. Pass `except' down,
15273 instead of hacking its suspend count.
15274 (linux_pause_all): Add `freeze' parameter. Adjust.
15275 (linux_unpause_all): New.
15276 (linux_target_ops): Install linux_unpause_all.
15277 * server.c (handle_status): Adjust.
15278 * target.h (struct target_ops): New fields `unpause_all' and
15279 `cancel_breakpoints'. Add new parameter to `pause_all'.
15280 (pause_all): Add new `freeze' parameter.
15281 (unpause_all): New.
15282 (cancel_breakpoints): New.
15283 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15284 cancel breakpoints.
15285 (cmd_qtstart): Pause threads.
15286 (stop_tracing): Pause threads, and cancel breakpoints.
15287 * win32-low.c (win32_target_ops): Adjust.
15288
e471f25b
PA
152892010-05-03 Pedro Alves <pedro@codesourcery.com>
15290
15291 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15292 the inferior right away from here...
15293 (linux_wait_1): ... to here, and adjust to check the thread's
15294 last_resume_kind instead of the lwp's step or stop_expected flags.
15295
1915ef4f
PA
152962010-05-02 Pedro Alves <pedro@codesourcery.com>
15297
15298 * README: Use consistent `GDB' and `GDBserver' spellings.
15299
f9e39928
PA
153002010-05-02 Pedro Alves <pedro@codesourcery.com>
15301
15302 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15303 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15304 (linux_detach_one_lwp): Assume the lwp is stopped.
15305 (any_thread_of): Delete.
15306 (linux_detach): Stop all lwps here. Don't blindly delete all
15307 breakpoints.
15308 (delete_lwp_callback): New.
15309 (linux_mourn): Delete all lwps of the process that is gone.
15310 (linux_wait_1): Don't delete the last lwp of the process here.
15311 * mem-break.h (mark_breakpoints_out): Declare.
15312 * mem-break.c (mark_breakpoints_out): New.
15313 (free_all_breakpoints): Use it.
15314 * server.c (handle_target_event): If the process is gone, mark
15315 breakpoints out.
15316 * thread-db.c (struct thread_db) <create_bp>: New field.
15317 (thread_db_enable_reporting): Fix prototype. Store a thread event
15318 breakpoint reference in the thread_db struct.
15319 (thread_db_load_search): Clear the thread_db object.
15320 (try_thread_db_load_1): Ditto.
15321 (switch_to_process): New.
15322 (disable_thread_event_reporting): Use it.
15323 (remove_thread_event_breakpoints): New.
15324 (thread_db_detach, thread_db_mourn): Use it.
15325
1e7fc18c
PA
153262010-05-01 Pedro Alves <pedro@codesourcery.com>
15327
15328 * linux-low.c (linux_enable_event_reporting): New.
15329 (linux_wait_for_event_1, handle_extended_wait): Use it.
15330
02fc4de7
PA
153312010-04-30 Pedro Alves <pedro@codesourcery.com>
15332
15333 * linux-low.c (linux_kill_one_lwp, linux_kill)
15334 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15335 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15336 SIGSTOP even if the LWP is stopped.
15337 (send_sigstop_callback): New.
15338 (stop_all_lwps): Use send_sigstop_callback instead.
15339 (linux_resume_one_thread): Adjust.
15340 (proceed_one_lwp): Still proceed an LWP that the client has
15341 requested to stop, if we haven't reported it as stopped yet. Make
15342 sure that LWPs the client want stopped, have a pending SIGSTOP.
15343
bc3b5632
DE
153442010-04-26 Doug Evans <dje@google.com>
15345
ae1ada35
DE
15346 * server.c (handle_general_set): Make static.
15347
bc3b5632
DE
15348 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15349 Print received char after testing for error/eof instead of before.
15350 (input_interrupt): Tweak comment.
15351
65730243
DE
153522010-04-23 Doug Evans <dje@google.com>
15353
15354 * server.c (start_inferior): Print inferior argv if --debug.
15355
a8ae7dc0
AR
153562010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15357
15358 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15359 * nto-x86-low.c: Include server.h
15360
1c07cc19
PM
153612010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15362
15363 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15364 be consistent with other sources of this directory.
15365 (init_registers_amd64): Correct name of source file of this function
15366 in the comment.
15367
e0a61e09
PM
153682010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15369
15370 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15371 64-bit executables.
15372
54709339
PM
153732010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15374
15375 * win32-i386-low.c: Add 64-bit support.
15376 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15377 (init_registers_amd64): Declare.
15378 (mappings): Add 64-bit version of array.
15379 (init_windows_x86): New function.
15380 (the_low_target): Change init_arch field to init_windows_x86.
15381
e8f0053d
PM
153822010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15383
15384 * win32-low.c: Adapt to support also 64-bit architecture.
15385 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15386 (get_image_name): Use SIZE_T type for local variable `done'.
15387 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15388 (toolhelp_get_dll_name): Idem.
15389 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15390 Use uintptr_t typecast to avoid warning.
15391 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15392 (handle_exception): Use phex_nz to avoid warning.
15393 (win32_wait): Remove unused local variable `process'.
15394
c481e77e
PM
153952010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15396
15397 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15398 `amd64-avx.o'.
15399
12ea4b69
PM
154002010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15401
15402 * configure.ac: Use `ws2_32' library for srv_mingw.
15403 * configure: Regenerate.
15404 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15405 * remote-utils.c: Likewise.
15406
f6d1620c
L
154072010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15408
15409 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15410 if __x86_64__ is defined.
15411
8e642873
PM
154122010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15413
15414 * configure: Regenerate.
15415
711e434b
PM
154162010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15417
15418 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15419 * target.h (target_ops): New get_tib_address field.
15420 * win32-low.h (win32_thread_info): Add thread_local_base field.
15421 * win32-low.c (child_add_thread): Add tlb argument.
15422 Set thread_local_base field to TLB.
15423 (get_child_debug_event): Adapt to child_add_thread change.
15424 (win32_get_tib_address): New function.
15425 (win32_target_ops): Set get_tib_address field to
15426 win32_get_tib_address.
15427 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15428
505106cd
PA
154292010-04-12 Pedro Alves <pedro@codesourcery.com>
15430
505106cd
PA
15431 * linux-low.c (linux_mourn): Also remove the process.
15432 * server.c (handle_target_event): Don't remove the process here.
15433 * nto-low.c (nto_mourn): New.
15434 (nto_target_ops): Install it.
15435 * spu-low.c (spu_mourn): New.
15436 (spu_target_ops): Install it.
15437 * win32-low.c (win32_mourn): New.
15438 (win32_target_ops): Install it.
15439
e8470a06
PA
154402010-04-12 Pedro Alves <pedro@codesourcery.com>
15441
15442 * server.h (buffer_xml_printf): Remove redundant `;'.
15443
45ba0d02
PA
154442010-04-12 Pedro Alves <pedro@codesourcery.com>
15445
15446 * regcache.c (set_register_cache): Invalidate regcaches before
15447 changing the register cache layout.
15448 (regcache_invalidate_one): Allow a NULL regcache.
15449 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15450 regcaches before changing the register cache layout or the target
15451 regsets.
15452
59e04013
L
154532010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15454
15455 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15456 variable warning on Linux/x86-64.
15457
8336d594
PA
154582010-04-11 Pedro Alves <pedro@codesourcery.com>
15459
15460 GDBserver disconnected tracing support.
15461
15462 * linux-low.c (linux_remove_process): Delete.
15463 (add_lwp): Don't set last_resume_kind here.
15464 (linux_kill): Use `mourn'.
15465 (linux_detach): Use `thread_db_detach', and `mourn'.
15466 (linux_mourn): New.
15467 (linux_attach_lwp_1): Adjust comment.
15468 (linux_attach): last_resume_kind moved the thread_info; adjust.
15469 (status_pending_p_callback): Adjust.
15470 (linux_wait_for_event_1): Adjust.
15471 (count_events_callback, select_singlestep_lwp_callback)
15472 (select_event_lwp_callback, cancel_breakpoints_callback)
15473 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15474 (proceed_one_lwp): Adjust.
15475 (linux_async): Add debug output.
15476 (linux_thread_stopped): New.
15477 (linux_pause_all): New.
15478 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15479 linux_pause_all.
15480 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15481 (thread_db_free): Delete declaration.
15482 (thread_db_detach, thread_db_mourn): Declare.
15483 * thread-db.c (thread_db_init): Use thread_db_mourn.
15484 (thread_db_free): Delete, split in two.
15485 (disable_thread_event_reporting): New.
15486 (thread_db_detach): New.
15487 (thread_db_mourn): New.
15488
15489 * server.h (struct thread_info) <last_resume_kind>: New field.
15490 <attached>: Add comment.
15491 <gdb_detached>: New field.
15492 (handler_func): Change return type to int.
15493 (handle_serial_event, handle_target_event): Ditto.
15494 (gdb_connected): Declare.
15495 (tracing): Delete.
15496 (disconnected_tracing): Declare.
15497 (stop_tracing): Declare.
15498
15499 * server.c (handle_query) <qSupported>: Report support for
15500 disconnected tracing.
15501 (queue_stop_reply_callback): Account for running threads.
15502 (gdb_wants_thread_stopped): New.
15503 (gdb_wants_all_threads_stopped): New.
15504 (gdb_reattached_process): New.
15505 (handle_status): Clear the `gdb_detached' flag of all processes.
15506 In all-stop, stop all threads.
15507 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15508 (process_serial_event): If the remote connection breaks, or if an
15509 exit was forced with "monitor exit", force an event loop exit.
15510 Handle disconnected tracing on detach.
15511 (handle_serial_event): Adjust.
15512 (handle_target_event): If GDB isn't connected, forward events back
15513 to the inferior, unless the last process exited, in which case,
15514 exit gdbserver. Adjust interface.
15515
15516 * remote-utils.c (remote_open): Don't block in accept. Instead
15517 register an event loop source on the listen socket file
15518 descriptor. Refactor bits into ...
15519 (listen_desc): ... this new global.
15520 (gdb_connected): ... this new function.
15521 (enable_async_notification): ... this new function.
15522 (handle_accept_event): ... this new function.
15523 (remote_close): Clear remote_desc.
15524
15525 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15526
15527 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15528 New fields.
15529 (mourn_inferior): Define.
15530 (target_process_qsupported): Avoid the dangling else problem.
15531 (thread_stopped): Define.
15532 (pause_all): Define.
15533 (target_waitstatus_to_string): Declare.
15534 * target.c (target_waitstatus_to_string): New.
15535
15536 * tracepoint.c (tracing): Make extern.
15537 (disconnected_tracing): New.
15538 (stop_tracing): Make extern. Handle tracing stops due to GDB
15539 disconnecting.
15540 (cmd_qtdisconnected): New.
15541 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15542 (handle_tracepoint_general_set): Handle QTDisconnected.
15543
15544 * event-loop.c (event_handler_func): Change return type to int.
15545 (process_event): Bail out if the event handler wants the event
15546 loop to stop.
15547 (handle_file_event): Ditto.
15548 (start_event_loop): Bail out if the event handler wants the event
15549 loop to stop.
15550
15551 * nto-low.c (nto_target_ops): Adjust.
15552 * spu-low.c (spu_wait): Don't remove the process here.
15553 (spu_target_ops): Adjust.
15554 * win32-low.c (win32_wait): Don't remove the process here.
15555 (win32_target_ops): Adjust.
15556
5d267c4c
PA
155572010-04-11 Pedro Alves <pedro@codesourcery.com>
15558
15559 * regcache.c (realloc_register_cache): Invalidate inferior's
15560 regcache before recreating it.
15561
623ccd72
PA
155622010-04-09 Pedro Alves <pedro@codesourcery.com>
15563
15564 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15565
219f2f23
PA
155662010-04-09 Stan Shebs <stan@codesourcery.com>
15567 Pedro Alves <pedro@codesourcery.com>
15568
15569 * server.h (LONGEST): New.
15570 (struct thread_info) <while_stepping>: New field.
15571 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15572 Declare.
15573 (initialize_tracepoint, handle_tracepoint_general_set)
15574 (handle_tracepoint_query, tracepoint_finished_step)
15575 (tracepoint_was_hit, release_while_stepping_state_list):
15576 (current_traceframe): Declare.
15577 * server.c (handle_general_set): Handle tracepoint packets.
15578 (read_memory): New.
15579 (write_memory): New.
15580 (handle_search_memory_1): Use read_memory.
15581 (handle_query): Report support for conditional tracepoints, trace
15582 state variables, and tracepoint sources. Handle tracepoint
15583 queries.
15584 (main): Initialize the tracepoints module.
15585 (process_serial_event): Handle traceframe reads/writes.
15586
15587 * linux-low.c (handle_tracepoints): New.
15588 (linux_wait_1): Call it.
15589 (linux_resume_one_lwp): Handle while-stepping.
15590 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15591 (linux_target_ops): Install them.
15592 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15593 New field.
15594 * linux-x86-low.c (x86_supports_tracepoints): New.
15595 (the_low_target). Install it.
15596
15597 * mem-break.h (delete_breakpoint): Declare.
15598 * mem-break.c (delete_breakpoint): Make external.
15599
15600 * target.h (struct target_ops): Add `supports_tracepoints',
15601 `read_pc', and `write_pc' fields.
15602 (target_supports_tracepoints): Define.
15603 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15604 (phex_nz): New.
15605
15606 * regcache.h (struct regcache) <registers_owned>: New field.
15607 (init_register_cache, regcache_cpy): Declare.
15608 (regcache_read_pc, regcache_write_pc): Declare.
15609 (register_cache_size): Declare.
15610 (supply_regblock): Declare.
15611 * regcache.c (init_register_cache): New.
15612 (new_register_cache): Use it.
15613 (regcache_cpy): New.
15614 (register_cache_size): New.
15615 (supply_regblock): New.
15616 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 15617
219f2f23
PA
15618 * tracepoint.c: New.
15619
15620 * Makefile.in (OBS): Add tracepoint.o.
15621 (tracepoint.o): New rule.
15622
3a13a53b
L
156232010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15624
15625 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15626 (i386-mmx.o): New.
15627 (i386-mmx.c): Likewise.
15628 (i386-mmx-linux.o): Likewise.
15629 (i386-mmx-linux.c): Likewise.
15630
15631 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15632 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15633 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15634 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15635
15636 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15637 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15638 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15639
1570b33e
L
156402010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15641
15642 * Makefile.in (clean): Updated.
15643 (i386-avx.o): New.
15644 (i386-avx.c): Likewise.
15645 (i386-avx-linux.o): Likewise.
15646 (i386-avx-linux.c): Likewise.
15647 (amd64-avx.o): Likewise.
15648 (amd64-avx.c): Likewise.
15649 (amd64-avx-linux.o): Likewise.
15650 (amd64-avx-linux.c): Likewise.
15651
15652 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15653 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15654 (srv_amd64_regobj): Add amd64-avx.o.
15655 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15656 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15657 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15658 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15659 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15660 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15661 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15662
15663 * i387-fp.c: Include "i386-xstate.h".
15664 (i387_xsave): New.
15665 (i387_cache_to_xsave): Likewise.
15666 (i387_xsave_to_cache): Likewise.
15667 (x86_xcr0): Likewise.
15668
15669 * i387-fp.h (i387_cache_to_xsave): Likewise.
15670 (i387_xsave_to_cache): Likewise.
15671 (x86_xcr0): Likewise.
15672
15673 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15674 * linux-crisv32-low.c (target_regsets): Likewise.
15675 * linux-m68k-low.c (target_regsets): Likewise.
15676 * linux-mips-low.c (target_regsets): Likewise.
15677 * linux-ppc-low.c (target_regsets): Likewise.
15678 * linux-s390-low.c (target_regsets): Likewise.
15679 * linux-sh-low.c (target_regsets): Likewise.
15680 * linux-sparc-low.c (target_regsets): Likewise.
15681 * linux-xtensa-low.c (target_regsets): Likewise.
15682
15683 * linux-low.c: Include <sys/uio.h>.
15684 (regsets_fetch_inferior_registers): Support nt_type.
15685 (regsets_store_inferior_registers): Likewise.
15686 (linux_process_qsupported): New.
15687 (linux_target_ops): Add linux_process_qsupported.
15688
15689 * linux-low.h (regset_info): Add nt_type.
15690 (linux_target_ops): Add process_qsupported.
15691
15692 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15693 and <sys/uio.h>.
15694 (init_registers_i386_avx_linux): New.
15695 (init_registers_amd64_avx_linux): Likewise.
15696 (xmltarget_i386_linux_no_xml): Likewise.
15697 (xmltarget_amd64_linux_no_xml): Likewise.
15698 (PTRACE_GETREGSET): Likewise.
15699 (PTRACE_SETREGSET): Likewise.
15700 (x86_fill_xstateregset): Likewise.
15701 (x86_store_xstateregset): Likewise.
15702 (use_xml): Likewise.
15703 (x86_linux_update_xmltarget): Likewise.
15704 (x86_linux_process_qsupported): Likewise.
15705 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15706 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15707 init_registers_i386_linux here. Call
15708 x86_linux_update_xmltarget.
15709 (the_low_target): Add x86_linux_process_qsupported.
15710
15711 * server.c (handle_query): Call target_process_qsupported.
15712
15713 * target.h (target_ops): Add process_qsupported.
15714 (target_process_qsupported): New.
15715
fc7238bb
PA
157162010-04-03 Pedro Alves <pedro@codesourcery.com>
15717
15718 * inferiors.c (add_thread): Set last_status kind to
15719 TARGET_WAITKIND_IGNORE.
15720 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15721 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15722 (linux_wait_1): Move `thread' local definition to block that uses
15723 it. Don't NULL initialize `event_child'.
15724 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15725 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15726 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15727
bdabb078
PA
157282010-04-01 Pedro Alves <pedro@codesourcery.com>
15729
15730 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15731 an extended waitstatus, or by a watchpoint.
15732 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15733 thread was stepping or has been stopped by a watchpoint.
15734
d3bbe7a0
PA
157352010-04-01 Pedro Alves <pedro@codesourcery.com>
15736
15737 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15738 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15739 of another, then delete the previous, and validate all
15740 breakpoints.
15741 (validate_inserted_breakpoint): New.
15742 (delete_disabled_breakpoints): New.
15743 (validate_breakpoints): New.
15744 (check_mem_read): Validate breakpoints before trusting their
15745 shadow. Delete disabled breakpoints.
15746 (check_mem_write): Validate breakpoints before trusting they
15747 should be inserted. Delete disabled breakpoints.
15748 * mem-break.h (validate_breakpoints):
15749 * server.c (handle_query): Validate breakpoints when we see a
15750 qSymbol query.
15751
8b07ae33
PA
157522010-04-01 Pedro Alves <pedro@codesourcery.com>
15753
15754 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15755 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15756 if we could tell there's a GDB breakpoint at stop_pc.
15757 (need_step_over_p): Don't do a step over if we find a GDB
15758 breakpoint at the resume PC.
15759
15760 * mem-break.c (struct raw_breakpoint): New.
15761 (enum bkpt_type): New type `gdb_breakpoint'.
15762 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15763 fields. New field `raw'.
15764 (find_raw_breakpoint_at): New.
15765 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15766 breakpoint instead.
15767 (set_breakpoint_at): Adjust.
15768 (delete_raw_breakpoint): New.
15769 (release_breakpoint): New.
15770 (delete_breakpoint): Rename to...
15771 (delete_breakpoint_1): ... this. Add proc parameter. Use
15772 release_breakpoint. Return ENOENT.
15773 (delete_breakpoint): Reimplement.
15774 (find_breakpoint_at): Delete.
15775 (find_gdb_breakpoint_at): New.
15776 (delete_breakpoint_at): Delete.
15777 (set_gdb_breakpoint_at): New.
15778 (delete_gdb_breakpoint_at): New.
15779 (gdb_breakpoint_here): New.
15780 (set_reinsert_breakpoint): Use release_breakpoint.
15781 (uninsert_breakpoint): Rename to ...
15782 (uninsert_raw_breakpoint): ... this.
15783 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15784 (reinsert_raw_breakpoint): Change parameter type to
15785 raw_breakpoint.
15786 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15787 instead.
15788 (check_breakpoints): Adjust. Use release_breakpoint.
15789 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15790 (breakpoint_inserted_here): Ditto.
15791 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15792 Don't trust the breakpoint's shadow if it is not inserted.
15793 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15794 (delete_all_breakpoints): Adjust.
15795 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15796 use delete_breakpoint_1.
15797
15798 * mem-break.h (breakpoints_supported): Delete declaration.
15799 (set_gdb_breakpoint_at): Declare.
15800 (gdb_breakpoint_here): Declare.
15801 (delete_breakpoint_at): Delete.
15802 (delete_gdb_breakpoint_at): Declare.
15803
15804 * server.h (struct raw_breakpoint): Forward declare.
15805 (struct process_info): New field `raw_breakpoints'.
15806
15807 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15808 breakpoints.
15809
6bf5e0ba
PA
158102010-03-24 Pedro Alves <pedro@codesourcery.com>
15811
15812 * linux-low.c (status_pending_p_callback): Fix comment.
15813 (linux_wait_for_event_1): Move most of the internal breakpoint
15814 handling from here...
15815 (linux_wait_1): ... to here.
15816 (count_events_callback): New.
15817 (select_singlestep_lwp_callback): New.
15818 (select_event_lwp_callback): New.
15819 (cancel_breakpoints_callback): New.
15820 (select_event_lwp): New.
15821 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15822 priority to all LWPs that have had events that should be reported
15823 to the client. Cancel breakpoints when about to reporting the
15824 event to the client, not while stopping lwps. No longer cancel
15825 finished single-steps here.
15826 (cancel_finished_single_step): Delete.
15827 (cancel_finished_single_steps): Delete.
15828
414a389f
PA
158292010-03-24 Pedro Alves <pedro@codesourcery.com>
15830
15831 * mem-break.c (enum bkpt_type): New.
15832 (struct breakpoint): New field `type'.
15833 (set_breakpoint_at): Change return type to struct breakpoint
15834 pointer. Set type to `other_breakpoint' by default.
15835 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15836 in the breakpoint list.
15837 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15838 (reinsert_breakpoint): Rename to ...
15839 (reinsert_raw_breakpoint): ... this.
15840 (reinsert_breakpoints_at): Adjust.
15841 * mem-break.h (struct breakpoint): Declare.
15842 (set_breakpoint_at): Change return type to struct breakpoint
15843 pointer.
15844
2280c721
PA
158452010-03-24 Pedro Alves <pedro@codesourcery.com>
15846
15847 * server.c (handle_query): Assign, not compare.
15848
d50171e4
PA
158492010-03-24 Pedro Alves <pedro@codesourcery.com>
15850
15851 Teach linux gdbserver to step-over-breakpoints.
15852
15853 * linux-low.c (can_hardware_single_step): New.
15854 (supports_breakpoints): New.
15855 (handle_extended_wait): If stopping threads, read the stop pc of
15856 the new cloned LWP.
15857 (get_pc): New.
15858 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15859 low target doesn't support retrieving the PC.
15860 (add_lwp): Set last_resume_kind to resume_continue.
15861 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15862 (linux_attach): Don't clear stop_expected. Set the lwp's
15863 last_resume_kind to resume_stop.
15864 (linux_detach_one_lwp): Don't check for removed breakpoints.
15865 (check_removed_breakpoint): Delete.
15866 (status_pending_p): Rename to ...
15867 (status_pending_p_callback): ... this. Don't check for removed
15868 breakpoints. Don't consider threads that are stopped from GDB's
15869 perspective.
15870 (linux_wait_for_lwp): Always read the stop_pc here.
15871 (cancel_breakpoint): New.
15872 (step_over_bkpt): New global.
15873 (linux_wait_for_event_1): Implement stepping over breakpoints.
15874 (gdb_wants_lwp_stopped): New.
15875 (gdb_wants_all_stopped): New.
15876 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15877 single-step traps here. Store the thread's last reported target
15878 wait status.
15879 (send_sigstop): Don't clear stop_expected. Always set it,
15880 instead.
15881 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15882 (cancel_finished_single_step): New.
15883 (cancel_finished_single_steps): New.
15884 (wait_for_sigstop): Don't cancel finished single-step traps here.
15885 (linux_resume_one_lwp): Don't check for removed breakpoints.
15886 Don't set `step' on non-hardware step archs.
15887 (linux_set_resume_request): Ignore resume_stop requests if already
15888 stopping or stopped. Set the lwp's last_resume_kind.
15889 (resume_status_pending_p): Don't check for removed breakpoints.
15890 (need_step_over_p): New.
15891 (start_step_over): New.
15892 (finish_step_over): New.
15893 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15894 requests. Clear the thread's last reported target waitstatus.
15895 Don't use the `suspended' flag. Don't consider pending breakpoints.
15896 (linux_resume): Start a step-over if necessary.
15897 (proceed_one_lwp): New.
15898 (proceed_all_lwps): New.
15899 (unstop_all_lwps): New.
15900 * linux-low.h (struct lwp_info): Rewrite comment for the
15901 `suspended' flag. Add the `stop_pc' field. Delete the
15902 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15903 Add `'last_resume_kind' and `need_step_over' fields.
15904 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15905 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15906 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15907 (set_raw_breakpoint_at): New.
15908 (set_breakpoint_at): Rewrite to use it.
15909 (reinsert_breakpoint_handler): Delete.
15910 (set_reinsert_breakpoint): New.
15911 (reinsert_breakpoint_by_bp): Delete.
15912 (delete_reinsert_breakpoints): New.
15913 (uninsert_breakpoint): Rewrite.
15914 (uninsert_breakpoints_at): New.
15915 (reinsert_breakpoint): Rewrite.
15916 (reinsert_breakpoints_at): New.
15917 (check_breakpoints): Rewrite.
15918 (breakpoint_here): New.
15919 (breakpoint_inserted_here): New.
15920 (check_mem_read): Adjust.
15921 * mem-break.h (breakpoints_supported, breakpoint_here)
15922 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15923 (reinsert_breakpoint_by_bp): Delete declaration.
15924 (delete_reinsert_breakpoints): Declare.
15925 (reinsert_breakpoint): Delete declaration.
15926 (reinsert_breakpoints_at): Declare.
15927 (uninsert_breakpoint): Delete declaration.
15928 (uninsert_breakpoints_at): Declare.
15929 (check_breakpoints): Adjust prototype.
15930 * server.h: Adjust include order.
15931 (struct thread_info): Declare here. Add a `last_status' field.
15932
30ba68cb
MS
159332010-03-23 Michael Snyder <msnyder@vmware.com>
15934
15935 * server.c (crc32): New function.
15936 (handle_query): Add handling for 'qCRC:' request.
15937
b9a881c2
PA
159382010-03-23 Pedro Alves <pedro@codesourcery.com>
15939
15940 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15941 lwp had been stopped by a watchpoint.
15942
e92d13d5
PA
159432010-03-16 Pedro Alves <pedro@codesourcery.com>
15944
15945 * server.h (internal_error): Declare.
15946 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15947 * utils.c (internal_error): New function.
15948
64daa791
AS
159492010-03-15 Andreas Schwab <schwab@redhat.com>
15950
15951 * configure.srv: Fix typo setting srv_regobj.
15952
f52cd8cd
PA
159532010-03-15 Pedro Alves <pedro@codesourcery.com>
15954
15955 * linux-low.c (fetch_register): Avoid passing a non string literal
15956 format to `error'.
15957 (usr_store_inferior_registers): Ditto.
15958
93ae6fdc
PA
159592010-03-14 Pedro Alves <pedro@codesourcery.com>
15960
15961 * linux-low.c (linux_write_memory): Bail out early if peeking
15962 memory failed.
15963
c3adc08c
PA
159642010-03-14 Pedro Alves <pedro@codesourcery.com>
15965
15966 * linux-low.h (struct lwp_info): New fields
15967 `stopped_by_watchpoint' and `stopped_data_address'.
15968 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15969 here, and cache them in the lwp object.
15970 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15971 directly.
15972 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15973 field.
15974 (linux_stopped_by_watchpoint): Rewrite.
15975 (linux_stopped_data_address): Rewrite.
15976
bce522a2
PA
159772010-03-06 Simo Melenius <simo.melenius@iki.fi>
15978
15979 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15980 switching the current inferior, not before.
15981
90884b2b
L
159822010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15983
15984 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15985 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15986 i386-linux.c and amd64-linux.c.
15987 (reg-i386.o): Removed.
15988 (reg-i386.c): Likewise.
15989 (reg-i386-linux.o): Likewise.
15990 (reg-i386-linux.c): Likewise.
15991 (reg-x86-64.o): Likewise.
15992 (reg-x86-64.c): Likewise.
15993 (reg-x86-64-linux.o): Likewise.
15994 (reg-x86-64-linux.c): Likewise.
15995 (i386.o): New.
15996 (i386.c): Likewise.
15997 (i386-linux.o): Likewise.
15998 (i386-linux.c): Likewise.
15999 (amd64.o): Likewise.
16000 (amd64.c): Likewise.
16001 (amd64-linux.o): Likewise.
16002 (amd64-linux.c): Likewise.
16003
16004 * configure.srv (srv_i386_regobj): New.
16005 (srv_i386_linux_regobj): Likewise.
16006 (srv_amd64_regobj): Likewise.
16007 (srv_amd64_linux_regobj): Likewise.
16008 (srv_i386_32bit_xmlfiles): Likewise.
16009 (srv_i386_64bit_xmlfiles): Likewise.
16010 (srv_i386_xmlfiles): Likewise.
16011 (srv_amd64_xmlfiles): Likewise.
16012 (srv_i386_linux_xmlfiles): Likewise.
16013 (srv_amd64_linux_xmlfiles): Likewise.
16014 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
16015 srv_xmlfiles to $srv_i386_xmlfiles.
16016 (i[34567]86-*-mingw32ce*): Likewise.
16017 (i[34567]86-*-mingw*): Likewise.
16018 (i[34567]86-*-nto*): Likewise.
16019 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
16020 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
16021 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
16022 (x86_64-*-linux*): Likewise.
16023
16024 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
16025 (init_registers_amd64_linux): New.
16026 (x86_arch_setup): Replace init_registers_x86_64_linux with
16027 init_registers_amd64_linux.
16028
193f13e6
MK
160292010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16030
16031 * configure.ac: Check for libdl. If it is not available link against
16032 static libthread_db.
16033 * configure: Regenerate.
16034
85d721b8
PA
160352010-02-22 Pedro Alves <pedro@codesourcery.com>
16036
16037 PR9605
16038
16039 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16040 handing a read watchpoint.
16041 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16042
6076632b
DE
160432010-02-12 Doug Evans <dje@google.com>
16044
16045 * linux-low.c (linux_supports_tracefork_flag): Document.
16046 (linux_look_up_symbols): Add comment.
16047
3327ccf7
L
160482010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16049
16050 * regcache.c (supply_register): Clear regcache if buf is NULL.
16051
0718675c 160522010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 16053 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
16054
16055 * inferiors.c (find_inferior): Add function documentation.
16056 (unloaded_dll): Handle the case where the unloaded dll has not
16057 been previously registered in the dll list.
16058
177321bd
DJ
160592010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16060
16061 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16062 (thumb2_breakpoint): New.
16063 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16064
2b009048
DJ
160652010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16066
16067 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16068 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16069 breakpoints.
16070
3be029c7
PA
160712010-01-21 Pedro Alves <pedro@codesourcery.com>
16072
16073 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16074
18f5de3b
JK
160752010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16076
16077 * linux-s390-low.c (s390_collect_ptrace_register)
16078 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16079
3743bb4f
DE
160802010-01-21 Doug Evans <dje@google.com>
16081
14ce3065
DE
16082 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16083 (PTRACE_ARG4_TYPE): New macro.
16084 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16085 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16086 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16087 (usr_store_inferior_registers): Ditto.
16088 (linux_read_memory, linux_write_memory): Ditto.
16089 (linux_test_for_tracefork): Ditto.
16090
3743bb4f
DE
16091 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16092 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16093
8b315be5
PA
160942010-01-21 Pedro Alves <pedro@codesourcery.com>
16095
16096 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16097 target.
16098
85492558
PA
160992010-01-21 Pedro Alves <pedro@codesourcery.com>
16100
16101 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16102 prototype to take a regcache. Adjust.
16103
442ea881
PA
161042010-01-20 Pedro Alves <pedro@codesourcery.com>
16105
16106 * regcache.h (struct thread_info): Forward declare.
16107 (struct regcache): New.
16108 (new_register_cache): Adjust prototype.
16109 (get_thread_regcache): Declare.
16110 (free_register_cache): Adjust prototype.
16111 (registers_to_string, registers_from_string): Ditto.
16112 (supply_register, supply_register_by_name, collect_register)
16113 (collect_register_as_string, collect_register_by_name): Ditto.
16114 * regcache.c (struct inferior_regcache_data): Delete.
16115 (get_regcache): Rename to ...
16116 (get_thread_regcache): ... this. Adjust. Switch inferior before
16117 fetching registers.
16118 (regcache_invalidate_one): Adjust.
16119 (regcache_invalidate): Fix prototype.
16120 (new_register_cache): Return the new register cache.
16121 (free_register_cache): Change prototype.
16122 (realloc_register_cache): Adjust.
16123 (registers_to_string): Change prototype to take a regcache. Adjust.
16124 (registers_from_string): Ditto.
16125 (register_data): Ditto.
16126 (supply_register): Ditto.
16127 (supply_register_by_name): Ditto.
16128 (collect_register): Ditto.
16129 (collect_register_as_string): Ditto.
16130 (collect_register_by_name): Ditto.
16131 * server.c (process_serial_event): Adjust.
16132 * linux-low.h (regset_fill_func, regset_store_func): Change
16133 prototype.
16134 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16135 Change prototype.
16136 * linux-low.c (get_stop_pc): Adjust.
16137 (check_removed_breakpoint): Adjust.
16138 (linux_wait_for_event): Adjust.
16139 (linux_resume_one_lwp): Adjust.
16140 (fetch_register): Add regcache parameter. Adjust.
16141 (usr_store_inferior_registers): Ditto.
16142 (regsets_fetch_inferior_registers): Ditto.
16143 (regsets_store_inferior_registers): Ditto.
16144 (linux_fetch_registers, linux_store_registers): Ditto.
16145 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16146 regcache. Adjust.
43aaf8b6
PA
16147 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16148 Ditto.
442ea881
PA
16149 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16150 prototype to take a regcache.
16151 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16152 * remote-utils.c (convert_ascii_to_int, outreg)
16153 (prepare_resume_reply): Change prototype to take a regcache.
16154 Adjust.
16155 * target.h (struct target_ops) <fetch_registers, store_registers>:
16156 Change prototype to take a regcache.
16157 (fetch_inferior_registers, store_inferior_registers): Change
16158 prototype to take a regcache. Adjust.
16159 * proc-service.c (ps_lgetregs): Adjust.
16160 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16161 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16162 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16163 take a regcache. Adjust.
16164 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16165 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16166 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16167 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16168 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16169 (cris_cannot_fetch_register):
16170 (cris_breakpoint_at): Change prototype to take a regcache.
16171 Adjust.
16172 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16173 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16174 to take a regcache. Adjust.
16175 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16176 Adjust.
16177 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16178 take a regcache. Adjust.
16179 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16180 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16181 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16182 * linux-mips-low.c (mips_get_pc):
16183 (mips_set_pc): Change prototype to take a regcache. Adjust.
16184 (mips_reinsert_addr): Adjust.
16185 (mips_collect_register): Change prototype to take a regcache.
16186 Adjust.
16187 (mips_supply_register):
16188 (mips_collect_register_32bit, mips_supply_register_32bit)
16189 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16190 (mips_store_fpregset): Ditto.
43aaf8b6
PA
16191 * linux-ppc-low.c (ppc_supply_ptrace_register)
16192 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
16193 (parse_spufs_run): Adjust.
16194 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16195 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16196 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16197 take a regcache. Adjust.
16198 * linux-s390-low.c (s390_collect_ptrace_register)
16199 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16200 (s390_set_pc): Change prototype to take a regcache. Adjust.
16201 (s390_arch_setup): Adjust.
16202 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16203 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16204 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16205 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16206 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16207 regcache. Adjust.
16208 (sparc_breakpoint_at): Adjust.
16209 * linux-xtensa-low.c (xtensa_fill_gregset):
16210 (xtensa_store_gregset):
16211 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16212 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16213 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16214 prototype to take a regcache. Adjust.
16215 * win32-arm-low.c (arm_fetch_inferior_register)
16216 (arm_store_inferior_register): Change prototype to take a
16217 regcache. Adjust.
16218 * win32-i386-low.c (i386_fetch_inferior_register)
16219 (i386_store_inferior_register): Change prototype to take a
16220 regcache. Adjust.
16221 * win32-low.c (child_fetch_inferior_registers)
16222 (child_store_inferior_registers): Change prototype to take a
16223 regcache. Adjust.
16224 (win32_wait): Adjust.
16225 (win32_fetch_inferior_registers): Change prototype to take a
16226 regcache. Adjust.
16227 (win32_store_inferior_registers): Adjust.
16228 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16229 store_inferior_register>: Change prototype to take a regcache.
16230
60c3d7b0
DE
162312010-01-20 Doug Evans <dje@google.com>
16232
16233 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16234 #ifdef.
16235 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 16236 (W_STOPCODE): Provide definition if missing.
60c3d7b0 16237
dc146f7c
VP
162382010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16239
16240 * linux-low.c (linux_core_of_thread): New.
16241 (compare_ints, show_process, list_threads): New.
16242 (linux_qxfer_osdata): Report threads and cores.
16243 (linux_target_op): Register linux_core_of_thread.
16244 * remote-utils.c (prepare_resume_reply): Report the core.
16245 (buffer_xml_printf): Support %d specifier.
16246 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16247 New.
16248 (handle_query): Handle qXfer:threads. Announce availability
16249 thereof.
16250 * target.h (struct target_ops): New field core_of_thread.
16251
7803799a
UW
162522010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16253
16254 * Makefile.in (clean): Remove new generated files.
16255 (reg-s390.o, reg-s390.c): Remove rules.
16256 (reg-s390x.o, reg-s390x.c): Likewise.
16257 (s390-linux32.o, s390-linux32.c): Add rules.
16258 (s390-linux64.o, s390-linux64.c): Likewise.
16259 (s390x-linux64.o, s390x-linux64.c): Likewise.
16260 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16261 * linux-s390-low.c: Include <elf.h>.
16262 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16263 (init_registers_s390): Remove prototype.
16264 (init_registers_s390x): Likewise.
16265 (init_registers_s390_linux32): Add prototype.
16266 (init_registers_s390_linux64): Likewise.
16267 (init_registers_s390x_linux64): Likewise.
16268 (s390_num_regs_3264): New define.
16269 (s390_regmap_3264): New global variable.
16270 (s390_cannot_fetch_register): Remove obsolete check.
16271 (s390_cannot_store_register): Likewise.
16272 (s390_collect_ptrace_register): Handle upper/lower register halves.
16273 (s390_supply_ptrace_register): Likewise.
16274 (s390_fill_gregset): Update to register number changes.
16275 (s390_get_hwcap): New routine.
16276 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16277 Install appropriate regmap and register set.
16278
6e7ffa39
JB
162792010-01-01 Joel Brobecker <brobecker@adacore.com>
16280
16281 * server.c (gdbserver_version): Update copyright year to 2010.
16282 * gdbreplay.c (gdbreplay_version): Likewise.
16283
957f3f49
DE
162842009-12-28 Doug Evans <dje@google.com>
16285
16286 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16287 elf/external.h. Include <elf.h> instead but only if necessary.
16288
ca5c370d
PA
162892009-12-28 Pedro Alves <pedro@codesourcery.com>
16290
16291 * linux-low.c (linux_remove_process): Remove `detaching'
16292 parameter. Don't release/detach from thread_db here.
16293 (linux_kill): Release/detach from thread_db here, ...
16294 (linux_detach): ... and here, before actually detaching.
16295 (linux_wait_1): ... and here, when a process exits.
16296 * thread-db.c (any_thread_of): New.
16297 (thread_db_free): Switch the current inferior to a thread of the
16298 passed in process.
16299
4ee62156
DE
163002009-12-21 Doug Evans <dje@google.com>
16301
d90e6a88
DE
16302 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16303
c5f62d5f
DE
16304 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16305 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16306 warning ifndef __NR_tkill. Move setting of errno there too.
16307 Delete unnecessary resetting of errno after syscall.
16308 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16309
10e86dd7
DE
16310 * configure.ac: Check for dladdr.
16311 * config.in: Regenerate.
16312 * configure: Regenerate.
16313 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16314 (try_thread_db_load): Update.
16315
4ee62156
DE
16316 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16317
00f515da
DE
163182009-12-18 Doug Evans <dje@google.com>
16319
e9464885
DE
16320 * event-loop.c: Include unistd.h if it exists.
16321
07d4f67e
DE
16322 * linux-low.c (my_waitpid): Move definition away from being in
16323 between linux_tracefork_child/linux_test_for_tracefork.
16324
00f515da
DE
16325 * gdb_proc_service.h (psaddr_t): Fix type.
16326 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16327 signature to match glibc.
16328
1de1badb
DE
163292009-12-16 Doug Evans <dje@google.com>
16330
16331 * linux-low.c (linux_read_memory): Fix argument to read.
16332
aeeb81d1
PA
163332009-11-26 Pedro Alves <pedro@codesourcery.com>
16334
16335 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16336 events, don't leave current_inferior pointing at null.
16337
10357975
PA
163382009-11-26 Pedro Alves <pedro@codesourcery.com>
16339
16340 * win32-low.c (LOG): Delete.
16341 (OUTMSG): Output to stderr.
16342 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16343 on compile time LOG macro.
16344 (win32_wait): Fix debug output.
16345
cf6e3471
PA
163462009-11-26 Pedro Alves <pedro@codesourcery.com>
16347
16348 * win32-low.c (win32_add_one_solib): If the dll name is
16349 "ntdll.dll", prepend the system directory to the dll path.
16350
0c85e18e
MK
163512009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16352
16353 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16354
9ac544ce 163552009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 16356 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
16357
16358 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16359 * configure.ac: Check for __mcoldfire__ and set
16360 gdb_cv_m68k_is_coldfire.
16361 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16362 reg-cf.o and reg-m68k.o.
16363 * configure: Regenerated.
16364
fd7dd3e6
PA
163652009-11-16 Pedro Alves <pedro@codesourcery.com>
16366
16367 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16368 Pass it to thread_db_free.
16369 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16370 proper `detaching' argument to linux_remove_process.
16371 * linux-low.h (thread_db_free): Add `detaching' parameter.
16372 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16373 to thread_db_free.
16374 (thread_db_free): Add `detaching' parameter. Only
16375 call td_ta_clear_event if detaching from process.
16376
75aa492e
MK
163772009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16378
16379 * thread-db.c (thread_db_free): Fix typo.
16380
21e1bee4
PP
163812009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16382
16383 PR gdb/10838
16384 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16385
8838b45e
NS
163862009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16387
16388 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16389 with an i686 compiler.
16390 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16391 needed.
16392 * configure: Rebuilt.
16393
8a35fb51
SL
163942009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16395
16396 PR gdb/10783
16397
16398 * server.c (handle_search_memory_1): Correct read_addr initialization
16399 in loop for searching subsequent chunks.
16400
96f15937
PP
164012009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16402
16403 * configure.ac: New --with-libthread-db option.
16404 * thread-db.c: Allow direct dependence on libthread_db.
16405 (thread_db_free): Adjust.
16406 * config.in: Regenerate.
16407 * configure: Likewise.
889bf7c5 16408
5f7d1694
PP
164092009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16410
16411 PR gdb/10757
16412 * thread-db.c (attach_thread): New function.
16413 (maybe_attach_thread): Return success/failure.
16414 (find_new_threads_callback): Adjust.
889bf7c5
PA
16415 (thread_db_find_new_threads): Loop until no new threads.
16416
88e3b899
PA
164172009-10-13 Pedro Alves <pedro@codesourcery.com>
16418
16419 * proc-service.c (ps_lgetregs): Formatting.
16420
cdbfd419
PP
164212009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16422
16423 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16424 * configure.ac: Adjust.
16425 * linux-low.h (struct process_info_private): Move members to struct
16426 thread_db.
16427 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16428 * linux-low.c (linux_remove_process): Adjust.
16429 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16430 * server.c (handle_query): Move code ...
16431 (handle_monitor_command): ... here. New function.
16432 * target.h (struct target_ops): New member.
16433 * thread-db.c (struct thread_db): New.
16434 (libthread_db_search_path): New variable.
16435 (thread_db_create_event, thread_db_enable_reporting)
16436 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16437 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16438 (try_thread_db_load_1, dladdr_to_soname): New functions.
16439 (try_thread_db_load, thread_db_load_search): New functions.
16440 (thread_db_init): Search for libthread_db.
16441 (thread_db_free): New function.
16442 (thread_db_handle_monitor_command): Likewise.
16443 * config.in: Regenerate.
16444 * configure: Regenerate.
889bf7c5 16445
4168d2d6
UW
164462009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16447
16448 * spu-low.c (spu_kill): Wait for inferior to terminate.
16449 Call clear_inferiors.
16450 (spu_detach): Call clear_inferiors.
16451
81ecdfbb
RW
164522009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16453
16454 * aclocal.m4: Regenerate.
16455 * config.in: Likewise.
16456 * configure: Likewise.
16457
0b9ff2c0
UW
164582009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16459
16460 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16461 (parse_spufs_run): New function.
16462 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16463 (ppc_breakpoint_at): Handle SPU breakpoints.
16464
efcbbd14
UW
164652009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16466
16467 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16468 (SPUFS_MAGIC): Define.
16469 (spu_enumerate_spu_ids): New function.
16470 (linux_qxfer_spu): New function.
16471 (linux_target_ops): Install linux_qxfer_spu.
16472
f4d9bade
UW
164732009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16474
16475 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16476 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16477 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16478 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16479 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16480 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16481 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16482 (init_registers_powerpc_cell32l): Add prototype.
16483 (init_registers_powerpc_cell64l): Likewise.
16484 (ppc_arch_setup): Detect Cell/B.E. architecture.
16485
96e946ca
RW
164862009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16487
16488 * Makefile.in (datarootdir): New variable.
16489
58d6951d
DJ
164902009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16491
16492 * linux-low.c (linux_write_memory): Update debugging output.
16493 * Makefile.in (clean): Add new descriptions.
16494 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16495 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16496 * configure.srv: Add new files for arm*-*-linux*.
16497 * linux-arm-low.c: Add new declarations.
16498 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16499 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16500 (HWCAP_VFPv3D16): New.
16501 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16502 instead of __IWMMXT__.
16503 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16504 (arm_arch_setup): New.
16505 (target_regsets): Remove #ifdef. Add VFP regset.
16506 (the_low_target): Use arm_arch_setup.
16507
12b42a12
DJ
165082009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16509
16510 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16511 the main thread again.
16512
ac8c974e
AR
165132009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16514
16515 Adding Neutrino gdbserver.
16516 * configure: Regenerated.
16517 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16518 * configure.srv (i[34567]86-*-nto*): New target.
16519 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16520 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16521 (nto_comctrl) [__QNX__]: New function.
16522 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16523
4424e0c3 165242009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
16525
16526 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16527 srv_tgtobj.
16528
912cf4ba
PA
165292009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16530 Pedro Alves <pedro@codesourcery.com>
16531
16532 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16533 don't support CONTEXT_EXTENDED_REGISTERS.
16534 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16535 (the_low_target): Install them.
16536 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16537 failing with ERROR_PIPE_NOT_CONNECTED.
16538
aa5ca48f
DE
165392009-06-30 Doug Evans <dje@google.com>
16540 Pierre Muller <muller@ics.u-strasbg.fr>
16541
16542 Add h/w watchpoint support to x86-linux, win32-i386.
16543 * Makefile.in (SFILES): Add i386-low.c
16544 (i386_low_h): Define.
16545 (i386-low.o): Add dependencies.
16546 (linux-x86-low.o): Add i386-low.h dependency.
16547 (win32-i386-low.o): Ditto.
16548 * i386-low.c: New file.
16549 * i386-low.h: New file.
16550 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16551 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16552 * linux-low.c (linux_add_process): Initialize arch_private.
16553 (linux_remove_process): Free arch_private.
16554 (add_lwp): Initialize arch_private.
16555 (delete_lwp): Free arch_private.
16556 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16557 provided.
16558 * linux-low.h (process_info_private): New member arch_private.
16559 (lwp_info): New member arch_private.
16560 (linux_target_ops): New members new_process, new_thread,
16561 prepare_to_resume.
16562 (ptid_of): New macro.
16563 * linux-x86-low.c: Include stddef.h, i386-low.h.
16564 (arch_process_info): New struct.
16565 (arch_lwp_info): New struct.
16566 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16567 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16568 (i386_dr_low_get_status): New function.
16569 (x86_insert_point, x86_remove_point): New functions.
16570 (x86_stopped_by_watchpoint): New function.
16571 (x86_stopped_data_address): New function.
16572 (x86_linux_new_process, x86_linux_new_thread): New functions.
16573 (x86_linux_prepare_to_resume): New function.
16574 (the_low_target): Add entries for insert_point, remove_point,
16575 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16576 prepare_to_resume.
16577 * server.c (debug_hw_points): New global.
16578 (monitor_show_help): Document set debug-hw-points.
16579 (handle_query): Process "set debug-hw-points".
16580 * server.h (debug_hw_points): Declare.
16581 (paddress): Declare.
16582 * utils.c (NUMCELLS, CELLSIZE): New macros.
16583 (get_sell, xsnprintf, paddress): New functions.
16584 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16585 remove_point, stopped_by_watchpoint, stopped_data_address.
16586 * win32-i386-low.c: Include i386-low.h.
16587 (debug_reg_state): Replaces dr.
16588 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16589 (i386_dr_low_get_status): New function.
16590 (i386_insert_point, i386_remove_point): New functions.
16591 (i386_stopped_by_watchpoint): New function.
16592 (i386_stopped_data_address): New function.
16593 (i386_initial_stuff): Update.
16594 (get_thread_context,set_thread_context,i386_thread_added): Update.
16595 (the_low_target): Add entries for insert_point,
16596 remove_point, stopped_by_watchpoint, stopped_data_address.
16597 * win32-low.c (win32_insert_watchpoint): New function.
16598 (win32_remove_watchpoint): New function.
16599 (win32_stopped_by_watchpoint): New function.
16600 (win32_stopped_data_address): New function.
16601 (win32_target_ops): Add entries for insert_watchpoint,
16602 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16603 * win32-low.h (win32_target_ops): New members insert_point,
16604 remove_point, stopped_by_watchpoint, stopped_data_address.
16605
d993e290
PA
166062009-06-25 Pedro Alves <pedro@codesourcery.com>
16607
16608 * server.c (process_serial_event): Re-return unsupported, not
16609 error, if the type isn't recognized. Re-allow supporting only
16610 insert or remove packets. Also call require_running for
16611 breakpoints. Add missing break statement to default case. Tidy.
16612 * target.h (struct target_ops): Rename insert_watchpoint to
16613 insert_point, and remove_watchpoint to remove_point.
16614
16615 * linux-low.h (struct linux_target_ops): Likewise.
16616 * linux-low.c (linux_insert_watchpoint): Rename to ...
16617 (linux_insert_point): ... this. Adjust.
16618 (linux_remove_watchpoint): Rename to ...
16619 (linux_remove_point): ... this. Adjust.
16620 (linux_target_ops): Adjust.
16621 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16622 (cris_insert_point): ... this.
16623 (cris_remove_watchpoint): Rename to ...
16624 (cris_remove_point): ... this.
16625 (the_low_target): Adjust.
16626
0f54c268
PM
166272009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16628
16629 * server.c (handle_v_kill): Pass signal_pid to
16630 kill_inferior if multi_process is zero.
16631
c6314022
AR
166322009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16633
16634 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16635 * target.h (target_ops): Comment for *_watchpoint to make it clear
16636 the functions can get types '0' and '1'.
16637
4463ce24
AR
166382009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16639
16640 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16641 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16642 * regcache.c (get_regcache): Likewise.
16643 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16644 * win32-low.c (child_fetch_inferior_registers): Remove check for
16645 regno 0.
16646
cf8fd78b
PA
166472009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16648 Pedro Alves <pedro@codesourcery.com>
16649
16650 * target.h (struct target_ops) <supports_multi_process>: New
16651 callback.
16652 (target_supports_multi_process): New.
16653 * server.c (handle_query): Even if GDB reports support, only
16654 enable multi-process if the target also supports it. Report
16655 multi-process support only if the target backend supports it.
16656 * linux-low.c (linux_supports_multi_process): New function.
16657 (linux_target_ops): Install it as target_supports_multi_process
16658 callback.
16659
47c0c975
DE
166602009-05-24 Doug Evans <dje@google.com>
16661
e09875d4
DE
16662 Global renaming of find_thread_pid to find_thread_ptid.
16663 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16664 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16665 All callers updated.
16666
e27d73f6
DE
16667 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16668 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16669 directly.
16670
47c0c975
DE
16671 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16672 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16673 (linux_resume_one_lwp): Ditto.
16674
2acc282a
DE
166752009-05-23 Doug Evans <dje@google.com>
16676
16677 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16678 from struct inferior_list_entry * to struct lwp_info *.
16679 All callers updated.
16680
9f1036c1
DE
166812009-05-13 Doug Evans <dje@google.com>
16682
16683 * linux-x86-low.c: Don't include assert.h.
16684 (x86_siginfo_fixup): Use fatal, not assert.
16685 (x86_arch_setup): Fix comment.
16686
d0722149
DE
166872009-05-12 Doug Evans <dje@google.com>
16688
16689 Biarch support for i386/amd64 gdbserver.
16690 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16691 Add linux-x86-low.c.
16692 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16693 (linux-x86-low.o): Add.
16694 * linux-x86-64-low.c: Delete.
16695 * linux-i386-low.c: Delete.
16696 * linux-x86-low.c: New file.
16697 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16698 linux-x86-low.o.
16699 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16700 linux-x86-low.o.
16701 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16702 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16703 (linux_child_pid_to_exec_file): New function.
16704 (elf_64_header_p, elf_64_file_p): New functions.
16705 (siginfo_fixup): New function.
16706 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16707 give target a chance to convert layout.
16708 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16709 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16710
fdeb2a12
DE
167112009-05-07 Doug Evans <dje@google.com>
16712
16713 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16714 (regsets_store_inferior_registers): Ditto.
16715
a6dbe5df
PA
167162009-05-06 Pedro Alves <pedro@codesourcery.com>
16717
16718 PR server/10048
16719
16720 * linux-low.c (must_set_ptrace_flags): Delete.
16721 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16722 of the global.
16723 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16724 `lwp->must_set_ptrace_flags' instead.
ba42693b 16725 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
16726 (linux_wait_1): ... not here.
16727
5091eb23
DE
167282009-04-30 Doug Evans <dje@google.com>
16729
9f767825
DE
16730 * inferiors.c (started_inferior_callback): New function.
16731 (attached_inferior_callback): New function.
16732 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16733 * server.c (print_started_pid, print_attached_pid): New functions.
16734 (detach_or_kill_for_exit): New function.
16735 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16736 * server.h (have_started_inferiors_p): Declare.
16737 (have_attached_inferiors_p): Declare.
16738
5091eb23
DE
16739 * inferiors.c (remove_process): Fix memory leak, free process.
16740 * linux-low.c (linux_remove_process): New function.
16741 (linux_kill): Call it instead of remove_process.
16742 (linux_detach, linux_wait_1): Ditto.
16743
155c8968
PA
167442009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16745
16746 * configure.srv: Add x86 Windows CE target.
16747
7fe519cb
UW
167482009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16749
16750 * inferiors.c (get_thread_process): Make global.
16751 * server.h (get_thread_process): Add prototype.
16752 * thread-db.c (find_one_thread): Use get_thread_process
16753 instead of current_process.
16754 (thread_db_get_tls_address): Do not crash if called when
16755 thread layer is not yet initialized.
16756
5472f405
UW
167572009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16758
16759 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16760 * spu-low.c (current_tid): Rename to ...
16761 (current_ptid): ... this.
16762 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16763 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16764 ptid_get_lwp (current_ptid) instead of current_tid.
16765 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16766 instead of current_tid. Use find_process_pid to verify pid
16767 argument is valid. Pass proper argument to remove_process.
16768 (spu_thread_alive): Compare current_ptid instead of current_tid.
16769 (spu_resume): Likewise.
16770
55ac2b99
PA
167712009-04-02 Pedro Alves <pedro@codesourcery.com>
16772
16773 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16774 variable.
16775
95954743
PA
167762009-04-01 Pedro Alves <pedro@codesourcery.com>
16777
16778 Implement the multiprocess extensions, and add linux multiprocess
16779 support.
16780
16781 * server.h (ULONGEST): Declare.
16782 (struct ptid, ptid_t): New.
16783 (minus_one_ptid, null_ptid): Declare.
16784 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16785 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16786 (struct inferior_list_entry): Change `id' type from unsigned from
16787 to ptid_t.
16788 (struct sym_cache, struct breakpoint, struct
16789 process_info_private): Forward declare.
16790 (struct process_info): Declare.
16791 (current_process): Declare.
16792 (all_processes): Declare.
16793 (initialize_inferiors): Declare.
16794 (add_thread): Adjust to use ptid_t.
16795 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16796 (add_process, remove_process, find_thread_pid): Declare.
16797 (find_inferior_id): Adjust to use ptid_t.
16798 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16799 (multi_process): Declare.
16800 (push_event): Adjust to use ptid_t.
16801 (read_ptid, write_ptid): Declare.
16802 (prepare_resume_reply): Adjust to use ptid_t.
16803 (clear_symbol_cache): Declare.
16804 * inferiors.c (all_processes): New.
16805 (null_ptid, minus_one_ptid): New.
16806 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16807 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16808 (add_thread): Change unsigned long to ptid. Remove gdb_id
16809 parameter. Adjust.
16810 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16811 (gdb_id_to_thread): Rename to ...
16812 (find_thread_pid): ... this. Change unsigned long to ptid.
16813 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16814 (loaded_dll, pull_pid_from_list): Adjust.
16815 (add_process, remove_process, find_process_pid)
16816 (get_thread_process, current_process, initialize_inferiors): New.
16817 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16818 (struct target_waitstatus) <related_pid>: Ditto.
16819 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16820 return type to int.
16821 (struct target_ops) <join>: Add `pid' argument.
16822 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16823 (struct target_ops) <wait>: Add `ptid' field. Change return type
16824 to ptid.
16825 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16826 (mywait): Add `ptid' argument. Change return type to ptid_t.
16827 (target_pid_to_str): Declare.
16828 * target.c (set_desired_inferior): Adjust to use ptids.
16829 (mywait): Add new `ptid' argument. Adjust.
16830 (target_pid_to_str): New.
16831 * mem-break.h (free_all_breakpoints): Declare.
16832 * mem-break.c (breakpoints): Delelete.
16833 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16834 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16835 to use per-process breakpoint list.
16836 (free_all_breakpoints): New.
16837 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16838 (symbol_cache, all_symbols_looked_up): Delete.
16839 (hexchars): New.
16840 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16841 read_ptid): New.
16842 (prepare_resume_reply): Change ptid argument's type from unsigned
16843 long to ptid_t. Adjust. Implement W;process and X;process.
16844 (free_sym_cache, clear_symbol_cache): New.
16845 (look_up_one_symbol): Adjust to per-process symbol cache. *
16846 * server.c (cont_thread, general_thread, step_thread): Change type
16847 to ptid_t.
16848 (attached): Delete.
16849 (multi_process): New.
16850 (last_ptid): Change type to ptid_t.
16851 (struct vstop_notif) <ptid>: Change type to ptid_t.
16852 (queue_stop_reply, push_event): Change `ptid' argument's type to
16853 ptid_t.
16854 (discard_queued_stop_replies): Add `pid' argument.
16855 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16856 changes. Don't reference the `attached' global.
16857 (attach_inferior): Adjust to mywait interface changes.
16858 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16859 features. Handle and report "multiprocess+". Handle
16860 "qAttached:PID".
16861 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16862 changes.
16863 (handle_v_kill): New.
16864 (handle_v_stopped): Adjust to use target_pid_to_str.
16865 (handle_v_requests): Allow multiple attaches and runs when
16866 multiprocess extensions are in effect. Handle "vKill".
16867 (myresume): Adjust to use ptids.
16868 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16869 (handle_status): Adjust to discard_queued_stop_replies interface
16870 change.
16871 (first_thread_of, kill_inferior_callback)
16872 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16873 (main): Call initialize_inferiors. Adjust to use ptids, killing
16874 and detaching from all inferiors. Handle multiprocess packet
16875 variants.
16876 * linux-low.h: Include gdb_proc_service.h.
16877 (struct process_info_private): New.
16878 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16879 <lwpid_of>: Use ptid_get_lwp.
16880 (get_lwp_thread): Adjust.
16881 (struct lwp_info): Add `dead' member.
16882 (find_lwp_pid): Declare.
16883 * linux-low.c (thread_db_active): Delete.
16884 (new_inferior): Adjust comment.
16885 (inferior_pid): Delete.
16886 (linux_add_process): New.
16887 (handle_extended_wait): Adjust.
16888 (add_lwp): Change unsigned long to ptid.
16889 (linux_create_inferior): Add process to processes table. Adjust
16890 to use ptids. Don't set new_inferior here.
16891 (linux_attach_lwp): Rename to ...
16892 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16893 it. Adjust to use ptids.
16894 (linux_attach_lwp): New.
16895 (linux_attach): Add process to processes table. Don't set
16896 new_inferior here.
16897 (struct counter): New.
16898 (second_thread_of_pid_p, last_thread_of_process_p): New.
16899 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16900 multiple processes.
16901 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16902 processes. Remove process from process table.
16903 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16904 to multiple processes.
16905 (any_thread_of): New.
16906 (linux_detach): Add `pid' argument, and handle it. Remove process
16907 from processes table.
16908 (linux_join): Add `pid' argument. Handle it.
16909 (linux_thread_alive): Change unsighed long argument to ptid_t.
16910 Consider dead lwps as not being alive.
16911 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16912 threads we're not interested in.
16913 (same_lwp, find_lwp_pid): New.
16914 (linux_wait_for_lwp): Change `pid' argument's type from int to
16915 ptid_t. Adjust.
16916 (linux_wait_for_event): Rename to ...
16917 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16918 from int to ptid_t. Adjust.
16919 (linux_wait_for_event): New.
16920 (linux_wait_1): Add `ptid' argument. Change return type to
16921 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16922 that exit from the process table.
16923 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16924 Adjust.
16925 (mark_lwp_dead): New.
16926 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16927 stopping all threads, mark its main lwp as dead.
16928 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16929 ptids.
16930 (fetch_register, usr_store_inferior_registers)
16931 (regsets_fetch_inferior_registers)
16932 (regsets_store_inferior_registers, linux_read_memory)
16933 (linux_write_memory): Inline `inferior_pid'.
16934 (linux_look_up_symbols): Adjust to use per-process
16935 `thread_db_active'.
16936 (linux_request_interrupt): Adjust to use ptids.
16937 (linux_read_auxv): Inline `inferior_pid'.
16938 (initialize_low): Don't reference thread_db_active.
16939 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16940 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16941 (ps_getpid): Return the pid of the current inferior.
16942 * thread-db.c (proc_handle, thread_agent): Delete.
16943 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16944 per-process data.
16945 (find_one_thread): Change argument type to ptid_t. Adjust to
16946 per-process data.
16947 (maybe_attach_thread): Adjust to per-process data and ptids.
16948 (thread_db_find_new_threads): Ditto.
16949 (thread_db_init): Ditto.
16950 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16951 processes table. Adjust to use ptids.
16952 (spu_kill, spu_detach): Adjust interface. Remove process from
16953 processes table.
16954 (spu_join, spu_thread_alive): Adjust interface.
16955 (spu_wait): Adjust interface. Remove process from processes
16956 table. Adjust to use ptids.
16957 * win32-low.c (current_inferior_tid): Delete.
16958 (current_inferior_ptid): New.
16959 (debug_event_ptid): New.
16960 (thread_rec): Take a ptid. Adjust.
16961 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16962 (child_delete_thread): Ditto.
16963 (do_initial_child_stuff): Add `attached' argument. Add process to
16964 processes table.
16965 (child_fetch_inferior_registers, child_store_inferior_registers):
16966 Adjust.
16967 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16968 (win32_attach): Pass 1 to do_initial_child_stuff.
16969 (win32_kill): Adjust interface. Remove process from processes
16970 table.
16971 (win32_detach): Ditto.
16972 (win32_join): Adjust interface.
16973 (win32_thread_alive): Take a ptid.
16974 (win32_resume): Adjust to use ptids.
16975 (get_child_debug_event): Ditto.
16976 (win32_wait): Adjust interface. Remove exiting process from
16977 processes table.
16978
bd99dc85
PA
169792009-04-01 Pedro Alves <pedro@codesourcery.com>
16980
16981 Non-stop mode support.
16982
16983 * server.h (non_stop): Declare.
16984 (gdb_client_data, handler_func): Declare.
16985 (delete_file_handler, add_file_handler, start_event_loop):
16986 Declare.
16987 (handle_serial_event, handle_target_event, push_event)
16988 (putpkt_notif): Declare.
16989 * target.h (enum resume_kind): New.
16990 (struct thread_resume): Replace `step' field by `kind' field.
16991 (TARGET_WNOHANG): Define.
16992 (struct target_ops) <wait>: Add `options' argument.
16993 <supports_non_stop, async, start_non_stop>: New fields.
16994 (target_supports_non_stop, target_async): New.
16995 (start_non_stop): Declare.
16996 (mywait): Add `options' argument.
16997 * target.c (mywait): Add `options' argument. Print child exit
16998 notifications here.
16999 (start_non_stop): New.
17000 * server.c (non_stop, own_buf, mem_buf): New globals.
17001 (struct vstop_notif): New.
17002 (notif_queue): New global.
17003 (queue_stop_reply, push_event, discard_queued_stop_replies)
17004 (send_next_stop_reply): New.
17005 (start_inferior): Adjust to use resume_kind. Adjust to mywait
17006 interface changes.
17007 (attach_inferior): In non-stop mode, don't wait for the target
17008 here.
17009 (handle_general_set): Handle QNonStop.
17010 (handle_query): When handling qC, return the current general
17011 thread, instead of the first thread of the list.
17012 (handle_query): If the backend supports non-stop mode, include
17013 QNonStop+ in the qSupported query response.
17014 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
17015 and non-stop mode.
17016 (handle_v_attach, handle_v_run): Handle non-stop mode.
17017 (handle_v_stopped): New.
17018 (handle_v_requests): Report support for vCont;t. Handle vStopped.
17019 (myresume): Adjust to use resume_kind. Handle non-stop.
17020 (queue_stop_reply_callback): New.
17021 (handle_status): Handle non-stop mode.
17022 (main): Clear non_stop flag on reconnection. Use the event-loop.
17023 Refactor serial protocol handling from here ...
17024 (process_serial_event): ... to this new function. When GDB
17025 selects any thread, select one here. In non-stop mode, wait until
17026 GDB acks all pending events before exiting.
17027 (handle_serial_event, handle_target_event): New.
17028 * remote-utils.c (remote_open): Install remote_desc in the event
17029 loop.
17030 (remote_close): Remove remote_desc from the event loop.
17031 (putpkt_binary): Rename to...
17032 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17033 (putpkt_binary): New as wrapper around putpkt_binary_1.
17034 (putpkt_notif): New.
17035 (prepare_resume_reply): In non-stop mode, don't change the
17036 general_thread.
17037 * event-loop.c: New.
17038 * Makefile.in (OBJ): Add event-loop.o.
17039 (event-loop.o): New rule.
17040
17041 * linux-low.h (pid_of): Moved here.
17042 (lwpid_of): New.
17043 (get_lwp_thread): Use lwpid_of.
17044 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17045 * linux-low.c (pid_of): Delete.
17046 (inferior_pid): Use lwpid_of.
17047 (linux_event_pipe): New.
17048 (target_is_async_p): New.
17049 (delete_lwp): New.
17050 (handle_extended_wait): Use lwpid_of.
17051 (add_lwp): Don't set lwpid field.
17052 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17053 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17054 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17055 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17056 first. Adjust to linux_wait_for_event interface changes. Use
17057 lwpid_of.
17058 (linux_detach): Don't delete the main lwp here.
17059 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17060 (status_pending_p): Don't consider explicitly suspended lwps.
17061 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17062 pointer. Add OPTIONS argument. Change return type to int. Use
17063 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17064 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17065 pointer. Add status pointer argument. Return a pid instead of a
17066 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17067 changes. In non-stop mode, don't switch to a random thread.
17068 (linux_wait): Rename to...
17069 (linux_wait_1): ... this. Add target_options argument, and handle
17070 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17071 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17072 clean exit and signal exit code. Don't stop all threads in
17073 non-stop mode. In all-stop mode, only stop all threads when
17074 reporting a stop to GDB. Handle explicit thread stop requests.
17075 (async_file_flush, async_file_mark): New.
17076 (linux_wait): New.
17077 (send_sigstop): Use lwpid_of.
17078 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17079 interface changes. In non-stop mode, don't switch to a random
17080 thread.
17081 (linux_resume_one_lwp): Use lwpid_of.
17082 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17083 (linux_resume_one_thread): ... this. Handle resume_stop. In
17084 non-stop mode, don't look for pending flag in all threads.
17085 (resume_status_pending_p): Don't consider explicitly suspended
17086 threads.
17087 (my_waitpid): Reimplement. Emulate __WALL.
17088 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17089 Use lwpid_of.
17090 (sigchld_handler, linux_supports_non_stop, linux_async)
17091 (linux_start_non_stop): New.
17092 (linux_target_ops): Register linux_supports_non_stop, linux_async
17093 and linux_start_non_stop.
17094 (initialize_low): Install SIGCHLD handler.
17095 * thread-db.c (thread_db_create_event, find_one_thread)
17096 (thread_db_get_tls_address): Use lwpid_of.
17097 * win32-low.c (win32_detach): Adjust to use resume_kind.
17098 (win32_wait): Add `options' argument.
17099 * spu-low.c (spu_resume): Adjust to use resume_kind.
17100 (spu_wait): Add `options' argument.
17101
5b1c542e
PA
171022009-04-01 Pedro Alves <pedro@codesourcery.com>
17103
17104 Decouple target code from remote protocol.
17105
17106 * target.h (enum target_waitkind): New.
17107 (struct target_waitstatus): New.
17108 (struct target_ops) <wait>: Return an unsigned long. Take a
17109 target_waitstatus pointer instead of a char pointer.
17110 (mywait): Likewise.
17111 * target.c (mywait): Change prototype to return an unsigned long.
17112 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17113 * server.h (thread_from_wait, old_thread_from_wait): Delete
17114 declarations.
17115 (prepare_resume_reply): Change prototype to take a
17116 target_waitstatus.
17117 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17118 (last_status, last_ptid): New.
17119 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17120 pid instead of a signal.
17121 (attach_inferior): Remove "status" and "signal" parameters.
17122 Adjust.
17123 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17124 not as an address.
17125 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17126 (handle_v_requests, myresume): Remove "status" and "signal"
17127 parameters. Adjust.
17128 (handle_status): New.
17129 (main): Delete local `status'. Adjust.
17130 * remote-utils.c: Include target.h.
17131 (prepare_resume_reply): Change prototype to take a
17132 target_waitstatus. Adjust.
17133
17134 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17135 interface.
17136 * spu-low.c (spu_wait): Adjust.
17137 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17138 Delete.
17139 (win32_wait): Adjust.
17140
2bd7c093
PA
171412009-04-01 Pedro Alves <pedro@codesourcery.com>
17142
17143 * target.h (struct thread_resume): Delete leave_stopped member.
17144 (struct target_ops): Add a `n' argument to the `resume' callback.
17145 * server.c (start_inferior): Adjust.
17146 (handle_v_cont, myresume): Adjust.
17147 * linux-low.c (check_removed_breakpoint): Adjust to resume
17148 interface change, and to removed leave_stopped field.
17149 (resume_ptr): Delete.
17150 (struct thread_resume_array): New.
17151 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17152 resume interface change.
17153 (linux_continue_one_thread, linux_queue_one_thread)
17154 (resume_status_pending_p): Check if the resume field is NULL
17155 instead of checking the leave_stopped member.
17156 (linux_resume): Adjust to the target resume interface change.
17157 * spu-low.c (spu_resume): Adjust to the target resume interface
17158 change.
17159 * win32-low.c (win32_detach, win32_resume): Ditto.
17160
c35fafde
PA
171612009-04-01 Pedro Alves <pedro@codesourcery.com>
17162
17163 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17164 flag.
17165 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17166 pending.
17167 (linux_continue_one_thread): Only preserve the stepping flag if
17168 there's a pending breakpoint.
17169
0a59d50b
PA
171702009-03-31 Pedro Alves <pedro@codesourcery.com>
17171
17172 * server.c (main): After the inferior having exited, call
17173 remote_close before exiting gdbserver.
17174
f04c6d38
TJB
171752009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17176
17177 Fix size of FPSCR in Power 7 processors.
17178 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17179 (PPC_FEATURE_HAS_DFP): New #define.
17180 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17181 size of the FPSCR.
17182
78e5cee6
PA
171832009-03-23 Pedro Alves <pedro@codesourcery.com>
17184
17185 * server.c (handle_query) Whitespace and formatting.
17186
1b3f6016
PA
171872009-03-22 Pedro Alves <pedro@codesourcery.com>
17188
17189 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17190 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17191 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17192 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17193 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17194 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17195 Makefile.in, configure.ac: Fix whitespace throughout.
17196 * configure: Regenerate.
17197
a07b2135
PA
171982009-03-22 Pedro Alves <pedro@codesourcery.com>
17199
17200 * inferiors.c (find_inferior): Make it safe for the callback
17201 function to delete the currently iterated inferior.
17202
67cc2626
PA
172032009-03-22 Pedro Alves <pedro@codesourcery.com>
17204
17205 * Makefile.in (linuw_low_h): Move higher.
17206 (thread-db.o): Depend on $(linux_low_h).
17207
54a0b537
PA
172082009-03-17 Pedro Alves <pedro@codesourcery.com>
17209
17210 Rename "process" to "lwp" throughout.
17211
17212 * linux-low.c (all_processes): Rename to...
17213 (all_lwps): ... this.
17214 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17215 (add_process): Rename to ...
17216 (add_lwp): ... this. Adjust.
17217 (linux_create_inferior): Adjust.
17218 (linux_attach_lwp): Adjust.
17219 (linux_attach): Adjust.
17220 (linux_kill_one_process): Rename to ...
17221 (linux_kill_one_lwp): ... this. Adjust.
17222 (linux_kill): Adjust.
17223 (linux_detach_one_process): Rename to ...
17224 (linux_detach_one_lwp): ... this. Adjust.
17225 (linux_detach): Adjust.
17226 (check_removed_breakpoint): Adjust.
17227 (status_pending_p): Adjust.
17228 (linux_wait_for_process): Rename to ...
17229 (linux_wait_for_lwp): ... this. Adjust.
17230 (linux_wait_for_event): Adjust.
17231 (send_sigstop): Adjust.
17232 (wait_for_sigstop): Adjust.
17233 (stop_all_processes): Rename to ...
17234 (stop_all_lwps): ... this.
17235 (linux_resume_one_process): Rename to ...
17236 (linux_resume_one_lwp): ... this. Adjust.
17237 (linux_set_resume_request, linux_continue_one_thread)
17238 (linux_queue_one_thread, resume_status_pending_p)
17239 (usr_store_inferior_registers, regsets_store_inferior_registers)
17240 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17241 Adjust.
17242 * linux-low.h (get_process): Rename to ...
17243 (get_lwp): ... this. Adjust.
17244 (get_thread_process): Rename to ...
17245 (get_thread_lwp): ... this. Adjust.
17246 (get_process_thread): Rename to ...
17247 (get_lwp_thread): ... this. Adjust.
17248 (struct process_info): Rename to ...
17249 (struct lwp_info): ... this.
17250 (all_processes): Rename to ...
17251 (all_lwps): ... this.
17252 * proc-service.c (ps_lgetregs): Adjust.
17253 * thread-db.c (thread_db_create_event, find_one_thread)
17254 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17255
0b16c5cf
PA
172562009-03-14 Pedro Alves <pedro@codesourcery.com>
17257
17258 * server.c (handle_query): Handle "qAttached".
17259
32de4b9d
NS
172602009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17261
17262 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17263 GPLv3, update license URL.
17264
2aecd87f
DE
172652009-03-01 Doug Evans <dje@google.com>
17266
93efd302 17267 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
17268 (server_h): Add gdb_signals.h.
17269 (signals.o): Update.
17270 * server.h (target_signal_from_host,target_signal_to_host_p)
17271 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17272
86b1f9c5
PM
172732009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17274
17275 * remote-utils.c (getpkt): Also generate remote-debug
17276 information if noack_mode is set.
17277
4aa995e1
PA
172782009-02-06 Pedro Alves <pedro@codesourcery.com>
17279
17280 * server.c (handle_query): Report qXfer:siginfo:read and
17281 qXfer:siginfo:write as supported and handle them.
17282 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17283 * linux-low.c (linux_xfer_siginfo): New.
17284 (linux_target_ops): Set it.
17285
62709adf
PA
172862009-01-26 Pedro Alves <pedro@codesourcery.com>
17287
17288 * server.c (gdbserver_usage): Mention --remote-debug.
17289 (main): Accept '--remote-debug' switch.
17290
aef93bd7
DE
172912009-01-18 Doug Evans <dje@google.com>
17292
17293 * regcache.c (new_register_cache): No need to check result of xcalloc.
17294 * server.c (handle_search_memory): Back out calls to xmalloc,
17295 result is checked and error is returned to user upon failure.
17296 (handle_query): Ditto. Add more checks for result of malloc.
17297 (handle_v_cont): Check result of malloc, report error back to
17298 user upon failure.
17299 (handle_v_run): Ditto. Call freeargv.
17300 * server.h (freeargv): Declare.
17301 * utils.c (freeargv): New fn.
17302
54363045
DE
173032009-01-15 Doug Evans <dje@google.com>
17304
f626972c
DE
17305 * gdbreplay.c (perror_with_name): Make arg const char *.
17306 * server.h (target_signal_to_name): Make return type const char *.
0842e787 17307 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 17308 * utils.c (perror_with_name): Make arg const char *.
54363045 17309
18aae699
PA
173102009-01-14 Pedro Alves <pedro@codesourcery.com>
17311
17312 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17313 when handling a EXIT_PROCESS_DEBUG_EVENT.
17314
ff703abe
JB
173152009-01-06 Joel Brobecker <brobecker@adacore.com>
17316
17317 * gdbreplay.c (gdbreplay_version): Update copyright year.
17318 * server.c (gdbserver_version): Likewise.
17319
f21cc1a2 173202009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
17321
17322 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 17323 (handle_extended_wait): Improve comment.
0e21c1ec 17324
bca929d3
DE
173252008-12-13 Doug Evans <dje@google.com>
17326
17327 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17328 * server.h (ATTR_MALLOC): New macro.
17329 (xmalloc,xcalloc,xstrdup): Declare.
17330 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17331 * inferiors.c: Ditto.
17332 * linux-low.c: Ditto.
17333 * mem-break.c: Ditto.
17334 * regcache.c: Ditto.
17335 * remote-utils.c: Ditto.
17336 * server.c: Ditto.
17337 * target.c: Ditto.
17338 * win32-low.c: Ditto.
17339
97438e3f
DE
173402008-12-12 Doug Evans <dje@google.com>
17341
896c7fbb
DE
17342 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17343 in debugging printf.
17344
97438e3f
DE
17345 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17346
e3b886f8
DE
173472008-12-09 Doug Evans <dje@google.com>
17348
17349 * linux-low.h (struct process_info): Delete member tid, unused.
17350 * thread-db.c (find_one_thread): Update.
17351 (maybe_attach_thread): Update.
17352
07e059b5
VP
173532008-12-02 Pedro Alves <pedro@codesourcery.com>
17354
889bf7c5
PA
17355 * target.h (struct target_ops): Add qxfer_osdata member.
17356 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17357 and dirent.h.
17358 (linux_qxfer_osdata): New functions.
17359 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17360 callback.
17361 * server.c (handle_query): Handle "qXfer:osdata:read:".
17362 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17363 (buffer_xml_printf): New functions.
17364 * server.h (struct buffer): New.
17365 (buffer_grow_str, buffer_grow_str0): New macros.
17366 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17367 (buffer_xml_printf): Declare.
07e059b5 17368
4cab47ab
DE
173692008-11-24 Doug Evans <dje@google.com>
17370
17371 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17372
f142445f
DJ
173732008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17374
17375 * server.c (handle_v_run): Always use the supplied argument list.
17376
d0107bb6 173772008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 17378
d0107bb6
BW
17379 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17380 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 17381
2c4ad781
TJB
173822008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17383
17384 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17385 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17386 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17387 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17388 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17389 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17390 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17391 XML target descriptions.
17392 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17393 when inferior is running on an ISA 2.05 or later processor. Add
17394 special case to return offset for full 64-bit slot of FPSCR when
17395 in 32-bits.
17396
dfb64f85
DJ
173972008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17398
17399 * Makefile.in (SFILES, clean): Added sparc64 files.
17400 (reg-sparc64.o, reg-sparc64.c): New.
17401 * configure.srv (sparc*-*-linux*): New configuration.
17402 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17403 syscall arguments for SPARC.
17404 (regsets_store_inferior_registers): Likewise.
17405 * linux-sparc-low.c: New file.
17406
66b6e1dd
DE
174072008-10-21 Doug Evans <dje@google.com>
17408
17409 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17410 (READLINE_DIR,READLINE_DEP): Delete.
17411 (INTERNAL_CFLAGS): Update.
17412 (LINTFLAGS): Update.
17413
9b710a42
PA
174142008-10-10 Pedro Alves <pedro@codesourcery.com>
17415
17416 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17417 whole argv from the last run, not just argv[0].
17418
5822d809
PA
174192008-09-08 Pedro Alves <pedro@codesourcery.com>
17420
17421 * regcache.c (new_register_cache): Return NULL if the register
17422 cache size isn't known yet.
17423 (free_register_cache): Avoid dereferencing a NULL regcache.
17424
74aac56f
DJ
174252008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17426
17427 * configure.srv: Merge MIPS and MIPS64.
17428
400b20f5
MR
174292008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17430
17431 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17432
677c5bb1
LM
174332008-08-18 Luis Machado <luisgpm@br.ibm.com>
17434
17435 * Makefile.in: Add required vsx dependencies.
17436
17437 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17438 Declare init_registers_powerpc_vsx32l.
17439 Declare init_registers_powerpc_vsx64l.
17440 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17441 (ppc_arch_setup): Check for VSX in hwcap.
17442 (ppc_fill_vsxregset): New function.
17443 (ppc_store_vsxregset): New function.
17444 Add new VSX entry in regset_info target_regsets.
17445
17446 * configure.srv: Add new VSX dependencies.
17447
a6f3e723
SL
174482008-08-12 Pedro Alves <pedro@codesourcery.com>
17449
17450 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17451 (remote_open): Set or clear transport_is_reliable.
17452 (putpkt_binary): Don't expect acks in noack mode.
17453 (getpkt): Don't send ack/nac in noack mode.
17454 * server.c (handle_general_set): Handle QStartNoAckMode.
17455 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17456 qSupported.
17457 (main): Reset noack_mode on every connection.
17458 * server.h (noack_mode): Declare.
17459
a417dc56
RW
174602008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17461
17462 * Makefile.in (GDBREPLAY_OBS): New variable.
17463 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17464
3221518c
UW
174652008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17466 Daniel Jacobowitz <dan@codesourcery.com>
17467
17468 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17469 (usr_store_inferior_registers): Likewise.
17470 (regsets_store_inferior_registers): Likewise.
17471
ec56be1b
PA
174722008-07-31 Rolf Jansen <rj@surtec.com>
17473 Pedro Alves <pedro@codesourcery.com>
17474
17475 * configure.ac: Check for memmem declaration.
17476 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17477 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17478 (disable_packet_qfThreadInfo): Unconditionally compile.
17479 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17480 * configure, config.in: Regenerate.
17481
2fe5e3ff
DE
174822008-07-28 Doug Kwan <dougkwan@google.com>
17483
17484 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17485 (linux_write_memory): Remove declaration of errno.
17486
836acd6d
UW
174872008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17488
17489 * linux-low.c (handle_extended_wait): Do not use "status"
17490 variable uninitialized.
17491
aeba519e
PA
174922008-07-07 Pedro Alves <pedro@codesourcery.com>
17493
17494 * server.c (handle_v_attach): Inhibit reporting dll changes.
17495
db42f210
PA
174962008-06-27 Pedro Alves <pedro@codesourcery.com>
17497
17498 * remote-utils.c (prepare_resume_reply): If requested, don't
17499 output "thread:TID" in the T stop reply.
17500
17501 * server.c (disable_packet_vCont, disable_packet_Tthread)
17502 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17503 (handle_query): If requested, disable support for qC, qfThreadInfo
17504 and qsThreadInfo.
17505 (handle_v_requests): If requested, disable support for vCont.
17506 (gdbserver_show_disableable): New.
17507 (main): Handle --disable-packet and --disable-packet=LIST.
17508
17509 * server.h (disable_packet_vCont, disable_packet_Tthread)
17510 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17511
8e4c5421
CD
175122008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17513
17514 * server.c (gdbserver_usage): Mention --version.
17515
6e23a804
DJ
175162008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17517
17518 * Makefile.in (gdbreplay.o): New rule.
17519
90aa6a40
JM
175202008-06-06 Joseph Myers <joseph@codesourcery.com>
17521
17522 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17523 message, not gdbserver.
17524
c16158bc 175252008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
17526 Nathan Sidwell <nathan@codesourcery.com>
17527 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
17528
17529 * acinclude.m4: Include ../../config/acx.m4.
17530 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17531 * configure, config.in: Regenerate.
17532 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17533 * server.c (gdbserver_version): Print PKGVERSION.
17534 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17535 (main): Adjust gdbserver_usage calls.
17536 * gdbreplay.c (version, host_name): Add declarations.
17537 (gdbreplay_version, gdbreplay_usage): New.
17538 (main): Accept --version and --help options.
17539
aeb75bf5
DJ
175402008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17541
17542 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17543 (arm_breakpoint_at): Handle Thumb.
17544 (the_low_target): Add comment.
17545
76b233dd
UW
175462008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17547
17548 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17549
08388c79
DE
175502008-05-09 Doug Evans <dje@google.com>
17551
a3c83fae
DE
17552 * server.h (decode_search_memory_packet): Declare.
17553 * remote-utils.c (decode_search_memory_packet): New fn.
17554 * server.c (handle_search_memory_1): New fn.
08388c79
DE
17555 (handle_search_memory): New fn.
17556 (handle_query): Process qSearch:memory packets.
17557
bb9c3d36
UW
175582008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17559
17560 * regcache.c (registers_length): Remove.
17561 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17562 full register packet.
17563 * regcache.h (registers_length): Remove prototype.
17564 * server.h (PBUFSIZ): Define to 16384.
17565
7284e1be
UW
175662008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17567
17568 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17569 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17570 powerpc-64l.o, and powerpc-altivec64l.o.
17571 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17572 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17573 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17574 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17575 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17576 to srv_xmlfiles.
17577
17578 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17579 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17580 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17581 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17582 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17583 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17584 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17585 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17586 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17587 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17588 (clean): Update.
17589
17590 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17591 (init_registers_powerpc_32l): ... this new prototype.
17592 (init_registers_powerpc_32): Remove, replace by ...
17593 (init_registers_powerpc_altivec32l): ... this new prototype.
17594 (init_registers_powerpc_e500): Remove, replace by ...
17595 (init_registers_powerpc_e500l): ... this new prototype.
17596 (init_registers_ppc64): Remove, replace by ...
17597 (init_registers_powerpc_64l): ... this new prototype.
17598 (init_registers_powerpc_64): Remove, replace by ...
17599 (init_registers_powerpc_altivec64l): ... this new prototype.
17600 (ppc_num_regs): Set to 73.
17601 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17602 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17603 (ppc_cannot_store_register): Handle orig_r3 and trap.
17604 (ppc_arch_setup): Update init_registers_... calls.
17605 (ppc_fill_gregset): Handle orig_r3 and trap.
17606
17607 * inferiors.c (clear_inferiors): Reset current_inferior.
17608
fdc59709
PB
176092008-04-23 Paolo Bonzini <bonzini@gnu.org>
17610
889bf7c5
PA
17611 * acinclude.m4: Add override.m4.
17612 * configure: Regenerate.
fdc59709 17613
c9b2f845
UW
176142008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17615
17616 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17617 initial call to init_register_ppc64.
17618
550512b8
UW
176192008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17620
43aaf8b6
PA
17621 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17622 single powerpc*-*-linux* case.
550512b8
UW
17623 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17624
b6430ec3
UW
176252008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17626
17627 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 17628 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
17629 from reg_xmlfiles.
17630 * linux-ppc-low.c: Include <elf.h>.
17631 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17632 (ppc_hwcap): New global variable.
17633 (ppc_regmap): Remove __SPE__ #ifdef sections.
17634 (ppc_regmap_e500): New global variable.
17635 (ppc_cannot_store_register): Update __SPE__ special case.
17636 (ppc_get_hwcap): New function.
17637 (ppc_arch_setup): Use it to determine whether inferior supports
17638 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17639 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17640 Do not access registers if target does not support AltiVec.
17641 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17642 Do not access registers if target does not support SPE.
17643 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17644
52fa2412
UW
176452008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17646
17647 * linux-low.c (disabled_regsets, num_regsets): New.
17648 (use_regsets_p): Delete.
17649 (linux_wait_for_process): Clear disabled_regsets.
17650 (regsets_fetch_inferior_registers): Check and set it.
17651 (regsets_store_inferior_registers): Likewise.
17652 (linux_fetch_registers, linux_store_registers): Do not use
17653 use_regsets_p.
17654 (initialize_low): Allocate disabled_regsets.
17655
e28b3332
DJ
176562008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17657
17658 * Makefile.in (LIBOBJS): New.
17659 (OBS): Use LIBOBJS.
17660 (memmem.o): New rule.
17661 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17662 * configure: Regenerated.
17663
4536995d
UW
176642008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17665
17666 * server.c (handle_query): Never return "unsupported" for
17667 qXfer:features:read queries.
17668
221c031f
UW
176692008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17670
17671 * server.c (get_features_xml): Fix inverted condition.
17672 (handle_query): Always support qXfer:feature:read.
17673
ccd213ac
DJ
176742008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17675
17676 * server.c (wrapper_argv): New.
17677 (start_inferior): Handle wrapper_argv. If set, expect an extra
17678 trap.
17679 (gdbserver_usage): Document --wrapper.
17680 (main): Parse --wrapper.
17681
6fe305f7
UW
176822008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17683
17684 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17685 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17686 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17687 (ppc_set_pc): Likewise.
17688 (ppc_arch_setup): New function.
17689 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17690 of collect_register.
889bf7c5 17691 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 17692
5b0a002e
UW
176932008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17694
17695 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17696 instead of linux-ppc64-low.o.
17697 * linux-ppc64-low.c: Remove file.
17698 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17699 (linux-ppc64-low.o): Remove rule.
17700
17701 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17702 (init_registers_powerpc_64): Likewise.
17703 (ppc_regmap): Conditionally define depending on __powerpc64__.
17704 (ppc_cannot_store_register): Do not special-case "fpscr" when
17705 compiled on __powerpc64__.
17706 (ppc_collect_ptrace_register): New function.
17707 (ppc_supply_ptrace_register): New function.
17708 (ppc_breakpoint): Change type to "unsigned int".
17709 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17710 (the_low_target): Conditionally provide initializers for the
889bf7c5 17711 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
17712 collect_ptrace_register and supply_ptrace_register members.
17713
9b4b61c8
UW
177142008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17715
17716 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17717 * server.c (gdbserver_xmltarget): Define.
17718 (get_features_xml): Use it to replace "target.xml" and arch_string.
17719
17720 * configure.srv: Remove srv_xmltarget. Add XML files that were
17721 mentioned there to srv_xmlfiles instead. Remove conditional tests
17722 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17723 srv_xmlfiles and srv_regobj to include all possible choices.
17724 * configure.ac (srv_xmltarget): Remove.
17725 (srv_xmlfiles): Do not add "target.xml".
17726 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17727 checks for supplementary target information.
17728 * configure: Regenerate.
17729 * Makefile.in (XML_TARGET): Remove.
17730 (target.xml): Remove rule.
17731 (clean): Do not clean up target.xml.
17732 (.PRECIOUS): Do not mention target.xml.
17733
17734 * target.h (struct target_ops): Remove arch_string member.
17735 * linux-low.c (linux_arch_string): Remove.
17736 (linux_target_ops): Remove arch_string initializer.
17737 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17738 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17739 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17740 * spu-low.c (spu_arch_string): Remove.
17741 (spu_target_ops): Remove arch_string initializer.
17742 * win32-low.c (win32_arch_string): Remove.
17743 (win32_target_ops): Remove arch_string initializer.
17744 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17745 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17746 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17747
ee1a7ae4
UW
177482008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17749
17750 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17751 by collect_ptrace_register and supply_ptrace_register hooks.
17752 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17753 instead of checking for the_low_target.left_pad_xfer.
17754 (usr_store_inferior_registers): Use collect_ptrace_register callback
17755 instead of checking for the_low_target.left_pad_xfer.
17756
17757 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17758 (s390_supply_ptrace_register): Likewise.
17759 (s390_fill_gregset): Call s390_collect_ptrace_register.
17760 (the_low_target): Update.
17761
17762 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17763 (ppc_supply_ptrace_register): Likewise.
17764 (the_low_target): Update.
17765
17766 * linux-i386-low.c (the_low_target): Update.
17767 * linux-x86-64-low.c (the_low_target): Update.
17768
d61ddec4
UW
177692008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17770
17771 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17772 reg-s390.o and reg-s390x.o.
17773
17774 * linux-low.c (new_inferior): New global variable.
17775 (linux_create_inferior, linux_attach): Set it.
17776 (linux_wait_for_process): Call the_low_target.arch_setup after the
17777 target has stopped for the first time.
17778 (initialize_low): Do not call the_low_target.arch_setup.
17779
17780 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17781 (s390_set_pc): Likewise.
17782 (s390_arch_setup): New function.
17783 (the_low_target): Use s390_arch_setup as arch_setup routine.
17784
17785 * regcache.c (realloc_register_cache): New function.
17786 (set_register_cache): Call it for each existing regcache.
17787
d05b4ac3
UW
177882008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17789
17790 * server.h (init_registers): Remove prototype.
17791
17792 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17793 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17794 instead of init_registers ().
17795 * linux-arm-low.c (init_registers_arm): Add prototype.
17796 (init_registers_arm_with_iwmmxt): Likewise.
17797 (the_low_target): Add initializer for arch_setup field.
17798 * linux-cris-low.c (init_registers_cris): Add prototype.
17799 (the_low_target): Add initializer for arch_setup field.
17800 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17801 (the_low_target): Add initializer for arch_setup field.
17802 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17803 (the_low_target): Add initializer for arch_setup field.
17804 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17805 (the_low_target): Add initializer for arch_setup field.
17806 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17807 (the_low_target): Add initializer for arch_setup field.
17808 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17809 (the_low_target): Add initializer for arch_setup field.
17810 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17811 (init_registers_mips64_linux): Likewise.
17812 (the_low_target): Add initializer for arch_setup field.
17813 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17814 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17815 (the_low_target): Add initializer for arch_setup field.
17816 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17817 (init_registers_powerpc_64): Likewise.
17818 (the_low_target): Add initializer for arch_setup field.
17819 * linux-s390-low.c (init_registers_s390): Add prototype.
17820 (init_registers_s390x): Likewise.
17821 (the_low_target): Add initializer for arch_setup field.
17822 * linux-sh-low.c (init_registers_sh): Add prototype.
17823 (the_low_target): Add initializer for arch_setup field.
17824 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17825 (the_low_target): Add initializer for arch_setup field.
17826 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17827 (the_low_target): Add initializer for arch_setup field.
17828
17829 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17830 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17831 instead of init_registers ().
17832 * win32-arm-low.c (init_registers_arm): Add prototype.
17833 (the_low_target): Add initializer for arch_setup field.
17834 * win32-i386-low.c (init_registers_i386): Add prototype.
17835 (the_low_target): Add initializer for arch_setup field.
17836
17837 * spu-low.c (init_registers_spu): Add prototype.
17838 (initialize_low): Call initialie_registers_spu () instead of
17839 initialize_registers ().
17840
fd96d250
PA
178412008-02-19 Pedro Alves <pedro@codesourcery.com>
17842
17843 * server.c (handle_v_requests): When handling the vRun and vAttach
17844 packets, if already debugging a process, don't kill it. Return an
17845 error instead.
17846
d41b6bb4
DJ
178472008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17848
17849 * server.c (handle_query): Correct length check.
17850
5ac588cf
PA
178512008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17852
17853 * win32-low.c (do_initial_child_stuff): Add process handle
17854 parameter. Set current_process_handle and current_process_id from the
17855 parameters. Clear globals.
17856 (win32_create_inferior): Don't set current_process_handle and
17857 current_process_id here. Instead pass them on the call to
17858 do_initial_child_stuff.
17859 (win32_attach): Likewise.
17860 (win32_clear_inferiors): New.
17861 (win32_kill): Don't close the current process handle or the
17862 current thread handle here. Instead call win32_clear_inferiors.
17863 (win32_detach): Don't open a new handle to the process. Call
17864 win32_clear_inferiors.
17865 (win32_join): Don't rely on current_process_handle; open a new
17866 handle using the process id.
17867 (win32_wait): Call win32_clear_inferiors when the inferior process
17868 has exited.
17869
ecd7ecbc
DJ
178702008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17871
17872 * server.c (monitor_show_help): Add "exit".
17873
1525d545
MG
178742008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17875
ecd7ecbc 17876 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
17877 (clean): Add reg-xtensa.c.
17878 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
17879 * configure.srv (xtensa*-*-linux*) New target.
17880 * linux-xtensa-low.c: New.
17881 * xtensa-xtregs.c: New.
1525d545 17882
59a016f0
PA
178832008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17884
17885 * hostio.c: Don't include errno.h.
17886 (errno_to_fileio_errno): Move to hostio-errno.
17887 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17888 error number outputting to the target->hostio_last_error callback.
17889 (hostio_packet_error): Use FILEIO_EINVAL directly.
17890 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17891 calls to hostio_error.
17892 * hostio-errno.c: New.
17893 * server.h (hostio_last_error_from_errno): Declare.
17894 * target.h (target_ops): Add hostio_last_error member.
17895 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17896 as hostio_last_error handler.
889bf7c5 17897 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
17898 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17899 (wince_hostio_last_error): New functions.
17900 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17901 as hostio_last_error handler.
17902 (win32_target_ops) [!_WIN32_WCE]: Register
17903 hostio_last_error_from_errno as hostio_last_error handler.
17904 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17905 (hostio-errno.o): New rule.
17906 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17907 * configure.srv (srv_hostio_err_objs): New variable. Default to
17908 hostio-errno.o.
17909 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17910 * configure: Regenerate.
17911
2d717e4f
DJ
179122008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17913
17914 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17915 (linux_kill, linux_detach): Clean up the process list.
17916 * remote-utils.c (remote_open): Improve port number parsing.
17917 (putpkt_binary, input_interrupt): Only send interrupts if the target
17918 is running.
17919 * server.c (extended_protocol): Make static.
17920 (attached): Define earlier.
17921 (exit_requested, response_needed, program_argv): New variables.
17922 (target_running): New.
17923 (start_inferior): Clear attached here.
17924 (attach_inferior): Set attached here.
17925 (require_running): Define.
17926 (handle_query): Use require_running and target_running. Implement
17927 "monitor exit".
17928 (handle_v_attach, handle_v_run): New.
17929 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17930 (gdbserver_usage): Update.
17931 (main): Redo argument parsing. Handle --debug and --multi. Handle
17932 --attach along with other options or after the port. Save
17933 program_argv. Support no initial program. Resynchronize
17934 communication with GDB after an error. Handle "monitor exit".
17935 Use require_running and target_running. Always allow the extended
17936 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17937 restart in extended mode.
17938 * README: Refer to the GDB manual. Update --attach usage.
17939
7407e2de
AS
179402007-12-20 Andreas Schwab <schwab@suse.de>
17941
17942 * linux-low.c (STACK_SIZE): Define.
17943 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17944 (linux_test_for_tracefork): Likewise.
17945
b65d95c5
DJ
179462007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17947
17948 * linux-low.c (linux_wait_for_event): Update messages. Do not
17949 reinsert auto-delete breakpoints.
17950 * mem-break.c (struct breakpoint): Change return type of handler to
17951 int.
17952 (set_breakpoint_at): Update handler type.
17953 (reinsert_breakpoint_handler): Return 1 instead of calling
17954 delete_breakpoint.
17955 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17956 setting a new one.
17957 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17958 * mem-break.h (set_breakpoint_at): Update handler type.
17959 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17960 * win32-low.c (auto_delete_breakpoint): New.
17961 (get_child_debug_event): Use it.
17962
4e799345
DJ
179632007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17964
17965 * configure.ac: Check for pread and pwrite.
17966 * hostio.c (handle_pread): Fall back to lseek and read.
17967 (handle_pwrite): Fall back to lseek and write.
17968 * config.in, configure: Regenerated.
17969
27524b67
DJ
179702007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17971
17972 * server.c (myresume): Add own_buf argument.
17973 (main): Update calls.
17974
a20d5e98
DJ
179752007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17976
17977 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17978 * remote-utils.c (remote_open): Do not call disable_async_io.
17979 (block_async_io): Delete.
17980 (unblock_async_io): Make static.
17981 (initialize_async_io): New.
17982 * server.c (handle_v_cont): Handle async I/O here.
17983 (myresume): Likewise. Move other common resume tasks here...
17984 (main): ... from here. Call initialize_async_io. Disable async
17985 I/O before the main loop.
17986 * server.h (initialize_async_io): Declare.
17987 (block_async_io, unblock_async_io): Delete prototypes.
17988 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17989
b79d787e
DJ
179902007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17991
17992 * remote-utils.c (readchar): Allow binary data in received messages.
17993
d97903b2
PA
179942007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17995
17996 * win32-low.c (attaching): New global.
17997 (win32_create_inferior): Clear the `attaching' global.
17998 (win32_attach): Set the `attaching' global.
17999 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
18000 attaching. Only set a breakpoint at the entry point if not
18001 attaching.
18002
311de423
PA
180032007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18004
18005 * server.c (main): Don't report dll events on the initial
18006 connection on attaches.
18007
6c2d16d2
PA
180082007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18009
18010 * server.c (main): Relax numerical bases supported for the pid of
18011 the --attach command line argument.
18012
5ca906e6
PA
180132007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18014
18015 * win32-low.c (win32_attach): Call OpenProcess before
18016 DebugActiveProcess, not after. Add last error output to error
18017 call.
18018
9c6c8194
PA
180192007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18020
18021 * win32-low.c (win32_get_thread_context)
18022 (win32_set_thread_context): New functions.
18023 (thread_rec): Use win32_get_thread_context.
18024 (continue_one_thread, win32_resume): Use win32_set_thread_context.
18025 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
18026 field.
18027
4d5d1aaa
PA
180282007-12-03 Leo Zayas
18029 Pedro Alves <pedro_alves@portugalmail.pt>
18030
18031 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18032 global variables.
18033 (child_add_thread): Minor cleanup.
18034 (child_continue): Resume artificially suspended threads before
18035 calling ContinueDebugEvent.
18036 (suspend_one_thread): New.
18037 (fake_breakpoint_event): New.
18038 (get_child_debug_event): Change return type to int. Check here if
18039 gdb sent an interrupt request. If a soft interrupt was requested,
18040 fake a breakpoint event. Return 0 if there is no event to handle,
18041 and 1 otherwise.
18042 (win32_wait): Don't check here if gdb sent an interrupt request.
18043 Ensure there is a valid event to handle.
18044 (win32_request_interrupt): Add soft interruption method as last
18045 resort.
18046
c436e841
PA
180472007-12-03 Leo Zayas
18048 Pedro Alves <pedro_alves@portugalmail.pt>
18049
18050 * win32-low.h (win32_thread_info): Add descriptions to the
18051 structure members. Replace `suspend_count' counter by a
18052 `suspended' flag.
18053 * win32-low.c (thread_rec): Update condition of when to get the
18054 context from the inferior. Rely on ContextFlags being set if it
18055 has already been retrieved. Only suspend the inferior thread if
18056 we haven't already. Warn if that fails.
18057 (continue_one_thread): s/suspend_count/suspended/. Only call
18058 ResumeThread once. Warn if that fails.
18059
e7b5fa67
PA
180602007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18061
18062 * win32-low.c (win32_wait): Don't read from the inferior when it
18063 has already exited.
18064
a385171d
PA
180652007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18066
18067 * Makefile.in (win32_low_h): New variable.
18068 (win32-low.o): Add dependency on $(win32_low_h).
18069 (win32-arm-low.o, win32-i386-low.o): New rules.
18070
f80c84b3
DJ
180712007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18072
18073 * hostio.c: Correct copyright year.
18074
a6b151f1
DJ
180752007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18076
18077 * Makefile.in (OBS): Add hostio.o.
18078 (hostio.o): New rule.
18079 * server.h (handle_vFile): Declare.
18080 * hostio.c: New file.
18081 * server.c (handle_v_requests): Take packet_len and new_packet_len
18082 for binary packets. Call handle_vFile.
18083 (main): Update call to handle_v_requests.
18084
f9387fc3
DJ
180852007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18086
18087 * linux-low.c: Include <sched.h>.
18088
51c2684e
DJ
180892007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18090
18091 * linux-low.c (linux_tracefork_grandchild): New.
18092 (linux_tracefork_child): Use clone.
18093 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18094
75f83163
JB
180952007-10-31 Joel Brobecker <brobecker@adacore.com>
18096
18097 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18098
da5898ce
DJ
180992007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18100
18101 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18102
24a09b5f
DJ
181032007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18104
18105 * inferiors.c (change_inferior_id): Delete.
18106 (add_pid_to_list, pull_pid_from_list): New.
18107 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18108 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18109 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18110 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18111 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18112 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18113 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18114 (using_threads): Always set to 1.
18115 (handle_extended_wait): New.
18116 (add_process): Do not set TID.
18117 (linux_create_inferior): Set must_set_ptrace_flags.
18118 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18119 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18120 (linux_thread_alive): Rename TID argument to LWPID.
18121 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18122 (linux_wait_for_event): Do not use TID or check using_threads. Update
18123 call to dead_thread_notify. Call handle_extended_wait.
18124 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18125 (send_sigstop): Delete sigstop_sent.
18126 (wait_for_sigstop): Avoid TID.
18127 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18128 (linux_test_for_tracefork): New.
18129 (linux_lookup_signals): Use thread_db_active and
18130 linux_supports_tracefork_flag.
18131 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18132 * linux-low.h (get_process_thread): Avoid TID.
18133 (struct process_ifo): Move thread_known and tid to the end. Remove
18134 sigstop_sent.
18135 (linux_attach_lwp, thread_db_init): Update prototypes.
18136 * server.h (change_inferior_id): Delete prototype.
18137 (add_pid_to_list, pull_pid_from_list): New prototypes.
18138 * thread-db.c (thread_db_use_events): New.
18139 (find_first_thread): Rename to...
18140 (find_one_thread): ...this. Update callers and messages. Do not
18141 call fatal. Check thread_db_use_events. Do not call
18142 change_inferior_id or new_thread_notify.
18143 (maybe_attach_thread): Update. Do not call new_thread_notify.
18144 (thread_db_init): Set thread_db_use_events. Check use_events.
18145 * utils.c (fatal, warning): Correct message prefix.
18146
30ed0a8f
DJ
181472007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18148
18149 * Makefile.in (clean): Remove new files.
18150 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18151 (powerpc-64.o, powerpc-64.c): New rules.
18152 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18153 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18154 with SPE.
18155 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18156 SPE targets.
18157 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18158 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18159 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18160 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18161 (target_regsets): Add AltiVec and SPE register sets.
18162 * configure.ac: Check for AltiVec and SPE.
18163 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18164 (ppc_fill_vrregset, ppc_store_vrregset): New.
18165 (target_regsets): Add AltiVec register set.
18166 * configure: Regenerated.
18167
fd462a61
DJ
181682007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18169
18170 * linux-low.c (O_LARGEFILE): Define.
18171 (linux_read_memory): Use /proc/PID/mem.
18172 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18173 * configure, config.in: Regenerated.
18174
69f223ed
DJ
181752007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18176
18177 * linux-low.c (linux_wait_for_event): Do not pass signals while
18178 single-stepping.
18179
aec18585
PA
181802007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18181
18182 * win32-low.c (create_process): New.
18183 (win32_create_inferior): Use create_process instead of
18184 CreateProcess. If create_process failed retry appending an ".exe"
18185 suffix. Store the GetLastError result immediatelly after
18186 create_process calls and use it on the call to error.
18187
34d86ddd
PA
181882007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18189
18190 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18191
5a0e3bd0
JB
181922007-08-23 Joel Brobecker <brobecker@adacore.com>
18193
18194 * configure.ac: Switch license to GPLv3.
18195
f88c79e6
MS
181962007-08-01 Michael Snyder <msnyder@access-company.com>
18197
18198 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18199
6b3d9b83
PA
182002007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18201
18202 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18203 typedef.
18204 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18205 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18206 CloseToolhelp32Snapshot.
18207 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18208 CloseToolhelp32Snapshot.
18209
c588c53c
MS
182102007-07-27 Michael Snyder <michael.snyder@access-company.com>
18211
18212 * server.c (main): Check for inferior exit before main loop.
18213
aa0403d9
PA
182142007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18215
18216 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18217 instead of on tmp_desc.
18218
255e7678
DJ
182192007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18220 Daniel Jacobowitz <dan@codesourcery.com>
18221
18222 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18223 (add_thread): Minor cleanups.
18224 (clear_inferiors): Move lower in the file. Clear the DLL
18225 list.
18226 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18227 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18228 (xml_escape_text): New.
18229 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18230 for qSupported.
18231 (handle_v_cont): Report errors.
18232 (gdbserver_version): Update.
18233 (main): Correct size of own_buf. Do not report initial DLL events.
18234 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18235 (unloaded_dll, xml_escape_text): New.
18236 * win32-low.c (enum target_waitkind): Update comments.
18237 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18238 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18239 (win32_EnumProcessModules, win32_GetModuleInformation)
18240 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18241 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18242 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18243 (win32_Module32First, win32_Module32Next, load_toolhelp)
18244 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18245 (get_child_debug_event): Handle DLL events.
18246 (win32_wait): Likewise.
18247
0d37add9
DJ
182482007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18249
18250 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18251 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18252
45e2715e
PA
182532007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18254
18255 * win32-low.c (handle_output_debug_string): Ignore event if not
18256 waiting.
18257
c5674cf1
PA
182582007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18259
18260 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18261
2bbe3cc1
DJ
182622007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18263
18264 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18265
ae13219e
DJ
182662007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18267
18268 * inferiors.c (change_inferior_id): Add comment.
18269 * linux-low.c (check_removed_breakpoint): Add an early
18270 prototype. Improve debug output.
18271 (linux_attach): Doc update.
18272 (linux_detach_one_process, linux_detach): Clean up before releasing
18273 each process.
18274 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18275 * linux-low.h (struct process_info): Doc improvement.
18276 * mem-break.c (delete_all_breakpoints): New.
18277 * mem-break.h (delete_all_breakpoints): New prototype.
18278 * thread-db.c (find_first_thread): New.
18279 (thread_db_create_event): Call it instead of
18280 thread_db_find_new_threads. Clean up unused variables.
18281 (maybe_attach_thread): Remove first thread handling.
18282 (thread_db_find_new_threads): Use find_first_thread.
18283 (thread_db_get_tls_address): Likewise.
18284
4105de34
DJ
182852007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18286
18287 * thread-db.c (thread_db_find_new_threads): Add prototype.
18288 (thread_db_create_event): Check for the main thread before adding
18289 a new thread.
18290 (maybe_attach_thread): Only enable event reporting if TID == 0.
18291 (thread_db_get_tls_address): Check for new threads.
18292
2b876972
DJ
182932007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18294
18295 * linux-low.c (linux_create_inferior): Try execv before execvp.
18296 * spu-low.c (spu_create_inferior): Likewise.
18297
7a245884
DJ
182982007-06-13 Mike Frysinger <vapier@gentoo.org>
18299
18300 * linux-low.c (linux_create_inferior): Change execv to execvp.
18301 * spu-low.c (spu_create_inferior): Likewies.
18302
117ce543
DJ
183032007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18304
18305 * Makefile.in (clean): Clean new files instead of deleted ones.
18306 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18307 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18308 rules.
18309 * configure.srv: Specify XML files and new regformats for MIPS and
18310 MIPS64 GNU/Linux.
18311 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18312 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18313 an entry for the restart register.
18314 (mips_cannot_fetch_register, mips_cannot_store_register)
18315 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18316 register names to match the XML descriptions.
18317 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18318 restart register instead of $0.
18319
0e7f50da
UW
183202007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18321 Markus Deuling <deuling@de.ibm.com>
18322
18323 * remote-utils.c (decode_xfer_write): New function.
18324 * server.h (decode_xfer_write): Add prototype.
18325 * server.c (handle_query): Add PACKET_LEN argument. Support
18326 qXfer:spu:read and qXfer:spu:write packets.
18327 (main): Pass packet_len to handle_query.
18328 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18329 * target.h (target_ops): Add qxfer_spu.
18330
374c1d38
UW
183312007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18332
18333 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18334 accessing non-seekable spufs files.
18335
bb63802a
UW
183362007-05-16 Markus Deuling <deuling@de.ibm.com>
18337
889bf7c5 18338 * server.c (handle_query): Add reply for qC packet.
bb63802a 18339
7390519e
PA
183402007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18341 Leo Zayas <lerele@champenstudios@com>
18342
18343 * server.h (check_remote_input_interrupt_request): New function.
18344 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18345 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18346 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18347 (check_remote_input_interrupt_request): New function.
18348 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 18349 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
18350 winapi_GenerateConsoleCtrlEvent): New typedefs.
18351 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18352 to 250 ms.
18353 (win32_wait): Check for remote interrupt request
18354 with check_remote_input_interrupt_request.
18355 (win32_request_interrupt): New function.
18356 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18357
34b34921
PA
183582007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18359
18360 * win32-low.c (debug_registers_changed,
18361 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18362 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18363 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18364 (thread_rec): Get context using the low target.
18365 (child_add_thread): Call thread_added on the low target,
18366 which does the same thing.
18367 (regptr): Delete.
18368 (do_initial_child_stuff): Remove debug registers references.
18369 Set context using the low target. Resume threads after
18370 setting the contexts.
18371 (child_continue): Remove dead variable. Remove debug
18372 registers references.
18373 (child_fetch_inferior_registers): Go through the low target.
18374 (do_child_store_inferior_registers): Remove.
18375 (child_store_inferior_registers): Go through the low target.
18376 (win32_resume): Remove debug registers references.
18377 Set context using the low target.
18378 (handle_exception): Change return type to void. Don't record
18379 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18380 first chance exception.
889bf7c5 18381 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
18382 goto loop. Always return after waiting for debug event.
18383 (win32_wait): Convert to switch statement. Handle spurious
18384 events.
18385
18386 * win32-i386-low.c (debug_registers_changed,
18387 debug_registers_used): New.
18388 (initial_stuff): Rename to ...
18389 (i386_initial_stuff): ... this. Clear debug registers
18390 state variables.
18391 (store_debug_registers): Delete.
18392 (i386_get_thread_context): New.
18393 (load_debug_registers): Delete.
18394 (i386_set_thread_context): New.
18395 (i386_thread_added): New.
18396 (single_step): Rename to ...
18397 (i386_single_step): ... this.
18398 (do_fetch_inferior_registers): Rename to ...
18399 (i386_fetch_inferior_register): ... this.
18400 (i386_store_inferior_register): New.
18401 (the_low_target): Adapt to new interface.
18402
18403 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18404 (arm_get_thread_context): New.
18405 (arm_set_thread_context): New.
18406 (regptr): New.
18407 (do_fetch_inferior_registers): Rename to ...
18408 (arm_fetch_inferior_register): ... this.
18409 (arm_store_inferior_register): New.
18410 (arm_wince_breakpoint): Reimplement as unsigned long.
18411 (arm_wince_breakpoint_len): Define.
18412 (the_low_target): Adapt to new interface.
18413
18414 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18415 load_debug_registers. Add get_thread_context, set_thread_context,
18416 thread_added and store_inferior_register. Rename
18417 fetch_inferior_registers to fetch_inferior_register.
18418 (regptr): Remove declaration.
18419
dd6953e1
PA
184202007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18421
18422 * linux-low.c (linux_detach): Change return type to int. Return 0.
18423 * spu-low.c (spu_detach): Likewise.
18424
444d6139
PA
184252007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18426
18427 * target.h (target_ops): Change return type of detach to int.
18428 Add join.
18429 (join_inferior): New.
18430 * server.c (main): Don't skip detach support on mingw32.
18431 If the inferior doesn't support detaching return error.
18432 Call join_inferior instead of using waitpid.
18433 * linux-low.c (linux_join): New.
18434 (linux_target_op): Add linux_join.
18435 * spu-low.c (spu_join): New.
18436 (spu_target_ops): Add spu_join.
18437 * win32-low.c (win32_detach): Adapt to new interface.
18438 Reopen current_process_handle before detaching. Issue a child
18439 resume before detaching.
18440 (win32_join): New.
18441 (win32_target_op): Add win32_join.
18442
1d5315fe
PA
184432007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18444
18445 * win32-low.c (win32-attach): Fix return value.
18446 * target.h (target_ops): Describe ATTACH return values.
18447
bf914831
PA
184482007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18449
18450 * win32-low.c (GETPROCADDRESS): Define.
18451 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18452 (winapi_DebugSetProcessKillOnExit): Likewise.
18453 (win32_create_inferior): Force usage of ansi CreateProcessA.
18454 (win32_attach): Use GETPROCADDRESS.
18455 (win32_detach): Likewise.
18456
f72f3e60
PA
184572007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18458
18459 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18460
ed50f18f
PA
184612007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18462
18463 * win32-low.c: Commit leftover changes from 2007-03-29.
18464
0c2ead7e
DJ
184652007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18466
18467 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18468 fields short instead of int. Add explicit padding.
18469 (i387_cache_to_fsave): Remove unnecessary casts.
18470 (i387_fsave_to_cache): Doc fix.
18471 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18472
73725ff3
DJ
184732007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18474
18475 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18476 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18477
d99f33d8
PA
184782007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18479
18480 * configure.srv (arm*-*-mingw32ce*): Move near the other
18481 arm targets.
18482
68070c10
PA
184832007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18484
2482afc6 18485 * configure.ac: Add errno checking.
68070c10
PA
18486 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18487 sys/file.h and malloc.h.
18488 (AC_CHECK_DECLS): Add perror.
18489 (srv_mingwce): Handle.
2482afc6 18490 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
18491 win32-i386-low.o to srv_tgtobj.
18492 (i[34567]86-*-mingw*): Likewise.
18493 (arm*-*-mingw32ce*): Add case.
18494 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18495 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18496 [__MINGW32CE__] (strerror): New function.
18497 [__MINGW32CE__] (errno): Define to GetLastError.
18498 [__MINGW32CE__] (COUNTOF): New macro.
18499 (remote_open): Remove extra close call.
18500 * mem-break.c (delete_breakpoint_at): New function.
18501 * mem-break.h (delete_breakpoint_at): Declare.
18502 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18503 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18504 [USE_WIN32API] (read, write): Add char* casts.
18505 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18506 * server.h: Include wincecompat.h on Windows CE.
18507 [HAVE_ERRNO_H]: Check.
18508 (perror): Declare if not declared.
18509 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18510 (perror_with_name): Remove errno declaration.
18511 * wincecompat.h: New.
18512 * wincecompat.c: New.
18513 * win32-low.h: New.
18514 * win32-arm-low.c: New.
18515 * win32-i386-low.c: New.
18516 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18517 (OUTMSG2): Make it safe.
18518 (_T): New macro.
18519 (COUNTOF): New macro.
18520 (NUM_REGS): Get it from the low target.
18521 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18522 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18523 (thread_rec): Let low target handle debug registers.
18524 (child_add_thread): Likewise.
18525 (child_init_thread_list): Likewise.
18526 (continue_one_thread): Likewise.
18527 (regptr): New.
18528 (do_child_fetch_inferior_registers): Move to ...
18529 * win32-i386-low.c: ... here, and rename to ...
18530 (do_fetch_inferior_registers): ... this.
889bf7c5 18531 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
18532 Go through the low target.
18533 (do_child_store_inferior_registers): Use regptr.
18534 (strwinerror): New function.
18535 (win32_create_inferior): Handle Windows CE.
18536 Use strwinerror instead of strerror on Windows error
18537 codes. Add program to the error output.
18538 Don't close the main thread handle on Windows CE.
18539 (win32_attach): Use coredll.dll on Windows CE.
18540 (win32_kill): Close current process and current
18541 thread handles.
18542 (win32_detach): Use coredll.dll on Windows CE.
18543 (win32_resume): Let low target handle debug registers, and
18544 step request.
18545 (handle_exception): Add/Remove initial breakpoint. Avoid
18546 non-existant WSTOPSIG on Windows CE.
18547 (win32_read_inferior_memory): Cast to remove warning.
18548 (win32_arch_string): Go through the low target.
18549 (initialize_low): Call set_breakpoint_data with the low
18550 target's breakpoint.
18551 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18552 FOP_REGNUM, mappings): Move to ...
18553 * win32-i386-low.c: ... here.
18554 * win32-low.c (win32_thread_info): Move to ...
18555 * win32-low.h: ... here.
18556 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18557 win32-arm-low.c and wincecompat.c.
18558 (all:): Add $EXEEXT.
18559 (install-only:): Likewise.
18560 (gdbserver:): Likewise.
18561 (gdbreplay:): Likewise.
18562 * config.in: Regenerate.
18563 * configure: Regenerate.
18564
41093d81
PA
185652007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18566
18567 * win32-low.c: Rename typedef thread_info to
18568 win32_thread_info throughout.
18569
544afa54
PA
185702007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18571
18572 * win32-i386-low.c: Rename to ...
18573 * win32-low.c: ... this.
18574 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18575 * Makefile.in: Likewise.
18576
bce7165d
PA
185772007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18578
18579 * remote-utils.c (monitor_output): Constify msg parameter.
18580 * server.h (monitor_output): Likewise.
18581 * win32-i386-low.c (handle_output_debug_string): New.
18582 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18583 handle_output_debug_string.
18584 (get_child_debug_event): Likewise.
18585
506c7aa0
DJ
185862007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18587
18588 * server.c (main): Correct strtoul check.
18589
42c81e2a
DJ
185902007-03-27 Jon Ringle <jon@ringle.org>
18591
18592 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18593
9453113a
DJ
185942007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18595
18596 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18597
64a69107
DJ
185982007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18599
18600 * terminal.h: Check HAVE_SGTTY_H.
18601
186022007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
18603
18604 * remote-utils.c (remote_open): Print out the assigned port number.
18605
c74d0ad8
DJ
186062007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18607
18608 * remote-utils.c (monitor_output): New function.
18609 * server.c (debug_threads): Define here.
18610 (monitor_show_help): New function.
18611 (handle_query): Handle qRcmd.
18612 (main): Do not handle 'd' packet.
18613 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18614 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18615 of debug_threads.
18616
de7c3b4a
PA
186172007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18618
18619 * Makefile.in (EXEEXT): New.
18620 (clean): Use $(EXEEXT).
18621
ef57601b
PA
186222007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18623
18624 * target.h (target_ops): Rename send_signal to request_interrupt,
18625 and remove enum target_signal parameter.
18626 * linux-low.c (linux_request_interrupt): Rename from
18627 linux_send_signal, and always send SIGINT.
18628 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18629 and always send SIGINT.
18630 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18631 of send_signal.
18632 (input_interrupt): Likewise.
18633
820f2bda
PA
186342007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18635
18636 * server.c (get_features_xml): Check if target implemented
18637 arch_string.
18638 * win32-i386-low.c (win32_arch_string): New.
18639 (win32_target_ops): Add win32_arch_string as arch_string member.
18640
ab39bf24
UW
186412007-02-22 Markus Deuling <deuling@de.ibm.com>
18642
18643 * spu-low.c (spu_arch_string): New.
18644 (spu_target_ops): Add spu_arch_string.
18645
61ff6e04
DJ
186462007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18647
18648 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18649 * configure.ac: Do not check for terminal.h.
18650 * configure, config.in: Regenerated.
18651
fb1e4ffc
DJ
186522007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18653
18654 * Makefile.in (OBS): Add $(XML_BUILTIN).
18655 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18656 (clean): Update.
18657 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18658 (arm-with-iwmmxt.c): New.
18659 * config.in, configure: Regenerate.
18660 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18661 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18662 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18663 (arm*-*-linux*): Add iWMMXt and regset support.
18664 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18665 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18666 (arm_store_wmmxregset, target_regsets): New.
18667 * server.c (get_features_xml): Take annex argument. Check builtin
18668 XML documents.
18669 (handle_query): Handle multiple annexes.
18670
0f48aa01
DJ
186712007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18672
18673 * remote-utils.c [USE_WIN32API] (read, write): Define.
18674 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18675 write.
18676
23181151
DJ
186772007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18678
18679 * linux-i386-low.c (the_low_target): Set arch_string.
18680 * linux-x86-64-low.c (the_low_target): Likewise.
18681 * linux-low.c (linux_arch_string): New.
18682 (linux_target_ops): Add it.
18683 * linux-low.h (struct linux_target_ops): Add arch_string.
18684 * server.c (write_qxfer_response): Use const void * for DATA.
18685 (get_features_xml): New.
18686 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18687 * target.h (struct target_ops): Add arch_string method.
18688
9d606399
DJ
186892007-01-03 Denis Pilat <denis.pilat@st.com>
18690 Daniel Jacobowitz <dan@codesourcery.com>
18691
18692 * linux-low.c (linux_kill): Handle being called with no threads.
18693 * win32-i386-low.c (win32_kill): Likewise.
18694 (get_child_debug_event): Clear current_process_handle.
18695
186962006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
18697 Daniel Jacobowitz <dan@codesourcery.com>
18698
18699 * remote-utils.c (remote_open): Check the type of specified
18700 serial port devices before opening them.
18701 * server.c (main): Kill the inferior if an error occurs during
18702 the first remote_open.
18703
a5e13d24
DJ
187042006-12-05 Markus Deuling <deuling@de.ibm.com>
18705
18706 * README: Update supported targets.
18707
186947f7
DJ
187082006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18709
18710 * Makefile.in (clean): Remove reg-mips64.c.
18711 (reg-mips64.c, reg-mips64.o): New rules.
18712 * configure.srv: Handle mips64. Include regset support for mips.
18713 * linux-mips-low.c (union mips_register): New.
18714 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18715 (mips_breakpoint, mips_breakpoint_at): Use int.
18716 (mips_collect_register, mips_supply_register)
18717 (mips_collect_register_32bit, mips_supply_register_32bit)
18718 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18719 (mips_store_fpregset, target_regsets): New.
18720 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18721
a13e2c95
UW
187222006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18723
18724 * configure.srv: Add target "spu*-*-*".
18725 * Makefile.in (clean): Remove reg-spu.c.
18726 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18727 * spu-low.c: New file.
18728
cb7283db
DJ
187292006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18730
18731 * configure.ac: Correct td_thr_tls_get_addr test.
18732 * configure: Regenerated.
18733
89be2091
DJ
187342006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18735
18736 * linux-low.c (linux_wait_for_event): Reformat. Use the
18737 pass_signals array.
18738 * remote-utils.c (decode_address_to_semicolon): New.
18739 * server.c (pass_signals, handle_general_set): New.
18740 (handle_query): Mention QPassSignals for qSupported.
18741 (main): Call handle_general_set.
18742 * server.h (pass_signals, decode_address_to_semicolon): New.
18743
000ef4f0
DJ
187442006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18745
18746 * server.c (handle_query): Correct error handling for read_auxv.
18747
b7149293
UW
187482005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18749
18750 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18751 and srv_linux_thread_db to yes.
18752 * linux-s390-low.c (s390_fill_gregset): New function.
18753 (target_regsets): Define data structure.
18754
dae5f5cf
DJ
187552006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18756
18757 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18758 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18759 * config.in, configure: Regenerated.
18760 * inferiors.c (gdb_id_to_thread): New function.
18761 (gdb_id_to_thread_id): Use it.
18762 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18763 * linux-low.h (struct process_info): Add th member.
18764 (thread_db_get_tls_address): New prototype.
18765 * remote-utils.c (decode_address): Make non-static.
18766 * server.c (handle_query): Handle qGetTLSAddr.
18767 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18768 * target.h (struct target_ops): Add get_tls_address.
18769 * thread-db.c (maybe_attach_thread): Save the thread handle.
18770 (thread_db_get_tls_address): New.
18771
32ca6d61
DJ
187722006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18773
18774 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18775 (linux_resume_one_process): Take a siginfo_t *. Update all
18776 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18777 (struct pending_signals): Add a siginfo_t.
18778 (linux_wait_for_process): Always set last_status.
18779 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18780 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18781 * linux-low.h (struct process_info): Add last_status.
18782
5ffff7c1
DJ
187832006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18784
18785 * remote-utils.c (try_rle): New function.
18786 (putpkt_binary): Use it.
18787
8695c747
DJ
187882006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18789
18790 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18791 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18792 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18793 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18794 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18795 point registers.
18796
290fadea
RS
187972006-08-08 Richard Sandiford <richard@codesourcery.com>
18798
18799 * server.c (terminal_fd): New variable.
18800 (old_foreground_pgrp): Likewise.
18801 (restore_old_foreground_pgrp): New function.
18802 (start_inferior): Record the terminal file descriptor in terminal_fd
18803 and its original foreground group in old_foreground_pgrp. Register
18804 restore_old_foreground_pgrp with atexit().
18805
9f2e1e63
DJ
188062006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18807
18808 * server.c (handle_query): Correct qPart to qXfer.
18809
b80864fb
DJ
188102006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18811
18812 * configure.ac: Check for more headers which are missing on
18813 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18814 * configure.srv: Add Cygwin and mingw32.
18815 * remote-utils.c: Don't include headers unconditionally which
18816 are missing on mingw32. Include <winsock.h> for mingw32.
18817 (remote_open): Adjust for mingw32 support. Flush
18818 standard error after writing to it.
18819 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18820 (unblock_async_io, enable_async_io, disable_async_io)
18821 (readchar, getpkt): Update for Winsock support.
18822 (prepare_resume_reply): Expect a protocol signal number.
18823 * server.c: Disable <sys/wait.h> on mingw32.
18824 (start_inferior): Adjust for mingw32 support. Flush
18825 standard error after writing to it.
18826 (attach_inferior): Likewise. Use protocol signal
18827 numbers.
18828 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18829 and names.
18830 * win32-i386-low.c: New file.
18831 * Makefile.in (XM_CLIBS): Set.
18832 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18833 (win32-i386-low.o): New dependency rule.
18834 * linux-low.c (linux_wait): Use target signal numbers.
18835 * target.h (struct target_ops): Doc fix.
18836 * server.h (target_signal_to_name): New prototype.
18837 * gdbreplay.c: Don't include headers unconditionally which
18838 are missing on mingw32. Include <winsock.h> for mingw32.
18839 (remote_close, remote_open): Adjust for Winsock support.
18840 * configure, config.in: Regenerated.
18841
0876f84a
DJ
188422006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18843
18844 * server.c (decode_xfer_read, write_qxfer_response): New.
18845 (handle_query): Take a packet length argument. Handle
18846 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18847 the qSupported response.
18848 (main): Update call to handle_query.
18849
01f9e8fa
DJ
188502006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18851
18852 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18853 (putpkt_binary): Renamed from putpkt and adjusted for binary
18854 data.
18855 (putpkt): New wrapper for putpkt_binary.
18856 (readchar): Don't mask off the high bit.
18857 (decode_X_packet): New function.
18858 * server.c (main): Call putpkt_binary if a handler sets the packet
18859 length. Save the length of the incoming packet. Handle 'X'.
18860 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18861
be2a5f71
DJ
188622006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18863
18864 * server.c (handle_query): Handle qSupported.
18865
ea025f5f
DJ
188662006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18867
18868 * remote-utils.c (all_symbols_looked_up): New variable.
18869 (look_up_one_symbol): Check it.
18870 * server.h (look_up_one_symbol): New declaration.
18871 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18872
9308fc88
DJ
188732006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18874
18875 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 18876 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
18877 (PTRACE_GET_THREAD_AREA): Define.
18878 (ps_get_thread_area): New function.
18879
52fb6437
NS
188802006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18881
18882 * configure.srv (m68k*-*-uclinux*): New target.
18883 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18884 (linux_resume_one_process): Remove extraneous cast.
18885 (linux_read_offsets): New.
18886 (linux_target_op): Add linux_read_offsets on mmuless systems.
18887 * server.c (handle_query): Add qOffsets logic.
18888 * target.h (struct target_ops): Add read_offsets.
18889
21b0f40c
DJ
188902006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18891
18892 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18893 (PTRACE_GET_THREAD_AREA): Define.
18894 (ps_get_thread_area): New function.
18895 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18896 (linux-x86-64-low.o): Update.
18897
0050a760
DJ
188982006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18899
18900 * configure.ac: Remove checks for prfpregset_t.
18901 * gdb_proc_service.h: New file.
18902 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18903 new "gdb_proc_service.h".
18904 * proc-service.c: Likewise.
18905 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18906 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18907 * Makefile.in (gdb_proc_service_h): Updated.
18908 * configure, config.in: Regenerated.
18909
b92a518e
DJ
189102006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18911
18912 * remote-utils.c (prepare_resume_reply): Move declaration
18913 of gdb_id_from_wait to the top of the block.
18914
545587ee
DJ
189152006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18916
18917 * linux-low.c (regsets_store_inferior_registers): Read the regset
18918 from the target before filling it.
18919
9db87ebd
DJ
189202006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18921
18922 * server.c (attach_inferior): Return SIGTRAP for a successful
18923 attach.
18924
dd24457d
DJ
189252006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18926
18927 * Makefile.in (OBS): Add version.o.
18928 (STAGESTUFF): Delete.
18929 (version.o): Add dependencies.
18930 (version.c): Replace rule.
18931 (clean): Remove version.c.
18932 * server.c (gdbserver_version): New.
18933 (gdbserver_usage): Use printf.
18934 (main): Handle --version and --help.
18935 * server.h (version, host_name): Add declarations.
18936
6f0f660e
EZ
189372005-12-23 Eli Zaretskii <eliz@gnu.org>
18938
889bf7c5
PA
18939 * linux-arm-low.c:
18940 * linux-arm-low.c:
18941 * inferiors.c:
18942 * i387-fp.h:
18943 * i387-fp.c:
18944 * gdbreplay.c:
18945 * regcache.c:
18946 * proc-service.c:
18947 * mem-break.h:
18948 * mem-break.c:
18949 * linux-x86-64-low.c:
18950 * linux-sh-low.c:
18951 * linux-s390-low.c:
18952 * linux-ppc64-low.c:
18953 * linux-ppc-low.c:
18954 * linux-mips-low.c:
18955 * linux-m68k-low.c:
18956 * linux-m32r-low.c:
18957 * linux-low.h:
18958 * linux-low.c:
18959 * linux-ia64-low.c:
18960 * linux-i386-low.c:
18961 * linux-crisv32-low.c:
18962 * thread-db.c:
18963 * terminal.h:
18964 * target.h:
18965 * target.c:
18966 * server.h:
18967 * server.c:
18968 * remote-utils.c:
18969 * regcache.h:
18970 * utils.c:
18971 * Makefile.in:
18972 * configure.ac:
6f0f660e
EZ
18973 * gdbserver.1: Add (C) after Copyright. Update the FSF
18974 address.
18975
9d1fb177
DJ
189762005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18977
18978 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18979 (arm_breakpoint_at): Recognize both breakpoints.
18980 (the_low_target): Use the correct breakpoint instruction.
18981
011a70c2
DJ
189822005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18983
18984 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18985 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18986 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18987 (the_low_target): Update.
18988
7fb85e41
AS
189892005-10-25 Andreas Schwab <schwab@suse.de>
18990
18991 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18992
18993 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18994 (ia64_num_regs): Reduce to 462.
18995
3db0444b
DJ
189962005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18997
18998 * acinclude.m4: Correct quoting.
18999 * aclocal.m4: Regenerated.
19000
19001 Suggested by SZOKOVACS Robert <szo@ies.hu>:
19002 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
19003 (thread_db_init): Call thread_db_err_str.
19004 * configure.ac: Check for TD_VERSION.
19005 * config.in, configure: Regenerated.
19006
bee0189a
DJ
190072005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19008
19009 * server.h (error, fatal, warning): Add ATTR_FORMAT.
19010
e9d25b98
DJ
190112005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19012
19013 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
19014 is not available. Define HAVE_PTRACE_GETREGS if it is.
19015 * config.in, configure: Regenerated.
19016 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
19017 * linux-i386-low.c, linux-m68k-low.c: Update to use
19018 HAVE_PTRACE_GETREGS.
19019 * linux-low.c (regsets_fetch_inferior_registers)
19020 (regsets_store_inferior_registers): Only return 0 if we processed
19021 GENERAL_REGS.
19022 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
19023 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19024
a06660f7
DJ
190252005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19026
19027 * inferiors.c (struct thread_info): Add gdb_id.
19028 (add_thread): Add gdb_id argument.
19029 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19030 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19031 calls to add_thread.
19032 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19033 * server.c (handle_query): Use thread_to_gdb_id.
19034 (handle_v_cont, main): Use gdb_id_to_thread_id.
19035 * server.h (add_thread): Update prototype.
19036 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19037 prototypes.
19038
5a1f5858
DJ
190392005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19040
19041 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19042 left-padded registers.
19043 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19044 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19045
e122f1f5
SE
190462005-07-01 Steve Ellcey <sje@cup.hp.com>
19047
19048 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19049 * configure: Regenerate.
19050 * config.in: Regenerate.
19051 * server.h (NEED_DECLARATION_STRERROR):
19052 Replace with !HAVE_DECL_STRERROR.
19053
d592fa2f
DJ
190542005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19055
19056 * linux-low.c (linux_wait, linux_send_signal): Don't test
19057 an unsigned long variable for > 0 if it could be MAX_ULONG.
19058 * server.c (myresume): Likewise.
19059 * target.c (set_desired_inferior): Likewise.
19060
ccbd4912
MK
190612005-06-13 Mark Kettenis <kettenis@gnu.org>
19062
19063 * configure.ac: Simplify and improve check for socklen_t.
19064 * configure, config.in: Regenerate.
19065
f450004a
DJ
190662005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19067
19068 * acconfig.h: Remove.
19069 * configure.ac: Add a test for socklen_t. Use three-argument
19070 AC_DEFINE throughout.
19071 * config.in: Regenerated using autoheader 2.59.
19072 * configure: Regenerated.
19073
19074 * gdbreplay.c (socklen_t): Provide a default.
19075 (remote_open): Use socklen_t.
19076 * remote-utils.c (socklen_t): Provide a default.
19077 (remote_open): Use socklen_t.
19078 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19079 unsigned char.
19080
19081 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19082 char for buffers.
19083 * linux-low.c (linux_read_memory, linux_write_memory)
19084 (linux_read_auxv): Likewise.
19085 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19086 (check_mem_write): Likewise.
19087 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19088 Likewise.
19089 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19090 (registers_from_string, register_data): Likewise.
19091 * server.c (handle_query, main): Likewise.
19092 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19093 (decode_M_packet): Likewise.
19094 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19095 * target.h (struct target_ops): Update read_memory, write_memory,
19096 and read_auxv.
19097 (read_inferior_memory, write_inferior_memory): Update.
19098 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19099 to unsigned char *.
19100 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19101 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19102 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19103 linux-s390-low.c, linux-sh-low.c: Update for changes in
19104 read_inferior_memory and the_low_target->breakpoint.
19105
eee84df1
DJ
191062005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19107
19108 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19109 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19110 * configure.srv: Add powerpc64-*-linux*.
19111 * linux-ppc64-low.c: New file.
19112
45b134e5
OF
191132005-05-23 Orjan Friberg <orjanf@axis.com>
19114
19115 * linux-cris-low.c: New file with support for CRIS.
19116 * linux-crisv32-low.c: Ditto for CRISv32.
19117 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19118 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 19119 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
19120 reg-crisv32.o, and reg-crisv32.c to make rules.
19121 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19122 recognized targets.
19123
48d93c75
UW
191242005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19125
19126 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19127 of sizeof (PTRACE_XFER_TYPE).
19128 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19129
e013ee27
OF
191302005-05-12 Orjan Friberg <orjanf@axis.com>
19131
889bf7c5 19132 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
19133 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19134 pointers for hardware watchpoint support.
19135 * linux-low.h (struct linux_target_ops): Ditto.
19136 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19137 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19138 to linux_target_ops.
19139 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19140 reply packet.
19141 * server.c (main): Recognize 'Z' and 'z' packets.
19142
b0ded00b
UW
191432005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19144
19145 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19146 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19147 (the_low_target): Add new members.
19148
8643e2ad
DJ
191492005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19150
19151 * proc-service.c (ps_lgetregs): Search all_processes instead of
19152 all_threads.
19153
fc620387
DJ
191542005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19155
19156 * server.c (start_inferior): Change return type to int.
19157 (attach_inferior): Change sigptr to int *.
19158 (handle_v_cont, handle_v_requests): Change signal to int *.
19159 (main): Change signal to int.
19160
191612005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
19162
19163 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19164 * configure.srv: Add m32r*-*-linux*.
19165 * linux-m32r-low.c: New file.
19166
e0e76420
DJ
191672005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19168
19169 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19170
a1928bad
DJ
191712005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19172
19173 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19174 Take unsigned long arguments for PIDs.
19175 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19176 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19177 (wait_for_sigstop, linux_resume_one_process)
19178 (regsets_fetch_inferior_registers, linux_send_signal)
19179 (linux_read_auxv): Likewise. Update the types of variables holding
19180 PIDs. Update format string specifiers.
19181 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19182 * remote-utils.c (prepare_resume_reply): Likewise.
19183 * server.c (cont_thread, general_thread, step_thread)
19184 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19185 unsigned long.
19186 (handle_query): Update format specifiers.
19187 (handle_v_cont, main): Use strtoul for thread IDs.
19188 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19189 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19190 (general_thread, step_thread, thread_from_wait)
19191 (old_thread_from_wait): Update.
19192 * target.h (struct thread_resume): Use unsigned long for THREAD.
19193 (struct target_ops): Use unsigned long for arguments to attach and
19194 thread_alive.
19195
dcdb98d2
DJ
191962005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19197
19198 * acinclude.m4: Include bfd/bfd.m4 directly.
19199 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19200 <agriffis@toolchain.org>.
19201 * aclocal.m4, configure: Regenerated.
19202
bec39cab
AC
192032005-01-07 Andrew Cagney <cagney@gnu.org>
19204
19205 * configure.ac: Rename configure.in, require autoconf 2.59.
19206 * configure: Re-generate.
19207
434c4c77
DJ
192082004-12-08 Daniel Jacobowitz <dan@debian.org>
19209
19210 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19211 LIBS when finished.
19212 * aclocal.m4: Regenerated.
19213 * configure: Regenerated.
19214
db1d3e1b
AS
192152004-11-21 Andreas Schwab <schwab@suse.de>
19216
19217 * linux-m68k-low.c (m68k_num_gregs): Define.
19218 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19219 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19220 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19221 (m68k_breakpoint_at): New. Add to the_low_target.
19222
19223 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19224 srv_linux_thread_db to yes.
19225
43360365
JB
192262004-10-20 Joel Brobecker <brobecker@gnat.com>
19227
19228 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19229 (ARCH_SET_FS): Likewise.
19230 (ARCH_GET_FS): Likewise.
19231 (ARCH_GET_GS): Likewise.
19232
fd500816
DJ
192332004-10-16 Daniel Jacobowitz <dan@debian.org>
19234
19235 * linux-i386-low.c (ps_get_thread_area): New.
19236 * linux-x86-64-low.c (ps_get_thread_area): New.
19237 * linux-low.c: Include <sys/syscall.h>.
19238 (linux_kill_one_process): Don't kill the first thread here.
19239 (linux_kill): Kill the first thread here.
19240 (kill_lwp): New function.
19241 (send_sigstop, linux_send_signal): Use it.
19242 * proc-service.c: Clean up #ifdefs.
19243 (fpregset_info): Delete.
19244 (ps_lgetregs): Update and enable implementation.
19245 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19246 implementations.
19247 * remote-utils.c (struct sym_cache, symbol_cache): New.
19248 (input_interrupt): Print a clearer message.
19249 (async_io_enabled): New variable.
19250 (enable_async_io, disable_async_io): Use it. Update comments.
19251 (look_up_one_symbol): Use the symbol cache.
19252 * thread-db.c (thread_db_look_up_symbols): New function.
19253 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19254
f6de3c42
DJ
192552004-10-16 Daniel Jacobowitz <dan@debian.org>
19256
19257 * configure.in: Test for -rdynamic.
19258 * configure: Regenerated.
19259 * Makefile (INTERNAL_LDFLAGS): New.
19260 (gdbserver, gdbreplay): Use it.
19261
2c0fc042
AC
192622004-09-02 Andrew Cagney <cagney@gnu.org>
19263
19264 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19265
075b3282
DJ
192662004-03-23 Daniel Jacobowitz <drow@mvista.com>
19267
19268 * linux-low.c (linux_wait): Clear all_processes list also.
19269
fa6a77dc
DJ
192702004-03-12 Daniel Jacobowitz <drow@mvista.com>
19271
19272 * linux-low.c: Include <errno.h>. Remove extern declaration of
19273 errno.
19274
6d782a97
DJ
192752004-03-12 Daniel Jacobowitz <drow@mvista.com>
19276
19277 * gdbreplay.c, server.h, utils.c: Update copyright years.
19278
3a7fb99b
DJ
192792004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19280
19281 * server.c (main): Print child status or termination signal from
19282 variable 'signal', not 'sig'.
19283
c3e735a6
DJ
192842004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19285
19286 * linux-low.c (linux_read_memory): Change return type to
19287 int. Check for and return error from ptrace().
19288 * target.c (read_inferior_memory): Change return type to int. Pass
19289 back return status from the_target->read_memory().
19290 * target.h (struct target_ops): Adapt *read_memory() prototype.
19291 Update comment.
19292 (read_inferior_memory): Adapt prototype.
19293 * server.c (main): Return an error packet if
19294 read_inferior_memory() returns an error.
19295
a59d1c82
DJ
192962004-03-04 Daniel Jacobowitz <drow@mvista.com>
19297
19298 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19299 Unify with other clean targets.
19300
dc3f8883
DJ
193012004-02-29 Daniel Jacobowitz <drow@mvista.com>
19302
19303 * server.c (handle_v_cont): Call set_desired_inferior.
19304
89a208da
DJ
193052004-02-29 Daniel Jacobowitz <drow@mvista.com>
19306
19307 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19308
62ea82f5
DJ
193092004-02-29 Daniel Jacobowitz <drow@mvista.com>
19310
19311 * linux-low.c (linux_wait): Unblock async I/O.
19312 (linux_resume): Block and enable async I/O.
19313 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19314 * server.h (block_async_io, unblock_async_io): Add prototypes.
19315
6910d122
DJ
193162004-02-29 Daniel Jacobowitz <drow@mvista.com>
19317
19318 * remote-utils.c (remote_open): Print a status notice after
19319 opening a TCP port.
19320 * server.c (attach_inferior): Print a status notice after
19321 attaching.
19322
193232004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
19324
19325 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19326
c89dc5d4
DJ
193272004-02-26 Daniel Jacobowitz <drow@mvista.com>
19328
19329 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19330 error packet.
19331 * server.c, target.h: Update copyright years.
19332
4b8dad4a
RM
193332004-02-25 Roland McGrath <roland@redhat.com>
19334
19335 * target.h (struct target_ops): New member `read_auxv'.
19336 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19337 * linux-low.c (linux_read_auxv): New function.
19338 (linux_target_ops): Initialize `read_auxv' member to that.
19339
d7446758
JB
193402004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19341
19342 Committed by Jim Blandy <jimb@redhat.com>.
19343
19344 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 19345 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
19346 instead of GPR_SIZE to distiguish s390 and s390x targets.
19347
5544ad89
DJ
193482004-01-31 Daniel Jacobowitz <drow@mvista.com>
19349
19350 * linux-low.c: Update copyright year.
19351 (check_removed_breakpoint): Clear pending_is_breakpoint.
19352 (linux_set_resume_request, linux_queue_one_thread)
19353 (resume_status_pending_p): New functions.
19354 (linux_continue_one_thread): Use process->resume.
19355 (linux_resume): Only resume threads if there are no pending events.
19356 * linux-low.h (struct process_info): Add resume request
19357 pointer.
19358
2a68b70e
DJ
193592004-01-30 Daniel Jacobowitz <drow@mvista.com>
19360
19361 * regcache.c (new_register_cache): Clear the allocated register
19362 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19363
64386c31
DJ
193642003-10-13 Daniel Jacobowitz <drow@mvista.com>
19365
19366 * linux-low.c (linux_resume): Take a struct thread_resume *
19367 argument.
19368 (linux_wait): Update call.
19369 (resume_ptr): New static variable.
19370 (linux_continue_one_thread): Renamed from
19371 linux_continue_one_process. Use resume_ptr.
19372 (linux_resume): Use linux_continue_one_thread.
19373 * server.c (handle_v_cont, handle_v_requests): New functions.
19374 (myresume): New function.
19375 (main): Handle 'v' case.
19376 * target.h (struct thread_resume): New type.
19377 (struct target_ops): Change argument of "resume" to struct
19378 thread_resume *.
19379 (myresume): Delete macro.
19380
c938e9b0
L
193812003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19382
19383 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19384 (uninstall): Support DESTDIR.
19385
7f313d07
BC
19386Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19387
19388 * configure.srv: Add xscale*linux copy of arm*linux entry.
19389
3b2fc2ea
DJ
193902003-07-24 Daniel Jacobowitz <drow@mvista.com>
19391
19392 * linux-arm-low.c (arm_reinsert_addr): New function.
19393 (the_low_target): Add arm_reinsert_addr.
19394
1c0a559e
MK
193952003-07-08 Mark Kettenis <kettenis@gnu.org>
19396
19397 * mem-break.c: Remove whitespace at end of file.
19398
43d5792c
DJ
193992003-06-28 Daniel Jacobowitz <drow@mvista.com>
19400
19401 * configure.in: Check whether we need to prototype strerror.
19402 * server.h: Optionally prototype strerror.
19403 * gdbreplay.c (perror_with_name): Use strerror.
19404 * linux-low.c (linux_attach_lwp): Use strerror.
19405 * utils.c (perror_with_name): Use strerror.
19406 * config.in, configure: Regenerated.
19407
c8a86edf
DJ
194082003-06-28 Daniel Jacobowitz <drow@mvista.com>
19409
19410 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19411 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19412
73d37363
DJ
194132003-06-20 Daniel Jacobowitz <drow@mvista.com>
19414
19415 * Makefile.in (SFILES): Update.
19416 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19417 low-sun3.c: Remove files.
19418
6ad8ae5c
DJ
194192003-06-17 Daniel Jacobowitz <drow@mvista.com>
19420
19421 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19422 (linux_detach_one_process, linux_detach): New functions.
19423 (linux_target_ops): Add linux_detach.
19424 * server.c (main): Handle 'D' packet.
19425 * target.h (struct target_ops): Add "detach" member.
19426 (detach_inferior): Define.
19427
1581182a
MK
194282003-06-13 Mark Kettenis <kettenis@gnu.org>
19429
19430 From Kelley Cook <kelleycook@wideopenwest.com>:
19431 * configure.srv: Accept i[34567]86 variants.
19432
e5379b03
DJ
194332003-06-05 Daniel Jacobowitz <drow@mvista.com>
19434
19435 * linux-low.c (linux_wait_for_event): Correct comment typos.
19436 (linux_resume_one_process): Call check_removed_breakpoint.
19437 (linux_send_signal): New function.
19438 (linux_target_ops): Add linux_send_signal.
19439 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19440 of kill.
19441 * target.h (struct target_ops): Add send_signal.
19442
2ff29de4
JB
194432003-05-29 Jim Blandy <jimb@redhat.com>
19444
19445 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19446 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19447 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19448 away part of the register's value.
19449
254787d4
DJ
194502003-03-26 Daniel Jacobowitz <drow@mvista.com>
19451
19452 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19453 (linux_wait_for_event, linux_init_signals): Likewise.
19454
94e10508
DJ
194552003-03-17 Daniel Jacobowitz <drow@mvista.com>
19456
19457 * configure.in: Check for stdlib.h.
19458 * configure: Regenerated.
19459 * config.in: Regenerated.
19460
4c0711e0
DJ
194612003-01-04 Andreas Schwab <schwab@suse.de>
19462
19463 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19464
ef66e766
AC
194652003-01-02 Andrew Cagney <ac131313@redhat.com>
19466
19467 * Makefile.in: Remove obsolete code.
19468
a1358604
DJ
194692002-11-20 Daniel Jacobowitz <drow@mvista.com>
19470
19471 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19472 defined(PT_FPR0_HI).
19473
23ce3b1c
DJ
194742002-11-17 Stuart Hughes <seh@zee2.com>
19475
19476 * linux-arm-low.c (arm_num_regs): Increase.
19477 (arm_regmap): Include status register.
19478
194792002-11-17 Daniel Jacobowitz <drow@mvista.com>
19480
19481 * linux-low.c (register_addr): Remove incorrect -1 check.
19482
a9fa9f7d
DJ
194832002-08-29 Daniel Jacobowitz <drow@mvista.com>
19484
19485 * linux-low.c (linux_create_inferior): Call setpgid. Return
19486 the new PID.
19487 (unstopped_p, linux_signal_pid): Remove.
19488 (linux_target_ops): Remove linux_signal_pid.
19489 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19490 global instead of target method.
19491 * target.h (struct target_ops): Remove signal_pid. Update comment
19492 for create_inferior.
19493 * server.c (signal_pid): New variable.
19494 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 19495 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
19496 (attach_inferior): Set signal_pid.
19497
17574093
DJ
194982002-08-23 Daniel Jacobowitz <drow@mvista.com>
19499
19500 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19501
195022002-08-20 Jim Blandy <jimb@redhat.com>
19503
19504 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19505 default for this.
19506
195072002-08-01 Andrew Cagney <cagney@redhat.com>
19508
19509 * Makefile.in: Make chill references obsolete.
19510
195112002-07-24 Kevin Buettner <kevinb@redhat.com>
19512
19513 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19514 * configure: Regenerate.
19515 * config.in: Regenerate.
19516
195172002-07-09 David O'Brien <obrien@FreeBSD.org>
19518
19519 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19520 (perror_with_name, remote_close, remote_open, expect, play): Static.
19521
195222002-07-04 Michal Ludvig <mludvig@suse.cz>
19523
4b8dad4a 19524 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
19525 byte offsets instead of an array of indexes.
19526 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19527
195282002-06-13 Daniel Jacobowitz <drow@mvista.com>
19529
19530 * regcache.c: Add comment.
19531
195322002-06-11 Daniel Jacobowitz <drow@mvista.com>
19533
19534 * thread-db.c: New file.
19535 * proc-service.c: New file.
19536 * acinclude.m4: New file.
19537 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19538 proc-service.o, and thread-db.o.
19539 (linux-low.o): Add USE_THREAD_DB.
19540 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19541 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19542 * aclocal.m4: Regenerated.
19543 * config.in: Regenerated.
19544 * configure: Regenerated.
19545 * configure.in: Check for proc_service.h, sys/procfs.h,
19546 thread_db.h, and linux/elf.h headrs.
19547 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19548 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19549 Check for -lthread_db and thread support.
19550 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19551 PowerPC, and SuperH.
19552 * i387-fp.c: Constify arguments.
19553 * i387-fp.h: Likewise.
19554 * inferiors.c: (struct thread_info): Renamed from
19555 `struct inferior_info'. Remove PID member. Use generic inferior
19556 list header. All uses updated.
19557 (inferiors, signal_pid): Removed.
19558 (all_threads): New variable.
19559 (get_thread): Define.
19560 (add_inferior_to_list): New function.
19561 (for_each_inferior): New function.
19562 (change_inferior_id): New function.
19563 (add_inferior): Removed.
19564 (remove_inferior): New function.
19565 (add_thread): New function.
19566 (free_one_thread): New function.
19567 (remove_thread): New function.
19568 (clear_inferiors): Use for_each_inferior and free_one_thread.
19569 (find_inferior): New function.
19570 (find_inferior_id): New function.
19571 (inferior_target_data): Update argument type.
19572 (set_inferior_target_data): Likewise.
19573 (inferior_regcache_data): Likewise.
19574 (set_inferior_regcache_data): Likewise.
19575 * linux-low.c (linux_bp_reinsert): Remove.
19576 (all_processes, stopping_threads, using_thrads)
19577 (struct pending_signals, debug_threads, pid_of): New.
19578 (inferior_pid): Replace with macro.
19579 (struct inferior_linux_data): Remove.
19580 (get_stop_pc, add_process): New functions.
19581 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19582 Use add_process and add_thread.
19583 (linux_attach_lwp): New function, based on old linux_attach. Use
19584 add_process and add_thread. Set stop_expected for new threads.
19585 (linux_attach): New function.
19586 (linux_kill_one_process): New function.
19587 (linux_kill): Kill all LWPs.
19588 (linux_thread_alive): Use find_inferior_id.
19589 (check_removed_breakpoints, status_pending_p): New functions.
19590 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19591 Update. Use WNOHANG. Wait for cloned processes also. Update process
19592 struct for the found process.
19593 (linux_wait_for_event): New function.
19594 (linux_wait): Use it. Support LWPs.
19595 (send_sigstop, wait_for_sigstop, stop_all_processes)
19596 (linux_resume_one_process, linux_continue_one_process): New functions.
19597 (linux_resume): Support LWPs.
19598 (REGISTER_RAW_SIZE): Remove.
19599 (fetch_register): Use register_size instead. Call supply_register.
19600 (usr_store_inferior_registers): Likewise. Call collect_register.
19601 Fix recursive case.
19602 (regsets_fetch_inferior_registers): Improve error message.
19603 (regsets_store_inferior_registers): Add debugging.
19604 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19605 (unstopped_p, linux_signal_pid): New functions.
19606 (linux_target_ops): Add linux_signal_pid.
19607 (linux_init_signals): New function.
19608 (initialize_low): Call it. Initialize using_threads.
19609 * regcache.c (inferior_regcache_data): Add valid
19610 flag.
19611 (get_regcache): Fetch registers lazily. Add fetch argument
19612 and update all callers.
19613 (regcache_invalidate_one, regcache_invalidate): New
19614 functions.
19615 (new_register_cache): Renamed from create_register_cache.
19616 Return the new regcache.
19617 (free_register_cache): Change argument to a void *.
19618 (registers_to_string, registers_from_string): Call get_regcache
19619 with fetch flag set.
19620 (register_data): Make static. Pass fetch flag to get_regcache.
19621 (supply_register): Call get_regcache with fetch flag clear.
19622 (collect_register): Call get_regcache with fetch flag set.
19623 (collect_register_as_string): New function.
19624 * regcache.h: Update.
19625 * remote-utils.c (putpkt): Flush after debug output and use
19626 stderr.
19627 Handle input interrupts while waiting for an ACK.
19628 (input_interrupt): Use signal_pid method.
19629 (getpkt): Flush after debug output and use stderr.
19630 (outreg): Use collect_register_as_string.
19631 (new_thread_notify, dead_thread_notify): New functions.
19632 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19633 and general_thread.
19634 (look_up_one_symbol): Flush after debug output.
19635 * server.c (step_thread, server_waiting): New variables.
19636 (start_inferior): Don't use signal_pid. Update call to mywait.
19637 (attach_inferior): Update call to mywait.
19638 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19639 (main): Don't fetch/store registers explicitly. Use
19640 set_desired_inferior. Support proposed ``Hs'' packet. Update
19641 calls to mywait.
19642 * server.h: Update.
19643 (struct inferior_list, struct_inferior_list_entry): New.
19644 * target.c (set_desired_inferior): New.
19645 (write_inferior_memory): Constify.
19646 (mywait): New function.
19647 * target.h: Update.
19648 (struct target_ops): New signal_pid method.
19649 (mywait): Removed macro, added prototype.
19650
19651 * linux-low.h (regset_func): Removed.
19652 (regset_fill_func, regset_store_func): New.
19653 (enum regset_type): New.
19654 (struct regset_info): Add type field. Use new operation types.
19655 (struct linux_target_ops): stop_pc renamed to get_pc.
19656 Add decr_pc_after_break and breakpoint_at.
19657 (get_process, get_thread_proess, get_process_thread)
19658 (strut process_info, all_processes, linux_attach_lwp)
19659 (thread_db_init): New.
19660
19661 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19662 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19663 (the_low_target): Add new members.
19664 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19665 (i386_store_fpxregset): Constify.
19666 (target_regsets): Add new kind identifier.
19667 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19668 (i386_set_pc): Add debugging.
19669 (i386_breakpoint_at): New function.
19670 (the_low_target): Add new members.
19671 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19672 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19673 (mips_breakpoint_at): New.
19674 (the_low_target): Add new members.
19675 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19676 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19677 (the_low_target): Add new members.
19678 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19679 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19680 (the_low_target): Add new members.
19681 * linux-x86-64-low.c (target_regsets): Add new kind
19682 identifier.
19683
196842002-05-15 Daniel Jacobowitz <drow@mvista.com>
19685
19686 From Martin Pool <mbp@samba.org>:
19687 * server.c (gdbserver_usage): New function.
19688 (main): Call it.
19689
196902002-05-14 Daniel Jacobowitz <drow@mvista.com>
19691
19692 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19693 stop_at -> stop_pc.
19694
196952002-05-04 Andrew Cagney <ac131313@redhat.com>
19696
19697 * Makefile.in: Remove obsolete code.
19698
196992002-04-24 Michal Ludvig <mludvig@suse.cz>
19700
19701 * linux-low.c (regsets_fetch_inferior_registers),
19702 (regsets_store_inferior_registers): Removed cast to int from
19703 ptrace() calls.
19704 * regcache.h: Added declaration of struct inferior_info.
19705
197062002-04-20 Daniel Jacobowitz <drow@mvista.com>
19707
19708 * inferiors.c (struct inferior_info): Add regcache_data.
19709 (add_inferior): Call create_register_cache.
19710 (clear_inferiors): Call free_register_cache.
19711 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19712 * regcache.c (struct inferior_regcache_data): New.
19713 (registers): Remove.
19714 (get_regcache): New function.
19715 (create_register_cache, free_register_cache): New functions.
19716 (set_register_cache): Don't initialize the register cache here.
19717 (registers_to_string, registers_from_string, register_data): Call
19718 get_regcache.
19719 * regcache.h: Add prototypes.
19720 * server.h: Likewise.
19721
197222002-04-20 Daniel Jacobowitz <drow@mvista.com>
19723
19724 * mem-break.c: New file.
19725 * mem-break.h: New file.
19726 * Makefile.in: Add mem-break.o rule; update server.h
19727 dependencies.
19728 * inferiors.c (struct inferior_info): Add target_data
19729 member.
19730 (clear_inferiors): Free target_data member if set.
19731 (inferior_target_data, set_inferior_target_data): New functions.
19732 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19733 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19734 * linux-low.c (linux_bp_reinsert): New variable.
19735 (struct inferior_linux_data): New.
19736 (linux_create_inferior): Use set_inferior_target_data.
19737 (linux_attach): Likewise. Call add_inferior.
19738 (linux_wait_for_one_inferior): New function.
19739 (linux_wait): Call it.
19740 (linux_write_memory): Add const.
19741 (initialize_low): Call set_breakpoint_data.
19742 * linux-low.h (struct linux_target_ops): Add breakpoint
19743 handling members.
19744 * server.c (attach_inferior): Remove extra add_inferior
19745 call.
19746 * server.h: Include mem-break.h. Update inferior.c
19747 prototypes.
19748 * target.c (read_inferior_memory)
19749 (write_inferior_memory): New functions.
19750 * target.h (read_inferior_memory)
19751 (write_inferior_memory): Change macros to prototypes.
19752 (struct target_ops): Update comments. Add const to write_memory
19753 definition.
19754
197552002-04-11 Daniel Jacobowitz <drow@mvista.com>
19756
19757 * linux-low.c (usr_store_inferior_registers): Support
19758 registers which are allowed to fail to store.
19759 * linux-low.h (linux_target_ops): Likewise.
19760 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19761 (ppc_cannot_store_register): FPSCR may not be storable.
19762
197632002-04-09 Daniel Jacobowitz <drow@mvista.com>
19764
19765 * server.h: Include <string.h> if HAVE_STRING_H.
19766 * ChangeLog: Correct paths in last ChangeLog entry.
19767
197682002-04-09 Daniel Jacobowitz <drow@mvista.com>
19769
19770 * linux-low.h: Remove obsolete prototypes.
19771 (struct linux_target_ops): New.
19772 (extern the_low_target): New.
19773 * linux-low.c (num_regs, regmap): Remove declarations.
19774 (register_addr): Use the_low_target explicitly.
19775 (fetch_register): Likewise.
19776 (usr_fetch_inferior_registers): Likewise.
19777 (usr_store_inferior_registers): Likewise.
19778 * linux-arm-low.c (num_regs): Remove.
19779 (arm_num_regs): Define.
19780 (arm_regmap): Renamed from regmap, made static.
19781 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19782 made static.
19783 (arm_cannot_store_register): Renamed from cannot_store_register,
19784 made static.
19785 (the_low_target): New.
19786 * linux-i386-low.c (num_regs): Remove.
19787 (i386_num_regs): Define.
19788 (i386_regmap): Renamed from regmap, made static.
19789 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19790 made static.
19791 (i386_cannot_store_register): Renamed from cannot_store_register,
19792 made static.
19793 (the_low_target): New.
19794 * linux-ia64-low.c (num_regs): Remove.
19795 (ia64_num_regs): Define.
19796 (ia64_regmap): Renamed from regmap, made static.
19797 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19798 made static.
19799 (ia64_cannot_store_register): Renamed from cannot_store_register,
19800 made static.
19801 (the_low_target): New.
19802 * linux-m68k-low.c (num_regs): Remove.
19803 (m68k_num_regs): Define.
19804 (m68k_regmap): Renamed from regmap, made static.
19805 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19806 made static.
19807 (m68k_cannot_store_register): Renamed from cannot_store_register,
19808 made static.
19809 (the_low_target): New.
19810 * linux-mips-low.c (num_regs): Remove.
19811 (mips_num_regs): Define.
19812 (mips_regmap): Renamed from regmap, made static.
19813 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19814 made static.
19815 (mips_cannot_store_register): Renamed from cannot_store_register,
19816 made static.
19817 (the_low_target): New.
19818 * linux-ppc-low.c (num_regs): Remove.
19819 (ppc_num_regs): Define.
19820 (ppc_regmap): Renamed from regmap, made static.
19821 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19822 made static.
19823 (ppc_cannot_store_register): Renamed from cannot_store_register,
19824 made static.
19825 (the_low_target): New.
19826 * linux-s390-low.c (num_regs): Remove.
19827 (s390_num_regs): Define.
19828 (s390_regmap): Renamed from regmap, made static.
19829 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19830 made static.
19831 (s390_cannot_store_register): Renamed from cannot_store_register,
19832 made static.
19833 (the_low_target): New.
19834 * linux-sh-low.c (num_regs): Remove.
19835 (sh_num_regs): Define.
19836 (sh_regmap): Renamed from regmap, made static.
19837 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19838 made static.
19839 (sh_cannot_store_register): Renamed from cannot_store_register,
19840 made static.
19841 (the_low_target): New.
19842 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19843 (the_low_target): New.
19844
198452002-04-09 Daniel Jacobowitz <drow@mvista.com>
19846
19847 * Makefile.in: Add stamp-h target.
19848 * configure.in: Create stamp-h.
19849 * configure: Regenerated.
19850
198512002-04-09 Daniel Jacobowitz <drow@mvista.com>
19852
19853 * inferiors.c: New file.
19854 * target.c: New file.
19855 * target.h: New file.
19856 * Makefile.in: Add target.o and inferiors.o. Update
19857 dependencies.
19858 * linux-low.c (inferior_pid): New static variable,
19859 moved from server.c.
19860 (linux_create_inferior): Renamed from create_inferior.
19861 Call add_inferior. Return 0 on success instead of a PID.
19862 (linux_attach): Renamed from myattach.
19863 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19864 (linux_thread_alive): Renamed from mythread_alive.
19865 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19866 child dies.
19867 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19868 (regsets_store_inferior_registers): Correct error message.
19869 Add missing ``return 0''.
19870 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19871 (linux_store_registers): Renamed from store_inferior_registers.
19872 (linux_read_memory): Renamed from read_inferior_memory.
19873 (linux_write_memory): Renamed from write_inferior_memory.
19874 (linux_target_ops): New structure.
19875 (initialize_low): Call set_target_ops ().
19876 * remote-utils.c (unhexify): New function.
19877 (hexify): New function.
19878 (input_interrupt): Send signals to ``signal_pid''.
19879 * server.c (inferior_pid): Remove.
19880 (start_inferior): Update create_inferior call.
19881 (attach_inferior): Call add_inferior.
19882 (handle_query): New function.
19883 (main): Call handle_query for `q' packets.
19884 * server.h: Include "target.h". Remove obsolete prototypes.
19885 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19886
198872002-04-09 Daniel Jacobowitz <drow@mvista.com>
19888
19889 * Makefile.in: Add WARN_CFLAGS. Update configury
19890 dependencies.
19891 * configure.in: Check for <string.h>
19892 * configure: Regenerate.
19893 * config.in: Regenerate.
19894 * gdbreplay.c: Include needed system headers.
19895 (remote_open): Remove strchr prototype.
19896 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19897 * regcache.c (supply_register): Change buf argument to const void *.
19898 (supply_register_by_name): Likewise.
19899 (collect_register): Change buf argument to void *.
19900 (collect_register_by_name): Likewise.
19901 * regcache.h: Add missing prototypes.
19902 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19903 * server.c (handle_query): New function.
19904 (attached): New static variable, moved out of main.
19905 (main): Quiet longjmp clobber warnings.
19906 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19907 * utils.c (error): Remove NORETURN.
19908 (fatal): Likewise.