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