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