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