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