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