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