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