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