1 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
3 * server.c (handle_query): Handle qSupported.
5 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
7 * remote-utils.c (all_symbols_looked_up): New variable.
8 (look_up_one_symbol): Check it.
9 * server.h (look_up_one_symbol): New declaration.
10 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
12 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
14 * Makefile.in (linux-arm-low.o): Update dependencies.
15 * linux-arm-low.c: Include "gdb_proc_service.h".
16 (PTRACE_GET_THREAD_AREA): Define.
17 (ps_get_thread_area): New function.
19 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21 * configure.srv (m68k*-*-uclinux*): New target.
22 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
23 (linux_resume_one_process): Remove extraneous cast.
24 (linux_read_offsets): New.
25 (linux_target_op): Add linux_read_offsets on mmuless systems.
26 * server.c (handle_query): Add qOffsets logic.
27 * target.h (struct target_ops): Add read_offsets.
29 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
31 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
32 (PTRACE_GET_THREAD_AREA): Define.
33 (ps_get_thread_area): New function.
34 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
35 (linux-x86-64-low.o): Update.
37 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
39 * configure.ac: Remove checks for prfpregset_t.
40 * gdb_proc_service.h: New file.
41 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
42 new "gdb_proc_service.h".
43 * proc-service.c: Likewise.
44 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
45 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
46 * Makefile.in (gdb_proc_service_h): Updated.
47 * configure, config.in: Regenerated.
49 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
51 * remote-utils.c (prepare_resume_reply): Move declaration
52 of gdb_id_from_wait to the top of the block.
54 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
56 * linux-low.c (regsets_store_inferior_registers): Read the regset
57 from the target before filling it.
59 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
61 * server.c (attach_inferior): Return SIGTRAP for a successful
64 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
66 * Makefile.in (OBS): Add version.o.
68 (version.o): Add dependencies.
69 (version.c): Replace rule.
70 (clean): Remove version.c.
71 * server.c (gdbserver_version): New.
72 (gdbserver_usage): Use printf.
73 (main): Handle --version and --help.
74 * server.h (version, host_name): Add declarations.
76 2005-12-23 Eli Zaretskii <eliz@gnu.org>
100 * linux-crisv32-low.c:
112 * gdbserver.1: Add (C) after Copyright. Update the FSF
115 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
117 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
118 (arm_breakpoint_at): Recognize both breakpoints.
119 (the_low_target): Use the correct breakpoint instruction.
121 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
123 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
124 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
125 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
126 (the_low_target): Update.
128 2005-10-25 Andreas Schwab <schwab@suse.de>
130 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
132 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
133 (ia64_num_regs): Reduce to 462.
135 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
137 * acinclude.m4: Correct quoting.
138 * aclocal.m4: Regenerated.
140 Suggested by SZOKOVACS Robert <szo@ies.hu>:
141 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
142 (thread_db_init): Call thread_db_err_str.
143 * configure.ac: Check for TD_VERSION.
144 * config.in, configure: Regenerated.
146 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
148 * server.h (error, fatal, warning): Add ATTR_FORMAT.
150 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
152 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
153 is not available. Define HAVE_PTRACE_GETREGS if it is.
154 * config.in, configure: Regenerated.
155 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
156 * linux-i386-low.c, linux-m68k-low.c: Update to use
158 * linux-low.c (regsets_fetch_inferior_registers)
159 (regsets_store_inferior_registers): Only return 0 if we processed
161 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
162 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
164 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
166 * inferiors.c (struct thread_info): Add gdb_id.
167 (add_thread): Add gdb_id argument.
168 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
169 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
171 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
172 * server.c (handle_query): Use thread_to_gdb_id.
173 (handle_v_cont, main): Use gdb_id_to_thread_id.
174 * server.h (add_thread): Update prototype.
175 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
178 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
180 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
181 left-padded registers.
182 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
183 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
185 2005-07-01 Steve Ellcey <sje@cup.hp.com>
187 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
188 * configure: Regenerate.
189 * config.in: Regenerate.
190 * server.h (NEED_DECLARATION_STRERROR):
191 Replace with !HAVE_DECL_STRERROR.
193 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
195 * linux-low.c (linux_wait, linux_send_signal): Don't test
196 an unsigned long variable for > 0 if it could be MAX_ULONG.
197 * server.c (myresume): Likewise.
198 * target.c (set_desired_inferior): Likewise.
200 2005-06-13 Mark Kettenis <kettenis@gnu.org>
202 * configure.ac: Simplify and improve check for socklen_t.
203 * configure, config.in: Regenerate.
205 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
207 * acconfig.h: Remove.
208 * configure.ac: Add a test for socklen_t. Use three-argument
209 AC_DEFINE throughout.
210 * config.in: Regenerated using autoheader 2.59.
211 * configure: Regenerated.
213 * gdbreplay.c (socklen_t): Provide a default.
214 (remote_open): Use socklen_t.
215 * remote-utils.c (socklen_t): Provide a default.
216 (remote_open): Use socklen_t.
217 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
220 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
222 * linux-low.c (linux_read_memory, linux_write_memory)
223 (linux_read_auxv): Likewise.
224 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
225 (check_mem_write): Likewise.
226 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
228 * regcache.c (struct inferior_rgcache_data, registers_to_string)
229 (registers_from_string, register_data): Likewise.
230 * server.c (handle_query, main): Likewise.
231 * server.h (convert_ascii_to_int, convert_int_to_ascii)
232 (decode_M_packet): Likewise.
233 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
234 * target.h (struct target_ops): Update read_memory, write_memory,
236 (read_inferior_memory, write_inferior_memory): Update.
237 * linux-low.h (struct linux_target_ops): Change type of breakpoint
239 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
240 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
241 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
242 linux-s390-low.c, linux-sh-low.c: Update for changes in
243 read_inferior_memory and the_low_target->breakpoint.
245 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
247 * Makefile.in (SFILES): Add linux-ppc64-low.c.
248 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
249 * configure.srv: Add powerpc64-*-linux*.
250 * linux-ppc64-low.c: New file.
252 2005-05-23 Orjan Friberg <orjanf@axis.com>
254 * linux-cris-low.c: New file with support for CRIS.
255 * linux-crisv32-low.c: Ditto for CRISv32.
256 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
257 (clean): Add reg-cris.c and reg-crisv32.c.
258 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
259 reg-crisv32.o, and reg-crisv32.c to make rules.
260 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
263 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
265 * linux-low.c (fetch_register): Ensure buffer size is a multiple
266 of sizeof (PTRACE_XFER_TYPE).
267 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
269 2005-05-12 Orjan Friberg <orjanf@axis.com>
271 * target.h (struct target_ops): Add insert_watchpoint,
272 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
273 pointers for hardware watchpoint support.
274 * linux-low.h (struct linux_target_ops): Ditto.
275 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
276 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
278 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
280 * server.c (main): Recognize 'Z' and 'z' packets.
282 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
284 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
285 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
286 (the_low_target): Add new members.
288 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
290 * proc-service.c (ps_lgetregs): Search all_processes instead of
293 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
295 * server.c (start_inferior): Change return type to int.
296 (attach_inferior): Change sigptr to int *.
297 (handle_v_cont, handle_v_requests): Change signal to int *.
298 (main): Change signal to int.
300 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
302 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
303 * configure.srv: Add m32r*-*-linux*.
304 * linux-m32r-low.c: New file.
306 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
308 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
310 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
312 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
313 Take unsigned long arguments for PIDs.
314 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
315 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
316 (wait_for_sigstop, linux_resume_one_process)
317 (regsets_fetch_inferior_registers, linux_send_signal)
318 (linux_read_auxv): Likewise. Update the types of variables holding
319 PIDs. Update format string specifiers.
320 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
321 * remote-utils.c (prepare_resume_reply): Likewise.
322 * server.c (cont_thread, general_thread, step_thread)
323 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
325 (handle_query): Update format specifiers.
326 (handle_v_cont, main): Use strtoul for thread IDs.
327 * server.h (struct inferior_list_entry): Use unsigned long for ID.
328 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
329 (general_thread, step_thread, thread_from_wait)
330 (old_thread_from_wait): Update.
331 * target.h (struct thread_resume): Use unsigned long for THREAD.
332 (struct target_ops): Use unsigned long for arguments to attach and
335 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
337 * acinclude.m4: Include bfd/bfd.m4 directly.
338 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
339 <agriffis@toolchain.org>.
340 * aclocal.m4, configure: Regenerated.
342 2005-01-07 Andrew Cagney <cagney@gnu.org>
344 * configure.ac: Rename configure.in, require autoconf 2.59.
345 * configure: Re-generate.
347 2004-12-08 Daniel Jacobowitz <dan@debian.org>
349 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
351 * aclocal.m4: Regenerated.
352 * configure: Regenerated.
354 2004-11-21 Andreas Schwab <schwab@suse.de>
356 * linux-m68k-low.c (m68k_num_gregs): Define.
357 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
358 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
359 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
360 (m68k_breakpoint_at): New. Add to the_low_target.
362 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
363 srv_linux_thread_db to yes.
365 2004-10-20 Joel Brobecker <brobecker@gnat.com>
367 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
368 (ARCH_SET_FS): Likewise.
369 (ARCH_GET_FS): Likewise.
370 (ARCH_GET_GS): Likewise.
372 2004-10-16 Daniel Jacobowitz <dan@debian.org>
374 * linux-i386-low.c (ps_get_thread_area): New.
375 * linux-x86-64-low.c (ps_get_thread_area): New.
376 * linux-low.c: Include <sys/syscall.h>.
377 (linux_kill_one_process): Don't kill the first thread here.
378 (linux_kill): Kill the first thread here.
379 (kill_lwp): New function.
380 (send_sigstop, linux_send_signal): Use it.
381 * proc-service.c: Clean up #ifdefs.
382 (fpregset_info): Delete.
383 (ps_lgetregs): Update and enable implementation.
384 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
386 * remote-utils.c (struct sym_cache, symbol_cache): New.
387 (input_interrupt): Print a clearer message.
388 (async_io_enabled): New variable.
389 (enable_async_io, disable_async_io): Use it. Update comments.
390 (look_up_one_symbol): Use the symbol cache.
391 * thread-db.c (thread_db_look_up_symbols): New function.
392 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
394 2004-10-16 Daniel Jacobowitz <dan@debian.org>
396 * configure.in: Test for -rdynamic.
397 * configure: Regenerated.
398 * Makefile (INTERNAL_LDFLAGS): New.
399 (gdbserver, gdbreplay): Use it.
401 2004-09-02 Andrew Cagney <cagney@gnu.org>
403 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
405 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
407 * linux-low.c (linux_wait): Clear all_processes list also.
409 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
411 * linux-low.c: Include <errno.h>. Remove extern declaration of
414 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
416 * gdbreplay.c, server.h, utils.c: Update copyright years.
418 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
420 * server.c (main): Print child status or termination signal from
421 variable 'signal', not 'sig'.
423 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
425 * linux-low.c (linux_read_memory): Change return type to
426 int. Check for and return error from ptrace().
427 * target.c (read_inferior_memory): Change return type to int. Pass
428 back return status from the_target->read_memory().
429 * target.h (struct target_ops): Adapt *read_memory() prototype.
431 (read_inferior_memory): Adapt prototype.
432 * server.c (main): Return an error packet if
433 read_inferior_memory() returns an error.
435 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
437 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
438 Unify with other clean targets.
440 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
442 * server.c (handle_v_cont): Call set_desired_inferior.
444 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
446 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
448 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
450 * linux-low.c (linux_wait): Unblock async I/O.
451 (linux_resume): Block and enable async I/O.
452 * remote-utils.c (block_async_io, unblock_async_io): New functions.
453 * server.h (block_async_io, unblock_async_io): Add prototypes.
455 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
457 * remote-utils.c (remote_open): Print a status notice after
459 * server.c (attach_inferior): Print a status notice after
462 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
464 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
466 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
468 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
470 * server.c, target.h: Update copyright years.
472 2004-02-25 Roland McGrath <roland@redhat.com>
474 * target.h (struct target_ops): New member `read_auxv'.
475 * server.c (handle_query): Handle qPart:auxv:read: query using that.
476 * linux-low.c (linux_read_auxv): New function.
477 (linux_target_ops): Initialize `read_auxv' member to that.
479 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
481 Committed by Jim Blandy <jimb@redhat.com>.
483 * linux-s390-low.c (s390_num_regs): Update.
484 (s390_regmap): Remove control registers. Use __s390x__ predefine
485 instead of GPR_SIZE to distiguish s390 and s390x targets.
487 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
489 * linux-low.c: Update copyright year.
490 (check_removed_breakpoint): Clear pending_is_breakpoint.
491 (linux_set_resume_request, linux_queue_one_thread)
492 (resume_status_pending_p): New functions.
493 (linux_continue_one_thread): Use process->resume.
494 (linux_resume): Only resume threads if there are no pending events.
495 * linux-low.h (struct process_info): Add resume request
498 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
500 * regcache.c (new_register_cache): Clear the allocated register
501 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
503 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
505 * linux-low.c (linux_resume): Take a struct thread_resume *
507 (linux_wait): Update call.
508 (resume_ptr): New static variable.
509 (linux_continue_one_thread): Renamed from
510 linux_continue_one_process. Use resume_ptr.
511 (linux_resume): Use linux_continue_one_thread.
512 * server.c (handle_v_cont, handle_v_requests): New functions.
513 (myresume): New function.
514 (main): Handle 'v' case.
515 * target.h (struct thread_resume): New type.
516 (struct target_ops): Change argument of "resume" to struct
518 (myresume): Delete macro.
520 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
522 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
523 (uninstall): Support DESTDIR.
525 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
527 * configure.srv: Add xscale*linux copy of arm*linux entry.
529 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
531 * linux-arm-low.c (arm_reinsert_addr): New function.
532 (the_low_target): Add arm_reinsert_addr.
534 2003-07-08 Mark Kettenis <kettenis@gnu.org>
536 * mem-break.c: Remove whitespace at end of file.
538 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
540 * configure.in: Check whether we need to prototype strerror.
541 * server.h: Optionally prototype strerror.
542 * gdbreplay.c (perror_with_name): Use strerror.
543 * linux-low.c (linux_attach_lwp): Use strerror.
544 * utils.c (perror_with_name): Use strerror.
545 * config.in, configure: Regenerated.
547 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
549 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
550 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
552 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
554 * Makefile.in (SFILES): Update.
555 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
556 low-sun3.c: Remove files.
558 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
560 * linux-low.c: Move comment to linux_thread_alive where it belonged.
561 (linux_detach_one_process, linux_detach): New functions.
562 (linux_target_ops): Add linux_detach.
563 * server.c (main): Handle 'D' packet.
564 * target.h (struct target_ops): Add "detach" member.
565 (detach_inferior): Define.
567 2003-06-13 Mark Kettenis <kettenis@gnu.org>
569 From Kelley Cook <kelleycook@wideopenwest.com>:
570 * configure.srv: Accept i[34567]86 variants.
572 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
574 * linux-low.c (linux_wait_for_event): Correct comment typos.
575 (linux_resume_one_process): Call check_removed_breakpoint.
576 (linux_send_signal): New function.
577 (linux_target_ops): Add linux_send_signal.
578 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
580 * target.h (struct target_ops): Add send_signal.
582 2003-05-29 Jim Blandy <jimb@redhat.com>
584 * linux-low.c (usr_store_inferior_registers): Transfer buf in
585 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
586 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
587 away part of the register's value.
589 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
591 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
592 (linux_wait_for_event, linux_init_signals): Likewise.
594 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
596 * configure.in: Check for stdlib.h.
597 * configure: Regenerated.
598 * config.in: Regenerated.
600 2003-01-04 Andreas Schwab <schwab@suse.de>
602 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
604 2003-01-02 Andrew Cagney <ac131313@redhat.com>
606 * Makefile.in: Remove obsolete code.
608 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
610 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
613 2002-11-17 Stuart Hughes <seh@zee2.com>
615 * linux-arm-low.c (arm_num_regs): Increase.
616 (arm_regmap): Include status register.
618 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
620 * linux-low.c (register_addr): Remove incorrect -1 check.
622 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
624 * linux-low.c (linux_create_inferior): Call setpgid. Return
626 (unstopped_p, linux_signal_pid): Remove.
627 (linux_target_ops): Remove linux_signal_pid.
628 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
629 global instead of target method.
630 * target.h (struct target_ops): Remove signal_pid. Update comment
632 * server.c (signal_pid): New variable.
633 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
634 gdbserver. Set the child to be the foreground process group.
635 (attach_inferior): Set signal_pid.
637 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
639 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
641 2002-08-20 Jim Blandy <jimb@redhat.com>
643 * Makefile.in (LDFLAGS): Allow the configure script to establish a
646 2002-08-01 Andrew Cagney <cagney@redhat.com>
648 * Makefile.in: Make chill references obsolete.
650 2002-07-24 Kevin Buettner <kevinb@redhat.com>
652 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
653 * configure: Regenerate.
654 * config.in: Regenerate.
656 2002-07-09 David O'Brien <obrien@FreeBSD.org>
658 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
659 (perror_with_name, remote_close, remote_open, expect, play): Static.
661 2002-07-04 Michal Ludvig <mludvig@suse.cz>
663 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
664 byte offsets instead of an array of indexes.
665 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
667 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
669 * regcache.c: Add comment.
671 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
673 * thread-db.c: New file.
674 * proc-service.c: New file.
675 * acinclude.m4: New file.
676 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
677 proc-service.o, and thread-db.o.
678 (linux-low.o): Add USE_THREAD_DB.
679 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
680 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
681 * aclocal.m4: Regenerated.
682 * config.in: Regenerated.
683 * configure: Regenerated.
684 * configure.in: Check for proc_service.h, sys/procfs.h,
685 thread_db.h, and linux/elf.h headrs.
686 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
687 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
688 Check for -lthread_db and thread support.
689 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
691 * i387-fp.c: Constify arguments.
692 * i387-fp.h: Likewise.
693 * inferiors.c: (struct thread_info): Renamed from
694 `struct inferior_info'. Remove PID member. Use generic inferior
695 list header. All uses updated.
696 (inferiors, signal_pid): Removed.
697 (all_threads): New variable.
698 (get_thread): Define.
699 (add_inferior_to_list): New function.
700 (for_each_inferior): New function.
701 (change_inferior_id): New function.
702 (add_inferior): Removed.
703 (remove_inferior): New function.
704 (add_thread): New function.
705 (free_one_thread): New function.
706 (remove_thread): New function.
707 (clear_inferiors): Use for_each_inferior and free_one_thread.
708 (find_inferior): New function.
709 (find_inferior_id): New function.
710 (inferior_target_data): Update argument type.
711 (set_inferior_target_data): Likewise.
712 (inferior_regcache_data): Likewise.
713 (set_inferior_regcache_data): Likewise.
714 * linux-low.c (linux_bp_reinsert): Remove.
715 (all_processes, stopping_threads, using_thrads)
716 (struct pending_signals, debug_threads, pid_of): New.
717 (inferior_pid): Replace with macro.
718 (struct inferior_linux_data): Remove.
719 (get_stop_pc, add_process): New functions.
720 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
721 Use add_process and add_thread.
722 (linux_attach_lwp): New function, based on old linux_attach. Use
723 add_process and add_thread. Set stop_expected for new threads.
724 (linux_attach): New function.
725 (linux_kill_one_process): New function.
726 (linux_kill): Kill all LWPs.
727 (linux_thread_alive): Use find_inferior_id.
728 (check_removed_breakpoints, status_pending_p): New functions.
729 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
730 Update. Use WNOHANG. Wait for cloned processes also. Update process
731 struct for the found process.
732 (linux_wait_for_event): New function.
733 (linux_wait): Use it. Support LWPs.
734 (send_sigstop, wait_for_sigstop, stop_all_processes)
735 (linux_resume_one_process, linux_continue_one_process): New functions.
736 (linux_resume): Support LWPs.
737 (REGISTER_RAW_SIZE): Remove.
738 (fetch_register): Use register_size instead. Call supply_register.
739 (usr_store_inferior_registers): Likewise. Call collect_register.
741 (regsets_fetch_inferior_registers): Improve error message.
742 (regsets_store_inferior_registers): Add debugging.
743 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
744 (unstopped_p, linux_signal_pid): New functions.
745 (linux_target_ops): Add linux_signal_pid.
746 (linux_init_signals): New function.
747 (initialize_low): Call it. Initialize using_threads.
748 * regcache.c (inferior_regcache_data): Add valid
750 (get_regcache): Fetch registers lazily. Add fetch argument
751 and update all callers.
752 (regcache_invalidate_one, regcache_invalidate): New
754 (new_register_cache): Renamed from create_register_cache.
755 Return the new regcache.
756 (free_register_cache): Change argument to a void *.
757 (registers_to_string, registers_from_string): Call get_regcache
759 (register_data): Make static. Pass fetch flag to get_regcache.
760 (supply_register): Call get_regcache with fetch flag clear.
761 (collect_register): Call get_regcache with fetch flag set.
762 (collect_register_as_string): New function.
763 * regcache.h: Update.
764 * remote-utils.c (putpkt): Flush after debug output and use
766 Handle input interrupts while waiting for an ACK.
767 (input_interrupt): Use signal_pid method.
768 (getpkt): Flush after debug output and use stderr.
769 (outreg): Use collect_register_as_string.
770 (new_thread_notify, dead_thread_notify): New functions.
771 (prepare_resume_reply): Check using_threads. Set thread_from_wait
773 (look_up_one_symbol): Flush after debug output.
774 * server.c (step_thread, server_waiting): New variables.
775 (start_inferior): Don't use signal_pid. Update call to mywait.
776 (attach_inferior): Update call to mywait.
777 (handle_query): Handle qfThreadInfo and qsThreadInfo.
778 (main): Don't fetch/store registers explicitly. Use
779 set_desired_inferior. Support proposed ``Hs'' packet. Update
782 (struct inferior_list, struct_inferior_list_entry): New.
783 * target.c (set_desired_inferior): New.
784 (write_inferior_memory): Constify.
785 (mywait): New function.
787 (struct target_ops): New signal_pid method.
788 (mywait): Removed macro, added prototype.
790 * linux-low.h (regset_func): Removed.
791 (regset_fill_func, regset_store_func): New.
792 (enum regset_type): New.
793 (struct regset_info): Add type field. Use new operation types.
794 (struct linux_target_ops): stop_pc renamed to get_pc.
795 Add decr_pc_after_break and breakpoint_at.
796 (get_process, get_thread_proess, get_process_thread)
797 (strut process_info, all_processes, linux_attach_lwp)
798 (thread_db_init): New.
800 * linux-arm-low.c (arm_get_pc, arm_set_pc,
801 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
802 (the_low_target): Add new members.
803 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
804 (i386_store_fpxregset): Constify.
805 (target_regsets): Add new kind identifier.
806 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
807 (i386_set_pc): Add debugging.
808 (i386_breakpoint_at): New function.
809 (the_low_target): Add new members.
810 * linux-mips-low.c (mips_get_pc, mips_set_pc)
811 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
812 (mips_breakpoint_at): New.
813 (the_low_target): Add new members.
814 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
815 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
816 (the_low_target): Add new members.
817 * linux-sh-low.c (sh_get_pc, sh_set_pc)
818 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
819 (the_low_target): Add new members.
820 * linux-x86-64-low.c (target_regsets): Add new kind
823 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
825 From Martin Pool <mbp@samba.org>:
826 * server.c (gdbserver_usage): New function.
829 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
831 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
834 2002-05-04 Andrew Cagney <ac131313@redhat.com>
836 * Makefile.in: Remove obsolete code.
838 2002-04-24 Michal Ludvig <mludvig@suse.cz>
840 * linux-low.c (regsets_fetch_inferior_registers),
841 (regsets_store_inferior_registers): Removed cast to int from
843 * regcache.h: Added declaration of struct inferior_info.
845 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
847 * inferiors.c (struct inferior_info): Add regcache_data.
848 (add_inferior): Call create_register_cache.
849 (clear_inferiors): Call free_register_cache.
850 (inferior_regcache_data, set_inferior_regcache_data): New functions.
851 * regcache.c (struct inferior_regcache_data): New.
853 (get_regcache): New function.
854 (create_register_cache, free_register_cache): New functions.
855 (set_register_cache): Don't initialize the register cache here.
856 (registers_to_string, registers_from_string, register_data): Call
858 * regcache.h: Add prototypes.
859 * server.h: Likewise.
861 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
863 * mem-break.c: New file.
864 * mem-break.h: New file.
865 * Makefile.in: Add mem-break.o rule; update server.h
867 * inferiors.c (struct inferior_info): Add target_data
869 (clear_inferiors): Free target_data member if set.
870 (inferior_target_data, set_inferior_target_data): New functions.
871 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
872 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
873 * linux-low.c (linux_bp_reinsert): New variable.
874 (struct inferior_linux_data): New.
875 (linux_create_inferior): Use set_inferior_target_data.
876 (linux_attach): Likewise. Call add_inferior.
877 (linux_wait_for_one_inferior): New function.
878 (linux_wait): Call it.
879 (linux_write_memory): Add const.
880 (initialize_low): Call set_breakpoint_data.
881 * linux-low.h (struct linux_target_ops): Add breakpoint
883 * server.c (attach_inferior): Remove extra add_inferior
885 * server.h: Include mem-break.h. Update inferior.c
887 * target.c (read_inferior_memory)
888 (write_inferior_memory): New functions.
889 * target.h (read_inferior_memory)
890 (write_inferior_memory): Change macros to prototypes.
891 (struct target_ops): Update comments. Add const to write_memory
894 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
896 * linux-low.c (usr_store_inferior_registers): Support
897 registers which are allowed to fail to store.
898 * linux-low.h (linux_target_ops): Likewise.
899 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
900 (ppc_cannot_store_register): FPSCR may not be storable.
902 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
904 * server.h: Include <string.h> if HAVE_STRING_H.
905 * ChangeLog: Correct paths in last ChangeLog entry.
907 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
909 * linux-low.h: Remove obsolete prototypes.
910 (struct linux_target_ops): New.
911 (extern the_low_target): New.
912 * linux-low.c (num_regs, regmap): Remove declarations.
913 (register_addr): Use the_low_target explicitly.
914 (fetch_register): Likewise.
915 (usr_fetch_inferior_registers): Likewise.
916 (usr_store_inferior_registers): Likewise.
917 * linux-arm-low.c (num_regs): Remove.
918 (arm_num_regs): Define.
919 (arm_regmap): Renamed from regmap, made static.
920 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
922 (arm_cannot_store_register): Renamed from cannot_store_register,
924 (the_low_target): New.
925 * linux-i386-low.c (num_regs): Remove.
926 (i386_num_regs): Define.
927 (i386_regmap): Renamed from regmap, made static.
928 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
930 (i386_cannot_store_register): Renamed from cannot_store_register,
932 (the_low_target): New.
933 * linux-ia64-low.c (num_regs): Remove.
934 (ia64_num_regs): Define.
935 (ia64_regmap): Renamed from regmap, made static.
936 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
938 (ia64_cannot_store_register): Renamed from cannot_store_register,
940 (the_low_target): New.
941 * linux-m68k-low.c (num_regs): Remove.
942 (m68k_num_regs): Define.
943 (m68k_regmap): Renamed from regmap, made static.
944 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
946 (m68k_cannot_store_register): Renamed from cannot_store_register,
948 (the_low_target): New.
949 * linux-mips-low.c (num_regs): Remove.
950 (mips_num_regs): Define.
951 (mips_regmap): Renamed from regmap, made static.
952 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
954 (mips_cannot_store_register): Renamed from cannot_store_register,
956 (the_low_target): New.
957 * linux-ppc-low.c (num_regs): Remove.
958 (ppc_num_regs): Define.
959 (ppc_regmap): Renamed from regmap, made static.
960 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
962 (ppc_cannot_store_register): Renamed from cannot_store_register,
964 (the_low_target): New.
965 * linux-s390-low.c (num_regs): Remove.
966 (s390_num_regs): Define.
967 (s390_regmap): Renamed from regmap, made static.
968 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
970 (s390_cannot_store_register): Renamed from cannot_store_register,
972 (the_low_target): New.
973 * linux-sh-low.c (num_regs): Remove.
974 (sh_num_regs): Define.
975 (sh_regmap): Renamed from regmap, made static.
976 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
978 (sh_cannot_store_register): Renamed from cannot_store_register,
980 (the_low_target): New.
981 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
982 (the_low_target): New.
984 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
986 * Makefile.in: Add stamp-h target.
987 * configure.in: Create stamp-h.
988 * configure: Regenerated.
990 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
992 * inferiors.c: New file.
993 * target.c: New file.
994 * target.h: New file.
995 * Makefile.in: Add target.o and inferiors.o. Update
997 * linux-low.c (inferior_pid): New static variable,
999 (linux_create_inferior): Renamed from create_inferior.
1000 Call add_inferior. Return 0 on success instead of a PID.
1001 (linux_attach): Renamed from myattach.
1002 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1003 (linux_thread_alive): Renamed from mythread_alive.
1004 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1006 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1007 (regsets_store_inferior_registers): Correct error message.
1008 Add missing ``return 0''.
1009 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1010 (linux_store_registers): Renamed from store_inferior_registers.
1011 (linux_read_memory): Renamed from read_inferior_memory.
1012 (linux_write_memory): Renamed from write_inferior_memory.
1013 (linux_target_ops): New structure.
1014 (initialize_low): Call set_target_ops ().
1015 * remote-utils.c (unhexify): New function.
1016 (hexify): New function.
1017 (input_interrupt): Send signals to ``signal_pid''.
1018 * server.c (inferior_pid): Remove.
1019 (start_inferior): Update create_inferior call.
1020 (attach_inferior): Call add_inferior.
1021 (handle_query): New function.
1022 (main): Call handle_query for `q' packets.
1023 * server.h: Include "target.h". Remove obsolete prototypes.
1024 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1026 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1028 * Makefile.in: Add WARN_CFLAGS. Update configury
1030 * configure.in: Check for <string.h>
1031 * configure: Regenerate.
1032 * config.in: Regenerate.
1033 * gdbreplay.c: Include needed system headers.
1034 (remote_open): Remove strchr prototype.
1035 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1036 * regcache.c (supply_register): Change buf argument to const void *.
1037 (supply_register_by_name): Likewise.
1038 (collect_register): Change buf argument to void *.
1039 (collect_register_by_name): Likewise.
1040 * regcache.h: Add missing prototypes.
1041 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1042 * server.c (handle_query): New function.
1043 (attached): New static variable, moved out of main.
1044 (main): Quiet longjmp clobber warnings.
1045 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1046 * utils.c (error): Remove NORETURN.