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