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