1 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
3 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
4 and srv_linux_thread_db to yes.
5 * linux-s390-low.c (s390_fill_gregset): New function.
6 (target_regsets): Define data structure.
8 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
10 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
11 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
12 * config.in, configure: Regenerated.
13 * inferiors.c (gdb_id_to_thread): New function.
14 (gdb_id_to_thread_id): Use it.
15 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
16 * linux-low.h (struct process_info): Add th member.
17 (thread_db_get_tls_address): New prototype.
18 * remote-utils.c (decode_address): Make non-static.
19 * server.c (handle_query): Handle qGetTLSAddr.
20 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21 * target.h (struct target_ops): Add get_tls_address.
22 * thread-db.c (maybe_attach_thread): Save the thread handle.
23 (thread_db_get_tls_address): New.
25 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
27 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
28 (linux_resume_one_process): Take a siginfo_t *. Update all
29 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
30 (struct pending_signals): Add a siginfo_t.
31 (linux_wait_for_process): Always set last_status.
32 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
33 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
34 * linux-low.h (struct process_info): Add last_status.
36 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
38 * remote-utils.c (try_rle): New function.
39 (putpkt_binary): Use it.
41 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
43 * Makefile.in (clean): Clean reg-x86-64-linux.c.
44 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
45 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
46 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
47 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
50 2006-08-08 Richard Sandiford <richard@codesourcery.com>
52 * server.c (terminal_fd): New variable.
53 (old_foreground_pgrp): Likewise.
54 (restore_old_foreground_pgrp): New function.
55 (start_inferior): Record the terminal file descriptor in terminal_fd
56 and its original foreground group in old_foreground_pgrp. Register
57 restore_old_foreground_pgrp with atexit().
59 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
61 * server.c (handle_query): Correct qPart to qXfer.
63 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
65 * configure.ac: Check for more headers which are missing on
66 Windows. Automatically supply -lwsock32 and USE_WIN32API.
67 * configure.srv: Add Cygwin and mingw32.
68 * remote-utils.c: Don't include headers unconditionally which
69 are missing on mingw32. Include <winsock.h> for mingw32.
70 (remote_open): Adjust for mingw32 support. Flush
71 standard error after writing to it.
72 (remote_close, putpkt_binary, input_interrupt, block_async_io)
73 (unblock_async_io, enable_async_io, disable_async_io)
74 (readchar, getpkt): Update for Winsock support.
75 (prepare_resume_reply): Expect a protocol signal number.
76 * server.c: Disable <sys/wait.h> on mingw32.
77 (start_inferior): Adjust for mingw32 support. Flush
78 standard error after writing to it.
79 (attach_inferior): Likewise. Use protocol signal
81 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
83 * win32-i386-low.c: New file.
84 * Makefile.in (XM_CLIBS): Set.
85 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
86 (win32-i386-low.o): New dependency rule.
87 * linux-low.c (linux_wait): Use target signal numbers.
88 * target.h (struct target_ops): Doc fix.
89 * server.h (target_signal_to_name): New prototype.
90 * gdbreplay.c: Don't include headers unconditionally which
91 are missing on mingw32. Include <winsock.h> for mingw32.
92 (remote_close, remote_open): Adjust for Winsock support.
93 * configure, config.in: Regenerated.
95 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
97 * server.c (decode_xfer_read, write_qxfer_response): New.
98 (handle_query): Take a packet length argument. Handle
99 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
100 the qSupported response.
101 (main): Update call to handle_query.
103 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
105 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
106 (putpkt_binary): Renamed from putpkt and adjusted for binary
108 (putpkt): New wrapper for putpkt_binary.
109 (readchar): Don't mask off the high bit.
110 (decode_X_packet): New function.
111 * server.c (main): Call putpkt_binary if a handler sets the packet
112 length. Save the length of the incoming packet. Handle 'X'.
113 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
115 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
117 * server.c (handle_query): Handle qSupported.
119 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
121 * remote-utils.c (all_symbols_looked_up): New variable.
122 (look_up_one_symbol): Check it.
123 * server.h (look_up_one_symbol): New declaration.
124 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
126 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
128 * Makefile.in (linux-arm-low.o): Update dependencies.
129 * linux-arm-low.c: Include "gdb_proc_service.h".
130 (PTRACE_GET_THREAD_AREA): Define.
131 (ps_get_thread_area): New function.
133 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
135 * configure.srv (m68k*-*-uclinux*): New target.
136 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
137 (linux_resume_one_process): Remove extraneous cast.
138 (linux_read_offsets): New.
139 (linux_target_op): Add linux_read_offsets on mmuless systems.
140 * server.c (handle_query): Add qOffsets logic.
141 * target.h (struct target_ops): Add read_offsets.
143 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
145 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
146 (PTRACE_GET_THREAD_AREA): Define.
147 (ps_get_thread_area): New function.
148 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
149 (linux-x86-64-low.o): Update.
151 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
153 * configure.ac: Remove checks for prfpregset_t.
154 * gdb_proc_service.h: New file.
155 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
156 new "gdb_proc_service.h".
157 * proc-service.c: Likewise.
158 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
159 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
160 * Makefile.in (gdb_proc_service_h): Updated.
161 * configure, config.in: Regenerated.
163 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
165 * remote-utils.c (prepare_resume_reply): Move declaration
166 of gdb_id_from_wait to the top of the block.
168 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
170 * linux-low.c (regsets_store_inferior_registers): Read the regset
171 from the target before filling it.
173 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
175 * server.c (attach_inferior): Return SIGTRAP for a successful
178 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
180 * Makefile.in (OBS): Add version.o.
181 (STAGESTUFF): Delete.
182 (version.o): Add dependencies.
183 (version.c): Replace rule.
184 (clean): Remove version.c.
185 * server.c (gdbserver_version): New.
186 (gdbserver_usage): Use printf.
187 (main): Handle --version and --help.
188 * server.h (version, host_name): Add declarations.
190 2005-12-23 Eli Zaretskii <eliz@gnu.org>
202 * linux-x86-64-low.c:
214 * linux-crisv32-low.c:
226 * gdbserver.1: Add (C) after Copyright. Update the FSF
229 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
231 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
232 (arm_breakpoint_at): Recognize both breakpoints.
233 (the_low_target): Use the correct breakpoint instruction.
235 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
237 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
238 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
239 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
240 (the_low_target): Update.
242 2005-10-25 Andreas Schwab <schwab@suse.de>
244 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
246 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
247 (ia64_num_regs): Reduce to 462.
249 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
251 * acinclude.m4: Correct quoting.
252 * aclocal.m4: Regenerated.
254 Suggested by SZOKOVACS Robert <szo@ies.hu>:
255 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
256 (thread_db_init): Call thread_db_err_str.
257 * configure.ac: Check for TD_VERSION.
258 * config.in, configure: Regenerated.
260 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
262 * server.h (error, fatal, warning): Add ATTR_FORMAT.
264 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
266 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
267 is not available. Define HAVE_PTRACE_GETREGS if it is.
268 * config.in, configure: Regenerated.
269 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
270 * linux-i386-low.c, linux-m68k-low.c: Update to use
272 * linux-low.c (regsets_fetch_inferior_registers)
273 (regsets_store_inferior_registers): Only return 0 if we processed
275 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
276 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
278 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
280 * inferiors.c (struct thread_info): Add gdb_id.
281 (add_thread): Add gdb_id argument.
282 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
283 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
285 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
286 * server.c (handle_query): Use thread_to_gdb_id.
287 (handle_v_cont, main): Use gdb_id_to_thread_id.
288 * server.h (add_thread): Update prototype.
289 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
292 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
294 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
295 left-padded registers.
296 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
297 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
299 2005-07-01 Steve Ellcey <sje@cup.hp.com>
301 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
302 * configure: Regenerate.
303 * config.in: Regenerate.
304 * server.h (NEED_DECLARATION_STRERROR):
305 Replace with !HAVE_DECL_STRERROR.
307 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
309 * linux-low.c (linux_wait, linux_send_signal): Don't test
310 an unsigned long variable for > 0 if it could be MAX_ULONG.
311 * server.c (myresume): Likewise.
312 * target.c (set_desired_inferior): Likewise.
314 2005-06-13 Mark Kettenis <kettenis@gnu.org>
316 * configure.ac: Simplify and improve check for socklen_t.
317 * configure, config.in: Regenerate.
319 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
321 * acconfig.h: Remove.
322 * configure.ac: Add a test for socklen_t. Use three-argument
323 AC_DEFINE throughout.
324 * config.in: Regenerated using autoheader 2.59.
325 * configure: Regenerated.
327 * gdbreplay.c (socklen_t): Provide a default.
328 (remote_open): Use socklen_t.
329 * remote-utils.c (socklen_t): Provide a default.
330 (remote_open): Use socklen_t.
331 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
334 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
336 * linux-low.c (linux_read_memory, linux_write_memory)
337 (linux_read_auxv): Likewise.
338 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
339 (check_mem_write): Likewise.
340 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
342 * regcache.c (struct inferior_rgcache_data, registers_to_string)
343 (registers_from_string, register_data): Likewise.
344 * server.c (handle_query, main): Likewise.
345 * server.h (convert_ascii_to_int, convert_int_to_ascii)
346 (decode_M_packet): Likewise.
347 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
348 * target.h (struct target_ops): Update read_memory, write_memory,
350 (read_inferior_memory, write_inferior_memory): Update.
351 * linux-low.h (struct linux_target_ops): Change type of breakpoint
353 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
354 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
355 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
356 linux-s390-low.c, linux-sh-low.c: Update for changes in
357 read_inferior_memory and the_low_target->breakpoint.
359 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
361 * Makefile.in (SFILES): Add linux-ppc64-low.c.
362 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
363 * configure.srv: Add powerpc64-*-linux*.
364 * linux-ppc64-low.c: New file.
366 2005-05-23 Orjan Friberg <orjanf@axis.com>
368 * linux-cris-low.c: New file with support for CRIS.
369 * linux-crisv32-low.c: Ditto for CRISv32.
370 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
371 (clean): Add reg-cris.c and reg-crisv32.c.
372 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
373 reg-crisv32.o, and reg-crisv32.c to make rules.
374 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
377 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
379 * linux-low.c (fetch_register): Ensure buffer size is a multiple
380 of sizeof (PTRACE_XFER_TYPE).
381 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
383 2005-05-12 Orjan Friberg <orjanf@axis.com>
385 * target.h (struct target_ops): Add insert_watchpoint,
386 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
387 pointers for hardware watchpoint support.
388 * linux-low.h (struct linux_target_ops): Ditto.
389 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
390 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
392 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
394 * server.c (main): Recognize 'Z' and 'z' packets.
396 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
398 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
399 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
400 (the_low_target): Add new members.
402 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
404 * proc-service.c (ps_lgetregs): Search all_processes instead of
407 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
409 * server.c (start_inferior): Change return type to int.
410 (attach_inferior): Change sigptr to int *.
411 (handle_v_cont, handle_v_requests): Change signal to int *.
412 (main): Change signal to int.
414 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
416 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
417 * configure.srv: Add m32r*-*-linux*.
418 * linux-m32r-low.c: New file.
420 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
422 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
424 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
426 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
427 Take unsigned long arguments for PIDs.
428 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
429 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
430 (wait_for_sigstop, linux_resume_one_process)
431 (regsets_fetch_inferior_registers, linux_send_signal)
432 (linux_read_auxv): Likewise. Update the types of variables holding
433 PIDs. Update format string specifiers.
434 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
435 * remote-utils.c (prepare_resume_reply): Likewise.
436 * server.c (cont_thread, general_thread, step_thread)
437 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
439 (handle_query): Update format specifiers.
440 (handle_v_cont, main): Use strtoul for thread IDs.
441 * server.h (struct inferior_list_entry): Use unsigned long for ID.
442 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
443 (general_thread, step_thread, thread_from_wait)
444 (old_thread_from_wait): Update.
445 * target.h (struct thread_resume): Use unsigned long for THREAD.
446 (struct target_ops): Use unsigned long for arguments to attach and
449 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
451 * acinclude.m4: Include bfd/bfd.m4 directly.
452 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
453 <agriffis@toolchain.org>.
454 * aclocal.m4, configure: Regenerated.
456 2005-01-07 Andrew Cagney <cagney@gnu.org>
458 * configure.ac: Rename configure.in, require autoconf 2.59.
459 * configure: Re-generate.
461 2004-12-08 Daniel Jacobowitz <dan@debian.org>
463 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
465 * aclocal.m4: Regenerated.
466 * configure: Regenerated.
468 2004-11-21 Andreas Schwab <schwab@suse.de>
470 * linux-m68k-low.c (m68k_num_gregs): Define.
471 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
472 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
473 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
474 (m68k_breakpoint_at): New. Add to the_low_target.
476 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
477 srv_linux_thread_db to yes.
479 2004-10-20 Joel Brobecker <brobecker@gnat.com>
481 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
482 (ARCH_SET_FS): Likewise.
483 (ARCH_GET_FS): Likewise.
484 (ARCH_GET_GS): Likewise.
486 2004-10-16 Daniel Jacobowitz <dan@debian.org>
488 * linux-i386-low.c (ps_get_thread_area): New.
489 * linux-x86-64-low.c (ps_get_thread_area): New.
490 * linux-low.c: Include <sys/syscall.h>.
491 (linux_kill_one_process): Don't kill the first thread here.
492 (linux_kill): Kill the first thread here.
493 (kill_lwp): New function.
494 (send_sigstop, linux_send_signal): Use it.
495 * proc-service.c: Clean up #ifdefs.
496 (fpregset_info): Delete.
497 (ps_lgetregs): Update and enable implementation.
498 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
500 * remote-utils.c (struct sym_cache, symbol_cache): New.
501 (input_interrupt): Print a clearer message.
502 (async_io_enabled): New variable.
503 (enable_async_io, disable_async_io): Use it. Update comments.
504 (look_up_one_symbol): Use the symbol cache.
505 * thread-db.c (thread_db_look_up_symbols): New function.
506 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
508 2004-10-16 Daniel Jacobowitz <dan@debian.org>
510 * configure.in: Test for -rdynamic.
511 * configure: Regenerated.
512 * Makefile (INTERNAL_LDFLAGS): New.
513 (gdbserver, gdbreplay): Use it.
515 2004-09-02 Andrew Cagney <cagney@gnu.org>
517 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
519 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
521 * linux-low.c (linux_wait): Clear all_processes list also.
523 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
525 * linux-low.c: Include <errno.h>. Remove extern declaration of
528 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
530 * gdbreplay.c, server.h, utils.c: Update copyright years.
532 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
534 * server.c (main): Print child status or termination signal from
535 variable 'signal', not 'sig'.
537 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
539 * linux-low.c (linux_read_memory): Change return type to
540 int. Check for and return error from ptrace().
541 * target.c (read_inferior_memory): Change return type to int. Pass
542 back return status from the_target->read_memory().
543 * target.h (struct target_ops): Adapt *read_memory() prototype.
545 (read_inferior_memory): Adapt prototype.
546 * server.c (main): Return an error packet if
547 read_inferior_memory() returns an error.
549 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
551 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
552 Unify with other clean targets.
554 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
556 * server.c (handle_v_cont): Call set_desired_inferior.
558 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
560 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
562 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
564 * linux-low.c (linux_wait): Unblock async I/O.
565 (linux_resume): Block and enable async I/O.
566 * remote-utils.c (block_async_io, unblock_async_io): New functions.
567 * server.h (block_async_io, unblock_async_io): Add prototypes.
569 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
571 * remote-utils.c (remote_open): Print a status notice after
573 * server.c (attach_inferior): Print a status notice after
576 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
578 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
580 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
582 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
584 * server.c, target.h: Update copyright years.
586 2004-02-25 Roland McGrath <roland@redhat.com>
588 * target.h (struct target_ops): New member `read_auxv'.
589 * server.c (handle_query): Handle qPart:auxv:read: query using that.
590 * linux-low.c (linux_read_auxv): New function.
591 (linux_target_ops): Initialize `read_auxv' member to that.
593 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
595 Committed by Jim Blandy <jimb@redhat.com>.
597 * linux-s390-low.c (s390_num_regs): Update.
598 (s390_regmap): Remove control registers. Use __s390x__ predefine
599 instead of GPR_SIZE to distiguish s390 and s390x targets.
601 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
603 * linux-low.c: Update copyright year.
604 (check_removed_breakpoint): Clear pending_is_breakpoint.
605 (linux_set_resume_request, linux_queue_one_thread)
606 (resume_status_pending_p): New functions.
607 (linux_continue_one_thread): Use process->resume.
608 (linux_resume): Only resume threads if there are no pending events.
609 * linux-low.h (struct process_info): Add resume request
612 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
614 * regcache.c (new_register_cache): Clear the allocated register
615 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
617 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
619 * linux-low.c (linux_resume): Take a struct thread_resume *
621 (linux_wait): Update call.
622 (resume_ptr): New static variable.
623 (linux_continue_one_thread): Renamed from
624 linux_continue_one_process. Use resume_ptr.
625 (linux_resume): Use linux_continue_one_thread.
626 * server.c (handle_v_cont, handle_v_requests): New functions.
627 (myresume): New function.
628 (main): Handle 'v' case.
629 * target.h (struct thread_resume): New type.
630 (struct target_ops): Change argument of "resume" to struct
632 (myresume): Delete macro.
634 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
636 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
637 (uninstall): Support DESTDIR.
639 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
641 * configure.srv: Add xscale*linux copy of arm*linux entry.
643 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
645 * linux-arm-low.c (arm_reinsert_addr): New function.
646 (the_low_target): Add arm_reinsert_addr.
648 2003-07-08 Mark Kettenis <kettenis@gnu.org>
650 * mem-break.c: Remove whitespace at end of file.
652 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
654 * configure.in: Check whether we need to prototype strerror.
655 * server.h: Optionally prototype strerror.
656 * gdbreplay.c (perror_with_name): Use strerror.
657 * linux-low.c (linux_attach_lwp): Use strerror.
658 * utils.c (perror_with_name): Use strerror.
659 * config.in, configure: Regenerated.
661 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
663 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
664 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
666 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
668 * Makefile.in (SFILES): Update.
669 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
670 low-sun3.c: Remove files.
672 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
674 * linux-low.c: Move comment to linux_thread_alive where it belonged.
675 (linux_detach_one_process, linux_detach): New functions.
676 (linux_target_ops): Add linux_detach.
677 * server.c (main): Handle 'D' packet.
678 * target.h (struct target_ops): Add "detach" member.
679 (detach_inferior): Define.
681 2003-06-13 Mark Kettenis <kettenis@gnu.org>
683 From Kelley Cook <kelleycook@wideopenwest.com>:
684 * configure.srv: Accept i[34567]86 variants.
686 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
688 * linux-low.c (linux_wait_for_event): Correct comment typos.
689 (linux_resume_one_process): Call check_removed_breakpoint.
690 (linux_send_signal): New function.
691 (linux_target_ops): Add linux_send_signal.
692 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
694 * target.h (struct target_ops): Add send_signal.
696 2003-05-29 Jim Blandy <jimb@redhat.com>
698 * linux-low.c (usr_store_inferior_registers): Transfer buf in
699 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
700 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
701 away part of the register's value.
703 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
705 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
706 (linux_wait_for_event, linux_init_signals): Likewise.
708 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
710 * configure.in: Check for stdlib.h.
711 * configure: Regenerated.
712 * config.in: Regenerated.
714 2003-01-04 Andreas Schwab <schwab@suse.de>
716 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
718 2003-01-02 Andrew Cagney <ac131313@redhat.com>
720 * Makefile.in: Remove obsolete code.
722 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
724 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
727 2002-11-17 Stuart Hughes <seh@zee2.com>
729 * linux-arm-low.c (arm_num_regs): Increase.
730 (arm_regmap): Include status register.
732 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
734 * linux-low.c (register_addr): Remove incorrect -1 check.
736 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
738 * linux-low.c (linux_create_inferior): Call setpgid. Return
740 (unstopped_p, linux_signal_pid): Remove.
741 (linux_target_ops): Remove linux_signal_pid.
742 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
743 global instead of target method.
744 * target.h (struct target_ops): Remove signal_pid. Update comment
746 * server.c (signal_pid): New variable.
747 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
748 gdbserver. Set the child to be the foreground process group.
749 (attach_inferior): Set signal_pid.
751 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
753 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
755 2002-08-20 Jim Blandy <jimb@redhat.com>
757 * Makefile.in (LDFLAGS): Allow the configure script to establish a
760 2002-08-01 Andrew Cagney <cagney@redhat.com>
762 * Makefile.in: Make chill references obsolete.
764 2002-07-24 Kevin Buettner <kevinb@redhat.com>
766 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
767 * configure: Regenerate.
768 * config.in: Regenerate.
770 2002-07-09 David O'Brien <obrien@FreeBSD.org>
772 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
773 (perror_with_name, remote_close, remote_open, expect, play): Static.
775 2002-07-04 Michal Ludvig <mludvig@suse.cz>
777 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
778 byte offsets instead of an array of indexes.
779 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
781 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
783 * regcache.c: Add comment.
785 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
787 * thread-db.c: New file.
788 * proc-service.c: New file.
789 * acinclude.m4: New file.
790 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
791 proc-service.o, and thread-db.o.
792 (linux-low.o): Add USE_THREAD_DB.
793 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
794 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
795 * aclocal.m4: Regenerated.
796 * config.in: Regenerated.
797 * configure: Regenerated.
798 * configure.in: Check for proc_service.h, sys/procfs.h,
799 thread_db.h, and linux/elf.h headrs.
800 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
801 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
802 Check for -lthread_db and thread support.
803 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
805 * i387-fp.c: Constify arguments.
806 * i387-fp.h: Likewise.
807 * inferiors.c: (struct thread_info): Renamed from
808 `struct inferior_info'. Remove PID member. Use generic inferior
809 list header. All uses updated.
810 (inferiors, signal_pid): Removed.
811 (all_threads): New variable.
812 (get_thread): Define.
813 (add_inferior_to_list): New function.
814 (for_each_inferior): New function.
815 (change_inferior_id): New function.
816 (add_inferior): Removed.
817 (remove_inferior): New function.
818 (add_thread): New function.
819 (free_one_thread): New function.
820 (remove_thread): New function.
821 (clear_inferiors): Use for_each_inferior and free_one_thread.
822 (find_inferior): New function.
823 (find_inferior_id): New function.
824 (inferior_target_data): Update argument type.
825 (set_inferior_target_data): Likewise.
826 (inferior_regcache_data): Likewise.
827 (set_inferior_regcache_data): Likewise.
828 * linux-low.c (linux_bp_reinsert): Remove.
829 (all_processes, stopping_threads, using_thrads)
830 (struct pending_signals, debug_threads, pid_of): New.
831 (inferior_pid): Replace with macro.
832 (struct inferior_linux_data): Remove.
833 (get_stop_pc, add_process): New functions.
834 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
835 Use add_process and add_thread.
836 (linux_attach_lwp): New function, based on old linux_attach. Use
837 add_process and add_thread. Set stop_expected for new threads.
838 (linux_attach): New function.
839 (linux_kill_one_process): New function.
840 (linux_kill): Kill all LWPs.
841 (linux_thread_alive): Use find_inferior_id.
842 (check_removed_breakpoints, status_pending_p): New functions.
843 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
844 Update. Use WNOHANG. Wait for cloned processes also. Update process
845 struct for the found process.
846 (linux_wait_for_event): New function.
847 (linux_wait): Use it. Support LWPs.
848 (send_sigstop, wait_for_sigstop, stop_all_processes)
849 (linux_resume_one_process, linux_continue_one_process): New functions.
850 (linux_resume): Support LWPs.
851 (REGISTER_RAW_SIZE): Remove.
852 (fetch_register): Use register_size instead. Call supply_register.
853 (usr_store_inferior_registers): Likewise. Call collect_register.
855 (regsets_fetch_inferior_registers): Improve error message.
856 (regsets_store_inferior_registers): Add debugging.
857 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
858 (unstopped_p, linux_signal_pid): New functions.
859 (linux_target_ops): Add linux_signal_pid.
860 (linux_init_signals): New function.
861 (initialize_low): Call it. Initialize using_threads.
862 * regcache.c (inferior_regcache_data): Add valid
864 (get_regcache): Fetch registers lazily. Add fetch argument
865 and update all callers.
866 (regcache_invalidate_one, regcache_invalidate): New
868 (new_register_cache): Renamed from create_register_cache.
869 Return the new regcache.
870 (free_register_cache): Change argument to a void *.
871 (registers_to_string, registers_from_string): Call get_regcache
873 (register_data): Make static. Pass fetch flag to get_regcache.
874 (supply_register): Call get_regcache with fetch flag clear.
875 (collect_register): Call get_regcache with fetch flag set.
876 (collect_register_as_string): New function.
877 * regcache.h: Update.
878 * remote-utils.c (putpkt): Flush after debug output and use
880 Handle input interrupts while waiting for an ACK.
881 (input_interrupt): Use signal_pid method.
882 (getpkt): Flush after debug output and use stderr.
883 (outreg): Use collect_register_as_string.
884 (new_thread_notify, dead_thread_notify): New functions.
885 (prepare_resume_reply): Check using_threads. Set thread_from_wait
887 (look_up_one_symbol): Flush after debug output.
888 * server.c (step_thread, server_waiting): New variables.
889 (start_inferior): Don't use signal_pid. Update call to mywait.
890 (attach_inferior): Update call to mywait.
891 (handle_query): Handle qfThreadInfo and qsThreadInfo.
892 (main): Don't fetch/store registers explicitly. Use
893 set_desired_inferior. Support proposed ``Hs'' packet. Update
896 (struct inferior_list, struct_inferior_list_entry): New.
897 * target.c (set_desired_inferior): New.
898 (write_inferior_memory): Constify.
899 (mywait): New function.
901 (struct target_ops): New signal_pid method.
902 (mywait): Removed macro, added prototype.
904 * linux-low.h (regset_func): Removed.
905 (regset_fill_func, regset_store_func): New.
906 (enum regset_type): New.
907 (struct regset_info): Add type field. Use new operation types.
908 (struct linux_target_ops): stop_pc renamed to get_pc.
909 Add decr_pc_after_break and breakpoint_at.
910 (get_process, get_thread_proess, get_process_thread)
911 (strut process_info, all_processes, linux_attach_lwp)
912 (thread_db_init): New.
914 * linux-arm-low.c (arm_get_pc, arm_set_pc,
915 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
916 (the_low_target): Add new members.
917 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
918 (i386_store_fpxregset): Constify.
919 (target_regsets): Add new kind identifier.
920 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
921 (i386_set_pc): Add debugging.
922 (i386_breakpoint_at): New function.
923 (the_low_target): Add new members.
924 * linux-mips-low.c (mips_get_pc, mips_set_pc)
925 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
926 (mips_breakpoint_at): New.
927 (the_low_target): Add new members.
928 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
929 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
930 (the_low_target): Add new members.
931 * linux-sh-low.c (sh_get_pc, sh_set_pc)
932 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
933 (the_low_target): Add new members.
934 * linux-x86-64-low.c (target_regsets): Add new kind
937 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
939 From Martin Pool <mbp@samba.org>:
940 * server.c (gdbserver_usage): New function.
943 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
945 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
948 2002-05-04 Andrew Cagney <ac131313@redhat.com>
950 * Makefile.in: Remove obsolete code.
952 2002-04-24 Michal Ludvig <mludvig@suse.cz>
954 * linux-low.c (regsets_fetch_inferior_registers),
955 (regsets_store_inferior_registers): Removed cast to int from
957 * regcache.h: Added declaration of struct inferior_info.
959 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
961 * inferiors.c (struct inferior_info): Add regcache_data.
962 (add_inferior): Call create_register_cache.
963 (clear_inferiors): Call free_register_cache.
964 (inferior_regcache_data, set_inferior_regcache_data): New functions.
965 * regcache.c (struct inferior_regcache_data): New.
967 (get_regcache): New function.
968 (create_register_cache, free_register_cache): New functions.
969 (set_register_cache): Don't initialize the register cache here.
970 (registers_to_string, registers_from_string, register_data): Call
972 * regcache.h: Add prototypes.
973 * server.h: Likewise.
975 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
977 * mem-break.c: New file.
978 * mem-break.h: New file.
979 * Makefile.in: Add mem-break.o rule; update server.h
981 * inferiors.c (struct inferior_info): Add target_data
983 (clear_inferiors): Free target_data member if set.
984 (inferior_target_data, set_inferior_target_data): New functions.
985 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
986 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
987 * linux-low.c (linux_bp_reinsert): New variable.
988 (struct inferior_linux_data): New.
989 (linux_create_inferior): Use set_inferior_target_data.
990 (linux_attach): Likewise. Call add_inferior.
991 (linux_wait_for_one_inferior): New function.
992 (linux_wait): Call it.
993 (linux_write_memory): Add const.
994 (initialize_low): Call set_breakpoint_data.
995 * linux-low.h (struct linux_target_ops): Add breakpoint
997 * server.c (attach_inferior): Remove extra add_inferior
999 * server.h: Include mem-break.h. Update inferior.c
1001 * target.c (read_inferior_memory)
1002 (write_inferior_memory): New functions.
1003 * target.h (read_inferior_memory)
1004 (write_inferior_memory): Change macros to prototypes.
1005 (struct target_ops): Update comments. Add const to write_memory
1008 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1010 * linux-low.c (usr_store_inferior_registers): Support
1011 registers which are allowed to fail to store.
1012 * linux-low.h (linux_target_ops): Likewise.
1013 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
1014 (ppc_cannot_store_register): FPSCR may not be storable.
1016 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1018 * server.h: Include <string.h> if HAVE_STRING_H.
1019 * ChangeLog: Correct paths in last ChangeLog entry.
1021 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1023 * linux-low.h: Remove obsolete prototypes.
1024 (struct linux_target_ops): New.
1025 (extern the_low_target): New.
1026 * linux-low.c (num_regs, regmap): Remove declarations.
1027 (register_addr): Use the_low_target explicitly.
1028 (fetch_register): Likewise.
1029 (usr_fetch_inferior_registers): Likewise.
1030 (usr_store_inferior_registers): Likewise.
1031 * linux-arm-low.c (num_regs): Remove.
1032 (arm_num_regs): Define.
1033 (arm_regmap): Renamed from regmap, made static.
1034 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1036 (arm_cannot_store_register): Renamed from cannot_store_register,
1038 (the_low_target): New.
1039 * linux-i386-low.c (num_regs): Remove.
1040 (i386_num_regs): Define.
1041 (i386_regmap): Renamed from regmap, made static.
1042 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1044 (i386_cannot_store_register): Renamed from cannot_store_register,
1046 (the_low_target): New.
1047 * linux-ia64-low.c (num_regs): Remove.
1048 (ia64_num_regs): Define.
1049 (ia64_regmap): Renamed from regmap, made static.
1050 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1052 (ia64_cannot_store_register): Renamed from cannot_store_register,
1054 (the_low_target): New.
1055 * linux-m68k-low.c (num_regs): Remove.
1056 (m68k_num_regs): Define.
1057 (m68k_regmap): Renamed from regmap, made static.
1058 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1060 (m68k_cannot_store_register): Renamed from cannot_store_register,
1062 (the_low_target): New.
1063 * linux-mips-low.c (num_regs): Remove.
1064 (mips_num_regs): Define.
1065 (mips_regmap): Renamed from regmap, made static.
1066 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1068 (mips_cannot_store_register): Renamed from cannot_store_register,
1070 (the_low_target): New.
1071 * linux-ppc-low.c (num_regs): Remove.
1072 (ppc_num_regs): Define.
1073 (ppc_regmap): Renamed from regmap, made static.
1074 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1076 (ppc_cannot_store_register): Renamed from cannot_store_register,
1078 (the_low_target): New.
1079 * linux-s390-low.c (num_regs): Remove.
1080 (s390_num_regs): Define.
1081 (s390_regmap): Renamed from regmap, made static.
1082 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1084 (s390_cannot_store_register): Renamed from cannot_store_register,
1086 (the_low_target): New.
1087 * linux-sh-low.c (num_regs): Remove.
1088 (sh_num_regs): Define.
1089 (sh_regmap): Renamed from regmap, made static.
1090 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1092 (sh_cannot_store_register): Renamed from cannot_store_register,
1094 (the_low_target): New.
1095 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1096 (the_low_target): New.
1098 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1100 * Makefile.in: Add stamp-h target.
1101 * configure.in: Create stamp-h.
1102 * configure: Regenerated.
1104 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1106 * inferiors.c: New file.
1107 * target.c: New file.
1108 * target.h: New file.
1109 * Makefile.in: Add target.o and inferiors.o. Update
1111 * linux-low.c (inferior_pid): New static variable,
1112 moved from server.c.
1113 (linux_create_inferior): Renamed from create_inferior.
1114 Call add_inferior. Return 0 on success instead of a PID.
1115 (linux_attach): Renamed from myattach.
1116 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1117 (linux_thread_alive): Renamed from mythread_alive.
1118 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1120 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1121 (regsets_store_inferior_registers): Correct error message.
1122 Add missing ``return 0''.
1123 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1124 (linux_store_registers): Renamed from store_inferior_registers.
1125 (linux_read_memory): Renamed from read_inferior_memory.
1126 (linux_write_memory): Renamed from write_inferior_memory.
1127 (linux_target_ops): New structure.
1128 (initialize_low): Call set_target_ops ().
1129 * remote-utils.c (unhexify): New function.
1130 (hexify): New function.
1131 (input_interrupt): Send signals to ``signal_pid''.
1132 * server.c (inferior_pid): Remove.
1133 (start_inferior): Update create_inferior call.
1134 (attach_inferior): Call add_inferior.
1135 (handle_query): New function.
1136 (main): Call handle_query for `q' packets.
1137 * server.h: Include "target.h". Remove obsolete prototypes.
1138 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1140 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1142 * Makefile.in: Add WARN_CFLAGS. Update configury
1144 * configure.in: Check for <string.h>
1145 * configure: Regenerate.
1146 * config.in: Regenerate.
1147 * gdbreplay.c: Include needed system headers.
1148 (remote_open): Remove strchr prototype.
1149 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1150 * regcache.c (supply_register): Change buf argument to const void *.
1151 (supply_register_by_name): Likewise.
1152 (collect_register): Change buf argument to void *.
1153 (collect_register_by_name): Likewise.
1154 * regcache.h: Add missing prototypes.
1155 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1156 * server.c (handle_query): New function.
1157 (attached): New static variable, moved out of main.
1158 (main): Quiet longjmp clobber warnings.
1159 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1160 * utils.c (error): Remove NORETURN.