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