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