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