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