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