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