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