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