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