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