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