1 2004-10-20 Joel Brobecker <brobecker@gnat.com>
3 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
4 (ARCH_SET_FS): Likewise.
5 (ARCH_GET_FS): Likewise.
6 (ARCH_GET_GS): Likewise.
8 2004-10-16 Daniel Jacobowitz <dan@debian.org>
10 * linux-i386-low.c (ps_get_thread_area): New.
11 * linux-x86-64-low.c (ps_get_thread_area): New.
12 * linux-low.c: Include <sys/syscall.h>.
13 (linux_kill_one_process): Don't kill the first thread here.
14 (linux_kill): Kill the first thread here.
15 (kill_lwp): New function.
16 (send_sigstop, linux_send_signal): Use it.
17 * proc-service.c: Clean up #ifdefs.
18 (fpregset_info): Delete.
19 (ps_lgetregs): Update and enable implementation.
20 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22 * remote-utils.c (struct sym_cache, symbol_cache): New.
23 (input_interrupt): Print a clearer message.
24 (async_io_enabled): New variable.
25 (enable_async_io, disable_async_io): Use it. Update comments.
26 (look_up_one_symbol): Use the symbol cache.
27 * thread-db.c (thread_db_look_up_symbols): New function.
28 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
30 2004-10-16 Daniel Jacobowitz <dan@debian.org>
32 * configure.in: Test for -rdynamic.
33 * configure: Regenerated.
34 * Makefile (INTERNAL_LDFLAGS): New.
35 (gdbserver, gdbreplay): Use it.
37 2004-09-02 Andrew Cagney <cagney@gnu.org>
39 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
41 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
43 * linux-low.c (linux_wait): Clear all_processes list also.
45 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
47 * linux-low.c: Include <errno.h>. Remove extern declaration of
50 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
52 * gdbreplay.c, server.h, utils.c: Update copyright years.
54 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
56 * server.c (main): Print child status or termination signal from
57 variable 'signal', not 'sig'.
59 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
61 * linux-low.c (linux_read_memory): Change return type to
62 int. Check for and return error from ptrace().
63 * target.c (read_inferior_memory): Change return type to int. Pass
64 back return status from the_target->read_memory().
65 * target.h (struct target_ops): Adapt *read_memory() prototype.
67 (read_inferior_memory): Adapt prototype.
68 * server.c (main): Return an error packet if
69 read_inferior_memory() returns an error.
71 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
73 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
74 Unify with other clean targets.
76 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
78 * server.c (handle_v_cont): Call set_desired_inferior.
80 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
82 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
84 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
86 * linux-low.c (linux_wait): Unblock async I/O.
87 (linux_resume): Block and enable async I/O.
88 * remote-utils.c (block_async_io, unblock_async_io): New functions.
89 * server.h (block_async_io, unblock_async_io): Add prototypes.
91 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
93 * remote-utils.c (remote_open): Print a status notice after
95 * server.c (attach_inferior): Print a status notice after
98 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
100 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
102 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
104 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
106 * server.c, target.h: Update copyright years.
108 2004-02-25 Roland McGrath <roland@redhat.com>
110 * target.h (struct target_ops): New member `read_auxv'.
111 * server.c (handle_query): Handle qPart:auxv:read: query using that.
112 * linux-low.c (linux_read_auxv): New function.
113 (linux_target_ops): Initialize `read_auxv' member to that.
115 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
117 Committed by Jim Blandy <jimb@redhat.com>.
119 * linux-s390-low.c (s390_num_regs): Update.
120 (s390_regmap): Remove control registers. Use __s390x__ predefine
121 instead of GPR_SIZE to distiguish s390 and s390x targets.
123 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
125 * linux-low.c: Update copyright year.
126 (check_removed_breakpoint): Clear pending_is_breakpoint.
127 (linux_set_resume_request, linux_queue_one_thread)
128 (resume_status_pending_p): New functions.
129 (linux_continue_one_thread): Use process->resume.
130 (linux_resume): Only resume threads if there are no pending events.
131 * linux-low.h (struct process_info): Add resume request
134 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
136 * regcache.c (new_register_cache): Clear the allocated register
137 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
139 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
141 * linux-low.c (linux_resume): Take a struct thread_resume *
143 (linux_wait): Update call.
144 (resume_ptr): New static variable.
145 (linux_continue_one_thread): Renamed from
146 linux_continue_one_process. Use resume_ptr.
147 (linux_resume): Use linux_continue_one_thread.
148 * server.c (handle_v_cont, handle_v_requests): New functions.
149 (myresume): New function.
150 (main): Handle 'v' case.
151 * target.h (struct thread_resume): New type.
152 (struct target_ops): Change argument of "resume" to struct
154 (myresume): Delete macro.
156 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
158 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
159 (uninstall): Support DESTDIR.
161 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
163 * configure.srv: Add xscale*linux copy of arm*linux entry.
165 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
167 * linux-arm-low.c (arm_reinsert_addr): New function.
168 (the_low_target): Add arm_reinsert_addr.
170 2003-07-08 Mark Kettenis <kettenis@gnu.org>
172 * mem-break.c: Remove whitespace at end of file.
174 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
176 * configure.in: Check whether we need to prototype strerror.
177 * server.h: Optionally prototype strerror.
178 * gdbreplay.c (perror_with_name): Use strerror.
179 * linux-low.c (linux_attach_lwp): Use strerror.
180 * utils.c (perror_with_name): Use strerror.
181 * config.in, configure: Regenerated.
183 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
185 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
186 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
188 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
190 * Makefile.in (SFILES): Update.
191 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
192 low-sun3.c: Remove files.
194 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
196 * linux-low.c: Move comment to linux_thread_alive where it belonged.
197 (linux_detach_one_process, linux_detach): New functions.
198 (linux_target_ops): Add linux_detach.
199 * server.c (main): Handle 'D' packet.
200 * target.h (struct target_ops): Add "detach" member.
201 (detach_inferior): Define.
203 2003-06-13 Mark Kettenis <kettenis@gnu.org>
205 From Kelley Cook <kelleycook@wideopenwest.com>:
206 * configure.srv: Accept i[34567]86 variants.
208 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
210 * linux-low.c (linux_wait_for_event): Correct comment typos.
211 (linux_resume_one_process): Call check_removed_breakpoint.
212 (linux_send_signal): New function.
213 (linux_target_ops): Add linux_send_signal.
214 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
216 * target.h (struct target_ops): Add send_signal.
218 2003-05-29 Jim Blandy <jimb@redhat.com>
220 * linux-low.c (usr_store_inferior_registers): Transfer buf in
221 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
222 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
223 away part of the register's value.
225 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
227 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
228 (linux_wait_for_event, linux_init_signals): Likewise.
230 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
232 * configure.in: Check for stdlib.h.
233 * configure: Regenerated.
234 * config.in: Regenerated.
236 2003-01-04 Andreas Schwab <schwab@suse.de>
238 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
240 2003-01-02 Andrew Cagney <ac131313@redhat.com>
242 * Makefile.in: Remove obsolete code.
244 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
246 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
249 2002-11-17 Stuart Hughes <seh@zee2.com>
251 * linux-arm-low.c (arm_num_regs): Increase.
252 (arm_regmap): Include status register.
254 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
256 * linux-low.c (register_addr): Remove incorrect -1 check.
258 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
260 * linux-low.c (linux_create_inferior): Call setpgid. Return
262 (unstopped_p, linux_signal_pid): Remove.
263 (linux_target_ops): Remove linux_signal_pid.
264 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
265 global instead of target method.
266 * target.h (struct target_ops): Remove signal_pid. Update comment
268 * server.c (signal_pid): New variable.
269 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
270 gdbserver. Set the child to be the foreground process group.
271 (attach_inferior): Set signal_pid.
273 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
275 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
277 2002-08-20 Jim Blandy <jimb@redhat.com>
279 * Makefile.in (LDFLAGS): Allow the configure script to establish a
282 2002-08-01 Andrew Cagney <cagney@redhat.com>
284 * Makefile.in: Make chill references obsolete.
286 2002-07-24 Kevin Buettner <kevinb@redhat.com>
288 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
289 * configure: Regenerate.
290 * config.in: Regenerate.
292 2002-07-09 David O'Brien <obrien@FreeBSD.org>
294 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
295 (perror_with_name, remote_close, remote_open, expect, play): Static.
297 2002-07-04 Michal Ludvig <mludvig@suse.cz>
299 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
300 byte offsets instead of an array of indexes.
301 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
303 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
305 * regcache.c: Add comment.
307 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
309 * thread-db.c: New file.
310 * proc-service.c: New file.
311 * acinclude.m4: New file.
312 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
313 proc-service.o, and thread-db.o.
314 (linux-low.o): Add USE_THREAD_DB.
315 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
316 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
317 * aclocal.m4: Regenerated.
318 * config.in: Regenerated.
319 * configure: Regenerated.
320 * configure.in: Check for proc_service.h, sys/procfs.h,
321 thread_db.h, and linux/elf.h headrs.
322 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
323 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
324 Check for -lthread_db and thread support.
325 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
327 * i387-fp.c: Constify arguments.
328 * i387-fp.h: Likewise.
329 * inferiors.c: (struct thread_info): Renamed from
330 `struct inferior_info'. Remove PID member. Use generic inferior
331 list header. All uses updated.
332 (inferiors, signal_pid): Removed.
333 (all_threads): New variable.
334 (get_thread): Define.
335 (add_inferior_to_list): New function.
336 (for_each_inferior): New function.
337 (change_inferior_id): New function.
338 (add_inferior): Removed.
339 (remove_inferior): New function.
340 (add_thread): New function.
341 (free_one_thread): New function.
342 (remove_thread): New function.
343 (clear_inferiors): Use for_each_inferior and free_one_thread.
344 (find_inferior): New function.
345 (find_inferior_id): New function.
346 (inferior_target_data): Update argument type.
347 (set_inferior_target_data): Likewise.
348 (inferior_regcache_data): Likewise.
349 (set_inferior_regcache_data): Likewise.
350 * linux-low.c (linux_bp_reinsert): Remove.
351 (all_processes, stopping_threads, using_thrads)
352 (struct pending_signals, debug_threads, pid_of): New.
353 (inferior_pid): Replace with macro.
354 (struct inferior_linux_data): Remove.
355 (get_stop_pc, add_process): New functions.
356 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
357 Use add_process and add_thread.
358 (linux_attach_lwp): New function, based on old linux_attach. Use
359 add_process and add_thread. Set stop_expected for new threads.
360 (linux_attach): New function.
361 (linux_kill_one_process): New function.
362 (linux_kill): Kill all LWPs.
363 (linux_thread_alive): Use find_inferior_id.
364 (check_removed_breakpoints, status_pending_p): New functions.
365 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
366 Update. Use WNOHANG. Wait for cloned processes also. Update process
367 struct for the found process.
368 (linux_wait_for_event): New function.
369 (linux_wait): Use it. Support LWPs.
370 (send_sigstop, wait_for_sigstop, stop_all_processes)
371 (linux_resume_one_process, linux_continue_one_process): New functions.
372 (linux_resume): Support LWPs.
373 (REGISTER_RAW_SIZE): Remove.
374 (fetch_register): Use register_size instead. Call supply_register.
375 (usr_store_inferior_registers): Likewise. Call collect_register.
377 (regsets_fetch_inferior_registers): Improve error message.
378 (regsets_store_inferior_registers): Add debugging.
379 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
380 (unstopped_p, linux_signal_pid): New functions.
381 (linux_target_ops): Add linux_signal_pid.
382 (linux_init_signals): New function.
383 (initialize_low): Call it. Initialize using_threads.
384 * regcache.c (inferior_regcache_data): Add valid
386 (get_regcache): Fetch registers lazily. Add fetch argument
387 and update all callers.
388 (regcache_invalidate_one, regcache_invalidate): New
390 (new_register_cache): Renamed from create_register_cache.
391 Return the new regcache.
392 (free_register_cache): Change argument to a void *.
393 (registers_to_string, registers_from_string): Call get_regcache
395 (register_data): Make static. Pass fetch flag to get_regcache.
396 (supply_register): Call get_regcache with fetch flag clear.
397 (collect_register): Call get_regcache with fetch flag set.
398 (collect_register_as_string): New function.
399 * regcache.h: Update.
400 * remote-utils.c (putpkt): Flush after debug output and use
402 Handle input interrupts while waiting for an ACK.
403 (input_interrupt): Use signal_pid method.
404 (getpkt): Flush after debug output and use stderr.
405 (outreg): Use collect_register_as_string.
406 (new_thread_notify, dead_thread_notify): New functions.
407 (prepare_resume_reply): Check using_threads. Set thread_from_wait
409 (look_up_one_symbol): Flush after debug output.
410 * server.c (step_thread, server_waiting): New variables.
411 (start_inferior): Don't use signal_pid. Update call to mywait.
412 (attach_inferior): Update call to mywait.
413 (handle_query): Handle qfThreadInfo and qsThreadInfo.
414 (main): Don't fetch/store registers explicitly. Use
415 set_desired_inferior. Support proposed ``Hs'' packet. Update
418 (struct inferior_list, struct_inferior_list_entry): New.
419 * target.c (set_desired_inferior): New.
420 (write_inferior_memory): Constify.
421 (mywait): New function.
423 (struct target_ops): New signal_pid method.
424 (mywait): Removed macro, added prototype.
426 * linux-low.h (regset_func): Removed.
427 (regset_fill_func, regset_store_func): New.
428 (enum regset_type): New.
429 (struct regset_info): Add type field. Use new operation types.
430 (struct linux_target_ops): stop_pc renamed to get_pc.
431 Add decr_pc_after_break and breakpoint_at.
432 (get_process, get_thread_proess, get_process_thread)
433 (strut process_info, all_processes, linux_attach_lwp)
434 (thread_db_init): New.
436 * linux-arm-low.c (arm_get_pc, arm_set_pc,
437 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
438 (the_low_target): Add new members.
439 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
440 (i386_store_fpxregset): Constify.
441 (target_regsets): Add new kind identifier.
442 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
443 (i386_set_pc): Add debugging.
444 (i386_breakpoint_at): New function.
445 (the_low_target): Add new members.
446 * linux-mips-low.c (mips_get_pc, mips_set_pc)
447 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
448 (mips_breakpoint_at): New.
449 (the_low_target): Add new members.
450 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
451 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
452 (the_low_target): Add new members.
453 * linux-sh-low.c (sh_get_pc, sh_set_pc)
454 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
455 (the_low_target): Add new members.
456 * linux-x86-64-low.c (target_regsets): Add new kind
459 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
461 From Martin Pool <mbp@samba.org>:
462 * server.c (gdbserver_usage): New function.
465 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
467 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
470 2002-05-04 Andrew Cagney <ac131313@redhat.com>
472 * Makefile.in: Remove obsolete code.
474 2002-04-24 Michal Ludvig <mludvig@suse.cz>
476 * linux-low.c (regsets_fetch_inferior_registers),
477 (regsets_store_inferior_registers): Removed cast to int from
479 * regcache.h: Added declaration of struct inferior_info.
481 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
483 * inferiors.c (struct inferior_info): Add regcache_data.
484 (add_inferior): Call create_register_cache.
485 (clear_inferiors): Call free_register_cache.
486 (inferior_regcache_data, set_inferior_regcache_data): New functions.
487 * regcache.c (struct inferior_regcache_data): New.
489 (get_regcache): New function.
490 (create_register_cache, free_register_cache): New functions.
491 (set_register_cache): Don't initialize the register cache here.
492 (registers_to_string, registers_from_string, register_data): Call
494 * regcache.h: Add prototypes.
495 * server.h: Likewise.
497 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
499 * mem-break.c: New file.
500 * mem-break.h: New file.
501 * Makefile.in: Add mem-break.o rule; update server.h
503 * inferiors.c (struct inferior_info): Add target_data
505 (clear_inferiors): Free target_data member if set.
506 (inferior_target_data, set_inferior_target_data): New functions.
507 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
508 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
509 * linux-low.c (linux_bp_reinsert): New variable.
510 (struct inferior_linux_data): New.
511 (linux_create_inferior): Use set_inferior_target_data.
512 (linux_attach): Likewise. Call add_inferior.
513 (linux_wait_for_one_inferior): New function.
514 (linux_wait): Call it.
515 (linux_write_memory): Add const.
516 (initialize_low): Call set_breakpoint_data.
517 * linux-low.h (struct linux_target_ops): Add breakpoint
519 * server.c (attach_inferior): Remove extra add_inferior
521 * server.h: Include mem-break.h. Update inferior.c
523 * target.c (read_inferior_memory)
524 (write_inferior_memory): New functions.
525 * target.h (read_inferior_memory)
526 (write_inferior_memory): Change macros to prototypes.
527 (struct target_ops): Update comments. Add const to write_memory
530 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
532 * linux-low.c (usr_store_inferior_registers): Support
533 registers which are allowed to fail to store.
534 * linux-low.h (linux_target_ops): Likewise.
535 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
536 (ppc_cannot_store_register): FPSCR may not be storable.
538 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
540 * server.h: Include <string.h> if HAVE_STRING_H.
541 * ChangeLog: Correct paths in last ChangeLog entry.
543 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
545 * linux-low.h: Remove obsolete prototypes.
546 (struct linux_target_ops): New.
547 (extern the_low_target): New.
548 * linux-low.c (num_regs, regmap): Remove declarations.
549 (register_addr): Use the_low_target explicitly.
550 (fetch_register): Likewise.
551 (usr_fetch_inferior_registers): Likewise.
552 (usr_store_inferior_registers): Likewise.
553 * linux-arm-low.c (num_regs): Remove.
554 (arm_num_regs): Define.
555 (arm_regmap): Renamed from regmap, made static.
556 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
558 (arm_cannot_store_register): Renamed from cannot_store_register,
560 (the_low_target): New.
561 * linux-i386-low.c (num_regs): Remove.
562 (i386_num_regs): Define.
563 (i386_regmap): Renamed from regmap, made static.
564 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
566 (i386_cannot_store_register): Renamed from cannot_store_register,
568 (the_low_target): New.
569 * linux-ia64-low.c (num_regs): Remove.
570 (ia64_num_regs): Define.
571 (ia64_regmap): Renamed from regmap, made static.
572 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
574 (ia64_cannot_store_register): Renamed from cannot_store_register,
576 (the_low_target): New.
577 * linux-m68k-low.c (num_regs): Remove.
578 (m68k_num_regs): Define.
579 (m68k_regmap): Renamed from regmap, made static.
580 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
582 (m68k_cannot_store_register): Renamed from cannot_store_register,
584 (the_low_target): New.
585 * linux-mips-low.c (num_regs): Remove.
586 (mips_num_regs): Define.
587 (mips_regmap): Renamed from regmap, made static.
588 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
590 (mips_cannot_store_register): Renamed from cannot_store_register,
592 (the_low_target): New.
593 * linux-ppc-low.c (num_regs): Remove.
594 (ppc_num_regs): Define.
595 (ppc_regmap): Renamed from regmap, made static.
596 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
598 (ppc_cannot_store_register): Renamed from cannot_store_register,
600 (the_low_target): New.
601 * linux-s390-low.c (num_regs): Remove.
602 (s390_num_regs): Define.
603 (s390_regmap): Renamed from regmap, made static.
604 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
606 (s390_cannot_store_register): Renamed from cannot_store_register,
608 (the_low_target): New.
609 * linux-sh-low.c (num_regs): Remove.
610 (sh_num_regs): Define.
611 (sh_regmap): Renamed from regmap, made static.
612 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
614 (sh_cannot_store_register): Renamed from cannot_store_register,
616 (the_low_target): New.
617 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
618 (the_low_target): New.
620 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
622 * Makefile.in: Add stamp-h target.
623 * configure.in: Create stamp-h.
624 * configure: Regenerated.
626 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
628 * inferiors.c: New file.
629 * target.c: New file.
630 * target.h: New file.
631 * Makefile.in: Add target.o and inferiors.o. Update
633 * linux-low.c (inferior_pid): New static variable,
635 (linux_create_inferior): Renamed from create_inferior.
636 Call add_inferior. Return 0 on success instead of a PID.
637 (linux_attach): Renamed from myattach.
638 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
639 (linux_thread_alive): Renamed from mythread_alive.
640 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
642 (linux_resume): Renamed from myresume. Add missing ``return 0''.
643 (regsets_store_inferior_registers): Correct error message.
644 Add missing ``return 0''.
645 (linux_fetch_registers): Renamed from fetch_inferior_registers.
646 (linux_store_registers): Renamed from store_inferior_registers.
647 (linux_read_memory): Renamed from read_inferior_memory.
648 (linux_write_memory): Renamed from write_inferior_memory.
649 (linux_target_ops): New structure.
650 (initialize_low): Call set_target_ops ().
651 * remote-utils.c (unhexify): New function.
652 (hexify): New function.
653 (input_interrupt): Send signals to ``signal_pid''.
654 * server.c (inferior_pid): Remove.
655 (start_inferior): Update create_inferior call.
656 (attach_inferior): Call add_inferior.
657 (handle_query): New function.
658 (main): Call handle_query for `q' packets.
659 * server.h: Include "target.h". Remove obsolete prototypes.
660 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
662 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
664 * Makefile.in: Add WARN_CFLAGS. Update configury
666 * configure.in: Check for <string.h>
667 * configure: Regenerate.
668 * config.in: Regenerate.
669 * gdbreplay.c: Include needed system headers.
670 (remote_open): Remove strchr prototype.
671 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
672 * regcache.c (supply_register): Change buf argument to const void *.
673 (supply_register_by_name): Likewise.
674 (collect_register): Change buf argument to void *.
675 (collect_register_by_name): Likewise.
676 * regcache.h: Add missing prototypes.
677 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
678 * server.c (handle_query): New function.
679 (attached): New static variable, moved out of main.
680 (main): Quiet longjmp clobber warnings.
681 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
682 * utils.c (error): Remove NORETURN.