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