1 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
3 * server.c (handle_query): Correct qPart to qXfer.
5 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
7 * configure.ac: Check for more headers which are missing on
8 Windows. Automatically supply -lwsock32 and USE_WIN32API.
9 * configure.srv: Add Cygwin and mingw32.
10 * remote-utils.c: Don't include headers unconditionally which
11 are missing on mingw32. Include <winsock.h> for mingw32.
12 (remote_open): Adjust for mingw32 support. Flush
13 standard error after writing to it.
14 (remote_close, putpkt_binary, input_interrupt, block_async_io)
15 (unblock_async_io, enable_async_io, disable_async_io)
16 (readchar, getpkt): Update for Winsock support.
17 (prepare_resume_reply): Expect a protocol signal number.
18 * server.c: Disable <sys/wait.h> on mingw32.
19 (start_inferior): Adjust for mingw32 support. Flush
20 standard error after writing to it.
21 (attach_inferior): Likewise. Use protocol signal
23 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
25 * win32-i386-low.c: New file.
26 * Makefile.in (XM_CLIBS): Set.
27 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
28 (win32-i386-low.o): New dependency rule.
29 * linux-low.c (linux_wait): Use target signal numbers.
30 * target.h (struct target_ops): Doc fix.
31 * server.h (target_signal_to_name): New prototype.
32 * gdbreplay.c: Don't include headers unconditionally which
33 are missing on mingw32. Include <winsock.h> for mingw32.
34 (remote_close, remote_open): Adjust for Winsock support.
35 * configure, config.in: Regenerated.
37 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
39 * server.c (decode_xfer_read, write_qxfer_response): New.
40 (handle_query): Take a packet length argument. Handle
41 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
42 the qSupported response.
43 (main): Update call to handle_query.
45 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
47 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
48 (putpkt_binary): Renamed from putpkt and adjusted for binary
50 (putpkt): New wrapper for putpkt_binary.
51 (readchar): Don't mask off the high bit.
52 (decode_X_packet): New function.
53 * server.c (main): Call putpkt_binary if a handler sets the packet
54 length. Save the length of the incoming packet. Handle 'X'.
55 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
57 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
59 * server.c (handle_query): Handle qSupported.
61 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
63 * remote-utils.c (all_symbols_looked_up): New variable.
64 (look_up_one_symbol): Check it.
65 * server.h (look_up_one_symbol): New declaration.
66 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
68 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
70 * Makefile.in (linux-arm-low.o): Update dependencies.
71 * linux-arm-low.c: Include "gdb_proc_service.h".
72 (PTRACE_GET_THREAD_AREA): Define.
73 (ps_get_thread_area): New function.
75 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
77 * configure.srv (m68k*-*-uclinux*): New target.
78 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
79 (linux_resume_one_process): Remove extraneous cast.
80 (linux_read_offsets): New.
81 (linux_target_op): Add linux_read_offsets on mmuless systems.
82 * server.c (handle_query): Add qOffsets logic.
83 * target.h (struct target_ops): Add read_offsets.
85 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
87 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
88 (PTRACE_GET_THREAD_AREA): Define.
89 (ps_get_thread_area): New function.
90 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
91 (linux-x86-64-low.o): Update.
93 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
95 * configure.ac: Remove checks for prfpregset_t.
96 * gdb_proc_service.h: New file.
97 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
98 new "gdb_proc_service.h".
99 * proc-service.c: Likewise.
100 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
101 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
102 * Makefile.in (gdb_proc_service_h): Updated.
103 * configure, config.in: Regenerated.
105 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
107 * remote-utils.c (prepare_resume_reply): Move declaration
108 of gdb_id_from_wait to the top of the block.
110 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
112 * linux-low.c (regsets_store_inferior_registers): Read the regset
113 from the target before filling it.
115 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
117 * server.c (attach_inferior): Return SIGTRAP for a successful
120 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
122 * Makefile.in (OBS): Add version.o.
123 (STAGESTUFF): Delete.
124 (version.o): Add dependencies.
125 (version.c): Replace rule.
126 (clean): Remove version.c.
127 * server.c (gdbserver_version): New.
128 (gdbserver_usage): Use printf.
129 (main): Handle --version and --help.
130 * server.h (version, host_name): Add declarations.
132 2005-12-23 Eli Zaretskii <eliz@gnu.org>
144 * linux-x86-64-low.c:
156 * linux-crisv32-low.c:
168 * gdbserver.1: Add (C) after Copyright. Update the FSF
171 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
173 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
174 (arm_breakpoint_at): Recognize both breakpoints.
175 (the_low_target): Use the correct breakpoint instruction.
177 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
179 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
180 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
181 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
182 (the_low_target): Update.
184 2005-10-25 Andreas Schwab <schwab@suse.de>
186 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
188 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
189 (ia64_num_regs): Reduce to 462.
191 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
193 * acinclude.m4: Correct quoting.
194 * aclocal.m4: Regenerated.
196 Suggested by SZOKOVACS Robert <szo@ies.hu>:
197 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
198 (thread_db_init): Call thread_db_err_str.
199 * configure.ac: Check for TD_VERSION.
200 * config.in, configure: Regenerated.
202 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
204 * server.h (error, fatal, warning): Add ATTR_FORMAT.
206 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
208 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
209 is not available. Define HAVE_PTRACE_GETREGS if it is.
210 * config.in, configure: Regenerated.
211 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
212 * linux-i386-low.c, linux-m68k-low.c: Update to use
214 * linux-low.c (regsets_fetch_inferior_registers)
215 (regsets_store_inferior_registers): Only return 0 if we processed
217 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
218 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
220 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
222 * inferiors.c (struct thread_info): Add gdb_id.
223 (add_thread): Add gdb_id argument.
224 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
225 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
227 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
228 * server.c (handle_query): Use thread_to_gdb_id.
229 (handle_v_cont, main): Use gdb_id_to_thread_id.
230 * server.h (add_thread): Update prototype.
231 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
234 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
236 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
237 left-padded registers.
238 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
239 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
241 2005-07-01 Steve Ellcey <sje@cup.hp.com>
243 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
244 * configure: Regenerate.
245 * config.in: Regenerate.
246 * server.h (NEED_DECLARATION_STRERROR):
247 Replace with !HAVE_DECL_STRERROR.
249 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
251 * linux-low.c (linux_wait, linux_send_signal): Don't test
252 an unsigned long variable for > 0 if it could be MAX_ULONG.
253 * server.c (myresume): Likewise.
254 * target.c (set_desired_inferior): Likewise.
256 2005-06-13 Mark Kettenis <kettenis@gnu.org>
258 * configure.ac: Simplify and improve check for socklen_t.
259 * configure, config.in: Regenerate.
261 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
263 * acconfig.h: Remove.
264 * configure.ac: Add a test for socklen_t. Use three-argument
265 AC_DEFINE throughout.
266 * config.in: Regenerated using autoheader 2.59.
267 * configure: Regenerated.
269 * gdbreplay.c (socklen_t): Provide a default.
270 (remote_open): Use socklen_t.
271 * remote-utils.c (socklen_t): Provide a default.
272 (remote_open): Use socklen_t.
273 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
276 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
278 * linux-low.c (linux_read_memory, linux_write_memory)
279 (linux_read_auxv): Likewise.
280 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
281 (check_mem_write): Likewise.
282 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
284 * regcache.c (struct inferior_rgcache_data, registers_to_string)
285 (registers_from_string, register_data): Likewise.
286 * server.c (handle_query, main): Likewise.
287 * server.h (convert_ascii_to_int, convert_int_to_ascii)
288 (decode_M_packet): Likewise.
289 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
290 * target.h (struct target_ops): Update read_memory, write_memory,
292 (read_inferior_memory, write_inferior_memory): Update.
293 * linux-low.h (struct linux_target_ops): Change type of breakpoint
295 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
296 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
297 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
298 linux-s390-low.c, linux-sh-low.c: Update for changes in
299 read_inferior_memory and the_low_target->breakpoint.
301 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
303 * Makefile.in (SFILES): Add linux-ppc64-low.c.
304 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
305 * configure.srv: Add powerpc64-*-linux*.
306 * linux-ppc64-low.c: New file.
308 2005-05-23 Orjan Friberg <orjanf@axis.com>
310 * linux-cris-low.c: New file with support for CRIS.
311 * linux-crisv32-low.c: Ditto for CRISv32.
312 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
313 (clean): Add reg-cris.c and reg-crisv32.c.
314 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
315 reg-crisv32.o, and reg-crisv32.c to make rules.
316 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
319 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
321 * linux-low.c (fetch_register): Ensure buffer size is a multiple
322 of sizeof (PTRACE_XFER_TYPE).
323 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
325 2005-05-12 Orjan Friberg <orjanf@axis.com>
327 * target.h (struct target_ops): Add insert_watchpoint,
328 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
329 pointers for hardware watchpoint support.
330 * linux-low.h (struct linux_target_ops): Ditto.
331 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
332 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
334 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
336 * server.c (main): Recognize 'Z' and 'z' packets.
338 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
340 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
341 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
342 (the_low_target): Add new members.
344 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
346 * proc-service.c (ps_lgetregs): Search all_processes instead of
349 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
351 * server.c (start_inferior): Change return type to int.
352 (attach_inferior): Change sigptr to int *.
353 (handle_v_cont, handle_v_requests): Change signal to int *.
354 (main): Change signal to int.
356 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
358 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
359 * configure.srv: Add m32r*-*-linux*.
360 * linux-m32r-low.c: New file.
362 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
364 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
366 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
368 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
369 Take unsigned long arguments for PIDs.
370 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
371 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
372 (wait_for_sigstop, linux_resume_one_process)
373 (regsets_fetch_inferior_registers, linux_send_signal)
374 (linux_read_auxv): Likewise. Update the types of variables holding
375 PIDs. Update format string specifiers.
376 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
377 * remote-utils.c (prepare_resume_reply): Likewise.
378 * server.c (cont_thread, general_thread, step_thread)
379 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
381 (handle_query): Update format specifiers.
382 (handle_v_cont, main): Use strtoul for thread IDs.
383 * server.h (struct inferior_list_entry): Use unsigned long for ID.
384 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
385 (general_thread, step_thread, thread_from_wait)
386 (old_thread_from_wait): Update.
387 * target.h (struct thread_resume): Use unsigned long for THREAD.
388 (struct target_ops): Use unsigned long for arguments to attach and
391 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
393 * acinclude.m4: Include bfd/bfd.m4 directly.
394 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
395 <agriffis@toolchain.org>.
396 * aclocal.m4, configure: Regenerated.
398 2005-01-07 Andrew Cagney <cagney@gnu.org>
400 * configure.ac: Rename configure.in, require autoconf 2.59.
401 * configure: Re-generate.
403 2004-12-08 Daniel Jacobowitz <dan@debian.org>
405 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
407 * aclocal.m4: Regenerated.
408 * configure: Regenerated.
410 2004-11-21 Andreas Schwab <schwab@suse.de>
412 * linux-m68k-low.c (m68k_num_gregs): Define.
413 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
414 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
415 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
416 (m68k_breakpoint_at): New. Add to the_low_target.
418 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
419 srv_linux_thread_db to yes.
421 2004-10-20 Joel Brobecker <brobecker@gnat.com>
423 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
424 (ARCH_SET_FS): Likewise.
425 (ARCH_GET_FS): Likewise.
426 (ARCH_GET_GS): Likewise.
428 2004-10-16 Daniel Jacobowitz <dan@debian.org>
430 * linux-i386-low.c (ps_get_thread_area): New.
431 * linux-x86-64-low.c (ps_get_thread_area): New.
432 * linux-low.c: Include <sys/syscall.h>.
433 (linux_kill_one_process): Don't kill the first thread here.
434 (linux_kill): Kill the first thread here.
435 (kill_lwp): New function.
436 (send_sigstop, linux_send_signal): Use it.
437 * proc-service.c: Clean up #ifdefs.
438 (fpregset_info): Delete.
439 (ps_lgetregs): Update and enable implementation.
440 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
442 * remote-utils.c (struct sym_cache, symbol_cache): New.
443 (input_interrupt): Print a clearer message.
444 (async_io_enabled): New variable.
445 (enable_async_io, disable_async_io): Use it. Update comments.
446 (look_up_one_symbol): Use the symbol cache.
447 * thread-db.c (thread_db_look_up_symbols): New function.
448 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
450 2004-10-16 Daniel Jacobowitz <dan@debian.org>
452 * configure.in: Test for -rdynamic.
453 * configure: Regenerated.
454 * Makefile (INTERNAL_LDFLAGS): New.
455 (gdbserver, gdbreplay): Use it.
457 2004-09-02 Andrew Cagney <cagney@gnu.org>
459 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
461 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
463 * linux-low.c (linux_wait): Clear all_processes list also.
465 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
467 * linux-low.c: Include <errno.h>. Remove extern declaration of
470 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
472 * gdbreplay.c, server.h, utils.c: Update copyright years.
474 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
476 * server.c (main): Print child status or termination signal from
477 variable 'signal', not 'sig'.
479 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
481 * linux-low.c (linux_read_memory): Change return type to
482 int. Check for and return error from ptrace().
483 * target.c (read_inferior_memory): Change return type to int. Pass
484 back return status from the_target->read_memory().
485 * target.h (struct target_ops): Adapt *read_memory() prototype.
487 (read_inferior_memory): Adapt prototype.
488 * server.c (main): Return an error packet if
489 read_inferior_memory() returns an error.
491 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
493 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
494 Unify with other clean targets.
496 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
498 * server.c (handle_v_cont): Call set_desired_inferior.
500 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
502 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
504 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
506 * linux-low.c (linux_wait): Unblock async I/O.
507 (linux_resume): Block and enable async I/O.
508 * remote-utils.c (block_async_io, unblock_async_io): New functions.
509 * server.h (block_async_io, unblock_async_io): Add prototypes.
511 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
513 * remote-utils.c (remote_open): Print a status notice after
515 * server.c (attach_inferior): Print a status notice after
518 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
520 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
522 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
524 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
526 * server.c, target.h: Update copyright years.
528 2004-02-25 Roland McGrath <roland@redhat.com>
530 * target.h (struct target_ops): New member `read_auxv'.
531 * server.c (handle_query): Handle qPart:auxv:read: query using that.
532 * linux-low.c (linux_read_auxv): New function.
533 (linux_target_ops): Initialize `read_auxv' member to that.
535 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
537 Committed by Jim Blandy <jimb@redhat.com>.
539 * linux-s390-low.c (s390_num_regs): Update.
540 (s390_regmap): Remove control registers. Use __s390x__ predefine
541 instead of GPR_SIZE to distiguish s390 and s390x targets.
543 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
545 * linux-low.c: Update copyright year.
546 (check_removed_breakpoint): Clear pending_is_breakpoint.
547 (linux_set_resume_request, linux_queue_one_thread)
548 (resume_status_pending_p): New functions.
549 (linux_continue_one_thread): Use process->resume.
550 (linux_resume): Only resume threads if there are no pending events.
551 * linux-low.h (struct process_info): Add resume request
554 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
556 * regcache.c (new_register_cache): Clear the allocated register
557 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
559 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
561 * linux-low.c (linux_resume): Take a struct thread_resume *
563 (linux_wait): Update call.
564 (resume_ptr): New static variable.
565 (linux_continue_one_thread): Renamed from
566 linux_continue_one_process. Use resume_ptr.
567 (linux_resume): Use linux_continue_one_thread.
568 * server.c (handle_v_cont, handle_v_requests): New functions.
569 (myresume): New function.
570 (main): Handle 'v' case.
571 * target.h (struct thread_resume): New type.
572 (struct target_ops): Change argument of "resume" to struct
574 (myresume): Delete macro.
576 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
578 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
579 (uninstall): Support DESTDIR.
581 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
583 * configure.srv: Add xscale*linux copy of arm*linux entry.
585 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
587 * linux-arm-low.c (arm_reinsert_addr): New function.
588 (the_low_target): Add arm_reinsert_addr.
590 2003-07-08 Mark Kettenis <kettenis@gnu.org>
592 * mem-break.c: Remove whitespace at end of file.
594 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
596 * configure.in: Check whether we need to prototype strerror.
597 * server.h: Optionally prototype strerror.
598 * gdbreplay.c (perror_with_name): Use strerror.
599 * linux-low.c (linux_attach_lwp): Use strerror.
600 * utils.c (perror_with_name): Use strerror.
601 * config.in, configure: Regenerated.
603 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
605 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
606 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
608 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
610 * Makefile.in (SFILES): Update.
611 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
612 low-sun3.c: Remove files.
614 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
616 * linux-low.c: Move comment to linux_thread_alive where it belonged.
617 (linux_detach_one_process, linux_detach): New functions.
618 (linux_target_ops): Add linux_detach.
619 * server.c (main): Handle 'D' packet.
620 * target.h (struct target_ops): Add "detach" member.
621 (detach_inferior): Define.
623 2003-06-13 Mark Kettenis <kettenis@gnu.org>
625 From Kelley Cook <kelleycook@wideopenwest.com>:
626 * configure.srv: Accept i[34567]86 variants.
628 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
630 * linux-low.c (linux_wait_for_event): Correct comment typos.
631 (linux_resume_one_process): Call check_removed_breakpoint.
632 (linux_send_signal): New function.
633 (linux_target_ops): Add linux_send_signal.
634 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
636 * target.h (struct target_ops): Add send_signal.
638 2003-05-29 Jim Blandy <jimb@redhat.com>
640 * linux-low.c (usr_store_inferior_registers): Transfer buf in
641 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
642 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
643 away part of the register's value.
645 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
647 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
648 (linux_wait_for_event, linux_init_signals): Likewise.
650 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
652 * configure.in: Check for stdlib.h.
653 * configure: Regenerated.
654 * config.in: Regenerated.
656 2003-01-04 Andreas Schwab <schwab@suse.de>
658 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
660 2003-01-02 Andrew Cagney <ac131313@redhat.com>
662 * Makefile.in: Remove obsolete code.
664 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
666 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
669 2002-11-17 Stuart Hughes <seh@zee2.com>
671 * linux-arm-low.c (arm_num_regs): Increase.
672 (arm_regmap): Include status register.
674 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
676 * linux-low.c (register_addr): Remove incorrect -1 check.
678 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
680 * linux-low.c (linux_create_inferior): Call setpgid. Return
682 (unstopped_p, linux_signal_pid): Remove.
683 (linux_target_ops): Remove linux_signal_pid.
684 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
685 global instead of target method.
686 * target.h (struct target_ops): Remove signal_pid. Update comment
688 * server.c (signal_pid): New variable.
689 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
690 gdbserver. Set the child to be the foreground process group.
691 (attach_inferior): Set signal_pid.
693 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
695 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
697 2002-08-20 Jim Blandy <jimb@redhat.com>
699 * Makefile.in (LDFLAGS): Allow the configure script to establish a
702 2002-08-01 Andrew Cagney <cagney@redhat.com>
704 * Makefile.in: Make chill references obsolete.
706 2002-07-24 Kevin Buettner <kevinb@redhat.com>
708 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
709 * configure: Regenerate.
710 * config.in: Regenerate.
712 2002-07-09 David O'Brien <obrien@FreeBSD.org>
714 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
715 (perror_with_name, remote_close, remote_open, expect, play): Static.
717 2002-07-04 Michal Ludvig <mludvig@suse.cz>
719 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
720 byte offsets instead of an array of indexes.
721 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
723 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
725 * regcache.c: Add comment.
727 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
729 * thread-db.c: New file.
730 * proc-service.c: New file.
731 * acinclude.m4: New file.
732 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
733 proc-service.o, and thread-db.o.
734 (linux-low.o): Add USE_THREAD_DB.
735 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
736 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
737 * aclocal.m4: Regenerated.
738 * config.in: Regenerated.
739 * configure: Regenerated.
740 * configure.in: Check for proc_service.h, sys/procfs.h,
741 thread_db.h, and linux/elf.h headrs.
742 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
743 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
744 Check for -lthread_db and thread support.
745 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
747 * i387-fp.c: Constify arguments.
748 * i387-fp.h: Likewise.
749 * inferiors.c: (struct thread_info): Renamed from
750 `struct inferior_info'. Remove PID member. Use generic inferior
751 list header. All uses updated.
752 (inferiors, signal_pid): Removed.
753 (all_threads): New variable.
754 (get_thread): Define.
755 (add_inferior_to_list): New function.
756 (for_each_inferior): New function.
757 (change_inferior_id): New function.
758 (add_inferior): Removed.
759 (remove_inferior): New function.
760 (add_thread): New function.
761 (free_one_thread): New function.
762 (remove_thread): New function.
763 (clear_inferiors): Use for_each_inferior and free_one_thread.
764 (find_inferior): New function.
765 (find_inferior_id): New function.
766 (inferior_target_data): Update argument type.
767 (set_inferior_target_data): Likewise.
768 (inferior_regcache_data): Likewise.
769 (set_inferior_regcache_data): Likewise.
770 * linux-low.c (linux_bp_reinsert): Remove.
771 (all_processes, stopping_threads, using_thrads)
772 (struct pending_signals, debug_threads, pid_of): New.
773 (inferior_pid): Replace with macro.
774 (struct inferior_linux_data): Remove.
775 (get_stop_pc, add_process): New functions.
776 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
777 Use add_process and add_thread.
778 (linux_attach_lwp): New function, based on old linux_attach. Use
779 add_process and add_thread. Set stop_expected for new threads.
780 (linux_attach): New function.
781 (linux_kill_one_process): New function.
782 (linux_kill): Kill all LWPs.
783 (linux_thread_alive): Use find_inferior_id.
784 (check_removed_breakpoints, status_pending_p): New functions.
785 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
786 Update. Use WNOHANG. Wait for cloned processes also. Update process
787 struct for the found process.
788 (linux_wait_for_event): New function.
789 (linux_wait): Use it. Support LWPs.
790 (send_sigstop, wait_for_sigstop, stop_all_processes)
791 (linux_resume_one_process, linux_continue_one_process): New functions.
792 (linux_resume): Support LWPs.
793 (REGISTER_RAW_SIZE): Remove.
794 (fetch_register): Use register_size instead. Call supply_register.
795 (usr_store_inferior_registers): Likewise. Call collect_register.
797 (regsets_fetch_inferior_registers): Improve error message.
798 (regsets_store_inferior_registers): Add debugging.
799 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
800 (unstopped_p, linux_signal_pid): New functions.
801 (linux_target_ops): Add linux_signal_pid.
802 (linux_init_signals): New function.
803 (initialize_low): Call it. Initialize using_threads.
804 * regcache.c (inferior_regcache_data): Add valid
806 (get_regcache): Fetch registers lazily. Add fetch argument
807 and update all callers.
808 (regcache_invalidate_one, regcache_invalidate): New
810 (new_register_cache): Renamed from create_register_cache.
811 Return the new regcache.
812 (free_register_cache): Change argument to a void *.
813 (registers_to_string, registers_from_string): Call get_regcache
815 (register_data): Make static. Pass fetch flag to get_regcache.
816 (supply_register): Call get_regcache with fetch flag clear.
817 (collect_register): Call get_regcache with fetch flag set.
818 (collect_register_as_string): New function.
819 * regcache.h: Update.
820 * remote-utils.c (putpkt): Flush after debug output and use
822 Handle input interrupts while waiting for an ACK.
823 (input_interrupt): Use signal_pid method.
824 (getpkt): Flush after debug output and use stderr.
825 (outreg): Use collect_register_as_string.
826 (new_thread_notify, dead_thread_notify): New functions.
827 (prepare_resume_reply): Check using_threads. Set thread_from_wait
829 (look_up_one_symbol): Flush after debug output.
830 * server.c (step_thread, server_waiting): New variables.
831 (start_inferior): Don't use signal_pid. Update call to mywait.
832 (attach_inferior): Update call to mywait.
833 (handle_query): Handle qfThreadInfo and qsThreadInfo.
834 (main): Don't fetch/store registers explicitly. Use
835 set_desired_inferior. Support proposed ``Hs'' packet. Update
838 (struct inferior_list, struct_inferior_list_entry): New.
839 * target.c (set_desired_inferior): New.
840 (write_inferior_memory): Constify.
841 (mywait): New function.
843 (struct target_ops): New signal_pid method.
844 (mywait): Removed macro, added prototype.
846 * linux-low.h (regset_func): Removed.
847 (regset_fill_func, regset_store_func): New.
848 (enum regset_type): New.
849 (struct regset_info): Add type field. Use new operation types.
850 (struct linux_target_ops): stop_pc renamed to get_pc.
851 Add decr_pc_after_break and breakpoint_at.
852 (get_process, get_thread_proess, get_process_thread)
853 (strut process_info, all_processes, linux_attach_lwp)
854 (thread_db_init): New.
856 * linux-arm-low.c (arm_get_pc, arm_set_pc,
857 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
858 (the_low_target): Add new members.
859 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
860 (i386_store_fpxregset): Constify.
861 (target_regsets): Add new kind identifier.
862 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
863 (i386_set_pc): Add debugging.
864 (i386_breakpoint_at): New function.
865 (the_low_target): Add new members.
866 * linux-mips-low.c (mips_get_pc, mips_set_pc)
867 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
868 (mips_breakpoint_at): New.
869 (the_low_target): Add new members.
870 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
871 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
872 (the_low_target): Add new members.
873 * linux-sh-low.c (sh_get_pc, sh_set_pc)
874 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
875 (the_low_target): Add new members.
876 * linux-x86-64-low.c (target_regsets): Add new kind
879 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
881 From Martin Pool <mbp@samba.org>:
882 * server.c (gdbserver_usage): New function.
885 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
887 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
890 2002-05-04 Andrew Cagney <ac131313@redhat.com>
892 * Makefile.in: Remove obsolete code.
894 2002-04-24 Michal Ludvig <mludvig@suse.cz>
896 * linux-low.c (regsets_fetch_inferior_registers),
897 (regsets_store_inferior_registers): Removed cast to int from
899 * regcache.h: Added declaration of struct inferior_info.
901 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
903 * inferiors.c (struct inferior_info): Add regcache_data.
904 (add_inferior): Call create_register_cache.
905 (clear_inferiors): Call free_register_cache.
906 (inferior_regcache_data, set_inferior_regcache_data): New functions.
907 * regcache.c (struct inferior_regcache_data): New.
909 (get_regcache): New function.
910 (create_register_cache, free_register_cache): New functions.
911 (set_register_cache): Don't initialize the register cache here.
912 (registers_to_string, registers_from_string, register_data): Call
914 * regcache.h: Add prototypes.
915 * server.h: Likewise.
917 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
919 * mem-break.c: New file.
920 * mem-break.h: New file.
921 * Makefile.in: Add mem-break.o rule; update server.h
923 * inferiors.c (struct inferior_info): Add target_data
925 (clear_inferiors): Free target_data member if set.
926 (inferior_target_data, set_inferior_target_data): New functions.
927 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
928 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
929 * linux-low.c (linux_bp_reinsert): New variable.
930 (struct inferior_linux_data): New.
931 (linux_create_inferior): Use set_inferior_target_data.
932 (linux_attach): Likewise. Call add_inferior.
933 (linux_wait_for_one_inferior): New function.
934 (linux_wait): Call it.
935 (linux_write_memory): Add const.
936 (initialize_low): Call set_breakpoint_data.
937 * linux-low.h (struct linux_target_ops): Add breakpoint
939 * server.c (attach_inferior): Remove extra add_inferior
941 * server.h: Include mem-break.h. Update inferior.c
943 * target.c (read_inferior_memory)
944 (write_inferior_memory): New functions.
945 * target.h (read_inferior_memory)
946 (write_inferior_memory): Change macros to prototypes.
947 (struct target_ops): Update comments. Add const to write_memory
950 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
952 * linux-low.c (usr_store_inferior_registers): Support
953 registers which are allowed to fail to store.
954 * linux-low.h (linux_target_ops): Likewise.
955 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
956 (ppc_cannot_store_register): FPSCR may not be storable.
958 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
960 * server.h: Include <string.h> if HAVE_STRING_H.
961 * ChangeLog: Correct paths in last ChangeLog entry.
963 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
965 * linux-low.h: Remove obsolete prototypes.
966 (struct linux_target_ops): New.
967 (extern the_low_target): New.
968 * linux-low.c (num_regs, regmap): Remove declarations.
969 (register_addr): Use the_low_target explicitly.
970 (fetch_register): Likewise.
971 (usr_fetch_inferior_registers): Likewise.
972 (usr_store_inferior_registers): Likewise.
973 * linux-arm-low.c (num_regs): Remove.
974 (arm_num_regs): Define.
975 (arm_regmap): Renamed from regmap, made static.
976 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
978 (arm_cannot_store_register): Renamed from cannot_store_register,
980 (the_low_target): New.
981 * linux-i386-low.c (num_regs): Remove.
982 (i386_num_regs): Define.
983 (i386_regmap): Renamed from regmap, made static.
984 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
986 (i386_cannot_store_register): Renamed from cannot_store_register,
988 (the_low_target): New.
989 * linux-ia64-low.c (num_regs): Remove.
990 (ia64_num_regs): Define.
991 (ia64_regmap): Renamed from regmap, made static.
992 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
994 (ia64_cannot_store_register): Renamed from cannot_store_register,
996 (the_low_target): New.
997 * linux-m68k-low.c (num_regs): Remove.
998 (m68k_num_regs): Define.
999 (m68k_regmap): Renamed from regmap, made static.
1000 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1002 (m68k_cannot_store_register): Renamed from cannot_store_register,
1004 (the_low_target): New.
1005 * linux-mips-low.c (num_regs): Remove.
1006 (mips_num_regs): Define.
1007 (mips_regmap): Renamed from regmap, made static.
1008 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1010 (mips_cannot_store_register): Renamed from cannot_store_register,
1012 (the_low_target): New.
1013 * linux-ppc-low.c (num_regs): Remove.
1014 (ppc_num_regs): Define.
1015 (ppc_regmap): Renamed from regmap, made static.
1016 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1018 (ppc_cannot_store_register): Renamed from cannot_store_register,
1020 (the_low_target): New.
1021 * linux-s390-low.c (num_regs): Remove.
1022 (s390_num_regs): Define.
1023 (s390_regmap): Renamed from regmap, made static.
1024 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1026 (s390_cannot_store_register): Renamed from cannot_store_register,
1028 (the_low_target): New.
1029 * linux-sh-low.c (num_regs): Remove.
1030 (sh_num_regs): Define.
1031 (sh_regmap): Renamed from regmap, made static.
1032 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1034 (sh_cannot_store_register): Renamed from cannot_store_register,
1036 (the_low_target): New.
1037 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1038 (the_low_target): New.
1040 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1042 * Makefile.in: Add stamp-h target.
1043 * configure.in: Create stamp-h.
1044 * configure: Regenerated.
1046 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1048 * inferiors.c: New file.
1049 * target.c: New file.
1050 * target.h: New file.
1051 * Makefile.in: Add target.o and inferiors.o. Update
1053 * linux-low.c (inferior_pid): New static variable,
1054 moved from server.c.
1055 (linux_create_inferior): Renamed from create_inferior.
1056 Call add_inferior. Return 0 on success instead of a PID.
1057 (linux_attach): Renamed from myattach.
1058 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1059 (linux_thread_alive): Renamed from mythread_alive.
1060 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1062 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1063 (regsets_store_inferior_registers): Correct error message.
1064 Add missing ``return 0''.
1065 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1066 (linux_store_registers): Renamed from store_inferior_registers.
1067 (linux_read_memory): Renamed from read_inferior_memory.
1068 (linux_write_memory): Renamed from write_inferior_memory.
1069 (linux_target_ops): New structure.
1070 (initialize_low): Call set_target_ops ().
1071 * remote-utils.c (unhexify): New function.
1072 (hexify): New function.
1073 (input_interrupt): Send signals to ``signal_pid''.
1074 * server.c (inferior_pid): Remove.
1075 (start_inferior): Update create_inferior call.
1076 (attach_inferior): Call add_inferior.
1077 (handle_query): New function.
1078 (main): Call handle_query for `q' packets.
1079 * server.h: Include "target.h". Remove obsolete prototypes.
1080 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1082 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1084 * Makefile.in: Add WARN_CFLAGS. Update configury
1086 * configure.in: Check for <string.h>
1087 * configure: Regenerate.
1088 * config.in: Regenerate.
1089 * gdbreplay.c: Include needed system headers.
1090 (remote_open): Remove strchr prototype.
1091 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1092 * regcache.c (supply_register): Change buf argument to const void *.
1093 (supply_register_by_name): Likewise.
1094 (collect_register): Change buf argument to void *.
1095 (collect_register_by_name): Likewise.
1096 * regcache.h: Add missing prototypes.
1097 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1098 * server.c (handle_query): New function.
1099 (attached): New static variable, moved out of main.
1100 (main): Quiet longjmp clobber warnings.
1101 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1102 * utils.c (error): Remove NORETURN.