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