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