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